fixe suffix
[platform/upstream/gcc48.git] / libgfortran / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 #  include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #  include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 IEEE_FLAGS
608 FPU_HOST_HEADER
609 LIBGFOR_BUILD_QUAD_FALSE
610 LIBGFOR_BUILD_QUAD_TRUE
611 LIBQUADINCLUDE
612 LIBQUADLIB_DEP
613 LIBQUADLIB
614 LIBQUADSPEC
615 extra_ldflags_libgfortran
616 ac_ct_FC
617 FCFLAGS
618 FC
619 enable_static
620 enable_shared
621 lt_host_flags
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 OBJDUMP
628 LN_S
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LD
633 FGREP
634 SED
635 LIBTOOL
636 RANLIB
637 AR
638 AS
639 SECTION_FLAGS
640 LIBGFOR_USE_SYMVER_SUN_FALSE
641 LIBGFOR_USE_SYMVER_SUN_TRUE
642 LIBGFOR_USE_SYMVER_GNU_FALSE
643 LIBGFOR_USE_SYMVER_GNU_TRUE
644 LIBGFOR_USE_SYMVER_FALSE
645 LIBGFOR_USE_SYMVER_TRUE
646 AM_CFLAGS
647 AM_FCFLAGS
648 toolexeclibdir
649 toolexecdir
650 EGREP
651 GREP
652 CPP
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 am__nodep
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 multi_basedir
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 AWK
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 onestep
707 onestep_FALSE
708 onestep_TRUE
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 with_build_libsubdir
759 enable_version_specific_runtime_libs
760 enable_intermodule
761 enable_maintainer_mode
762 enable_multilib
763 enable_dependency_tracking
764 enable_symvers
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 enable_largefile
772 enable_libquadmath_support
773 with_system_libunwind
774 '
775       ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 FC
785 FCFLAGS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *)    ac_optarg=yes ;;
850   esac
851
852   # Accept the important Cygnus configure options, so we can diagnose typos.
853
854   case $ac_dashdash$ac_option in
855   --)
856     ac_dashdash=yes ;;
857
858   -bindir | --bindir | --bindi | --bind | --bin | --bi)
859     ac_prev=bindir ;;
860   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861     bindir=$ac_optarg ;;
862
863   -build | --build | --buil | --bui | --bu)
864     ac_prev=build_alias ;;
865   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866     build_alias=$ac_optarg ;;
867
868   -cache-file | --cache-file | --cache-fil | --cache-fi \
869   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870     ac_prev=cache_file ;;
871   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873     cache_file=$ac_optarg ;;
874
875   --config-cache | -C)
876     cache_file=config.cache ;;
877
878   -datadir | --datadir | --datadi | --datad)
879     ac_prev=datadir ;;
880   -datadir=* | --datadir=* | --datadi=* | --datad=*)
881     datadir=$ac_optarg ;;
882
883   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884   | --dataroo | --dataro | --datar)
885     ac_prev=datarootdir ;;
886   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888     datarootdir=$ac_optarg ;;
889
890   -disable-* | --disable-*)
891     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894       as_fn_error "invalid feature name: $ac_useropt"
895     ac_useropt_orig=$ac_useropt
896     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897     case $ac_user_opts in
898       *"
899 "enable_$ac_useropt"
900 "*) ;;
901       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902          ac_unrecognized_sep=', ';;
903     esac
904     eval enable_$ac_useropt=no ;;
905
906   -docdir | --docdir | --docdi | --doc | --do)
907     ac_prev=docdir ;;
908   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909     docdir=$ac_optarg ;;
910
911   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912     ac_prev=dvidir ;;
913   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914     dvidir=$ac_optarg ;;
915
916   -enable-* | --enable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       as_fn_error "invalid feature name: $ac_useropt"
921     ac_useropt_orig=$ac_useropt
922     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923     case $ac_user_opts in
924       *"
925 "enable_$ac_useropt"
926 "*) ;;
927       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928          ac_unrecognized_sep=', ';;
929     esac
930     eval enable_$ac_useropt=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error "invalid package name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=\$ac_optarg ;;
1135
1136   -without-* | --without-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error "invalid package name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval with_$ac_useropt=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) as_fn_error "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information."
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     case $ac_envvar in #(
1178       '' | [0-9]* | *[!_$as_cr_alnum]* )
1179       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180     esac
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   as_fn_error "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201   case $enable_option_checking in
1202     no) ;;
1203     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205   esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   # Remove trailing slashes.
1216   case $ac_val in
1217     */ )
1218       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219       eval $ac_var=\$ac_val;;
1220   esac
1221   # Be sure to have absolute directory names.
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238   if test "x$build_alias" = x; then
1239     cross_compiling=maybe
1240     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241     If a cross compiler is detected then cross compile mode will be used." >&2
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgfortran]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 Program names:
1385   --program-prefix=PREFIX            prepend PREFIX to installed program names
1386   --program-suffix=SUFFIX            append SUFFIX to installed program names
1387   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-option-checking  ignore unrecognized --enable/--with options
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-version-specific-runtime-libs
1407                           specify that runtime libraries should be installed
1408                           in a compiler-specific directory
1409   --enable-intermodule    build the library in one step
1410   --enable-maintainer-mode  enable make rules and dependencies not useful
1411                           (and sometimes confusing) to the casual installer
1412   --enable-multilib       build many library versions (default)
1413   --disable-dependency-tracking  speeds up one-time build
1414   --enable-dependency-tracking   do not reject slow dependency extractors
1415   --disable-symvers       disable symbol versioning for libgfortran
1416   --enable-shared[=PKGS]  build shared libraries [default=yes]
1417   --enable-static[=PKGS]  build static libraries [default=yes]
1418   --enable-fast-install[=PKGS]
1419                           optimize for fast installation [default=yes]
1420   --disable-libtool-lock  avoid locking (might break parallel builds)
1421   --disable-largefile     omit support for large files
1422   --disable-libquadmath-support
1423                           disable libquadmath support for Fortran
1424
1425 Optional Packages:
1426   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1429   --with-pic              try to use only PIC/non-PIC objects [default=use
1430                           both]
1431   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432   --with-system-libunwind use installed libunwind
1433
1434 Some influential environment variables:
1435   CC          C compiler command
1436   CFLAGS      C compiler flags
1437   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438               nonstandard directory <lib dir>
1439   LIBS        libraries to pass to the linker, e.g. -l<library>
1440   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CPP         C preprocessor
1443   FC          Fortran compiler command
1444   FCFLAGS     Fortran compiler flags
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457   # If there are subdirs, report their specific --help.
1458   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459     test -d "$ac_dir" ||
1460       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461       continue
1462     ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468   # A ".." for each directory in $ac_dir_suffix.
1469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470   case $ac_top_builddir_sub in
1471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473   esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481   .)  # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485   [\\/]* | ?:[\\/]* )  # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489   *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506     fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508   done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513   cat <<\_ACEOF
1514 GNU Fortran Runtime Library configure 0.3
1515 generated by GNU Autoconf 2.64
1516
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534   rm -f conftest.$ac_objext
1535   if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_compile") 2>conftest.err
1543   ac_status=$?
1544   if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548   fi
1549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550   test $ac_status = 0; } && {
1551          test -z "$ac_c_werror_flag" ||
1552          test ! -s conftest.err
1553        } && test -s conftest.$ac_objext; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559         ac_retval=1
1560 fi
1561   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562   return $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_cpp LINENO
1567 # ----------------------
1568 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_cpp ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 case "(($ac_try" in
1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575   *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580   ac_status=$?
1581   if test -s conftest.err; then
1582     grep -v '^ *+' conftest.err >conftest.er1
1583     cat conftest.er1 >&5
1584     mv -f conftest.er1 conftest.err
1585   fi
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; } >/dev/null && {
1588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589          test ! -s conftest.err
1590        }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596     ac_retval=1
1597 fi
1598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599   return $ac_retval
1600
1601 } # ac_fn_c_try_cpp
1602
1603 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1606 # the include files in INCLUDES and setting the cache variable VAR
1607 # accordingly.
1608 ac_fn_c_check_header_mongrel ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615   $as_echo_n "(cached) " >&6
1616 fi
1617 eval ac_res=\$$3
1618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 else
1621   # Is the header compilable?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1623 $as_echo_n "checking $2 usability... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h.  */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630   ac_header_compiler=yes
1631 else
1632   ac_header_compiler=no
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1636 $as_echo "$ac_header_compiler" >&6; }
1637
1638 # Is the header present?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1640 $as_echo_n "checking $2 presence... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h.  */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_cpp "$LINENO"; then :
1646   ac_header_preproc=yes
1647 else
1648   ac_header_preproc=no
1649 fi
1650 rm -f conftest.err conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1652 $as_echo "$ac_header_preproc" >&6; }
1653
1654 # So?  What about this header?
1655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656   yes:no: )
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1658 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661     ;;
1662   no:yes:* )
1663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1664 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1666 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1668 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1670 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673     ;;
1674 esac
1675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678   $as_echo_n "(cached) " >&6
1679 else
1680   eval "$3=\$ac_header_compiler"
1681 fi
1682 eval ac_res=\$$3
1683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 fi
1686   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687
1688 } # ac_fn_c_check_header_mongrel
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_link") 2>&5
1705   ac_status=$?
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708   { { case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_try") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; }; }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: program exited with status $ac_status" >&5
1721        $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724        ac_retval=$ac_status
1725 fi
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728   return $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750   eval "$3=yes"
1751 else
1752   eval "$3=no"
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   rm -f conftest.$ac_objext conftest$ac_exeext
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && {
1786          test -z "$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        } && test -s conftest$ac_exeext && {
1789          test "$cross_compiling" = yes ||
1790          $as_test_x conftest$ac_exeext
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801   # interfere with the next link command; also delete a directory that is
1802   # left behind by Apple's compiler.  We do this before executing the actions.
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805   return $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   if test x$gcc_no_link = xyes; then
1821   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1822 fi
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830     which can conflict with char $2 (); below.
1831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832     <limits.h> exists even on freestanding compilers.  */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843    Use char because int might match the return type of a GCC
1844    builtin and then its argument prototype would still apply.  */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850     to always fail with ENOSYS.  Some functions are actually named
1851     something starting with __ and the normal name is an alias.  */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860   ;
1861   return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865   eval "$3=yes"
1866 else
1867   eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870     conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877 } # ac_fn_c_check_func
1878
1879 # ac_fn_fc_try_compile LINENO
1880 # ---------------------------
1881 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_fc_try_compile ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   rm -f conftest.$ac_objext
1886   if { { ac_try="$ac_compile"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_compile") 2>conftest.err
1894   ac_status=$?
1895   if test -s conftest.err; then
1896     grep -v '^ *+' conftest.err >conftest.er1
1897     cat conftest.er1 >&5
1898     mv -f conftest.er1 conftest.err
1899   fi
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; } && {
1902          test -z "$ac_fc_werror_flag" ||
1903          test ! -s conftest.err
1904        } && test -s conftest.$ac_objext; then :
1905   ac_retval=0
1906 else
1907   $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910         ac_retval=1
1911 fi
1912   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913   return $ac_retval
1914
1915 } # ac_fn_fc_try_compile
1916
1917 # ac_fn_fc_try_link LINENO
1918 # ------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_fc_try_link ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext conftest$ac_exeext
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_fc_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest$ac_exeext && {
1943          test "$cross_compiling" = yes ||
1944          $as_test_x conftest$ac_exeext
1945        }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951         ac_retval=1
1952 fi
1953   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955   # interfere with the next link command; also delete a directory that is
1956   # left behind by Apple's compiler.  We do this before executing the actions.
1957   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959   return $ac_retval
1960
1961 } # ac_fn_fc_try_link
1962
1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964 # -------------------------------------------
1965 # Tests whether TYPE exists after having included INCLUDES, setting cache
1966 # variable VAR accordingly.
1967 ac_fn_c_check_type ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   eval "$3=no"
1976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 $4
1979 int
1980 main ()
1981 {
1982 if (sizeof ($2))
1983          return 0;
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $4
1992 int
1993 main ()
1994 {
1995 if (sizeof (($2)))
1996             return 0;
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002
2003 else
2004   eval "$3=yes"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014
2015 } # ac_fn_c_check_type
2016
2017 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2018 # --------------------------------------------
2019 # Tries to find the compile-time value of EXPR in a program that includes
2020 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2021 # computed
2022 ac_fn_c_compute_int ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   if test "$cross_compiling" = yes; then
2026     # Depending upon the size, compute the lo and hi bounds.
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) >= 0)];
2034 test_array [0] = 0
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041   ac_lo=0 ac_mid=0
2042   while :; do
2043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 $4
2046 int
2047 main ()
2048 {
2049 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 test_array [0] = 0
2051
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   ac_hi=$ac_mid; break
2058 else
2059   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060                         if test $ac_lo -le $ac_mid; then
2061                           ac_lo= ac_hi=
2062                           break
2063                         fi
2064                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067   done
2068 else
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) < 0)];
2076 test_array [0] = 0
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083   ac_hi=-1 ac_mid=-1
2084   while :; do
2085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092 test_array [0] = 0
2093
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   ac_lo=$ac_mid; break
2100 else
2101   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102                         if test $ac_mid -le $ac_hi; then
2103                           ac_lo= ac_hi=
2104                           break
2105                         fi
2106                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109   done
2110 else
2111   ac_lo= ac_hi=
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 # Binary search between lo and hi bounds.
2117 while test "x$ac_lo" != "x$ac_hi"; do
2118   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 int
2123 main ()
2124 {
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133   ac_hi=$ac_mid
2134 else
2135   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 case $ac_lo in #((
2140 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2141 '') ac_retval=1 ;;
2142 esac
2143   else
2144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 static long int longval () { return $2; }
2148 static unsigned long int ulongval () { return $2; }
2149 #include <stdio.h>
2150 #include <stdlib.h>
2151 int
2152 main ()
2153 {
2154
2155   FILE *f = fopen ("conftest.val", "w");
2156   if (! f)
2157     return 1;
2158   if (($2) < 0)
2159     {
2160       long int i = longval ();
2161       if (i != ($2))
2162         return 1;
2163       fprintf (f, "%ld", i);
2164     }
2165   else
2166     {
2167       unsigned long int i = ulongval ();
2168       if (i != ($2))
2169         return 1;
2170       fprintf (f, "%lu", i);
2171     }
2172   /* Do not output a trailing newline, as this causes \r\n confusion
2173      on some platforms.  */
2174   return ferror (f) || fclose (f) != 0;
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_c_try_run "$LINENO"; then :
2181   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2182 else
2183   ac_retval=1
2184 fi
2185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2186   conftest.$ac_objext conftest.beam conftest.$ac_ext
2187 rm -f conftest.val
2188
2189   fi
2190   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191   return $ac_retval
2192
2193 } # ac_fn_c_compute_int
2194
2195 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2196 # ----------------------------------------------------
2197 # Tries to find if the field MEMBER exists in type AGGR, after including
2198 # INCLUDES, setting cache variable VAR accordingly.
2199 ac_fn_c_check_member ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2203 $as_echo_n "checking for $2.$3... " >&6; }
2204 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2205   $as_echo_n "(cached) " >&6
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $5
2210 int
2211 main ()
2212 {
2213 static $2 ac_aggr;
2214 if (ac_aggr.$3)
2215 return 0;
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   eval "$4=yes"
2222 else
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $5
2226 int
2227 main ()
2228 {
2229 static $2 ac_aggr;
2230 if (sizeof ac_aggr.$3)
2231 return 0;
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   eval "$4=yes"
2238 else
2239   eval "$4=no"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$4
2246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
2250 } # ac_fn_c_check_member
2251 cat >config.log <<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2254
2255 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2256 generated by GNU Autoconf 2.64.  Invocation command line was
2257
2258   $ $0 $@
2259
2260 _ACEOF
2261 exec 5>>config.log
2262 {
2263 cat <<_ASUNAME
2264 ## --------- ##
2265 ## Platform. ##
2266 ## --------- ##
2267
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2276
2277 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2278 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2281 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2282 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2283 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2284
2285 _ASUNAME
2286
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292     $as_echo "PATH: $as_dir"
2293   done
2294 IFS=$as_save_IFS
2295
2296 } >&5
2297
2298 cat >&5 <<_ACEOF
2299
2300
2301 ## ----------- ##
2302 ## Core tests. ##
2303 ## ----------- ##
2304
2305 _ACEOF
2306
2307
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_configure_args=
2314 ac_configure_args0=
2315 ac_configure_args1=
2316 ac_must_keep_next=false
2317 for ac_pass in 1 2
2318 do
2319   for ac_arg
2320   do
2321     case $ac_arg in
2322     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324     | -silent | --silent | --silen | --sile | --sil)
2325       continue ;;
2326     *\'*)
2327       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328     esac
2329     case $ac_pass in
2330     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331     2)
2332       as_fn_append ac_configure_args1 " '$ac_arg'"
2333       if test $ac_must_keep_next = true; then
2334         ac_must_keep_next=false # Got value, back to normal.
2335       else
2336         case $ac_arg in
2337           *=* | --config-cache | -C | -disable-* | --disable-* \
2338           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340           | -with-* | --with-* | -without-* | --without-* | --x)
2341             case "$ac_configure_args0 " in
2342               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343             esac
2344             ;;
2345           -* ) ac_must_keep_next=true ;;
2346         esac
2347       fi
2348       as_fn_append ac_configure_args " '$ac_arg'"
2349       ;;
2350     esac
2351   done
2352 done
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2355
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log.  We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362   # Save into config.log some information that might help in debugging.
2363   {
2364     echo
2365
2366     cat <<\_ASBOX
2367 ## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##
2370 _ASBOX
2371     echo
2372     # The following way of writing the cache mishandles newlines in values,
2373 (
2374   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375     eval ac_val=\$$ac_var
2376     case $ac_val in #(
2377     *${as_nl}*)
2378       case $ac_var in #(
2379       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381       esac
2382       case $ac_var in #(
2383       _ | IFS | as_nl) ;; #(
2384       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385       *) { eval $ac_var=; unset $ac_var;} ;;
2386       esac ;;
2387     esac
2388   done
2389   (set) 2>&1 |
2390     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391     *${as_nl}ac_space=\ *)
2392       sed -n \
2393         "s/'\''/'\''\\\\'\'''\''/g;
2394           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395       ;; #(
2396     *)
2397       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398       ;;
2399     esac |
2400     sort
2401 )
2402     echo
2403
2404     cat <<\_ASBOX
2405 ## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##
2408 _ASBOX
2409     echo
2410     for ac_var in $ac_subst_vars
2411     do
2412       eval ac_val=\$$ac_var
2413       case $ac_val in
2414       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415       esac
2416       $as_echo "$ac_var='\''$ac_val'\''"
2417     done | sort
2418     echo
2419
2420     if test -n "$ac_subst_files"; then
2421       cat <<\_ASBOX
2422 ## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##
2425 _ASBOX
2426       echo
2427       for ac_var in $ac_subst_files
2428       do
2429         eval ac_val=\$$ac_var
2430         case $ac_val in
2431         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432         esac
2433         $as_echo "$ac_var='\''$ac_val'\''"
2434       done | sort
2435       echo
2436     fi
2437
2438     if test -s confdefs.h; then
2439       cat <<\_ASBOX
2440 ## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##
2443 _ASBOX
2444       echo
2445       cat confdefs.h
2446       echo
2447     fi
2448     test "$ac_signal" != 0 &&
2449       $as_echo "$as_me: caught signal $ac_signal"
2450     $as_echo "$as_me: exit $exit_status"
2451   } >&5
2452   rm -f core *.core core.conftest.* &&
2453     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454     exit $exit_status
2455 ' 0
2456 for ac_signal in 1 2 13 15; do
2457   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 done
2459 ac_signal=0
2460
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest* confdefs.h
2463
2464 $as_echo "/* confdefs.h */" > confdefs.h
2465
2466 # Predefined preprocessor variables.
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 _ACEOF
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2490 _ACEOF
2491
2492
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2495 ac_site_file1=NONE
2496 ac_site_file2=NONE
2497 if test -n "$CONFIG_SITE"; then
2498   ac_site_file1=$CONFIG_SITE
2499 elif test "x$prefix" != xNONE; then
2500   ac_site_file1=$prefix/share/config.site
2501   ac_site_file2=$prefix/etc/config.site
2502 else
2503   ac_site_file1=$ac_default_prefix/share/config.site
2504   ac_site_file2=$ac_default_prefix/etc/config.site
2505 fi
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507 do
2508   test "x$ac_site_file" = xNONE && continue
2509   if test -r "$ac_site_file"; then
2510     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512     sed 's/^/| /' "$ac_site_file" >&5
2513     . "$ac_site_file"
2514   fi
2515 done
2516
2517 if test -r "$cache_file"; then
2518   # Some versions of bash will fail to source /dev/null (special
2519   # files actually), so we avoid doing that.
2520   if test -f "$cache_file"; then
2521     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523     case $cache_file in
2524       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525       *)                      . "./$cache_file";;
2526     esac
2527   fi
2528 else
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531   >$cache_file
2532 fi
2533
2534 as_fn_append ac_header_list " unistd.h"
2535 as_fn_append ac_header_list " sys/time.h"
2536 as_fn_append ac_header_list " sys/times.h"
2537 as_fn_append ac_header_list " sys/resource.h"
2538 as_fn_append ac_header_list " sys/types.h"
2539 as_fn_append ac_header_list " sys/stat.h"
2540 as_fn_append ac_header_list " sys/wait.h"
2541 as_fn_append ac_header_list " floatingpoint.h"
2542 as_fn_append ac_header_list " ieeefp.h"
2543 as_fn_append ac_header_list " fenv.h"
2544 as_fn_append ac_header_list " fptrap.h"
2545 as_fn_append ac_header_list " pwd.h"
2546 as_fn_append ac_header_list " complex.h"
2547 as_fn_append ac_func_list " getrusage"
2548 as_fn_append ac_func_list " times"
2549 as_fn_append ac_func_list " mkstemp"
2550 as_fn_append ac_func_list " strtof"
2551 as_fn_append ac_func_list " strtold"
2552 as_fn_append ac_func_list " snprintf"
2553 as_fn_append ac_func_list " ftruncate"
2554 as_fn_append ac_func_list " chsize"
2555 as_fn_append ac_func_list " chdir"
2556 as_fn_append ac_func_list " getlogin"
2557 as_fn_append ac_func_list " gethostname"
2558 as_fn_append ac_func_list " kill"
2559 as_fn_append ac_func_list " link"
2560 as_fn_append ac_func_list " symlink"
2561 as_fn_append ac_func_list " sleep"
2562 as_fn_append ac_func_list " ttyname"
2563 as_fn_append ac_func_list " alarm"
2564 as_fn_append ac_func_list " access"
2565 as_fn_append ac_func_list " fork"
2566 as_fn_append ac_func_list " execl"
2567 as_fn_append ac_func_list " wait"
2568 as_fn_append ac_func_list " setmode"
2569 as_fn_append ac_func_list " execve"
2570 as_fn_append ac_func_list " pipe"
2571 as_fn_append ac_func_list " dup2"
2572 as_fn_append ac_func_list " close"
2573 as_fn_append ac_func_list " strcasestr"
2574 as_fn_append ac_func_list " getrlimit"
2575 as_fn_append ac_func_list " gettimeofday"
2576 as_fn_append ac_func_list " stat"
2577 as_fn_append ac_func_list " fstat"
2578 as_fn_append ac_func_list " lstat"
2579 as_fn_append ac_func_list " getpwuid"
2580 as_fn_append ac_func_list " vsnprintf"
2581 as_fn_append ac_func_list " dup"
2582 as_fn_append ac_func_list " getcwd"
2583 as_fn_append ac_func_list " localtime_r"
2584 as_fn_append ac_func_list " gmtime_r"
2585 as_fn_append ac_func_list " getpwuid_r"
2586 as_fn_append ac_func_list " ttyname_r"
2587 as_fn_append ac_func_list " clock_gettime"
2588 as_fn_append ac_func_list " readlink"
2589 as_fn_append ac_func_list " getgid"
2590 as_fn_append ac_func_list " getpid"
2591 as_fn_append ac_func_list " getppid"
2592 as_fn_append ac_func_list " getuid"
2593 as_fn_append ac_func_list " geteuid"
2594 as_fn_append ac_func_list " umask"
2595 as_fn_append ac_func_list " getegid"
2596 as_fn_append ac_func_list " secure_getenv"
2597 as_fn_append ac_func_list " __secure_getenv"
2598 as_fn_append ac_header_list " math.h"
2599 # Check that the precious variables saved in the cache have kept the same
2600 # value.
2601 ac_cache_corrupted=false
2602 for ac_var in $ac_precious_vars; do
2603   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2604   eval ac_new_set=\$ac_env_${ac_var}_set
2605   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2606   eval ac_new_val=\$ac_env_${ac_var}_value
2607   case $ac_old_set,$ac_new_set in
2608     set,)
2609       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2610 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2611       ac_cache_corrupted=: ;;
2612     ,set)
2613       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2615       ac_cache_corrupted=: ;;
2616     ,);;
2617     *)
2618       if test "x$ac_old_val" != "x$ac_new_val"; then
2619         # differences in whitespace do not lead to failure.
2620         ac_old_val_w=`echo x $ac_old_val`
2621         ac_new_val_w=`echo x $ac_new_val`
2622         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2623           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2624 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2625           ac_cache_corrupted=:
2626         else
2627           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2628 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2629           eval $ac_var=\$ac_old_val
2630         fi
2631         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2632 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2633         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2634 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2635       fi;;
2636   esac
2637   # Pass precious variables to config.status.
2638   if test "$ac_new_set" = set; then
2639     case $ac_new_val in
2640     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2641     *) ac_arg=$ac_var=$ac_new_val ;;
2642     esac
2643     case " $ac_configure_args " in
2644       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2645       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2646     esac
2647   fi
2648 done
2649 if $ac_cache_corrupted; then
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2653 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2654   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2655 fi
2656 ## -------------------- ##
2657 ## Main body of script. ##
2658 ## -------------------- ##
2659
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666
2667
2668
2669
2670 ac_config_headers="$ac_config_headers config.h"
2671
2672 ac_aux_dir=
2673 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2674   for ac_t in install-sh install.sh shtool; do
2675     if test -f "$ac_dir/$ac_t"; then
2676       ac_aux_dir=$ac_dir
2677       ac_install_sh="$ac_aux_dir/$ac_t -c"
2678       break 2
2679     fi
2680   done
2681 done
2682 if test -z "$ac_aux_dir"; then
2683   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2684 fi
2685
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2693
2694
2695 # Make sure we can run config.sub.
2696 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2697   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2700 $as_echo_n "checking build system type... " >&6; }
2701 if test "${ac_cv_build+set}" = set; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   ac_build_alias=$build_alias
2705 test "x$ac_build_alias" = x &&
2706   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2707 test "x$ac_build_alias" = x &&
2708   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2709 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2710   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2711
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2714 $as_echo "$ac_cv_build" >&6; }
2715 case $ac_cv_build in
2716 *-*-*) ;;
2717 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2718 esac
2719 build=$ac_cv_build
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_build
2722 shift
2723 build_cpu=$1
2724 build_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 build_os=$*
2729 IFS=$ac_save_IFS
2730 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2731
2732
2733  case ${build_alias} in
2734   "") build_noncanonical=${build} ;;
2735   *) build_noncanonical=${build_alias} ;;
2736 esac
2737
2738  case ${host_alias} in
2739   "") host_noncanonical=${build_noncanonical} ;;
2740   *) host_noncanonical=${host_alias} ;;
2741 esac
2742
2743  case ${target_alias} in
2744   "") target_noncanonical=${host_noncanonical} ;;
2745   *) target_noncanonical=${target_alias} ;;
2746 esac
2747
2748
2749 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2750 # have matching libraries, they should use host libraries: Makefile.tpl
2751 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2752 # However, they still use the build modules, because the corresponding
2753 # host modules (e.g. bison) are only built for the host when bootstrap
2754 # finishes. So:
2755 # - build_subdir is where we find build modules, and never changes.
2756 # - build_libsubdir is where we find build libraries, and can be overridden.
2757
2758 # Prefix 'build-' so this never conflicts with target_subdir.
2759 build_subdir="build-${build_noncanonical}"
2760
2761 # Check whether --with-build-libsubdir was given.
2762 if test "${with_build_libsubdir+set}" = set; then :
2763   withval=$with_build_libsubdir; build_libsubdir="$withval"
2764 else
2765   build_libsubdir="$build_subdir"
2766 fi
2767
2768 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2769 if ( test $srcdir = . && test -d gcc ) \
2770    || test -d $srcdir/../host-${host_noncanonical}; then
2771   host_subdir="host-${host_noncanonical}"
2772 else
2773   host_subdir=.
2774 fi
2775 # No prefix.
2776 target_subdir=${target_noncanonical}
2777
2778
2779 # -------
2780 # Options
2781 # -------
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2784 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2785 # Check whether --enable-version-specific-runtime-libs was given.
2786 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2787   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2788  yes) version_specific_libs=yes ;;
2789  no)  version_specific_libs=no ;;
2790  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2791  esac
2792 else
2793   version_specific_libs=no
2794 fi
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2797 $as_echo "$version_specific_libs" >&6; }
2798
2799 # Build with intermodule optimisations
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2801 $as_echo_n "checking for --enable-intermodule... " >&6; }
2802 # Check whether --enable-intermodule was given.
2803 if test "${enable_intermodule+set}" = set; then :
2804   enableval=$enable_intermodule; case "$enable_intermodule" in
2805   yes) onestep="-onestep";;
2806     *) onestep="";;
2807 esac
2808 else
2809   onestep=""
2810 fi
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2813 $as_echo "$enable_intermodule" >&6; }
2814  if test x$onestep = x-onestep; then
2815   onestep_TRUE=
2816   onestep_FALSE='#'
2817 else
2818   onestep_TRUE='#'
2819   onestep_FALSE=
2820 fi
2821
2822
2823
2824 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2825 #
2826 # You will slowly go insane if you do not grok the following fact:  when
2827 # building this library, the top-level /target/ becomes the library's /host/.
2828 #
2829 # configure then causes --target to default to --host, exactly like any
2830 # other package using autoconf.  Therefore, 'target' and 'host' will
2831 # always be the same.  This makes sense both for native and cross compilers
2832 # just think about it for a little while.  :-)
2833 #
2834 # Also, if this library is being configured as part of a cross compiler, the
2835 # top-level configure script will pass the "real" host as $with_cross_host.
2836 #
2837 # Do not delete or change the following two lines.  For why, see
2838 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2840 $as_echo_n "checking host system type... " >&6; }
2841 if test "${ac_cv_host+set}" = set; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   if test "x$host_alias" = x; then
2845   ac_cv_host=$ac_cv_build
2846 else
2847   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2848     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2849 fi
2850
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2853 $as_echo "$ac_cv_host" >&6; }
2854 case $ac_cv_host in
2855 *-*-*) ;;
2856 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2857 esac
2858 host=$ac_cv_host
2859 ac_save_IFS=$IFS; IFS='-'
2860 set x $ac_cv_host
2861 shift
2862 host_cpu=$1
2863 host_vendor=$2
2864 shift; shift
2865 # Remember, the first character of IFS is used to create $*,
2866 # except with old shells:
2867 host_os=$*
2868 IFS=$ac_save_IFS
2869 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2870
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2873 $as_echo_n "checking target system type... " >&6; }
2874 if test "${ac_cv_target+set}" = set; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test "x$target_alias" = x; then
2878   ac_cv_target=$ac_cv_host
2879 else
2880   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2881     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2882 fi
2883
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2886 $as_echo "$ac_cv_target" >&6; }
2887 case $ac_cv_target in
2888 *-*-*) ;;
2889 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2890 esac
2891 target=$ac_cv_target
2892 ac_save_IFS=$IFS; IFS='-'
2893 set x $ac_cv_target
2894 shift
2895 target_cpu=$1
2896 target_vendor=$2
2897 shift; shift
2898 # Remember, the first character of IFS is used to create $*,
2899 # except with old shells:
2900 target_os=$*
2901 IFS=$ac_save_IFS
2902 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2903
2904
2905 # The aliases save the names the user supplied, while $host etc.
2906 # will get canonicalized.
2907 test -n "$target_alias" &&
2908   test "$program_prefix$program_suffix$program_transform_name" = \
2909     NONENONEs,x,x, &&
2910   program_prefix=${target_alias}-
2911
2912
2913
2914
2915 target_alias=${target_alias-$host_alias}
2916
2917
2918 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2919 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2920 #  1.9.6:  minimum required version
2921 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2922 #              of other PACKAGE_* variables will, however, and there's nothing
2923 #              we can do about that; they come from AC_INIT).
2924 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2925 #            file in the top srcdir, etc, etc), so stop complaining.
2926 #  no-dist:  we don't want 'dist' and related rules.
2927 #  -Wall:  turns on all automake warnings...
2928 #  -Wno-portability:  ...except this one, since GNU make is required.
2929 am__api_version='1.11'
2930
2931 # Find a good install program.  We prefer a C program (faster),
2932 # so one script is as good as another.  But avoid the broken or
2933 # incompatible versions:
2934 # SysV /etc/install, /usr/sbin/install
2935 # SunOS /usr/etc/install
2936 # IRIX /sbin/install
2937 # AIX /bin/install
2938 # AmigaOS /C/install, which installs bootblocks on floppy discs
2939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942 # OS/2's system install, which has a completely different semantic
2943 # ./install, which can be erroneously created by make from ./install.sh.
2944 # Reject install programs that cannot install multiple files.
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2946 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2947 if test -z "$INSTALL"; then
2948 if test "${ac_cv_path_install+set}" = set; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956     # Account for people who put trailing slashes in PATH elements.
2957 case $as_dir/ in #((
2958   ./ | .// | /[cC]/* | \
2959   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2960   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2961   /usr/ucb/* ) ;;
2962   *)
2963     # OSF1 and SCO ODT 3.0 have their own names for install.
2964     # Don't use installbsd from OSF since it installs stuff as root
2965     # by default.
2966     for ac_prog in ginstall scoinst install; do
2967       for ac_exec_ext in '' $ac_executable_extensions; do
2968         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2969           if test $ac_prog = install &&
2970             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971             # AIX install.  It has an incompatible calling convention.
2972             :
2973           elif test $ac_prog = install &&
2974             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975             # program-specific install script used by HP pwplus--don't use.
2976             :
2977           else
2978             rm -rf conftest.one conftest.two conftest.dir
2979             echo one > conftest.one
2980             echo two > conftest.two
2981             mkdir conftest.dir
2982             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2983               test -s conftest.one && test -s conftest.two &&
2984               test -s conftest.dir/conftest.one &&
2985               test -s conftest.dir/conftest.two
2986             then
2987               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2988               break 3
2989             fi
2990           fi
2991         fi
2992       done
2993     done
2994     ;;
2995 esac
2996
2997   done
2998 IFS=$as_save_IFS
2999
3000 rm -rf conftest.one conftest.two conftest.dir
3001
3002 fi
3003   if test "${ac_cv_path_install+set}" = set; then
3004     INSTALL=$ac_cv_path_install
3005   else
3006     # As a last resort, use the slow shell script.  Don't cache a
3007     # value for INSTALL within a source directory, because that will
3008     # break other packages using the cache if that directory is
3009     # removed, or if the value is a relative name.
3010     INSTALL=$ac_install_sh
3011   fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3014 $as_echo "$INSTALL" >&6; }
3015
3016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3017 # It thinks the first close brace ends the variable substitution.
3018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019
3020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021
3022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3025 $as_echo_n "checking whether build environment is sane... " >&6; }
3026 # Just in case
3027 sleep 1
3028 echo timestamp > conftest.file
3029 # Reject unsafe characters in $srcdir or the absolute working directory
3030 # name.  Accept space and tab only in the latter.
3031 am_lf='
3032 '
3033 case `pwd` in
3034   *[\\\"\#\$\&\'\`$am_lf]*)
3035     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3036 esac
3037 case $srcdir in
3038   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3039     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3040 esac
3041
3042 # Do `set' in a subshell so we don't clobber the current shell's
3043 # arguments.  Must try -L first in case configure is actually a
3044 # symlink; some systems play weird games with the mod time of symlinks
3045 # (eg FreeBSD returns the mod time of the symlink's containing
3046 # directory).
3047 if (
3048    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3049    if test "$*" = "X"; then
3050       # -L didn't work.
3051       set X `ls -t "$srcdir/configure" conftest.file`
3052    fi
3053    rm -f conftest.file
3054    if test "$*" != "X $srcdir/configure conftest.file" \
3055       && test "$*" != "X conftest.file $srcdir/configure"; then
3056
3057       # If neither matched, then we have a broken ls.  This can happen
3058       # if, for instance, CONFIG_SHELL is bash and it inherits a
3059       # broken ls alias from the environment.  This has actually
3060       # happened.  Such a system could not be considered "sane".
3061       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3062 alias in your environment" "$LINENO" 5
3063    fi
3064
3065    test "$2" = conftest.file
3066    )
3067 then
3068    # Ok.
3069    :
3070 else
3071    as_fn_error "newly created file is older than distributed files!
3072 Check your system clock" "$LINENO" 5
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075 $as_echo "yes" >&6; }
3076 test "$program_prefix" != NONE &&
3077   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3078 # Use a double $ so make ignores it.
3079 test "$program_suffix" != NONE &&
3080   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3081 # Double any \ or $.
3082 # By default was `s,x,x', remove it if useless.
3083 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3084 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3085
3086 # expand $ac_aux_dir to an absolute path
3087 am_aux_dir=`cd $ac_aux_dir && pwd`
3088
3089 if test x"${MISSING+set}" != xset; then
3090   case $am_aux_dir in
3091   *\ * | *\     *)
3092     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3093   *)
3094     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3095   esac
3096 fi
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099   am_missing_run="$MISSING --run "
3100 else
3101   am_missing_run=
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3103 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 fi
3105
3106 if test x"${install_sh}" != xset; then
3107   case $am_aux_dir in
3108   *\ * | *\     *)
3109     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3110   *)
3111     install_sh="\${SHELL} $am_aux_dir/install-sh"
3112   esac
3113 fi
3114
3115 # Installed binaries are usually stripped using `strip' when the user
3116 # run `make install-strip'.  However `strip' might not be the right
3117 # tool to use in cross-compilation environments, therefore Automake
3118 # will honor the `STRIP' environment variable to overrule this program.
3119 if test "$cross_compiling" != no; then
3120   if test -n "$ac_tool_prefix"; then
3121   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}strip; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_STRIP+set}" = set; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$STRIP"; then
3129   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 STRIP=$ac_cv_prog_STRIP
3149 if test -n "$STRIP"; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3151 $as_echo "$STRIP" >&6; }
3152 else
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if test -z "$ac_cv_prog_STRIP"; then
3160   ac_ct_STRIP=$STRIP
3161   # Extract the first word of "strip", so it can be a program name with args.
3162 set dummy strip; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$ac_ct_STRIP"; then
3169   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178     ac_cv_prog_ac_ct_STRIP="strip"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3189 if test -n "$ac_ct_STRIP"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3191 $as_echo "$ac_ct_STRIP" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197   if test "x$ac_ct_STRIP" = x; then
3198     STRIP=":"
3199   else
3200     case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206     STRIP=$ac_ct_STRIP
3207   fi
3208 else
3209   STRIP="$ac_cv_prog_STRIP"
3210 fi
3211
3212 fi
3213 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3216 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3217 if test -z "$MKDIR_P"; then
3218   if test "${ac_cv_path_mkdir+set}" = set; then :
3219   $as_echo_n "(cached) " >&6
3220 else
3221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226     for ac_prog in mkdir gmkdir; do
3227          for ac_exec_ext in '' $ac_executable_extensions; do
3228            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3229            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3230              'mkdir (GNU coreutils) '* | \
3231              'mkdir (coreutils) '* | \
3232              'mkdir (fileutils) '4.1*)
3233                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3234                break 3;;
3235            esac
3236          done
3237        done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242
3243   if test "${ac_cv_path_mkdir+set}" = set; then
3244     MKDIR_P="$ac_cv_path_mkdir -p"
3245   else
3246     # As a last resort, use the slow shell script.  Don't cache a
3247     # value for MKDIR_P within a source directory, because that will
3248     # break other packages using the cache if that directory is
3249     # removed, or if the value is a relative name.
3250     test -d ./--version && rmdir ./--version
3251     MKDIR_P="$ac_install_sh -d"
3252   fi
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3255 $as_echo "$MKDIR_P" >&6; }
3256
3257 mkdir_p="$MKDIR_P"
3258 case $mkdir_p in
3259   [\\/$]* | ?:[\\/]*) ;;
3260   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3261 esac
3262
3263 for ac_prog in gawk mawk nawk awk
3264 do
3265   # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_AWK+set}" = set; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   if test -n "$AWK"; then
3273   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278   IFS=$as_save_IFS
3279   test -z "$as_dir" && as_dir=.
3280     for ac_exec_ext in '' $ac_executable_extensions; do
3281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282     ac_cv_prog_AWK="$ac_prog"
3283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284     break 2
3285   fi
3286 done
3287   done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 AWK=$ac_cv_prog_AWK
3293 if test -n "$AWK"; then
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295 $as_echo "$AWK" >&6; }
3296 else
3297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302   test -n "$AWK" && break
3303 done
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3307 set x ${MAKE-make}
3308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   cat >conftest.make <<\_ACEOF
3313 SHELL = /bin/sh
3314 all:
3315         @echo '@@@%%%=$(MAKE)=@@@%%%'
3316 _ACEOF
3317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319   *@@@%%%=?*=@@@%%%*)
3320     eval ac_cv_prog_make_${ac_make}_set=yes;;
3321   *)
3322     eval ac_cv_prog_make_${ac_make}_set=no;;
3323 esac
3324 rm -f conftest.make
3325 fi
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329   SET_MAKE=
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333   SET_MAKE="MAKE=${MAKE-make}"
3334 fi
3335
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3339   am__leading_dot=.
3340 else
3341   am__leading_dot=_
3342 fi
3343 rmdir .tst 2>/dev/null
3344
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347   # is not polluted with repeated "-I."
3348   am__isrc=' -I$(srcdir)'
3349   # test to see if srcdir already configured
3350   if test -f $srcdir/config.status; then
3351     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3352   fi
3353 fi
3354
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357   if (cygpath --version) >/dev/null 2>/dev/null; then
3358     CYGPATH_W='cygpath -w'
3359   else
3360     CYGPATH_W=echo
3361   fi
3362 fi
3363
3364
3365 # Define the identity of the package.
3366  PACKAGE='libgfortran'
3367  VERSION='0.3'
3368
3369
3370 # Some tools Automake needs.
3371
3372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3373
3374
3375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3376
3377
3378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3379
3380
3381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3382
3383
3384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3385
3386 # We need awk for the "check" target.  The system "awk" is bad on
3387 # some platforms.
3388 # Always define AMTAR for backward compatibility.  Yes, it's still used
3389 # in the wild :-(  We should find a proper way to deprecate it ...
3390 AMTAR='$${TAR-tar}'
3391
3392 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3393
3394
3395
3396
3397
3398
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3401 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3402     # Check whether --enable-maintainer-mode was given.
3403 if test "${enable_maintainer_mode+set}" = set; then :
3404   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3405 else
3406   USE_MAINTAINER_MODE=no
3407 fi
3408
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3410 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3411    if test $USE_MAINTAINER_MODE = yes; then
3412   MAINTAINER_MODE_TRUE=
3413   MAINTAINER_MODE_FALSE='#'
3414 else
3415   MAINTAINER_MODE_TRUE='#'
3416   MAINTAINER_MODE_FALSE=
3417 fi
3418
3419   MAINT=$MAINTAINER_MODE_TRUE
3420
3421
3422 # Default to --enable-multilib
3423 # Check whether --enable-multilib was given.
3424 if test "${enable_multilib+set}" = set; then :
3425   enableval=$enable_multilib; case "$enableval" in
3426   yes) multilib=yes ;;
3427   no)  multilib=no ;;
3428   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3429  esac
3430 else
3431   multilib=yes
3432 fi
3433
3434
3435 # We may get other options which we leave undocumented:
3436 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3437 # See config-ml.in if you want the gory details.
3438
3439 if test "$srcdir" = "."; then
3440   if test "$with_target_subdir" != "."; then
3441     multi_basedir="$srcdir/$with_multisrctop../.."
3442   else
3443     multi_basedir="$srcdir/$with_multisrctop.."
3444   fi
3445 else
3446   multi_basedir="$srcdir/.."
3447 fi
3448
3449
3450 # Even if the default multilib is not a cross compilation,
3451 # it may be that some of the other multilibs are.
3452 if test $cross_compiling = no && test $multilib = yes \
3453    && test "x${with_multisubdir}" != x ; then
3454    cross_compiling=maybe
3455 fi
3456
3457 ac_config_commands="$ac_config_commands default-1"
3458
3459
3460 # Handy for debugging:
3461 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3462
3463 # Are we being configured with some form of cross compiler?
3464 # NB: We don't actually need to know this just now, but when, say, a test
3465 #     suite is included, we'll have to know.
3466 if test "$build" != "$host"; then
3467   LIBGFOR_IS_NATIVE=false
3468
3469 else
3470   LIBGFOR_IS_NATIVE=true
3471 fi
3472
3473 DEPDIR="${am__leading_dot}deps"
3474
3475 ac_config_commands="$ac_config_commands depfiles"
3476
3477
3478 am_make=${MAKE-make}
3479 cat > confinc << 'END'
3480 am__doit:
3481         @echo this is the am__doit target
3482 .PHONY: am__doit
3483 END
3484 # If we don't find an include directive, just comment out the code.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3487 am__include="#"
3488 am__quote=
3489 _am_result=none
3490 # First try GNU make style include.
3491 echo "include confinc" > confmf
3492 # Ignore all kinds of additional output from `make'.
3493 case `$am_make -s -f confmf 2> /dev/null` in #(
3494 *the\ am__doit\ target*)
3495   am__include=include
3496   am__quote=
3497   _am_result=GNU
3498   ;;
3499 esac
3500 # Now try BSD make style include.
3501 if test "$am__include" = "#"; then
3502    echo '.include "confinc"' > confmf
3503    case `$am_make -s -f confmf 2> /dev/null` in #(
3504    *the\ am__doit\ target*)
3505      am__include=.include
3506      am__quote="\""
3507      _am_result=BSD
3508      ;;
3509    esac
3510 fi
3511
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3514 $as_echo "$_am_result" >&6; }
3515 rm -f confinc confmf
3516
3517 # Check whether --enable-dependency-tracking was given.
3518 if test "${enable_dependency_tracking+set}" = set; then :
3519   enableval=$enable_dependency_tracking;
3520 fi
3521
3522 if test "x$enable_dependency_tracking" != xno; then
3523   am_depcomp="$ac_aux_dir/depcomp"
3524   AMDEPBACKSLASH='\'
3525   am__nodep='_no'
3526 fi
3527  if test "x$enable_dependency_tracking" != xno; then
3528   AMDEP_TRUE=
3529   AMDEP_FALSE='#'
3530 else
3531   AMDEP_TRUE='#'
3532   AMDEP_FALSE=
3533 fi
3534
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_CC+set}" = set; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   if test -n "$CC"; then
3550   ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564   done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578
3579 fi
3580 if test -z "$ac_cv_prog_CC"; then
3581   ac_ct_CC=$CC
3582   # Extract the first word of "gcc", so it can be a program name with args.
3583 set dummy gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$ac_ct_CC"; then
3590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599     ac_cv_prog_ac_ct_CC="gcc"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 $as_echo "$ac_ct_CC" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618   if test "x$ac_ct_CC" = x; then
3619     CC=""
3620   else
3621     case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627     CC=$ac_ct_CC
3628   fi
3629 else
3630   CC="$ac_cv_prog_CC"
3631 fi
3632
3633 if test -z "$CC"; then
3634           if test -n "$ac_tool_prefix"; then
3635     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636 set dummy ${ac_tool_prefix}cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then :
3640   $as_echo_n "(cached) " >&6
3641 else
3642   if test -n "$CC"; then
3643   ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650     for ac_exec_ext in '' $ac_executable_extensions; do
3651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652     ac_cv_prog_CC="${ac_tool_prefix}cc"
3653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654     break 2
3655   fi
3656 done
3657   done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3666 else
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671
3672   fi
3673 fi
3674 if test -z "$CC"; then
3675   # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$CC"; then
3683   ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685   ac_prog_rejected=no
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691     for ac_exec_ext in '' $ac_executable_extensions; do
3692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694        ac_prog_rejected=yes
3695        continue
3696      fi
3697     ac_cv_prog_CC="cc"
3698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702   done
3703 IFS=$as_save_IFS
3704
3705 if test $ac_prog_rejected = yes; then
3706   # We found a bogon in the path, so make sure we never use it.
3707   set dummy $ac_cv_prog_CC
3708   shift
3709   if test $# != 0; then
3710     # We chose a different compiler from the bogus one.
3711     # However, it has the same basename, so the bogon will be chosen
3712     # first if we set CC to just the basename; use the full file name.
3713     shift
3714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3715   fi
3716 fi
3717 fi
3718 fi
3719 CC=$ac_cv_prog_CC
3720 if test -n "$CC"; then
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3723 else
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728
3729 fi
3730 if test -z "$CC"; then
3731   if test -n "$ac_tool_prefix"; then
3732   for ac_prog in cl.exe
3733   do
3734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_CC+set}" = set; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   if test -n "$CC"; then
3742   ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749     for ac_exec_ext in '' $ac_executable_extensions; do
3750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753     break 2
3754   fi
3755 done
3756   done
3757 IFS=$as_save_IFS
3758
3759 fi
3760 fi
3761 CC=$ac_cv_prog_CC
3762 if test -n "$CC"; then
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3765 else
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770
3771     test -n "$CC" && break
3772   done
3773 fi
3774 if test -z "$CC"; then
3775   ac_ct_CC=$CC
3776   for ac_prog in cl.exe
3777 do
3778   # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -n "$ac_ct_CC"; then
3786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_exec_ext in '' $ac_executable_extensions; do
3794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795     ac_cv_prog_ac_ct_CC="$ac_prog"
3796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800   done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3809 else
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815   test -n "$ac_ct_CC" && break
3816 done
3817
3818   if test "x$ac_ct_CC" = x; then
3819     CC=""
3820   else
3821     case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827     CC=$ac_ct_CC
3828   fi
3829 fi
3830
3831 fi
3832
3833
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error "no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details." "$LINENO" 5; }
3838
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844   { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852   ac_status=$?
3853   if test -s conftest.err; then
3854     sed '10a\
3855 ... rest of stderr output deleted ...
3856          10q' conftest.err >conftest.er1
3857     cat conftest.er1 >&5
3858     rm -f conftest.er1 conftest.err
3859   fi
3860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861   test $ac_status = 0; }
3862 done
3863
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 # FIXME: Cleanup?
3876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3877   (eval $ac_link) 2>&5
3878   ac_status=$?
3879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880   test $ac_status = 0; }; then :
3881   gcc_no_link=no
3882 else
3883   gcc_no_link=yes
3884 fi
3885 if test x$gcc_no_link = xyes; then
3886   # Setting cross_compile will disable run tests; it will
3887   # also disable AC_CHECK_FILE but that's generally
3888   # correct if we can't link.
3889   cross_compiling=yes
3890   EXEEXT=
3891 else
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 ac_clean_files_save=$ac_clean_files
3904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3905 # Try to create an executable without -o first, disregard a.out.
3906 # It will help us diagnose broken compilers, and finding out an intuition
3907 # of exeext.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3909 $as_echo_n "checking for C compiler default output file name... " >&6; }
3910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3911
3912 # The possible output files:
3913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3914
3915 ac_rmfiles=
3916 for ac_file in $ac_files
3917 do
3918   case $ac_file in
3919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3921   esac
3922 done
3923 rm -f $ac_rmfiles
3924
3925 if { { ac_try="$ac_link_default"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932   (eval "$ac_link_default") 2>&5
3933   ac_status=$?
3934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935   test $ac_status = 0; }; then :
3936   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3938 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3939 # so that the user can short-circuit this test for compilers unknown to
3940 # Autoconf.
3941 for ac_file in $ac_files ''
3942 do
3943   test -f "$ac_file" || continue
3944   case $ac_file in
3945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3946         ;;
3947     [ab].out )
3948         # We found the default executable, but exeext='' is most
3949         # certainly right.
3950         break;;
3951     *.* )
3952         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3953         then :; else
3954            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955         fi
3956         # We set ac_cv_exeext here because the later test for it is not
3957         # safe: cross compilers may not add the suffix if given an `-o'
3958         # argument, so we may need to know it at that point already.
3959         # Even if this section looks crufty: it has the advantage of
3960         # actually working.
3961         break;;
3962     * )
3963         break;;
3964   esac
3965 done
3966 test "$ac_cv_exeext" = no && ac_cv_exeext=
3967
3968 else
3969   ac_file=''
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972 $as_echo "$ac_file" >&6; }
3973 if test -z "$ac_file"; then :
3974   $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 { as_fn_set_status 77
3980 as_fn_error "C compiler cannot create executables
3981 See \`config.log' for more details." "$LINENO" 5; }; }
3982 fi
3983 ac_exeext=$ac_cv_exeext
3984
3985 # Check that the compiler produces executables we can run.  If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3988 $as_echo_n "checking whether the C compiler works... " >&6; }
3989 # If not cross compiling, check that we can run a simple program.
3990 if test "$cross_compiling" != yes; then
3991   if { ac_try='./$ac_file'
3992   { { case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998   (eval "$ac_try") 2>&5
3999   ac_status=$?
4000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001   test $ac_status = 0; }; }; then
4002     cross_compiling=no
4003   else
4004     if test "$cross_compiling" = maybe; then
4005         cross_compiling=yes
4006     else
4007         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error "cannot run C compiled programs.
4010 If you meant to cross compile, use \`--host'.
4011 See \`config.log' for more details." "$LINENO" 5; }
4012     fi
4013   fi
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017
4018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4019 ac_clean_files=$ac_clean_files_save
4020 # Check that the compiler produces executables we can run.  If not, either
4021 # the compiler is broken, or we cross compile.
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4023 $as_echo_n "checking whether we are cross compiling... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025 $as_echo "$cross_compiling" >&6; }
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4028 $as_echo_n "checking for suffix of executables... " >&6; }
4029 if { { ac_try="$ac_link"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036   (eval "$ac_link") 2>&5
4037   ac_status=$?
4038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039   test $ac_status = 0; }; then :
4040   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4041 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4042 # work properly (i.e., refer to `conftest.exe'), while it won't with
4043 # `rm'.
4044 for ac_file in conftest.exe conftest conftest.*; do
4045   test -f "$ac_file" || continue
4046   case $ac_file in
4047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4048     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4049           break;;
4050     * ) break;;
4051   esac
4052 done
4053 else
4054   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of executables: cannot compile and link
4057 See \`config.log' for more details." "$LINENO" 5; }
4058 fi
4059 rm -f conftest$ac_cv_exeext
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4061 $as_echo "$ac_cv_exeext" >&6; }
4062
4063 rm -f conftest.$ac_ext
4064 EXEEXT=$ac_cv_exeext
4065 ac_exeext=$EXEEXT
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4068 $as_echo_n "checking for suffix of object files... " >&6; }
4069 if test "${ac_cv_objext+set}" = set; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.o conftest.obj
4084 if { { ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091   (eval "$ac_compile") 2>&5
4092   ac_status=$?
4093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094   test $ac_status = 0; }; then :
4095   for ac_file in conftest.o conftest.obj conftest.*; do
4096   test -f "$ac_file" || continue;
4097   case $ac_file in
4098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4099     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100        break;;
4101   esac
4102 done
4103 else
4104   $as_echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error "cannot compute suffix of object files: cannot compile
4110 See \`config.log' for more details." "$LINENO" 5; }
4111 fi
4112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4115 $as_echo "$ac_cv_objext" >&6; }
4116 OBJEXT=$ac_cv_objext
4117 ac_objext=$OBJEXT
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4120 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125
4126 int
4127 main ()
4128 {
4129 #ifndef __GNUC__
4130        choke me
4131 #endif
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138   ac_compiler_gnu=yes
4139 else
4140   ac_compiler_gnu=no
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148 if test $ac_compiler_gnu = yes; then
4149   GCC=yes
4150 else
4151   GCC=
4152 fi
4153 ac_test_CFLAGS=${CFLAGS+set}
4154 ac_save_CFLAGS=$CFLAGS
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4157 if test "${ac_cv_prog_cc_g+set}" = set; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   ac_save_c_werror_flag=$ac_c_werror_flag
4161    ac_c_werror_flag=yes
4162    ac_cv_prog_cc_g=no
4163    CFLAGS="-g"
4164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166
4167 int
4168 main ()
4169 {
4170
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176   ac_cv_prog_cc_g=yes
4177 else
4178   CFLAGS=""
4179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191
4192 else
4193   ac_c_werror_flag=$ac_save_c_werror_flag
4194          CFLAGS="-g"
4195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207   ac_cv_prog_cc_g=yes
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214    ac_c_werror_flag=$ac_save_c_werror_flag
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217 $as_echo "$ac_cv_prog_cc_g" >&6; }
4218 if test "$ac_test_CFLAGS" = set; then
4219   CFLAGS=$ac_save_CFLAGS
4220 elif test $ac_cv_prog_cc_g = yes; then
4221   if test "$GCC" = yes; then
4222     CFLAGS="-g -O2"
4223   else
4224     CFLAGS="-g"
4225   fi
4226 else
4227   if test "$GCC" = yes; then
4228     CFLAGS="-O2"
4229   else
4230     CFLAGS=
4231   fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4235 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   ac_cv_prog_cc_c89=no
4239 ac_save_CC=$CC
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242 #include <stdarg.h>
4243 #include <stdio.h>
4244 #include <sys/types.h>
4245 #include <sys/stat.h>
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250      char **p;
4251      int i;
4252 {
4253   return p[i];
4254 }
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4256 {
4257   char *s;
4258   va_list v;
4259   va_start (v,p);
4260   s = g (p, va_arg (v,int));
4261   va_end (v);
4262   return s;
4263 }
4264
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4266    function prototypes and stuff, but not '\xHH' hex character constants.
4267    These don't provoke an error unfortunately, instead are silently treated
4268    as 'x'.  The following induces an error, until -std is added to get
4269    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4270    array size at least.  It's necessary to write '\x00'==0 to get something
4271    that's true only with -std.  */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275    inside strings and character constants.  */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4285 int
4286 main ()
4287 {
4288 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 do
4296   CC="$ac_save_CC $ac_arg"
4297   if ac_fn_c_try_compile "$LINENO"; then :
4298   ac_cv_prog_cc_c89=$ac_arg
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext
4301   test "x$ac_cv_prog_cc_c89" != "xno" && break
4302 done
4303 rm -f conftest.$ac_ext
4304 CC=$ac_save_CC
4305
4306 fi
4307 # AC_CACHE_VAL
4308 case "x$ac_cv_prog_cc_c89" in
4309   x)
4310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 $as_echo "none needed" >&6; } ;;
4312   xno)
4313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 $as_echo "unsupported" >&6; } ;;
4315   *)
4316     CC="$CC $ac_cv_prog_cc_c89"
4317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 esac
4320 if test "x$ac_cv_prog_cc_c89" != xno; then :
4321
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330 depcc="$CC"   am_compiler_list=
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4333 $as_echo_n "checking dependency style of $depcc... " >&6; }
4334 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4338   # We make a subdir and do the tests there.  Otherwise we can end up
4339   # making bogus files that we don't know about and never remove.  For
4340   # instance it was reported that on HP-UX the gcc test will end up
4341   # making a dummy file named `D' -- because `-MD' means `put the output
4342   # in D'.
4343   rm -rf conftest.dir
4344   mkdir conftest.dir
4345   # Copy depcomp to subdir because otherwise we won't find it if we're
4346   # using a relative directory.
4347   cp "$am_depcomp" conftest.dir
4348   cd conftest.dir
4349   # We will build objects and dependencies in a subdirectory because
4350   # it helps to detect inapplicable dependency modes.  For instance
4351   # both Tru64's cc and ICC support -MD to output dependencies as a
4352   # side effect of compilation, but ICC will put the dependencies in
4353   # the current directory while Tru64 will put them in the object
4354   # directory.
4355   mkdir sub
4356
4357   am_cv_CC_dependencies_compiler_type=none
4358   if test "$am_compiler_list" = ""; then
4359      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4360   fi
4361   am__universal=false
4362   case " $depcc " in #(
4363      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4364      esac
4365
4366   for depmode in $am_compiler_list; do
4367     # Setup a source with many dependencies, because some compilers
4368     # like to wrap large dependency lists on column 80 (with \), and
4369     # we should not choose a depcomp mode which is confused by this.
4370     #
4371     # We need to recreate these files for each test, as the compiler may
4372     # overwrite some of them when testing with obscure command lines.
4373     # This happens at least with the AIX C compiler.
4374     : > sub/conftest.c
4375     for i in 1 2 3 4 5 6; do
4376       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4377       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4378       # Solaris 8's {/usr,}/bin/sh.
4379       touch sub/conftst$i.h
4380     done
4381     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4382
4383     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4384     # mode.  It turns out that the SunPro C++ compiler does not properly
4385     # handle `-M -o', and we need to detect this.  Also, some Intel
4386     # versions had trouble with output in subdirs
4387     am__obj=sub/conftest.${OBJEXT-o}
4388     am__minus_obj="-o $am__obj"
4389     case $depmode in
4390     gcc)
4391       # This depmode causes a compiler race in universal mode.
4392       test "$am__universal" = false || continue
4393       ;;
4394     nosideeffect)
4395       # after this tag, mechanisms are not by side-effect, so they'll
4396       # only be used when explicitly requested
4397       if test "x$enable_dependency_tracking" = xyes; then
4398         continue
4399       else
4400         break
4401       fi
4402       ;;
4403     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4404       # This compiler won't grok `-c -o', but also, the minuso test has
4405       # not run yet.  These depmodes are late enough in the game, and
4406       # so weak that their functioning should not be impacted.
4407       am__obj=conftest.${OBJEXT-o}
4408       am__minus_obj=
4409       ;;
4410     none) break ;;
4411     esac
4412     if depmode=$depmode \
4413        source=sub/conftest.c object=$am__obj \
4414        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4416          >/dev/null 2>conftest.err &&
4417        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4418        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4419        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4420        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4421       # icc doesn't choke on unknown options, it will just issue warnings
4422       # or remarks (even with -Werror).  So we grep stderr for any message
4423       # that says an option was ignored or not supported.
4424       # When given -MP, icc 7.0 and 7.1 complain thusly:
4425       #   icc: Command line warning: ignoring option '-M'; no argument required
4426       # The diagnosis changed in icc 8.0:
4427       #   icc: Command line remark: option '-MP' not supported
4428       if (grep 'ignoring option' conftest.err ||
4429           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4430         am_cv_CC_dependencies_compiler_type=$depmode
4431         break
4432       fi
4433     fi
4434   done
4435
4436   cd ..
4437   rm -rf conftest.dir
4438 else
4439   am_cv_CC_dependencies_compiler_type=none
4440 fi
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4444 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4446
4447  if
4448   test "x$enable_dependency_tracking" != xno \
4449   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4450   am__fastdepCC_TRUE=
4451   am__fastdepCC_FALSE='#'
4452 else
4453   am__fastdepCC_TRUE='#'
4454   am__fastdepCC_FALSE=
4455 fi
4456
4457
4458
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4465 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4466 # On Suns, sometimes $CPP names a directory.
4467 if test -n "$CPP" && test -d "$CPP"; then
4468   CPP=
4469 fi
4470 if test -z "$CPP"; then
4471   if test "${ac_cv_prog_CPP+set}" = set; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474       # Double quotes because CPP needs to be expanded
4475     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4476     do
4477       ac_preproc_ok=false
4478 for ac_c_preproc_warn_flag in '' yes
4479 do
4480   # Use a header file that comes with gcc, so configuring glibc
4481   # with a fresh cross-compiler works.
4482   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483   # <limits.h> exists even on freestanding compilers.
4484   # On the NeXT, cc -E runs the code through the compiler's parser,
4485   # not just through cpp. "Syntax error" is here to catch this case.
4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488 #ifdef __STDC__
4489 # include <limits.h>
4490 #else
4491 # include <assert.h>
4492 #endif
4493                      Syntax error
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496
4497 else
4498   # Broken: fails on valid input.
4499 continue
4500 fi
4501 rm -f conftest.err conftest.$ac_ext
4502
4503   # OK, works on sane cases.  Now check whether nonexistent headers
4504   # can be detected and how.
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <ac_nonexistent.h>
4508 _ACEOF
4509 if ac_fn_c_try_cpp "$LINENO"; then :
4510   # Broken: success on invalid input.
4511 continue
4512 else
4513   # Passes both tests.
4514 ac_preproc_ok=:
4515 break
4516 fi
4517 rm -f conftest.err conftest.$ac_ext
4518
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then :
4523   break
4524 fi
4525
4526     done
4527     ac_cv_prog_CPP=$CPP
4528
4529 fi
4530   CPP=$ac_cv_prog_CPP
4531 else
4532   ac_cv_prog_CPP=$CPP
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4535 $as_echo "$CPP" >&6; }
4536 ac_preproc_ok=false
4537 for ac_c_preproc_warn_flag in '' yes
4538 do
4539   # Use a header file that comes with gcc, so configuring glibc
4540   # with a fresh cross-compiler works.
4541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542   # <limits.h> exists even on freestanding compilers.
4543   # On the NeXT, cc -E runs the code through the compiler's parser,
4544   # not just through cpp. "Syntax error" is here to catch this case.
4545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h.  */
4547 #ifdef __STDC__
4548 # include <limits.h>
4549 #else
4550 # include <assert.h>
4551 #endif
4552                      Syntax error
4553 _ACEOF
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4555
4556 else
4557   # Broken: fails on valid input.
4558 continue
4559 fi
4560 rm -f conftest.err conftest.$ac_ext
4561
4562   # OK, works on sane cases.  Now check whether nonexistent headers
4563   # can be detected and how.
4564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566 #include <ac_nonexistent.h>
4567 _ACEOF
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4569   # Broken: success on invalid input.
4570 continue
4571 else
4572   # Passes both tests.
4573 ac_preproc_ok=:
4574 break
4575 fi
4576 rm -f conftest.err conftest.$ac_ext
4577
4578 done
4579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580 rm -f conftest.err conftest.$ac_ext
4581 if $ac_preproc_ok; then :
4582
4583 else
4584   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4587 See \`config.log' for more details." "$LINENO" 5; }
4588 fi
4589
4590 ac_ext=c
4591 ac_cpp='$CPP $CPPFLAGS'
4592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4598 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4599 if test "${ac_cv_path_GREP+set}" = set; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602   if test -z "$GREP"; then
4603   ac_path_GREP_found=false
4604   # Loop through the user's path and test for each of PROGNAME-LIST
4605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610     for ac_prog in grep ggrep; do
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4613       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4614 # Check for GNU ac_path_GREP and select it if it is found.
4615   # Check for GNU $ac_path_GREP
4616 case `"$ac_path_GREP" --version 2>&1` in
4617 *GNU*)
4618   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4619 *)
4620   ac_count=0
4621   $as_echo_n 0123456789 >"conftest.in"
4622   while :
4623   do
4624     cat "conftest.in" "conftest.in" >"conftest.tmp"
4625     mv "conftest.tmp" "conftest.in"
4626     cp "conftest.in" "conftest.nl"
4627     $as_echo 'GREP' >> "conftest.nl"
4628     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630     as_fn_arith $ac_count + 1 && ac_count=$as_val
4631     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4632       # Best one so far, save it but keep looking for a better one
4633       ac_cv_path_GREP="$ac_path_GREP"
4634       ac_path_GREP_max=$ac_count
4635     fi
4636     # 10*(2^10) chars as input seems more than enough
4637     test $ac_count -gt 10 && break
4638   done
4639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4641
4642       $ac_path_GREP_found && break 3
4643     done
4644   done
4645   done
4646 IFS=$as_save_IFS
4647   if test -z "$ac_cv_path_GREP"; then
4648     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4649   fi
4650 else
4651   ac_cv_path_GREP=$GREP
4652 fi
4653
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4656 $as_echo "$ac_cv_path_GREP" >&6; }
4657  GREP="$ac_cv_path_GREP"
4658
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4661 $as_echo_n "checking for egrep... " >&6; }
4662 if test "${ac_cv_path_EGREP+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4666    then ac_cv_path_EGREP="$GREP -E"
4667    else
4668      if test -z "$EGREP"; then
4669   ac_path_EGREP_found=false
4670   # Loop through the user's path and test for each of PROGNAME-LIST
4671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676     for ac_prog in egrep; do
4677     for ac_exec_ext in '' $ac_executable_extensions; do
4678       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4679       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4680 # Check for GNU ac_path_EGREP and select it if it is found.
4681   # Check for GNU $ac_path_EGREP
4682 case `"$ac_path_EGREP" --version 2>&1` in
4683 *GNU*)
4684   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4685 *)
4686   ac_count=0
4687   $as_echo_n 0123456789 >"conftest.in"
4688   while :
4689   do
4690     cat "conftest.in" "conftest.in" >"conftest.tmp"
4691     mv "conftest.tmp" "conftest.in"
4692     cp "conftest.in" "conftest.nl"
4693     $as_echo 'EGREP' >> "conftest.nl"
4694     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696     as_fn_arith $ac_count + 1 && ac_count=$as_val
4697     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4698       # Best one so far, save it but keep looking for a better one
4699       ac_cv_path_EGREP="$ac_path_EGREP"
4700       ac_path_EGREP_max=$ac_count
4701     fi
4702     # 10*(2^10) chars as input seems more than enough
4703     test $ac_count -gt 10 && break
4704   done
4705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708       $ac_path_EGREP_found && break 3
4709     done
4710   done
4711   done
4712 IFS=$as_save_IFS
4713   if test -z "$ac_cv_path_EGREP"; then
4714     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715   fi
4716 else
4717   ac_cv_path_EGREP=$EGREP
4718 fi
4719
4720    fi
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4723 $as_echo "$ac_cv_path_EGREP" >&6; }
4724  EGREP="$ac_cv_path_EGREP"
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4728 $as_echo_n "checking for ANSI C header files... " >&6; }
4729 if test "${ac_cv_header_stdc+set}" = set; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 #include <stdlib.h>
4735 #include <stdarg.h>
4736 #include <string.h>
4737 #include <float.h>
4738
4739 int
4740 main ()
4741 {
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748   ac_cv_header_stdc=yes
4749 else
4750   ac_cv_header_stdc=no
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753
4754 if test $ac_cv_header_stdc = yes; then
4755   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758 #include <string.h>
4759
4760 _ACEOF
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762   $EGREP "memchr" >/dev/null 2>&1; then :
4763
4764 else
4765   ac_cv_header_stdc=no
4766 fi
4767 rm -f conftest*
4768
4769 fi
4770
4771 if test $ac_cv_header_stdc = yes; then
4772   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #include <stdlib.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "free" >/dev/null 2>&1; then :
4780
4781 else
4782   ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790   if test "$cross_compiling" = yes; then :
4791   :
4792 else
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <ctype.h>
4796 #include <stdlib.h>
4797 #if ((' ' & 0x0FF) == 0x020)
4798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4800 #else
4801 # define ISLOWER(c) \
4802                    (('a' <= (c) && (c) <= 'i') \
4803                      || ('j' <= (c) && (c) <= 'r') \
4804                      || ('s' <= (c) && (c) <= 'z'))
4805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4806 #endif
4807
4808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4809 int
4810 main ()
4811 {
4812   int i;
4813   for (i = 0; i < 256; i++)
4814     if (XOR (islower (i), ISLOWER (i))
4815         || toupper (i) != TOUPPER (i))
4816       return 2;
4817   return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_run "$LINENO"; then :
4821
4822 else
4823   ac_cv_header_stdc=no
4824 fi
4825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4826   conftest.$ac_objext conftest.beam conftest.$ac_ext
4827 fi
4828
4829 fi
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4832 $as_echo "$ac_cv_header_stdc" >&6; }
4833 if test $ac_cv_header_stdc = yes; then
4834
4835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4836
4837 fi
4838
4839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4841                   inttypes.h stdint.h unistd.h
4842 do :
4843   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4845 "
4846 eval as_val=\$$as_ac_Header
4847    if test "x$as_val" = x""yes; then :
4848   cat >>confdefs.h <<_ACEOF
4849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850 _ACEOF
4851
4852 fi
4853
4854 done
4855
4856
4857
4858   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4859 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4860   MINIX=yes
4861 else
4862   MINIX=
4863 fi
4864
4865
4866   if test "$MINIX" = yes; then
4867
4868 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4869
4870
4871 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4872
4873
4874 $as_echo "#define _MINIX 1" >>confdefs.h
4875
4876   fi
4877
4878
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4880 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4881 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886
4887 #         define __EXTENSIONS__ 1
4888           $ac_includes_default
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898   ac_cv_safe_to_define___extensions__=yes
4899 else
4900   ac_cv_safe_to_define___extensions__=no
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4905 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4906   test $ac_cv_safe_to_define___extensions__ = yes &&
4907     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4908
4909   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4910
4911   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4912
4913   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4914
4915   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4916
4917
4918
4919 # Calculate toolexeclibdir
4920 # Also toolexecdir, though it's only used in toolexeclibdir
4921 case ${version_specific_libs} in
4922   yes)
4923     # Need the gcc compiler version to know where to install libraries
4924     # and header files if --enable-version-specific-runtime-libs option
4925     # is selected.
4926     toolexecdir='$(libdir)/gcc/$(target_alias)'
4927     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4928     ;;
4929   no)
4930     if test -n "$with_cross_host" &&
4931        test x"$with_cross_host" != x"no"; then
4932       # Install a library built with a cross compiler in tooldir, not libdir.
4933       toolexecdir='$(exec_prefix)/$(target_alias)'
4934       toolexeclibdir='$(toolexecdir)/lib'
4935     else
4936       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4937       toolexeclibdir='$(libdir)'
4938     fi
4939     multi_os_directory=`$CC -print-multi-os-directory`
4940     case $multi_os_directory in
4941       .) ;; # Avoid trailing /.
4942       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4943     esac
4944     ;;
4945 esac
4946
4947
4948
4949 # Create a spec file, so that compile/link tests don't fail
4950 test -f libgfortran.spec || touch libgfortran.spec
4951
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
4958 # Check the compiler.
4959 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4960 # We must force CC to /not/ be precious variables; otherwise
4961 # the wrong, non-multilib-adjusted value will be used in multilibs.
4962 # As a side effect, we have to subst CFLAGS ourselves.
4963
4964
4965
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 if test -n "$ac_tool_prefix"; then
4972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_CC+set}" = set; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   if test -n "$CC"; then
4980   ac_cv_prog_CC="$CC" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002 $as_echo "$CC" >&6; }
5003 else
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$ac_cv_prog_CC"; then
5011   ac_ct_CC=$CC
5012   # Extract the first word of "gcc", so it can be a program name with args.
5013 set dummy gcc; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -n "$ac_ct_CC"; then
5020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_ac_ct_CC="gcc"
5030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034   done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5040 if test -n "$ac_ct_CC"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5042 $as_echo "$ac_ct_CC" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048   if test "x$ac_ct_CC" = x; then
5049     CC=""
5050   else
5051     case $cross_compiling:$ac_tool_warned in
5052 yes:)
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057     CC=$ac_ct_CC
5058   fi
5059 else
5060   CC="$ac_cv_prog_CC"
5061 fi
5062
5063 if test -z "$CC"; then
5064           if test -n "$ac_tool_prefix"; then
5065     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}cc; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_CC+set}" = set; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   if test -n "$CC"; then
5073   ac_cv_prog_CC="$CC" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078   IFS=$as_save_IFS
5079   test -z "$as_dir" && as_dir=.
5080     for ac_exec_ext in '' $ac_executable_extensions; do
5081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082     ac_cv_prog_CC="${ac_tool_prefix}cc"
5083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084     break 2
5085   fi
5086 done
5087   done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 CC=$ac_cv_prog_CC
5093 if test -n "$CC"; then
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095 $as_echo "$CC" >&6; }
5096 else
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102   fi
5103 fi
5104 if test -z "$CC"; then
5105   # Extract the first word of "cc", so it can be a program name with args.
5106 set dummy cc; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_CC+set}" = set; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -n "$CC"; then
5113   ac_cv_prog_CC="$CC" # Let the user override the test.
5114 else
5115   ac_prog_rejected=no
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5124        ac_prog_rejected=yes
5125        continue
5126      fi
5127     ac_cv_prog_CC="cc"
5128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132   done
5133 IFS=$as_save_IFS
5134
5135 if test $ac_prog_rejected = yes; then
5136   # We found a bogon in the path, so make sure we never use it.
5137   set dummy $ac_cv_prog_CC
5138   shift
5139   if test $# != 0; then
5140     # We chose a different compiler from the bogus one.
5141     # However, it has the same basename, so the bogon will be chosen
5142     # first if we set CC to just the basename; use the full file name.
5143     shift
5144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5145   fi
5146 fi
5147 fi
5148 fi
5149 CC=$ac_cv_prog_CC
5150 if test -n "$CC"; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5152 $as_echo "$CC" >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157
5158
5159 fi
5160 if test -z "$CC"; then
5161   if test -n "$ac_tool_prefix"; then
5162   for ac_prog in cl.exe
5163   do
5164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_CC+set}" = set; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$CC"; then
5172   ac_cv_prog_CC="$CC" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 CC=$ac_cv_prog_CC
5192 if test -n "$CC"; then
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5194 $as_echo "$CC" >&6; }
5195 else
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201     test -n "$CC" && break
5202   done
5203 fi
5204 if test -z "$CC"; then
5205   ac_ct_CC=$CC
5206   for ac_prog in cl.exe
5207 do
5208   # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$ac_ct_CC"; then
5216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_prog_ac_ct_CC="$ac_prog"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5236 if test -n "$ac_ct_CC"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5238 $as_echo "$ac_ct_CC" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245   test -n "$ac_ct_CC" && break
5246 done
5247
5248   if test "x$ac_ct_CC" = x; then
5249     CC=""
5250   else
5251     case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257     CC=$ac_ct_CC
5258   fi
5259 fi
5260
5261 fi
5262
5263
5264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5266 as_fn_error "no acceptable C compiler found in \$PATH
5267 See \`config.log' for more details." "$LINENO" 5; }
5268
5269 # Provide some information about the compiler.
5270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5271 set X $ac_compile
5272 ac_compiler=$2
5273 for ac_option in --version -v -V -qversion; do
5274   { { ac_try="$ac_compiler $ac_option >&5"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280 $as_echo "$ac_try_echo"; } >&5
5281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5282   ac_status=$?
5283   if test -s conftest.err; then
5284     sed '10a\
5285 ... rest of stderr output deleted ...
5286          10q' conftest.err >conftest.er1
5287     cat conftest.er1 >&5
5288     rm -f conftest.er1 conftest.err
5289   fi
5290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5291   test $ac_status = 0; }
5292 done
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 int
5303 main ()
5304 {
5305 #ifndef __GNUC__
5306        choke me
5307 #endif
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314   ac_compiler_gnu=yes
5315 else
5316   ac_compiler_gnu=no
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5320
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5324 if test $ac_compiler_gnu = yes; then
5325   GCC=yes
5326 else
5327   GCC=
5328 fi
5329 ac_test_CFLAGS=${CFLAGS+set}
5330 ac_save_CFLAGS=$CFLAGS
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5333 if test "${ac_cv_prog_cc_g+set}" = set; then :
5334   $as_echo_n "(cached) " >&6
5335 else
5336   ac_save_c_werror_flag=$ac_c_werror_flag
5337    ac_c_werror_flag=yes
5338    ac_cv_prog_cc_g=no
5339    CFLAGS="-g"
5340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h.  */
5342
5343 int
5344 main ()
5345 {
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352   ac_cv_prog_cc_g=yes
5353 else
5354   CFLAGS=""
5355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357
5358 int
5359 main ()
5360 {
5361
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367
5368 else
5369   ac_c_werror_flag=$ac_save_c_werror_flag
5370          CFLAGS="-g"
5371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h.  */
5373
5374 int
5375 main ()
5376 {
5377
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383   ac_cv_prog_cc_g=yes
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390    ac_c_werror_flag=$ac_save_c_werror_flag
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5393 $as_echo "$ac_cv_prog_cc_g" >&6; }
5394 if test "$ac_test_CFLAGS" = set; then
5395   CFLAGS=$ac_save_CFLAGS
5396 elif test $ac_cv_prog_cc_g = yes; then
5397   if test "$GCC" = yes; then
5398     CFLAGS="-g -O2"
5399   else
5400     CFLAGS="-g"
5401   fi
5402 else
5403   if test "$GCC" = yes; then
5404     CFLAGS="-O2"
5405   else
5406     CFLAGS=
5407   fi
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   ac_cv_prog_cc_c89=no
5415 ac_save_CC=$CC
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h.  */
5418 #include <stdarg.h>
5419 #include <stdio.h>
5420 #include <sys/types.h>
5421 #include <sys/stat.h>
5422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5423 struct buf { int x; };
5424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5425 static char *e (p, i)
5426      char **p;
5427      int i;
5428 {
5429   return p[i];
5430 }
5431 static char *f (char * (*g) (char **, int), char **p, ...)
5432 {
5433   char *s;
5434   va_list v;
5435   va_start (v,p);
5436   s = g (p, va_arg (v,int));
5437   va_end (v);
5438   return s;
5439 }
5440
5441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5442    function prototypes and stuff, but not '\xHH' hex character constants.
5443    These don't provoke an error unfortunately, instead are silently treated
5444    as 'x'.  The following induces an error, until -std is added to get
5445    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5446    array size at least.  It's necessary to write '\x00'==0 to get something
5447    that's true only with -std.  */
5448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5449
5450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5451    inside strings and character constants.  */
5452 #define FOO(x) 'x'
5453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5454
5455 int test (int i, double x);
5456 struct s1 {int (*f) (int a);};
5457 struct s2 {int (*f) (double a);};
5458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5459 int argc;
5460 char **argv;
5461 int
5462 main ()
5463 {
5464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5470         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5471 do
5472   CC="$ac_save_CC $ac_arg"
5473   if ac_fn_c_try_compile "$LINENO"; then :
5474   ac_cv_prog_cc_c89=$ac_arg
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext
5477   test "x$ac_cv_prog_cc_c89" != "xno" && break
5478 done
5479 rm -f conftest.$ac_ext
5480 CC=$ac_save_CC
5481
5482 fi
5483 # AC_CACHE_VAL
5484 case "x$ac_cv_prog_cc_c89" in
5485   x)
5486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5487 $as_echo "none needed" >&6; } ;;
5488   xno)
5489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5490 $as_echo "unsupported" >&6; } ;;
5491   *)
5492     CC="$CC $ac_cv_prog_cc_c89"
5493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5495 esac
5496 if test "x$ac_cv_prog_cc_c89" != xno; then :
5497
5498 fi
5499
5500 ac_ext=c
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505
5506 depcc="$CC"   am_compiler_list=
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5509 $as_echo_n "checking dependency style of $depcc... " >&6; }
5510 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5514   # We make a subdir and do the tests there.  Otherwise we can end up
5515   # making bogus files that we don't know about and never remove.  For
5516   # instance it was reported that on HP-UX the gcc test will end up
5517   # making a dummy file named `D' -- because `-MD' means `put the output
5518   # in D'.
5519   rm -rf conftest.dir
5520   mkdir conftest.dir
5521   # Copy depcomp to subdir because otherwise we won't find it if we're
5522   # using a relative directory.
5523   cp "$am_depcomp" conftest.dir
5524   cd conftest.dir
5525   # We will build objects and dependencies in a subdirectory because
5526   # it helps to detect inapplicable dependency modes.  For instance
5527   # both Tru64's cc and ICC support -MD to output dependencies as a
5528   # side effect of compilation, but ICC will put the dependencies in
5529   # the current directory while Tru64 will put them in the object
5530   # directory.
5531   mkdir sub
5532
5533   am_cv_CC_dependencies_compiler_type=none
5534   if test "$am_compiler_list" = ""; then
5535      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5536   fi
5537   am__universal=false
5538   case " $depcc " in #(
5539      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5540      esac
5541
5542   for depmode in $am_compiler_list; do
5543     # Setup a source with many dependencies, because some compilers
5544     # like to wrap large dependency lists on column 80 (with \), and
5545     # we should not choose a depcomp mode which is confused by this.
5546     #
5547     # We need to recreate these files for each test, as the compiler may
5548     # overwrite some of them when testing with obscure command lines.
5549     # This happens at least with the AIX C compiler.
5550     : > sub/conftest.c
5551     for i in 1 2 3 4 5 6; do
5552       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5553       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5554       # Solaris 8's {/usr,}/bin/sh.
5555       touch sub/conftst$i.h
5556     done
5557     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5558
5559     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5560     # mode.  It turns out that the SunPro C++ compiler does not properly
5561     # handle `-M -o', and we need to detect this.  Also, some Intel
5562     # versions had trouble with output in subdirs
5563     am__obj=sub/conftest.${OBJEXT-o}
5564     am__minus_obj="-o $am__obj"
5565     case $depmode in
5566     gcc)
5567       # This depmode causes a compiler race in universal mode.
5568       test "$am__universal" = false || continue
5569       ;;
5570     nosideeffect)
5571       # after this tag, mechanisms are not by side-effect, so they'll
5572       # only be used when explicitly requested
5573       if test "x$enable_dependency_tracking" = xyes; then
5574         continue
5575       else
5576         break
5577       fi
5578       ;;
5579     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5580       # This compiler won't grok `-c -o', but also, the minuso test has
5581       # not run yet.  These depmodes are late enough in the game, and
5582       # so weak that their functioning should not be impacted.
5583       am__obj=conftest.${OBJEXT-o}
5584       am__minus_obj=
5585       ;;
5586     none) break ;;
5587     esac
5588     if depmode=$depmode \
5589        source=sub/conftest.c object=$am__obj \
5590        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5591        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5592          >/dev/null 2>conftest.err &&
5593        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5594        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5595        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5596        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5597       # icc doesn't choke on unknown options, it will just issue warnings
5598       # or remarks (even with -Werror).  So we grep stderr for any message
5599       # that says an option was ignored or not supported.
5600       # When given -MP, icc 7.0 and 7.1 complain thusly:
5601       #   icc: Command line warning: ignoring option '-M'; no argument required
5602       # The diagnosis changed in icc 8.0:
5603       #   icc: Command line remark: option '-MP' not supported
5604       if (grep 'ignoring option' conftest.err ||
5605           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5606         am_cv_CC_dependencies_compiler_type=$depmode
5607         break
5608       fi
5609     fi
5610   done
5611
5612   cd ..
5613   rm -rf conftest.dir
5614 else
5615   am_cv_CC_dependencies_compiler_type=none
5616 fi
5617
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5620 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5622
5623  if
5624   test "x$enable_dependency_tracking" != xno \
5625   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5626   am__fastdepCC_TRUE=
5627   am__fastdepCC_FALSE='#'
5628 else
5629   am__fastdepCC_TRUE='#'
5630   am__fastdepCC_FALSE=
5631 fi
5632
5633
5634
5635
5636
5637
5638 if test "x$CC" != xcc; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5640 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5643 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5644 fi
5645 set dummy $CC; ac_cc=`$as_echo "$2" |
5646                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5647 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h.  */
5652
5653 int
5654 main ()
5655 {
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 # Make sure it works both with $CC and with simple cc.
5662 # We do the test twice because some compilers refuse to overwrite an
5663 # existing .o file with -o, though they will create one.
5664 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5665 rm -f conftest2.*
5666 if { { case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672   (eval "$ac_try") 2>&5
5673   ac_status=$?
5674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675   test $ac_status = 0; } &&
5676    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682   (eval "$ac_try") 2>&5
5683   ac_status=$?
5684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685   test $ac_status = 0; };
5686 then
5687   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5688   if test "x$CC" != xcc; then
5689     # Test first that cc exists at all.
5690     if { ac_try='cc -c conftest.$ac_ext >&5'
5691   { { case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5696 $as_echo "$ac_try_echo"; } >&5
5697   (eval "$ac_try") 2>&5
5698   ac_status=$?
5699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700   test $ac_status = 0; }; }; then
5701       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5702       rm -f conftest2.*
5703       if { { case "(($ac_try" in
5704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705   *) ac_try_echo=$ac_try;;
5706 esac
5707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5708 $as_echo "$ac_try_echo"; } >&5
5709   (eval "$ac_try") 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; } &&
5713          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715   *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5718 $as_echo "$ac_try_echo"; } >&5
5719   (eval "$ac_try") 2>&5
5720   ac_status=$?
5721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5722   test $ac_status = 0; };
5723       then
5724         # cc works too.
5725         :
5726       else
5727         # cc exists but doesn't like -o.
5728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5729       fi
5730     fi
5731   fi
5732 else
5733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5734 fi
5735 rm -f core conftest*
5736
5737 fi
5738 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740 $as_echo "yes" >&6; }
5741 else
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744
5745 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5746
5747 fi
5748
5749 # FIXME: we rely on the cache variable name because
5750 # there is no other way.
5751 set dummy $CC
5752 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5753 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5754 if test "$am_t" != yes; then
5755    # Losing compiler, so override with the script.
5756    # FIXME: It is wrong to rewrite CC.
5757    # But if we don't then we get into trouble of one sort or another.
5758    # A longer-term fix would be to have automake use am__CC in this case,
5759    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5760    CC="$am_aux_dir/compile $CC"
5761 fi
5762
5763
5764
5765 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5766 if test "x$GCC" = "xyes"; then
5767   AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5768   ## We like to use C99 routines when available.  This makes sure that
5769   ## __STDC_VERSION__ is set such that libc includes make them available.
5770   AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5771   ## Compile the following tests with the same system header contents
5772   ## that we'll encounter when compiling our own source files.
5773   CFLAGS="-std=gnu99 $CFLAGS"
5774 fi
5775
5776
5777
5778
5779 # Check for symbol versioning (copied from libssp).
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5781 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5782 # Check whether --enable-symvers was given.
5783 if test "${enable_symvers+set}" = set; then :
5784   enableval=$enable_symvers; gfortran_use_symver=$enableval
5785 else
5786   gfortran_use_symver=yes
5787 fi
5788
5789 if test "x$gfortran_use_symver" != xno; then
5790   save_LDFLAGS="$LDFLAGS"
5791   LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5792   cat > conftest.map <<EOF
5793 FOO_1.0 {
5794   global: *foo*; bar; local: *;
5795 };
5796 EOF
5797   if test x$gcc_no_link = xyes; then
5798   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5799 fi
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h.  */
5802 int foo;
5803 int
5804 main ()
5805 {
5806
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812   gfortran_use_symver=gnu
5813 else
5814   gfortran_use_symver=no
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext \
5817     conftest$ac_exeext conftest.$ac_ext
5818   if test x$gfortran_use_symver = xno; then
5819     case "$target_os" in
5820       solaris2*)
5821         LDFLAGS="$save_LDFLAGS"
5822         LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5823         # Sun ld cannot handle wildcards and treats all entries as undefined.
5824         cat > conftest.map <<EOF
5825 FOO_1.0 {
5826   global: foo; local: *;
5827 };
5828 EOF
5829         if test x$gcc_no_link = xyes; then
5830   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5831 fi
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834 int foo;
5835 int
5836 main ()
5837 {
5838
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844   gfortran_use_symver=sun
5845 else
5846   gfortran_use_symver=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext \
5849     conftest$ac_exeext conftest.$ac_ext
5850         ;;
5851     esac
5852   fi
5853   LDFLAGS="$save_LDFLAGS"
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5856 $as_echo "$gfortran_use_symver" >&6; }
5857  if test "x$gfortran_use_symver" != xno; then
5858   LIBGFOR_USE_SYMVER_TRUE=
5859   LIBGFOR_USE_SYMVER_FALSE='#'
5860 else
5861   LIBGFOR_USE_SYMVER_TRUE='#'
5862   LIBGFOR_USE_SYMVER_FALSE=
5863 fi
5864
5865  if test "x$gfortran_use_symver" = xgnu; then
5866   LIBGFOR_USE_SYMVER_GNU_TRUE=
5867   LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5868 else
5869   LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5870   LIBGFOR_USE_SYMVER_GNU_FALSE=
5871 fi
5872
5873  if test "x$gfortran_use_symver" = xsun; then
5874   LIBGFOR_USE_SYMVER_SUN_TRUE=
5875   LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5876 else
5877   LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5878   LIBGFOR_USE_SYMVER_SUN_FALSE=
5879 fi
5880
5881
5882 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5883 # similarly to how libstdc++ does it
5884 ac_test_CFLAGS="${CFLAGS+set}"
5885 ac_save_CFLAGS="$CFLAGS"
5886
5887 # Check for -ffunction-sections -fdata-sections
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5889 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5890 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893
5894 int
5895 main ()
5896 {
5897 int foo;
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903   ac_fdsections=yes
5904 else
5905   ac_fdsections=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 if test "$ac_test_CFLAGS" = set; then
5909   CFLAGS="$ac_save_CFLAGS"
5910 else
5911   # this is the suspicious part
5912   CFLAGS=""
5913 fi
5914 if test x"$ac_fdsections" = x"yes"; then
5915   SECTION_FLAGS='-ffunction-sections -fdata-sections'
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5918 $as_echo "$ac_fdsections" >&6; }
5919
5920
5921 # Find other programs we need.
5922 if test -n "$ac_tool_prefix"; then
5923   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5924 set dummy ${ac_tool_prefix}as; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_AS+set}" = set; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -n "$AS"; then
5931   ac_cv_prog_AS="$AS" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_prog_AS="${ac_tool_prefix}as"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 AS=$ac_cv_prog_AS
5951 if test -n "$AS"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5953 $as_echo "$AS" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960 fi
5961 if test -z "$ac_cv_prog_AS"; then
5962   ac_ct_AS=$AS
5963   # Extract the first word of "as", so it can be a program name with args.
5964 set dummy as; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   if test -n "$ac_ct_AS"; then
5971   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_prog_ac_ct_AS="as"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5991 if test -n "$ac_ct_AS"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5993 $as_echo "$ac_ct_AS" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999   if test "x$ac_ct_AS" = x; then
6000     AS=""
6001   else
6002     case $cross_compiling:$ac_tool_warned in
6003 yes:)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006 ac_tool_warned=yes ;;
6007 esac
6008     AS=$ac_ct_AS
6009   fi
6010 else
6011   AS="$ac_cv_prog_AS"
6012 fi
6013
6014 if test -n "$ac_tool_prefix"; then
6015   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ar; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_AR+set}" = set; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -n "$AR"; then
6023   ac_cv_prog_AR="$AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_AR="${ac_tool_prefix}ar"
6033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037   done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 AR=$ac_cv_prog_AR
6043 if test -n "$AR"; then
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6045 $as_echo "$AR" >&6; }
6046 else
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_AR"; then
6054   ac_ct_AR=$AR
6055   # Extract the first word of "ar", so it can be a program name with args.
6056 set dummy ar; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if test -n "$ac_ct_AR"; then
6063   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_ac_ct_AR="ar"
6073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077   done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6083 if test -n "$ac_ct_AR"; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6085 $as_echo "$ac_ct_AR" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091   if test "x$ac_ct_AR" = x; then
6092     AR=""
6093   else
6094     case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100     AR=$ac_ct_AR
6101   fi
6102 else
6103   AR="$ac_cv_prog_AR"
6104 fi
6105
6106 if test -n "$ac_tool_prefix"; then
6107   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$RANLIB"; then
6115   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 RANLIB=$ac_cv_prog_RANLIB
6135 if test -n "$RANLIB"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6137 $as_echo "$RANLIB" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_RANLIB"; then
6146   ac_ct_RANLIB=$RANLIB
6147   # Extract the first word of "ranlib", so it can be a program name with args.
6148 set dummy ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$ac_ct_RANLIB"; then
6155   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_ac_ct_RANLIB="ranlib"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6175 if test -n "$ac_ct_RANLIB"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6177 $as_echo "$ac_ct_RANLIB" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183   if test "x$ac_ct_RANLIB" = x; then
6184     RANLIB="ranlib-not-found-in-path-error"
6185   else
6186     case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     RANLIB=$ac_ct_RANLIB
6193   fi
6194 else
6195   RANLIB="$ac_cv_prog_RANLIB"
6196 fi
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6199 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6200 set x ${MAKE-make}
6201 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6202 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   cat >conftest.make <<\_ACEOF
6206 SHELL = /bin/sh
6207 all:
6208         @echo '@@@%%%=$(MAKE)=@@@%%%'
6209 _ACEOF
6210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6211 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6212   *@@@%%%=?*=@@@%%%*)
6213     eval ac_cv_prog_make_${ac_make}_set=yes;;
6214   *)
6215     eval ac_cv_prog_make_${ac_make}_set=no;;
6216 esac
6217 rm -f conftest.make
6218 fi
6219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222   SET_MAKE=
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226   SET_MAKE="MAKE=${MAKE-make}"
6227 fi
6228
6229
6230
6231 # Configure libtool
6232 #AC_MSG_NOTICE([====== Starting libtool configuration])
6233 enable_dlopen=yes
6234
6235
6236
6237 case `pwd` in
6238   *\ * | *\     *)
6239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6240 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6241 esac
6242
6243
6244
6245 macro_version='2.2.7a'
6246 macro_revision='1.3134'
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260 ltmain="$ac_aux_dir/ltmain.sh"
6261
6262 # Backslashify metacharacters that are still active within
6263 # double-quoted strings.
6264 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6265
6266 # Same as above, but do not quote variable references.
6267 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6268
6269 # Sed substitution to delay expansion of an escaped shell variable in a
6270 # double_quote_subst'ed string.
6271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6272
6273 # Sed substitution to delay expansion of an escaped single quote.
6274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6275
6276 # Sed substitution to avoid accidental globbing in evaled expressions
6277 no_glob_subst='s/\*/\\\*/g'
6278
6279 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6284 $as_echo_n "checking how to print strings... " >&6; }
6285 # Test print first, because it will be a builtin if present.
6286 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6287    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6288   ECHO='print -r --'
6289 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6290   ECHO='printf %s\n'
6291 else
6292   # Use this function as a fallback that always works.
6293   func_fallback_echo ()
6294   {
6295     eval 'cat <<_LTECHO_EOF
6296 $1
6297 _LTECHO_EOF'
6298   }
6299   ECHO='func_fallback_echo'
6300 fi
6301
6302 # func_echo_all arg...
6303 # Invoke $ECHO with all args, space-separated.
6304 func_echo_all ()
6305 {
6306     $ECHO ""
6307 }
6308
6309 case "$ECHO" in
6310   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6311 $as_echo "printf" >&6; } ;;
6312   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6313 $as_echo "print -r" >&6; } ;;
6314   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6315 $as_echo "cat" >&6; } ;;
6316 esac
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6332 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6337      for ac_i in 1 2 3 4 5 6 7; do
6338        ac_script="$ac_script$as_nl$ac_script"
6339      done
6340      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6341      { ac_script=; unset ac_script;}
6342      if test -z "$SED"; then
6343   ac_path_SED_found=false
6344   # Loop through the user's path and test for each of PROGNAME-LIST
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_prog in sed gsed; do
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6353       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6354 # Check for GNU ac_path_SED and select it if it is found.
6355   # Check for GNU $ac_path_SED
6356 case `"$ac_path_SED" --version 2>&1` in
6357 *GNU*)
6358   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6359 *)
6360   ac_count=0
6361   $as_echo_n 0123456789 >"conftest.in"
6362   while :
6363   do
6364     cat "conftest.in" "conftest.in" >"conftest.tmp"
6365     mv "conftest.tmp" "conftest.in"
6366     cp "conftest.in" "conftest.nl"
6367     $as_echo '' >> "conftest.nl"
6368     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6370     as_fn_arith $ac_count + 1 && ac_count=$as_val
6371     if test $ac_count -gt ${ac_path_SED_max-0}; then
6372       # Best one so far, save it but keep looking for a better one
6373       ac_cv_path_SED="$ac_path_SED"
6374       ac_path_SED_max=$ac_count
6375     fi
6376     # 10*(2^10) chars as input seems more than enough
6377     test $ac_count -gt 10 && break
6378   done
6379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6380 esac
6381
6382       $ac_path_SED_found && break 3
6383     done
6384   done
6385   done
6386 IFS=$as_save_IFS
6387   if test -z "$ac_cv_path_SED"; then
6388     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6389   fi
6390 else
6391   ac_cv_path_SED=$SED
6392 fi
6393
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6396 $as_echo "$ac_cv_path_SED" >&6; }
6397  SED="$ac_cv_path_SED"
6398   rm -f conftest.sed
6399
6400 test -z "$SED" && SED=sed
6401 Xsed="$SED -e 1s/^X//"
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6414 $as_echo_n "checking for fgrep... " >&6; }
6415 if test "${ac_cv_path_FGREP+set}" = set; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6419    then ac_cv_path_FGREP="$GREP -F"
6420    else
6421      if test -z "$FGREP"; then
6422   ac_path_FGREP_found=false
6423   # Loop through the user's path and test for each of PROGNAME-LIST
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_prog in fgrep; do
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6432       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6433 # Check for GNU ac_path_FGREP and select it if it is found.
6434   # Check for GNU $ac_path_FGREP
6435 case `"$ac_path_FGREP" --version 2>&1` in
6436 *GNU*)
6437   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6438 *)
6439   ac_count=0
6440   $as_echo_n 0123456789 >"conftest.in"
6441   while :
6442   do
6443     cat "conftest.in" "conftest.in" >"conftest.tmp"
6444     mv "conftest.tmp" "conftest.in"
6445     cp "conftest.in" "conftest.nl"
6446     $as_echo 'FGREP' >> "conftest.nl"
6447     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6449     as_fn_arith $ac_count + 1 && ac_count=$as_val
6450     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6451       # Best one so far, save it but keep looking for a better one
6452       ac_cv_path_FGREP="$ac_path_FGREP"
6453       ac_path_FGREP_max=$ac_count
6454     fi
6455     # 10*(2^10) chars as input seems more than enough
6456     test $ac_count -gt 10 && break
6457   done
6458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6459 esac
6460
6461       $ac_path_FGREP_found && break 3
6462     done
6463   done
6464   done
6465 IFS=$as_save_IFS
6466   if test -z "$ac_cv_path_FGREP"; then
6467     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6468   fi
6469 else
6470   ac_cv_path_FGREP=$FGREP
6471 fi
6472
6473    fi
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6476 $as_echo "$ac_cv_path_FGREP" >&6; }
6477  FGREP="$ac_cv_path_FGREP"
6478
6479
6480 test -z "$GREP" && GREP=grep
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 # Check whether --with-gnu-ld was given.
6501 if test "${with_gnu_ld+set}" = set; then :
6502   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6503 else
6504   with_gnu_ld=no
6505 fi
6506
6507 ac_prog=ld
6508 if test "$GCC" = yes; then
6509   # Check if gcc -print-prog-name=ld gives a path.
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6511 $as_echo_n "checking for ld used by $CC... " >&6; }
6512   case $host in
6513   *-*-mingw*)
6514     # gcc leaves a trailing carriage return which upsets mingw
6515     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6516   *)
6517     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6518   esac
6519   case $ac_prog in
6520     # Accept absolute paths.
6521     [\\/]* | ?:[\\/]*)
6522       re_direlt='/[^/][^/]*/\.\./'
6523       # Canonicalize the pathname of ld
6524       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6525       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6526         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6527       done
6528       test -z "$LD" && LD="$ac_prog"
6529       ;;
6530   "")
6531     # If it fails, then pretend we aren't using GCC.
6532     ac_prog=ld
6533     ;;
6534   *)
6535     # If it is relative, then search for the first ld in PATH.
6536     with_gnu_ld=unknown
6537     ;;
6538   esac
6539 elif test "$with_gnu_ld" = yes; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6541 $as_echo_n "checking for GNU ld... " >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6544 $as_echo_n "checking for non-GNU ld... " >&6; }
6545 fi
6546 if test "${lt_cv_path_LD+set}" = set; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -z "$LD"; then
6550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551   for ac_dir in $PATH; do
6552     IFS="$lt_save_ifs"
6553     test -z "$ac_dir" && ac_dir=.
6554     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6555       lt_cv_path_LD="$ac_dir/$ac_prog"
6556       # Check to see if the program is GNU ld.  I'd rather use --version,
6557       # but apparently some variants of GNU ld only accept -v.
6558       # Break only if it was the GNU/non-GNU ld that we prefer.
6559       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6560       *GNU* | *'with BFD'*)
6561         test "$with_gnu_ld" != no && break
6562         ;;
6563       *)
6564         test "$with_gnu_ld" != yes && break
6565         ;;
6566       esac
6567     fi
6568   done
6569   IFS="$lt_save_ifs"
6570 else
6571   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6572 fi
6573 fi
6574
6575 LD="$lt_cv_path_LD"
6576 if test -n "$LD"; then
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6578 $as_echo "$LD" >&6; }
6579 else
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6586 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6590 case `$LD -v 2>&1 </dev/null` in
6591 *GNU* | *'with BFD'*)
6592   lt_cv_prog_gnu_ld=yes
6593   ;;
6594 *)
6595   lt_cv_prog_gnu_ld=no
6596   ;;
6597 esac
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6601 with_gnu_ld=$lt_cv_prog_gnu_ld
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6612 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6613 if test "${lt_cv_path_NM+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$NM"; then
6617   # Let the user override the test.
6618   lt_cv_path_NM="$NM"
6619 else
6620   lt_nm_to_check="${ac_tool_prefix}nm"
6621   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6622     lt_nm_to_check="$lt_nm_to_check nm"
6623   fi
6624   for lt_tmp_nm in $lt_nm_to_check; do
6625     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6626     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6627       IFS="$lt_save_ifs"
6628       test -z "$ac_dir" && ac_dir=.
6629       tmp_nm="$ac_dir/$lt_tmp_nm"
6630       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6631         # Check to see if the nm accepts a BSD-compat flag.
6632         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6633         #   nm: unknown option "B" ignored
6634         # Tru64's nm complains that /dev/null is an invalid object file
6635         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6636         */dev/null* | *'Invalid file or object type'*)
6637           lt_cv_path_NM="$tmp_nm -B"
6638           break
6639           ;;
6640         *)
6641           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6642           */dev/null*)
6643             lt_cv_path_NM="$tmp_nm -p"
6644             break
6645             ;;
6646           *)
6647             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6648             continue # so that we can try to find one that supports BSD flags
6649             ;;
6650           esac
6651           ;;
6652         esac
6653       fi
6654     done
6655     IFS="$lt_save_ifs"
6656   done
6657   : ${lt_cv_path_NM=no}
6658 fi
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6661 $as_echo "$lt_cv_path_NM" >&6; }
6662 if test "$lt_cv_path_NM" != "no"; then
6663   NM="$lt_cv_path_NM"
6664 else
6665   # Didn't find any BSD compatible name lister, look for dumpbin.
6666   if test -n "$DUMPBIN"; then :
6667     # Let the user override the test.
6668   else
6669     if test -n "$ac_tool_prefix"; then
6670   for ac_prog in dumpbin "link -dump"
6671   do
6672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$DUMPBIN"; then
6680   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 DUMPBIN=$ac_cv_prog_DUMPBIN
6700 if test -n "$DUMPBIN"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6702 $as_echo "$DUMPBIN" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708
6709     test -n "$DUMPBIN" && break
6710   done
6711 fi
6712 if test -z "$DUMPBIN"; then
6713   ac_ct_DUMPBIN=$DUMPBIN
6714   for ac_prog in dumpbin "link -dump"
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$ac_ct_DUMPBIN"; then
6724   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6744 if test -n "$ac_ct_DUMPBIN"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6746 $as_echo "$ac_ct_DUMPBIN" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753   test -n "$ac_ct_DUMPBIN" && break
6754 done
6755
6756   if test "x$ac_ct_DUMPBIN" = x; then
6757     DUMPBIN=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     DUMPBIN=$ac_ct_DUMPBIN
6766   fi
6767 fi
6768
6769     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6770     *COFF*)
6771       DUMPBIN="$DUMPBIN -symbols"
6772       ;;
6773     *)
6774       DUMPBIN=:
6775       ;;
6776     esac
6777   fi
6778
6779   if test "$DUMPBIN" != ":"; then
6780     NM="$DUMPBIN"
6781   fi
6782 fi
6783 test -z "$NM" && NM=nm
6784
6785
6786
6787
6788
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6791 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6792 if test "${lt_cv_nm_interface+set}" = set; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795   lt_cv_nm_interface="BSD nm"
6796   echo "int some_variable = 0;" > conftest.$ac_ext
6797   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6798   (eval "$ac_compile" 2>conftest.err)
6799   cat conftest.err >&5
6800   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6801   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6802   cat conftest.err >&5
6803   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6804   cat conftest.out >&5
6805   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6806     lt_cv_nm_interface="MS dumpbin"
6807   fi
6808   rm -f conftest*
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6811 $as_echo "$lt_cv_nm_interface" >&6; }
6812
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6814 $as_echo_n "checking whether ln -s works... " >&6; }
6815 LN_S=$as_ln_s
6816 if test "$LN_S" = "ln -s"; then
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818 $as_echo "yes" >&6; }
6819 else
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6821 $as_echo "no, using $LN_S" >&6; }
6822 fi
6823
6824 # find the maximum length of command line arguments
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6826 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6827 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830     i=0
6831   teststring="ABCD"
6832
6833   case $build_os in
6834   msdosdjgpp*)
6835     # On DJGPP, this test can blow up pretty badly due to problems in libc
6836     # (any single argument exceeding 2000 bytes causes a buffer overrun
6837     # during glob expansion).  Even if it were fixed, the result of this
6838     # check would be larger than it should be.
6839     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6840     ;;
6841
6842   gnu*)
6843     # Under GNU Hurd, this test is not required because there is
6844     # no limit to the length of command line arguments.
6845     # Libtool will interpret -1 as no limit whatsoever
6846     lt_cv_sys_max_cmd_len=-1;
6847     ;;
6848
6849   cygwin* | mingw* | cegcc*)
6850     # On Win9x/ME, this test blows up -- it succeeds, but takes
6851     # about 5 minutes as the teststring grows exponentially.
6852     # Worse, since 9x/ME are not pre-emptively multitasking,
6853     # you end up with a "frozen" computer, even though with patience
6854     # the test eventually succeeds (with a max line length of 256k).
6855     # Instead, let's just punt: use the minimum linelength reported by
6856     # all of the supported platforms: 8192 (on NT/2K/XP).
6857     lt_cv_sys_max_cmd_len=8192;
6858     ;;
6859
6860   mint*)
6861     # On MiNT this can take a long time and run out of memory.
6862     lt_cv_sys_max_cmd_len=8192;
6863     ;;
6864
6865   amigaos*)
6866     # On AmigaOS with pdksh, this test takes hours, literally.
6867     # So we just punt and use a minimum line length of 8192.
6868     lt_cv_sys_max_cmd_len=8192;
6869     ;;
6870
6871   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6872     # This has been around since 386BSD, at least.  Likely further.
6873     if test -x /sbin/sysctl; then
6874       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6875     elif test -x /usr/sbin/sysctl; then
6876       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6877     else
6878       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6879     fi
6880     # And add a safety zone
6881     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6882     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6883     ;;
6884
6885   interix*)
6886     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6887     lt_cv_sys_max_cmd_len=196608
6888     ;;
6889
6890   osf*)
6891     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6892     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6893     # nice to cause kernel panics so lets avoid the loop below.
6894     # First set a reasonable default.
6895     lt_cv_sys_max_cmd_len=16384
6896     #
6897     if test -x /sbin/sysconfig; then
6898       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6899         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6900       esac
6901     fi
6902     ;;
6903   sco3.2v5*)
6904     lt_cv_sys_max_cmd_len=102400
6905     ;;
6906   sysv5* | sco5v6* | sysv4.2uw2*)
6907     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6908     if test -n "$kargmax"; then
6909       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6910     else
6911       lt_cv_sys_max_cmd_len=32768
6912     fi
6913     ;;
6914   *)
6915     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6916     if test -n "$lt_cv_sys_max_cmd_len"; then
6917       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6918       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6919     else
6920       # Make teststring a little bigger before we do anything with it.
6921       # a 1K string should be a reasonable start.
6922       for i in 1 2 3 4 5 6 7 8 ; do
6923         teststring=$teststring$teststring
6924       done
6925       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6926       # If test is not a shell built-in, we'll probably end up computing a
6927       # maximum length that is only half of the actual maximum length, but
6928       # we can't tell.
6929       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6930                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6931               test $i != 17 # 1/2 MB should be enough
6932       do
6933         i=`expr $i + 1`
6934         teststring=$teststring$teststring
6935       done
6936       # Only check the string length outside the loop.
6937       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6938       teststring=
6939       # Add a significant safety factor because C++ compilers can tack on
6940       # massive amounts of additional arguments before passing them to the
6941       # linker.  It appears as though 1/2 is a usable value.
6942       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6943     fi
6944     ;;
6945   esac
6946
6947 fi
6948
6949 if test -n $lt_cv_sys_max_cmd_len ; then
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6951 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6952 else
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6954 $as_echo "none" >&6; }
6955 fi
6956 max_cmd_len=$lt_cv_sys_max_cmd_len
6957
6958
6959
6960
6961
6962
6963 : ${CP="cp -f"}
6964 : ${MV="mv -f"}
6965 : ${RM="rm -f"}
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6968 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6969 # Try some XSI features
6970 xsi_shell=no
6971 ( _lt_dummy="a/b/c"
6972   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6973       = c,a/b,, \
6974     && eval 'test $(( 1 + 1 )) -eq 2 \
6975     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6976   && xsi_shell=yes
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6978 $as_echo "$xsi_shell" >&6; }
6979
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6982 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6983 lt_shell_append=no
6984 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6985     >/dev/null 2>&1 \
6986   && lt_shell_append=yes
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6988 $as_echo "$lt_shell_append" >&6; }
6989
6990
6991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6992   lt_unset=unset
6993 else
6994   lt_unset=false
6995 fi
6996
6997
6998
6999
7000
7001 # test EBCDIC or ASCII
7002 case `echo X|tr X '\101'` in
7003  A) # ASCII based system
7004     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7005   lt_SP2NL='tr \040 \012'
7006   lt_NL2SP='tr \015\012 \040\040'
7007   ;;
7008  *) # EBCDIC based system
7009   lt_SP2NL='tr \100 \n'
7010   lt_NL2SP='tr \r\n \100\100'
7011   ;;
7012 esac
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7024 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   lt_cv_ld_reload_flag='-r'
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7031 reload_flag=$lt_cv_ld_reload_flag
7032 case $reload_flag in
7033 "" | " "*) ;;
7034 *) reload_flag=" $reload_flag" ;;
7035 esac
7036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7037 case $host_os in
7038   darwin*)
7039     if test "$GCC" = yes; then
7040       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7041     else
7042       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7043     fi
7044     ;;
7045 esac
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 if test -n "$ac_tool_prefix"; then
7056   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$OBJDUMP"; then
7064   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 OBJDUMP=$ac_cv_prog_OBJDUMP
7084 if test -n "$OBJDUMP"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7086 $as_echo "$OBJDUMP" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_OBJDUMP"; then
7095   ac_ct_OBJDUMP=$OBJDUMP
7096   # Extract the first word of "objdump", so it can be a program name with args.
7097 set dummy objdump; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$ac_ct_OBJDUMP"; then
7104   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7124 if test -n "$ac_ct_OBJDUMP"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7126 $as_echo "$ac_ct_OBJDUMP" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132   if test "x$ac_ct_OBJDUMP" = x; then
7133     OBJDUMP="false"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     OBJDUMP=$ac_ct_OBJDUMP
7142   fi
7143 else
7144   OBJDUMP="$ac_cv_prog_OBJDUMP"
7145 fi
7146
7147 test -z "$OBJDUMP" && OBJDUMP=objdump
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7158 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7159 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   lt_cv_file_magic_cmd='$MAGIC_CMD'
7163 lt_cv_file_magic_test_file=
7164 lt_cv_deplibs_check_method='unknown'
7165 # Need to set the preceding variable on all platforms that support
7166 # interlibrary dependencies.
7167 # 'none' -- dependencies not supported.
7168 # `unknown' -- same as none, but documents that we really don't know.
7169 # 'pass_all' -- all dependencies passed with no checks.
7170 # 'test_compile' -- check by making test program.
7171 # 'file_magic [[regex]]' -- check by looking for files in library path
7172 # which responds to the $file_magic_cmd with a given extended regex.
7173 # If you have `file' or equivalent on your system and you're not sure
7174 # whether `pass_all' will *always* work, you probably want this one.
7175
7176 case $host_os in
7177 aix[4-9]*)
7178   lt_cv_deplibs_check_method=pass_all
7179   ;;
7180
7181 beos*)
7182   lt_cv_deplibs_check_method=pass_all
7183   ;;
7184
7185 bsdi[45]*)
7186   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7187   lt_cv_file_magic_cmd='/usr/bin/file -L'
7188   lt_cv_file_magic_test_file=/shlib/libc.so
7189   ;;
7190
7191 cygwin*)
7192   # func_win32_libid is a shell function defined in ltmain.sh
7193   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7194   lt_cv_file_magic_cmd='func_win32_libid'
7195   ;;
7196
7197 mingw* | pw32*)
7198   # Base MSYS/MinGW do not provide the 'file' command needed by
7199   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7200   # unless we find 'file', for example because we are cross-compiling.
7201   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7202   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7203     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204     lt_cv_file_magic_cmd='func_win32_libid'
7205   else
7206     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7207     lt_cv_file_magic_cmd='$OBJDUMP -f'
7208   fi
7209   ;;
7210
7211 cegcc*)
7212   # use the weaker test based on 'objdump'. See mingw*.
7213   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7214   lt_cv_file_magic_cmd='$OBJDUMP -f'
7215   ;;
7216
7217 darwin* | rhapsody*)
7218   lt_cv_deplibs_check_method=pass_all
7219   ;;
7220
7221 freebsd* | dragonfly*)
7222   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7223     case $host_cpu in
7224     i*86 )
7225       # Not sure whether the presence of OpenBSD here was a mistake.
7226       # Let's accept both of them until this is cleared up.
7227       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7228       lt_cv_file_magic_cmd=/usr/bin/file
7229       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7230       ;;
7231     esac
7232   else
7233     lt_cv_deplibs_check_method=pass_all
7234   fi
7235   ;;
7236
7237 gnu*)
7238   lt_cv_deplibs_check_method=pass_all
7239   ;;
7240
7241 haiku*)
7242   lt_cv_deplibs_check_method=pass_all
7243   ;;
7244
7245 hpux10.20* | hpux11*)
7246   lt_cv_file_magic_cmd=/usr/bin/file
7247   case $host_cpu in
7248   ia64*)
7249     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7250     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7251     ;;
7252   hppa*64*)
7253     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7254     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7255     ;;
7256   *)
7257     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7258     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7259     ;;
7260   esac
7261   ;;
7262
7263 interix[3-9]*)
7264   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7265   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7266   ;;
7267
7268 irix5* | irix6* | nonstopux*)
7269   case $LD in
7270   *-32|*"-32 ") libmagic=32-bit;;
7271   *-n32|*"-n32 ") libmagic=N32;;
7272   *-64|*"-64 ") libmagic=64-bit;;
7273   *) libmagic=never-match;;
7274   esac
7275   lt_cv_deplibs_check_method=pass_all
7276   ;;
7277
7278 # This must be Linux ELF.
7279 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7280   lt_cv_deplibs_check_method=pass_all
7281   ;;
7282
7283 netbsd*)
7284   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7286   else
7287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7288   fi
7289   ;;
7290
7291 newos6*)
7292   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7293   lt_cv_file_magic_cmd=/usr/bin/file
7294   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7295   ;;
7296
7297 *nto* | *qnx*)
7298   lt_cv_deplibs_check_method=pass_all
7299   ;;
7300
7301 openbsd*)
7302   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7304   else
7305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7306   fi
7307   ;;
7308
7309 osf3* | osf4* | osf5*)
7310   lt_cv_deplibs_check_method=pass_all
7311   ;;
7312
7313 rdos*)
7314   lt_cv_deplibs_check_method=pass_all
7315   ;;
7316
7317 solaris*)
7318   lt_cv_deplibs_check_method=pass_all
7319   ;;
7320
7321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7322   lt_cv_deplibs_check_method=pass_all
7323   ;;
7324
7325 sysv4 | sysv4.3*)
7326   case $host_vendor in
7327   motorola)
7328     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]'
7329     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7330     ;;
7331   ncr)
7332     lt_cv_deplibs_check_method=pass_all
7333     ;;
7334   sequent)
7335     lt_cv_file_magic_cmd='/bin/file'
7336     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7337     ;;
7338   sni)
7339     lt_cv_file_magic_cmd='/bin/file'
7340     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7341     lt_cv_file_magic_test_file=/lib/libc.so
7342     ;;
7343   siemens)
7344     lt_cv_deplibs_check_method=pass_all
7345     ;;
7346   pc)
7347     lt_cv_deplibs_check_method=pass_all
7348     ;;
7349   esac
7350   ;;
7351
7352 tpf*)
7353   lt_cv_deplibs_check_method=pass_all
7354   ;;
7355 esac
7356
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7359 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7360 file_magic_cmd=$lt_cv_file_magic_cmd
7361 deplibs_check_method=$lt_cv_deplibs_check_method
7362 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 if test -n "$ac_tool_prefix"; then
7376   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}ar; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_AR+set}" = set; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -n "$AR"; then
7384   ac_cv_prog_AR="$AR" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_prog_AR="${ac_tool_prefix}ar"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 AR=$ac_cv_prog_AR
7404 if test -n "$AR"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7406 $as_echo "$AR" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_AR"; then
7415   ac_ct_AR=$AR
7416   # Extract the first word of "ar", so it can be a program name with args.
7417 set dummy ar; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$ac_ct_AR"; then
7424   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_ac_ct_AR="ar"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7444 if test -n "$ac_ct_AR"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7446 $as_echo "$ac_ct_AR" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452   if test "x$ac_ct_AR" = x; then
7453     AR="false"
7454   else
7455     case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461     AR=$ac_ct_AR
7462   fi
7463 else
7464   AR="$ac_cv_prog_AR"
7465 fi
7466
7467 test -z "$AR" && AR=ar
7468 test -z "$AR_FLAGS" && AR_FLAGS=cru
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 if test -n "$ac_tool_prefix"; then
7481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}strip; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_STRIP+set}" = set; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   if test -n "$STRIP"; then
7489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 STRIP=$ac_cv_prog_STRIP
7509 if test -n "$STRIP"; then
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7511 $as_echo "$STRIP" >&6; }
7512 else
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 fi
7519 if test -z "$ac_cv_prog_STRIP"; then
7520   ac_ct_STRIP=$STRIP
7521   # Extract the first word of "strip", so it can be a program name with args.
7522 set dummy strip; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   if test -n "$ac_ct_STRIP"; then
7529   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536     for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_prog_ac_ct_STRIP="strip"
7539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543   done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7549 if test -n "$ac_ct_STRIP"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7551 $as_echo "$ac_ct_STRIP" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557   if test "x$ac_ct_STRIP" = x; then
7558     STRIP=":"
7559   else
7560     case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566     STRIP=$ac_ct_STRIP
7567   fi
7568 else
7569   STRIP="$ac_cv_prog_STRIP"
7570 fi
7571
7572 test -z "$STRIP" && STRIP=:
7573
7574
7575
7576
7577
7578
7579 if test -n "$ac_tool_prefix"; then
7580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7585   $as_echo_n "(cached) " >&6
7586 else
7587   if test -n "$RANLIB"; then
7588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595     for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602   done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 RANLIB=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7611 else
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616
7617 fi
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619   ac_ct_RANLIB=$RANLIB
7620   # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if test -n "$ac_ct_RANLIB"; then
7628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635     for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_prog_ac_ct_RANLIB="ranlib"
7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642   done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7651 else
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656   if test "x$ac_ct_RANLIB" = x; then
7657     RANLIB=":"
7658   else
7659     case $cross_compiling:$ac_tool_warned in
7660 yes:)
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned=yes ;;
7664 esac
7665     RANLIB=$ac_ct_RANLIB
7666   fi
7667 else
7668   RANLIB="$ac_cv_prog_RANLIB"
7669 fi
7670
7671 test -z "$RANLIB" && RANLIB=:
7672
7673
7674
7675
7676
7677
7678 # Determine commands to create old-style static archives.
7679 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7680 old_postinstall_cmds='chmod 644 $oldlib'
7681 old_postuninstall_cmds=
7682
7683 if test -n "$RANLIB"; then
7684   case $host_os in
7685   openbsd*)
7686     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7687     ;;
7688   *)
7689     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7690     ;;
7691   esac
7692   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7693 fi
7694
7695 case $host_os in
7696   darwin*)
7697     lock_old_archive_extraction=yes ;;
7698   *)
7699     lock_old_archive_extraction=no ;;
7700 esac
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740 # If no C compiler was specified, use CC.
7741 LTCC=${LTCC-"$CC"}
7742
7743 # If no C compiler flags were specified, use CFLAGS.
7744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7745
7746 # Allow CC to be a program name with arguments.
7747 compiler=$CC
7748
7749
7750 # Check for command to grab the raw symbol name followed by C symbol from nm.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7752 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7753 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756
7757 # These are sane defaults that work on at least a few old systems.
7758 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7759
7760 # Character class describing NM global symbol codes.
7761 symcode='[BCDEGRST]'
7762
7763 # Regexp to match symbols that can be accessed directly from C.
7764 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7765
7766 # Define system-specific variables.
7767 case $host_os in
7768 aix*)
7769   symcode='[BCDT]'
7770   ;;
7771 cygwin* | mingw* | pw32* | cegcc*)
7772   symcode='[ABCDGISTW]'
7773   ;;
7774 hpux*)
7775   if test "$host_cpu" = ia64; then
7776     symcode='[ABCDEGRST]'
7777   fi
7778   ;;
7779 irix* | nonstopux*)
7780   symcode='[BCDEGRST]'
7781   ;;
7782 osf*)
7783   symcode='[BCDEGQRST]'
7784   ;;
7785 solaris*)
7786   symcode='[BDRT]'
7787   ;;
7788 sco3.2v5*)
7789   symcode='[DT]'
7790   ;;
7791 sysv4.2uw2*)
7792   symcode='[DT]'
7793   ;;
7794 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7795   symcode='[ABDT]'
7796   ;;
7797 sysv4)
7798   symcode='[DFNSTU]'
7799   ;;
7800 esac
7801
7802 # If we're using GNU nm, then use its standard symbol codes.
7803 case `$NM -V 2>&1` in
7804 *GNU* | *'with BFD'*)
7805   symcode='[ABCDGIRSTW]' ;;
7806 esac
7807
7808 # Transform an extracted symbol line into a proper C declaration.
7809 # Some systems (esp. on ia64) link data and code symbols differently,
7810 # so use this general approach.
7811 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7812
7813 # Transform an extracted symbol line into symbol name and symbol address
7814 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7815 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7816
7817 # Handle CRLF in mingw tool chain
7818 opt_cr=
7819 case $build_os in
7820 mingw*)
7821   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7822   ;;
7823 esac
7824
7825 # Try without a prefix underscore, then with it.
7826 for ac_symprfx in "" "_"; do
7827
7828   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7829   symxfrm="\\1 $ac_symprfx\\2 \\2"
7830
7831   # Write the raw and C identifiers.
7832   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7833     # Fake it for dumpbin and say T for any non-static function
7834     # and D for any global variable.
7835     # Also find C++ and __fastcall symbols from MSVC++,
7836     # which start with @ or ?.
7837     lt_cv_sys_global_symbol_pipe="$AWK '"\
7838 "     {last_section=section; section=\$ 3};"\
7839 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7840 "     \$ 0!~/External *\|/{next};"\
7841 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7842 "     {if(hide[section]) next};"\
7843 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7844 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7845 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7846 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7847 "     ' prfx=^$ac_symprfx"
7848   else
7849     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7850   fi
7851
7852   # Check to see that the pipe works correctly.
7853   pipe_works=no
7854
7855   rm -f conftest*
7856   cat > conftest.$ac_ext <<_LT_EOF
7857 #ifdef __cplusplus
7858 extern "C" {
7859 #endif
7860 char nm_test_var;
7861 void nm_test_func(void);
7862 void nm_test_func(void){}
7863 #ifdef __cplusplus
7864 }
7865 #endif
7866 int main(){nm_test_var='a';nm_test_func();return(0);}
7867 _LT_EOF
7868
7869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870   (eval $ac_compile) 2>&5
7871   ac_status=$?
7872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873   test $ac_status = 0; }; then
7874     # Now try to grab the symbols.
7875     nlist=conftest.nm
7876     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7877   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7878   ac_status=$?
7879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880   test $ac_status = 0; } && test -s "$nlist"; then
7881       # Try sorting and uniquifying the output.
7882       if sort "$nlist" | uniq > "$nlist"T; then
7883         mv -f "$nlist"T "$nlist"
7884       else
7885         rm -f "$nlist"T
7886       fi
7887
7888       # Make sure that we snagged all the symbols we need.
7889       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7890         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7891           cat <<_LT_EOF > conftest.$ac_ext
7892 #ifdef __cplusplus
7893 extern "C" {
7894 #endif
7895
7896 _LT_EOF
7897           # Now generate the symbol file.
7898           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7899
7900           cat <<_LT_EOF >> conftest.$ac_ext
7901
7902 /* The mapping between symbol names and symbols.  */
7903 const struct {
7904   const char *name;
7905   void       *address;
7906 }
7907 lt__PROGRAM__LTX_preloaded_symbols[] =
7908 {
7909   { "@PROGRAM@", (void *) 0 },
7910 _LT_EOF
7911           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7912           cat <<\_LT_EOF >> conftest.$ac_ext
7913   {0, (void *) 0}
7914 };
7915
7916 /* This works around a problem in FreeBSD linker */
7917 #ifdef FREEBSD_WORKAROUND
7918 static const void *lt_preloaded_setup() {
7919   return lt__PROGRAM__LTX_preloaded_symbols;
7920 }
7921 #endif
7922
7923 #ifdef __cplusplus
7924 }
7925 #endif
7926 _LT_EOF
7927           # Now try linking the two files.
7928           mv conftest.$ac_objext conftstm.$ac_objext
7929           lt_save_LIBS="$LIBS"
7930           lt_save_CFLAGS="$CFLAGS"
7931           LIBS="conftstm.$ac_objext"
7932           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7933           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7934   (eval $ac_link) 2>&5
7935   ac_status=$?
7936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7938             pipe_works=yes
7939           fi
7940           LIBS="$lt_save_LIBS"
7941           CFLAGS="$lt_save_CFLAGS"
7942         else
7943           echo "cannot find nm_test_func in $nlist" >&5
7944         fi
7945       else
7946         echo "cannot find nm_test_var in $nlist" >&5
7947       fi
7948     else
7949       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7950     fi
7951   else
7952     echo "$progname: failed program was:" >&5
7953     cat conftest.$ac_ext >&5
7954   fi
7955   rm -rf conftest* conftst*
7956
7957   # Do not use the global_symbol_pipe unless it works.
7958   if test "$pipe_works" = yes; then
7959     break
7960   else
7961     lt_cv_sys_global_symbol_pipe=
7962   fi
7963 done
7964
7965 fi
7966
7967 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7968   lt_cv_sys_global_symbol_to_cdecl=
7969 fi
7970 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7972 $as_echo "failed" >&6; }
7973 else
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7975 $as_echo "ok" >&6; }
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 # Check whether --enable-libtool-lock was given.
8000 if test "${enable_libtool_lock+set}" = set; then :
8001   enableval=$enable_libtool_lock;
8002 fi
8003
8004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8005
8006 # Some flags need to be propagated to the compiler or linker for good
8007 # libtool support.
8008 case $host in
8009 ia64-*-hpux*)
8010   # Find out which ABI we are using.
8011   echo 'int i;' > conftest.$ac_ext
8012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8013   (eval $ac_compile) 2>&5
8014   ac_status=$?
8015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8016   test $ac_status = 0; }; then
8017     case `/usr/bin/file conftest.$ac_objext` in
8018       *ELF-32*)
8019         HPUX_IA64_MODE="32"
8020         ;;
8021       *ELF-64*)
8022         HPUX_IA64_MODE="64"
8023         ;;
8024     esac
8025   fi
8026   rm -rf conftest*
8027   ;;
8028 *-*-irix6*)
8029   # Find out which ABI we are using.
8030   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8032   (eval $ac_compile) 2>&5
8033   ac_status=$?
8034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035   test $ac_status = 0; }; then
8036     if test "$lt_cv_prog_gnu_ld" = yes; then
8037       case `/usr/bin/file conftest.$ac_objext` in
8038         *32-bit*)
8039           LD="${LD-ld} -melf32bsmip"
8040           ;;
8041         *N32*)
8042           LD="${LD-ld} -melf32bmipn32"
8043           ;;
8044         *64-bit*)
8045           LD="${LD-ld} -melf64bmip"
8046         ;;
8047       esac
8048     else
8049       case `/usr/bin/file conftest.$ac_objext` in
8050         *32-bit*)
8051           LD="${LD-ld} -32"
8052           ;;
8053         *N32*)
8054           LD="${LD-ld} -n32"
8055           ;;
8056         *64-bit*)
8057           LD="${LD-ld} -64"
8058           ;;
8059       esac
8060     fi
8061   fi
8062   rm -rf conftest*
8063   ;;
8064
8065 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8066 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8067   # Find out which ABI we are using.
8068   echo 'int i;' > conftest.$ac_ext
8069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8070   (eval $ac_compile) 2>&5
8071   ac_status=$?
8072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073   test $ac_status = 0; }; then
8074     case `/usr/bin/file conftest.o` in
8075       *32-bit*)
8076         case $host in
8077           x86_64-*kfreebsd*-gnu)
8078             LD="${LD-ld} -m elf_i386_fbsd"
8079             ;;
8080           x86_64-*linux*)
8081             case `/usr/bin/file conftest.o` in
8082               *x86-64*)
8083                 LD="${LD-ld} -m elf32_x86_64"
8084                 ;;
8085               *)
8086                 LD="${LD-ld} -m elf_i386"
8087                 ;;
8088             esac
8089             ;;
8090           ppc64-*linux*|powerpc64-*linux*)
8091             LD="${LD-ld} -m elf32ppclinux"
8092             ;;
8093           s390x-*linux*)
8094             LD="${LD-ld} -m elf_s390"
8095             ;;
8096           sparc64-*linux*)
8097             LD="${LD-ld} -m elf32_sparc"
8098             ;;
8099         esac
8100         ;;
8101       *64-bit*)
8102         case $host in
8103           x86_64-*kfreebsd*-gnu)
8104             LD="${LD-ld} -m elf_x86_64_fbsd"
8105             ;;
8106           x86_64-*linux*)
8107             LD="${LD-ld} -m elf_x86_64"
8108             ;;
8109           ppc*-*linux*|powerpc*-*linux*)
8110             LD="${LD-ld} -m elf64ppc"
8111             ;;
8112           s390*-*linux*|s390*-*tpf*)
8113             LD="${LD-ld} -m elf64_s390"
8114             ;;
8115           sparc*-*linux*)
8116             LD="${LD-ld} -m elf64_sparc"
8117             ;;
8118         esac
8119         ;;
8120     esac
8121   fi
8122   rm -rf conftest*
8123   ;;
8124
8125 *-*-sco3.2v5*)
8126   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8127   SAVE_CFLAGS="$CFLAGS"
8128   CFLAGS="$CFLAGS -belf"
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8130 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8131 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   ac_ext=c
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140      if test x$gcc_no_link = xyes; then
8141   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8142 fi
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h.  */
8145
8146 int
8147 main ()
8148 {
8149
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155   lt_cv_cc_needs_belf=yes
8156 else
8157   lt_cv_cc_needs_belf=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160     conftest$ac_exeext conftest.$ac_ext
8161      ac_ext=c
8162 ac_cpp='$CPP $CPPFLAGS'
8163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8169 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8170   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8171     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8172     CFLAGS="$SAVE_CFLAGS"
8173   fi
8174   ;;
8175 sparc*-*solaris*)
8176   # Find out which ABI we are using.
8177   echo 'int i;' > conftest.$ac_ext
8178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179   (eval $ac_compile) 2>&5
8180   ac_status=$?
8181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182   test $ac_status = 0; }; then
8183     case `/usr/bin/file conftest.o` in
8184     *64-bit*)
8185       case $lt_cv_prog_gnu_ld in
8186       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8187       *)
8188         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8189           LD="${LD-ld} -64"
8190         fi
8191         ;;
8192       esac
8193       ;;
8194     esac
8195   fi
8196   rm -rf conftest*
8197   ;;
8198 esac
8199
8200 need_locks="$enable_libtool_lock"
8201
8202
8203   case $host_os in
8204     rhapsody* | darwin*)
8205     if test -n "$ac_tool_prefix"; then
8206   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8207 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   if test -n "$DSYMUTIL"; then
8214   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221     for ac_exec_ext in '' $ac_executable_extensions; do
8222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228   done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8234 if test -n "$DSYMUTIL"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8236 $as_echo "$DSYMUTIL" >&6; }
8237 else
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243 fi
8244 if test -z "$ac_cv_prog_DSYMUTIL"; then
8245   ac_ct_DSYMUTIL=$DSYMUTIL
8246   # Extract the first word of "dsymutil", so it can be a program name with args.
8247 set dummy dsymutil; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   if test -n "$ac_ct_DSYMUTIL"; then
8254   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259   IFS=$as_save_IFS
8260   test -z "$as_dir" && as_dir=.
8261     for ac_exec_ext in '' $ac_executable_extensions; do
8262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265     break 2
8266   fi
8267 done
8268   done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8274 if test -n "$ac_ct_DSYMUTIL"; then
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8276 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8277 else
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282   if test "x$ac_ct_DSYMUTIL" = x; then
8283     DSYMUTIL=":"
8284   else
8285     case $cross_compiling:$ac_tool_warned in
8286 yes:)
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289 ac_tool_warned=yes ;;
8290 esac
8291     DSYMUTIL=$ac_ct_DSYMUTIL
8292   fi
8293 else
8294   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8295 fi
8296
8297     if test -n "$ac_tool_prefix"; then
8298   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   if test -n "$NMEDIT"; then
8306   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313     for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320   done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 NMEDIT=$ac_cv_prog_NMEDIT
8326 if test -n "$NMEDIT"; then
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8328 $as_echo "$NMEDIT" >&6; }
8329 else
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 fi
8336 if test -z "$ac_cv_prog_NMEDIT"; then
8337   ac_ct_NMEDIT=$NMEDIT
8338   # Extract the first word of "nmedit", so it can be a program name with args.
8339 set dummy nmedit; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   if test -n "$ac_ct_NMEDIT"; then
8346   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353     for ac_exec_ext in '' $ac_executable_extensions; do
8354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357     break 2
8358   fi
8359 done
8360   done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8366 if test -n "$ac_ct_NMEDIT"; then
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8368 $as_echo "$ac_ct_NMEDIT" >&6; }
8369 else
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374   if test "x$ac_ct_NMEDIT" = x; then
8375     NMEDIT=":"
8376   else
8377     case $cross_compiling:$ac_tool_warned in
8378 yes:)
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383     NMEDIT=$ac_ct_NMEDIT
8384   fi
8385 else
8386   NMEDIT="$ac_cv_prog_NMEDIT"
8387 fi
8388
8389     if test -n "$ac_tool_prefix"; then
8390   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_prog_LIPO+set}" = set; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   if test -n "$LIPO"; then
8398   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403   IFS=$as_save_IFS
8404   test -z "$as_dir" && as_dir=.
8405     for ac_exec_ext in '' $ac_executable_extensions; do
8406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409     break 2
8410   fi
8411 done
8412   done
8413 IFS=$as_save_IFS
8414
8415 fi
8416 fi
8417 LIPO=$ac_cv_prog_LIPO
8418 if test -n "$LIPO"; then
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8420 $as_echo "$LIPO" >&6; }
8421 else
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8424 fi
8425
8426
8427 fi
8428 if test -z "$ac_cv_prog_LIPO"; then
8429   ac_ct_LIPO=$LIPO
8430   # Extract the first word of "lipo", so it can be a program name with args.
8431 set dummy lipo; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   if test -n "$ac_ct_LIPO"; then
8438   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445     for ac_exec_ext in '' $ac_executable_extensions; do
8446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447     ac_cv_prog_ac_ct_LIPO="lipo"
8448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452   done
8453 IFS=$as_save_IFS
8454
8455 fi
8456 fi
8457 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8458 if test -n "$ac_ct_LIPO"; then
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8460 $as_echo "$ac_ct_LIPO" >&6; }
8461 else
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466   if test "x$ac_ct_LIPO" = x; then
8467     LIPO=":"
8468   else
8469     case $cross_compiling:$ac_tool_warned in
8470 yes:)
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8473 ac_tool_warned=yes ;;
8474 esac
8475     LIPO=$ac_ct_LIPO
8476   fi
8477 else
8478   LIPO="$ac_cv_prog_LIPO"
8479 fi
8480
8481     if test -n "$ac_tool_prefix"; then
8482   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8483 set dummy ${ac_tool_prefix}otool; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8487   $as_echo_n "(cached) " >&6
8488 else
8489   if test -n "$OTOOL"; then
8490   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495   IFS=$as_save_IFS
8496   test -z "$as_dir" && as_dir=.
8497     for ac_exec_ext in '' $ac_executable_extensions; do
8498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501     break 2
8502   fi
8503 done
8504   done
8505 IFS=$as_save_IFS
8506
8507 fi
8508 fi
8509 OTOOL=$ac_cv_prog_OTOOL
8510 if test -n "$OTOOL"; then
8511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8512 $as_echo "$OTOOL" >&6; }
8513 else
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8516 fi
8517
8518
8519 fi
8520 if test -z "$ac_cv_prog_OTOOL"; then
8521   ac_ct_OTOOL=$OTOOL
8522   # Extract the first word of "otool", so it can be a program name with args.
8523 set dummy otool; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   if test -n "$ac_ct_OTOOL"; then
8530   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539     ac_cv_prog_ac_ct_OTOOL="otool"
8540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544   done
8545 IFS=$as_save_IFS
8546
8547 fi
8548 fi
8549 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8550 if test -n "$ac_ct_OTOOL"; then
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8552 $as_echo "$ac_ct_OTOOL" >&6; }
8553 else
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8556 fi
8557
8558   if test "x$ac_ct_OTOOL" = x; then
8559     OTOOL=":"
8560   else
8561     case $cross_compiling:$ac_tool_warned in
8562 yes:)
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8565 ac_tool_warned=yes ;;
8566 esac
8567     OTOOL=$ac_ct_OTOOL
8568   fi
8569 else
8570   OTOOL="$ac_cv_prog_OTOOL"
8571 fi
8572
8573     if test -n "$ac_tool_prefix"; then
8574   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8575 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   if test -n "$OTOOL64"; then
8582   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587   IFS=$as_save_IFS
8588   test -z "$as_dir" && as_dir=.
8589     for ac_exec_ext in '' $ac_executable_extensions; do
8590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593     break 2
8594   fi
8595 done
8596   done
8597 IFS=$as_save_IFS
8598
8599 fi
8600 fi
8601 OTOOL64=$ac_cv_prog_OTOOL64
8602 if test -n "$OTOOL64"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8604 $as_echo "$OTOOL64" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611 fi
8612 if test -z "$ac_cv_prog_OTOOL64"; then
8613   ac_ct_OTOOL64=$OTOOL64
8614   # Extract the first word of "otool64", so it can be a program name with args.
8615 set dummy otool64; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   if test -n "$ac_ct_OTOOL64"; then
8622   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631     ac_cv_prog_ac_ct_OTOOL64="otool64"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8642 if test -n "$ac_ct_OTOOL64"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8644 $as_echo "$ac_ct_OTOOL64" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650   if test "x$ac_ct_OTOOL64" = x; then
8651     OTOOL64=":"
8652   else
8653     case $cross_compiling:$ac_tool_warned in
8654 yes:)
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8657 ac_tool_warned=yes ;;
8658 esac
8659     OTOOL64=$ac_ct_OTOOL64
8660   fi
8661 else
8662   OTOOL64="$ac_cv_prog_OTOOL64"
8663 fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8692 $as_echo_n "checking for -single_module linker flag... " >&6; }
8693 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   lt_cv_apple_cc_single_mod=no
8697       if test -z "${LT_MULTI_MODULE}"; then
8698         # By default we will add the -single_module flag. You can override
8699         # by either setting the environment variable LT_MULTI_MODULE
8700         # non-empty at configure time, or by adding -multi_module to the
8701         # link flags.
8702         rm -rf libconftest.dylib*
8703         echo "int foo(void){return 1;}" > conftest.c
8704         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8705 -dynamiclib -Wl,-single_module conftest.c" >&5
8706         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8707           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8708         _lt_result=$?
8709         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8710           lt_cv_apple_cc_single_mod=yes
8711         else
8712           cat conftest.err >&5
8713         fi
8714         rm -rf libconftest.dylib*
8715         rm -f conftest.*
8716       fi
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8719 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8722 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_ld_exported_symbols_list=no
8726       save_LDFLAGS=$LDFLAGS
8727       echo "_main" > conftest.sym
8728       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8729       if test x$gcc_no_link = xyes; then
8730   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8731 fi
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h.  */
8734
8735 int
8736 main ()
8737 {
8738
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 if ac_fn_c_try_link "$LINENO"; then :
8744   lt_cv_ld_exported_symbols_list=yes
8745 else
8746   lt_cv_ld_exported_symbols_list=no
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext \
8749     conftest$ac_exeext conftest.$ac_ext
8750         LDFLAGS="$save_LDFLAGS"
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8754 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8756 $as_echo_n "checking for -force_load linker flag... " >&6; }
8757 if test "${lt_cv_ld_force_load+set}" = set; then :
8758   $as_echo_n "(cached) " >&6
8759 else
8760   lt_cv_ld_force_load=no
8761       cat > conftest.c << _LT_EOF
8762 int forced_loaded() { return 2;}
8763 _LT_EOF
8764       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8765       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8766       echo "$AR cru libconftest.a conftest.o" >&5
8767       $AR cru libconftest.a conftest.o 2>&5
8768       cat > conftest.c << _LT_EOF
8769 int main() { return 0;}
8770 _LT_EOF
8771       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8772       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8773       _lt_result=$?
8774       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8775         lt_cv_ld_force_load=yes
8776       else
8777         cat conftest.err >&5
8778       fi
8779         rm -f conftest.err libconftest.a conftest conftest.c
8780         rm -rf conftest.dSYM
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8784 $as_echo "$lt_cv_ld_force_load" >&6; }
8785     case $host_os in
8786     rhapsody* | darwin1.[012])
8787       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8788     darwin1.*)
8789       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8790     darwin*) # darwin 5.x on
8791       # if running on 10.5 or later, the deployment target defaults
8792       # to the OS version, if on x86, and 10.4, the deployment
8793       # target defaults to 10.4. Don't you love it?
8794       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8795         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8796           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8797         10.[012]*)
8798           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8799         10.*)
8800           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8801       esac
8802     ;;
8803   esac
8804     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8805       _lt_dar_single_mod='$single_module'
8806     fi
8807     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8808       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8809     else
8810       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8811     fi
8812     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8813       _lt_dsymutil='~$DSYMUTIL $lib || :'
8814     else
8815       _lt_dsymutil=
8816     fi
8817     ;;
8818   esac
8819
8820 for ac_header in dlfcn.h
8821 do :
8822   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8823 "
8824 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8825   cat >>confdefs.h <<_ACEOF
8826 #define HAVE_DLFCN_H 1
8827 _ACEOF
8828
8829 fi
8830
8831 done
8832
8833
8834
8835
8836
8837 # Set options
8838
8839
8840
8841
8842   enable_win32_dll=no
8843
8844
8845             # Check whether --enable-shared was given.
8846 if test "${enable_shared+set}" = set; then :
8847   enableval=$enable_shared; p=${PACKAGE-default}
8848     case $enableval in
8849     yes) enable_shared=yes ;;
8850     no) enable_shared=no ;;
8851     *)
8852       enable_shared=no
8853       # Look at the argument we got.  We use all the common list separators.
8854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8855       for pkg in $enableval; do
8856         IFS="$lt_save_ifs"
8857         if test "X$pkg" = "X$p"; then
8858           enable_shared=yes
8859         fi
8860       done
8861       IFS="$lt_save_ifs"
8862       ;;
8863     esac
8864 else
8865   enable_shared=yes
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876   # Check whether --enable-static was given.
8877 if test "${enable_static+set}" = set; then :
8878   enableval=$enable_static; p=${PACKAGE-default}
8879     case $enableval in
8880     yes) enable_static=yes ;;
8881     no) enable_static=no ;;
8882     *)
8883      enable_static=no
8884       # Look at the argument we got.  We use all the common list separators.
8885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8886       for pkg in $enableval; do
8887         IFS="$lt_save_ifs"
8888         if test "X$pkg" = "X$p"; then
8889           enable_static=yes
8890         fi
8891       done
8892       IFS="$lt_save_ifs"
8893       ;;
8894     esac
8895 else
8896   enable_static=yes
8897 fi
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908 # Check whether --with-pic was given.
8909 if test "${with_pic+set}" = set; then :
8910   withval=$with_pic; pic_mode="$withval"
8911 else
8912   pic_mode=default
8913 fi
8914
8915
8916 test -z "$pic_mode" && pic_mode=default
8917
8918
8919
8920
8921
8922
8923
8924   # Check whether --enable-fast-install was given.
8925 if test "${enable_fast_install+set}" = set; then :
8926   enableval=$enable_fast_install; p=${PACKAGE-default}
8927     case $enableval in
8928     yes) enable_fast_install=yes ;;
8929     no) enable_fast_install=no ;;
8930     *)
8931       enable_fast_install=no
8932       # Look at the argument we got.  We use all the common list separators.
8933       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8934       for pkg in $enableval; do
8935         IFS="$lt_save_ifs"
8936         if test "X$pkg" = "X$p"; then
8937           enable_fast_install=yes
8938         fi
8939       done
8940       IFS="$lt_save_ifs"
8941       ;;
8942     esac
8943 else
8944   enable_fast_install=yes
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 # This can be used to rebuild libtool when needed
8958 LIBTOOL_DEPS="$ltmain"
8959
8960 # Always use our own libtool.
8961 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 test -z "$LN_S" && LN_S="ln -s"
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 if test -n "${ZSH_VERSION+set}" ; then
9004    setopt NO_GLOB_SUBST
9005 fi
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9008 $as_echo_n "checking for objdir... " >&6; }
9009 if test "${lt_cv_objdir+set}" = set; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   rm -f .libs 2>/dev/null
9013 mkdir .libs 2>/dev/null
9014 if test -d .libs; then
9015   lt_cv_objdir=.libs
9016 else
9017   # MS-DOS does not allow filenames that begin with a dot.
9018   lt_cv_objdir=_libs
9019 fi
9020 rmdir .libs 2>/dev/null
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9023 $as_echo "$lt_cv_objdir" >&6; }
9024 objdir=$lt_cv_objdir
9025
9026
9027
9028
9029
9030 cat >>confdefs.h <<_ACEOF
9031 #define LT_OBJDIR "$lt_cv_objdir/"
9032 _ACEOF
9033
9034
9035
9036
9037 case $host_os in
9038 aix3*)
9039   # AIX sometimes has problems with the GCC collect2 program.  For some
9040   # reason, if we set the COLLECT_NAMES environment variable, the problems
9041   # vanish in a puff of smoke.
9042   if test "X${COLLECT_NAMES+set}" != Xset; then
9043     COLLECT_NAMES=
9044     export COLLECT_NAMES
9045   fi
9046   ;;
9047 esac
9048
9049 # Global variables:
9050 ofile=libtool
9051 can_build_shared=yes
9052
9053 # All known linkers require a `.a' archive for static linking (except MSVC,
9054 # which needs '.lib').
9055 libext=a
9056
9057 with_gnu_ld="$lt_cv_prog_gnu_ld"
9058
9059 old_CC="$CC"
9060 old_CFLAGS="$CFLAGS"
9061
9062 # Set sane defaults for various variables
9063 test -z "$CC" && CC=cc
9064 test -z "$LTCC" && LTCC=$CC
9065 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9066 test -z "$LD" && LD=ld
9067 test -z "$ac_objext" && ac_objext=o
9068
9069 for cc_temp in $compiler""; do
9070   case $cc_temp in
9071     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9072     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9073     \-*) ;;
9074     *) break;;
9075   esac
9076 done
9077 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9078
9079
9080 # Only perform the check for file, if the check method requires it
9081 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9082 case $deplibs_check_method in
9083 file_magic*)
9084   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9086 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9087 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   case $MAGIC_CMD in
9091 [\\/*] |  ?:[\\/]*)
9092   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9093   ;;
9094 *)
9095   lt_save_MAGIC_CMD="$MAGIC_CMD"
9096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9097   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9098   for ac_dir in $ac_dummy; do
9099     IFS="$lt_save_ifs"
9100     test -z "$ac_dir" && ac_dir=.
9101     if test -f $ac_dir/${ac_tool_prefix}file; then
9102       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9103       if test -n "$file_magic_test_file"; then
9104         case $deplibs_check_method in
9105         "file_magic "*)
9106           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9107           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9108           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9109             $EGREP "$file_magic_regex" > /dev/null; then
9110             :
9111           else
9112             cat <<_LT_EOF 1>&2
9113
9114 *** Warning: the command libtool uses to detect shared libraries,
9115 *** $file_magic_cmd, produces output that libtool cannot recognize.
9116 *** The result is that libtool may fail to recognize shared libraries
9117 *** as such.  This will affect the creation of libtool libraries that
9118 *** depend on shared libraries, but programs linked with such libtool
9119 *** libraries will work regardless of this problem.  Nevertheless, you
9120 *** may want to report the problem to your system manager and/or to
9121 *** bug-libtool@gnu.org
9122
9123 _LT_EOF
9124           fi ;;
9125         esac
9126       fi
9127       break
9128     fi
9129   done
9130   IFS="$lt_save_ifs"
9131   MAGIC_CMD="$lt_save_MAGIC_CMD"
9132   ;;
9133 esac
9134 fi
9135
9136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9137 if test -n "$MAGIC_CMD"; then
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9139 $as_echo "$MAGIC_CMD" >&6; }
9140 else
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146
9147
9148
9149 if test -z "$lt_cv_path_MAGIC_CMD"; then
9150   if test -n "$ac_tool_prefix"; then
9151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9152 $as_echo_n "checking for file... " >&6; }
9153 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   case $MAGIC_CMD in
9157 [\\/*] |  ?:[\\/]*)
9158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9159   ;;
9160 *)
9161   lt_save_MAGIC_CMD="$MAGIC_CMD"
9162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9163   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9164   for ac_dir in $ac_dummy; do
9165     IFS="$lt_save_ifs"
9166     test -z "$ac_dir" && ac_dir=.
9167     if test -f $ac_dir/file; then
9168       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9169       if test -n "$file_magic_test_file"; then
9170         case $deplibs_check_method in
9171         "file_magic "*)
9172           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9173           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9174           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9175             $EGREP "$file_magic_regex" > /dev/null; then
9176             :
9177           else
9178             cat <<_LT_EOF 1>&2
9179
9180 *** Warning: the command libtool uses to detect shared libraries,
9181 *** $file_magic_cmd, produces output that libtool cannot recognize.
9182 *** The result is that libtool may fail to recognize shared libraries
9183 *** as such.  This will affect the creation of libtool libraries that
9184 *** depend on shared libraries, but programs linked with such libtool
9185 *** libraries will work regardless of this problem.  Nevertheless, you
9186 *** may want to report the problem to your system manager and/or to
9187 *** bug-libtool@gnu.org
9188
9189 _LT_EOF
9190           fi ;;
9191         esac
9192       fi
9193       break
9194     fi
9195   done
9196   IFS="$lt_save_ifs"
9197   MAGIC_CMD="$lt_save_MAGIC_CMD"
9198   ;;
9199 esac
9200 fi
9201
9202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9203 if test -n "$MAGIC_CMD"; then
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9205 $as_echo "$MAGIC_CMD" >&6; }
9206 else
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9209 fi
9210
9211
9212   else
9213     MAGIC_CMD=:
9214   fi
9215 fi
9216
9217   fi
9218   ;;
9219 esac
9220
9221 # Use C for the default configuration in the libtool script
9222
9223 lt_save_CC="$CC"
9224 ac_ext=c
9225 ac_cpp='$CPP $CPPFLAGS'
9226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9229
9230
9231 # Source file extension for C test sources.
9232 ac_ext=c
9233
9234 # Object file extension for compiled C test sources.
9235 objext=o
9236 objext=$objext
9237
9238 # Code to be used in simple compile tests
9239 lt_simple_compile_test_code="int some_variable = 0;"
9240
9241 # Code to be used in simple link tests
9242 lt_simple_link_test_code='int main(){return(0);}'
9243
9244
9245
9246
9247
9248
9249
9250 # If no C compiler was specified, use CC.
9251 LTCC=${LTCC-"$CC"}
9252
9253 # If no C compiler flags were specified, use CFLAGS.
9254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9255
9256 # Allow CC to be a program name with arguments.
9257 compiler=$CC
9258
9259 # Save the default compiler, since it gets overwritten when the other
9260 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9261 compiler_DEFAULT=$CC
9262
9263 # save warnings/boilerplate of simple test code
9264 ac_outfile=conftest.$ac_objext
9265 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9266 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9267 _lt_compiler_boilerplate=`cat conftest.err`
9268 $RM conftest*
9269
9270 ac_outfile=conftest.$ac_objext
9271 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9272 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9273 _lt_linker_boilerplate=`cat conftest.err`
9274 $RM -r conftest*
9275
9276
9277 ## CAVEAT EMPTOR:
9278 ## There is no encapsulation within the following macros, do not change
9279 ## the running order or otherwise move them around unless you know exactly
9280 ## what you are doing...
9281 if test -n "$compiler"; then
9282
9283 lt_prog_compiler_no_builtin_flag=
9284
9285 if test "$GCC" = yes; then
9286   case $cc_basename in
9287   nvcc*)
9288     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9289   *)
9290     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9291   esac
9292
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9294 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   lt_cv_prog_compiler_rtti_exceptions=no
9299    ac_outfile=conftest.$ac_objext
9300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301    lt_compiler_flag="-fno-rtti -fno-exceptions"
9302    # Insert the option either (1) after the last *FLAGS variable, or
9303    # (2) before a word containing "conftest.", or (3) at the end.
9304    # Note that $ac_compile itself does not contain backslashes and begins
9305    # with a dollar sign (not a hyphen), so the echo should work correctly.
9306    # The option is referenced via a variable to avoid confusing sed.
9307    lt_compile=`echo "$ac_compile" | $SED \
9308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310    -e 's:$: $lt_compiler_flag:'`
9311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312    (eval "$lt_compile" 2>conftest.err)
9313    ac_status=$?
9314    cat conftest.err >&5
9315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316    if (exit $ac_status) && test -s "$ac_outfile"; then
9317      # The compiler can only warn and ignore the option if not recognized
9318      # So say no if there are warnings other than the usual output.
9319      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9320      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9322        lt_cv_prog_compiler_rtti_exceptions=yes
9323      fi
9324    fi
9325    $RM conftest*
9326
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9329 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9330
9331 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9332     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9333 else
9334     :
9335 fi
9336
9337 fi
9338
9339
9340
9341
9342
9343
9344   lt_prog_compiler_wl=
9345 lt_prog_compiler_pic=
9346 lt_prog_compiler_static=
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9349 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9350
9351   if test "$GCC" = yes; then
9352     lt_prog_compiler_wl='-Wl,'
9353     lt_prog_compiler_static='-static'
9354
9355     case $host_os in
9356       aix*)
9357       # All AIX code is PIC.
9358       if test "$host_cpu" = ia64; then
9359         # AIX 5 now supports IA64 processor
9360         lt_prog_compiler_static='-Bstatic'
9361       fi
9362       lt_prog_compiler_pic='-fPIC'
9363       ;;
9364
9365     amigaos*)
9366       case $host_cpu in
9367       powerpc)
9368             # see comment about AmigaOS4 .so support
9369             lt_prog_compiler_pic='-fPIC'
9370         ;;
9371       m68k)
9372             # FIXME: we need at least 68020 code to build shared libraries, but
9373             # adding the `-m68020' flag to GCC prevents building anything better,
9374             # like `-m68040'.
9375             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9376         ;;
9377       esac
9378       ;;
9379
9380     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9381       # PIC is the default for these OSes.
9382       ;;
9383
9384     mingw* | cygwin* | pw32* | os2* | cegcc*)
9385       # This hack is so that the source file can tell whether it is being
9386       # built for inclusion in a dll (and should export symbols for example).
9387       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9388       # (--disable-auto-import) libraries
9389       lt_prog_compiler_pic='-DDLL_EXPORT'
9390       ;;
9391
9392     darwin* | rhapsody*)
9393       # PIC is the default on this platform
9394       # Common symbols not allowed in MH_DYLIB files
9395       lt_prog_compiler_pic='-fno-common'
9396       ;;
9397
9398     haiku*)
9399       # PIC is the default for Haiku.
9400       # The "-static" flag exists, but is broken.
9401       lt_prog_compiler_static=
9402       ;;
9403
9404     hpux*)
9405       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9406       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9407       # sets the default TLS model and affects inlining.
9408       case $host_cpu in
9409       hppa*64*)
9410         # +Z the default
9411         ;;
9412       *)
9413         lt_prog_compiler_pic='-fPIC'
9414         ;;
9415       esac
9416       ;;
9417
9418     interix[3-9]*)
9419       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9420       # Instead, we relocate shared libraries at runtime.
9421       ;;
9422
9423     msdosdjgpp*)
9424       # Just because we use GCC doesn't mean we suddenly get shared libraries
9425       # on systems that don't support them.
9426       lt_prog_compiler_can_build_shared=no
9427       enable_shared=no
9428       ;;
9429
9430     *nto* | *qnx*)
9431       # QNX uses GNU C++, but need to define -shared option too, otherwise
9432       # it will coredump.
9433       lt_prog_compiler_pic='-fPIC -shared'
9434       ;;
9435
9436     sysv4*MP*)
9437       if test -d /usr/nec; then
9438         lt_prog_compiler_pic=-Kconform_pic
9439       fi
9440       ;;
9441
9442     *)
9443       lt_prog_compiler_pic='-fPIC'
9444       ;;
9445     esac
9446
9447     case $cc_basename in
9448     nvcc*) # Cuda Compiler Driver 2.2
9449       lt_prog_compiler_wl='-Xlinker '
9450       lt_prog_compiler_pic='-Xcompiler -fPIC'
9451       ;;
9452     esac
9453   else
9454     # PORTME Check for flag to pass linker flags through the system compiler.
9455     case $host_os in
9456     aix*)
9457       lt_prog_compiler_wl='-Wl,'
9458       if test "$host_cpu" = ia64; then
9459         # AIX 5 now supports IA64 processor
9460         lt_prog_compiler_static='-Bstatic'
9461       else
9462         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9463       fi
9464       ;;
9465
9466     mingw* | cygwin* | pw32* | os2* | cegcc*)
9467       # This hack is so that the source file can tell whether it is being
9468       # built for inclusion in a dll (and should export symbols for example).
9469       lt_prog_compiler_pic='-DDLL_EXPORT'
9470       ;;
9471
9472     hpux9* | hpux10* | hpux11*)
9473       lt_prog_compiler_wl='-Wl,'
9474       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9475       # not for PA HP-UX.
9476       case $host_cpu in
9477       hppa*64*|ia64*)
9478         # +Z the default
9479         ;;
9480       *)
9481         lt_prog_compiler_pic='+Z'
9482         ;;
9483       esac
9484       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9485       lt_prog_compiler_static='${wl}-a ${wl}archive'
9486       ;;
9487
9488     irix5* | irix6* | nonstopux*)
9489       lt_prog_compiler_wl='-Wl,'
9490       # PIC (with -KPIC) is the default.
9491       lt_prog_compiler_static='-non_shared'
9492       ;;
9493
9494     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9495       case $cc_basename in
9496       # old Intel for x86_64 which still supported -KPIC.
9497       ecc*)
9498         lt_prog_compiler_wl='-Wl,'
9499         lt_prog_compiler_pic='-KPIC'
9500         lt_prog_compiler_static='-static'
9501         ;;
9502       # icc used to be incompatible with GCC.
9503       # ICC 10 doesn't accept -KPIC any more.
9504       icc* | ifort*)
9505         lt_prog_compiler_wl='-Wl,'
9506         lt_prog_compiler_pic='-fPIC'
9507         lt_prog_compiler_static='-static'
9508         ;;
9509       # Lahey Fortran 8.1.
9510       lf95*)
9511         lt_prog_compiler_wl='-Wl,'
9512         lt_prog_compiler_pic='--shared'
9513         lt_prog_compiler_static='--static'
9514         ;;
9515       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9516         # Portland Group compilers (*not* the Pentium gcc compiler,
9517         # which looks to be a dead project)
9518         lt_prog_compiler_wl='-Wl,'
9519         lt_prog_compiler_pic='-fpic'
9520         lt_prog_compiler_static='-Bstatic'
9521         ;;
9522       ccc*)
9523         lt_prog_compiler_wl='-Wl,'
9524         # All Alpha code is PIC.
9525         lt_prog_compiler_static='-non_shared'
9526         ;;
9527       xl* | bgxl* | bgf* | mpixl*)
9528         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9529         lt_prog_compiler_wl='-Wl,'
9530         lt_prog_compiler_pic='-qpic'
9531         lt_prog_compiler_static='-qstaticlink'
9532         ;;
9533       *)
9534         case `$CC -V 2>&1 | sed 5q` in
9535         *Sun\ F* | *Sun*Fortran*)
9536           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9537           lt_prog_compiler_pic='-KPIC'
9538           lt_prog_compiler_static='-Bstatic'
9539           lt_prog_compiler_wl=''
9540           ;;
9541         *Sun\ C*)
9542           # Sun C 5.9
9543           lt_prog_compiler_pic='-KPIC'
9544           lt_prog_compiler_static='-Bstatic'
9545           lt_prog_compiler_wl='-Wl,'
9546           ;;
9547         esac
9548         ;;
9549       esac
9550       ;;
9551
9552     newsos6)
9553       lt_prog_compiler_pic='-KPIC'
9554       lt_prog_compiler_static='-Bstatic'
9555       ;;
9556
9557     *nto* | *qnx*)
9558       # QNX uses GNU C++, but need to define -shared option too, otherwise
9559       # it will coredump.
9560       lt_prog_compiler_pic='-fPIC -shared'
9561       ;;
9562
9563     osf3* | osf4* | osf5*)
9564       lt_prog_compiler_wl='-Wl,'
9565       # All OSF/1 code is PIC.
9566       lt_prog_compiler_static='-non_shared'
9567       ;;
9568
9569     rdos*)
9570       lt_prog_compiler_static='-non_shared'
9571       ;;
9572
9573     solaris*)
9574       lt_prog_compiler_pic='-KPIC'
9575       lt_prog_compiler_static='-Bstatic'
9576       case $cc_basename in
9577       f77* | f90* | f95*)
9578         lt_prog_compiler_wl='-Qoption ld ';;
9579       *)
9580         lt_prog_compiler_wl='-Wl,';;
9581       esac
9582       ;;
9583
9584     sunos4*)
9585       lt_prog_compiler_wl='-Qoption ld '
9586       lt_prog_compiler_pic='-PIC'
9587       lt_prog_compiler_static='-Bstatic'
9588       ;;
9589
9590     sysv4 | sysv4.2uw2* | sysv4.3*)
9591       lt_prog_compiler_wl='-Wl,'
9592       lt_prog_compiler_pic='-KPIC'
9593       lt_prog_compiler_static='-Bstatic'
9594       ;;
9595
9596     sysv4*MP*)
9597       if test -d /usr/nec ;then
9598         lt_prog_compiler_pic='-Kconform_pic'
9599         lt_prog_compiler_static='-Bstatic'
9600       fi
9601       ;;
9602
9603     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9604       lt_prog_compiler_wl='-Wl,'
9605       lt_prog_compiler_pic='-KPIC'
9606       lt_prog_compiler_static='-Bstatic'
9607       ;;
9608
9609     unicos*)
9610       lt_prog_compiler_wl='-Wl,'
9611       lt_prog_compiler_can_build_shared=no
9612       ;;
9613
9614     uts4*)
9615       lt_prog_compiler_pic='-pic'
9616       lt_prog_compiler_static='-Bstatic'
9617       ;;
9618
9619     *)
9620       lt_prog_compiler_can_build_shared=no
9621       ;;
9622     esac
9623   fi
9624
9625 case $host_os in
9626   # For platforms which do not support PIC, -DPIC is meaningless:
9627   *djgpp*)
9628     lt_prog_compiler_pic=
9629     ;;
9630   *)
9631     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9632     ;;
9633 esac
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9635 $as_echo "$lt_prog_compiler_pic" >&6; }
9636
9637
9638
9639
9640
9641
9642 #
9643 # Check to make sure the PIC flag actually works.
9644 #
9645 if test -n "$lt_prog_compiler_pic"; then
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9648 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   lt_cv_prog_compiler_pic_works=no
9652    ac_outfile=conftest.$ac_objext
9653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9655    # Insert the option either (1) after the last *FLAGS variable, or
9656    # (2) before a word containing "conftest.", or (3) at the end.
9657    # Note that $ac_compile itself does not contain backslashes and begins
9658    # with a dollar sign (not a hyphen), so the echo should work correctly.
9659    # The option is referenced via a variable to avoid confusing sed.
9660    lt_compile=`echo "$ac_compile" | $SED \
9661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663    -e 's:$: $lt_compiler_flag:'`
9664    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665    (eval "$lt_compile" 2>conftest.err)
9666    ac_status=$?
9667    cat conftest.err >&5
9668    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669    if (exit $ac_status) && test -s "$ac_outfile"; then
9670      # The compiler can only warn and ignore the option if not recognized
9671      # So say no if there are warnings other than the usual output.
9672      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675        lt_cv_prog_compiler_pic_works=yes
9676      fi
9677    fi
9678    $RM conftest*
9679
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9682 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9683
9684 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9685     case $lt_prog_compiler_pic in
9686      "" | " "*) ;;
9687      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9688      esac
9689 else
9690     lt_prog_compiler_pic=
9691      lt_prog_compiler_can_build_shared=no
9692 fi
9693
9694 fi
9695
9696
9697
9698
9699
9700
9701 #
9702 # Check to make sure the static flag actually works.
9703 #
9704 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9706 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9707 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   lt_cv_prog_compiler_static_works=no
9711    save_LDFLAGS="$LDFLAGS"
9712    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9713    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9714    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9715      # The linker can only warn and ignore the option if not recognized
9716      # So say no if there are warnings
9717      if test -s conftest.err; then
9718        # Append any errors to the config.log.
9719        cat conftest.err 1>&5
9720        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9721        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9722        if diff conftest.exp conftest.er2 >/dev/null; then
9723          lt_cv_prog_compiler_static_works=yes
9724        fi
9725      else
9726        lt_cv_prog_compiler_static_works=yes
9727      fi
9728    fi
9729    $RM -r conftest*
9730    LDFLAGS="$save_LDFLAGS"
9731
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9734 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9735
9736 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9737     :
9738 else
9739     lt_prog_compiler_static=
9740 fi
9741
9742
9743
9744
9745
9746
9747
9748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9750 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   lt_cv_prog_compiler_c_o=no
9754    $RM -r conftest 2>/dev/null
9755    mkdir conftest
9756    cd conftest
9757    mkdir out
9758    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9759
9760    lt_compiler_flag="-o out/conftest2.$ac_objext"
9761    # Insert the option either (1) after the last *FLAGS variable, or
9762    # (2) before a word containing "conftest.", or (3) at the end.
9763    # Note that $ac_compile itself does not contain backslashes and begins
9764    # with a dollar sign (not a hyphen), so the echo should work correctly.
9765    lt_compile=`echo "$ac_compile" | $SED \
9766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9768    -e 's:$: $lt_compiler_flag:'`
9769    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9770    (eval "$lt_compile" 2>out/conftest.err)
9771    ac_status=$?
9772    cat out/conftest.err >&5
9773    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9775    then
9776      # The compiler can only warn and ignore the option if not recognized
9777      # So say no if there are warnings
9778      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9779      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9780      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9781        lt_cv_prog_compiler_c_o=yes
9782      fi
9783    fi
9784    chmod u+w . 2>&5
9785    $RM conftest*
9786    # SGI C++ compiler will create directory out/ii_files/ for
9787    # template instantiation
9788    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9789    $RM out/* && rmdir out
9790    cd ..
9791    $RM -r conftest
9792    $RM conftest*
9793
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9797
9798
9799
9800
9801
9802
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   lt_cv_prog_compiler_c_o=no
9809    $RM -r conftest 2>/dev/null
9810    mkdir conftest
9811    cd conftest
9812    mkdir out
9813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815    lt_compiler_flag="-o out/conftest2.$ac_objext"
9816    # Insert the option either (1) after the last *FLAGS variable, or
9817    # (2) before a word containing "conftest.", or (3) at the end.
9818    # Note that $ac_compile itself does not contain backslashes and begins
9819    # with a dollar sign (not a hyphen), so the echo should work correctly.
9820    lt_compile=`echo "$ac_compile" | $SED \
9821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823    -e 's:$: $lt_compiler_flag:'`
9824    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9825    (eval "$lt_compile" 2>out/conftest.err)
9826    ac_status=$?
9827    cat out/conftest.err >&5
9828    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9830    then
9831      # The compiler can only warn and ignore the option if not recognized
9832      # So say no if there are warnings
9833      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9834      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836        lt_cv_prog_compiler_c_o=yes
9837      fi
9838    fi
9839    chmod u+w . 2>&5
9840    $RM conftest*
9841    # SGI C++ compiler will create directory out/ii_files/ for
9842    # template instantiation
9843    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844    $RM out/* && rmdir out
9845    cd ..
9846    $RM -r conftest
9847    $RM conftest*
9848
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9851 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9852
9853
9854
9855
9856 hard_links="nottested"
9857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9858   # do not overwrite the value of need_locks provided by the user
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9860 $as_echo_n "checking if we can lock with hard links... " >&6; }
9861   hard_links=yes
9862   $RM conftest*
9863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9864   touch conftest.a
9865   ln conftest.a conftest.b 2>&5 || hard_links=no
9866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9868 $as_echo "$hard_links" >&6; }
9869   if test "$hard_links" = no; then
9870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9871 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9872     need_locks=warn
9873   fi
9874 else
9875   need_locks=no
9876 fi
9877
9878
9879
9880
9881
9882
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9884 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9885
9886   runpath_var=
9887   allow_undefined_flag=
9888   always_export_symbols=no
9889   archive_cmds=
9890   archive_expsym_cmds=
9891   compiler_needs_object=no
9892   enable_shared_with_static_runtimes=no
9893   export_dynamic_flag_spec=
9894   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9895   hardcode_automatic=no
9896   hardcode_direct=no
9897   hardcode_direct_absolute=no
9898   hardcode_libdir_flag_spec=
9899   hardcode_libdir_flag_spec_ld=
9900   hardcode_libdir_separator=
9901   hardcode_minus_L=no
9902   hardcode_shlibpath_var=unsupported
9903   inherit_rpath=no
9904   link_all_deplibs=unknown
9905   module_cmds=
9906   module_expsym_cmds=
9907   old_archive_from_new_cmds=
9908   old_archive_from_expsyms_cmds=
9909   thread_safe_flag_spec=
9910   whole_archive_flag_spec=
9911   # include_expsyms should be a list of space-separated symbols to be *always*
9912   # included in the symbol list
9913   include_expsyms=
9914   # exclude_expsyms can be an extended regexp of symbols to exclude
9915   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9916   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9917   # as well as any symbol that contains `d'.
9918   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9919   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9920   # platforms (ab)use it in PIC code, but their linkers get confused if
9921   # the symbol is explicitly referenced.  Since portable code cannot
9922   # rely on this symbol name, it's probably fine to never include it in
9923   # preloaded symbol tables.
9924   # Exclude shared library initialization/finalization symbols.
9925   extract_expsyms_cmds=
9926
9927   case $host_os in
9928   cygwin* | mingw* | pw32* | cegcc*)
9929     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9930     # When not using gcc, we currently assume that we are using
9931     # Microsoft Visual C++.
9932     if test "$GCC" != yes; then
9933       with_gnu_ld=no
9934     fi
9935     ;;
9936   interix*)
9937     # we just hope/assume this is gcc and not c89 (= MSVC++)
9938     with_gnu_ld=yes
9939     ;;
9940   openbsd*)
9941     with_gnu_ld=no
9942     ;;
9943   esac
9944
9945   ld_shlibs=yes
9946
9947   # On some targets, GNU ld is compatible enough with the native linker
9948   # that we're better off using the native interface for both.
9949   lt_use_gnu_ld_interface=no
9950   if test "$with_gnu_ld" = yes; then
9951     case $host_os in
9952       aix*)
9953         # The AIX port of GNU ld has always aspired to compatibility
9954         # with the native linker.  However, as the warning in the GNU ld
9955         # block says, versions before 2.19.5* couldn't really create working
9956         # shared libraries, regardless of the interface used.
9957         case `$LD -v 2>&1` in
9958           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9959           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9960           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9961           *)
9962             lt_use_gnu_ld_interface=yes
9963             ;;
9964         esac
9965         ;;
9966       *)
9967         lt_use_gnu_ld_interface=yes
9968         ;;
9969     esac
9970   fi
9971
9972   if test "$lt_use_gnu_ld_interface" = yes; then
9973     # If archive_cmds runs LD, not CC, wlarc should be empty
9974     wlarc='${wl}'
9975
9976     # Set some defaults for GNU ld with shared library support. These
9977     # are reset later if shared libraries are not supported. Putting them
9978     # here allows them to be overridden if necessary.
9979     runpath_var=LD_RUN_PATH
9980     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981     export_dynamic_flag_spec='${wl}--export-dynamic'
9982     # ancient GNU ld didn't support --whole-archive et. al.
9983     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9984       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9985     else
9986       whole_archive_flag_spec=
9987     fi
9988     supports_anon_versioning=no
9989     case `$LD -v 2>&1` in
9990       *GNU\ gold*) supports_anon_versioning=yes ;;
9991       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9992       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9993       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9994       *\ 2.11.*) ;; # other 2.11 versions
9995       *) supports_anon_versioning=yes ;;
9996     esac
9997
9998     # See if GNU ld supports shared libraries.
9999     case $host_os in
10000     aix[3-9]*)
10001       # On AIX/PPC, the GNU linker is very broken
10002       if test "$host_cpu" != ia64; then
10003         ld_shlibs=no
10004         cat <<_LT_EOF 1>&2
10005
10006 *** Warning: the GNU linker, at least up to release 2.19, is reported
10007 *** to be unable to reliably create shared libraries on AIX.
10008 *** Therefore, libtool is disabling shared libraries support.  If you
10009 *** really care for shared libraries, you may want to install binutils
10010 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10011 *** You will then need to restart the configuration process.
10012
10013 _LT_EOF
10014       fi
10015       ;;
10016
10017     amigaos*)
10018       case $host_cpu in
10019       powerpc)
10020             # see comment about AmigaOS4 .so support
10021             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022             archive_expsym_cmds=''
10023         ;;
10024       m68k)
10025             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10026             hardcode_libdir_flag_spec='-L$libdir'
10027             hardcode_minus_L=yes
10028         ;;
10029       esac
10030       ;;
10031
10032     beos*)
10033       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10034         allow_undefined_flag=unsupported
10035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10036         # support --undefined.  This deserves some investigation.  FIXME
10037         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038       else
10039         ld_shlibs=no
10040       fi
10041       ;;
10042
10043     cygwin* | mingw* | pw32* | cegcc*)
10044       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10045       # as there is no search path for DLLs.
10046       hardcode_libdir_flag_spec='-L$libdir'
10047       export_dynamic_flag_spec='${wl}--export-all-symbols'
10048       allow_undefined_flag=unsupported
10049       always_export_symbols=no
10050       enable_shared_with_static_runtimes=yes
10051       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10052
10053       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10054         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10055         # If the export-symbols file already is a .def file (1st line
10056         # is EXPORTS), use it as is; otherwise, prepend...
10057         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10058           cp $export_symbols $output_objdir/$soname.def;
10059         else
10060           echo EXPORTS > $output_objdir/$soname.def;
10061           cat $export_symbols >> $output_objdir/$soname.def;
10062         fi~
10063         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064       else
10065         ld_shlibs=no
10066       fi
10067       ;;
10068
10069     haiku*)
10070       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071       link_all_deplibs=yes
10072       ;;
10073
10074     interix[3-9]*)
10075       hardcode_direct=no
10076       hardcode_shlibpath_var=no
10077       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078       export_dynamic_flag_spec='${wl}-E'
10079       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10080       # Instead, shared libraries are loaded at an image base (0x10000000 by
10081       # default) and relocated if they conflict, which is a slow very memory
10082       # consuming and fragmenting process.  To avoid this, we pick a random,
10083       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10084       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10085       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10086       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10087       ;;
10088
10089     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10090       tmp_diet=no
10091       if test "$host_os" = linux-dietlibc; then
10092         case $cc_basename in
10093           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10094         esac
10095       fi
10096       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10097          && test "$tmp_diet" = no
10098       then
10099         tmp_addflag=
10100         tmp_sharedflag='-shared'
10101         case $cc_basename,$host_cpu in
10102         pgcc*)                          # Portland Group C compiler
10103           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10104           tmp_addflag=' $pic_flag'
10105           ;;
10106         pgf77* | pgf90* | pgf95* | pgfortran*)
10107                                         # Portland Group f77 and f90 compilers
10108           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10109           tmp_addflag=' $pic_flag -Mnomain' ;;
10110         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10111           tmp_addflag=' -i_dynamic' ;;
10112         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10113           tmp_addflag=' -i_dynamic -nofor_main' ;;
10114         ifc* | ifort*)                  # Intel Fortran compiler
10115           tmp_addflag=' -nofor_main' ;;
10116         lf95*)                          # Lahey Fortran 8.1
10117           whole_archive_flag_spec=
10118           tmp_sharedflag='--shared' ;;
10119         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10120           tmp_sharedflag='-qmkshrobj'
10121           tmp_addflag= ;;
10122         nvcc*)  # Cuda Compiler Driver 2.2
10123           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10124           compiler_needs_object=yes
10125           ;;
10126         esac
10127         case `$CC -V 2>&1 | sed 5q` in
10128         *Sun\ C*)                       # Sun C 5.9
10129           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10130           compiler_needs_object=yes
10131           tmp_sharedflag='-G' ;;
10132         *Sun\ F*)                       # Sun Fortran 8.3
10133           tmp_sharedflag='-G' ;;
10134         esac
10135         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136
10137         if test "x$supports_anon_versioning" = xyes; then
10138           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10139             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10140             echo "local: *; };" >> $output_objdir/$libname.ver~
10141             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10142         fi
10143
10144         case $cc_basename in
10145         xlf* | bgf* | bgxlf* | mpixlf*)
10146           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10147           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10148           hardcode_libdir_flag_spec=
10149           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10150           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10151           if test "x$supports_anon_versioning" = xyes; then
10152             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10153               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10154               echo "local: *; };" >> $output_objdir/$libname.ver~
10155               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10156           fi
10157           ;;
10158         esac
10159       else
10160         ld_shlibs=no
10161       fi
10162       ;;
10163
10164     netbsd*)
10165       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10166         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10167         wlarc=
10168       else
10169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171       fi
10172       ;;
10173
10174     solaris*)
10175       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10176         ld_shlibs=no
10177         cat <<_LT_EOF 1>&2
10178
10179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10180 *** create shared libraries on Solaris systems.  Therefore, libtool
10181 *** is disabling shared libraries support.  We urge you to upgrade GNU
10182 *** binutils to release 2.9.1 or newer.  Another option is to modify
10183 *** your PATH or compiler configuration so that the native linker is
10184 *** used, and then restart.
10185
10186 _LT_EOF
10187       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10189         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10190       else
10191         ld_shlibs=no
10192       fi
10193       ;;
10194
10195     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10196       case `$LD -v 2>&1` in
10197         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10198         ld_shlibs=no
10199         cat <<_LT_EOF 1>&2
10200
10201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10202 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10203 *** is disabling shared libraries support.  We urge you to upgrade GNU
10204 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10205 *** your PATH or compiler configuration so that the native linker is
10206 *** used, and then restart.
10207
10208 _LT_EOF
10209         ;;
10210         *)
10211           # For security reasons, it is highly recommended that you always
10212           # use absolute paths for naming shared libraries, and exclude the
10213           # DT_RUNPATH tag from executables and libraries.  But doing so
10214           # requires that you compile everything twice, which is a pain.
10215           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10216             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10218             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10219           else
10220             ld_shlibs=no
10221           fi
10222         ;;
10223       esac
10224       ;;
10225
10226     sunos4*)
10227       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10228       wlarc=
10229       hardcode_direct=yes
10230       hardcode_shlibpath_var=no
10231       ;;
10232
10233     *)
10234       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10235         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10236         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10237       else
10238         ld_shlibs=no
10239       fi
10240       ;;
10241     esac
10242
10243     if test "$ld_shlibs" = no; then
10244       runpath_var=
10245       hardcode_libdir_flag_spec=
10246       export_dynamic_flag_spec=
10247       whole_archive_flag_spec=
10248     fi
10249   else
10250     # PORTME fill in a description of your system's linker (not GNU ld)
10251     case $host_os in
10252     aix3*)
10253       allow_undefined_flag=unsupported
10254       always_export_symbols=yes
10255       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10256       # Note: this linker hardcodes the directories in LIBPATH if there
10257       # are no directories specified by -L.
10258       hardcode_minus_L=yes
10259       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10260         # Neither direct hardcoding nor static linking is supported with a
10261         # broken collect2.
10262         hardcode_direct=unsupported
10263       fi
10264       ;;
10265
10266     aix[4-9]*)
10267       if test "$host_cpu" = ia64; then
10268         # On IA64, the linker does run time linking by default, so we don't
10269         # have to do anything special.
10270         aix_use_runtimelinking=no
10271         exp_sym_flag='-Bexport'
10272         no_entry_flag=""
10273       else
10274         # If we're using GNU nm, then we don't want the "-C" option.
10275         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10276         # Also, AIX nm treats weak defined symbols like other global
10277         # defined symbols, whereas GNU nm marks them as "W".
10278         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10279           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10280         else
10281           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10282         fi
10283         aix_use_runtimelinking=no
10284
10285         # Test if we are trying to use run time linking or normal
10286         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10287         # need to do runtime linking.
10288         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10289           for ld_flag in $LDFLAGS; do
10290           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10291             aix_use_runtimelinking=yes
10292             break
10293           fi
10294           done
10295           ;;
10296         esac
10297
10298         exp_sym_flag='-bexport'
10299         no_entry_flag='-bnoentry'
10300       fi
10301
10302       # When large executables or shared objects are built, AIX ld can
10303       # have problems creating the table of contents.  If linking a library
10304       # or program results in "error TOC overflow" add -mminimal-toc to
10305       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10306       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10307
10308       archive_cmds=''
10309       hardcode_direct=yes
10310       hardcode_direct_absolute=yes
10311       hardcode_libdir_separator=':'
10312       link_all_deplibs=yes
10313       file_list_spec='${wl}-f,'
10314
10315       if test "$GCC" = yes; then
10316         case $host_os in aix4.[012]|aix4.[012].*)
10317         # We only want to do this on AIX 4.2 and lower, the check
10318         # below for broken collect2 doesn't work under 4.3+
10319           collect2name=`${CC} -print-prog-name=collect2`
10320           if test -f "$collect2name" &&
10321            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10322           then
10323           # We have reworked collect2
10324           :
10325           else
10326           # We have old collect2
10327           hardcode_direct=unsupported
10328           # It fails to find uninstalled libraries when the uninstalled
10329           # path is not listed in the libpath.  Setting hardcode_minus_L
10330           # to unsupported forces relinking
10331           hardcode_minus_L=yes
10332           hardcode_libdir_flag_spec='-L$libdir'
10333           hardcode_libdir_separator=
10334           fi
10335           ;;
10336         esac
10337         shared_flag='-shared'
10338         if test "$aix_use_runtimelinking" = yes; then
10339           shared_flag="$shared_flag "'${wl}-G'
10340         fi
10341       else
10342         # not using gcc
10343         if test "$host_cpu" = ia64; then
10344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10345         # chokes on -Wl,-G. The following line is correct:
10346           shared_flag='-G'
10347         else
10348           if test "$aix_use_runtimelinking" = yes; then
10349             shared_flag='${wl}-G'
10350           else
10351             shared_flag='${wl}-bM:SRE'
10352           fi
10353         fi
10354       fi
10355
10356       export_dynamic_flag_spec='${wl}-bexpall'
10357       # It seems that -bexpall does not export symbols beginning with
10358       # underscore (_), so it is better to generate a list of symbols to export.
10359       always_export_symbols=yes
10360       if test "$aix_use_runtimelinking" = yes; then
10361         # Warning - without using the other runtime loading flags (-brtl),
10362         # -berok will link without error, but may produce a broken library.
10363         allow_undefined_flag='-berok'
10364         # Determine the default libpath from the value encoded in an
10365         # empty executable.
10366         if test x$gcc_no_link = xyes; then
10367   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10368 fi
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h.  */
10371
10372 int
10373 main ()
10374 {
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381
10382 lt_aix_libpath_sed='
10383     /Import File Strings/,/^$/ {
10384         /^0/ {
10385             s/^0  *\(.*\)$/\1/
10386             p
10387         }
10388     }'
10389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 # Check for a 64-bit object if we didn't find anything.
10391 if test -z "$aix_libpath"; then
10392   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10393 fi
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396     conftest$ac_exeext conftest.$ac_ext
10397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10398
10399         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10401       else
10402         if test "$host_cpu" = ia64; then
10403           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10404           allow_undefined_flag="-z nodefs"
10405           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10406         else
10407          # Determine the default libpath from the value encoded in an
10408          # empty executable.
10409          if test x$gcc_no_link = xyes; then
10410   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10411 fi
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h.  */
10414
10415 int
10416 main ()
10417 {
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424
10425 lt_aix_libpath_sed='
10426     /Import File Strings/,/^$/ {
10427         /^0/ {
10428             s/^0  *\(.*\)$/\1/
10429             p
10430         }
10431     }'
10432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10433 # Check for a 64-bit object if we didn't find anything.
10434 if test -z "$aix_libpath"; then
10435   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10436 fi
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439     conftest$ac_exeext conftest.$ac_ext
10440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10441
10442          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10443           # Warning - without using the other run time loading flags,
10444           # -berok will link without error, but may produce a broken library.
10445           no_undefined_flag=' ${wl}-bernotok'
10446           allow_undefined_flag=' ${wl}-berok'
10447           if test "$with_gnu_ld" = yes; then
10448             # We only use this code for GNU lds that support --whole-archive.
10449             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10450           else
10451             # Exported symbols can be pulled into shared objects from archives
10452             whole_archive_flag_spec='$convenience'
10453           fi
10454           archive_cmds_need_lc=yes
10455           # This is similar to how AIX traditionally builds its shared libraries.
10456           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10457         fi
10458       fi
10459       ;;
10460
10461     amigaos*)
10462       case $host_cpu in
10463       powerpc)
10464             # see comment about AmigaOS4 .so support
10465             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10466             archive_expsym_cmds=''
10467         ;;
10468       m68k)
10469             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10470             hardcode_libdir_flag_spec='-L$libdir'
10471             hardcode_minus_L=yes
10472         ;;
10473       esac
10474       ;;
10475
10476     bsdi[45]*)
10477       export_dynamic_flag_spec=-rdynamic
10478       ;;
10479
10480     cygwin* | mingw* | pw32* | cegcc*)
10481       # When not using gcc, we currently assume that we are using
10482       # Microsoft Visual C++.
10483       # hardcode_libdir_flag_spec is actually meaningless, as there is
10484       # no search path for DLLs.
10485       hardcode_libdir_flag_spec=' '
10486       allow_undefined_flag=unsupported
10487       # Tell ltmain to make .lib files, not .a files.
10488       libext=lib
10489       # Tell ltmain to make .dll files, not .so files.
10490       shrext_cmds=".dll"
10491       # FIXME: Setting linknames here is a bad hack.
10492       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10493       # The linker will automatically build a .lib file if we build a DLL.
10494       old_archive_from_new_cmds='true'
10495       # FIXME: Should let the user specify the lib program.
10496       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10497       fix_srcfile_path='`cygpath -w "$srcfile"`'
10498       enable_shared_with_static_runtimes=yes
10499       ;;
10500
10501     darwin* | rhapsody*)
10502
10503
10504   archive_cmds_need_lc=no
10505   hardcode_direct=no
10506   hardcode_automatic=yes
10507   hardcode_shlibpath_var=unsupported
10508   if test "$lt_cv_ld_force_load" = "yes"; then
10509     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10510   else
10511     whole_archive_flag_spec=''
10512   fi
10513   link_all_deplibs=yes
10514   allow_undefined_flag="$_lt_dar_allow_undefined"
10515   case $cc_basename in
10516      ifort*) _lt_dar_can_shared=yes ;;
10517      *) _lt_dar_can_shared=$GCC ;;
10518   esac
10519   if test "$_lt_dar_can_shared" = "yes"; then
10520     output_verbose_link_cmd=func_echo_all
10521     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10522     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10523     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10524     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10525
10526   else
10527   ld_shlibs=no
10528   fi
10529
10530       ;;
10531
10532     dgux*)
10533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_libdir_flag_spec='-L$libdir'
10535       hardcode_shlibpath_var=no
10536       ;;
10537
10538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10539     # support.  Future versions do this automatically, but an explicit c++rt0.o
10540     # does not break anything, and helps significantly (at the cost of a little
10541     # extra space).
10542     freebsd2.2*)
10543       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10544       hardcode_libdir_flag_spec='-R$libdir'
10545       hardcode_direct=yes
10546       hardcode_shlibpath_var=no
10547       ;;
10548
10549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10550     freebsd2.*)
10551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10552       hardcode_direct=yes
10553       hardcode_minus_L=yes
10554       hardcode_shlibpath_var=no
10555       ;;
10556
10557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10558     freebsd* | dragonfly*)
10559       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10560       hardcode_libdir_flag_spec='-R$libdir'
10561       hardcode_direct=yes
10562       hardcode_shlibpath_var=no
10563       ;;
10564
10565     hpux9*)
10566       if test "$GCC" = yes; then
10567         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10568       else
10569         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10570       fi
10571       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10572       hardcode_libdir_separator=:
10573       hardcode_direct=yes
10574
10575       # hardcode_minus_L: Not really in the search PATH,
10576       # but as the default location of the library.
10577       hardcode_minus_L=yes
10578       export_dynamic_flag_spec='${wl}-E'
10579       ;;
10580
10581     hpux10*)
10582       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10583         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584       else
10585         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10586       fi
10587       if test "$with_gnu_ld" = no; then
10588         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589         hardcode_libdir_flag_spec_ld='+b $libdir'
10590         hardcode_libdir_separator=:
10591         hardcode_direct=yes
10592         hardcode_direct_absolute=yes
10593         export_dynamic_flag_spec='${wl}-E'
10594         # hardcode_minus_L: Not really in the search PATH,
10595         # but as the default location of the library.
10596         hardcode_minus_L=yes
10597       fi
10598       ;;
10599
10600     hpux11*)
10601       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10602         case $host_cpu in
10603         hppa*64*)
10604           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10605           ;;
10606         ia64*)
10607           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608           ;;
10609         *)
10610           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10611           ;;
10612         esac
10613       else
10614         case $host_cpu in
10615         hppa*64*)
10616           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10617           ;;
10618         ia64*)
10619           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620           ;;
10621         *)
10622
10623           # Older versions of the 11.00 compiler do not understand -b yet
10624           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10625           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10626 $as_echo_n "checking if $CC understands -b... " >&6; }
10627 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   lt_cv_prog_compiler__b=no
10631    save_LDFLAGS="$LDFLAGS"
10632    LDFLAGS="$LDFLAGS -b"
10633    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10634    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10635      # The linker can only warn and ignore the option if not recognized
10636      # So say no if there are warnings
10637      if test -s conftest.err; then
10638        # Append any errors to the config.log.
10639        cat conftest.err 1>&5
10640        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10641        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10642        if diff conftest.exp conftest.er2 >/dev/null; then
10643          lt_cv_prog_compiler__b=yes
10644        fi
10645      else
10646        lt_cv_prog_compiler__b=yes
10647      fi
10648    fi
10649    $RM -r conftest*
10650    LDFLAGS="$save_LDFLAGS"
10651
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10654 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10655
10656 if test x"$lt_cv_prog_compiler__b" = xyes; then
10657     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10658 else
10659     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10660 fi
10661
10662           ;;
10663         esac
10664       fi
10665       if test "$with_gnu_ld" = no; then
10666         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10667         hardcode_libdir_separator=:
10668
10669         case $host_cpu in
10670         hppa*64*|ia64*)
10671           hardcode_direct=no
10672           hardcode_shlibpath_var=no
10673           ;;
10674         *)
10675           hardcode_direct=yes
10676           hardcode_direct_absolute=yes
10677           export_dynamic_flag_spec='${wl}-E'
10678
10679           # hardcode_minus_L: Not really in the search PATH,
10680           # but as the default location of the library.
10681           hardcode_minus_L=yes
10682           ;;
10683         esac
10684       fi
10685       ;;
10686
10687     irix5* | irix6* | nonstopux*)
10688       if test "$GCC" = yes; then
10689         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10690         # Try to use the -exported_symbol ld option, if it does not
10691         # work, assume that -exports_file does not work either and
10692         # implicitly export all symbols.
10693         save_LDFLAGS="$LDFLAGS"
10694         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10695         if test x$gcc_no_link = xyes; then
10696   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10697 fi
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700 int foo(void) {}
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10704
10705 fi
10706 rm -f core conftest.err conftest.$ac_objext \
10707     conftest$ac_exeext conftest.$ac_ext
10708         LDFLAGS="$save_LDFLAGS"
10709       else
10710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10711         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10712       fi
10713       archive_cmds_need_lc='no'
10714       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10715       hardcode_libdir_separator=:
10716       inherit_rpath=yes
10717       link_all_deplibs=yes
10718       ;;
10719
10720     netbsd*)
10721       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10722         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10723       else
10724         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10725       fi
10726       hardcode_libdir_flag_spec='-R$libdir'
10727       hardcode_direct=yes
10728       hardcode_shlibpath_var=no
10729       ;;
10730
10731     newsos6)
10732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733       hardcode_direct=yes
10734       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10735       hardcode_libdir_separator=:
10736       hardcode_shlibpath_var=no
10737       ;;
10738
10739     *nto* | *qnx*)
10740       ;;
10741
10742     openbsd*)
10743       if test -f /usr/libexec/ld.so; then
10744         hardcode_direct=yes
10745         hardcode_shlibpath_var=no
10746         hardcode_direct_absolute=yes
10747         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10748           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10749           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10750           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10751           export_dynamic_flag_spec='${wl}-E'
10752         else
10753           case $host_os in
10754            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10755              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10756              hardcode_libdir_flag_spec='-R$libdir'
10757              ;;
10758            *)
10759              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10760              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10761              ;;
10762           esac
10763         fi
10764       else
10765         ld_shlibs=no
10766       fi
10767       ;;
10768
10769     os2*)
10770       hardcode_libdir_flag_spec='-L$libdir'
10771       hardcode_minus_L=yes
10772       allow_undefined_flag=unsupported
10773       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10774       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10775       ;;
10776
10777     osf3*)
10778       if test "$GCC" = yes; then
10779         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10780         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10781       else
10782         allow_undefined_flag=' -expect_unresolved \*'
10783         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10784       fi
10785       archive_cmds_need_lc='no'
10786       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10787       hardcode_libdir_separator=:
10788       ;;
10789
10790     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10791       if test "$GCC" = yes; then
10792         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10793         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10794         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10795       else
10796         allow_undefined_flag=' -expect_unresolved \*'
10797         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10798         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10799         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10800
10801         # Both c and cxx compiler support -rpath directly
10802         hardcode_libdir_flag_spec='-rpath $libdir'
10803       fi
10804       archive_cmds_need_lc='no'
10805       hardcode_libdir_separator=:
10806       ;;
10807
10808     solaris*)
10809       no_undefined_flag=' -z defs'
10810       if test "$GCC" = yes; then
10811         wlarc='${wl}'
10812         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10813         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10814           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10815       else
10816         case `$CC -V 2>&1` in
10817         *"Compilers 5.0"*)
10818           wlarc=''
10819           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10820           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10821           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10822           ;;
10823         *)
10824           wlarc='${wl}'
10825           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10826           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10827           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10828           ;;
10829         esac
10830       fi
10831       hardcode_libdir_flag_spec='-R$libdir'
10832       hardcode_shlibpath_var=no
10833       case $host_os in
10834       solaris2.[0-5] | solaris2.[0-5].*) ;;
10835       *)
10836         # The compiler driver will combine and reorder linker options,
10837         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10838         # but is careful enough not to reorder.
10839         # Supported since Solaris 2.6 (maybe 2.5.1?)
10840         if test "$GCC" = yes; then
10841           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10842         else
10843           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10844         fi
10845         ;;
10846       esac
10847       link_all_deplibs=yes
10848       ;;
10849
10850     sunos4*)
10851       if test "x$host_vendor" = xsequent; then
10852         # Use $CC to link under sequent, because it throws in some extra .o
10853         # files that make .init and .fini sections work.
10854         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10855       else
10856         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10857       fi
10858       hardcode_libdir_flag_spec='-L$libdir'
10859       hardcode_direct=yes
10860       hardcode_minus_L=yes
10861       hardcode_shlibpath_var=no
10862       ;;
10863
10864     sysv4)
10865       case $host_vendor in
10866         sni)
10867           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868           hardcode_direct=yes # is this really true???
10869         ;;
10870         siemens)
10871           ## LD is ld it makes a PLAMLIB
10872           ## CC just makes a GrossModule.
10873           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10874           reload_cmds='$CC -r -o $output$reload_objs'
10875           hardcode_direct=no
10876         ;;
10877         motorola)
10878           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10880         ;;
10881       esac
10882       runpath_var='LD_RUN_PATH'
10883       hardcode_shlibpath_var=no
10884       ;;
10885
10886     sysv4.3*)
10887       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888       hardcode_shlibpath_var=no
10889       export_dynamic_flag_spec='-Bexport'
10890       ;;
10891
10892     sysv4*MP*)
10893       if test -d /usr/nec; then
10894         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895         hardcode_shlibpath_var=no
10896         runpath_var=LD_RUN_PATH
10897         hardcode_runpath_var=yes
10898         ld_shlibs=yes
10899       fi
10900       ;;
10901
10902     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10903       no_undefined_flag='${wl}-z,text'
10904       archive_cmds_need_lc=no
10905       hardcode_shlibpath_var=no
10906       runpath_var='LD_RUN_PATH'
10907
10908       if test "$GCC" = yes; then
10909         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911       else
10912         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914       fi
10915       ;;
10916
10917     sysv5* | sco3.2v5* | sco5v6*)
10918       # Note: We can NOT use -z defs as we might desire, because we do not
10919       # link with -lc, and that would cause any symbols used from libc to
10920       # always be unresolved, which means just about no library would
10921       # ever link correctly.  If we're not using GNU ld we use -z text
10922       # though, which does catch some bad symbols but isn't as heavy-handed
10923       # as -z defs.
10924       no_undefined_flag='${wl}-z,text'
10925       allow_undefined_flag='${wl}-z,nodefs'
10926       archive_cmds_need_lc=no
10927       hardcode_shlibpath_var=no
10928       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10929       hardcode_libdir_separator=':'
10930       link_all_deplibs=yes
10931       export_dynamic_flag_spec='${wl}-Bexport'
10932       runpath_var='LD_RUN_PATH'
10933
10934       if test "$GCC" = yes; then
10935         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937       else
10938         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940       fi
10941       ;;
10942
10943     uts4*)
10944       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945       hardcode_libdir_flag_spec='-L$libdir'
10946       hardcode_shlibpath_var=no
10947       ;;
10948
10949     *)
10950       ld_shlibs=no
10951       ;;
10952     esac
10953
10954     if test x$host_vendor = xsni; then
10955       case $host in
10956       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10957         export_dynamic_flag_spec='${wl}-Blargedynsym'
10958         ;;
10959       esac
10960     fi
10961   fi
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10964 $as_echo "$ld_shlibs" >&6; }
10965 test "$ld_shlibs" = no && can_build_shared=no
10966
10967 with_gnu_ld=$with_gnu_ld
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983 #
10984 # Do we need to explicitly link libc?
10985 #
10986 case "x$archive_cmds_need_lc" in
10987 x|xyes)
10988   # Assume -lc should be added
10989   archive_cmds_need_lc=yes
10990
10991   if test "$enable_shared" = yes && test "$GCC" = yes; then
10992     case $archive_cmds in
10993     *'~'*)
10994       # FIXME: we may have to deal with multi-command sequences.
10995       ;;
10996     '$CC '*)
10997       # Test whether the compiler implicitly links with -lc since on some
10998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10999       # to ld, don't add -lc before -lgcc.
11000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11002 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11003   $as_echo_n "(cached) " >&6
11004 else
11005   $RM conftest*
11006         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11007
11008         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11009   (eval $ac_compile) 2>&5
11010   ac_status=$?
11011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11012   test $ac_status = 0; } 2>conftest.err; then
11013           soname=conftest
11014           lib=conftest
11015           libobjs=conftest.$ac_objext
11016           deplibs=
11017           wl=$lt_prog_compiler_wl
11018           pic_flag=$lt_prog_compiler_pic
11019           compiler_flags=-v
11020           linker_flags=-v
11021           verstring=
11022           output_objdir=.
11023           libname=conftest
11024           lt_save_allow_undefined_flag=$allow_undefined_flag
11025           allow_undefined_flag=
11026           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11027   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11028   ac_status=$?
11029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11030   test $ac_status = 0; }
11031           then
11032             lt_cv_archive_cmds_need_lc=no
11033           else
11034             lt_cv_archive_cmds_need_lc=yes
11035           fi
11036           allow_undefined_flag=$lt_save_allow_undefined_flag
11037         else
11038           cat conftest.err 1>&5
11039         fi
11040         $RM conftest*
11041
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11044 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11045       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11046       ;;
11047     esac
11048   fi
11049   ;;
11050 esac
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11210
11211 if test "$GCC" = yes; then
11212   case $host_os in
11213     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11214     *) lt_awk_arg="/^libraries:/" ;;
11215   esac
11216   case $host_os in
11217     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11218     *) lt_sed_strip_eq="s,=/,/,g" ;;
11219   esac
11220   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11221   case $lt_search_path_spec in
11222   *\;*)
11223     # if the path contains ";" then we assume it to be the separator
11224     # otherwise default to the standard path separator (i.e. ":") - it is
11225     # assumed that no part of a normal pathname contains ";" but that should
11226     # okay in the real world where ";" in dirpaths is itself problematic.
11227     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11228     ;;
11229   *)
11230     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11231     ;;
11232   esac
11233   # Ok, now we have the path, separated by spaces, we can step through it
11234   # and add multilib dir if necessary.
11235   lt_tmp_lt_search_path_spec=
11236   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11237   for lt_sys_path in $lt_search_path_spec; do
11238     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11239       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11240     else
11241       test -d "$lt_sys_path" && \
11242         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11243     fi
11244   done
11245   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11246 BEGIN {RS=" "; FS="/|\n";} {
11247   lt_foo="";
11248   lt_count=0;
11249   for (lt_i = NF; lt_i > 0; lt_i--) {
11250     if ($lt_i != "" && $lt_i != ".") {
11251       if ($lt_i == "..") {
11252         lt_count++;
11253       } else {
11254         if (lt_count == 0) {
11255           lt_foo="/" $lt_i lt_foo;
11256         } else {
11257           lt_count--;
11258         }
11259       }
11260     }
11261   }
11262   if (lt_foo != "") { lt_freq[lt_foo]++; }
11263   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11264 }'`
11265   # AWK program above erroneously prepends '/' to C:/dos/paths
11266   # for these hosts.
11267   case $host_os in
11268     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11269       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11270   esac
11271   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11272 else
11273   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11274 fi
11275 library_names_spec=
11276 libname_spec='lib$name'
11277 soname_spec=
11278 shrext_cmds=".so"
11279 postinstall_cmds=
11280 postuninstall_cmds=
11281 finish_cmds=
11282 finish_eval=
11283 shlibpath_var=
11284 shlibpath_overrides_runpath=unknown
11285 version_type=none
11286 dynamic_linker="$host_os ld.so"
11287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11288 need_lib_prefix=unknown
11289 hardcode_into_libs=no
11290
11291 # when you set need_version to no, make sure it does not cause -set_version
11292 # flags to be left without arguments
11293 need_version=unknown
11294
11295 case $host_os in
11296 aix3*)
11297   version_type=linux
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11299   shlibpath_var=LIBPATH
11300
11301   # AIX 3 has no versioning support, so we append a major version to the name.
11302   soname_spec='${libname}${release}${shared_ext}$major'
11303   ;;
11304
11305 aix[4-9]*)
11306   version_type=linux
11307   need_lib_prefix=no
11308   need_version=no
11309   hardcode_into_libs=yes
11310   if test "$host_cpu" = ia64; then
11311     # AIX 5 supports IA64
11312     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11313     shlibpath_var=LD_LIBRARY_PATH
11314   else
11315     # With GCC up to 2.95.x, collect2 would create an import file
11316     # for dependence libraries.  The import file would start with
11317     # the line `#! .'.  This would cause the generated library to
11318     # depend on `.', always an invalid library.  This was fixed in
11319     # development snapshots of GCC prior to 3.0.
11320     case $host_os in
11321       aix4 | aix4.[01] | aix4.[01].*)
11322       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11323            echo ' yes '
11324            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11325         :
11326       else
11327         can_build_shared=no
11328       fi
11329       ;;
11330     esac
11331     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11332     # soname into executable. Probably we can add versioning support to
11333     # collect2, so additional links can be useful in future.
11334     if test "$aix_use_runtimelinking" = yes; then
11335       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11336       # instead of lib<name>.a to let people know that these are not
11337       # typical AIX shared libraries.
11338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339     else
11340       # We preserve .a as extension for shared libraries through AIX4.2
11341       # and later when we are not doing run time linking.
11342       library_names_spec='${libname}${release}.a $libname.a'
11343       soname_spec='${libname}${release}${shared_ext}$major'
11344     fi
11345     shlibpath_var=LIBPATH
11346   fi
11347   ;;
11348
11349 amigaos*)
11350   case $host_cpu in
11351   powerpc)
11352     # Since July 2007 AmigaOS4 officially supports .so libraries.
11353     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355     ;;
11356   m68k)
11357     library_names_spec='$libname.ixlibrary $libname.a'
11358     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11359     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11360     ;;
11361   esac
11362   ;;
11363
11364 beos*)
11365   library_names_spec='${libname}${shared_ext}'
11366   dynamic_linker="$host_os ld.so"
11367   shlibpath_var=LIBRARY_PATH
11368   ;;
11369
11370 bsdi[45]*)
11371   version_type=linux
11372   need_version=no
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11376   shlibpath_var=LD_LIBRARY_PATH
11377   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11378   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11379   # the default ld.so.conf also contains /usr/contrib/lib and
11380   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11381   # libtool to hard-code these into programs
11382   ;;
11383
11384 cygwin* | mingw* | pw32* | cegcc*)
11385   version_type=windows
11386   shrext_cmds=".dll"
11387   need_version=no
11388   need_lib_prefix=no
11389
11390   case $GCC,$host_os in
11391   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11392     library_names_spec='$libname.dll.a'
11393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11394     postinstall_cmds='base_file=`basename \${file}`~
11395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11396       dldir=$destdir/`dirname \$dlpath`~
11397       test -d \$dldir || mkdir -p \$dldir~
11398       $install_prog $dir/$dlname \$dldir/$dlname~
11399       chmod a+x \$dldir/$dlname~
11400       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11401         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11402       fi'
11403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11404       dlpath=$dir/\$dldll~
11405        $RM \$dlpath'
11406     shlibpath_overrides_runpath=yes
11407
11408     case $host_os in
11409     cygwin*)
11410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11412
11413       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11414       ;;
11415     mingw* | cegcc*)
11416       # MinGW DLLs use traditional 'lib' prefix
11417       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418       ;;
11419     pw32*)
11420       # pw32 DLLs use 'pw' prefix rather than 'lib'
11421       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422       ;;
11423     esac
11424     ;;
11425
11426   *)
11427     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11428     ;;
11429   esac
11430   dynamic_linker='Win32 ld.exe'
11431   # FIXME: first we should search . and the directory the executable is in
11432   shlibpath_var=PATH
11433   ;;
11434
11435 darwin* | rhapsody*)
11436   dynamic_linker="$host_os dyld"
11437   version_type=darwin
11438   need_lib_prefix=no
11439   need_version=no
11440   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11441   soname_spec='${libname}${release}${major}$shared_ext'
11442   shlibpath_overrides_runpath=yes
11443   shlibpath_var=DYLD_LIBRARY_PATH
11444   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11445
11446   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11447   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11448   ;;
11449
11450 dgux*)
11451   version_type=linux
11452   need_lib_prefix=no
11453   need_version=no
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   ;;
11458
11459 freebsd* | dragonfly*)
11460   # DragonFly does not have aout.  When/if they implement a new
11461   # versioning mechanism, adjust this.
11462   if test -x /usr/bin/objformat; then
11463     objformat=`/usr/bin/objformat`
11464   else
11465     case $host_os in
11466     freebsd[23].*) objformat=aout ;;
11467     *) objformat=elf ;;
11468     esac
11469   fi
11470   version_type=freebsd-$objformat
11471   case $version_type in
11472     freebsd-elf*)
11473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11474       need_version=no
11475       need_lib_prefix=no
11476       ;;
11477     freebsd-*)
11478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11479       need_version=yes
11480       ;;
11481   esac
11482   shlibpath_var=LD_LIBRARY_PATH
11483   case $host_os in
11484   freebsd2.*)
11485     shlibpath_overrides_runpath=yes
11486     ;;
11487   freebsd3.[01]* | freebsdelf3.[01]*)
11488     shlibpath_overrides_runpath=yes
11489     hardcode_into_libs=yes
11490     ;;
11491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11493     shlibpath_overrides_runpath=no
11494     hardcode_into_libs=yes
11495     ;;
11496   *) # from 4.6 on, and DragonFly
11497     shlibpath_overrides_runpath=yes
11498     hardcode_into_libs=yes
11499     ;;
11500   esac
11501   ;;
11502
11503 gnu*)
11504   version_type=linux
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   shlibpath_var=LD_LIBRARY_PATH
11510   hardcode_into_libs=yes
11511   ;;
11512
11513 haiku*)
11514   version_type=linux
11515   need_lib_prefix=no
11516   need_version=no
11517   dynamic_linker="$host_os runtime_loader"
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   shlibpath_var=LIBRARY_PATH
11521   shlibpath_overrides_runpath=yes
11522   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11523   hardcode_into_libs=yes
11524   ;;
11525
11526 hpux9* | hpux10* | hpux11*)
11527   # Give a soname corresponding to the major version so that dld.sl refuses to
11528   # link against other versions.
11529   version_type=sunos
11530   need_lib_prefix=no
11531   need_version=no
11532   case $host_cpu in
11533   ia64*)
11534     shrext_cmds='.so'
11535     hardcode_into_libs=yes
11536     dynamic_linker="$host_os dld.so"
11537     shlibpath_var=LD_LIBRARY_PATH
11538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540     soname_spec='${libname}${release}${shared_ext}$major'
11541     if test "X$HPUX_IA64_MODE" = X32; then
11542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11543     else
11544       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11545     fi
11546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547     ;;
11548   hppa*64*)
11549     shrext_cmds='.sl'
11550     hardcode_into_libs=yes
11551     dynamic_linker="$host_os dld.sl"
11552     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11553     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555     soname_spec='${libname}${release}${shared_ext}$major'
11556     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558     ;;
11559   *)
11560     shrext_cmds='.sl'
11561     dynamic_linker="$host_os dld.sl"
11562     shlibpath_var=SHLIB_PATH
11563     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565     soname_spec='${libname}${release}${shared_ext}$major'
11566     ;;
11567   esac
11568   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11569   postinstall_cmds='chmod 555 $lib'
11570   # or fails outright, so override atomically:
11571   install_override_mode=555
11572   ;;
11573
11574 interix[3-9]*)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   shlibpath_overrides_runpath=no
11583   hardcode_into_libs=yes
11584   ;;
11585
11586 irix5* | irix6* | nonstopux*)
11587   case $host_os in
11588     nonstopux*) version_type=nonstopux ;;
11589     *)
11590         if test "$lt_cv_prog_gnu_ld" = yes; then
11591                 version_type=linux
11592         else
11593                 version_type=irix
11594         fi ;;
11595   esac
11596   need_lib_prefix=no
11597   need_version=no
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11600   case $host_os in
11601   irix5* | nonstopux*)
11602     libsuff= shlibsuff=
11603     ;;
11604   *)
11605     case $LD in # libtool.m4 will add one of these switches to LD
11606     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11607       libsuff= shlibsuff= libmagic=32-bit;;
11608     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11609       libsuff=32 shlibsuff=N32 libmagic=N32;;
11610     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11611       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11612     *) libsuff= shlibsuff= libmagic=never-match;;
11613     esac
11614     ;;
11615   esac
11616   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11617   shlibpath_overrides_runpath=no
11618   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11619   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11620   hardcode_into_libs=yes
11621   ;;
11622
11623 # No shared lib support for Linux oldld, aout, or coff.
11624 linux*oldld* | linux*aout* | linux*coff*)
11625   dynamic_linker=no
11626   ;;
11627
11628 # This must be Linux ELF.
11629 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11630   version_type=linux
11631   need_lib_prefix=no
11632   need_version=no
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634   soname_spec='${libname}${release}${shared_ext}$major'
11635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=no
11638
11639   # Some binutils ld are patched to set DT_RUNPATH
11640   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   lt_cv_shlibpath_overrides_runpath=no
11644     save_LDFLAGS=$LDFLAGS
11645     save_libdir=$libdir
11646     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11647          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11648     if test x$gcc_no_link = xyes; then
11649   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11650 fi
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 int
11655 main ()
11656 {
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664   lt_cv_shlibpath_overrides_runpath=yes
11665 fi
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669     LDFLAGS=$save_LDFLAGS
11670     libdir=$save_libdir
11671
11672 fi
11673
11674   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11675
11676   # This implies no fast_install, which is unacceptable.
11677   # Some rework will be needed to allow for fast_install
11678   # before this can be enabled.
11679   hardcode_into_libs=yes
11680
11681   # Append ld.so.conf contents to the search path
11682   if test -f /etc/ld.so.conf; then
11683     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11684     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11685   fi
11686
11687   # We used to test for /lib/ld.so.1 and disable shared libraries on
11688   # powerpc, because MkLinux only supported shared libraries with the
11689   # GNU dynamic linker.  Since this was broken with cross compilers,
11690   # most powerpc-linux boxes support dynamic linking these days and
11691   # people can always --disable-shared, the test was removed, and we
11692   # assume the GNU/Linux dynamic linker is in use.
11693   dynamic_linker='GNU/Linux ld.so'
11694   ;;
11695
11696 netbsd*)
11697   version_type=sunos
11698   need_lib_prefix=no
11699   need_version=no
11700   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11702     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11703     dynamic_linker='NetBSD (a.out) ld.so'
11704   else
11705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706     soname_spec='${libname}${release}${shared_ext}$major'
11707     dynamic_linker='NetBSD ld.elf_so'
11708   fi
11709   shlibpath_var=LD_LIBRARY_PATH
11710   shlibpath_overrides_runpath=yes
11711   hardcode_into_libs=yes
11712   ;;
11713
11714 newsos6)
11715   version_type=linux
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=yes
11719   ;;
11720
11721 *nto* | *qnx*)
11722   version_type=qnx
11723   need_lib_prefix=no
11724   need_version=no
11725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   shlibpath_var=LD_LIBRARY_PATH
11728   shlibpath_overrides_runpath=no
11729   hardcode_into_libs=yes
11730   dynamic_linker='ldqnx.so'
11731   ;;
11732
11733 openbsd*)
11734   version_type=sunos
11735   sys_lib_dlsearch_path_spec="/usr/lib"
11736   need_lib_prefix=no
11737   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11738   case $host_os in
11739     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11740     *)                          need_version=no  ;;
11741   esac
11742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11743   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11744   shlibpath_var=LD_LIBRARY_PATH
11745   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11746     case $host_os in
11747       openbsd2.[89] | openbsd2.[89].*)
11748         shlibpath_overrides_runpath=no
11749         ;;
11750       *)
11751         shlibpath_overrides_runpath=yes
11752         ;;
11753       esac
11754   else
11755     shlibpath_overrides_runpath=yes
11756   fi
11757   ;;
11758
11759 os2*)
11760   libname_spec='$name'
11761   shrext_cmds=".dll"
11762   need_lib_prefix=no
11763   library_names_spec='$libname${shared_ext} $libname.a'
11764   dynamic_linker='OS/2 ld.exe'
11765   shlibpath_var=LIBPATH
11766   ;;
11767
11768 osf3* | osf4* | osf5*)
11769   version_type=osf
11770   need_lib_prefix=no
11771   need_version=no
11772   soname_spec='${libname}${release}${shared_ext}$major'
11773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11776   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11777   ;;
11778
11779 rdos*)
11780   dynamic_linker=no
11781   ;;
11782
11783 solaris*)
11784   version_type=linux
11785   need_lib_prefix=no
11786   need_version=no
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788   soname_spec='${libname}${release}${shared_ext}$major'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   shlibpath_overrides_runpath=yes
11791   hardcode_into_libs=yes
11792   # ldd complains unless libraries are executable
11793   postinstall_cmds='chmod +x $lib'
11794   ;;
11795
11796 sunos4*)
11797   version_type=sunos
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11799   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=yes
11802   if test "$with_gnu_ld" = yes; then
11803     need_lib_prefix=no
11804   fi
11805   need_version=yes
11806   ;;
11807
11808 sysv4 | sysv4.3*)
11809   version_type=linux
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   soname_spec='${libname}${release}${shared_ext}$major'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   case $host_vendor in
11814     sni)
11815       shlibpath_overrides_runpath=no
11816       need_lib_prefix=no
11817       runpath_var=LD_RUN_PATH
11818       ;;
11819     siemens)
11820       need_lib_prefix=no
11821       ;;
11822     motorola)
11823       need_lib_prefix=no
11824       need_version=no
11825       shlibpath_overrides_runpath=no
11826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11827       ;;
11828   esac
11829   ;;
11830
11831 sysv4*MP*)
11832   if test -d /usr/nec ;then
11833     version_type=linux
11834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11835     soname_spec='$libname${shared_ext}.$major'
11836     shlibpath_var=LD_LIBRARY_PATH
11837   fi
11838   ;;
11839
11840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11841   version_type=freebsd-elf
11842   need_lib_prefix=no
11843   need_version=no
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   shlibpath_var=LD_LIBRARY_PATH
11847   shlibpath_overrides_runpath=yes
11848   hardcode_into_libs=yes
11849   if test "$with_gnu_ld" = yes; then
11850     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11851   else
11852     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11853     case $host_os in
11854       sco3.2v5*)
11855         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11856         ;;
11857     esac
11858   fi
11859   sys_lib_dlsearch_path_spec='/usr/lib'
11860   ;;
11861
11862 tpf*)
11863   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   shlibpath_overrides_runpath=no
11870   hardcode_into_libs=yes
11871   ;;
11872
11873 uts4*)
11874   version_type=linux
11875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876   soname_spec='${libname}${release}${shared_ext}$major'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   ;;
11879
11880 *)
11881   dynamic_linker=no
11882   ;;
11883 esac
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11885 $as_echo "$dynamic_linker" >&6; }
11886 test "$dynamic_linker" = no && can_build_shared=no
11887
11888 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11889 if test "$GCC" = yes; then
11890   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11891 fi
11892
11893 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11894   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11895 fi
11896 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11897   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11898 fi
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11992 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11993 hardcode_action=
11994 if test -n "$hardcode_libdir_flag_spec" ||
11995    test -n "$runpath_var" ||
11996    test "X$hardcode_automatic" = "Xyes" ; then
11997
11998   # We can hardcode non-existent directories.
11999   if test "$hardcode_direct" != no &&
12000      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12001      # have to relink, otherwise we might link with an installed library
12002      # when we should be linking with a yet-to-be-installed one
12003      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12004      test "$hardcode_minus_L" != no; then
12005     # Linking always hardcodes the temporary library directory.
12006     hardcode_action=relink
12007   else
12008     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12009     hardcode_action=immediate
12010   fi
12011 else
12012   # We cannot hardcode anything, or else we can only hardcode existing
12013   # directories.
12014   hardcode_action=unsupported
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12017 $as_echo "$hardcode_action" >&6; }
12018
12019 if test "$hardcode_action" = relink ||
12020    test "$inherit_rpath" = yes; then
12021   # Fast installation is not supported
12022   enable_fast_install=no
12023 elif test "$shlibpath_overrides_runpath" = yes ||
12024      test "$enable_shared" = no; then
12025   # Fast installation is not necessary
12026   enable_fast_install=needless
12027 fi
12028
12029
12030
12031
12032
12033
12034   if test "x$enable_dlopen" != xyes; then
12035   enable_dlopen=unknown
12036   enable_dlopen_self=unknown
12037   enable_dlopen_self_static=unknown
12038 else
12039   lt_cv_dlopen=no
12040   lt_cv_dlopen_libs=
12041
12042   case $host_os in
12043   beos*)
12044     lt_cv_dlopen="load_add_on"
12045     lt_cv_dlopen_libs=
12046     lt_cv_dlopen_self=yes
12047     ;;
12048
12049   mingw* | pw32* | cegcc*)
12050     lt_cv_dlopen="LoadLibrary"
12051     lt_cv_dlopen_libs=
12052     ;;
12053
12054   cygwin*)
12055     lt_cv_dlopen="dlopen"
12056     lt_cv_dlopen_libs=
12057     ;;
12058
12059   darwin*)
12060   # if libdl is installed we need to link against it
12061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12062 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12063 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-ldl  $LIBS"
12068 if test x$gcc_no_link = xyes; then
12069   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12070 fi
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h.  */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075    Use char because int might match the return type of a GCC
12076    builtin and then its argument prototype would still apply.  */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char dlopen ();
12081 int
12082 main ()
12083 {
12084 return dlopen ();
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090   ac_cv_lib_dl_dlopen=yes
12091 else
12092   ac_cv_lib_dl_dlopen=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095     conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12100 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12102 else
12103
12104     lt_cv_dlopen="dyld"
12105     lt_cv_dlopen_libs=
12106     lt_cv_dlopen_self=yes
12107
12108 fi
12109
12110     ;;
12111
12112   *)
12113     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12114 if test "x$ac_cv_func_shl_load" = x""yes; then :
12115   lt_cv_dlopen="shl_load"
12116 else
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12118 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12119 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-ldld  $LIBS"
12124 if test x$gcc_no_link = xyes; then
12125   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12126 fi
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h.  */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131    Use char because int might match the return type of a GCC
12132    builtin and then its argument prototype would still apply.  */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char shl_load ();
12137 int
12138 main ()
12139 {
12140 return shl_load ();
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146   ac_cv_lib_dld_shl_load=yes
12147 else
12148   ac_cv_lib_dld_shl_load=no
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151     conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12155 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12156 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12157   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12158 else
12159   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12160 if test "x$ac_cv_func_dlopen" = x""yes; then :
12161   lt_cv_dlopen="dlopen"
12162 else
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12166   $as_echo_n "(cached) " >&6
12167 else
12168   ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-ldl  $LIBS"
12170 if test x$gcc_no_link = xyes; then
12171   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12172 fi
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h.  */
12175
12176 /* Override any GCC internal prototype to avoid an error.
12177    Use char because int might match the return type of a GCC
12178    builtin and then its argument prototype would still apply.  */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char dlopen ();
12183 int
12184 main ()
12185 {
12186 return dlopen ();
12187   ;
12188   return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192   ac_cv_lib_dl_dlopen=yes
12193 else
12194   ac_cv_lib_dl_dlopen=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197     conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12202 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12203   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12204 else
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lsvld  $LIBS"
12212 if test x$gcc_no_link = xyes; then
12213   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12214 fi
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219    Use char because int might match the return type of a GCC
12220    builtin and then its argument prototype would still apply.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char dlopen ();
12225 int
12226 main ()
12227 {
12228 return dlopen ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234   ac_cv_lib_svld_dlopen=yes
12235 else
12236   ac_cv_lib_svld_dlopen=no
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext \
12239     conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12243 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12244 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12248 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldld  $LIBS"
12254 if test x$gcc_no_link = xyes; then
12255   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12256 fi
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261    Use char because int might match the return type of a GCC
12262    builtin and then its argument prototype would still apply.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char dld_link ();
12267 int
12268 main ()
12269 {
12270 return dld_link ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276   ac_cv_lib_dld_dld_link=yes
12277 else
12278   ac_cv_lib_dld_dld_link=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281     conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12285 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12286 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12287   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12288 fi
12289
12290
12291 fi
12292
12293
12294 fi
12295
12296
12297 fi
12298
12299
12300 fi
12301
12302
12303 fi
12304
12305     ;;
12306   esac
12307
12308   if test "x$lt_cv_dlopen" != xno; then
12309     enable_dlopen=yes
12310   else
12311     enable_dlopen=no
12312   fi
12313
12314   case $lt_cv_dlopen in
12315   dlopen)
12316     save_CPPFLAGS="$CPPFLAGS"
12317     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12318
12319     save_LDFLAGS="$LDFLAGS"
12320     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12321
12322     save_LIBS="$LIBS"
12323     LIBS="$lt_cv_dlopen_libs $LIBS"
12324
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12326 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12327 if test "${lt_cv_dlopen_self+set}" = set; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330           if test "$cross_compiling" = yes; then :
12331   lt_cv_dlopen_self=cross
12332 else
12333   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12334   lt_status=$lt_dlunknown
12335   cat > conftest.$ac_ext <<_LT_EOF
12336 #line 12336 "configure"
12337 #include "confdefs.h"
12338
12339 #if HAVE_DLFCN_H
12340 #include <dlfcn.h>
12341 #endif
12342
12343 #include <stdio.h>
12344
12345 #ifdef RTLD_GLOBAL
12346 #  define LT_DLGLOBAL           RTLD_GLOBAL
12347 #else
12348 #  ifdef DL_GLOBAL
12349 #    define LT_DLGLOBAL         DL_GLOBAL
12350 #  else
12351 #    define LT_DLGLOBAL         0
12352 #  endif
12353 #endif
12354
12355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12356    find out it does not work in some platform. */
12357 #ifndef LT_DLLAZY_OR_NOW
12358 #  ifdef RTLD_LAZY
12359 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12360 #  else
12361 #    ifdef DL_LAZY
12362 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12363 #    else
12364 #      ifdef RTLD_NOW
12365 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12366 #      else
12367 #        ifdef DL_NOW
12368 #          define LT_DLLAZY_OR_NOW      DL_NOW
12369 #        else
12370 #          define LT_DLLAZY_OR_NOW      0
12371 #        endif
12372 #      endif
12373 #    endif
12374 #  endif
12375 #endif
12376
12377 /* When -fvisbility=hidden is used, assume the code has been annotated
12378    correspondingly for the symbols needed.  */
12379 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12380 void fnord () __attribute__((visibility("default")));
12381 #endif
12382
12383 void fnord () { int i=42; }
12384 int main ()
12385 {
12386   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12387   int status = $lt_dlunknown;
12388
12389   if (self)
12390     {
12391       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12392       else
12393         {
12394           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12395           else puts (dlerror ());
12396         }
12397       /* dlclose (self); */
12398     }
12399   else
12400     puts (dlerror ());
12401
12402   return status;
12403 }
12404 _LT_EOF
12405   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12406   (eval $ac_link) 2>&5
12407   ac_status=$?
12408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12409   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12410     (./conftest; exit; ) >&5 2>/dev/null
12411     lt_status=$?
12412     case x$lt_status in
12413       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12414       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12415       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12416     esac
12417   else :
12418     # compilation failed
12419     lt_cv_dlopen_self=no
12420   fi
12421 fi
12422 rm -fr conftest*
12423
12424
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12427 $as_echo "$lt_cv_dlopen_self" >&6; }
12428
12429     if test "x$lt_cv_dlopen_self" = xyes; then
12430       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12432 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12433 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436           if test "$cross_compiling" = yes; then :
12437   lt_cv_dlopen_self_static=cross
12438 else
12439   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12440   lt_status=$lt_dlunknown
12441   cat > conftest.$ac_ext <<_LT_EOF
12442 #line 12442 "configure"
12443 #include "confdefs.h"
12444
12445 #if HAVE_DLFCN_H
12446 #include <dlfcn.h>
12447 #endif
12448
12449 #include <stdio.h>
12450
12451 #ifdef RTLD_GLOBAL
12452 #  define LT_DLGLOBAL           RTLD_GLOBAL
12453 #else
12454 #  ifdef DL_GLOBAL
12455 #    define LT_DLGLOBAL         DL_GLOBAL
12456 #  else
12457 #    define LT_DLGLOBAL         0
12458 #  endif
12459 #endif
12460
12461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12462    find out it does not work in some platform. */
12463 #ifndef LT_DLLAZY_OR_NOW
12464 #  ifdef RTLD_LAZY
12465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12466 #  else
12467 #    ifdef DL_LAZY
12468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12469 #    else
12470 #      ifdef RTLD_NOW
12471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12472 #      else
12473 #        ifdef DL_NOW
12474 #          define LT_DLLAZY_OR_NOW      DL_NOW
12475 #        else
12476 #          define LT_DLLAZY_OR_NOW      0
12477 #        endif
12478 #      endif
12479 #    endif
12480 #  endif
12481 #endif
12482
12483 /* When -fvisbility=hidden is used, assume the code has been annotated
12484    correspondingly for the symbols needed.  */
12485 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12486 void fnord () __attribute__((visibility("default")));
12487 #endif
12488
12489 void fnord () { int i=42; }
12490 int main ()
12491 {
12492   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12493   int status = $lt_dlunknown;
12494
12495   if (self)
12496     {
12497       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12498       else
12499         {
12500           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12501           else puts (dlerror ());
12502         }
12503       /* dlclose (self); */
12504     }
12505   else
12506     puts (dlerror ());
12507
12508   return status;
12509 }
12510 _LT_EOF
12511   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12512   (eval $ac_link) 2>&5
12513   ac_status=$?
12514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12516     (./conftest; exit; ) >&5 2>/dev/null
12517     lt_status=$?
12518     case x$lt_status in
12519       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12520       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12521       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12522     esac
12523   else :
12524     # compilation failed
12525     lt_cv_dlopen_self_static=no
12526   fi
12527 fi
12528 rm -fr conftest*
12529
12530
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12533 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12534     fi
12535
12536     CPPFLAGS="$save_CPPFLAGS"
12537     LDFLAGS="$save_LDFLAGS"
12538     LIBS="$save_LIBS"
12539     ;;
12540   esac
12541
12542   case $lt_cv_dlopen_self in
12543   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12544   *) enable_dlopen_self=unknown ;;
12545   esac
12546
12547   case $lt_cv_dlopen_self_static in
12548   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12549   *) enable_dlopen_self_static=unknown ;;
12550   esac
12551 fi
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 striplib=
12570 old_striplib=
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12572 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12573 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12574   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12575   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12577 $as_echo "yes" >&6; }
12578 else
12579 # FIXME - insert some real tests, host_os isn't really good enough
12580   case $host_os in
12581   darwin*)
12582     if test -n "$STRIP" ; then
12583       striplib="$STRIP -x"
12584       old_striplib="$STRIP -S"
12585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586 $as_echo "yes" >&6; }
12587     else
12588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12590     fi
12591     ;;
12592   *)
12593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595     ;;
12596   esac
12597 fi
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610   # Report which library types will actually be built
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12612 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12614 $as_echo "$can_build_shared" >&6; }
12615
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12617 $as_echo_n "checking whether to build shared libraries... " >&6; }
12618   test "$can_build_shared" = "no" && enable_shared=no
12619
12620   # On AIX, shared libraries and static libraries use the same namespace, and
12621   # are all built from PIC.
12622   case $host_os in
12623   aix3*)
12624     test "$enable_shared" = yes && enable_static=no
12625     if test -n "$RANLIB"; then
12626       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12627       postinstall_cmds='$RANLIB $lib'
12628     fi
12629     ;;
12630
12631   aix[4-9]*)
12632     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12633       test "$enable_shared" = yes && enable_static=no
12634     fi
12635     ;;
12636   esac
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12638 $as_echo "$enable_shared" >&6; }
12639
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12641 $as_echo_n "checking whether to build static libraries... " >&6; }
12642   # Make sure either enable_shared or enable_static is yes.
12643   test "$enable_shared" = yes || enable_static=yes
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12645 $as_echo "$enable_static" >&6; }
12646
12647
12648
12649
12650 fi
12651 ac_ext=c
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656
12657 CC="$lt_save_CC"
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671         ac_config_commands="$ac_config_commands libtool"
12672
12673
12674
12675
12676 # Only expand once:
12677
12678
12679
12680
12681
12682 case $host in
12683   *-cygwin* | *-mingw*)
12684     # 'host' will be top-level target in the case of a target lib,
12685     # we must compare to with_cross_host to decide if this is a native
12686     # or cross-compiler and select where to install dlls appropriately.
12687     if test -n "$with_cross_host" &&
12688         test x"$with_cross_host" != x"no"; then
12689       lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12690     else
12691       lt_host_flags='-no-undefined -bindir "$(bindir)"';
12692     fi
12693     ;;
12694   *)
12695     lt_host_flags=
12696     ;;
12697 esac
12698
12699
12700
12701
12702
12703 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12704
12705 # We need gfortran to compile parts of the library
12706 #AC_PROG_FC(gfortran)
12707 FC="$GFORTRAN"
12708 ac_ext=${ac_fc_srcext-f}
12709 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12710 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12711 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12712 if test -n "$ac_tool_prefix"; then
12713   for ac_prog in gfortran
12714   do
12715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if test "${ac_cv_prog_FC+set}" = set; then :
12720   $as_echo_n "(cached) " >&6
12721 else
12722   if test -n "$FC"; then
12723   ac_cv_prog_FC="$FC" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728   IFS=$as_save_IFS
12729   test -z "$as_dir" && as_dir=.
12730     for ac_exec_ext in '' $ac_executable_extensions; do
12731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734     break 2
12735   fi
12736 done
12737   done
12738 IFS=$as_save_IFS
12739
12740 fi
12741 fi
12742 FC=$ac_cv_prog_FC
12743 if test -n "$FC"; then
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12745 $as_echo "$FC" >&6; }
12746 else
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751
12752     test -n "$FC" && break
12753   done
12754 fi
12755 if test -z "$FC"; then
12756   ac_ct_FC=$FC
12757   for ac_prog in gfortran
12758 do
12759   # Extract the first word of "$ac_prog", so it can be a program name with args.
12760 set dummy $ac_prog; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766   if test -n "$ac_ct_FC"; then
12767   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12768 else
12769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 for as_dir in $PATH
12771 do
12772   IFS=$as_save_IFS
12773   test -z "$as_dir" && as_dir=.
12774     for ac_exec_ext in '' $ac_executable_extensions; do
12775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776     ac_cv_prog_ac_ct_FC="$ac_prog"
12777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778     break 2
12779   fi
12780 done
12781   done
12782 IFS=$as_save_IFS
12783
12784 fi
12785 fi
12786 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12787 if test -n "$ac_ct_FC"; then
12788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12789 $as_echo "$ac_ct_FC" >&6; }
12790 else
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793 fi
12794
12795
12796   test -n "$ac_ct_FC" && break
12797 done
12798
12799   if test "x$ac_ct_FC" = x; then
12800     FC=""
12801   else
12802     case $cross_compiling:$ac_tool_warned in
12803 yes:)
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12806 ac_tool_warned=yes ;;
12807 esac
12808     FC=$ac_ct_FC
12809   fi
12810 fi
12811
12812
12813 # Provide some information about the compiler.
12814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12815 set X $ac_compile
12816 ac_compiler=$2
12817 for ac_option in --version -v -V -qversion; do
12818   { { ac_try="$ac_compiler $ac_option >&5"
12819 case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12824 $as_echo "$ac_try_echo"; } >&5
12825   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12826   ac_status=$?
12827   if test -s conftest.err; then
12828     sed '10a\
12829 ... rest of stderr output deleted ...
12830          10q' conftest.err >conftest.er1
12831     cat conftest.er1 >&5
12832     rm -f conftest.er1 conftest.err
12833   fi
12834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835   test $ac_status = 0; }
12836 done
12837 rm -f a.out
12838
12839 # If we don't use `.F' as extension, the preprocessor is not run on the
12840 # input file.  (Note that this only needs to work for GNU compilers.)
12841 ac_save_ext=$ac_ext
12842 ac_ext=F
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12844 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12845 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   cat > conftest.$ac_ext <<_ACEOF
12849       program main
12850 #ifndef __GNUC__
12851        choke me
12852 #endif
12853
12854       end
12855 _ACEOF
12856 if ac_fn_fc_try_compile "$LINENO"; then :
12857   ac_compiler_gnu=yes
12858 else
12859   ac_compiler_gnu=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12863
12864 fi
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12866 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12867 ac_ext=$ac_save_ext
12868 ac_test_FCFLAGS=${FCFLAGS+set}
12869 ac_save_FCFLAGS=$FCFLAGS
12870 FCFLAGS=
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12872 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12873 if test "${ac_cv_prog_fc_g+set}" = set; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   FCFLAGS=-g
12877 cat > conftest.$ac_ext <<_ACEOF
12878       program main
12879
12880       end
12881 _ACEOF
12882 if ac_fn_fc_try_compile "$LINENO"; then :
12883   ac_cv_prog_fc_g=yes
12884 else
12885   ac_cv_prog_fc_g=no
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12891 $as_echo "$ac_cv_prog_fc_g" >&6; }
12892 if test "$ac_test_FCFLAGS" = set; then
12893   FCFLAGS=$ac_save_FCFLAGS
12894 elif test $ac_cv_prog_fc_g = yes; then
12895   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12896     FCFLAGS="-g -O2"
12897   else
12898     FCFLAGS="-g"
12899   fi
12900 else
12901   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12902     FCFLAGS="-O2"
12903   else
12904     FCFLAGS=
12905   fi
12906 fi
12907
12908 ac_ext=c
12909 ac_cpp='$CPP $CPPFLAGS'
12910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913
12914       ac_ext=${ac_fc_srcext-f}
12915 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12916 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12917 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12918
12919
12920 if test -z "$FC" || test "X$FC" = "Xno"; then
12921   _lt_disable_FC=yes
12922 fi
12923
12924 archive_cmds_need_lc_FC=no
12925 allow_undefined_flag_FC=
12926 always_export_symbols_FC=no
12927 archive_expsym_cmds_FC=
12928 export_dynamic_flag_spec_FC=
12929 hardcode_direct_FC=no
12930 hardcode_direct_absolute_FC=no
12931 hardcode_libdir_flag_spec_FC=
12932 hardcode_libdir_flag_spec_ld_FC=
12933 hardcode_libdir_separator_FC=
12934 hardcode_minus_L_FC=no
12935 hardcode_automatic_FC=no
12936 inherit_rpath_FC=no
12937 module_cmds_FC=
12938 module_expsym_cmds_FC=
12939 link_all_deplibs_FC=unknown
12940 old_archive_cmds_FC=$old_archive_cmds
12941 reload_flag_FC=$reload_flag
12942 reload_cmds_FC=$reload_cmds
12943 no_undefined_flag_FC=
12944 whole_archive_flag_spec_FC=
12945 enable_shared_with_static_runtimes_FC=no
12946
12947 # Source file extension for fc test sources.
12948 ac_ext=${ac_fc_srcext-f}
12949
12950 # Object file extension for compiled fc test sources.
12951 objext=o
12952 objext_FC=$objext
12953
12954 # No sense in running all these tests if we already determined that
12955 # the FC compiler isn't working.  Some variables (like enable_shared)
12956 # are currently assumed to apply to all compilers on this platform,
12957 # and will be corrupted by setting them based on a non-working compiler.
12958 if test "$_lt_disable_FC" != yes; then
12959   # Code to be used in simple compile tests
12960   lt_simple_compile_test_code="\
12961       subroutine t
12962       return
12963       end
12964 "
12965
12966   # Code to be used in simple link tests
12967   lt_simple_link_test_code="\
12968       program t
12969       end
12970 "
12971
12972   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12973
12974
12975
12976
12977
12978
12979 # If no C compiler was specified, use CC.
12980 LTCC=${LTCC-"$CC"}
12981
12982 # If no C compiler flags were specified, use CFLAGS.
12983 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12984
12985 # Allow CC to be a program name with arguments.
12986 compiler=$CC
12987
12988
12989   # save warnings/boilerplate of simple test code
12990   ac_outfile=conftest.$ac_objext
12991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12993 _lt_compiler_boilerplate=`cat conftest.err`
12994 $RM conftest*
12995
12996   ac_outfile=conftest.$ac_objext
12997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12999 _lt_linker_boilerplate=`cat conftest.err`
13000 $RM -r conftest*
13001
13002
13003   # Allow CC to be a program name with arguments.
13004   lt_save_CC="$CC"
13005   lt_save_GCC=$GCC
13006   CC=${FC-"f95"}
13007   compiler=$CC
13008   GCC=$ac_cv_fc_compiler_gnu
13009
13010   compiler_FC=$CC
13011   for cc_temp in $compiler""; do
13012   case $cc_temp in
13013     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13014     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13015     \-*) ;;
13016     *) break;;
13017   esac
13018 done
13019 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13020
13021
13022   if test -n "$compiler"; then
13023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13026 $as_echo "$can_build_shared" >&6; }
13027
13028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13029 $as_echo_n "checking whether to build shared libraries... " >&6; }
13030     test "$can_build_shared" = "no" && enable_shared=no
13031
13032     # On AIX, shared libraries and static libraries use the same namespace, and
13033     # are all built from PIC.
13034     case $host_os in
13035       aix3*)
13036         test "$enable_shared" = yes && enable_static=no
13037         if test -n "$RANLIB"; then
13038           archive_cmds="$archive_cmds~\$RANLIB \$lib"
13039           postinstall_cmds='$RANLIB $lib'
13040         fi
13041         ;;
13042       aix[4-9]*)
13043         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13044           test "$enable_shared" = yes && enable_static=no
13045         fi
13046         ;;
13047     esac
13048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13049 $as_echo "$enable_shared" >&6; }
13050
13051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13052 $as_echo_n "checking whether to build static libraries... " >&6; }
13053     # Make sure either enable_shared or enable_static is yes.
13054     test "$enable_shared" = yes || enable_static=yes
13055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13056 $as_echo "$enable_static" >&6; }
13057
13058     GCC_FC="$ac_cv_fc_compiler_gnu"
13059     LD_FC="$LD"
13060
13061     ## CAVEAT EMPTOR:
13062     ## There is no encapsulation within the following macros, do not change
13063     ## the running order or otherwise move them around unless you know exactly
13064     ## what you are doing...
13065     # Dependencies to place before and after the object being linked:
13066 predep_objects_FC=
13067 postdep_objects_FC=
13068 predeps_FC=
13069 postdeps_FC=
13070 compiler_lib_search_path_FC=
13071
13072 cat > conftest.$ac_ext <<_LT_EOF
13073       subroutine foo
13074       implicit none
13075       integer a
13076       a=0
13077       return
13078       end
13079 _LT_EOF
13080
13081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13082   (eval $ac_compile) 2>&5
13083   ac_status=$?
13084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13085   test $ac_status = 0; }; then
13086   # Parse the compiler output and extract the necessary
13087   # objects, libraries and library flags.
13088
13089   # Sentinel used to keep track of whether or not we are before
13090   # the conftest object file.
13091   pre_test_object_deps_done=no
13092
13093   for p in `eval "$output_verbose_link_cmd"`; do
13094     case $p in
13095
13096     -L* | -R* | -l*)
13097        # Some compilers place space between "-{L,R}" and the path.
13098        # Remove the space.
13099        if test $p = "-L" ||
13100           test $p = "-R"; then
13101          prev=$p
13102          continue
13103        else
13104          prev=
13105        fi
13106
13107        if test "$pre_test_object_deps_done" = no; then
13108          case $p in
13109          -L* | -R*)
13110            # Internal compiler library paths should come after those
13111            # provided the user.  The postdeps already come after the
13112            # user supplied libs so there is no need to process them.
13113            if test -z "$compiler_lib_search_path_FC"; then
13114              compiler_lib_search_path_FC="${prev}${p}"
13115            else
13116              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13117            fi
13118            ;;
13119          # The "-l" case would never come before the object being
13120          # linked, so don't bother handling this case.
13121          esac
13122        else
13123          if test -z "$postdeps_FC"; then
13124            postdeps_FC="${prev}${p}"
13125          else
13126            postdeps_FC="${postdeps_FC} ${prev}${p}"
13127          fi
13128        fi
13129        ;;
13130
13131     *.$objext)
13132        # This assumes that the test object file only shows up
13133        # once in the compiler output.
13134        if test "$p" = "conftest.$objext"; then
13135          pre_test_object_deps_done=yes
13136          continue
13137        fi
13138
13139        if test "$pre_test_object_deps_done" = no; then
13140          if test -z "$predep_objects_FC"; then
13141            predep_objects_FC="$p"
13142          else
13143            predep_objects_FC="$predep_objects_FC $p"
13144          fi
13145        else
13146          if test -z "$postdep_objects_FC"; then
13147            postdep_objects_FC="$p"
13148          else
13149            postdep_objects_FC="$postdep_objects_FC $p"
13150          fi
13151        fi
13152        ;;
13153
13154     *) ;; # Ignore the rest.
13155
13156     esac
13157   done
13158
13159   # Clean up.
13160   rm -f a.out a.exe
13161 else
13162   echo "libtool.m4: error: problem compiling FC test program"
13163 fi
13164
13165 $RM -f confest.$objext
13166
13167 # PORTME: override above test on systems where it is broken
13168
13169
13170 case " $postdeps_FC " in
13171 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13172 esac
13173  compiler_lib_search_dirs_FC=
13174 if test -n "${compiler_lib_search_path_FC}"; then
13175  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13176 fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208     lt_prog_compiler_wl_FC=
13209 lt_prog_compiler_pic_FC=
13210 lt_prog_compiler_static_FC=
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13213 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13214
13215   if test "$GCC" = yes; then
13216     lt_prog_compiler_wl_FC='-Wl,'
13217     lt_prog_compiler_static_FC='-static'
13218
13219     case $host_os in
13220       aix*)
13221       # All AIX code is PIC.
13222       if test "$host_cpu" = ia64; then
13223         # AIX 5 now supports IA64 processor
13224         lt_prog_compiler_static_FC='-Bstatic'
13225       fi
13226       lt_prog_compiler_pic_FC='-fPIC'
13227       ;;
13228
13229     amigaos*)
13230       case $host_cpu in
13231       powerpc)
13232             # see comment about AmigaOS4 .so support
13233             lt_prog_compiler_pic_FC='-fPIC'
13234         ;;
13235       m68k)
13236             # FIXME: we need at least 68020 code to build shared libraries, but
13237             # adding the `-m68020' flag to GCC prevents building anything better,
13238             # like `-m68040'.
13239             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13240         ;;
13241       esac
13242       ;;
13243
13244     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13245       # PIC is the default for these OSes.
13246       ;;
13247
13248     mingw* | cygwin* | pw32* | os2* | cegcc*)
13249       # This hack is so that the source file can tell whether it is being
13250       # built for inclusion in a dll (and should export symbols for example).
13251       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13252       # (--disable-auto-import) libraries
13253       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13254       ;;
13255
13256     darwin* | rhapsody*)
13257       # PIC is the default on this platform
13258       # Common symbols not allowed in MH_DYLIB files
13259       lt_prog_compiler_pic_FC='-fno-common'
13260       ;;
13261
13262     haiku*)
13263       # PIC is the default for Haiku.
13264       # The "-static" flag exists, but is broken.
13265       lt_prog_compiler_static_FC=
13266       ;;
13267
13268     hpux*)
13269       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13270       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13271       # sets the default TLS model and affects inlining.
13272       case $host_cpu in
13273       hppa*64*)
13274         # +Z the default
13275         ;;
13276       *)
13277         lt_prog_compiler_pic_FC='-fPIC'
13278         ;;
13279       esac
13280       ;;
13281
13282     interix[3-9]*)
13283       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13284       # Instead, we relocate shared libraries at runtime.
13285       ;;
13286
13287     msdosdjgpp*)
13288       # Just because we use GCC doesn't mean we suddenly get shared libraries
13289       # on systems that don't support them.
13290       lt_prog_compiler_can_build_shared_FC=no
13291       enable_shared=no
13292       ;;
13293
13294     *nto* | *qnx*)
13295       # QNX uses GNU C++, but need to define -shared option too, otherwise
13296       # it will coredump.
13297       lt_prog_compiler_pic_FC='-fPIC -shared'
13298       ;;
13299
13300     sysv4*MP*)
13301       if test -d /usr/nec; then
13302         lt_prog_compiler_pic_FC=-Kconform_pic
13303       fi
13304       ;;
13305
13306     *)
13307       lt_prog_compiler_pic_FC='-fPIC'
13308       ;;
13309     esac
13310
13311     case $cc_basename in
13312     nvcc*) # Cuda Compiler Driver 2.2
13313       lt_prog_compiler_wl_FC='-Xlinker '
13314       lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13315       ;;
13316     esac
13317   else
13318     # PORTME Check for flag to pass linker flags through the system compiler.
13319     case $host_os in
13320     aix*)
13321       lt_prog_compiler_wl_FC='-Wl,'
13322       if test "$host_cpu" = ia64; then
13323         # AIX 5 now supports IA64 processor
13324         lt_prog_compiler_static_FC='-Bstatic'
13325       else
13326         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13327       fi
13328       ;;
13329
13330     mingw* | cygwin* | pw32* | os2* | cegcc*)
13331       # This hack is so that the source file can tell whether it is being
13332       # built for inclusion in a dll (and should export symbols for example).
13333       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13334       ;;
13335
13336     hpux9* | hpux10* | hpux11*)
13337       lt_prog_compiler_wl_FC='-Wl,'
13338       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13339       # not for PA HP-UX.
13340       case $host_cpu in
13341       hppa*64*|ia64*)
13342         # +Z the default
13343         ;;
13344       *)
13345         lt_prog_compiler_pic_FC='+Z'
13346         ;;
13347       esac
13348       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13349       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13350       ;;
13351
13352     irix5* | irix6* | nonstopux*)
13353       lt_prog_compiler_wl_FC='-Wl,'
13354       # PIC (with -KPIC) is the default.
13355       lt_prog_compiler_static_FC='-non_shared'
13356       ;;
13357
13358     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13359       case $cc_basename in
13360       # old Intel for x86_64 which still supported -KPIC.
13361       ecc*)
13362         lt_prog_compiler_wl_FC='-Wl,'
13363         lt_prog_compiler_pic_FC='-KPIC'
13364         lt_prog_compiler_static_FC='-static'
13365         ;;
13366       # icc used to be incompatible with GCC.
13367       # ICC 10 doesn't accept -KPIC any more.
13368       icc* | ifort*)
13369         lt_prog_compiler_wl_FC='-Wl,'
13370         lt_prog_compiler_pic_FC='-fPIC'
13371         lt_prog_compiler_static_FC='-static'
13372         ;;
13373       # Lahey Fortran 8.1.
13374       lf95*)
13375         lt_prog_compiler_wl_FC='-Wl,'
13376         lt_prog_compiler_pic_FC='--shared'
13377         lt_prog_compiler_static_FC='--static'
13378         ;;
13379       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13380         # Portland Group compilers (*not* the Pentium gcc compiler,
13381         # which looks to be a dead project)
13382         lt_prog_compiler_wl_FC='-Wl,'
13383         lt_prog_compiler_pic_FC='-fpic'
13384         lt_prog_compiler_static_FC='-Bstatic'
13385         ;;
13386       ccc*)
13387         lt_prog_compiler_wl_FC='-Wl,'
13388         # All Alpha code is PIC.
13389         lt_prog_compiler_static_FC='-non_shared'
13390         ;;
13391       xl* | bgxl* | bgf* | mpixl*)
13392         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13393         lt_prog_compiler_wl_FC='-Wl,'
13394         lt_prog_compiler_pic_FC='-qpic'
13395         lt_prog_compiler_static_FC='-qstaticlink'
13396         ;;
13397       *)
13398         case `$CC -V 2>&1 | sed 5q` in
13399         *Sun\ F* | *Sun*Fortran*)
13400           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13401           lt_prog_compiler_pic_FC='-KPIC'
13402           lt_prog_compiler_static_FC='-Bstatic'
13403           lt_prog_compiler_wl_FC=''
13404           ;;
13405         *Sun\ C*)
13406           # Sun C 5.9
13407           lt_prog_compiler_pic_FC='-KPIC'
13408           lt_prog_compiler_static_FC='-Bstatic'
13409           lt_prog_compiler_wl_FC='-Wl,'
13410           ;;
13411         esac
13412         ;;
13413       esac
13414       ;;
13415
13416     newsos6)
13417       lt_prog_compiler_pic_FC='-KPIC'
13418       lt_prog_compiler_static_FC='-Bstatic'
13419       ;;
13420
13421     *nto* | *qnx*)
13422       # QNX uses GNU C++, but need to define -shared option too, otherwise
13423       # it will coredump.
13424       lt_prog_compiler_pic_FC='-fPIC -shared'
13425       ;;
13426
13427     osf3* | osf4* | osf5*)
13428       lt_prog_compiler_wl_FC='-Wl,'
13429       # All OSF/1 code is PIC.
13430       lt_prog_compiler_static_FC='-non_shared'
13431       ;;
13432
13433     rdos*)
13434       lt_prog_compiler_static_FC='-non_shared'
13435       ;;
13436
13437     solaris*)
13438       lt_prog_compiler_pic_FC='-KPIC'
13439       lt_prog_compiler_static_FC='-Bstatic'
13440       case $cc_basename in
13441       f77* | f90* | f95*)
13442         lt_prog_compiler_wl_FC='-Qoption ld ';;
13443       *)
13444         lt_prog_compiler_wl_FC='-Wl,';;
13445       esac
13446       ;;
13447
13448     sunos4*)
13449       lt_prog_compiler_wl_FC='-Qoption ld '
13450       lt_prog_compiler_pic_FC='-PIC'
13451       lt_prog_compiler_static_FC='-Bstatic'
13452       ;;
13453
13454     sysv4 | sysv4.2uw2* | sysv4.3*)
13455       lt_prog_compiler_wl_FC='-Wl,'
13456       lt_prog_compiler_pic_FC='-KPIC'
13457       lt_prog_compiler_static_FC='-Bstatic'
13458       ;;
13459
13460     sysv4*MP*)
13461       if test -d /usr/nec ;then
13462         lt_prog_compiler_pic_FC='-Kconform_pic'
13463         lt_prog_compiler_static_FC='-Bstatic'
13464       fi
13465       ;;
13466
13467     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13468       lt_prog_compiler_wl_FC='-Wl,'
13469       lt_prog_compiler_pic_FC='-KPIC'
13470       lt_prog_compiler_static_FC='-Bstatic'
13471       ;;
13472
13473     unicos*)
13474       lt_prog_compiler_wl_FC='-Wl,'
13475       lt_prog_compiler_can_build_shared_FC=no
13476       ;;
13477
13478     uts4*)
13479       lt_prog_compiler_pic_FC='-pic'
13480       lt_prog_compiler_static_FC='-Bstatic'
13481       ;;
13482
13483     *)
13484       lt_prog_compiler_can_build_shared_FC=no
13485       ;;
13486     esac
13487   fi
13488
13489 case $host_os in
13490   # For platforms which do not support PIC, -DPIC is meaningless:
13491   *djgpp*)
13492     lt_prog_compiler_pic_FC=
13493     ;;
13494   *)
13495     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13496     ;;
13497 esac
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13499 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13500
13501
13502
13503 #
13504 # Check to make sure the PIC flag actually works.
13505 #
13506 if test -n "$lt_prog_compiler_pic_FC"; then
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13508 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13509 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   lt_cv_prog_compiler_pic_works_FC=no
13513    ac_outfile=conftest.$ac_objext
13514    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13515    lt_compiler_flag="$lt_prog_compiler_pic_FC"
13516    # Insert the option either (1) after the last *FLAGS variable, or
13517    # (2) before a word containing "conftest.", or (3) at the end.
13518    # Note that $ac_compile itself does not contain backslashes and begins
13519    # with a dollar sign (not a hyphen), so the echo should work correctly.
13520    # The option is referenced via a variable to avoid confusing sed.
13521    lt_compile=`echo "$ac_compile" | $SED \
13522    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13523    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13524    -e 's:$: $lt_compiler_flag:'`
13525    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13526    (eval "$lt_compile" 2>conftest.err)
13527    ac_status=$?
13528    cat conftest.err >&5
13529    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530    if (exit $ac_status) && test -s "$ac_outfile"; then
13531      # The compiler can only warn and ignore the option if not recognized
13532      # So say no if there are warnings other than the usual output.
13533      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13534      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13535      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13536        lt_cv_prog_compiler_pic_works_FC=yes
13537      fi
13538    fi
13539    $RM conftest*
13540
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13543 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13544
13545 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13546     case $lt_prog_compiler_pic_FC in
13547      "" | " "*) ;;
13548      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13549      esac
13550 else
13551     lt_prog_compiler_pic_FC=
13552      lt_prog_compiler_can_build_shared_FC=no
13553 fi
13554
13555 fi
13556
13557
13558
13559 #
13560 # Check to make sure the static flag actually works.
13561 #
13562 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13564 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13565 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   lt_cv_prog_compiler_static_works_FC=no
13569    save_LDFLAGS="$LDFLAGS"
13570    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13571    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13572    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13573      # The linker can only warn and ignore the option if not recognized
13574      # So say no if there are warnings
13575      if test -s conftest.err; then
13576        # Append any errors to the config.log.
13577        cat conftest.err 1>&5
13578        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13579        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13580        if diff conftest.exp conftest.er2 >/dev/null; then
13581          lt_cv_prog_compiler_static_works_FC=yes
13582        fi
13583      else
13584        lt_cv_prog_compiler_static_works_FC=yes
13585      fi
13586    fi
13587    $RM -r conftest*
13588    LDFLAGS="$save_LDFLAGS"
13589
13590 fi
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13592 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13593
13594 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13595     :
13596 else
13597     lt_prog_compiler_static_FC=
13598 fi
13599
13600
13601
13602
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13605 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13606   $as_echo_n "(cached) " >&6
13607 else
13608   lt_cv_prog_compiler_c_o_FC=no
13609    $RM -r conftest 2>/dev/null
13610    mkdir conftest
13611    cd conftest
13612    mkdir out
13613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13614
13615    lt_compiler_flag="-o out/conftest2.$ac_objext"
13616    # Insert the option either (1) after the last *FLAGS variable, or
13617    # (2) before a word containing "conftest.", or (3) at the end.
13618    # Note that $ac_compile itself does not contain backslashes and begins
13619    # with a dollar sign (not a hyphen), so the echo should work correctly.
13620    lt_compile=`echo "$ac_compile" | $SED \
13621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13623    -e 's:$: $lt_compiler_flag:'`
13624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13625    (eval "$lt_compile" 2>out/conftest.err)
13626    ac_status=$?
13627    cat out/conftest.err >&5
13628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13630    then
13631      # The compiler can only warn and ignore the option if not recognized
13632      # So say no if there are warnings
13633      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13634      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13635      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13636        lt_cv_prog_compiler_c_o_FC=yes
13637      fi
13638    fi
13639    chmod u+w . 2>&5
13640    $RM conftest*
13641    # SGI C++ compiler will create directory out/ii_files/ for
13642    # template instantiation
13643    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13644    $RM out/* && rmdir out
13645    cd ..
13646    $RM -r conftest
13647    $RM conftest*
13648
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13651 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13652
13653
13654
13655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13656 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13657 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13658   $as_echo_n "(cached) " >&6
13659 else
13660   lt_cv_prog_compiler_c_o_FC=no
13661    $RM -r conftest 2>/dev/null
13662    mkdir conftest
13663    cd conftest
13664    mkdir out
13665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13666
13667    lt_compiler_flag="-o out/conftest2.$ac_objext"
13668    # Insert the option either (1) after the last *FLAGS variable, or
13669    # (2) before a word containing "conftest.", or (3) at the end.
13670    # Note that $ac_compile itself does not contain backslashes and begins
13671    # with a dollar sign (not a hyphen), so the echo should work correctly.
13672    lt_compile=`echo "$ac_compile" | $SED \
13673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13675    -e 's:$: $lt_compiler_flag:'`
13676    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13677    (eval "$lt_compile" 2>out/conftest.err)
13678    ac_status=$?
13679    cat out/conftest.err >&5
13680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13682    then
13683      # The compiler can only warn and ignore the option if not recognized
13684      # So say no if there are warnings
13685      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13686      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13687      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13688        lt_cv_prog_compiler_c_o_FC=yes
13689      fi
13690    fi
13691    chmod u+w . 2>&5
13692    $RM conftest*
13693    # SGI C++ compiler will create directory out/ii_files/ for
13694    # template instantiation
13695    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13696    $RM out/* && rmdir out
13697    cd ..
13698    $RM -r conftest
13699    $RM conftest*
13700
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13703 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13704
13705
13706
13707
13708 hard_links="nottested"
13709 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13710   # do not overwrite the value of need_locks provided by the user
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13712 $as_echo_n "checking if we can lock with hard links... " >&6; }
13713   hard_links=yes
13714   $RM conftest*
13715   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13716   touch conftest.a
13717   ln conftest.a conftest.b 2>&5 || hard_links=no
13718   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13720 $as_echo "$hard_links" >&6; }
13721   if test "$hard_links" = no; then
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13723 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13724     need_locks=warn
13725   fi
13726 else
13727   need_locks=no
13728 fi
13729
13730
13731
13732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13733 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13734
13735   runpath_var=
13736   allow_undefined_flag_FC=
13737   always_export_symbols_FC=no
13738   archive_cmds_FC=
13739   archive_expsym_cmds_FC=
13740   compiler_needs_object_FC=no
13741   enable_shared_with_static_runtimes_FC=no
13742   export_dynamic_flag_spec_FC=
13743   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13744   hardcode_automatic_FC=no
13745   hardcode_direct_FC=no
13746   hardcode_direct_absolute_FC=no
13747   hardcode_libdir_flag_spec_FC=
13748   hardcode_libdir_flag_spec_ld_FC=
13749   hardcode_libdir_separator_FC=
13750   hardcode_minus_L_FC=no
13751   hardcode_shlibpath_var_FC=unsupported
13752   inherit_rpath_FC=no
13753   link_all_deplibs_FC=unknown
13754   module_cmds_FC=
13755   module_expsym_cmds_FC=
13756   old_archive_from_new_cmds_FC=
13757   old_archive_from_expsyms_cmds_FC=
13758   thread_safe_flag_spec_FC=
13759   whole_archive_flag_spec_FC=
13760   # include_expsyms should be a list of space-separated symbols to be *always*
13761   # included in the symbol list
13762   include_expsyms_FC=
13763   # exclude_expsyms can be an extended regexp of symbols to exclude
13764   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13765   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13766   # as well as any symbol that contains `d'.
13767   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13768   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13769   # platforms (ab)use it in PIC code, but their linkers get confused if
13770   # the symbol is explicitly referenced.  Since portable code cannot
13771   # rely on this symbol name, it's probably fine to never include it in
13772   # preloaded symbol tables.
13773   # Exclude shared library initialization/finalization symbols.
13774   extract_expsyms_cmds=
13775
13776   case $host_os in
13777   cygwin* | mingw* | pw32* | cegcc*)
13778     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13779     # When not using gcc, we currently assume that we are using
13780     # Microsoft Visual C++.
13781     if test "$GCC" != yes; then
13782       with_gnu_ld=no
13783     fi
13784     ;;
13785   interix*)
13786     # we just hope/assume this is gcc and not c89 (= MSVC++)
13787     with_gnu_ld=yes
13788     ;;
13789   openbsd*)
13790     with_gnu_ld=no
13791     ;;
13792   esac
13793
13794   ld_shlibs_FC=yes
13795
13796   # On some targets, GNU ld is compatible enough with the native linker
13797   # that we're better off using the native interface for both.
13798   lt_use_gnu_ld_interface=no
13799   if test "$with_gnu_ld" = yes; then
13800     case $host_os in
13801       aix*)
13802         # The AIX port of GNU ld has always aspired to compatibility
13803         # with the native linker.  However, as the warning in the GNU ld
13804         # block says, versions before 2.19.5* couldn't really create working
13805         # shared libraries, regardless of the interface used.
13806         case `$LD -v 2>&1` in
13807           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13808           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13809           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13810           *)
13811             lt_use_gnu_ld_interface=yes
13812             ;;
13813         esac
13814         ;;
13815       *)
13816         lt_use_gnu_ld_interface=yes
13817         ;;
13818     esac
13819   fi
13820
13821   if test "$lt_use_gnu_ld_interface" = yes; then
13822     # If archive_cmds runs LD, not CC, wlarc should be empty
13823     wlarc='${wl}'
13824
13825     # Set some defaults for GNU ld with shared library support. These
13826     # are reset later if shared libraries are not supported. Putting them
13827     # here allows them to be overridden if necessary.
13828     runpath_var=LD_RUN_PATH
13829     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13830     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13831     # ancient GNU ld didn't support --whole-archive et. al.
13832     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13833       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13834     else
13835       whole_archive_flag_spec_FC=
13836     fi
13837     supports_anon_versioning=no
13838     case `$LD -v 2>&1` in
13839       *GNU\ gold*) supports_anon_versioning=yes ;;
13840       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13841       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13842       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13843       *\ 2.11.*) ;; # other 2.11 versions
13844       *) supports_anon_versioning=yes ;;
13845     esac
13846
13847     # See if GNU ld supports shared libraries.
13848     case $host_os in
13849     aix[3-9]*)
13850       # On AIX/PPC, the GNU linker is very broken
13851       if test "$host_cpu" != ia64; then
13852         ld_shlibs_FC=no
13853         cat <<_LT_EOF 1>&2
13854
13855 *** Warning: the GNU linker, at least up to release 2.19, is reported
13856 *** to be unable to reliably create shared libraries on AIX.
13857 *** Therefore, libtool is disabling shared libraries support.  If you
13858 *** really care for shared libraries, you may want to install binutils
13859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13860 *** You will then need to restart the configuration process.
13861
13862 _LT_EOF
13863       fi
13864       ;;
13865
13866     amigaos*)
13867       case $host_cpu in
13868       powerpc)
13869             # see comment about AmigaOS4 .so support
13870             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871             archive_expsym_cmds_FC=''
13872         ;;
13873       m68k)
13874             archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13875             hardcode_libdir_flag_spec_FC='-L$libdir'
13876             hardcode_minus_L_FC=yes
13877         ;;
13878       esac
13879       ;;
13880
13881     beos*)
13882       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13883         allow_undefined_flag_FC=unsupported
13884         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13885         # support --undefined.  This deserves some investigation.  FIXME
13886         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13887       else
13888         ld_shlibs_FC=no
13889       fi
13890       ;;
13891
13892     cygwin* | mingw* | pw32* | cegcc*)
13893       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13894       # as there is no search path for DLLs.
13895       hardcode_libdir_flag_spec_FC='-L$libdir'
13896       export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13897       allow_undefined_flag_FC=unsupported
13898       always_export_symbols_FC=no
13899       enable_shared_with_static_runtimes_FC=yes
13900       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13901
13902       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13903         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13904         # If the export-symbols file already is a .def file (1st line
13905         # is EXPORTS), use it as is; otherwise, prepend...
13906         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13907           cp $export_symbols $output_objdir/$soname.def;
13908         else
13909           echo EXPORTS > $output_objdir/$soname.def;
13910           cat $export_symbols >> $output_objdir/$soname.def;
13911         fi~
13912         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13913       else
13914         ld_shlibs_FC=no
13915       fi
13916       ;;
13917
13918     haiku*)
13919       archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13920       link_all_deplibs_FC=yes
13921       ;;
13922
13923     interix[3-9]*)
13924       hardcode_direct_FC=no
13925       hardcode_shlibpath_var_FC=no
13926       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13927       export_dynamic_flag_spec_FC='${wl}-E'
13928       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13929       # Instead, shared libraries are loaded at an image base (0x10000000 by
13930       # default) and relocated if they conflict, which is a slow very memory
13931       # consuming and fragmenting process.  To avoid this, we pick a random,
13932       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13933       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13934       archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13935       archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13936       ;;
13937
13938     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13939       tmp_diet=no
13940       if test "$host_os" = linux-dietlibc; then
13941         case $cc_basename in
13942           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13943         esac
13944       fi
13945       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13946          && test "$tmp_diet" = no
13947       then
13948         tmp_addflag=
13949         tmp_sharedflag='-shared'
13950         case $cc_basename,$host_cpu in
13951         pgcc*)                          # Portland Group C compiler
13952           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13953           tmp_addflag=' $pic_flag'
13954           ;;
13955         pgf77* | pgf90* | pgf95* | pgfortran*)
13956                                         # Portland Group f77 and f90 compilers
13957           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13958           tmp_addflag=' $pic_flag -Mnomain' ;;
13959         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13960           tmp_addflag=' -i_dynamic' ;;
13961         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13962           tmp_addflag=' -i_dynamic -nofor_main' ;;
13963         ifc* | ifort*)                  # Intel Fortran compiler
13964           tmp_addflag=' -nofor_main' ;;
13965         lf95*)                          # Lahey Fortran 8.1
13966           whole_archive_flag_spec_FC=
13967           tmp_sharedflag='--shared' ;;
13968         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13969           tmp_sharedflag='-qmkshrobj'
13970           tmp_addflag= ;;
13971         nvcc*)  # Cuda Compiler Driver 2.2
13972           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13973           compiler_needs_object_FC=yes
13974           ;;
13975         esac
13976         case `$CC -V 2>&1 | sed 5q` in
13977         *Sun\ C*)                       # Sun C 5.9
13978           whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13979           compiler_needs_object_FC=yes
13980           tmp_sharedflag='-G' ;;
13981         *Sun\ F*)                       # Sun Fortran 8.3
13982           tmp_sharedflag='-G' ;;
13983         esac
13984         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13985
13986         if test "x$supports_anon_versioning" = xyes; then
13987           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13988             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13989             echo "local: *; };" >> $output_objdir/$libname.ver~
13990             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13991         fi
13992
13993         case $cc_basename in
13994         xlf* | bgf* | bgxlf* | mpixlf*)
13995           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13996           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13997           hardcode_libdir_flag_spec_FC=
13998           hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13999           archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14000           if test "x$supports_anon_versioning" = xyes; then
14001             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14002               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14003               echo "local: *; };" >> $output_objdir/$libname.ver~
14004               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14005           fi
14006           ;;
14007         esac
14008       else
14009         ld_shlibs_FC=no
14010       fi
14011       ;;
14012
14013     netbsd*)
14014       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14015         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14016         wlarc=
14017       else
14018         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14020       fi
14021       ;;
14022
14023     solaris*)
14024       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14025         ld_shlibs_FC=no
14026         cat <<_LT_EOF 1>&2
14027
14028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14029 *** create shared libraries on Solaris systems.  Therefore, libtool
14030 *** is disabling shared libraries support.  We urge you to upgrade GNU
14031 *** binutils to release 2.9.1 or newer.  Another option is to modify
14032 *** your PATH or compiler configuration so that the native linker is
14033 *** used, and then restart.
14034
14035 _LT_EOF
14036       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14037         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14039       else
14040         ld_shlibs_FC=no
14041       fi
14042       ;;
14043
14044     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14045       case `$LD -v 2>&1` in
14046         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14047         ld_shlibs_FC=no
14048         cat <<_LT_EOF 1>&2
14049
14050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14051 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14052 *** is disabling shared libraries support.  We urge you to upgrade GNU
14053 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14054 *** your PATH or compiler configuration so that the native linker is
14055 *** used, and then restart.
14056
14057 _LT_EOF
14058         ;;
14059         *)
14060           # For security reasons, it is highly recommended that you always
14061           # use absolute paths for naming shared libraries, and exclude the
14062           # DT_RUNPATH tag from executables and libraries.  But doing so
14063           # requires that you compile everything twice, which is a pain.
14064           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14066             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14068           else
14069             ld_shlibs_FC=no
14070           fi
14071         ;;
14072       esac
14073       ;;
14074
14075     sunos4*)
14076       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14077       wlarc=
14078       hardcode_direct_FC=yes
14079       hardcode_shlibpath_var_FC=no
14080       ;;
14081
14082     *)
14083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14084         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14086       else
14087         ld_shlibs_FC=no
14088       fi
14089       ;;
14090     esac
14091
14092     if test "$ld_shlibs_FC" = no; then
14093       runpath_var=
14094       hardcode_libdir_flag_spec_FC=
14095       export_dynamic_flag_spec_FC=
14096       whole_archive_flag_spec_FC=
14097     fi
14098   else
14099     # PORTME fill in a description of your system's linker (not GNU ld)
14100     case $host_os in
14101     aix3*)
14102       allow_undefined_flag_FC=unsupported
14103       always_export_symbols_FC=yes
14104       archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14105       # Note: this linker hardcodes the directories in LIBPATH if there
14106       # are no directories specified by -L.
14107       hardcode_minus_L_FC=yes
14108       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14109         # Neither direct hardcoding nor static linking is supported with a
14110         # broken collect2.
14111         hardcode_direct_FC=unsupported
14112       fi
14113       ;;
14114
14115     aix[4-9]*)
14116       if test "$host_cpu" = ia64; then
14117         # On IA64, the linker does run time linking by default, so we don't
14118         # have to do anything special.
14119         aix_use_runtimelinking=no
14120         exp_sym_flag='-Bexport'
14121         no_entry_flag=""
14122       else
14123         # If we're using GNU nm, then we don't want the "-C" option.
14124         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14125         # Also, AIX nm treats weak defined symbols like other global
14126         # defined symbols, whereas GNU nm marks them as "W".
14127         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14128           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14129         else
14130           export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14131         fi
14132         aix_use_runtimelinking=no
14133
14134         # Test if we are trying to use run time linking or normal
14135         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14136         # need to do runtime linking.
14137         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14138           for ld_flag in $LDFLAGS; do
14139           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14140             aix_use_runtimelinking=yes
14141             break
14142           fi
14143           done
14144           ;;
14145         esac
14146
14147         exp_sym_flag='-bexport'
14148         no_entry_flag='-bnoentry'
14149       fi
14150
14151       # When large executables or shared objects are built, AIX ld can
14152       # have problems creating the table of contents.  If linking a library
14153       # or program results in "error TOC overflow" add -mminimal-toc to
14154       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14155       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14156
14157       archive_cmds_FC=''
14158       hardcode_direct_FC=yes
14159       hardcode_direct_absolute_FC=yes
14160       hardcode_libdir_separator_FC=':'
14161       link_all_deplibs_FC=yes
14162       file_list_spec_FC='${wl}-f,'
14163
14164       if test "$GCC" = yes; then
14165         case $host_os in aix4.[012]|aix4.[012].*)
14166         # We only want to do this on AIX 4.2 and lower, the check
14167         # below for broken collect2 doesn't work under 4.3+
14168           collect2name=`${CC} -print-prog-name=collect2`
14169           if test -f "$collect2name" &&
14170            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14171           then
14172           # We have reworked collect2
14173           :
14174           else
14175           # We have old collect2
14176           hardcode_direct_FC=unsupported
14177           # It fails to find uninstalled libraries when the uninstalled
14178           # path is not listed in the libpath.  Setting hardcode_minus_L
14179           # to unsupported forces relinking
14180           hardcode_minus_L_FC=yes
14181           hardcode_libdir_flag_spec_FC='-L$libdir'
14182           hardcode_libdir_separator_FC=
14183           fi
14184           ;;
14185         esac
14186         shared_flag='-shared'
14187         if test "$aix_use_runtimelinking" = yes; then
14188           shared_flag="$shared_flag "'${wl}-G'
14189         fi
14190       else
14191         # not using gcc
14192         if test "$host_cpu" = ia64; then
14193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14194         # chokes on -Wl,-G. The following line is correct:
14195           shared_flag='-G'
14196         else
14197           if test "$aix_use_runtimelinking" = yes; then
14198             shared_flag='${wl}-G'
14199           else
14200             shared_flag='${wl}-bM:SRE'
14201           fi
14202         fi
14203       fi
14204
14205       export_dynamic_flag_spec_FC='${wl}-bexpall'
14206       # It seems that -bexpall does not export symbols beginning with
14207       # underscore (_), so it is better to generate a list of symbols to export.
14208       always_export_symbols_FC=yes
14209       if test "$aix_use_runtimelinking" = yes; then
14210         # Warning - without using the other runtime loading flags (-brtl),
14211         # -berok will link without error, but may produce a broken library.
14212         allow_undefined_flag_FC='-berok'
14213         # Determine the default libpath from the value encoded in an
14214         # empty executable.
14215         if test x$gcc_no_link = xyes; then
14216   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14217 fi
14218 cat > conftest.$ac_ext <<_ACEOF
14219       program main
14220
14221       end
14222 _ACEOF
14223 if ac_fn_fc_try_link "$LINENO"; then :
14224
14225 lt_aix_libpath_sed='
14226     /Import File Strings/,/^$/ {
14227         /^0/ {
14228             s/^0  *\(.*\)$/\1/
14229             p
14230         }
14231     }'
14232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14233 # Check for a 64-bit object if we didn't find anything.
14234 if test -z "$aix_libpath"; then
14235   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236 fi
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext \
14239     conftest$ac_exeext conftest.$ac_ext
14240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14241
14242         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14243         archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14244       else
14245         if test "$host_cpu" = ia64; then
14246           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14247           allow_undefined_flag_FC="-z nodefs"
14248           archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14249         else
14250          # Determine the default libpath from the value encoded in an
14251          # empty executable.
14252          if test x$gcc_no_link = xyes; then
14253   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14254 fi
14255 cat > conftest.$ac_ext <<_ACEOF
14256       program main
14257
14258       end
14259 _ACEOF
14260 if ac_fn_fc_try_link "$LINENO"; then :
14261
14262 lt_aix_libpath_sed='
14263     /Import File Strings/,/^$/ {
14264         /^0/ {
14265             s/^0  *\(.*\)$/\1/
14266             p
14267         }
14268     }'
14269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14270 # Check for a 64-bit object if we didn't find anything.
14271 if test -z "$aix_libpath"; then
14272   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273 fi
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276     conftest$ac_exeext conftest.$ac_ext
14277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14278
14279          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14280           # Warning - without using the other run time loading flags,
14281           # -berok will link without error, but may produce a broken library.
14282           no_undefined_flag_FC=' ${wl}-bernotok'
14283           allow_undefined_flag_FC=' ${wl}-berok'
14284           if test "$with_gnu_ld" = yes; then
14285             # We only use this code for GNU lds that support --whole-archive.
14286             whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14287           else
14288             # Exported symbols can be pulled into shared objects from archives
14289             whole_archive_flag_spec_FC='$convenience'
14290           fi
14291           archive_cmds_need_lc_FC=yes
14292           # This is similar to how AIX traditionally builds its shared libraries.
14293           archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14294         fi
14295       fi
14296       ;;
14297
14298     amigaos*)
14299       case $host_cpu in
14300       powerpc)
14301             # see comment about AmigaOS4 .so support
14302             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303             archive_expsym_cmds_FC=''
14304         ;;
14305       m68k)
14306             archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14307             hardcode_libdir_flag_spec_FC='-L$libdir'
14308             hardcode_minus_L_FC=yes
14309         ;;
14310       esac
14311       ;;
14312
14313     bsdi[45]*)
14314       export_dynamic_flag_spec_FC=-rdynamic
14315       ;;
14316
14317     cygwin* | mingw* | pw32* | cegcc*)
14318       # When not using gcc, we currently assume that we are using
14319       # Microsoft Visual C++.
14320       # hardcode_libdir_flag_spec is actually meaningless, as there is
14321       # no search path for DLLs.
14322       hardcode_libdir_flag_spec_FC=' '
14323       allow_undefined_flag_FC=unsupported
14324       # Tell ltmain to make .lib files, not .a files.
14325       libext=lib
14326       # Tell ltmain to make .dll files, not .so files.
14327       shrext_cmds=".dll"
14328       # FIXME: Setting linknames here is a bad hack.
14329       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14330       # The linker will automatically build a .lib file if we build a DLL.
14331       old_archive_from_new_cmds_FC='true'
14332       # FIXME: Should let the user specify the lib program.
14333       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14334       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14335       enable_shared_with_static_runtimes_FC=yes
14336       ;;
14337
14338     darwin* | rhapsody*)
14339
14340
14341   archive_cmds_need_lc_FC=no
14342   hardcode_direct_FC=no
14343   hardcode_automatic_FC=yes
14344   hardcode_shlibpath_var_FC=unsupported
14345   if test "$lt_cv_ld_force_load" = "yes"; then
14346     whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14347   else
14348     whole_archive_flag_spec_FC=''
14349   fi
14350   link_all_deplibs_FC=yes
14351   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14352   case $cc_basename in
14353      ifort*) _lt_dar_can_shared=yes ;;
14354      *) _lt_dar_can_shared=$GCC ;;
14355   esac
14356   if test "$_lt_dar_can_shared" = "yes"; then
14357     output_verbose_link_cmd=func_echo_all
14358     archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14359     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14360     archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14361     module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14362
14363   else
14364   ld_shlibs_FC=no
14365   fi
14366
14367       ;;
14368
14369     dgux*)
14370       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371       hardcode_libdir_flag_spec_FC='-L$libdir'
14372       hardcode_shlibpath_var_FC=no
14373       ;;
14374
14375     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14376     # support.  Future versions do this automatically, but an explicit c++rt0.o
14377     # does not break anything, and helps significantly (at the cost of a little
14378     # extra space).
14379     freebsd2.2*)
14380       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14381       hardcode_libdir_flag_spec_FC='-R$libdir'
14382       hardcode_direct_FC=yes
14383       hardcode_shlibpath_var_FC=no
14384       ;;
14385
14386     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14387     freebsd2.*)
14388       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14389       hardcode_direct_FC=yes
14390       hardcode_minus_L_FC=yes
14391       hardcode_shlibpath_var_FC=no
14392       ;;
14393
14394     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14395     freebsd* | dragonfly*)
14396       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14397       hardcode_libdir_flag_spec_FC='-R$libdir'
14398       hardcode_direct_FC=yes
14399       hardcode_shlibpath_var_FC=no
14400       ;;
14401
14402     hpux9*)
14403       if test "$GCC" = yes; then
14404         archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14405       else
14406         archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14407       fi
14408       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14409       hardcode_libdir_separator_FC=:
14410       hardcode_direct_FC=yes
14411
14412       # hardcode_minus_L: Not really in the search PATH,
14413       # but as the default location of the library.
14414       hardcode_minus_L_FC=yes
14415       export_dynamic_flag_spec_FC='${wl}-E'
14416       ;;
14417
14418     hpux10*)
14419       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14420         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14421       else
14422         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14423       fi
14424       if test "$with_gnu_ld" = no; then
14425         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14426         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14427         hardcode_libdir_separator_FC=:
14428         hardcode_direct_FC=yes
14429         hardcode_direct_absolute_FC=yes
14430         export_dynamic_flag_spec_FC='${wl}-E'
14431         # hardcode_minus_L: Not really in the search PATH,
14432         # but as the default location of the library.
14433         hardcode_minus_L_FC=yes
14434       fi
14435       ;;
14436
14437     hpux11*)
14438       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14439         case $host_cpu in
14440         hppa*64*)
14441           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14442           ;;
14443         ia64*)
14444           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14445           ;;
14446         *)
14447           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14448           ;;
14449         esac
14450       else
14451         case $host_cpu in
14452         hppa*64*)
14453           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14454           ;;
14455         ia64*)
14456           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14457           ;;
14458         *)
14459         archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14460           ;;
14461         esac
14462       fi
14463       if test "$with_gnu_ld" = no; then
14464         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14465         hardcode_libdir_separator_FC=:
14466
14467         case $host_cpu in
14468         hppa*64*|ia64*)
14469           hardcode_direct_FC=no
14470           hardcode_shlibpath_var_FC=no
14471           ;;
14472         *)
14473           hardcode_direct_FC=yes
14474           hardcode_direct_absolute_FC=yes
14475           export_dynamic_flag_spec_FC='${wl}-E'
14476
14477           # hardcode_minus_L: Not really in the search PATH,
14478           # but as the default location of the library.
14479           hardcode_minus_L_FC=yes
14480           ;;
14481         esac
14482       fi
14483       ;;
14484
14485     irix5* | irix6* | nonstopux*)
14486       if test "$GCC" = yes; then
14487         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14488         # Try to use the -exported_symbol ld option, if it does not
14489         # work, assume that -exports_file does not work either and
14490         # implicitly export all symbols.
14491         save_LDFLAGS="$LDFLAGS"
14492         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14493         if test x$gcc_no_link = xyes; then
14494   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14495 fi
14496 cat > conftest.$ac_ext <<_ACEOF
14497 int foo(void) {}
14498 _ACEOF
14499 if ac_fn_fc_try_link "$LINENO"; then :
14500   archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14501
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext \
14504     conftest$ac_exeext conftest.$ac_ext
14505         LDFLAGS="$save_LDFLAGS"
14506       else
14507         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14508         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14509       fi
14510       archive_cmds_need_lc_FC='no'
14511       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14512       hardcode_libdir_separator_FC=:
14513       inherit_rpath_FC=yes
14514       link_all_deplibs_FC=yes
14515       ;;
14516
14517     netbsd*)
14518       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14519         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14520       else
14521         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14522       fi
14523       hardcode_libdir_flag_spec_FC='-R$libdir'
14524       hardcode_direct_FC=yes
14525       hardcode_shlibpath_var_FC=no
14526       ;;
14527
14528     newsos6)
14529       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14530       hardcode_direct_FC=yes
14531       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14532       hardcode_libdir_separator_FC=:
14533       hardcode_shlibpath_var_FC=no
14534       ;;
14535
14536     *nto* | *qnx*)
14537       ;;
14538
14539     openbsd*)
14540       if test -f /usr/libexec/ld.so; then
14541         hardcode_direct_FC=yes
14542         hardcode_shlibpath_var_FC=no
14543         hardcode_direct_absolute_FC=yes
14544         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14545           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14546           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14547           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14548           export_dynamic_flag_spec_FC='${wl}-E'
14549         else
14550           case $host_os in
14551            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14552              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553              hardcode_libdir_flag_spec_FC='-R$libdir'
14554              ;;
14555            *)
14556              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14557              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14558              ;;
14559           esac
14560         fi
14561       else
14562         ld_shlibs_FC=no
14563       fi
14564       ;;
14565
14566     os2*)
14567       hardcode_libdir_flag_spec_FC='-L$libdir'
14568       hardcode_minus_L_FC=yes
14569       allow_undefined_flag_FC=unsupported
14570       archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14571       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14572       ;;
14573
14574     osf3*)
14575       if test "$GCC" = yes; then
14576         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14577         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14578       else
14579         allow_undefined_flag_FC=' -expect_unresolved \*'
14580         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14581       fi
14582       archive_cmds_need_lc_FC='no'
14583       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14584       hardcode_libdir_separator_FC=:
14585       ;;
14586
14587     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14588       if test "$GCC" = yes; then
14589         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14590         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14591         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14592       else
14593         allow_undefined_flag_FC=' -expect_unresolved \*'
14594         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14595         archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14596         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14597
14598         # Both c and cxx compiler support -rpath directly
14599         hardcode_libdir_flag_spec_FC='-rpath $libdir'
14600       fi
14601       archive_cmds_need_lc_FC='no'
14602       hardcode_libdir_separator_FC=:
14603       ;;
14604
14605     solaris*)
14606       no_undefined_flag_FC=' -z defs'
14607       if test "$GCC" = yes; then
14608         wlarc='${wl}'
14609         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14611           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14612       else
14613         case `$CC -V 2>&1` in
14614         *"Compilers 5.0"*)
14615           wlarc=''
14616           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14617           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14618           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14619           ;;
14620         *)
14621           wlarc='${wl}'
14622           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14623           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14624           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14625           ;;
14626         esac
14627       fi
14628       hardcode_libdir_flag_spec_FC='-R$libdir'
14629       hardcode_shlibpath_var_FC=no
14630       case $host_os in
14631       solaris2.[0-5] | solaris2.[0-5].*) ;;
14632       *)
14633         # The compiler driver will combine and reorder linker options,
14634         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14635         # but is careful enough not to reorder.
14636         # Supported since Solaris 2.6 (maybe 2.5.1?)
14637         if test "$GCC" = yes; then
14638           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14639         else
14640           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14641         fi
14642         ;;
14643       esac
14644       link_all_deplibs_FC=yes
14645       ;;
14646
14647     sunos4*)
14648       if test "x$host_vendor" = xsequent; then
14649         # Use $CC to link under sequent, because it throws in some extra .o
14650         # files that make .init and .fini sections work.
14651         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14652       else
14653         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14654       fi
14655       hardcode_libdir_flag_spec_FC='-L$libdir'
14656       hardcode_direct_FC=yes
14657       hardcode_minus_L_FC=yes
14658       hardcode_shlibpath_var_FC=no
14659       ;;
14660
14661     sysv4)
14662       case $host_vendor in
14663         sni)
14664           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14665           hardcode_direct_FC=yes # is this really true???
14666         ;;
14667         siemens)
14668           ## LD is ld it makes a PLAMLIB
14669           ## CC just makes a GrossModule.
14670           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14671           reload_cmds_FC='$CC -r -o $output$reload_objs'
14672           hardcode_direct_FC=no
14673         ;;
14674         motorola)
14675           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14676           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14677         ;;
14678       esac
14679       runpath_var='LD_RUN_PATH'
14680       hardcode_shlibpath_var_FC=no
14681       ;;
14682
14683     sysv4.3*)
14684       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14685       hardcode_shlibpath_var_FC=no
14686       export_dynamic_flag_spec_FC='-Bexport'
14687       ;;
14688
14689     sysv4*MP*)
14690       if test -d /usr/nec; then
14691         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692         hardcode_shlibpath_var_FC=no
14693         runpath_var=LD_RUN_PATH
14694         hardcode_runpath_var=yes
14695         ld_shlibs_FC=yes
14696       fi
14697       ;;
14698
14699     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14700       no_undefined_flag_FC='${wl}-z,text'
14701       archive_cmds_need_lc_FC=no
14702       hardcode_shlibpath_var_FC=no
14703       runpath_var='LD_RUN_PATH'
14704
14705       if test "$GCC" = yes; then
14706         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14707         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708       else
14709         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14710         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711       fi
14712       ;;
14713
14714     sysv5* | sco3.2v5* | sco5v6*)
14715       # Note: We can NOT use -z defs as we might desire, because we do not
14716       # link with -lc, and that would cause any symbols used from libc to
14717       # always be unresolved, which means just about no library would
14718       # ever link correctly.  If we're not using GNU ld we use -z text
14719       # though, which does catch some bad symbols but isn't as heavy-handed
14720       # as -z defs.
14721       no_undefined_flag_FC='${wl}-z,text'
14722       allow_undefined_flag_FC='${wl}-z,nodefs'
14723       archive_cmds_need_lc_FC=no
14724       hardcode_shlibpath_var_FC=no
14725       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14726       hardcode_libdir_separator_FC=':'
14727       link_all_deplibs_FC=yes
14728       export_dynamic_flag_spec_FC='${wl}-Bexport'
14729       runpath_var='LD_RUN_PATH'
14730
14731       if test "$GCC" = yes; then
14732         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14733         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14734       else
14735         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14736         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737       fi
14738       ;;
14739
14740     uts4*)
14741       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742       hardcode_libdir_flag_spec_FC='-L$libdir'
14743       hardcode_shlibpath_var_FC=no
14744       ;;
14745
14746     *)
14747       ld_shlibs_FC=no
14748       ;;
14749     esac
14750
14751     if test x$host_vendor = xsni; then
14752       case $host in
14753       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14754         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14755         ;;
14756       esac
14757     fi
14758   fi
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14761 $as_echo "$ld_shlibs_FC" >&6; }
14762 test "$ld_shlibs_FC" = no && can_build_shared=no
14763
14764 with_gnu_ld_FC=$with_gnu_ld
14765
14766
14767
14768
14769
14770
14771 #
14772 # Do we need to explicitly link libc?
14773 #
14774 case "x$archive_cmds_need_lc_FC" in
14775 x|xyes)
14776   # Assume -lc should be added
14777   archive_cmds_need_lc_FC=yes
14778
14779   if test "$enable_shared" = yes && test "$GCC" = yes; then
14780     case $archive_cmds_FC in
14781     *'~'*)
14782       # FIXME: we may have to deal with multi-command sequences.
14783       ;;
14784     '$CC '*)
14785       # Test whether the compiler implicitly links with -lc since on some
14786       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14787       # to ld, don't add -lc before -lgcc.
14788       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14790 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14791   $as_echo_n "(cached) " >&6
14792 else
14793   $RM conftest*
14794         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14795
14796         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14797   (eval $ac_compile) 2>&5
14798   ac_status=$?
14799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14800   test $ac_status = 0; } 2>conftest.err; then
14801           soname=conftest
14802           lib=conftest
14803           libobjs=conftest.$ac_objext
14804           deplibs=
14805           wl=$lt_prog_compiler_wl_FC
14806           pic_flag=$lt_prog_compiler_pic_FC
14807           compiler_flags=-v
14808           linker_flags=-v
14809           verstring=
14810           output_objdir=.
14811           libname=conftest
14812           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14813           allow_undefined_flag_FC=
14814           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14815   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14816   ac_status=$?
14817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14818   test $ac_status = 0; }
14819           then
14820             lt_cv_archive_cmds_need_lc_FC=no
14821           else
14822             lt_cv_archive_cmds_need_lc_FC=yes
14823           fi
14824           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14825         else
14826           cat conftest.err 1>&5
14827         fi
14828         $RM conftest*
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14832 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14833       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14834       ;;
14835     esac
14836   fi
14837   ;;
14838 esac
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14905
14906 library_names_spec=
14907 libname_spec='lib$name'
14908 soname_spec=
14909 shrext_cmds=".so"
14910 postinstall_cmds=
14911 postuninstall_cmds=
14912 finish_cmds=
14913 finish_eval=
14914 shlibpath_var=
14915 shlibpath_overrides_runpath=unknown
14916 version_type=none
14917 dynamic_linker="$host_os ld.so"
14918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919 need_lib_prefix=unknown
14920 hardcode_into_libs=no
14921
14922 # when you set need_version to no, make sure it does not cause -set_version
14923 # flags to be left without arguments
14924 need_version=unknown
14925
14926 case $host_os in
14927 aix3*)
14928   version_type=linux
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14930   shlibpath_var=LIBPATH
14931
14932   # AIX 3 has no versioning support, so we append a major version to the name.
14933   soname_spec='${libname}${release}${shared_ext}$major'
14934   ;;
14935
14936 aix[4-9]*)
14937   version_type=linux
14938   need_lib_prefix=no
14939   need_version=no
14940   hardcode_into_libs=yes
14941   if test "$host_cpu" = ia64; then
14942     # AIX 5 supports IA64
14943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14944     shlibpath_var=LD_LIBRARY_PATH
14945   else
14946     # With GCC up to 2.95.x, collect2 would create an import file
14947     # for dependence libraries.  The import file would start with
14948     # the line `#! .'.  This would cause the generated library to
14949     # depend on `.', always an invalid library.  This was fixed in
14950     # development snapshots of GCC prior to 3.0.
14951     case $host_os in
14952       aix4 | aix4.[01] | aix4.[01].*)
14953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14954            echo ' yes '
14955            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14956         :
14957       else
14958         can_build_shared=no
14959       fi
14960       ;;
14961     esac
14962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963     # soname into executable. Probably we can add versioning support to
14964     # collect2, so additional links can be useful in future.
14965     if test "$aix_use_runtimelinking" = yes; then
14966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967       # instead of lib<name>.a to let people know that these are not
14968       # typical AIX shared libraries.
14969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970     else
14971       # We preserve .a as extension for shared libraries through AIX4.2
14972       # and later when we are not doing run time linking.
14973       library_names_spec='${libname}${release}.a $libname.a'
14974       soname_spec='${libname}${release}${shared_ext}$major'
14975     fi
14976     shlibpath_var=LIBPATH
14977   fi
14978   ;;
14979
14980 amigaos*)
14981   case $host_cpu in
14982   powerpc)
14983     # Since July 2007 AmigaOS4 officially supports .so libraries.
14984     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986     ;;
14987   m68k)
14988     library_names_spec='$libname.ixlibrary $libname.a'
14989     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14990     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14991     ;;
14992   esac
14993   ;;
14994
14995 beos*)
14996   library_names_spec='${libname}${shared_ext}'
14997   dynamic_linker="$host_os ld.so"
14998   shlibpath_var=LIBRARY_PATH
14999   ;;
15000
15001 bsdi[45]*)
15002   version_type=linux
15003   need_version=no
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15007   shlibpath_var=LD_LIBRARY_PATH
15008   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15009   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15010   # the default ld.so.conf also contains /usr/contrib/lib and
15011   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15012   # libtool to hard-code these into programs
15013   ;;
15014
15015 cygwin* | mingw* | pw32* | cegcc*)
15016   version_type=windows
15017   shrext_cmds=".dll"
15018   need_version=no
15019   need_lib_prefix=no
15020
15021   case $GCC,$host_os in
15022   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15023     library_names_spec='$libname.dll.a'
15024     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15025     postinstall_cmds='base_file=`basename \${file}`~
15026       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15027       dldir=$destdir/`dirname \$dlpath`~
15028       test -d \$dldir || mkdir -p \$dldir~
15029       $install_prog $dir/$dlname \$dldir/$dlname~
15030       chmod a+x \$dldir/$dlname~
15031       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15032         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15033       fi'
15034     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15035       dlpath=$dir/\$dldll~
15036        $RM \$dlpath'
15037     shlibpath_overrides_runpath=yes
15038
15039     case $host_os in
15040     cygwin*)
15041       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15042       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15043
15044       ;;
15045     mingw* | cegcc*)
15046       # MinGW DLLs use traditional 'lib' prefix
15047       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15048       ;;
15049     pw32*)
15050       # pw32 DLLs use 'pw' prefix rather than 'lib'
15051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15052       ;;
15053     esac
15054     ;;
15055
15056   *)
15057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15058     ;;
15059   esac
15060   dynamic_linker='Win32 ld.exe'
15061   # FIXME: first we should search . and the directory the executable is in
15062   shlibpath_var=PATH
15063   ;;
15064
15065 darwin* | rhapsody*)
15066   dynamic_linker="$host_os dyld"
15067   version_type=darwin
15068   need_lib_prefix=no
15069   need_version=no
15070   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071   soname_spec='${libname}${release}${major}$shared_ext'
15072   shlibpath_overrides_runpath=yes
15073   shlibpath_var=DYLD_LIBRARY_PATH
15074   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15075
15076   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15077   ;;
15078
15079 dgux*)
15080   version_type=linux
15081   need_lib_prefix=no
15082   need_version=no
15083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15084   soname_spec='${libname}${release}${shared_ext}$major'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   ;;
15087
15088 freebsd* | dragonfly*)
15089   # DragonFly does not have aout.  When/if they implement a new
15090   # versioning mechanism, adjust this.
15091   if test -x /usr/bin/objformat; then
15092     objformat=`/usr/bin/objformat`
15093   else
15094     case $host_os in
15095     freebsd[23].*) objformat=aout ;;
15096     *) objformat=elf ;;
15097     esac
15098   fi
15099   version_type=freebsd-$objformat
15100   case $version_type in
15101     freebsd-elf*)
15102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15103       need_version=no
15104       need_lib_prefix=no
15105       ;;
15106     freebsd-*)
15107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15108       need_version=yes
15109       ;;
15110   esac
15111   shlibpath_var=LD_LIBRARY_PATH
15112   case $host_os in
15113   freebsd2.*)
15114     shlibpath_overrides_runpath=yes
15115     ;;
15116   freebsd3.[01]* | freebsdelf3.[01]*)
15117     shlibpath_overrides_runpath=yes
15118     hardcode_into_libs=yes
15119     ;;
15120   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15121   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15122     shlibpath_overrides_runpath=no
15123     hardcode_into_libs=yes
15124     ;;
15125   *) # from 4.6 on, and DragonFly
15126     shlibpath_overrides_runpath=yes
15127     hardcode_into_libs=yes
15128     ;;
15129   esac
15130   ;;
15131
15132 gnu*)
15133   version_type=linux
15134   need_lib_prefix=no
15135   need_version=no
15136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15137   soname_spec='${libname}${release}${shared_ext}$major'
15138   shlibpath_var=LD_LIBRARY_PATH
15139   hardcode_into_libs=yes
15140   ;;
15141
15142 haiku*)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   dynamic_linker="$host_os runtime_loader"
15147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15148   soname_spec='${libname}${release}${shared_ext}$major'
15149   shlibpath_var=LIBRARY_PATH
15150   shlibpath_overrides_runpath=yes
15151   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15152   hardcode_into_libs=yes
15153   ;;
15154
15155 hpux9* | hpux10* | hpux11*)
15156   # Give a soname corresponding to the major version so that dld.sl refuses to
15157   # link against other versions.
15158   version_type=sunos
15159   need_lib_prefix=no
15160   need_version=no
15161   case $host_cpu in
15162   ia64*)
15163     shrext_cmds='.so'
15164     hardcode_into_libs=yes
15165     dynamic_linker="$host_os dld.so"
15166     shlibpath_var=LD_LIBRARY_PATH
15167     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169     soname_spec='${libname}${release}${shared_ext}$major'
15170     if test "X$HPUX_IA64_MODE" = X32; then
15171       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15172     else
15173       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15174     fi
15175     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15176     ;;
15177   hppa*64*)
15178     shrext_cmds='.sl'
15179     hardcode_into_libs=yes
15180     dynamic_linker="$host_os dld.sl"
15181     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15182     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184     soname_spec='${libname}${release}${shared_ext}$major'
15185     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15186     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15187     ;;
15188   *)
15189     shrext_cmds='.sl'
15190     dynamic_linker="$host_os dld.sl"
15191     shlibpath_var=SHLIB_PATH
15192     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194     soname_spec='${libname}${release}${shared_ext}$major'
15195     ;;
15196   esac
15197   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15198   postinstall_cmds='chmod 555 $lib'
15199   # or fails outright, so override atomically:
15200   install_override_mode=555
15201   ;;
15202
15203 interix[3-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=no
15212   hardcode_into_libs=yes
15213   ;;
15214
15215 irix5* | irix6* | nonstopux*)
15216   case $host_os in
15217     nonstopux*) version_type=nonstopux ;;
15218     *)
15219         if test "$lt_cv_prog_gnu_ld" = yes; then
15220                 version_type=linux
15221         else
15222                 version_type=irix
15223         fi ;;
15224   esac
15225   need_lib_prefix=no
15226   need_version=no
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15229   case $host_os in
15230   irix5* | nonstopux*)
15231     libsuff= shlibsuff=
15232     ;;
15233   *)
15234     case $LD in # libtool.m4 will add one of these switches to LD
15235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236       libsuff= shlibsuff= libmagic=32-bit;;
15237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238       libsuff=32 shlibsuff=N32 libmagic=N32;;
15239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241     *) libsuff= shlibsuff= libmagic=never-match;;
15242     esac
15243     ;;
15244   esac
15245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246   shlibpath_overrides_runpath=no
15247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249   hardcode_into_libs=yes
15250   ;;
15251
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15254   dynamic_linker=no
15255   ;;
15256
15257 # This must be Linux ELF.
15258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15259   version_type=linux
15260   need_lib_prefix=no
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   shlibpath_overrides_runpath=no
15267
15268   # Some binutils ld are patched to set DT_RUNPATH
15269   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15270   $as_echo_n "(cached) " >&6
15271 else
15272   lt_cv_shlibpath_overrides_runpath=no
15273     save_LDFLAGS=$LDFLAGS
15274     save_libdir=$libdir
15275     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15276          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15277     if test x$gcc_no_link = xyes; then
15278   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15279 fi
15280 cat > conftest.$ac_ext <<_ACEOF
15281       program main
15282
15283       end
15284 _ACEOF
15285 if ac_fn_fc_try_link "$LINENO"; then :
15286   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15287   lt_cv_shlibpath_overrides_runpath=yes
15288 fi
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291     conftest$ac_exeext conftest.$ac_ext
15292     LDFLAGS=$save_LDFLAGS
15293     libdir=$save_libdir
15294
15295 fi
15296
15297   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15298
15299   # This implies no fast_install, which is unacceptable.
15300   # Some rework will be needed to allow for fast_install
15301   # before this can be enabled.
15302   hardcode_into_libs=yes
15303
15304   # Append ld.so.conf contents to the search path
15305   if test -f /etc/ld.so.conf; then
15306     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15307     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15308   fi
15309
15310   # We used to test for /lib/ld.so.1 and disable shared libraries on
15311   # powerpc, because MkLinux only supported shared libraries with the
15312   # GNU dynamic linker.  Since this was broken with cross compilers,
15313   # most powerpc-linux boxes support dynamic linking these days and
15314   # people can always --disable-shared, the test was removed, and we
15315   # assume the GNU/Linux dynamic linker is in use.
15316   dynamic_linker='GNU/Linux ld.so'
15317   ;;
15318
15319 netbsd*)
15320   version_type=sunos
15321   need_lib_prefix=no
15322   need_version=no
15323   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326     dynamic_linker='NetBSD (a.out) ld.so'
15327   else
15328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15329     soname_spec='${libname}${release}${shared_ext}$major'
15330     dynamic_linker='NetBSD ld.elf_so'
15331   fi
15332   shlibpath_var=LD_LIBRARY_PATH
15333   shlibpath_overrides_runpath=yes
15334   hardcode_into_libs=yes
15335   ;;
15336
15337 newsos6)
15338   version_type=linux
15339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   shlibpath_overrides_runpath=yes
15342   ;;
15343
15344 *nto* | *qnx*)
15345   version_type=qnx
15346   need_lib_prefix=no
15347   need_version=no
15348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349   soname_spec='${libname}${release}${shared_ext}$major'
15350   shlibpath_var=LD_LIBRARY_PATH
15351   shlibpath_overrides_runpath=no
15352   hardcode_into_libs=yes
15353   dynamic_linker='ldqnx.so'
15354   ;;
15355
15356 openbsd*)
15357   version_type=sunos
15358   sys_lib_dlsearch_path_spec="/usr/lib"
15359   need_lib_prefix=no
15360   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15361   case $host_os in
15362     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15363     *)                          need_version=no  ;;
15364   esac
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15366   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15367   shlibpath_var=LD_LIBRARY_PATH
15368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15369     case $host_os in
15370       openbsd2.[89] | openbsd2.[89].*)
15371         shlibpath_overrides_runpath=no
15372         ;;
15373       *)
15374         shlibpath_overrides_runpath=yes
15375         ;;
15376       esac
15377   else
15378     shlibpath_overrides_runpath=yes
15379   fi
15380   ;;
15381
15382 os2*)
15383   libname_spec='$name'
15384   shrext_cmds=".dll"
15385   need_lib_prefix=no
15386   library_names_spec='$libname${shared_ext} $libname.a'
15387   dynamic_linker='OS/2 ld.exe'
15388   shlibpath_var=LIBPATH
15389   ;;
15390
15391 osf3* | osf4* | osf5*)
15392   version_type=osf
15393   need_lib_prefix=no
15394   need_version=no
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15399   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15400   ;;
15401
15402 rdos*)
15403   dynamic_linker=no
15404   ;;
15405
15406 solaris*)
15407   version_type=linux
15408   need_lib_prefix=no
15409   need_version=no
15410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411   soname_spec='${libname}${release}${shared_ext}$major'
15412   shlibpath_var=LD_LIBRARY_PATH
15413   shlibpath_overrides_runpath=yes
15414   hardcode_into_libs=yes
15415   # ldd complains unless libraries are executable
15416   postinstall_cmds='chmod +x $lib'
15417   ;;
15418
15419 sunos4*)
15420   version_type=sunos
15421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15422   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15423   shlibpath_var=LD_LIBRARY_PATH
15424   shlibpath_overrides_runpath=yes
15425   if test "$with_gnu_ld" = yes; then
15426     need_lib_prefix=no
15427   fi
15428   need_version=yes
15429   ;;
15430
15431 sysv4 | sysv4.3*)
15432   version_type=linux
15433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   shlibpath_var=LD_LIBRARY_PATH
15436   case $host_vendor in
15437     sni)
15438       shlibpath_overrides_runpath=no
15439       need_lib_prefix=no
15440       runpath_var=LD_RUN_PATH
15441       ;;
15442     siemens)
15443       need_lib_prefix=no
15444       ;;
15445     motorola)
15446       need_lib_prefix=no
15447       need_version=no
15448       shlibpath_overrides_runpath=no
15449       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15450       ;;
15451   esac
15452   ;;
15453
15454 sysv4*MP*)
15455   if test -d /usr/nec ;then
15456     version_type=linux
15457     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15458     soname_spec='$libname${shared_ext}.$major'
15459     shlibpath_var=LD_LIBRARY_PATH
15460   fi
15461   ;;
15462
15463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15464   version_type=freebsd-elf
15465   need_lib_prefix=no
15466   need_version=no
15467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15468   soname_spec='${libname}${release}${shared_ext}$major'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   shlibpath_overrides_runpath=yes
15471   hardcode_into_libs=yes
15472   if test "$with_gnu_ld" = yes; then
15473     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15474   else
15475     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15476     case $host_os in
15477       sco3.2v5*)
15478         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15479         ;;
15480     esac
15481   fi
15482   sys_lib_dlsearch_path_spec='/usr/lib'
15483   ;;
15484
15485 tpf*)
15486   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15487   version_type=linux
15488   need_lib_prefix=no
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491   shlibpath_var=LD_LIBRARY_PATH
15492   shlibpath_overrides_runpath=no
15493   hardcode_into_libs=yes
15494   ;;
15495
15496 uts4*)
15497   version_type=linux
15498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499   soname_spec='${libname}${release}${shared_ext}$major'
15500   shlibpath_var=LD_LIBRARY_PATH
15501   ;;
15502
15503 *)
15504   dynamic_linker=no
15505   ;;
15506 esac
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15508 $as_echo "$dynamic_linker" >&6; }
15509 test "$dynamic_linker" = no && can_build_shared=no
15510
15511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15512 if test "$GCC" = yes; then
15513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15514 fi
15515
15516 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15517   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15518 fi
15519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15520   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15521 fi
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15561 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15562 hardcode_action_FC=
15563 if test -n "$hardcode_libdir_flag_spec_FC" ||
15564    test -n "$runpath_var_FC" ||
15565    test "X$hardcode_automatic_FC" = "Xyes" ; then
15566
15567   # We can hardcode non-existent directories.
15568   if test "$hardcode_direct_FC" != no &&
15569      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15570      # have to relink, otherwise we might link with an installed library
15571      # when we should be linking with a yet-to-be-installed one
15572      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15573      test "$hardcode_minus_L_FC" != no; then
15574     # Linking always hardcodes the temporary library directory.
15575     hardcode_action_FC=relink
15576   else
15577     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15578     hardcode_action_FC=immediate
15579   fi
15580 else
15581   # We cannot hardcode anything, or else we can only hardcode existing
15582   # directories.
15583   hardcode_action_FC=unsupported
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15586 $as_echo "$hardcode_action_FC" >&6; }
15587
15588 if test "$hardcode_action_FC" = relink ||
15589    test "$inherit_rpath_FC" = yes; then
15590   # Fast installation is not supported
15591   enable_fast_install=no
15592 elif test "$shlibpath_overrides_runpath" = yes ||
15593      test "$enable_shared" = no; then
15594   # Fast installation is not necessary
15595   enable_fast_install=needless
15596 fi
15597
15598
15599
15600
15601
15602
15603
15604   fi # test -n "$compiler"
15605
15606   GCC=$lt_save_GCC
15607   CC="$lt_save_CC"
15608 fi # test "$_lt_disable_FC" != yes
15609
15610 ac_ext=c
15611 ac_cpp='$CPP $CPPFLAGS'
15612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15615
15616
15617
15618 # extra LD Flags which are required for targets
15619 case "${host}" in
15620   *-darwin*)
15621     # Darwin needs -single_module when linking libgfortran
15622     extra_ldflags_libgfortran=-Wl,-single_module
15623     ;;
15624 esac
15625
15626
15627 # We need a working compiler at that point, otherwise give a clear
15628 # error message and bail out.
15629
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15631 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15632 ac_ext=${ac_fc_srcext-f}
15633 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15634 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15635 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15636
15637 cat > conftest.$ac_ext <<_ACEOF
15638
15639       program foo
15640       real, parameter :: bar = sin (12.34 / 2.5)
15641       end program foo
15642 _ACEOF
15643 if ac_fn_fc_try_compile "$LINENO"; then :
15644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15645 $as_echo "yes" >&6; }
15646 else
15647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15648 $as_echo "no" >&6; }
15649      as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15650
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 ac_ext=c
15654 ac_cpp='$CPP $CPPFLAGS'
15655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15658
15659
15660
15661 # Check whether --enable-largefile was given.
15662 if test "${enable_largefile+set}" = set; then :
15663   enableval=$enable_largefile;
15664 fi
15665
15666 if test "$enable_largefile" != no; then
15667
15668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15669 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15670 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15671   $as_echo_n "(cached) " >&6
15672 else
15673   ac_cv_sys_largefile_CC=no
15674      if test "$GCC" != yes; then
15675        ac_save_CC=$CC
15676        while :; do
15677          # IRIX 6.2 and later do not support large files by default,
15678          # so use the C compiler's -n32 option if that helps.
15679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h.  */
15681 #include <sys/types.h>
15682  /* Check that off_t can represent 2**63 - 1 correctly.
15683     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15684     since some C++ compilers masquerading as C compilers
15685     incorrectly reject 9223372036854775807.  */
15686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15687   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15688                        && LARGE_OFF_T % 2147483647 == 1)
15689                       ? 1 : -1];
15690 int
15691 main ()
15692 {
15693
15694   ;
15695   return 0;
15696 }
15697 _ACEOF
15698          if ac_fn_c_try_compile "$LINENO"; then :
15699   break
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext
15702          CC="$CC -n32"
15703          if ac_fn_c_try_compile "$LINENO"; then :
15704   ac_cv_sys_largefile_CC=' -n32'; break
15705 fi
15706 rm -f core conftest.err conftest.$ac_objext
15707          break
15708        done
15709        CC=$ac_save_CC
15710        rm -f conftest.$ac_ext
15711     fi
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15714 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15715   if test "$ac_cv_sys_largefile_CC" != no; then
15716     CC=$CC$ac_cv_sys_largefile_CC
15717   fi
15718
15719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15720 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15721 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15722   $as_echo_n "(cached) " >&6
15723 else
15724   while :; do
15725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h.  */
15727 #include <sys/types.h>
15728  /* Check that off_t can represent 2**63 - 1 correctly.
15729     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15730     since some C++ compilers masquerading as C compilers
15731     incorrectly reject 9223372036854775807.  */
15732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15733   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15734                        && LARGE_OFF_T % 2147483647 == 1)
15735                       ? 1 : -1];
15736 int
15737 main ()
15738 {
15739
15740   ;
15741   return 0;
15742 }
15743 _ACEOF
15744 if ac_fn_c_try_compile "$LINENO"; then :
15745   ac_cv_sys_file_offset_bits=no; break
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h.  */
15750 #define _FILE_OFFSET_BITS 64
15751 #include <sys/types.h>
15752  /* Check that off_t can represent 2**63 - 1 correctly.
15753     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15754     since some C++ compilers masquerading as C compilers
15755     incorrectly reject 9223372036854775807.  */
15756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15757   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15758                        && LARGE_OFF_T % 2147483647 == 1)
15759                       ? 1 : -1];
15760 int
15761 main ()
15762 {
15763
15764   ;
15765   return 0;
15766 }
15767 _ACEOF
15768 if ac_fn_c_try_compile "$LINENO"; then :
15769   ac_cv_sys_file_offset_bits=64; break
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772   ac_cv_sys_file_offset_bits=unknown
15773   break
15774 done
15775 fi
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15777 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15778 case $ac_cv_sys_file_offset_bits in #(
15779   no | unknown) ;;
15780   *)
15781 cat >>confdefs.h <<_ACEOF
15782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15783 _ACEOF
15784 ;;
15785 esac
15786 rm -rf conftest*
15787   if test $ac_cv_sys_file_offset_bits = unknown; then
15788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15789 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15790 if test "${ac_cv_sys_large_files+set}" = set; then :
15791   $as_echo_n "(cached) " >&6
15792 else
15793   while :; do
15794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h.  */
15796 #include <sys/types.h>
15797  /* Check that off_t can represent 2**63 - 1 correctly.
15798     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15799     since some C++ compilers masquerading as C compilers
15800     incorrectly reject 9223372036854775807.  */
15801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15802   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15803                        && LARGE_OFF_T % 2147483647 == 1)
15804                       ? 1 : -1];
15805 int
15806 main ()
15807 {
15808
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_compile "$LINENO"; then :
15814   ac_cv_sys_large_files=no; break
15815 fi
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h.  */
15819 #define _LARGE_FILES 1
15820 #include <sys/types.h>
15821  /* Check that off_t can represent 2**63 - 1 correctly.
15822     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15823     since some C++ compilers masquerading as C compilers
15824     incorrectly reject 9223372036854775807.  */
15825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15826   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15827                        && LARGE_OFF_T % 2147483647 == 1)
15828                       ? 1 : -1];
15829 int
15830 main ()
15831 {
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_compile "$LINENO"; then :
15838   ac_cv_sys_large_files=1; break
15839 fi
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841   ac_cv_sys_large_files=unknown
15842   break
15843 done
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15846 $as_echo "$ac_cv_sys_large_files" >&6; }
15847 case $ac_cv_sys_large_files in #(
15848   no | unknown) ;;
15849   *)
15850 cat >>confdefs.h <<_ACEOF
15851 #define _LARGE_FILES $ac_cv_sys_large_files
15852 _ACEOF
15853 ;;
15854 esac
15855 rm -rf conftest*
15856   fi
15857 fi
15858
15859
15860 # Types
15861 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15862 if test "x$ac_cv_type_off_t" = x""yes; then :
15863
15864 else
15865
15866 cat >>confdefs.h <<_ACEOF
15867 #define off_t long int
15868 _ACEOF
15869
15870 fi
15871
15872
15873   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15874 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15875
15876 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15877
15878 else
15879   for ac_type in 'int' 'long int' 'long long int'; do
15880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h.  */
15882 $ac_includes_default
15883 int
15884 main ()
15885 {
15886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15887 test_array [0] = 0
15888
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_c_try_compile "$LINENO"; then :
15894
15895 cat >>confdefs.h <<_ACEOF
15896 #define intptr_t $ac_type
15897 _ACEOF
15898
15899           ac_type=
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902        test -z "$ac_type" && break
15903      done
15904 fi
15905
15906
15907
15908   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15909 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15910
15911 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15912
15913 else
15914   for ac_type in 'unsigned int' 'unsigned long int' \
15915         'unsigned long long int'; do
15916        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h.  */
15918 $ac_includes_default
15919 int
15920 main ()
15921 {
15922 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15923 test_array [0] = 0
15924
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 if ac_fn_c_try_compile "$LINENO"; then :
15930
15931 cat >>confdefs.h <<_ACEOF
15932 #define uintptr_t $ac_type
15933 _ACEOF
15934
15935           ac_type=
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938        test -z "$ac_type" && break
15939      done
15940 fi
15941
15942
15943 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15944 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15945
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_PTRDIFF_T 1
15948 _ACEOF
15949
15950
15951 fi
15952
15953
15954 # check header files (we assume C89 is available, so don't check for that)
15955
15956
15957
15958   for ac_header in $ac_header_list
15959 do :
15960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15962 "
15963 eval as_val=\$$as_ac_Header
15964    if test "x$as_val" = x""yes; then :
15965   cat >>confdefs.h <<_ACEOF
15966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15967 _ACEOF
15968
15969 fi
15970
15971 done
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
16004
16005 acx_cv_header_stdint=stddef.h
16006 acx_cv_header_stdint_kind="(already complete)"
16007 for i in stdint.h $inttype_headers; do
16008   unset ac_cv_type_uintptr_t
16009   unset ac_cv_type_uintmax_t
16010   unset ac_cv_type_int_least32_t
16011   unset ac_cv_type_int_fast32_t
16012   unset ac_cv_type_uint64_t
16013   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16014   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16015 #include <$i>
16016 "
16017 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16018   acx_cv_header_stdint=$i
16019 else
16020   continue
16021 fi
16022
16023   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16024 #include <$i>
16025 "
16026 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16027
16028 else
16029   acx_cv_header_stdint_kind="(mostly complete)"
16030 fi
16031
16032   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16033 #include <$i>
16034 "
16035 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16036
16037 else
16038   acx_cv_header_stdint_kind="(mostly complete)"
16039 fi
16040
16041   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16042 #include <$i>
16043 "
16044 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16045
16046 else
16047   acx_cv_header_stdint_kind="(mostly complete)"
16048 fi
16049
16050   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16051 #include <$i>
16052 "
16053 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16054
16055 else
16056   acx_cv_header_stdint_kind="(lacks uint64_t)"
16057 fi
16058
16059   break
16060 done
16061 if test "$acx_cv_header_stdint" = stddef.h; then
16062   acx_cv_header_stdint_kind="(lacks uintmax_t)"
16063   for i in stdint.h $inttype_headers; do
16064     unset ac_cv_type_uintptr_t
16065     unset ac_cv_type_uint32_t
16066     unset ac_cv_type_uint64_t
16067     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16068     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16069 #include <$i>
16070 "
16071 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16072   acx_cv_header_stdint=$i
16073 else
16074   continue
16075 fi
16076
16077     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16078 #include <$i>
16079 "
16080 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16081
16082 fi
16083
16084     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16085 #include <$i>
16086 "
16087 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16088
16089 fi
16090
16091     break
16092   done
16093 fi
16094 if test "$acx_cv_header_stdint" = stddef.h; then
16095   acx_cv_header_stdint_kind="(u_intXX_t style)"
16096   for i in sys/types.h $inttype_headers; do
16097     unset ac_cv_type_u_int32_t
16098     unset ac_cv_type_u_int64_t
16099     $as_echo_n "looking for u_intXX_t types in $i, " >&6
16100     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16101 #include <$i>
16102 "
16103 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16104   acx_cv_header_stdint=$i
16105 else
16106   continue
16107 fi
16108
16109     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16110 #include <$i>
16111 "
16112 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16113
16114 fi
16115
16116     break
16117   done
16118 fi
16119 if test "$acx_cv_header_stdint" = stddef.h; then
16120   acx_cv_header_stdint_kind="(using manual detection)"
16121 fi
16122
16123 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16124 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16125 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16126 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16127 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16128
16129 # ----------------- Summarize what we found so far
16130
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16132 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16133
16134 case `$as_basename -- gstdint.h ||
16135 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16136          Xgstdint.h : 'X\(//\)$' \| \
16137          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X/gstdint.h |
16139     sed '/^.*\/\([^/][^/]*\)\/*$/{
16140             s//\1/
16141             q
16142           }
16143           /^X\/\(\/\/\)$/{
16144             s//\1/
16145             q
16146           }
16147           /^X\/\(\/\).*/{
16148             s//\1/
16149             q
16150           }
16151           s/.*/./; q'` in
16152   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16153 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16154   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16155 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16156   *) ;;
16157 esac
16158
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16160 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16161
16162 # ----------------- done included file, check C basic types --------
16163
16164 # Lacking an uintptr_t?  Test size of void *
16165 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16166   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16169 # This bug is HP SR number 8606223364.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16171 $as_echo_n "checking size of void *... " >&6; }
16172 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16173   $as_echo_n "(cached) " >&6
16174 else
16175   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16176
16177 else
16178   if test "$ac_cv_type_void_p" = yes; then
16179      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16181 { as_fn_set_status 77
16182 as_fn_error "cannot compute sizeof (void *)
16183 See \`config.log' for more details." "$LINENO" 5; }; }
16184    else
16185      ac_cv_sizeof_void_p=0
16186    fi
16187 fi
16188
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16191 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16192
16193
16194
16195 cat >>confdefs.h <<_ACEOF
16196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16197 _ACEOF
16198
16199  ;;
16200 esac
16201
16202 # Lacking an uint64_t?  Test size of long
16203 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16204   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16207 # This bug is HP SR number 8606223364.
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16209 $as_echo_n "checking size of long... " >&6; }
16210 if test "${ac_cv_sizeof_long+set}" = set; then :
16211   $as_echo_n "(cached) " >&6
16212 else
16213   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16214
16215 else
16216   if test "$ac_cv_type_long" = yes; then
16217      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16219 { as_fn_set_status 77
16220 as_fn_error "cannot compute sizeof (long)
16221 See \`config.log' for more details." "$LINENO" 5; }; }
16222    else
16223      ac_cv_sizeof_long=0
16224    fi
16225 fi
16226
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16229 $as_echo "$ac_cv_sizeof_long" >&6; }
16230
16231
16232
16233 cat >>confdefs.h <<_ACEOF
16234 #define SIZEOF_LONG $ac_cv_sizeof_long
16235 _ACEOF
16236
16237  ;;
16238 esac
16239
16240 if test $acx_cv_header_stdint = stddef.h; then
16241   # Lacking a good header?  Test size of everything and deduce all types.
16242   # The cast to long int works around a bug in the HP C Compiler
16243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16245 # This bug is HP SR number 8606223364.
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16247 $as_echo_n "checking size of int... " >&6; }
16248 if test "${ac_cv_sizeof_int+set}" = set; then :
16249   $as_echo_n "(cached) " >&6
16250 else
16251   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16252
16253 else
16254   if test "$ac_cv_type_int" = yes; then
16255      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16257 { as_fn_set_status 77
16258 as_fn_error "cannot compute sizeof (int)
16259 See \`config.log' for more details." "$LINENO" 5; }; }
16260    else
16261      ac_cv_sizeof_int=0
16262    fi
16263 fi
16264
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16267 $as_echo "$ac_cv_sizeof_int" >&6; }
16268
16269
16270
16271 cat >>confdefs.h <<_ACEOF
16272 #define SIZEOF_INT $ac_cv_sizeof_int
16273 _ACEOF
16274
16275
16276   # The cast to long int works around a bug in the HP C Compiler
16277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16279 # This bug is HP SR number 8606223364.
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16281 $as_echo_n "checking size of short... " >&6; }
16282 if test "${ac_cv_sizeof_short+set}" = set; then :
16283   $as_echo_n "(cached) " >&6
16284 else
16285   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16286
16287 else
16288   if test "$ac_cv_type_short" = yes; then
16289      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16291 { as_fn_set_status 77
16292 as_fn_error "cannot compute sizeof (short)
16293 See \`config.log' for more details." "$LINENO" 5; }; }
16294    else
16295      ac_cv_sizeof_short=0
16296    fi
16297 fi
16298
16299 fi
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16301 $as_echo "$ac_cv_sizeof_short" >&6; }
16302
16303
16304
16305 cat >>confdefs.h <<_ACEOF
16306 #define SIZEOF_SHORT $ac_cv_sizeof_short
16307 _ACEOF
16308
16309
16310   # The cast to long int works around a bug in the HP C Compiler
16311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16313 # This bug is HP SR number 8606223364.
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16315 $as_echo_n "checking size of char... " >&6; }
16316 if test "${ac_cv_sizeof_char+set}" = set; then :
16317   $as_echo_n "(cached) " >&6
16318 else
16319   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
16320
16321 else
16322   if test "$ac_cv_type_char" = yes; then
16323      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16325 { as_fn_set_status 77
16326 as_fn_error "cannot compute sizeof (char)
16327 See \`config.log' for more details." "$LINENO" 5; }; }
16328    else
16329      ac_cv_sizeof_char=0
16330    fi
16331 fi
16332
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16335 $as_echo "$ac_cv_sizeof_char" >&6; }
16336
16337
16338
16339 cat >>confdefs.h <<_ACEOF
16340 #define SIZEOF_CHAR $ac_cv_sizeof_char
16341 _ACEOF
16342
16343
16344
16345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16346 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16347   case "$ac_cv_sizeof_char" in
16348     1) acx_cv_type_int8_t=char ;;
16349     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16350   esac
16351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16352 $as_echo "$acx_cv_type_int8_t" >&6; }
16353
16354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16355 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16356   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16357     2:*) acx_cv_type_int16_t=int ;;
16358     *:2) acx_cv_type_int16_t=short ;;
16359     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16360   esac
16361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16362 $as_echo "$acx_cv_type_int16_t" >&6; }
16363
16364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16365 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16366   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16367     4:*) acx_cv_type_int32_t=int ;;
16368     *:4) acx_cv_type_int32_t=long ;;
16369     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16370   esac
16371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16372 $as_echo "$acx_cv_type_int32_t" >&6; }
16373 fi
16374
16375 # These tests are here to make the output prettier
16376
16377 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16378   case "$ac_cv_sizeof_long" in
16379     8) acx_cv_type_int64_t=long ;;
16380   esac
16381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16382 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16384 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16385 fi
16386
16387 # Now we can use the above types
16388
16389 if test "$ac_cv_type_uintptr_t" != yes; then
16390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16391 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16392   case $ac_cv_sizeof_void_p in
16393     2) acx_cv_type_intptr_t=int16_t ;;
16394     4) acx_cv_type_intptr_t=int32_t ;;
16395     8) acx_cv_type_intptr_t=int64_t ;;
16396     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16397   esac
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16399 $as_echo "$acx_cv_type_intptr_t" >&6; }
16400 fi
16401
16402 # ----------------- done all checks, emit header -------------
16403 ac_config_commands="$ac_config_commands gstdint.h"
16404
16405
16406
16407
16408 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16409 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16410
16411 cat >>confdefs.h <<_ACEOF
16412 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16413 _ACEOF
16414
16415
16416 fi
16417 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16418 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16422 _ACEOF
16423
16424
16425 fi
16426 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16427 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16428
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_STRUCT_STAT_ST_RDEV 1
16431 _ACEOF
16432
16433
16434 fi
16435
16436
16437 # Check for library functions.
16438
16439
16440
16441   for ac_func in $ac_func_list
16442 do :
16443   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16445 eval as_val=\$$as_ac_var
16446    if test "x$as_val" = x""yes; then :
16447   cat >>confdefs.h <<_ACEOF
16448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16449 _ACEOF
16450
16451 fi
16452 done
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558 # Check strerror_r, cannot be above as versions with two and three arguments exist
16559
16560     ac_save_CFLAGS="$CFLAGS"
16561   CFLAGS="-Wimplicit-function-declaration -Werror"
16562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h.  */
16564 #define _GNU_SOURCE 1
16565                   #include <string.h>
16566                   #include <locale.h>
16567 int
16568 main ()
16569 {
16570 char s[128]; strerror_r(5, s, 128);
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576
16577 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16578
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581   CFLAGS="$ac_save_CFLAGS"
16582
16583     ac_save_CFLAGS="$CFLAGS"
16584   CFLAGS="-Wimplicit-function-declaration -Werror"
16585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587 #define _GNU_SOURCE 1
16588                   #include <string.h>
16589                   #include <locale.h>
16590 int
16591 main ()
16592 {
16593 char s[128]; strerror_r(5, s);
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_c_try_compile "$LINENO"; then :
16599
16600 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16601
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604   CFLAGS="$ac_save_CFLAGS"
16605
16606
16607 # Check for C99 (and other IEEE) math functions
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16609 $as_echo_n "checking for sin in -lm... " >&6; }
16610 if test "${ac_cv_lib_m_sin+set}" = set; then :
16611   $as_echo_n "(cached) " >&6
16612 else
16613   ac_check_lib_save_LIBS=$LIBS
16614 LIBS="-lm  $LIBS"
16615 if test x$gcc_no_link = xyes; then
16616   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16617 fi
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h.  */
16620
16621 /* Override any GCC internal prototype to avoid an error.
16622    Use char because int might match the return type of a GCC
16623    builtin and then its argument prototype would still apply.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 char sin ();
16628 int
16629 main ()
16630 {
16631 return sin ();
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 if ac_fn_c_try_link "$LINENO"; then :
16637   ac_cv_lib_m_sin=yes
16638 else
16639   ac_cv_lib_m_sin=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext \
16642     conftest$ac_exeext conftest.$ac_ext
16643 LIBS=$ac_check_lib_save_LIBS
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16646 $as_echo "$ac_cv_lib_m_sin" >&6; }
16647 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16648   cat >>confdefs.h <<_ACEOF
16649 #define HAVE_LIBM 1
16650 _ACEOF
16651
16652   LIBS="-lm $LIBS"
16653
16654 fi
16655
16656
16657
16658
16659
16660
16661
16662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16663 $as_echo_n "checking for acosf... " >&6; }
16664 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667   if test x$gcc_no_link = xyes; then
16668   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16669 fi
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h.  */
16672
16673 #ifdef HAVE_COMPLEX_H
16674 #include <complex.h>
16675 #endif
16676 #ifdef HAVE_MATH_H
16677 #include <math.h>
16678 #endif
16679
16680 int (*ptr)() = (int (*)())acosf;
16681
16682 int
16683 main ()
16684 {
16685   return 0;
16686 }
16687
16688 _ACEOF
16689 if ac_fn_c_try_link "$LINENO"; then :
16690   gcc_cv_math_func_acosf=yes
16691 else
16692   gcc_cv_math_func_acosf=no
16693 fi
16694 rm -f core conftest.err conftest.$ac_objext \
16695     conftest$ac_exeext conftest.$ac_ext
16696 fi
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16698 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16699   if test $gcc_cv_math_func_acosf = yes; then
16700
16701 cat >>confdefs.h <<_ACEOF
16702 #define HAVE_ACOSF 1
16703 _ACEOF
16704
16705   fi
16706
16707
16708
16709
16710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16711 $as_echo_n "checking for acos... " >&6; }
16712 if test "${gcc_cv_math_func_acos+set}" = set; then :
16713   $as_echo_n "(cached) " >&6
16714 else
16715   if test x$gcc_no_link = xyes; then
16716   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16717 fi
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h.  */
16720
16721 #ifdef HAVE_COMPLEX_H
16722 #include <complex.h>
16723 #endif
16724 #ifdef HAVE_MATH_H
16725 #include <math.h>
16726 #endif
16727
16728 int (*ptr)() = (int (*)())acos;
16729
16730 int
16731 main ()
16732 {
16733   return 0;
16734 }
16735
16736 _ACEOF
16737 if ac_fn_c_try_link "$LINENO"; then :
16738   gcc_cv_math_func_acos=yes
16739 else
16740   gcc_cv_math_func_acos=no
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext \
16743     conftest$ac_exeext conftest.$ac_ext
16744 fi
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16746 $as_echo "$gcc_cv_math_func_acos" >&6; }
16747   if test $gcc_cv_math_func_acos = yes; then
16748
16749 cat >>confdefs.h <<_ACEOF
16750 #define HAVE_ACOS 1
16751 _ACEOF
16752
16753   fi
16754
16755
16756
16757
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16759 $as_echo_n "checking for acosl... " >&6; }
16760 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16761   $as_echo_n "(cached) " >&6
16762 else
16763   if test x$gcc_no_link = xyes; then
16764   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16765 fi
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h.  */
16768
16769 #ifdef HAVE_COMPLEX_H
16770 #include <complex.h>
16771 #endif
16772 #ifdef HAVE_MATH_H
16773 #include <math.h>
16774 #endif
16775
16776 int (*ptr)() = (int (*)())acosl;
16777
16778 int
16779 main ()
16780 {
16781   return 0;
16782 }
16783
16784 _ACEOF
16785 if ac_fn_c_try_link "$LINENO"; then :
16786   gcc_cv_math_func_acosl=yes
16787 else
16788   gcc_cv_math_func_acosl=no
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext \
16791     conftest$ac_exeext conftest.$ac_ext
16792 fi
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16794 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16795   if test $gcc_cv_math_func_acosl = yes; then
16796
16797 cat >>confdefs.h <<_ACEOF
16798 #define HAVE_ACOSL 1
16799 _ACEOF
16800
16801   fi
16802
16803
16804
16805
16806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16807 $as_echo_n "checking for acoshf... " >&6; }
16808 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16809   $as_echo_n "(cached) " >&6
16810 else
16811   if test x$gcc_no_link = xyes; then
16812   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16813 fi
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h.  */
16816
16817 #ifdef HAVE_COMPLEX_H
16818 #include <complex.h>
16819 #endif
16820 #ifdef HAVE_MATH_H
16821 #include <math.h>
16822 #endif
16823
16824 int (*ptr)() = (int (*)())acoshf;
16825
16826 int
16827 main ()
16828 {
16829   return 0;
16830 }
16831
16832 _ACEOF
16833 if ac_fn_c_try_link "$LINENO"; then :
16834   gcc_cv_math_func_acoshf=yes
16835 else
16836   gcc_cv_math_func_acoshf=no
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext \
16839     conftest$ac_exeext conftest.$ac_ext
16840 fi
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16842 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16843   if test $gcc_cv_math_func_acoshf = yes; then
16844
16845 cat >>confdefs.h <<_ACEOF
16846 #define HAVE_ACOSHF 1
16847 _ACEOF
16848
16849   fi
16850
16851
16852
16853
16854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16855 $as_echo_n "checking for acosh... " >&6; }
16856 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16857   $as_echo_n "(cached) " >&6
16858 else
16859   if test x$gcc_no_link = xyes; then
16860   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16861 fi
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864
16865 #ifdef HAVE_COMPLEX_H
16866 #include <complex.h>
16867 #endif
16868 #ifdef HAVE_MATH_H
16869 #include <math.h>
16870 #endif
16871
16872 int (*ptr)() = (int (*)())acosh;
16873
16874 int
16875 main ()
16876 {
16877   return 0;
16878 }
16879
16880 _ACEOF
16881 if ac_fn_c_try_link "$LINENO"; then :
16882   gcc_cv_math_func_acosh=yes
16883 else
16884   gcc_cv_math_func_acosh=no
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext \
16887     conftest$ac_exeext conftest.$ac_ext
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16890 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16891   if test $gcc_cv_math_func_acosh = yes; then
16892
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_ACOSH 1
16895 _ACEOF
16896
16897   fi
16898
16899
16900
16901
16902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16903 $as_echo_n "checking for acoshl... " >&6; }
16904 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16905   $as_echo_n "(cached) " >&6
16906 else
16907   if test x$gcc_no_link = xyes; then
16908   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16909 fi
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h.  */
16912
16913 #ifdef HAVE_COMPLEX_H
16914 #include <complex.h>
16915 #endif
16916 #ifdef HAVE_MATH_H
16917 #include <math.h>
16918 #endif
16919
16920 int (*ptr)() = (int (*)())acoshl;
16921
16922 int
16923 main ()
16924 {
16925   return 0;
16926 }
16927
16928 _ACEOF
16929 if ac_fn_c_try_link "$LINENO"; then :
16930   gcc_cv_math_func_acoshl=yes
16931 else
16932   gcc_cv_math_func_acoshl=no
16933 fi
16934 rm -f core conftest.err conftest.$ac_objext \
16935     conftest$ac_exeext conftest.$ac_ext
16936 fi
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16938 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16939   if test $gcc_cv_math_func_acoshl = yes; then
16940
16941 cat >>confdefs.h <<_ACEOF
16942 #define HAVE_ACOSHL 1
16943 _ACEOF
16944
16945   fi
16946
16947
16948
16949
16950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16951 $as_echo_n "checking for asinf... " >&6; }
16952 if test "${gcc_cv_math_func_asinf+set}" = set; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   if test x$gcc_no_link = xyes; then
16956   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16957 fi
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h.  */
16960
16961 #ifdef HAVE_COMPLEX_H
16962 #include <complex.h>
16963 #endif
16964 #ifdef HAVE_MATH_H
16965 #include <math.h>
16966 #endif
16967
16968 int (*ptr)() = (int (*)())asinf;
16969
16970 int
16971 main ()
16972 {
16973   return 0;
16974 }
16975
16976 _ACEOF
16977 if ac_fn_c_try_link "$LINENO"; then :
16978   gcc_cv_math_func_asinf=yes
16979 else
16980   gcc_cv_math_func_asinf=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext \
16983     conftest$ac_exeext conftest.$ac_ext
16984 fi
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
16986 $as_echo "$gcc_cv_math_func_asinf" >&6; }
16987   if test $gcc_cv_math_func_asinf = yes; then
16988
16989 cat >>confdefs.h <<_ACEOF
16990 #define HAVE_ASINF 1
16991 _ACEOF
16992
16993   fi
16994
16995
16996
16997
16998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
16999 $as_echo_n "checking for asin... " >&6; }
17000 if test "${gcc_cv_math_func_asin+set}" = set; then :
17001   $as_echo_n "(cached) " >&6
17002 else
17003   if test x$gcc_no_link = xyes; then
17004   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17005 fi
17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h.  */
17008
17009 #ifdef HAVE_COMPLEX_H
17010 #include <complex.h>
17011 #endif
17012 #ifdef HAVE_MATH_H
17013 #include <math.h>
17014 #endif
17015
17016 int (*ptr)() = (int (*)())asin;
17017
17018 int
17019 main ()
17020 {
17021   return 0;
17022 }
17023
17024 _ACEOF
17025 if ac_fn_c_try_link "$LINENO"; then :
17026   gcc_cv_math_func_asin=yes
17027 else
17028   gcc_cv_math_func_asin=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext \
17031     conftest$ac_exeext conftest.$ac_ext
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17034 $as_echo "$gcc_cv_math_func_asin" >&6; }
17035   if test $gcc_cv_math_func_asin = yes; then
17036
17037 cat >>confdefs.h <<_ACEOF
17038 #define HAVE_ASIN 1
17039 _ACEOF
17040
17041   fi
17042
17043
17044
17045
17046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17047 $as_echo_n "checking for asinl... " >&6; }
17048 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17049   $as_echo_n "(cached) " >&6
17050 else
17051   if test x$gcc_no_link = xyes; then
17052   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17053 fi
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 #ifdef HAVE_COMPLEX_H
17058 #include <complex.h>
17059 #endif
17060 #ifdef HAVE_MATH_H
17061 #include <math.h>
17062 #endif
17063
17064 int (*ptr)() = (int (*)())asinl;
17065
17066 int
17067 main ()
17068 {
17069   return 0;
17070 }
17071
17072 _ACEOF
17073 if ac_fn_c_try_link "$LINENO"; then :
17074   gcc_cv_math_func_asinl=yes
17075 else
17076   gcc_cv_math_func_asinl=no
17077 fi
17078 rm -f core conftest.err conftest.$ac_objext \
17079     conftest$ac_exeext conftest.$ac_ext
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17082 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17083   if test $gcc_cv_math_func_asinl = yes; then
17084
17085 cat >>confdefs.h <<_ACEOF
17086 #define HAVE_ASINL 1
17087 _ACEOF
17088
17089   fi
17090
17091
17092
17093
17094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17095 $as_echo_n "checking for asinhf... " >&6; }
17096 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17097   $as_echo_n "(cached) " >&6
17098 else
17099   if test x$gcc_no_link = xyes; then
17100   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17101 fi
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h.  */
17104
17105 #ifdef HAVE_COMPLEX_H
17106 #include <complex.h>
17107 #endif
17108 #ifdef HAVE_MATH_H
17109 #include <math.h>
17110 #endif
17111
17112 int (*ptr)() = (int (*)())asinhf;
17113
17114 int
17115 main ()
17116 {
17117   return 0;
17118 }
17119
17120 _ACEOF
17121 if ac_fn_c_try_link "$LINENO"; then :
17122   gcc_cv_math_func_asinhf=yes
17123 else
17124   gcc_cv_math_func_asinhf=no
17125 fi
17126 rm -f core conftest.err conftest.$ac_objext \
17127     conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17130 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17131   if test $gcc_cv_math_func_asinhf = yes; then
17132
17133 cat >>confdefs.h <<_ACEOF
17134 #define HAVE_ASINHF 1
17135 _ACEOF
17136
17137   fi
17138
17139
17140
17141
17142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17143 $as_echo_n "checking for asinh... " >&6; }
17144 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17145   $as_echo_n "(cached) " >&6
17146 else
17147   if test x$gcc_no_link = xyes; then
17148   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17149 fi
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h.  */
17152
17153 #ifdef HAVE_COMPLEX_H
17154 #include <complex.h>
17155 #endif
17156 #ifdef HAVE_MATH_H
17157 #include <math.h>
17158 #endif
17159
17160 int (*ptr)() = (int (*)())asinh;
17161
17162 int
17163 main ()
17164 {
17165   return 0;
17166 }
17167
17168 _ACEOF
17169 if ac_fn_c_try_link "$LINENO"; then :
17170   gcc_cv_math_func_asinh=yes
17171 else
17172   gcc_cv_math_func_asinh=no
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext \
17175     conftest$ac_exeext conftest.$ac_ext
17176 fi
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17178 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17179   if test $gcc_cv_math_func_asinh = yes; then
17180
17181 cat >>confdefs.h <<_ACEOF
17182 #define HAVE_ASINH 1
17183 _ACEOF
17184
17185   fi
17186
17187
17188
17189
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17191 $as_echo_n "checking for asinhl... " >&6; }
17192 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17193   $as_echo_n "(cached) " >&6
17194 else
17195   if test x$gcc_no_link = xyes; then
17196   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17197 fi
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h.  */
17200
17201 #ifdef HAVE_COMPLEX_H
17202 #include <complex.h>
17203 #endif
17204 #ifdef HAVE_MATH_H
17205 #include <math.h>
17206 #endif
17207
17208 int (*ptr)() = (int (*)())asinhl;
17209
17210 int
17211 main ()
17212 {
17213   return 0;
17214 }
17215
17216 _ACEOF
17217 if ac_fn_c_try_link "$LINENO"; then :
17218   gcc_cv_math_func_asinhl=yes
17219 else
17220   gcc_cv_math_func_asinhl=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext \
17223     conftest$ac_exeext conftest.$ac_ext
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17226 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17227   if test $gcc_cv_math_func_asinhl = yes; then
17228
17229 cat >>confdefs.h <<_ACEOF
17230 #define HAVE_ASINHL 1
17231 _ACEOF
17232
17233   fi
17234
17235
17236
17237
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17239 $as_echo_n "checking for atan2f... " >&6; }
17240 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17241   $as_echo_n "(cached) " >&6
17242 else
17243   if test x$gcc_no_link = xyes; then
17244   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17245 fi
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248
17249 #ifdef HAVE_COMPLEX_H
17250 #include <complex.h>
17251 #endif
17252 #ifdef HAVE_MATH_H
17253 #include <math.h>
17254 #endif
17255
17256 int (*ptr)() = (int (*)())atan2f;
17257
17258 int
17259 main ()
17260 {
17261   return 0;
17262 }
17263
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266   gcc_cv_math_func_atan2f=yes
17267 else
17268   gcc_cv_math_func_atan2f=no
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271     conftest$ac_exeext conftest.$ac_ext
17272 fi
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17274 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17275   if test $gcc_cv_math_func_atan2f = yes; then
17276
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_ATAN2F 1
17279 _ACEOF
17280
17281   fi
17282
17283
17284
17285
17286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17287 $as_echo_n "checking for atan2... " >&6; }
17288 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17289   $as_echo_n "(cached) " >&6
17290 else
17291   if test x$gcc_no_link = xyes; then
17292   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17293 fi
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h.  */
17296
17297 #ifdef HAVE_COMPLEX_H
17298 #include <complex.h>
17299 #endif
17300 #ifdef HAVE_MATH_H
17301 #include <math.h>
17302 #endif
17303
17304 int (*ptr)() = (int (*)())atan2;
17305
17306 int
17307 main ()
17308 {
17309   return 0;
17310 }
17311
17312 _ACEOF
17313 if ac_fn_c_try_link "$LINENO"; then :
17314   gcc_cv_math_func_atan2=yes
17315 else
17316   gcc_cv_math_func_atan2=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext \
17319     conftest$ac_exeext conftest.$ac_ext
17320 fi
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17322 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17323   if test $gcc_cv_math_func_atan2 = yes; then
17324
17325 cat >>confdefs.h <<_ACEOF
17326 #define HAVE_ATAN2 1
17327 _ACEOF
17328
17329   fi
17330
17331
17332
17333
17334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17335 $as_echo_n "checking for atan2l... " >&6; }
17336 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339   if test x$gcc_no_link = xyes; then
17340   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17341 fi
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h.  */
17344
17345 #ifdef HAVE_COMPLEX_H
17346 #include <complex.h>
17347 #endif
17348 #ifdef HAVE_MATH_H
17349 #include <math.h>
17350 #endif
17351
17352 int (*ptr)() = (int (*)())atan2l;
17353
17354 int
17355 main ()
17356 {
17357   return 0;
17358 }
17359
17360 _ACEOF
17361 if ac_fn_c_try_link "$LINENO"; then :
17362   gcc_cv_math_func_atan2l=yes
17363 else
17364   gcc_cv_math_func_atan2l=no
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext \
17367     conftest$ac_exeext conftest.$ac_ext
17368 fi
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17370 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17371   if test $gcc_cv_math_func_atan2l = yes; then
17372
17373 cat >>confdefs.h <<_ACEOF
17374 #define HAVE_ATAN2L 1
17375 _ACEOF
17376
17377   fi
17378
17379
17380
17381
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17383 $as_echo_n "checking for atanf... " >&6; }
17384 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17385   $as_echo_n "(cached) " >&6
17386 else
17387   if test x$gcc_no_link = xyes; then
17388   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17389 fi
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h.  */
17392
17393 #ifdef HAVE_COMPLEX_H
17394 #include <complex.h>
17395 #endif
17396 #ifdef HAVE_MATH_H
17397 #include <math.h>
17398 #endif
17399
17400 int (*ptr)() = (int (*)())atanf;
17401
17402 int
17403 main ()
17404 {
17405   return 0;
17406 }
17407
17408 _ACEOF
17409 if ac_fn_c_try_link "$LINENO"; then :
17410   gcc_cv_math_func_atanf=yes
17411 else
17412   gcc_cv_math_func_atanf=no
17413 fi
17414 rm -f core conftest.err conftest.$ac_objext \
17415     conftest$ac_exeext conftest.$ac_ext
17416 fi
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17418 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17419   if test $gcc_cv_math_func_atanf = yes; then
17420
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_ATANF 1
17423 _ACEOF
17424
17425   fi
17426
17427
17428
17429
17430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17431 $as_echo_n "checking for atan... " >&6; }
17432 if test "${gcc_cv_math_func_atan+set}" = set; then :
17433   $as_echo_n "(cached) " >&6
17434 else
17435   if test x$gcc_no_link = xyes; then
17436   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17437 fi
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h.  */
17440
17441 #ifdef HAVE_COMPLEX_H
17442 #include <complex.h>
17443 #endif
17444 #ifdef HAVE_MATH_H
17445 #include <math.h>
17446 #endif
17447
17448 int (*ptr)() = (int (*)())atan;
17449
17450 int
17451 main ()
17452 {
17453   return 0;
17454 }
17455
17456 _ACEOF
17457 if ac_fn_c_try_link "$LINENO"; then :
17458   gcc_cv_math_func_atan=yes
17459 else
17460   gcc_cv_math_func_atan=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext \
17463     conftest$ac_exeext conftest.$ac_ext
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17466 $as_echo "$gcc_cv_math_func_atan" >&6; }
17467   if test $gcc_cv_math_func_atan = yes; then
17468
17469 cat >>confdefs.h <<_ACEOF
17470 #define HAVE_ATAN 1
17471 _ACEOF
17472
17473   fi
17474
17475
17476
17477
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17479 $as_echo_n "checking for atanl... " >&6; }
17480 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17481   $as_echo_n "(cached) " >&6
17482 else
17483   if test x$gcc_no_link = xyes; then
17484   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17485 fi
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h.  */
17488
17489 #ifdef HAVE_COMPLEX_H
17490 #include <complex.h>
17491 #endif
17492 #ifdef HAVE_MATH_H
17493 #include <math.h>
17494 #endif
17495
17496 int (*ptr)() = (int (*)())atanl;
17497
17498 int
17499 main ()
17500 {
17501   return 0;
17502 }
17503
17504 _ACEOF
17505 if ac_fn_c_try_link "$LINENO"; then :
17506   gcc_cv_math_func_atanl=yes
17507 else
17508   gcc_cv_math_func_atanl=no
17509 fi
17510 rm -f core conftest.err conftest.$ac_objext \
17511     conftest$ac_exeext conftest.$ac_ext
17512 fi
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17514 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17515   if test $gcc_cv_math_func_atanl = yes; then
17516
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_ATANL 1
17519 _ACEOF
17520
17521   fi
17522
17523
17524
17525
17526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17527 $as_echo_n "checking for atanhf... " >&6; }
17528 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17529   $as_echo_n "(cached) " >&6
17530 else
17531   if test x$gcc_no_link = xyes; then
17532   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17533 fi
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536
17537 #ifdef HAVE_COMPLEX_H
17538 #include <complex.h>
17539 #endif
17540 #ifdef HAVE_MATH_H
17541 #include <math.h>
17542 #endif
17543
17544 int (*ptr)() = (int (*)())atanhf;
17545
17546 int
17547 main ()
17548 {
17549   return 0;
17550 }
17551
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"; then :
17554   gcc_cv_math_func_atanhf=yes
17555 else
17556   gcc_cv_math_func_atanhf=no
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext \
17559     conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17562 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17563   if test $gcc_cv_math_func_atanhf = yes; then
17564
17565 cat >>confdefs.h <<_ACEOF
17566 #define HAVE_ATANHF 1
17567 _ACEOF
17568
17569   fi
17570
17571
17572
17573
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17575 $as_echo_n "checking for atanh... " >&6; }
17576 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17577   $as_echo_n "(cached) " >&6
17578 else
17579   if test x$gcc_no_link = xyes; then
17580   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17581 fi
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h.  */
17584
17585 #ifdef HAVE_COMPLEX_H
17586 #include <complex.h>
17587 #endif
17588 #ifdef HAVE_MATH_H
17589 #include <math.h>
17590 #endif
17591
17592 int (*ptr)() = (int (*)())atanh;
17593
17594 int
17595 main ()
17596 {
17597   return 0;
17598 }
17599
17600 _ACEOF
17601 if ac_fn_c_try_link "$LINENO"; then :
17602   gcc_cv_math_func_atanh=yes
17603 else
17604   gcc_cv_math_func_atanh=no
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext \
17607     conftest$ac_exeext conftest.$ac_ext
17608 fi
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17610 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17611   if test $gcc_cv_math_func_atanh = yes; then
17612
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_ATANH 1
17615 _ACEOF
17616
17617   fi
17618
17619
17620
17621
17622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17623 $as_echo_n "checking for atanhl... " >&6; }
17624 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17625   $as_echo_n "(cached) " >&6
17626 else
17627   if test x$gcc_no_link = xyes; then
17628   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17629 fi
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h.  */
17632
17633 #ifdef HAVE_COMPLEX_H
17634 #include <complex.h>
17635 #endif
17636 #ifdef HAVE_MATH_H
17637 #include <math.h>
17638 #endif
17639
17640 int (*ptr)() = (int (*)())atanhl;
17641
17642 int
17643 main ()
17644 {
17645   return 0;
17646 }
17647
17648 _ACEOF
17649 if ac_fn_c_try_link "$LINENO"; then :
17650   gcc_cv_math_func_atanhl=yes
17651 else
17652   gcc_cv_math_func_atanhl=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext \
17655     conftest$ac_exeext conftest.$ac_ext
17656 fi
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17658 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17659   if test $gcc_cv_math_func_atanhl = yes; then
17660
17661 cat >>confdefs.h <<_ACEOF
17662 #define HAVE_ATANHL 1
17663 _ACEOF
17664
17665   fi
17666
17667
17668
17669
17670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17671 $as_echo_n "checking for cargf... " >&6; }
17672 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17673   $as_echo_n "(cached) " >&6
17674 else
17675   if test x$gcc_no_link = xyes; then
17676   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17677 fi
17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h.  */
17680
17681 #ifdef HAVE_COMPLEX_H
17682 #include <complex.h>
17683 #endif
17684 #ifdef HAVE_MATH_H
17685 #include <math.h>
17686 #endif
17687
17688 int (*ptr)() = (int (*)())cargf;
17689
17690 int
17691 main ()
17692 {
17693   return 0;
17694 }
17695
17696 _ACEOF
17697 if ac_fn_c_try_link "$LINENO"; then :
17698   gcc_cv_math_func_cargf=yes
17699 else
17700   gcc_cv_math_func_cargf=no
17701 fi
17702 rm -f core conftest.err conftest.$ac_objext \
17703     conftest$ac_exeext conftest.$ac_ext
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17706 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17707   if test $gcc_cv_math_func_cargf = yes; then
17708
17709 cat >>confdefs.h <<_ACEOF
17710 #define HAVE_CARGF 1
17711 _ACEOF
17712
17713   fi
17714
17715
17716
17717
17718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17719 $as_echo_n "checking for carg... " >&6; }
17720 if test "${gcc_cv_math_func_carg+set}" = set; then :
17721   $as_echo_n "(cached) " >&6
17722 else
17723   if test x$gcc_no_link = xyes; then
17724   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17725 fi
17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h.  */
17728
17729 #ifdef HAVE_COMPLEX_H
17730 #include <complex.h>
17731 #endif
17732 #ifdef HAVE_MATH_H
17733 #include <math.h>
17734 #endif
17735
17736 int (*ptr)() = (int (*)())carg;
17737
17738 int
17739 main ()
17740 {
17741   return 0;
17742 }
17743
17744 _ACEOF
17745 if ac_fn_c_try_link "$LINENO"; then :
17746   gcc_cv_math_func_carg=yes
17747 else
17748   gcc_cv_math_func_carg=no
17749 fi
17750 rm -f core conftest.err conftest.$ac_objext \
17751     conftest$ac_exeext conftest.$ac_ext
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17754 $as_echo "$gcc_cv_math_func_carg" >&6; }
17755   if test $gcc_cv_math_func_carg = yes; then
17756
17757 cat >>confdefs.h <<_ACEOF
17758 #define HAVE_CARG 1
17759 _ACEOF
17760
17761   fi
17762
17763
17764
17765
17766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17767 $as_echo_n "checking for cargl... " >&6; }
17768 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17769   $as_echo_n "(cached) " >&6
17770 else
17771   if test x$gcc_no_link = xyes; then
17772   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17773 fi
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h.  */
17776
17777 #ifdef HAVE_COMPLEX_H
17778 #include <complex.h>
17779 #endif
17780 #ifdef HAVE_MATH_H
17781 #include <math.h>
17782 #endif
17783
17784 int (*ptr)() = (int (*)())cargl;
17785
17786 int
17787 main ()
17788 {
17789   return 0;
17790 }
17791
17792 _ACEOF
17793 if ac_fn_c_try_link "$LINENO"; then :
17794   gcc_cv_math_func_cargl=yes
17795 else
17796   gcc_cv_math_func_cargl=no
17797 fi
17798 rm -f core conftest.err conftest.$ac_objext \
17799     conftest$ac_exeext conftest.$ac_ext
17800 fi
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17802 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17803   if test $gcc_cv_math_func_cargl = yes; then
17804
17805 cat >>confdefs.h <<_ACEOF
17806 #define HAVE_CARGL 1
17807 _ACEOF
17808
17809   fi
17810
17811
17812
17813
17814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17815 $as_echo_n "checking for ceilf... " >&6; }
17816 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17817   $as_echo_n "(cached) " >&6
17818 else
17819   if test x$gcc_no_link = xyes; then
17820   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17821 fi
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h.  */
17824
17825 #ifdef HAVE_COMPLEX_H
17826 #include <complex.h>
17827 #endif
17828 #ifdef HAVE_MATH_H
17829 #include <math.h>
17830 #endif
17831
17832 int (*ptr)() = (int (*)())ceilf;
17833
17834 int
17835 main ()
17836 {
17837   return 0;
17838 }
17839
17840 _ACEOF
17841 if ac_fn_c_try_link "$LINENO"; then :
17842   gcc_cv_math_func_ceilf=yes
17843 else
17844   gcc_cv_math_func_ceilf=no
17845 fi
17846 rm -f core conftest.err conftest.$ac_objext \
17847     conftest$ac_exeext conftest.$ac_ext
17848 fi
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17850 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17851   if test $gcc_cv_math_func_ceilf = yes; then
17852
17853 cat >>confdefs.h <<_ACEOF
17854 #define HAVE_CEILF 1
17855 _ACEOF
17856
17857   fi
17858
17859
17860
17861
17862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17863 $as_echo_n "checking for ceil... " >&6; }
17864 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17865   $as_echo_n "(cached) " >&6
17866 else
17867   if test x$gcc_no_link = xyes; then
17868   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17869 fi
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h.  */
17872
17873 #ifdef HAVE_COMPLEX_H
17874 #include <complex.h>
17875 #endif
17876 #ifdef HAVE_MATH_H
17877 #include <math.h>
17878 #endif
17879
17880 int (*ptr)() = (int (*)())ceil;
17881
17882 int
17883 main ()
17884 {
17885   return 0;
17886 }
17887
17888 _ACEOF
17889 if ac_fn_c_try_link "$LINENO"; then :
17890   gcc_cv_math_func_ceil=yes
17891 else
17892   gcc_cv_math_func_ceil=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext \
17895     conftest$ac_exeext conftest.$ac_ext
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17898 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17899   if test $gcc_cv_math_func_ceil = yes; then
17900
17901 cat >>confdefs.h <<_ACEOF
17902 #define HAVE_CEIL 1
17903 _ACEOF
17904
17905   fi
17906
17907
17908
17909
17910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17911 $as_echo_n "checking for ceill... " >&6; }
17912 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17913   $as_echo_n "(cached) " >&6
17914 else
17915   if test x$gcc_no_link = xyes; then
17916   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17917 fi
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920
17921 #ifdef HAVE_COMPLEX_H
17922 #include <complex.h>
17923 #endif
17924 #ifdef HAVE_MATH_H
17925 #include <math.h>
17926 #endif
17927
17928 int (*ptr)() = (int (*)())ceill;
17929
17930 int
17931 main ()
17932 {
17933   return 0;
17934 }
17935
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938   gcc_cv_math_func_ceill=yes
17939 else
17940   gcc_cv_math_func_ceill=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943     conftest$ac_exeext conftest.$ac_ext
17944 fi
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17946 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17947   if test $gcc_cv_math_func_ceill = yes; then
17948
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_CEILL 1
17951 _ACEOF
17952
17953   fi
17954
17955
17956
17957
17958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17959 $as_echo_n "checking for copysignf... " >&6; }
17960 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
17961   $as_echo_n "(cached) " >&6
17962 else
17963   if test x$gcc_no_link = xyes; then
17964   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17965 fi
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h.  */
17968
17969 #ifdef HAVE_COMPLEX_H
17970 #include <complex.h>
17971 #endif
17972 #ifdef HAVE_MATH_H
17973 #include <math.h>
17974 #endif
17975
17976 int (*ptr)() = (int (*)())copysignf;
17977
17978 int
17979 main ()
17980 {
17981   return 0;
17982 }
17983
17984 _ACEOF
17985 if ac_fn_c_try_link "$LINENO"; then :
17986   gcc_cv_math_func_copysignf=yes
17987 else
17988   gcc_cv_math_func_copysignf=no
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext \
17991     conftest$ac_exeext conftest.$ac_ext
17992 fi
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
17994 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
17995   if test $gcc_cv_math_func_copysignf = yes; then
17996
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_COPYSIGNF 1
17999 _ACEOF
18000
18001   fi
18002
18003
18004
18005
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18007 $as_echo_n "checking for copysign... " >&6; }
18008 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18009   $as_echo_n "(cached) " >&6
18010 else
18011   if test x$gcc_no_link = xyes; then
18012   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18013 fi
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h.  */
18016
18017 #ifdef HAVE_COMPLEX_H
18018 #include <complex.h>
18019 #endif
18020 #ifdef HAVE_MATH_H
18021 #include <math.h>
18022 #endif
18023
18024 int (*ptr)() = (int (*)())copysign;
18025
18026 int
18027 main ()
18028 {
18029   return 0;
18030 }
18031
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"; then :
18034   gcc_cv_math_func_copysign=yes
18035 else
18036   gcc_cv_math_func_copysign=no
18037 fi
18038 rm -f core conftest.err conftest.$ac_objext \
18039     conftest$ac_exeext conftest.$ac_ext
18040 fi
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18042 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18043   if test $gcc_cv_math_func_copysign = yes; then
18044
18045 cat >>confdefs.h <<_ACEOF
18046 #define HAVE_COPYSIGN 1
18047 _ACEOF
18048
18049   fi
18050
18051
18052
18053
18054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18055 $as_echo_n "checking for copysignl... " >&6; }
18056 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18057   $as_echo_n "(cached) " >&6
18058 else
18059   if test x$gcc_no_link = xyes; then
18060   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18061 fi
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h.  */
18064
18065 #ifdef HAVE_COMPLEX_H
18066 #include <complex.h>
18067 #endif
18068 #ifdef HAVE_MATH_H
18069 #include <math.h>
18070 #endif
18071
18072 int (*ptr)() = (int (*)())copysignl;
18073
18074 int
18075 main ()
18076 {
18077   return 0;
18078 }
18079
18080 _ACEOF
18081 if ac_fn_c_try_link "$LINENO"; then :
18082   gcc_cv_math_func_copysignl=yes
18083 else
18084   gcc_cv_math_func_copysignl=no
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext \
18087     conftest$ac_exeext conftest.$ac_ext
18088 fi
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18090 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18091   if test $gcc_cv_math_func_copysignl = yes; then
18092
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_COPYSIGNL 1
18095 _ACEOF
18096
18097   fi
18098
18099
18100
18101
18102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18103 $as_echo_n "checking for cosf... " >&6; }
18104 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107   if test x$gcc_no_link = xyes; then
18108   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18109 fi
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h.  */
18112
18113 #ifdef HAVE_COMPLEX_H
18114 #include <complex.h>
18115 #endif
18116 #ifdef HAVE_MATH_H
18117 #include <math.h>
18118 #endif
18119
18120 int (*ptr)() = (int (*)())cosf;
18121
18122 int
18123 main ()
18124 {
18125   return 0;
18126 }
18127
18128 _ACEOF
18129 if ac_fn_c_try_link "$LINENO"; then :
18130   gcc_cv_math_func_cosf=yes
18131 else
18132   gcc_cv_math_func_cosf=no
18133 fi
18134 rm -f core conftest.err conftest.$ac_objext \
18135     conftest$ac_exeext conftest.$ac_ext
18136 fi
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18138 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18139   if test $gcc_cv_math_func_cosf = yes; then
18140
18141 cat >>confdefs.h <<_ACEOF
18142 #define HAVE_COSF 1
18143 _ACEOF
18144
18145   fi
18146
18147
18148
18149
18150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18151 $as_echo_n "checking for cos... " >&6; }
18152 if test "${gcc_cv_math_func_cos+set}" = set; then :
18153   $as_echo_n "(cached) " >&6
18154 else
18155   if test x$gcc_no_link = xyes; then
18156   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18157 fi
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h.  */
18160
18161 #ifdef HAVE_COMPLEX_H
18162 #include <complex.h>
18163 #endif
18164 #ifdef HAVE_MATH_H
18165 #include <math.h>
18166 #endif
18167
18168 int (*ptr)() = (int (*)())cos;
18169
18170 int
18171 main ()
18172 {
18173   return 0;
18174 }
18175
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"; then :
18178   gcc_cv_math_func_cos=yes
18179 else
18180   gcc_cv_math_func_cos=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext \
18183     conftest$ac_exeext conftest.$ac_ext
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18186 $as_echo "$gcc_cv_math_func_cos" >&6; }
18187   if test $gcc_cv_math_func_cos = yes; then
18188
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_COS 1
18191 _ACEOF
18192
18193   fi
18194
18195
18196
18197
18198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18199 $as_echo_n "checking for cosl... " >&6; }
18200 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18201   $as_echo_n "(cached) " >&6
18202 else
18203   if test x$gcc_no_link = xyes; then
18204   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18205 fi
18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h.  */
18208
18209 #ifdef HAVE_COMPLEX_H
18210 #include <complex.h>
18211 #endif
18212 #ifdef HAVE_MATH_H
18213 #include <math.h>
18214 #endif
18215
18216 int (*ptr)() = (int (*)())cosl;
18217
18218 int
18219 main ()
18220 {
18221   return 0;
18222 }
18223
18224 _ACEOF
18225 if ac_fn_c_try_link "$LINENO"; then :
18226   gcc_cv_math_func_cosl=yes
18227 else
18228   gcc_cv_math_func_cosl=no
18229 fi
18230 rm -f core conftest.err conftest.$ac_objext \
18231     conftest$ac_exeext conftest.$ac_ext
18232 fi
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18234 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18235   if test $gcc_cv_math_func_cosl = yes; then
18236
18237 cat >>confdefs.h <<_ACEOF
18238 #define HAVE_COSL 1
18239 _ACEOF
18240
18241   fi
18242
18243
18244
18245
18246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18247 $as_echo_n "checking for ccosf... " >&6; }
18248 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18249   $as_echo_n "(cached) " >&6
18250 else
18251   if test x$gcc_no_link = xyes; then
18252   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18253 fi
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h.  */
18256
18257 #ifdef HAVE_COMPLEX_H
18258 #include <complex.h>
18259 #endif
18260 #ifdef HAVE_MATH_H
18261 #include <math.h>
18262 #endif
18263
18264 int (*ptr)() = (int (*)())ccosf;
18265
18266 int
18267 main ()
18268 {
18269   return 0;
18270 }
18271
18272 _ACEOF
18273 if ac_fn_c_try_link "$LINENO"; then :
18274   gcc_cv_math_func_ccosf=yes
18275 else
18276   gcc_cv_math_func_ccosf=no
18277 fi
18278 rm -f core conftest.err conftest.$ac_objext \
18279     conftest$ac_exeext conftest.$ac_ext
18280 fi
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18282 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18283   if test $gcc_cv_math_func_ccosf = yes; then
18284
18285 cat >>confdefs.h <<_ACEOF
18286 #define HAVE_CCOSF 1
18287 _ACEOF
18288
18289   fi
18290
18291
18292
18293
18294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18295 $as_echo_n "checking for ccos... " >&6; }
18296 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18297   $as_echo_n "(cached) " >&6
18298 else
18299   if test x$gcc_no_link = xyes; then
18300   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18301 fi
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h.  */
18304
18305 #ifdef HAVE_COMPLEX_H
18306 #include <complex.h>
18307 #endif
18308 #ifdef HAVE_MATH_H
18309 #include <math.h>
18310 #endif
18311
18312 int (*ptr)() = (int (*)())ccos;
18313
18314 int
18315 main ()
18316 {
18317   return 0;
18318 }
18319
18320 _ACEOF
18321 if ac_fn_c_try_link "$LINENO"; then :
18322   gcc_cv_math_func_ccos=yes
18323 else
18324   gcc_cv_math_func_ccos=no
18325 fi
18326 rm -f core conftest.err conftest.$ac_objext \
18327     conftest$ac_exeext conftest.$ac_ext
18328 fi
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18330 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18331   if test $gcc_cv_math_func_ccos = yes; then
18332
18333 cat >>confdefs.h <<_ACEOF
18334 #define HAVE_CCOS 1
18335 _ACEOF
18336
18337   fi
18338
18339
18340
18341
18342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18343 $as_echo_n "checking for ccosl... " >&6; }
18344 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18345   $as_echo_n "(cached) " >&6
18346 else
18347   if test x$gcc_no_link = xyes; then
18348   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18349 fi
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h.  */
18352
18353 #ifdef HAVE_COMPLEX_H
18354 #include <complex.h>
18355 #endif
18356 #ifdef HAVE_MATH_H
18357 #include <math.h>
18358 #endif
18359
18360 int (*ptr)() = (int (*)())ccosl;
18361
18362 int
18363 main ()
18364 {
18365   return 0;
18366 }
18367
18368 _ACEOF
18369 if ac_fn_c_try_link "$LINENO"; then :
18370   gcc_cv_math_func_ccosl=yes
18371 else
18372   gcc_cv_math_func_ccosl=no
18373 fi
18374 rm -f core conftest.err conftest.$ac_objext \
18375     conftest$ac_exeext conftest.$ac_ext
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18378 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18379   if test $gcc_cv_math_func_ccosl = yes; then
18380
18381 cat >>confdefs.h <<_ACEOF
18382 #define HAVE_CCOSL 1
18383 _ACEOF
18384
18385   fi
18386
18387
18388
18389
18390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18391 $as_echo_n "checking for coshf... " >&6; }
18392 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18393   $as_echo_n "(cached) " >&6
18394 else
18395   if test x$gcc_no_link = xyes; then
18396   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18397 fi
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400
18401 #ifdef HAVE_COMPLEX_H
18402 #include <complex.h>
18403 #endif
18404 #ifdef HAVE_MATH_H
18405 #include <math.h>
18406 #endif
18407
18408 int (*ptr)() = (int (*)())coshf;
18409
18410 int
18411 main ()
18412 {
18413   return 0;
18414 }
18415
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"; then :
18418   gcc_cv_math_func_coshf=yes
18419 else
18420   gcc_cv_math_func_coshf=no
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext \
18423     conftest$ac_exeext conftest.$ac_ext
18424 fi
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18426 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18427   if test $gcc_cv_math_func_coshf = yes; then
18428
18429 cat >>confdefs.h <<_ACEOF
18430 #define HAVE_COSHF 1
18431 _ACEOF
18432
18433   fi
18434
18435
18436
18437
18438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18439 $as_echo_n "checking for cosh... " >&6; }
18440 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18441   $as_echo_n "(cached) " >&6
18442 else
18443   if test x$gcc_no_link = xyes; then
18444   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18445 fi
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h.  */
18448
18449 #ifdef HAVE_COMPLEX_H
18450 #include <complex.h>
18451 #endif
18452 #ifdef HAVE_MATH_H
18453 #include <math.h>
18454 #endif
18455
18456 int (*ptr)() = (int (*)())cosh;
18457
18458 int
18459 main ()
18460 {
18461   return 0;
18462 }
18463
18464 _ACEOF
18465 if ac_fn_c_try_link "$LINENO"; then :
18466   gcc_cv_math_func_cosh=yes
18467 else
18468   gcc_cv_math_func_cosh=no
18469 fi
18470 rm -f core conftest.err conftest.$ac_objext \
18471     conftest$ac_exeext conftest.$ac_ext
18472 fi
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18474 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18475   if test $gcc_cv_math_func_cosh = yes; then
18476
18477 cat >>confdefs.h <<_ACEOF
18478 #define HAVE_COSH 1
18479 _ACEOF
18480
18481   fi
18482
18483
18484
18485
18486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18487 $as_echo_n "checking for coshl... " >&6; }
18488 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18489   $as_echo_n "(cached) " >&6
18490 else
18491   if test x$gcc_no_link = xyes; then
18492   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18493 fi
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h.  */
18496
18497 #ifdef HAVE_COMPLEX_H
18498 #include <complex.h>
18499 #endif
18500 #ifdef HAVE_MATH_H
18501 #include <math.h>
18502 #endif
18503
18504 int (*ptr)() = (int (*)())coshl;
18505
18506 int
18507 main ()
18508 {
18509   return 0;
18510 }
18511
18512 _ACEOF
18513 if ac_fn_c_try_link "$LINENO"; then :
18514   gcc_cv_math_func_coshl=yes
18515 else
18516   gcc_cv_math_func_coshl=no
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext \
18519     conftest$ac_exeext conftest.$ac_ext
18520 fi
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18522 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18523   if test $gcc_cv_math_func_coshl = yes; then
18524
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_COSHL 1
18527 _ACEOF
18528
18529   fi
18530
18531
18532
18533
18534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18535 $as_echo_n "checking for ccoshf... " >&6; }
18536 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18537   $as_echo_n "(cached) " >&6
18538 else
18539   if test x$gcc_no_link = xyes; then
18540   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18541 fi
18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543 /* end confdefs.h.  */
18544
18545 #ifdef HAVE_COMPLEX_H
18546 #include <complex.h>
18547 #endif
18548 #ifdef HAVE_MATH_H
18549 #include <math.h>
18550 #endif
18551
18552 int (*ptr)() = (int (*)())ccoshf;
18553
18554 int
18555 main ()
18556 {
18557   return 0;
18558 }
18559
18560 _ACEOF
18561 if ac_fn_c_try_link "$LINENO"; then :
18562   gcc_cv_math_func_ccoshf=yes
18563 else
18564   gcc_cv_math_func_ccoshf=no
18565 fi
18566 rm -f core conftest.err conftest.$ac_objext \
18567     conftest$ac_exeext conftest.$ac_ext
18568 fi
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18570 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18571   if test $gcc_cv_math_func_ccoshf = yes; then
18572
18573 cat >>confdefs.h <<_ACEOF
18574 #define HAVE_CCOSHF 1
18575 _ACEOF
18576
18577   fi
18578
18579
18580
18581
18582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18583 $as_echo_n "checking for ccosh... " >&6; }
18584 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18585   $as_echo_n "(cached) " >&6
18586 else
18587   if test x$gcc_no_link = xyes; then
18588   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18589 fi
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h.  */
18592
18593 #ifdef HAVE_COMPLEX_H
18594 #include <complex.h>
18595 #endif
18596 #ifdef HAVE_MATH_H
18597 #include <math.h>
18598 #endif
18599
18600 int (*ptr)() = (int (*)())ccosh;
18601
18602 int
18603 main ()
18604 {
18605   return 0;
18606 }
18607
18608 _ACEOF
18609 if ac_fn_c_try_link "$LINENO"; then :
18610   gcc_cv_math_func_ccosh=yes
18611 else
18612   gcc_cv_math_func_ccosh=no
18613 fi
18614 rm -f core conftest.err conftest.$ac_objext \
18615     conftest$ac_exeext conftest.$ac_ext
18616 fi
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18618 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18619   if test $gcc_cv_math_func_ccosh = yes; then
18620
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_CCOSH 1
18623 _ACEOF
18624
18625   fi
18626
18627
18628
18629
18630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18631 $as_echo_n "checking for ccoshl... " >&6; }
18632 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18633   $as_echo_n "(cached) " >&6
18634 else
18635   if test x$gcc_no_link = xyes; then
18636   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18637 fi
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h.  */
18640
18641 #ifdef HAVE_COMPLEX_H
18642 #include <complex.h>
18643 #endif
18644 #ifdef HAVE_MATH_H
18645 #include <math.h>
18646 #endif
18647
18648 int (*ptr)() = (int (*)())ccoshl;
18649
18650 int
18651 main ()
18652 {
18653   return 0;
18654 }
18655
18656 _ACEOF
18657 if ac_fn_c_try_link "$LINENO"; then :
18658   gcc_cv_math_func_ccoshl=yes
18659 else
18660   gcc_cv_math_func_ccoshl=no
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext \
18663     conftest$ac_exeext conftest.$ac_ext
18664 fi
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18666 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18667   if test $gcc_cv_math_func_ccoshl = yes; then
18668
18669 cat >>confdefs.h <<_ACEOF
18670 #define HAVE_CCOSHL 1
18671 _ACEOF
18672
18673   fi
18674
18675
18676
18677
18678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18679 $as_echo_n "checking for expf... " >&6; }
18680 if test "${gcc_cv_math_func_expf+set}" = set; then :
18681   $as_echo_n "(cached) " >&6
18682 else
18683   if test x$gcc_no_link = xyes; then
18684   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18685 fi
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h.  */
18688
18689 #ifdef HAVE_COMPLEX_H
18690 #include <complex.h>
18691 #endif
18692 #ifdef HAVE_MATH_H
18693 #include <math.h>
18694 #endif
18695
18696 int (*ptr)() = (int (*)())expf;
18697
18698 int
18699 main ()
18700 {
18701   return 0;
18702 }
18703
18704 _ACEOF
18705 if ac_fn_c_try_link "$LINENO"; then :
18706   gcc_cv_math_func_expf=yes
18707 else
18708   gcc_cv_math_func_expf=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext \
18711     conftest$ac_exeext conftest.$ac_ext
18712 fi
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18714 $as_echo "$gcc_cv_math_func_expf" >&6; }
18715   if test $gcc_cv_math_func_expf = yes; then
18716
18717 cat >>confdefs.h <<_ACEOF
18718 #define HAVE_EXPF 1
18719 _ACEOF
18720
18721   fi
18722
18723
18724
18725
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18727 $as_echo_n "checking for exp... " >&6; }
18728 if test "${gcc_cv_math_func_exp+set}" = set; then :
18729   $as_echo_n "(cached) " >&6
18730 else
18731   if test x$gcc_no_link = xyes; then
18732   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18733 fi
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h.  */
18736
18737 #ifdef HAVE_COMPLEX_H
18738 #include <complex.h>
18739 #endif
18740 #ifdef HAVE_MATH_H
18741 #include <math.h>
18742 #endif
18743
18744 int (*ptr)() = (int (*)())exp;
18745
18746 int
18747 main ()
18748 {
18749   return 0;
18750 }
18751
18752 _ACEOF
18753 if ac_fn_c_try_link "$LINENO"; then :
18754   gcc_cv_math_func_exp=yes
18755 else
18756   gcc_cv_math_func_exp=no
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext \
18759     conftest$ac_exeext conftest.$ac_ext
18760 fi
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18762 $as_echo "$gcc_cv_math_func_exp" >&6; }
18763   if test $gcc_cv_math_func_exp = yes; then
18764
18765 cat >>confdefs.h <<_ACEOF
18766 #define HAVE_EXP 1
18767 _ACEOF
18768
18769   fi
18770
18771
18772
18773
18774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18775 $as_echo_n "checking for expl... " >&6; }
18776 if test "${gcc_cv_math_func_expl+set}" = set; then :
18777   $as_echo_n "(cached) " >&6
18778 else
18779   if test x$gcc_no_link = xyes; then
18780   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18781 fi
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h.  */
18784
18785 #ifdef HAVE_COMPLEX_H
18786 #include <complex.h>
18787 #endif
18788 #ifdef HAVE_MATH_H
18789 #include <math.h>
18790 #endif
18791
18792 int (*ptr)() = (int (*)())expl;
18793
18794 int
18795 main ()
18796 {
18797   return 0;
18798 }
18799
18800 _ACEOF
18801 if ac_fn_c_try_link "$LINENO"; then :
18802   gcc_cv_math_func_expl=yes
18803 else
18804   gcc_cv_math_func_expl=no
18805 fi
18806 rm -f core conftest.err conftest.$ac_objext \
18807     conftest$ac_exeext conftest.$ac_ext
18808 fi
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18810 $as_echo "$gcc_cv_math_func_expl" >&6; }
18811   if test $gcc_cv_math_func_expl = yes; then
18812
18813 cat >>confdefs.h <<_ACEOF
18814 #define HAVE_EXPL 1
18815 _ACEOF
18816
18817   fi
18818
18819
18820
18821
18822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18823 $as_echo_n "checking for cexpf... " >&6; }
18824 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18825   $as_echo_n "(cached) " >&6
18826 else
18827   if test x$gcc_no_link = xyes; then
18828   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18829 fi
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h.  */
18832
18833 #ifdef HAVE_COMPLEX_H
18834 #include <complex.h>
18835 #endif
18836 #ifdef HAVE_MATH_H
18837 #include <math.h>
18838 #endif
18839
18840 int (*ptr)() = (int (*)())cexpf;
18841
18842 int
18843 main ()
18844 {
18845   return 0;
18846 }
18847
18848 _ACEOF
18849 if ac_fn_c_try_link "$LINENO"; then :
18850   gcc_cv_math_func_cexpf=yes
18851 else
18852   gcc_cv_math_func_cexpf=no
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext \
18855     conftest$ac_exeext conftest.$ac_ext
18856 fi
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18858 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18859   if test $gcc_cv_math_func_cexpf = yes; then
18860
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_CEXPF 1
18863 _ACEOF
18864
18865   fi
18866
18867
18868
18869
18870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18871 $as_echo_n "checking for cexp... " >&6; }
18872 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18873   $as_echo_n "(cached) " >&6
18874 else
18875   if test x$gcc_no_link = xyes; then
18876   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18877 fi
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h.  */
18880
18881 #ifdef HAVE_COMPLEX_H
18882 #include <complex.h>
18883 #endif
18884 #ifdef HAVE_MATH_H
18885 #include <math.h>
18886 #endif
18887
18888 int (*ptr)() = (int (*)())cexp;
18889
18890 int
18891 main ()
18892 {
18893   return 0;
18894 }
18895
18896 _ACEOF
18897 if ac_fn_c_try_link "$LINENO"; then :
18898   gcc_cv_math_func_cexp=yes
18899 else
18900   gcc_cv_math_func_cexp=no
18901 fi
18902 rm -f core conftest.err conftest.$ac_objext \
18903     conftest$ac_exeext conftest.$ac_ext
18904 fi
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18906 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18907   if test $gcc_cv_math_func_cexp = yes; then
18908
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_CEXP 1
18911 _ACEOF
18912
18913   fi
18914
18915
18916
18917
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18919 $as_echo_n "checking for cexpl... " >&6; }
18920 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18921   $as_echo_n "(cached) " >&6
18922 else
18923   if test x$gcc_no_link = xyes; then
18924   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18925 fi
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h.  */
18928
18929 #ifdef HAVE_COMPLEX_H
18930 #include <complex.h>
18931 #endif
18932 #ifdef HAVE_MATH_H
18933 #include <math.h>
18934 #endif
18935
18936 int (*ptr)() = (int (*)())cexpl;
18937
18938 int
18939 main ()
18940 {
18941   return 0;
18942 }
18943
18944 _ACEOF
18945 if ac_fn_c_try_link "$LINENO"; then :
18946   gcc_cv_math_func_cexpl=yes
18947 else
18948   gcc_cv_math_func_cexpl=no
18949 fi
18950 rm -f core conftest.err conftest.$ac_objext \
18951     conftest$ac_exeext conftest.$ac_ext
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18954 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
18955   if test $gcc_cv_math_func_cexpl = yes; then
18956
18957 cat >>confdefs.h <<_ACEOF
18958 #define HAVE_CEXPL 1
18959 _ACEOF
18960
18961   fi
18962
18963
18964
18965
18966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18967 $as_echo_n "checking for fabsf... " >&6; }
18968 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
18969   $as_echo_n "(cached) " >&6
18970 else
18971   if test x$gcc_no_link = xyes; then
18972   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18973 fi
18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h.  */
18976
18977 #ifdef HAVE_COMPLEX_H
18978 #include <complex.h>
18979 #endif
18980 #ifdef HAVE_MATH_H
18981 #include <math.h>
18982 #endif
18983
18984 int (*ptr)() = (int (*)())fabsf;
18985
18986 int
18987 main ()
18988 {
18989   return 0;
18990 }
18991
18992 _ACEOF
18993 if ac_fn_c_try_link "$LINENO"; then :
18994   gcc_cv_math_func_fabsf=yes
18995 else
18996   gcc_cv_math_func_fabsf=no
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext \
18999     conftest$ac_exeext conftest.$ac_ext
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19002 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19003   if test $gcc_cv_math_func_fabsf = yes; then
19004
19005 cat >>confdefs.h <<_ACEOF
19006 #define HAVE_FABSF 1
19007 _ACEOF
19008
19009   fi
19010
19011
19012
19013
19014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19015 $as_echo_n "checking for fabs... " >&6; }
19016 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19017   $as_echo_n "(cached) " >&6
19018 else
19019   if test x$gcc_no_link = xyes; then
19020   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19021 fi
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h.  */
19024
19025 #ifdef HAVE_COMPLEX_H
19026 #include <complex.h>
19027 #endif
19028 #ifdef HAVE_MATH_H
19029 #include <math.h>
19030 #endif
19031
19032 int (*ptr)() = (int (*)())fabs;
19033
19034 int
19035 main ()
19036 {
19037   return 0;
19038 }
19039
19040 _ACEOF
19041 if ac_fn_c_try_link "$LINENO"; then :
19042   gcc_cv_math_func_fabs=yes
19043 else
19044   gcc_cv_math_func_fabs=no
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext \
19047     conftest$ac_exeext conftest.$ac_ext
19048 fi
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19050 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19051   if test $gcc_cv_math_func_fabs = yes; then
19052
19053 cat >>confdefs.h <<_ACEOF
19054 #define HAVE_FABS 1
19055 _ACEOF
19056
19057   fi
19058
19059
19060
19061
19062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19063 $as_echo_n "checking for fabsl... " >&6; }
19064 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19065   $as_echo_n "(cached) " >&6
19066 else
19067   if test x$gcc_no_link = xyes; then
19068   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19069 fi
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h.  */
19072
19073 #ifdef HAVE_COMPLEX_H
19074 #include <complex.h>
19075 #endif
19076 #ifdef HAVE_MATH_H
19077 #include <math.h>
19078 #endif
19079
19080 int (*ptr)() = (int (*)())fabsl;
19081
19082 int
19083 main ()
19084 {
19085   return 0;
19086 }
19087
19088 _ACEOF
19089 if ac_fn_c_try_link "$LINENO"; then :
19090   gcc_cv_math_func_fabsl=yes
19091 else
19092   gcc_cv_math_func_fabsl=no
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext \
19095     conftest$ac_exeext conftest.$ac_ext
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19098 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19099   if test $gcc_cv_math_func_fabsl = yes; then
19100
19101 cat >>confdefs.h <<_ACEOF
19102 #define HAVE_FABSL 1
19103 _ACEOF
19104
19105   fi
19106
19107
19108
19109
19110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19111 $as_echo_n "checking for cabsf... " >&6; }
19112 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19113   $as_echo_n "(cached) " >&6
19114 else
19115   if test x$gcc_no_link = xyes; then
19116   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19117 fi
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h.  */
19120
19121 #ifdef HAVE_COMPLEX_H
19122 #include <complex.h>
19123 #endif
19124 #ifdef HAVE_MATH_H
19125 #include <math.h>
19126 #endif
19127
19128 int (*ptr)() = (int (*)())cabsf;
19129
19130 int
19131 main ()
19132 {
19133   return 0;
19134 }
19135
19136 _ACEOF
19137 if ac_fn_c_try_link "$LINENO"; then :
19138   gcc_cv_math_func_cabsf=yes
19139 else
19140   gcc_cv_math_func_cabsf=no
19141 fi
19142 rm -f core conftest.err conftest.$ac_objext \
19143     conftest$ac_exeext conftest.$ac_ext
19144 fi
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19146 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19147   if test $gcc_cv_math_func_cabsf = yes; then
19148
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_CABSF 1
19151 _ACEOF
19152
19153   fi
19154
19155
19156
19157
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19159 $as_echo_n "checking for cabs... " >&6; }
19160 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19161   $as_echo_n "(cached) " >&6
19162 else
19163   if test x$gcc_no_link = xyes; then
19164   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19165 fi
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h.  */
19168
19169 #ifdef HAVE_COMPLEX_H
19170 #include <complex.h>
19171 #endif
19172 #ifdef HAVE_MATH_H
19173 #include <math.h>
19174 #endif
19175
19176 int (*ptr)() = (int (*)())cabs;
19177
19178 int
19179 main ()
19180 {
19181   return 0;
19182 }
19183
19184 _ACEOF
19185 if ac_fn_c_try_link "$LINENO"; then :
19186   gcc_cv_math_func_cabs=yes
19187 else
19188   gcc_cv_math_func_cabs=no
19189 fi
19190 rm -f core conftest.err conftest.$ac_objext \
19191     conftest$ac_exeext conftest.$ac_ext
19192 fi
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19194 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19195   if test $gcc_cv_math_func_cabs = yes; then
19196
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_CABS 1
19199 _ACEOF
19200
19201   fi
19202
19203
19204
19205
19206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19207 $as_echo_n "checking for cabsl... " >&6; }
19208 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19209   $as_echo_n "(cached) " >&6
19210 else
19211   if test x$gcc_no_link = xyes; then
19212   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19213 fi
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h.  */
19216
19217 #ifdef HAVE_COMPLEX_H
19218 #include <complex.h>
19219 #endif
19220 #ifdef HAVE_MATH_H
19221 #include <math.h>
19222 #endif
19223
19224 int (*ptr)() = (int (*)())cabsl;
19225
19226 int
19227 main ()
19228 {
19229   return 0;
19230 }
19231
19232 _ACEOF
19233 if ac_fn_c_try_link "$LINENO"; then :
19234   gcc_cv_math_func_cabsl=yes
19235 else
19236   gcc_cv_math_func_cabsl=no
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext \
19239     conftest$ac_exeext conftest.$ac_ext
19240 fi
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19242 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19243   if test $gcc_cv_math_func_cabsl = yes; then
19244
19245 cat >>confdefs.h <<_ACEOF
19246 #define HAVE_CABSL 1
19247 _ACEOF
19248
19249   fi
19250
19251
19252
19253
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19255 $as_echo_n "checking for floorf... " >&6; }
19256 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19257   $as_echo_n "(cached) " >&6
19258 else
19259   if test x$gcc_no_link = xyes; then
19260   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19261 fi
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h.  */
19264
19265 #ifdef HAVE_COMPLEX_H
19266 #include <complex.h>
19267 #endif
19268 #ifdef HAVE_MATH_H
19269 #include <math.h>
19270 #endif
19271
19272 int (*ptr)() = (int (*)())floorf;
19273
19274 int
19275 main ()
19276 {
19277   return 0;
19278 }
19279
19280 _ACEOF
19281 if ac_fn_c_try_link "$LINENO"; then :
19282   gcc_cv_math_func_floorf=yes
19283 else
19284   gcc_cv_math_func_floorf=no
19285 fi
19286 rm -f core conftest.err conftest.$ac_objext \
19287     conftest$ac_exeext conftest.$ac_ext
19288 fi
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19290 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19291   if test $gcc_cv_math_func_floorf = yes; then
19292
19293 cat >>confdefs.h <<_ACEOF
19294 #define HAVE_FLOORF 1
19295 _ACEOF
19296
19297   fi
19298
19299
19300
19301
19302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19303 $as_echo_n "checking for floor... " >&6; }
19304 if test "${gcc_cv_math_func_floor+set}" = set; then :
19305   $as_echo_n "(cached) " >&6
19306 else
19307   if test x$gcc_no_link = xyes; then
19308   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19309 fi
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h.  */
19312
19313 #ifdef HAVE_COMPLEX_H
19314 #include <complex.h>
19315 #endif
19316 #ifdef HAVE_MATH_H
19317 #include <math.h>
19318 #endif
19319
19320 int (*ptr)() = (int (*)())floor;
19321
19322 int
19323 main ()
19324 {
19325   return 0;
19326 }
19327
19328 _ACEOF
19329 if ac_fn_c_try_link "$LINENO"; then :
19330   gcc_cv_math_func_floor=yes
19331 else
19332   gcc_cv_math_func_floor=no
19333 fi
19334 rm -f core conftest.err conftest.$ac_objext \
19335     conftest$ac_exeext conftest.$ac_ext
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19338 $as_echo "$gcc_cv_math_func_floor" >&6; }
19339   if test $gcc_cv_math_func_floor = yes; then
19340
19341 cat >>confdefs.h <<_ACEOF
19342 #define HAVE_FLOOR 1
19343 _ACEOF
19344
19345   fi
19346
19347
19348
19349
19350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19351 $as_echo_n "checking for floorl... " >&6; }
19352 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19353   $as_echo_n "(cached) " >&6
19354 else
19355   if test x$gcc_no_link = xyes; then
19356   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19357 fi
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h.  */
19360
19361 #ifdef HAVE_COMPLEX_H
19362 #include <complex.h>
19363 #endif
19364 #ifdef HAVE_MATH_H
19365 #include <math.h>
19366 #endif
19367
19368 int (*ptr)() = (int (*)())floorl;
19369
19370 int
19371 main ()
19372 {
19373   return 0;
19374 }
19375
19376 _ACEOF
19377 if ac_fn_c_try_link "$LINENO"; then :
19378   gcc_cv_math_func_floorl=yes
19379 else
19380   gcc_cv_math_func_floorl=no
19381 fi
19382 rm -f core conftest.err conftest.$ac_objext \
19383     conftest$ac_exeext conftest.$ac_ext
19384 fi
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19386 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19387   if test $gcc_cv_math_func_floorl = yes; then
19388
19389 cat >>confdefs.h <<_ACEOF
19390 #define HAVE_FLOORL 1
19391 _ACEOF
19392
19393   fi
19394
19395
19396
19397
19398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19399 $as_echo_n "checking for fmodf... " >&6; }
19400 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19401   $as_echo_n "(cached) " >&6
19402 else
19403   if test x$gcc_no_link = xyes; then
19404   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19405 fi
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h.  */
19408
19409 #ifdef HAVE_COMPLEX_H
19410 #include <complex.h>
19411 #endif
19412 #ifdef HAVE_MATH_H
19413 #include <math.h>
19414 #endif
19415
19416 int (*ptr)() = (int (*)())fmodf;
19417
19418 int
19419 main ()
19420 {
19421   return 0;
19422 }
19423
19424 _ACEOF
19425 if ac_fn_c_try_link "$LINENO"; then :
19426   gcc_cv_math_func_fmodf=yes
19427 else
19428   gcc_cv_math_func_fmodf=no
19429 fi
19430 rm -f core conftest.err conftest.$ac_objext \
19431     conftest$ac_exeext conftest.$ac_ext
19432 fi
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19434 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19435   if test $gcc_cv_math_func_fmodf = yes; then
19436
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_FMODF 1
19439 _ACEOF
19440
19441   fi
19442
19443
19444
19445
19446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19447 $as_echo_n "checking for fmod... " >&6; }
19448 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451   if test x$gcc_no_link = xyes; then
19452   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19453 fi
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h.  */
19456
19457 #ifdef HAVE_COMPLEX_H
19458 #include <complex.h>
19459 #endif
19460 #ifdef HAVE_MATH_H
19461 #include <math.h>
19462 #endif
19463
19464 int (*ptr)() = (int (*)())fmod;
19465
19466 int
19467 main ()
19468 {
19469   return 0;
19470 }
19471
19472 _ACEOF
19473 if ac_fn_c_try_link "$LINENO"; then :
19474   gcc_cv_math_func_fmod=yes
19475 else
19476   gcc_cv_math_func_fmod=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext \
19479     conftest$ac_exeext conftest.$ac_ext
19480 fi
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19482 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19483   if test $gcc_cv_math_func_fmod = yes; then
19484
19485 cat >>confdefs.h <<_ACEOF
19486 #define HAVE_FMOD 1
19487 _ACEOF
19488
19489   fi
19490
19491
19492
19493
19494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19495 $as_echo_n "checking for fmodl... " >&6; }
19496 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19497   $as_echo_n "(cached) " >&6
19498 else
19499   if test x$gcc_no_link = xyes; then
19500   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19501 fi
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h.  */
19504
19505 #ifdef HAVE_COMPLEX_H
19506 #include <complex.h>
19507 #endif
19508 #ifdef HAVE_MATH_H
19509 #include <math.h>
19510 #endif
19511
19512 int (*ptr)() = (int (*)())fmodl;
19513
19514 int
19515 main ()
19516 {
19517   return 0;
19518 }
19519
19520 _ACEOF
19521 if ac_fn_c_try_link "$LINENO"; then :
19522   gcc_cv_math_func_fmodl=yes
19523 else
19524   gcc_cv_math_func_fmodl=no
19525 fi
19526 rm -f core conftest.err conftest.$ac_objext \
19527     conftest$ac_exeext conftest.$ac_ext
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19530 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19531   if test $gcc_cv_math_func_fmodl = yes; then
19532
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_FMODL 1
19535 _ACEOF
19536
19537   fi
19538
19539
19540
19541
19542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19543 $as_echo_n "checking for frexpf... " >&6; }
19544 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19545   $as_echo_n "(cached) " >&6
19546 else
19547   if test x$gcc_no_link = xyes; then
19548   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19549 fi
19550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h.  */
19552
19553 #ifdef HAVE_COMPLEX_H
19554 #include <complex.h>
19555 #endif
19556 #ifdef HAVE_MATH_H
19557 #include <math.h>
19558 #endif
19559
19560 int (*ptr)() = (int (*)())frexpf;
19561
19562 int
19563 main ()
19564 {
19565   return 0;
19566 }
19567
19568 _ACEOF
19569 if ac_fn_c_try_link "$LINENO"; then :
19570   gcc_cv_math_func_frexpf=yes
19571 else
19572   gcc_cv_math_func_frexpf=no
19573 fi
19574 rm -f core conftest.err conftest.$ac_objext \
19575     conftest$ac_exeext conftest.$ac_ext
19576 fi
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19578 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19579   if test $gcc_cv_math_func_frexpf = yes; then
19580
19581 cat >>confdefs.h <<_ACEOF
19582 #define HAVE_FREXPF 1
19583 _ACEOF
19584
19585   fi
19586
19587
19588
19589
19590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19591 $as_echo_n "checking for frexp... " >&6; }
19592 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19593   $as_echo_n "(cached) " >&6
19594 else
19595   if test x$gcc_no_link = xyes; then
19596   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19597 fi
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h.  */
19600
19601 #ifdef HAVE_COMPLEX_H
19602 #include <complex.h>
19603 #endif
19604 #ifdef HAVE_MATH_H
19605 #include <math.h>
19606 #endif
19607
19608 int (*ptr)() = (int (*)())frexp;
19609
19610 int
19611 main ()
19612 {
19613   return 0;
19614 }
19615
19616 _ACEOF
19617 if ac_fn_c_try_link "$LINENO"; then :
19618   gcc_cv_math_func_frexp=yes
19619 else
19620   gcc_cv_math_func_frexp=no
19621 fi
19622 rm -f core conftest.err conftest.$ac_objext \
19623     conftest$ac_exeext conftest.$ac_ext
19624 fi
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19626 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19627   if test $gcc_cv_math_func_frexp = yes; then
19628
19629 cat >>confdefs.h <<_ACEOF
19630 #define HAVE_FREXP 1
19631 _ACEOF
19632
19633   fi
19634
19635
19636
19637
19638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19639 $as_echo_n "checking for frexpl... " >&6; }
19640 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19641   $as_echo_n "(cached) " >&6
19642 else
19643   if test x$gcc_no_link = xyes; then
19644   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19645 fi
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h.  */
19648
19649 #ifdef HAVE_COMPLEX_H
19650 #include <complex.h>
19651 #endif
19652 #ifdef HAVE_MATH_H
19653 #include <math.h>
19654 #endif
19655
19656 int (*ptr)() = (int (*)())frexpl;
19657
19658 int
19659 main ()
19660 {
19661   return 0;
19662 }
19663
19664 _ACEOF
19665 if ac_fn_c_try_link "$LINENO"; then :
19666   gcc_cv_math_func_frexpl=yes
19667 else
19668   gcc_cv_math_func_frexpl=no
19669 fi
19670 rm -f core conftest.err conftest.$ac_objext \
19671     conftest$ac_exeext conftest.$ac_ext
19672 fi
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19674 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19675   if test $gcc_cv_math_func_frexpl = yes; then
19676
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_FREXPL 1
19679 _ACEOF
19680
19681   fi
19682
19683
19684
19685
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19687 $as_echo_n "checking for hypotf... " >&6; }
19688 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19689   $as_echo_n "(cached) " >&6
19690 else
19691   if test x$gcc_no_link = xyes; then
19692   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19693 fi
19694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h.  */
19696
19697 #ifdef HAVE_COMPLEX_H
19698 #include <complex.h>
19699 #endif
19700 #ifdef HAVE_MATH_H
19701 #include <math.h>
19702 #endif
19703
19704 int (*ptr)() = (int (*)())hypotf;
19705
19706 int
19707 main ()
19708 {
19709   return 0;
19710 }
19711
19712 _ACEOF
19713 if ac_fn_c_try_link "$LINENO"; then :
19714   gcc_cv_math_func_hypotf=yes
19715 else
19716   gcc_cv_math_func_hypotf=no
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext \
19719     conftest$ac_exeext conftest.$ac_ext
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19722 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19723   if test $gcc_cv_math_func_hypotf = yes; then
19724
19725 cat >>confdefs.h <<_ACEOF
19726 #define HAVE_HYPOTF 1
19727 _ACEOF
19728
19729   fi
19730
19731
19732
19733
19734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19735 $as_echo_n "checking for hypot... " >&6; }
19736 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19737   $as_echo_n "(cached) " >&6
19738 else
19739   if test x$gcc_no_link = xyes; then
19740   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19741 fi
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h.  */
19744
19745 #ifdef HAVE_COMPLEX_H
19746 #include <complex.h>
19747 #endif
19748 #ifdef HAVE_MATH_H
19749 #include <math.h>
19750 #endif
19751
19752 int (*ptr)() = (int (*)())hypot;
19753
19754 int
19755 main ()
19756 {
19757   return 0;
19758 }
19759
19760 _ACEOF
19761 if ac_fn_c_try_link "$LINENO"; then :
19762   gcc_cv_math_func_hypot=yes
19763 else
19764   gcc_cv_math_func_hypot=no
19765 fi
19766 rm -f core conftest.err conftest.$ac_objext \
19767     conftest$ac_exeext conftest.$ac_ext
19768 fi
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19770 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19771   if test $gcc_cv_math_func_hypot = yes; then
19772
19773 cat >>confdefs.h <<_ACEOF
19774 #define HAVE_HYPOT 1
19775 _ACEOF
19776
19777   fi
19778
19779
19780
19781
19782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19783 $as_echo_n "checking for hypotl... " >&6; }
19784 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19785   $as_echo_n "(cached) " >&6
19786 else
19787   if test x$gcc_no_link = xyes; then
19788   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19789 fi
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h.  */
19792
19793 #ifdef HAVE_COMPLEX_H
19794 #include <complex.h>
19795 #endif
19796 #ifdef HAVE_MATH_H
19797 #include <math.h>
19798 #endif
19799
19800 int (*ptr)() = (int (*)())hypotl;
19801
19802 int
19803 main ()
19804 {
19805   return 0;
19806 }
19807
19808 _ACEOF
19809 if ac_fn_c_try_link "$LINENO"; then :
19810   gcc_cv_math_func_hypotl=yes
19811 else
19812   gcc_cv_math_func_hypotl=no
19813 fi
19814 rm -f core conftest.err conftest.$ac_objext \
19815     conftest$ac_exeext conftest.$ac_ext
19816 fi
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19818 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19819   if test $gcc_cv_math_func_hypotl = yes; then
19820
19821 cat >>confdefs.h <<_ACEOF
19822 #define HAVE_HYPOTL 1
19823 _ACEOF
19824
19825   fi
19826
19827
19828
19829
19830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19831 $as_echo_n "checking for ldexpf... " >&6; }
19832 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19833   $as_echo_n "(cached) " >&6
19834 else
19835   if test x$gcc_no_link = xyes; then
19836   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19837 fi
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h.  */
19840
19841 #ifdef HAVE_COMPLEX_H
19842 #include <complex.h>
19843 #endif
19844 #ifdef HAVE_MATH_H
19845 #include <math.h>
19846 #endif
19847
19848 int (*ptr)() = (int (*)())ldexpf;
19849
19850 int
19851 main ()
19852 {
19853   return 0;
19854 }
19855
19856 _ACEOF
19857 if ac_fn_c_try_link "$LINENO"; then :
19858   gcc_cv_math_func_ldexpf=yes
19859 else
19860   gcc_cv_math_func_ldexpf=no
19861 fi
19862 rm -f core conftest.err conftest.$ac_objext \
19863     conftest$ac_exeext conftest.$ac_ext
19864 fi
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19866 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19867   if test $gcc_cv_math_func_ldexpf = yes; then
19868
19869 cat >>confdefs.h <<_ACEOF
19870 #define HAVE_LDEXPF 1
19871 _ACEOF
19872
19873   fi
19874
19875
19876
19877
19878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19879 $as_echo_n "checking for ldexp... " >&6; }
19880 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19881   $as_echo_n "(cached) " >&6
19882 else
19883   if test x$gcc_no_link = xyes; then
19884   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19885 fi
19886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887 /* end confdefs.h.  */
19888
19889 #ifdef HAVE_COMPLEX_H
19890 #include <complex.h>
19891 #endif
19892 #ifdef HAVE_MATH_H
19893 #include <math.h>
19894 #endif
19895
19896 int (*ptr)() = (int (*)())ldexp;
19897
19898 int
19899 main ()
19900 {
19901   return 0;
19902 }
19903
19904 _ACEOF
19905 if ac_fn_c_try_link "$LINENO"; then :
19906   gcc_cv_math_func_ldexp=yes
19907 else
19908   gcc_cv_math_func_ldexp=no
19909 fi
19910 rm -f core conftest.err conftest.$ac_objext \
19911     conftest$ac_exeext conftest.$ac_ext
19912 fi
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19914 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19915   if test $gcc_cv_math_func_ldexp = yes; then
19916
19917 cat >>confdefs.h <<_ACEOF
19918 #define HAVE_LDEXP 1
19919 _ACEOF
19920
19921   fi
19922
19923
19924
19925
19926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19927 $as_echo_n "checking for ldexpl... " >&6; }
19928 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19929   $as_echo_n "(cached) " >&6
19930 else
19931   if test x$gcc_no_link = xyes; then
19932   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19933 fi
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936
19937 #ifdef HAVE_COMPLEX_H
19938 #include <complex.h>
19939 #endif
19940 #ifdef HAVE_MATH_H
19941 #include <math.h>
19942 #endif
19943
19944 int (*ptr)() = (int (*)())ldexpl;
19945
19946 int
19947 main ()
19948 {
19949   return 0;
19950 }
19951
19952 _ACEOF
19953 if ac_fn_c_try_link "$LINENO"; then :
19954   gcc_cv_math_func_ldexpl=yes
19955 else
19956   gcc_cv_math_func_ldexpl=no
19957 fi
19958 rm -f core conftest.err conftest.$ac_objext \
19959     conftest$ac_exeext conftest.$ac_ext
19960 fi
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19962 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19963   if test $gcc_cv_math_func_ldexpl = yes; then
19964
19965 cat >>confdefs.h <<_ACEOF
19966 #define HAVE_LDEXPL 1
19967 _ACEOF
19968
19969   fi
19970
19971
19972
19973
19974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
19975 $as_echo_n "checking for logf... " >&6; }
19976 if test "${gcc_cv_math_func_logf+set}" = set; then :
19977   $as_echo_n "(cached) " >&6
19978 else
19979   if test x$gcc_no_link = xyes; then
19980   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19981 fi
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h.  */
19984
19985 #ifdef HAVE_COMPLEX_H
19986 #include <complex.h>
19987 #endif
19988 #ifdef HAVE_MATH_H
19989 #include <math.h>
19990 #endif
19991
19992 int (*ptr)() = (int (*)())logf;
19993
19994 int
19995 main ()
19996 {
19997   return 0;
19998 }
19999
20000 _ACEOF
20001 if ac_fn_c_try_link "$LINENO"; then :
20002   gcc_cv_math_func_logf=yes
20003 else
20004   gcc_cv_math_func_logf=no
20005 fi
20006 rm -f core conftest.err conftest.$ac_objext \
20007     conftest$ac_exeext conftest.$ac_ext
20008 fi
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20010 $as_echo "$gcc_cv_math_func_logf" >&6; }
20011   if test $gcc_cv_math_func_logf = yes; then
20012
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_LOGF 1
20015 _ACEOF
20016
20017   fi
20018
20019
20020
20021
20022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20023 $as_echo_n "checking for log... " >&6; }
20024 if test "${gcc_cv_math_func_log+set}" = set; then :
20025   $as_echo_n "(cached) " >&6
20026 else
20027   if test x$gcc_no_link = xyes; then
20028   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20029 fi
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h.  */
20032
20033 #ifdef HAVE_COMPLEX_H
20034 #include <complex.h>
20035 #endif
20036 #ifdef HAVE_MATH_H
20037 #include <math.h>
20038 #endif
20039
20040 int (*ptr)() = (int (*)())log;
20041
20042 int
20043 main ()
20044 {
20045   return 0;
20046 }
20047
20048 _ACEOF
20049 if ac_fn_c_try_link "$LINENO"; then :
20050   gcc_cv_math_func_log=yes
20051 else
20052   gcc_cv_math_func_log=no
20053 fi
20054 rm -f core conftest.err conftest.$ac_objext \
20055     conftest$ac_exeext conftest.$ac_ext
20056 fi
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20058 $as_echo "$gcc_cv_math_func_log" >&6; }
20059   if test $gcc_cv_math_func_log = yes; then
20060
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_LOG 1
20063 _ACEOF
20064
20065   fi
20066
20067
20068
20069
20070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20071 $as_echo_n "checking for logl... " >&6; }
20072 if test "${gcc_cv_math_func_logl+set}" = set; then :
20073   $as_echo_n "(cached) " >&6
20074 else
20075   if test x$gcc_no_link = xyes; then
20076   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20077 fi
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 /* end confdefs.h.  */
20080
20081 #ifdef HAVE_COMPLEX_H
20082 #include <complex.h>
20083 #endif
20084 #ifdef HAVE_MATH_H
20085 #include <math.h>
20086 #endif
20087
20088 int (*ptr)() = (int (*)())logl;
20089
20090 int
20091 main ()
20092 {
20093   return 0;
20094 }
20095
20096 _ACEOF
20097 if ac_fn_c_try_link "$LINENO"; then :
20098   gcc_cv_math_func_logl=yes
20099 else
20100   gcc_cv_math_func_logl=no
20101 fi
20102 rm -f core conftest.err conftest.$ac_objext \
20103     conftest$ac_exeext conftest.$ac_ext
20104 fi
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20106 $as_echo "$gcc_cv_math_func_logl" >&6; }
20107   if test $gcc_cv_math_func_logl = yes; then
20108
20109 cat >>confdefs.h <<_ACEOF
20110 #define HAVE_LOGL 1
20111 _ACEOF
20112
20113   fi
20114
20115
20116
20117
20118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20119 $as_echo_n "checking for clogf... " >&6; }
20120 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20121   $as_echo_n "(cached) " >&6
20122 else
20123   if test x$gcc_no_link = xyes; then
20124   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20125 fi
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h.  */
20128
20129 #ifdef HAVE_COMPLEX_H
20130 #include <complex.h>
20131 #endif
20132 #ifdef HAVE_MATH_H
20133 #include <math.h>
20134 #endif
20135
20136 int (*ptr)() = (int (*)())clogf;
20137
20138 int
20139 main ()
20140 {
20141   return 0;
20142 }
20143
20144 _ACEOF
20145 if ac_fn_c_try_link "$LINENO"; then :
20146   gcc_cv_math_func_clogf=yes
20147 else
20148   gcc_cv_math_func_clogf=no
20149 fi
20150 rm -f core conftest.err conftest.$ac_objext \
20151     conftest$ac_exeext conftest.$ac_ext
20152 fi
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20154 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20155   if test $gcc_cv_math_func_clogf = yes; then
20156
20157 cat >>confdefs.h <<_ACEOF
20158 #define HAVE_CLOGF 1
20159 _ACEOF
20160
20161   fi
20162
20163
20164
20165
20166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20167 $as_echo_n "checking for clog... " >&6; }
20168 if test "${gcc_cv_math_func_clog+set}" = set; then :
20169   $as_echo_n "(cached) " >&6
20170 else
20171   if test x$gcc_no_link = xyes; then
20172   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20173 fi
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h.  */
20176
20177 #ifdef HAVE_COMPLEX_H
20178 #include <complex.h>
20179 #endif
20180 #ifdef HAVE_MATH_H
20181 #include <math.h>
20182 #endif
20183
20184 int (*ptr)() = (int (*)())clog;
20185
20186 int
20187 main ()
20188 {
20189   return 0;
20190 }
20191
20192 _ACEOF
20193 if ac_fn_c_try_link "$LINENO"; then :
20194   gcc_cv_math_func_clog=yes
20195 else
20196   gcc_cv_math_func_clog=no
20197 fi
20198 rm -f core conftest.err conftest.$ac_objext \
20199     conftest$ac_exeext conftest.$ac_ext
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20202 $as_echo "$gcc_cv_math_func_clog" >&6; }
20203   if test $gcc_cv_math_func_clog = yes; then
20204
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_CLOG 1
20207 _ACEOF
20208
20209   fi
20210
20211
20212
20213
20214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20215 $as_echo_n "checking for clogl... " >&6; }
20216 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20217   $as_echo_n "(cached) " >&6
20218 else
20219   if test x$gcc_no_link = xyes; then
20220   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20221 fi
20222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h.  */
20224
20225 #ifdef HAVE_COMPLEX_H
20226 #include <complex.h>
20227 #endif
20228 #ifdef HAVE_MATH_H
20229 #include <math.h>
20230 #endif
20231
20232 int (*ptr)() = (int (*)())clogl;
20233
20234 int
20235 main ()
20236 {
20237   return 0;
20238 }
20239
20240 _ACEOF
20241 if ac_fn_c_try_link "$LINENO"; then :
20242   gcc_cv_math_func_clogl=yes
20243 else
20244   gcc_cv_math_func_clogl=no
20245 fi
20246 rm -f core conftest.err conftest.$ac_objext \
20247     conftest$ac_exeext conftest.$ac_ext
20248 fi
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20250 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20251   if test $gcc_cv_math_func_clogl = yes; then
20252
20253 cat >>confdefs.h <<_ACEOF
20254 #define HAVE_CLOGL 1
20255 _ACEOF
20256
20257   fi
20258
20259
20260
20261
20262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20263 $as_echo_n "checking for log10f... " >&6; }
20264 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20265   $as_echo_n "(cached) " >&6
20266 else
20267   if test x$gcc_no_link = xyes; then
20268   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20269 fi
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h.  */
20272
20273 #ifdef HAVE_COMPLEX_H
20274 #include <complex.h>
20275 #endif
20276 #ifdef HAVE_MATH_H
20277 #include <math.h>
20278 #endif
20279
20280 int (*ptr)() = (int (*)())log10f;
20281
20282 int
20283 main ()
20284 {
20285   return 0;
20286 }
20287
20288 _ACEOF
20289 if ac_fn_c_try_link "$LINENO"; then :
20290   gcc_cv_math_func_log10f=yes
20291 else
20292   gcc_cv_math_func_log10f=no
20293 fi
20294 rm -f core conftest.err conftest.$ac_objext \
20295     conftest$ac_exeext conftest.$ac_ext
20296 fi
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20298 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20299   if test $gcc_cv_math_func_log10f = yes; then
20300
20301 cat >>confdefs.h <<_ACEOF
20302 #define HAVE_LOG10F 1
20303 _ACEOF
20304
20305   fi
20306
20307
20308
20309
20310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20311 $as_echo_n "checking for log10... " >&6; }
20312 if test "${gcc_cv_math_func_log10+set}" = set; then :
20313   $as_echo_n "(cached) " >&6
20314 else
20315   if test x$gcc_no_link = xyes; then
20316   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20317 fi
20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319 /* end confdefs.h.  */
20320
20321 #ifdef HAVE_COMPLEX_H
20322 #include <complex.h>
20323 #endif
20324 #ifdef HAVE_MATH_H
20325 #include <math.h>
20326 #endif
20327
20328 int (*ptr)() = (int (*)())log10;
20329
20330 int
20331 main ()
20332 {
20333   return 0;
20334 }
20335
20336 _ACEOF
20337 if ac_fn_c_try_link "$LINENO"; then :
20338   gcc_cv_math_func_log10=yes
20339 else
20340   gcc_cv_math_func_log10=no
20341 fi
20342 rm -f core conftest.err conftest.$ac_objext \
20343     conftest$ac_exeext conftest.$ac_ext
20344 fi
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20346 $as_echo "$gcc_cv_math_func_log10" >&6; }
20347   if test $gcc_cv_math_func_log10 = yes; then
20348
20349 cat >>confdefs.h <<_ACEOF
20350 #define HAVE_LOG10 1
20351 _ACEOF
20352
20353   fi
20354
20355
20356
20357
20358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20359 $as_echo_n "checking for log10l... " >&6; }
20360 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20361   $as_echo_n "(cached) " >&6
20362 else
20363   if test x$gcc_no_link = xyes; then
20364   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20365 fi
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h.  */
20368
20369 #ifdef HAVE_COMPLEX_H
20370 #include <complex.h>
20371 #endif
20372 #ifdef HAVE_MATH_H
20373 #include <math.h>
20374 #endif
20375
20376 int (*ptr)() = (int (*)())log10l;
20377
20378 int
20379 main ()
20380 {
20381   return 0;
20382 }
20383
20384 _ACEOF
20385 if ac_fn_c_try_link "$LINENO"; then :
20386   gcc_cv_math_func_log10l=yes
20387 else
20388   gcc_cv_math_func_log10l=no
20389 fi
20390 rm -f core conftest.err conftest.$ac_objext \
20391     conftest$ac_exeext conftest.$ac_ext
20392 fi
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20394 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20395   if test $gcc_cv_math_func_log10l = yes; then
20396
20397 cat >>confdefs.h <<_ACEOF
20398 #define HAVE_LOG10L 1
20399 _ACEOF
20400
20401   fi
20402
20403
20404
20405
20406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20407 $as_echo_n "checking for clog10f... " >&6; }
20408 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20409   $as_echo_n "(cached) " >&6
20410 else
20411   if test x$gcc_no_link = xyes; then
20412   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20413 fi
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h.  */
20416
20417 #ifdef HAVE_COMPLEX_H
20418 #include <complex.h>
20419 #endif
20420 #ifdef HAVE_MATH_H
20421 #include <math.h>
20422 #endif
20423
20424 int (*ptr)() = (int (*)())clog10f;
20425
20426 int
20427 main ()
20428 {
20429   return 0;
20430 }
20431
20432 _ACEOF
20433 if ac_fn_c_try_link "$LINENO"; then :
20434   gcc_cv_math_func_clog10f=yes
20435 else
20436   gcc_cv_math_func_clog10f=no
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext \
20439     conftest$ac_exeext conftest.$ac_ext
20440 fi
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20442 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20443   if test $gcc_cv_math_func_clog10f = yes; then
20444
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_CLOG10F 1
20447 _ACEOF
20448
20449   fi
20450
20451
20452
20453
20454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20455 $as_echo_n "checking for clog10... " >&6; }
20456 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20457   $as_echo_n "(cached) " >&6
20458 else
20459   if test x$gcc_no_link = xyes; then
20460   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20461 fi
20462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20463 /* end confdefs.h.  */
20464
20465 #ifdef HAVE_COMPLEX_H
20466 #include <complex.h>
20467 #endif
20468 #ifdef HAVE_MATH_H
20469 #include <math.h>
20470 #endif
20471
20472 int (*ptr)() = (int (*)())clog10;
20473
20474 int
20475 main ()
20476 {
20477   return 0;
20478 }
20479
20480 _ACEOF
20481 if ac_fn_c_try_link "$LINENO"; then :
20482   gcc_cv_math_func_clog10=yes
20483 else
20484   gcc_cv_math_func_clog10=no
20485 fi
20486 rm -f core conftest.err conftest.$ac_objext \
20487     conftest$ac_exeext conftest.$ac_ext
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20490 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20491   if test $gcc_cv_math_func_clog10 = yes; then
20492
20493 cat >>confdefs.h <<_ACEOF
20494 #define HAVE_CLOG10 1
20495 _ACEOF
20496
20497   fi
20498
20499
20500
20501
20502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20503 $as_echo_n "checking for clog10l... " >&6; }
20504 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20505   $as_echo_n "(cached) " >&6
20506 else
20507   if test x$gcc_no_link = xyes; then
20508   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20509 fi
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h.  */
20512
20513 #ifdef HAVE_COMPLEX_H
20514 #include <complex.h>
20515 #endif
20516 #ifdef HAVE_MATH_H
20517 #include <math.h>
20518 #endif
20519
20520 int (*ptr)() = (int (*)())clog10l;
20521
20522 int
20523 main ()
20524 {
20525   return 0;
20526 }
20527
20528 _ACEOF
20529 if ac_fn_c_try_link "$LINENO"; then :
20530   gcc_cv_math_func_clog10l=yes
20531 else
20532   gcc_cv_math_func_clog10l=no
20533 fi
20534 rm -f core conftest.err conftest.$ac_objext \
20535     conftest$ac_exeext conftest.$ac_ext
20536 fi
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20538 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20539   if test $gcc_cv_math_func_clog10l = yes; then
20540
20541 cat >>confdefs.h <<_ACEOF
20542 #define HAVE_CLOG10L 1
20543 _ACEOF
20544
20545   fi
20546
20547
20548
20549
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20551 $as_echo_n "checking for nextafterf... " >&6; }
20552 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20553   $as_echo_n "(cached) " >&6
20554 else
20555   if test x$gcc_no_link = xyes; then
20556   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20557 fi
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h.  */
20560
20561 #ifdef HAVE_COMPLEX_H
20562 #include <complex.h>
20563 #endif
20564 #ifdef HAVE_MATH_H
20565 #include <math.h>
20566 #endif
20567
20568 int (*ptr)() = (int (*)())nextafterf;
20569
20570 int
20571 main ()
20572 {
20573   return 0;
20574 }
20575
20576 _ACEOF
20577 if ac_fn_c_try_link "$LINENO"; then :
20578   gcc_cv_math_func_nextafterf=yes
20579 else
20580   gcc_cv_math_func_nextafterf=no
20581 fi
20582 rm -f core conftest.err conftest.$ac_objext \
20583     conftest$ac_exeext conftest.$ac_ext
20584 fi
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20586 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20587   if test $gcc_cv_math_func_nextafterf = yes; then
20588
20589 cat >>confdefs.h <<_ACEOF
20590 #define HAVE_NEXTAFTERF 1
20591 _ACEOF
20592
20593   fi
20594
20595
20596
20597
20598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20599 $as_echo_n "checking for nextafter... " >&6; }
20600 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20601   $as_echo_n "(cached) " >&6
20602 else
20603   if test x$gcc_no_link = xyes; then
20604   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20605 fi
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h.  */
20608
20609 #ifdef HAVE_COMPLEX_H
20610 #include <complex.h>
20611 #endif
20612 #ifdef HAVE_MATH_H
20613 #include <math.h>
20614 #endif
20615
20616 int (*ptr)() = (int (*)())nextafter;
20617
20618 int
20619 main ()
20620 {
20621   return 0;
20622 }
20623
20624 _ACEOF
20625 if ac_fn_c_try_link "$LINENO"; then :
20626   gcc_cv_math_func_nextafter=yes
20627 else
20628   gcc_cv_math_func_nextafter=no
20629 fi
20630 rm -f core conftest.err conftest.$ac_objext \
20631     conftest$ac_exeext conftest.$ac_ext
20632 fi
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20634 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20635   if test $gcc_cv_math_func_nextafter = yes; then
20636
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_NEXTAFTER 1
20639 _ACEOF
20640
20641   fi
20642
20643
20644
20645
20646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20647 $as_echo_n "checking for nextafterl... " >&6; }
20648 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20649   $as_echo_n "(cached) " >&6
20650 else
20651   if test x$gcc_no_link = xyes; then
20652   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20653 fi
20654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h.  */
20656
20657 #ifdef HAVE_COMPLEX_H
20658 #include <complex.h>
20659 #endif
20660 #ifdef HAVE_MATH_H
20661 #include <math.h>
20662 #endif
20663
20664 int (*ptr)() = (int (*)())nextafterl;
20665
20666 int
20667 main ()
20668 {
20669   return 0;
20670 }
20671
20672 _ACEOF
20673 if ac_fn_c_try_link "$LINENO"; then :
20674   gcc_cv_math_func_nextafterl=yes
20675 else
20676   gcc_cv_math_func_nextafterl=no
20677 fi
20678 rm -f core conftest.err conftest.$ac_objext \
20679     conftest$ac_exeext conftest.$ac_ext
20680 fi
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20682 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20683   if test $gcc_cv_math_func_nextafterl = yes; then
20684
20685 cat >>confdefs.h <<_ACEOF
20686 #define HAVE_NEXTAFTERL 1
20687 _ACEOF
20688
20689   fi
20690
20691
20692
20693
20694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20695 $as_echo_n "checking for powf... " >&6; }
20696 if test "${gcc_cv_math_func_powf+set}" = set; then :
20697   $as_echo_n "(cached) " >&6
20698 else
20699   if test x$gcc_no_link = xyes; then
20700   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20701 fi
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h.  */
20704
20705 #ifdef HAVE_COMPLEX_H
20706 #include <complex.h>
20707 #endif
20708 #ifdef HAVE_MATH_H
20709 #include <math.h>
20710 #endif
20711
20712 int (*ptr)() = (int (*)())powf;
20713
20714 int
20715 main ()
20716 {
20717   return 0;
20718 }
20719
20720 _ACEOF
20721 if ac_fn_c_try_link "$LINENO"; then :
20722   gcc_cv_math_func_powf=yes
20723 else
20724   gcc_cv_math_func_powf=no
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext \
20727     conftest$ac_exeext conftest.$ac_ext
20728 fi
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20730 $as_echo "$gcc_cv_math_func_powf" >&6; }
20731   if test $gcc_cv_math_func_powf = yes; then
20732
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_POWF 1
20735 _ACEOF
20736
20737   fi
20738
20739
20740
20741
20742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20743 $as_echo_n "checking for pow... " >&6; }
20744 if test "${gcc_cv_math_func_pow+set}" = set; then :
20745   $as_echo_n "(cached) " >&6
20746 else
20747   if test x$gcc_no_link = xyes; then
20748   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20749 fi
20750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h.  */
20752
20753 #ifdef HAVE_COMPLEX_H
20754 #include <complex.h>
20755 #endif
20756 #ifdef HAVE_MATH_H
20757 #include <math.h>
20758 #endif
20759
20760 int (*ptr)() = (int (*)())pow;
20761
20762 int
20763 main ()
20764 {
20765   return 0;
20766 }
20767
20768 _ACEOF
20769 if ac_fn_c_try_link "$LINENO"; then :
20770   gcc_cv_math_func_pow=yes
20771 else
20772   gcc_cv_math_func_pow=no
20773 fi
20774 rm -f core conftest.err conftest.$ac_objext \
20775     conftest$ac_exeext conftest.$ac_ext
20776 fi
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20778 $as_echo "$gcc_cv_math_func_pow" >&6; }
20779   if test $gcc_cv_math_func_pow = yes; then
20780
20781 cat >>confdefs.h <<_ACEOF
20782 #define HAVE_POW 1
20783 _ACEOF
20784
20785   fi
20786
20787
20788
20789
20790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20791 $as_echo_n "checking for powl... " >&6; }
20792 if test "${gcc_cv_math_func_powl+set}" = set; then :
20793   $as_echo_n "(cached) " >&6
20794 else
20795   if test x$gcc_no_link = xyes; then
20796   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20797 fi
20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799 /* end confdefs.h.  */
20800
20801 #ifdef HAVE_COMPLEX_H
20802 #include <complex.h>
20803 #endif
20804 #ifdef HAVE_MATH_H
20805 #include <math.h>
20806 #endif
20807
20808 int (*ptr)() = (int (*)())powl;
20809
20810 int
20811 main ()
20812 {
20813   return 0;
20814 }
20815
20816 _ACEOF
20817 if ac_fn_c_try_link "$LINENO"; then :
20818   gcc_cv_math_func_powl=yes
20819 else
20820   gcc_cv_math_func_powl=no
20821 fi
20822 rm -f core conftest.err conftest.$ac_objext \
20823     conftest$ac_exeext conftest.$ac_ext
20824 fi
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20826 $as_echo "$gcc_cv_math_func_powl" >&6; }
20827   if test $gcc_cv_math_func_powl = yes; then
20828
20829 cat >>confdefs.h <<_ACEOF
20830 #define HAVE_POWL 1
20831 _ACEOF
20832
20833   fi
20834
20835
20836
20837
20838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20839 $as_echo_n "checking for cpowf... " >&6; }
20840 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20841   $as_echo_n "(cached) " >&6
20842 else
20843   if test x$gcc_no_link = xyes; then
20844   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20845 fi
20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h.  */
20848
20849 #ifdef HAVE_COMPLEX_H
20850 #include <complex.h>
20851 #endif
20852 #ifdef HAVE_MATH_H
20853 #include <math.h>
20854 #endif
20855
20856 int (*ptr)() = (int (*)())cpowf;
20857
20858 int
20859 main ()
20860 {
20861   return 0;
20862 }
20863
20864 _ACEOF
20865 if ac_fn_c_try_link "$LINENO"; then :
20866   gcc_cv_math_func_cpowf=yes
20867 else
20868   gcc_cv_math_func_cpowf=no
20869 fi
20870 rm -f core conftest.err conftest.$ac_objext \
20871     conftest$ac_exeext conftest.$ac_ext
20872 fi
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20874 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20875   if test $gcc_cv_math_func_cpowf = yes; then
20876
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_CPOWF 1
20879 _ACEOF
20880
20881   fi
20882
20883
20884
20885
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20887 $as_echo_n "checking for cpow... " >&6; }
20888 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20889   $as_echo_n "(cached) " >&6
20890 else
20891   if test x$gcc_no_link = xyes; then
20892   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20893 fi
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h.  */
20896
20897 #ifdef HAVE_COMPLEX_H
20898 #include <complex.h>
20899 #endif
20900 #ifdef HAVE_MATH_H
20901 #include <math.h>
20902 #endif
20903
20904 int (*ptr)() = (int (*)())cpow;
20905
20906 int
20907 main ()
20908 {
20909   return 0;
20910 }
20911
20912 _ACEOF
20913 if ac_fn_c_try_link "$LINENO"; then :
20914   gcc_cv_math_func_cpow=yes
20915 else
20916   gcc_cv_math_func_cpow=no
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext \
20919     conftest$ac_exeext conftest.$ac_ext
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20922 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20923   if test $gcc_cv_math_func_cpow = yes; then
20924
20925 cat >>confdefs.h <<_ACEOF
20926 #define HAVE_CPOW 1
20927 _ACEOF
20928
20929   fi
20930
20931
20932
20933
20934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20935 $as_echo_n "checking for cpowl... " >&6; }
20936 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20937   $as_echo_n "(cached) " >&6
20938 else
20939   if test x$gcc_no_link = xyes; then
20940   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20941 fi
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h.  */
20944
20945 #ifdef HAVE_COMPLEX_H
20946 #include <complex.h>
20947 #endif
20948 #ifdef HAVE_MATH_H
20949 #include <math.h>
20950 #endif
20951
20952 int (*ptr)() = (int (*)())cpowl;
20953
20954 int
20955 main ()
20956 {
20957   return 0;
20958 }
20959
20960 _ACEOF
20961 if ac_fn_c_try_link "$LINENO"; then :
20962   gcc_cv_math_func_cpowl=yes
20963 else
20964   gcc_cv_math_func_cpowl=no
20965 fi
20966 rm -f core conftest.err conftest.$ac_objext \
20967     conftest$ac_exeext conftest.$ac_ext
20968 fi
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20970 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
20971   if test $gcc_cv_math_func_cpowl = yes; then
20972
20973 cat >>confdefs.h <<_ACEOF
20974 #define HAVE_CPOWL 1
20975 _ACEOF
20976
20977   fi
20978
20979
20980
20981
20982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
20983 $as_echo_n "checking for roundf... " >&6; }
20984 if test "${gcc_cv_math_func_roundf+set}" = set; then :
20985   $as_echo_n "(cached) " >&6
20986 else
20987   if test x$gcc_no_link = xyes; then
20988   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20989 fi
20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h.  */
20992
20993 #ifdef HAVE_COMPLEX_H
20994 #include <complex.h>
20995 #endif
20996 #ifdef HAVE_MATH_H
20997 #include <math.h>
20998 #endif
20999
21000 int (*ptr)() = (int (*)())roundf;
21001
21002 int
21003 main ()
21004 {
21005   return 0;
21006 }
21007
21008 _ACEOF
21009 if ac_fn_c_try_link "$LINENO"; then :
21010   gcc_cv_math_func_roundf=yes
21011 else
21012   gcc_cv_math_func_roundf=no
21013 fi
21014 rm -f core conftest.err conftest.$ac_objext \
21015     conftest$ac_exeext conftest.$ac_ext
21016 fi
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21018 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21019   if test $gcc_cv_math_func_roundf = yes; then
21020
21021 cat >>confdefs.h <<_ACEOF
21022 #define HAVE_ROUNDF 1
21023 _ACEOF
21024
21025   fi
21026
21027
21028
21029
21030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21031 $as_echo_n "checking for round... " >&6; }
21032 if test "${gcc_cv_math_func_round+set}" = set; then :
21033   $as_echo_n "(cached) " >&6
21034 else
21035   if test x$gcc_no_link = xyes; then
21036   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21037 fi
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h.  */
21040
21041 #ifdef HAVE_COMPLEX_H
21042 #include <complex.h>
21043 #endif
21044 #ifdef HAVE_MATH_H
21045 #include <math.h>
21046 #endif
21047
21048 int (*ptr)() = (int (*)())round;
21049
21050 int
21051 main ()
21052 {
21053   return 0;
21054 }
21055
21056 _ACEOF
21057 if ac_fn_c_try_link "$LINENO"; then :
21058   gcc_cv_math_func_round=yes
21059 else
21060   gcc_cv_math_func_round=no
21061 fi
21062 rm -f core conftest.err conftest.$ac_objext \
21063     conftest$ac_exeext conftest.$ac_ext
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21066 $as_echo "$gcc_cv_math_func_round" >&6; }
21067   if test $gcc_cv_math_func_round = yes; then
21068
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_ROUND 1
21071 _ACEOF
21072
21073   fi
21074
21075
21076
21077
21078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21079 $as_echo_n "checking for roundl... " >&6; }
21080 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21081   $as_echo_n "(cached) " >&6
21082 else
21083   if test x$gcc_no_link = xyes; then
21084   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21085 fi
21086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h.  */
21088
21089 #ifdef HAVE_COMPLEX_H
21090 #include <complex.h>
21091 #endif
21092 #ifdef HAVE_MATH_H
21093 #include <math.h>
21094 #endif
21095
21096 int (*ptr)() = (int (*)())roundl;
21097
21098 int
21099 main ()
21100 {
21101   return 0;
21102 }
21103
21104 _ACEOF
21105 if ac_fn_c_try_link "$LINENO"; then :
21106   gcc_cv_math_func_roundl=yes
21107 else
21108   gcc_cv_math_func_roundl=no
21109 fi
21110 rm -f core conftest.err conftest.$ac_objext \
21111     conftest$ac_exeext conftest.$ac_ext
21112 fi
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21114 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21115   if test $gcc_cv_math_func_roundl = yes; then
21116
21117 cat >>confdefs.h <<_ACEOF
21118 #define HAVE_ROUNDL 1
21119 _ACEOF
21120
21121   fi
21122
21123
21124
21125
21126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21127 $as_echo_n "checking for lroundf... " >&6; }
21128 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21129   $as_echo_n "(cached) " >&6
21130 else
21131   if test x$gcc_no_link = xyes; then
21132   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21133 fi
21134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h.  */
21136
21137 #ifdef HAVE_COMPLEX_H
21138 #include <complex.h>
21139 #endif
21140 #ifdef HAVE_MATH_H
21141 #include <math.h>
21142 #endif
21143
21144 int (*ptr)() = (int (*)())lroundf;
21145
21146 int
21147 main ()
21148 {
21149   return 0;
21150 }
21151
21152 _ACEOF
21153 if ac_fn_c_try_link "$LINENO"; then :
21154   gcc_cv_math_func_lroundf=yes
21155 else
21156   gcc_cv_math_func_lroundf=no
21157 fi
21158 rm -f core conftest.err conftest.$ac_objext \
21159     conftest$ac_exeext conftest.$ac_ext
21160 fi
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21162 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21163   if test $gcc_cv_math_func_lroundf = yes; then
21164
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_LROUNDF 1
21167 _ACEOF
21168
21169   fi
21170
21171
21172
21173
21174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21175 $as_echo_n "checking for lround... " >&6; }
21176 if test "${gcc_cv_math_func_lround+set}" = set; then :
21177   $as_echo_n "(cached) " >&6
21178 else
21179   if test x$gcc_no_link = xyes; then
21180   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21181 fi
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h.  */
21184
21185 #ifdef HAVE_COMPLEX_H
21186 #include <complex.h>
21187 #endif
21188 #ifdef HAVE_MATH_H
21189 #include <math.h>
21190 #endif
21191
21192 int (*ptr)() = (int (*)())lround;
21193
21194 int
21195 main ()
21196 {
21197   return 0;
21198 }
21199
21200 _ACEOF
21201 if ac_fn_c_try_link "$LINENO"; then :
21202   gcc_cv_math_func_lround=yes
21203 else
21204   gcc_cv_math_func_lround=no
21205 fi
21206 rm -f core conftest.err conftest.$ac_objext \
21207     conftest$ac_exeext conftest.$ac_ext
21208 fi
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21210 $as_echo "$gcc_cv_math_func_lround" >&6; }
21211   if test $gcc_cv_math_func_lround = yes; then
21212
21213 cat >>confdefs.h <<_ACEOF
21214 #define HAVE_LROUND 1
21215 _ACEOF
21216
21217   fi
21218
21219
21220
21221
21222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21223 $as_echo_n "checking for lroundl... " >&6; }
21224 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21225   $as_echo_n "(cached) " >&6
21226 else
21227   if test x$gcc_no_link = xyes; then
21228   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21229 fi
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h.  */
21232
21233 #ifdef HAVE_COMPLEX_H
21234 #include <complex.h>
21235 #endif
21236 #ifdef HAVE_MATH_H
21237 #include <math.h>
21238 #endif
21239
21240 int (*ptr)() = (int (*)())lroundl;
21241
21242 int
21243 main ()
21244 {
21245   return 0;
21246 }
21247
21248 _ACEOF
21249 if ac_fn_c_try_link "$LINENO"; then :
21250   gcc_cv_math_func_lroundl=yes
21251 else
21252   gcc_cv_math_func_lroundl=no
21253 fi
21254 rm -f core conftest.err conftest.$ac_objext \
21255     conftest$ac_exeext conftest.$ac_ext
21256 fi
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21258 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21259   if test $gcc_cv_math_func_lroundl = yes; then
21260
21261 cat >>confdefs.h <<_ACEOF
21262 #define HAVE_LROUNDL 1
21263 _ACEOF
21264
21265   fi
21266
21267
21268
21269
21270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21271 $as_echo_n "checking for llroundf... " >&6; }
21272 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21273   $as_echo_n "(cached) " >&6
21274 else
21275   if test x$gcc_no_link = xyes; then
21276   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21277 fi
21278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279 /* end confdefs.h.  */
21280
21281 #ifdef HAVE_COMPLEX_H
21282 #include <complex.h>
21283 #endif
21284 #ifdef HAVE_MATH_H
21285 #include <math.h>
21286 #endif
21287
21288 int (*ptr)() = (int (*)())llroundf;
21289
21290 int
21291 main ()
21292 {
21293   return 0;
21294 }
21295
21296 _ACEOF
21297 if ac_fn_c_try_link "$LINENO"; then :
21298   gcc_cv_math_func_llroundf=yes
21299 else
21300   gcc_cv_math_func_llroundf=no
21301 fi
21302 rm -f core conftest.err conftest.$ac_objext \
21303     conftest$ac_exeext conftest.$ac_ext
21304 fi
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21306 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21307   if test $gcc_cv_math_func_llroundf = yes; then
21308
21309 cat >>confdefs.h <<_ACEOF
21310 #define HAVE_LLROUNDF 1
21311 _ACEOF
21312
21313   fi
21314
21315
21316
21317
21318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21319 $as_echo_n "checking for llround... " >&6; }
21320 if test "${gcc_cv_math_func_llround+set}" = set; then :
21321   $as_echo_n "(cached) " >&6
21322 else
21323   if test x$gcc_no_link = xyes; then
21324   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21325 fi
21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h.  */
21328
21329 #ifdef HAVE_COMPLEX_H
21330 #include <complex.h>
21331 #endif
21332 #ifdef HAVE_MATH_H
21333 #include <math.h>
21334 #endif
21335
21336 int (*ptr)() = (int (*)())llround;
21337
21338 int
21339 main ()
21340 {
21341   return 0;
21342 }
21343
21344 _ACEOF
21345 if ac_fn_c_try_link "$LINENO"; then :
21346   gcc_cv_math_func_llround=yes
21347 else
21348   gcc_cv_math_func_llround=no
21349 fi
21350 rm -f core conftest.err conftest.$ac_objext \
21351     conftest$ac_exeext conftest.$ac_ext
21352 fi
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21354 $as_echo "$gcc_cv_math_func_llround" >&6; }
21355   if test $gcc_cv_math_func_llround = yes; then
21356
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_LLROUND 1
21359 _ACEOF
21360
21361   fi
21362
21363
21364
21365
21366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21367 $as_echo_n "checking for llroundl... " >&6; }
21368 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21369   $as_echo_n "(cached) " >&6
21370 else
21371   if test x$gcc_no_link = xyes; then
21372   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21373 fi
21374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21375 /* end confdefs.h.  */
21376
21377 #ifdef HAVE_COMPLEX_H
21378 #include <complex.h>
21379 #endif
21380 #ifdef HAVE_MATH_H
21381 #include <math.h>
21382 #endif
21383
21384 int (*ptr)() = (int (*)())llroundl;
21385
21386 int
21387 main ()
21388 {
21389   return 0;
21390 }
21391
21392 _ACEOF
21393 if ac_fn_c_try_link "$LINENO"; then :
21394   gcc_cv_math_func_llroundl=yes
21395 else
21396   gcc_cv_math_func_llroundl=no
21397 fi
21398 rm -f core conftest.err conftest.$ac_objext \
21399     conftest$ac_exeext conftest.$ac_ext
21400 fi
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21402 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21403   if test $gcc_cv_math_func_llroundl = yes; then
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define HAVE_LLROUNDL 1
21407 _ACEOF
21408
21409   fi
21410
21411
21412
21413
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21415 $as_echo_n "checking for scalbnf... " >&6; }
21416 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21417   $as_echo_n "(cached) " >&6
21418 else
21419   if test x$gcc_no_link = xyes; then
21420   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21421 fi
21422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21423 /* end confdefs.h.  */
21424
21425 #ifdef HAVE_COMPLEX_H
21426 #include <complex.h>
21427 #endif
21428 #ifdef HAVE_MATH_H
21429 #include <math.h>
21430 #endif
21431
21432 int (*ptr)() = (int (*)())scalbnf;
21433
21434 int
21435 main ()
21436 {
21437   return 0;
21438 }
21439
21440 _ACEOF
21441 if ac_fn_c_try_link "$LINENO"; then :
21442   gcc_cv_math_func_scalbnf=yes
21443 else
21444   gcc_cv_math_func_scalbnf=no
21445 fi
21446 rm -f core conftest.err conftest.$ac_objext \
21447     conftest$ac_exeext conftest.$ac_ext
21448 fi
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21450 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21451   if test $gcc_cv_math_func_scalbnf = yes; then
21452
21453 cat >>confdefs.h <<_ACEOF
21454 #define HAVE_SCALBNF 1
21455 _ACEOF
21456
21457   fi
21458
21459
21460
21461
21462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21463 $as_echo_n "checking for scalbn... " >&6; }
21464 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21465   $as_echo_n "(cached) " >&6
21466 else
21467   if test x$gcc_no_link = xyes; then
21468   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21469 fi
21470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21471 /* end confdefs.h.  */
21472
21473 #ifdef HAVE_COMPLEX_H
21474 #include <complex.h>
21475 #endif
21476 #ifdef HAVE_MATH_H
21477 #include <math.h>
21478 #endif
21479
21480 int (*ptr)() = (int (*)())scalbn;
21481
21482 int
21483 main ()
21484 {
21485   return 0;
21486 }
21487
21488 _ACEOF
21489 if ac_fn_c_try_link "$LINENO"; then :
21490   gcc_cv_math_func_scalbn=yes
21491 else
21492   gcc_cv_math_func_scalbn=no
21493 fi
21494 rm -f core conftest.err conftest.$ac_objext \
21495     conftest$ac_exeext conftest.$ac_ext
21496 fi
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21498 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21499   if test $gcc_cv_math_func_scalbn = yes; then
21500
21501 cat >>confdefs.h <<_ACEOF
21502 #define HAVE_SCALBN 1
21503 _ACEOF
21504
21505   fi
21506
21507
21508
21509
21510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21511 $as_echo_n "checking for scalbnl... " >&6; }
21512 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21513   $as_echo_n "(cached) " >&6
21514 else
21515   if test x$gcc_no_link = xyes; then
21516   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21517 fi
21518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h.  */
21520
21521 #ifdef HAVE_COMPLEX_H
21522 #include <complex.h>
21523 #endif
21524 #ifdef HAVE_MATH_H
21525 #include <math.h>
21526 #endif
21527
21528 int (*ptr)() = (int (*)())scalbnl;
21529
21530 int
21531 main ()
21532 {
21533   return 0;
21534 }
21535
21536 _ACEOF
21537 if ac_fn_c_try_link "$LINENO"; then :
21538   gcc_cv_math_func_scalbnl=yes
21539 else
21540   gcc_cv_math_func_scalbnl=no
21541 fi
21542 rm -f core conftest.err conftest.$ac_objext \
21543     conftest$ac_exeext conftest.$ac_ext
21544 fi
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21546 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21547   if test $gcc_cv_math_func_scalbnl = yes; then
21548
21549 cat >>confdefs.h <<_ACEOF
21550 #define HAVE_SCALBNL 1
21551 _ACEOF
21552
21553   fi
21554
21555
21556
21557
21558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21559 $as_echo_n "checking for sinf... " >&6; }
21560 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21561   $as_echo_n "(cached) " >&6
21562 else
21563   if test x$gcc_no_link = xyes; then
21564   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21565 fi
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h.  */
21568
21569 #ifdef HAVE_COMPLEX_H
21570 #include <complex.h>
21571 #endif
21572 #ifdef HAVE_MATH_H
21573 #include <math.h>
21574 #endif
21575
21576 int (*ptr)() = (int (*)())sinf;
21577
21578 int
21579 main ()
21580 {
21581   return 0;
21582 }
21583
21584 _ACEOF
21585 if ac_fn_c_try_link "$LINENO"; then :
21586   gcc_cv_math_func_sinf=yes
21587 else
21588   gcc_cv_math_func_sinf=no
21589 fi
21590 rm -f core conftest.err conftest.$ac_objext \
21591     conftest$ac_exeext conftest.$ac_ext
21592 fi
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21594 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21595   if test $gcc_cv_math_func_sinf = yes; then
21596
21597 cat >>confdefs.h <<_ACEOF
21598 #define HAVE_SINF 1
21599 _ACEOF
21600
21601   fi
21602
21603
21604
21605
21606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21607 $as_echo_n "checking for sin... " >&6; }
21608 if test "${gcc_cv_math_func_sin+set}" = set; then :
21609   $as_echo_n "(cached) " >&6
21610 else
21611   if test x$gcc_no_link = xyes; then
21612   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21613 fi
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h.  */
21616
21617 #ifdef HAVE_COMPLEX_H
21618 #include <complex.h>
21619 #endif
21620 #ifdef HAVE_MATH_H
21621 #include <math.h>
21622 #endif
21623
21624 int (*ptr)() = (int (*)())sin;
21625
21626 int
21627 main ()
21628 {
21629   return 0;
21630 }
21631
21632 _ACEOF
21633 if ac_fn_c_try_link "$LINENO"; then :
21634   gcc_cv_math_func_sin=yes
21635 else
21636   gcc_cv_math_func_sin=no
21637 fi
21638 rm -f core conftest.err conftest.$ac_objext \
21639     conftest$ac_exeext conftest.$ac_ext
21640 fi
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21642 $as_echo "$gcc_cv_math_func_sin" >&6; }
21643   if test $gcc_cv_math_func_sin = yes; then
21644
21645 cat >>confdefs.h <<_ACEOF
21646 #define HAVE_SIN 1
21647 _ACEOF
21648
21649   fi
21650
21651
21652
21653
21654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21655 $as_echo_n "checking for sinl... " >&6; }
21656 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21657   $as_echo_n "(cached) " >&6
21658 else
21659   if test x$gcc_no_link = xyes; then
21660   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21661 fi
21662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h.  */
21664
21665 #ifdef HAVE_COMPLEX_H
21666 #include <complex.h>
21667 #endif
21668 #ifdef HAVE_MATH_H
21669 #include <math.h>
21670 #endif
21671
21672 int (*ptr)() = (int (*)())sinl;
21673
21674 int
21675 main ()
21676 {
21677   return 0;
21678 }
21679
21680 _ACEOF
21681 if ac_fn_c_try_link "$LINENO"; then :
21682   gcc_cv_math_func_sinl=yes
21683 else
21684   gcc_cv_math_func_sinl=no
21685 fi
21686 rm -f core conftest.err conftest.$ac_objext \
21687     conftest$ac_exeext conftest.$ac_ext
21688 fi
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21690 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21691   if test $gcc_cv_math_func_sinl = yes; then
21692
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_SINL 1
21695 _ACEOF
21696
21697   fi
21698
21699
21700
21701
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21703 $as_echo_n "checking for csinf... " >&6; }
21704 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21705   $as_echo_n "(cached) " >&6
21706 else
21707   if test x$gcc_no_link = xyes; then
21708   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21709 fi
21710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21711 /* end confdefs.h.  */
21712
21713 #ifdef HAVE_COMPLEX_H
21714 #include <complex.h>
21715 #endif
21716 #ifdef HAVE_MATH_H
21717 #include <math.h>
21718 #endif
21719
21720 int (*ptr)() = (int (*)())csinf;
21721
21722 int
21723 main ()
21724 {
21725   return 0;
21726 }
21727
21728 _ACEOF
21729 if ac_fn_c_try_link "$LINENO"; then :
21730   gcc_cv_math_func_csinf=yes
21731 else
21732   gcc_cv_math_func_csinf=no
21733 fi
21734 rm -f core conftest.err conftest.$ac_objext \
21735     conftest$ac_exeext conftest.$ac_ext
21736 fi
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21738 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21739   if test $gcc_cv_math_func_csinf = yes; then
21740
21741 cat >>confdefs.h <<_ACEOF
21742 #define HAVE_CSINF 1
21743 _ACEOF
21744
21745   fi
21746
21747
21748
21749
21750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21751 $as_echo_n "checking for csin... " >&6; }
21752 if test "${gcc_cv_math_func_csin+set}" = set; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755   if test x$gcc_no_link = xyes; then
21756   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21757 fi
21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h.  */
21760
21761 #ifdef HAVE_COMPLEX_H
21762 #include <complex.h>
21763 #endif
21764 #ifdef HAVE_MATH_H
21765 #include <math.h>
21766 #endif
21767
21768 int (*ptr)() = (int (*)())csin;
21769
21770 int
21771 main ()
21772 {
21773   return 0;
21774 }
21775
21776 _ACEOF
21777 if ac_fn_c_try_link "$LINENO"; then :
21778   gcc_cv_math_func_csin=yes
21779 else
21780   gcc_cv_math_func_csin=no
21781 fi
21782 rm -f core conftest.err conftest.$ac_objext \
21783     conftest$ac_exeext conftest.$ac_ext
21784 fi
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21786 $as_echo "$gcc_cv_math_func_csin" >&6; }
21787   if test $gcc_cv_math_func_csin = yes; then
21788
21789 cat >>confdefs.h <<_ACEOF
21790 #define HAVE_CSIN 1
21791 _ACEOF
21792
21793   fi
21794
21795
21796
21797
21798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21799 $as_echo_n "checking for csinl... " >&6; }
21800 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21801   $as_echo_n "(cached) " >&6
21802 else
21803   if test x$gcc_no_link = xyes; then
21804   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21805 fi
21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807 /* end confdefs.h.  */
21808
21809 #ifdef HAVE_COMPLEX_H
21810 #include <complex.h>
21811 #endif
21812 #ifdef HAVE_MATH_H
21813 #include <math.h>
21814 #endif
21815
21816 int (*ptr)() = (int (*)())csinl;
21817
21818 int
21819 main ()
21820 {
21821   return 0;
21822 }
21823
21824 _ACEOF
21825 if ac_fn_c_try_link "$LINENO"; then :
21826   gcc_cv_math_func_csinl=yes
21827 else
21828   gcc_cv_math_func_csinl=no
21829 fi
21830 rm -f core conftest.err conftest.$ac_objext \
21831     conftest$ac_exeext conftest.$ac_ext
21832 fi
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21834 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21835   if test $gcc_cv_math_func_csinl = yes; then
21836
21837 cat >>confdefs.h <<_ACEOF
21838 #define HAVE_CSINL 1
21839 _ACEOF
21840
21841   fi
21842
21843
21844
21845
21846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21847 $as_echo_n "checking for sinhf... " >&6; }
21848 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21849   $as_echo_n "(cached) " >&6
21850 else
21851   if test x$gcc_no_link = xyes; then
21852   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21853 fi
21854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855 /* end confdefs.h.  */
21856
21857 #ifdef HAVE_COMPLEX_H
21858 #include <complex.h>
21859 #endif
21860 #ifdef HAVE_MATH_H
21861 #include <math.h>
21862 #endif
21863
21864 int (*ptr)() = (int (*)())sinhf;
21865
21866 int
21867 main ()
21868 {
21869   return 0;
21870 }
21871
21872 _ACEOF
21873 if ac_fn_c_try_link "$LINENO"; then :
21874   gcc_cv_math_func_sinhf=yes
21875 else
21876   gcc_cv_math_func_sinhf=no
21877 fi
21878 rm -f core conftest.err conftest.$ac_objext \
21879     conftest$ac_exeext conftest.$ac_ext
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21882 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21883   if test $gcc_cv_math_func_sinhf = yes; then
21884
21885 cat >>confdefs.h <<_ACEOF
21886 #define HAVE_SINHF 1
21887 _ACEOF
21888
21889   fi
21890
21891
21892
21893
21894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21895 $as_echo_n "checking for sinh... " >&6; }
21896 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21897   $as_echo_n "(cached) " >&6
21898 else
21899   if test x$gcc_no_link = xyes; then
21900   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21901 fi
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h.  */
21904
21905 #ifdef HAVE_COMPLEX_H
21906 #include <complex.h>
21907 #endif
21908 #ifdef HAVE_MATH_H
21909 #include <math.h>
21910 #endif
21911
21912 int (*ptr)() = (int (*)())sinh;
21913
21914 int
21915 main ()
21916 {
21917   return 0;
21918 }
21919
21920 _ACEOF
21921 if ac_fn_c_try_link "$LINENO"; then :
21922   gcc_cv_math_func_sinh=yes
21923 else
21924   gcc_cv_math_func_sinh=no
21925 fi
21926 rm -f core conftest.err conftest.$ac_objext \
21927     conftest$ac_exeext conftest.$ac_ext
21928 fi
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21930 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21931   if test $gcc_cv_math_func_sinh = yes; then
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_SINH 1
21935 _ACEOF
21936
21937   fi
21938
21939
21940
21941
21942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21943 $as_echo_n "checking for sinhl... " >&6; }
21944 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21945   $as_echo_n "(cached) " >&6
21946 else
21947   if test x$gcc_no_link = xyes; then
21948   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21949 fi
21950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h.  */
21952
21953 #ifdef HAVE_COMPLEX_H
21954 #include <complex.h>
21955 #endif
21956 #ifdef HAVE_MATH_H
21957 #include <math.h>
21958 #endif
21959
21960 int (*ptr)() = (int (*)())sinhl;
21961
21962 int
21963 main ()
21964 {
21965   return 0;
21966 }
21967
21968 _ACEOF
21969 if ac_fn_c_try_link "$LINENO"; then :
21970   gcc_cv_math_func_sinhl=yes
21971 else
21972   gcc_cv_math_func_sinhl=no
21973 fi
21974 rm -f core conftest.err conftest.$ac_objext \
21975     conftest$ac_exeext conftest.$ac_ext
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
21978 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
21979   if test $gcc_cv_math_func_sinhl = yes; then
21980
21981 cat >>confdefs.h <<_ACEOF
21982 #define HAVE_SINHL 1
21983 _ACEOF
21984
21985   fi
21986
21987
21988
21989
21990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
21991 $as_echo_n "checking for csinhf... " >&6; }
21992 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
21993   $as_echo_n "(cached) " >&6
21994 else
21995   if test x$gcc_no_link = xyes; then
21996   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21997 fi
21998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999 /* end confdefs.h.  */
22000
22001 #ifdef HAVE_COMPLEX_H
22002 #include <complex.h>
22003 #endif
22004 #ifdef HAVE_MATH_H
22005 #include <math.h>
22006 #endif
22007
22008 int (*ptr)() = (int (*)())csinhf;
22009
22010 int
22011 main ()
22012 {
22013   return 0;
22014 }
22015
22016 _ACEOF
22017 if ac_fn_c_try_link "$LINENO"; then :
22018   gcc_cv_math_func_csinhf=yes
22019 else
22020   gcc_cv_math_func_csinhf=no
22021 fi
22022 rm -f core conftest.err conftest.$ac_objext \
22023     conftest$ac_exeext conftest.$ac_ext
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22026 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22027   if test $gcc_cv_math_func_csinhf = yes; then
22028
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_CSINHF 1
22031 _ACEOF
22032
22033   fi
22034
22035
22036
22037
22038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22039 $as_echo_n "checking for csinh... " >&6; }
22040 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22041   $as_echo_n "(cached) " >&6
22042 else
22043   if test x$gcc_no_link = xyes; then
22044   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22045 fi
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h.  */
22048
22049 #ifdef HAVE_COMPLEX_H
22050 #include <complex.h>
22051 #endif
22052 #ifdef HAVE_MATH_H
22053 #include <math.h>
22054 #endif
22055
22056 int (*ptr)() = (int (*)())csinh;
22057
22058 int
22059 main ()
22060 {
22061   return 0;
22062 }
22063
22064 _ACEOF
22065 if ac_fn_c_try_link "$LINENO"; then :
22066   gcc_cv_math_func_csinh=yes
22067 else
22068   gcc_cv_math_func_csinh=no
22069 fi
22070 rm -f core conftest.err conftest.$ac_objext \
22071     conftest$ac_exeext conftest.$ac_ext
22072 fi
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22074 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22075   if test $gcc_cv_math_func_csinh = yes; then
22076
22077 cat >>confdefs.h <<_ACEOF
22078 #define HAVE_CSINH 1
22079 _ACEOF
22080
22081   fi
22082
22083
22084
22085
22086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22087 $as_echo_n "checking for csinhl... " >&6; }
22088 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22089   $as_echo_n "(cached) " >&6
22090 else
22091   if test x$gcc_no_link = xyes; then
22092   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22093 fi
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h.  */
22096
22097 #ifdef HAVE_COMPLEX_H
22098 #include <complex.h>
22099 #endif
22100 #ifdef HAVE_MATH_H
22101 #include <math.h>
22102 #endif
22103
22104 int (*ptr)() = (int (*)())csinhl;
22105
22106 int
22107 main ()
22108 {
22109   return 0;
22110 }
22111
22112 _ACEOF
22113 if ac_fn_c_try_link "$LINENO"; then :
22114   gcc_cv_math_func_csinhl=yes
22115 else
22116   gcc_cv_math_func_csinhl=no
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext \
22119     conftest$ac_exeext conftest.$ac_ext
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22122 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22123   if test $gcc_cv_math_func_csinhl = yes; then
22124
22125 cat >>confdefs.h <<_ACEOF
22126 #define HAVE_CSINHL 1
22127 _ACEOF
22128
22129   fi
22130
22131
22132
22133
22134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22135 $as_echo_n "checking for sqrtf... " >&6; }
22136 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22137   $as_echo_n "(cached) " >&6
22138 else
22139   if test x$gcc_no_link = xyes; then
22140   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22141 fi
22142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h.  */
22144
22145 #ifdef HAVE_COMPLEX_H
22146 #include <complex.h>
22147 #endif
22148 #ifdef HAVE_MATH_H
22149 #include <math.h>
22150 #endif
22151
22152 int (*ptr)() = (int (*)())sqrtf;
22153
22154 int
22155 main ()
22156 {
22157   return 0;
22158 }
22159
22160 _ACEOF
22161 if ac_fn_c_try_link "$LINENO"; then :
22162   gcc_cv_math_func_sqrtf=yes
22163 else
22164   gcc_cv_math_func_sqrtf=no
22165 fi
22166 rm -f core conftest.err conftest.$ac_objext \
22167     conftest$ac_exeext conftest.$ac_ext
22168 fi
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22170 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22171   if test $gcc_cv_math_func_sqrtf = yes; then
22172
22173 cat >>confdefs.h <<_ACEOF
22174 #define HAVE_SQRTF 1
22175 _ACEOF
22176
22177   fi
22178
22179
22180
22181
22182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22183 $as_echo_n "checking for sqrt... " >&6; }
22184 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22185   $as_echo_n "(cached) " >&6
22186 else
22187   if test x$gcc_no_link = xyes; then
22188   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22189 fi
22190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h.  */
22192
22193 #ifdef HAVE_COMPLEX_H
22194 #include <complex.h>
22195 #endif
22196 #ifdef HAVE_MATH_H
22197 #include <math.h>
22198 #endif
22199
22200 int (*ptr)() = (int (*)())sqrt;
22201
22202 int
22203 main ()
22204 {
22205   return 0;
22206 }
22207
22208 _ACEOF
22209 if ac_fn_c_try_link "$LINENO"; then :
22210   gcc_cv_math_func_sqrt=yes
22211 else
22212   gcc_cv_math_func_sqrt=no
22213 fi
22214 rm -f core conftest.err conftest.$ac_objext \
22215     conftest$ac_exeext conftest.$ac_ext
22216 fi
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22218 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22219   if test $gcc_cv_math_func_sqrt = yes; then
22220
22221 cat >>confdefs.h <<_ACEOF
22222 #define HAVE_SQRT 1
22223 _ACEOF
22224
22225   fi
22226
22227
22228
22229
22230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22231 $as_echo_n "checking for sqrtl... " >&6; }
22232 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22233   $as_echo_n "(cached) " >&6
22234 else
22235   if test x$gcc_no_link = xyes; then
22236   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22237 fi
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h.  */
22240
22241 #ifdef HAVE_COMPLEX_H
22242 #include <complex.h>
22243 #endif
22244 #ifdef HAVE_MATH_H
22245 #include <math.h>
22246 #endif
22247
22248 int (*ptr)() = (int (*)())sqrtl;
22249
22250 int
22251 main ()
22252 {
22253   return 0;
22254 }
22255
22256 _ACEOF
22257 if ac_fn_c_try_link "$LINENO"; then :
22258   gcc_cv_math_func_sqrtl=yes
22259 else
22260   gcc_cv_math_func_sqrtl=no
22261 fi
22262 rm -f core conftest.err conftest.$ac_objext \
22263     conftest$ac_exeext conftest.$ac_ext
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22266 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22267   if test $gcc_cv_math_func_sqrtl = yes; then
22268
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_SQRTL 1
22271 _ACEOF
22272
22273   fi
22274
22275
22276
22277
22278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22279 $as_echo_n "checking for csqrtf... " >&6; }
22280 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   if test x$gcc_no_link = xyes; then
22284   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22285 fi
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h.  */
22288
22289 #ifdef HAVE_COMPLEX_H
22290 #include <complex.h>
22291 #endif
22292 #ifdef HAVE_MATH_H
22293 #include <math.h>
22294 #endif
22295
22296 int (*ptr)() = (int (*)())csqrtf;
22297
22298 int
22299 main ()
22300 {
22301   return 0;
22302 }
22303
22304 _ACEOF
22305 if ac_fn_c_try_link "$LINENO"; then :
22306   gcc_cv_math_func_csqrtf=yes
22307 else
22308   gcc_cv_math_func_csqrtf=no
22309 fi
22310 rm -f core conftest.err conftest.$ac_objext \
22311     conftest$ac_exeext conftest.$ac_ext
22312 fi
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22314 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22315   if test $gcc_cv_math_func_csqrtf = yes; then
22316
22317 cat >>confdefs.h <<_ACEOF
22318 #define HAVE_CSQRTF 1
22319 _ACEOF
22320
22321   fi
22322
22323
22324
22325
22326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22327 $as_echo_n "checking for csqrt... " >&6; }
22328 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22329   $as_echo_n "(cached) " >&6
22330 else
22331   if test x$gcc_no_link = xyes; then
22332   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22333 fi
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h.  */
22336
22337 #ifdef HAVE_COMPLEX_H
22338 #include <complex.h>
22339 #endif
22340 #ifdef HAVE_MATH_H
22341 #include <math.h>
22342 #endif
22343
22344 int (*ptr)() = (int (*)())csqrt;
22345
22346 int
22347 main ()
22348 {
22349   return 0;
22350 }
22351
22352 _ACEOF
22353 if ac_fn_c_try_link "$LINENO"; then :
22354   gcc_cv_math_func_csqrt=yes
22355 else
22356   gcc_cv_math_func_csqrt=no
22357 fi
22358 rm -f core conftest.err conftest.$ac_objext \
22359     conftest$ac_exeext conftest.$ac_ext
22360 fi
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22362 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22363   if test $gcc_cv_math_func_csqrt = yes; then
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_CSQRT 1
22367 _ACEOF
22368
22369   fi
22370
22371
22372
22373
22374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22375 $as_echo_n "checking for csqrtl... " >&6; }
22376 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22377   $as_echo_n "(cached) " >&6
22378 else
22379   if test x$gcc_no_link = xyes; then
22380   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22381 fi
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h.  */
22384
22385 #ifdef HAVE_COMPLEX_H
22386 #include <complex.h>
22387 #endif
22388 #ifdef HAVE_MATH_H
22389 #include <math.h>
22390 #endif
22391
22392 int (*ptr)() = (int (*)())csqrtl;
22393
22394 int
22395 main ()
22396 {
22397   return 0;
22398 }
22399
22400 _ACEOF
22401 if ac_fn_c_try_link "$LINENO"; then :
22402   gcc_cv_math_func_csqrtl=yes
22403 else
22404   gcc_cv_math_func_csqrtl=no
22405 fi
22406 rm -f core conftest.err conftest.$ac_objext \
22407     conftest$ac_exeext conftest.$ac_ext
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22410 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22411   if test $gcc_cv_math_func_csqrtl = yes; then
22412
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_CSQRTL 1
22415 _ACEOF
22416
22417   fi
22418
22419
22420
22421
22422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22423 $as_echo_n "checking for tanf... " >&6; }
22424 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22425   $as_echo_n "(cached) " >&6
22426 else
22427   if test x$gcc_no_link = xyes; then
22428   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22429 fi
22430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431 /* end confdefs.h.  */
22432
22433 #ifdef HAVE_COMPLEX_H
22434 #include <complex.h>
22435 #endif
22436 #ifdef HAVE_MATH_H
22437 #include <math.h>
22438 #endif
22439
22440 int (*ptr)() = (int (*)())tanf;
22441
22442 int
22443 main ()
22444 {
22445   return 0;
22446 }
22447
22448 _ACEOF
22449 if ac_fn_c_try_link "$LINENO"; then :
22450   gcc_cv_math_func_tanf=yes
22451 else
22452   gcc_cv_math_func_tanf=no
22453 fi
22454 rm -f core conftest.err conftest.$ac_objext \
22455     conftest$ac_exeext conftest.$ac_ext
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22458 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22459   if test $gcc_cv_math_func_tanf = yes; then
22460
22461 cat >>confdefs.h <<_ACEOF
22462 #define HAVE_TANF 1
22463 _ACEOF
22464
22465   fi
22466
22467
22468
22469
22470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22471 $as_echo_n "checking for tan... " >&6; }
22472 if test "${gcc_cv_math_func_tan+set}" = set; then :
22473   $as_echo_n "(cached) " >&6
22474 else
22475   if test x$gcc_no_link = xyes; then
22476   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22477 fi
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h.  */
22480
22481 #ifdef HAVE_COMPLEX_H
22482 #include <complex.h>
22483 #endif
22484 #ifdef HAVE_MATH_H
22485 #include <math.h>
22486 #endif
22487
22488 int (*ptr)() = (int (*)())tan;
22489
22490 int
22491 main ()
22492 {
22493   return 0;
22494 }
22495
22496 _ACEOF
22497 if ac_fn_c_try_link "$LINENO"; then :
22498   gcc_cv_math_func_tan=yes
22499 else
22500   gcc_cv_math_func_tan=no
22501 fi
22502 rm -f core conftest.err conftest.$ac_objext \
22503     conftest$ac_exeext conftest.$ac_ext
22504 fi
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22506 $as_echo "$gcc_cv_math_func_tan" >&6; }
22507   if test $gcc_cv_math_func_tan = yes; then
22508
22509 cat >>confdefs.h <<_ACEOF
22510 #define HAVE_TAN 1
22511 _ACEOF
22512
22513   fi
22514
22515
22516
22517
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22519 $as_echo_n "checking for tanl... " >&6; }
22520 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22521   $as_echo_n "(cached) " >&6
22522 else
22523   if test x$gcc_no_link = xyes; then
22524   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22525 fi
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h.  */
22528
22529 #ifdef HAVE_COMPLEX_H
22530 #include <complex.h>
22531 #endif
22532 #ifdef HAVE_MATH_H
22533 #include <math.h>
22534 #endif
22535
22536 int (*ptr)() = (int (*)())tanl;
22537
22538 int
22539 main ()
22540 {
22541   return 0;
22542 }
22543
22544 _ACEOF
22545 if ac_fn_c_try_link "$LINENO"; then :
22546   gcc_cv_math_func_tanl=yes
22547 else
22548   gcc_cv_math_func_tanl=no
22549 fi
22550 rm -f core conftest.err conftest.$ac_objext \
22551     conftest$ac_exeext conftest.$ac_ext
22552 fi
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22554 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22555   if test $gcc_cv_math_func_tanl = yes; then
22556
22557 cat >>confdefs.h <<_ACEOF
22558 #define HAVE_TANL 1
22559 _ACEOF
22560
22561   fi
22562
22563
22564
22565
22566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22567 $as_echo_n "checking for ctanf... " >&6; }
22568 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22569   $as_echo_n "(cached) " >&6
22570 else
22571   if test x$gcc_no_link = xyes; then
22572   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22573 fi
22574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575 /* end confdefs.h.  */
22576
22577 #ifdef HAVE_COMPLEX_H
22578 #include <complex.h>
22579 #endif
22580 #ifdef HAVE_MATH_H
22581 #include <math.h>
22582 #endif
22583
22584 int (*ptr)() = (int (*)())ctanf;
22585
22586 int
22587 main ()
22588 {
22589   return 0;
22590 }
22591
22592 _ACEOF
22593 if ac_fn_c_try_link "$LINENO"; then :
22594   gcc_cv_math_func_ctanf=yes
22595 else
22596   gcc_cv_math_func_ctanf=no
22597 fi
22598 rm -f core conftest.err conftest.$ac_objext \
22599     conftest$ac_exeext conftest.$ac_ext
22600 fi
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22602 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22603   if test $gcc_cv_math_func_ctanf = yes; then
22604
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_CTANF 1
22607 _ACEOF
22608
22609   fi
22610
22611
22612
22613
22614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22615 $as_echo_n "checking for ctan... " >&6; }
22616 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22617   $as_echo_n "(cached) " >&6
22618 else
22619   if test x$gcc_no_link = xyes; then
22620   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22621 fi
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h.  */
22624
22625 #ifdef HAVE_COMPLEX_H
22626 #include <complex.h>
22627 #endif
22628 #ifdef HAVE_MATH_H
22629 #include <math.h>
22630 #endif
22631
22632 int (*ptr)() = (int (*)())ctan;
22633
22634 int
22635 main ()
22636 {
22637   return 0;
22638 }
22639
22640 _ACEOF
22641 if ac_fn_c_try_link "$LINENO"; then :
22642   gcc_cv_math_func_ctan=yes
22643 else
22644   gcc_cv_math_func_ctan=no
22645 fi
22646 rm -f core conftest.err conftest.$ac_objext \
22647     conftest$ac_exeext conftest.$ac_ext
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22650 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22651   if test $gcc_cv_math_func_ctan = yes; then
22652
22653 cat >>confdefs.h <<_ACEOF
22654 #define HAVE_CTAN 1
22655 _ACEOF
22656
22657   fi
22658
22659
22660
22661
22662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22663 $as_echo_n "checking for ctanl... " >&6; }
22664 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22665   $as_echo_n "(cached) " >&6
22666 else
22667   if test x$gcc_no_link = xyes; then
22668   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22669 fi
22670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22671 /* end confdefs.h.  */
22672
22673 #ifdef HAVE_COMPLEX_H
22674 #include <complex.h>
22675 #endif
22676 #ifdef HAVE_MATH_H
22677 #include <math.h>
22678 #endif
22679
22680 int (*ptr)() = (int (*)())ctanl;
22681
22682 int
22683 main ()
22684 {
22685   return 0;
22686 }
22687
22688 _ACEOF
22689 if ac_fn_c_try_link "$LINENO"; then :
22690   gcc_cv_math_func_ctanl=yes
22691 else
22692   gcc_cv_math_func_ctanl=no
22693 fi
22694 rm -f core conftest.err conftest.$ac_objext \
22695     conftest$ac_exeext conftest.$ac_ext
22696 fi
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22698 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22699   if test $gcc_cv_math_func_ctanl = yes; then
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_CTANL 1
22703 _ACEOF
22704
22705   fi
22706
22707
22708
22709
22710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22711 $as_echo_n "checking for tanhf... " >&6; }
22712 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22713   $as_echo_n "(cached) " >&6
22714 else
22715   if test x$gcc_no_link = xyes; then
22716   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22717 fi
22718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22719 /* end confdefs.h.  */
22720
22721 #ifdef HAVE_COMPLEX_H
22722 #include <complex.h>
22723 #endif
22724 #ifdef HAVE_MATH_H
22725 #include <math.h>
22726 #endif
22727
22728 int (*ptr)() = (int (*)())tanhf;
22729
22730 int
22731 main ()
22732 {
22733   return 0;
22734 }
22735
22736 _ACEOF
22737 if ac_fn_c_try_link "$LINENO"; then :
22738   gcc_cv_math_func_tanhf=yes
22739 else
22740   gcc_cv_math_func_tanhf=no
22741 fi
22742 rm -f core conftest.err conftest.$ac_objext \
22743     conftest$ac_exeext conftest.$ac_ext
22744 fi
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22746 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22747   if test $gcc_cv_math_func_tanhf = yes; then
22748
22749 cat >>confdefs.h <<_ACEOF
22750 #define HAVE_TANHF 1
22751 _ACEOF
22752
22753   fi
22754
22755
22756
22757
22758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22759 $as_echo_n "checking for tanh... " >&6; }
22760 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   if test x$gcc_no_link = xyes; then
22764   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22765 fi
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h.  */
22768
22769 #ifdef HAVE_COMPLEX_H
22770 #include <complex.h>
22771 #endif
22772 #ifdef HAVE_MATH_H
22773 #include <math.h>
22774 #endif
22775
22776 int (*ptr)() = (int (*)())tanh;
22777
22778 int
22779 main ()
22780 {
22781   return 0;
22782 }
22783
22784 _ACEOF
22785 if ac_fn_c_try_link "$LINENO"; then :
22786   gcc_cv_math_func_tanh=yes
22787 else
22788   gcc_cv_math_func_tanh=no
22789 fi
22790 rm -f core conftest.err conftest.$ac_objext \
22791     conftest$ac_exeext conftest.$ac_ext
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22794 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22795   if test $gcc_cv_math_func_tanh = yes; then
22796
22797 cat >>confdefs.h <<_ACEOF
22798 #define HAVE_TANH 1
22799 _ACEOF
22800
22801   fi
22802
22803
22804
22805
22806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22807 $as_echo_n "checking for tanhl... " >&6; }
22808 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22809   $as_echo_n "(cached) " >&6
22810 else
22811   if test x$gcc_no_link = xyes; then
22812   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22813 fi
22814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22815 /* end confdefs.h.  */
22816
22817 #ifdef HAVE_COMPLEX_H
22818 #include <complex.h>
22819 #endif
22820 #ifdef HAVE_MATH_H
22821 #include <math.h>
22822 #endif
22823
22824 int (*ptr)() = (int (*)())tanhl;
22825
22826 int
22827 main ()
22828 {
22829   return 0;
22830 }
22831
22832 _ACEOF
22833 if ac_fn_c_try_link "$LINENO"; then :
22834   gcc_cv_math_func_tanhl=yes
22835 else
22836   gcc_cv_math_func_tanhl=no
22837 fi
22838 rm -f core conftest.err conftest.$ac_objext \
22839     conftest$ac_exeext conftest.$ac_ext
22840 fi
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22842 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22843   if test $gcc_cv_math_func_tanhl = yes; then
22844
22845 cat >>confdefs.h <<_ACEOF
22846 #define HAVE_TANHL 1
22847 _ACEOF
22848
22849   fi
22850
22851
22852
22853
22854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22855 $as_echo_n "checking for ctanhf... " >&6; }
22856 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22857   $as_echo_n "(cached) " >&6
22858 else
22859   if test x$gcc_no_link = xyes; then
22860   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22861 fi
22862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22863 /* end confdefs.h.  */
22864
22865 #ifdef HAVE_COMPLEX_H
22866 #include <complex.h>
22867 #endif
22868 #ifdef HAVE_MATH_H
22869 #include <math.h>
22870 #endif
22871
22872 int (*ptr)() = (int (*)())ctanhf;
22873
22874 int
22875 main ()
22876 {
22877   return 0;
22878 }
22879
22880 _ACEOF
22881 if ac_fn_c_try_link "$LINENO"; then :
22882   gcc_cv_math_func_ctanhf=yes
22883 else
22884   gcc_cv_math_func_ctanhf=no
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext \
22887     conftest$ac_exeext conftest.$ac_ext
22888 fi
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22890 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22891   if test $gcc_cv_math_func_ctanhf = yes; then
22892
22893 cat >>confdefs.h <<_ACEOF
22894 #define HAVE_CTANHF 1
22895 _ACEOF
22896
22897   fi
22898
22899
22900
22901
22902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22903 $as_echo_n "checking for ctanh... " >&6; }
22904 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22905   $as_echo_n "(cached) " >&6
22906 else
22907   if test x$gcc_no_link = xyes; then
22908   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22909 fi
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913 #ifdef HAVE_COMPLEX_H
22914 #include <complex.h>
22915 #endif
22916 #ifdef HAVE_MATH_H
22917 #include <math.h>
22918 #endif
22919
22920 int (*ptr)() = (int (*)())ctanh;
22921
22922 int
22923 main ()
22924 {
22925   return 0;
22926 }
22927
22928 _ACEOF
22929 if ac_fn_c_try_link "$LINENO"; then :
22930   gcc_cv_math_func_ctanh=yes
22931 else
22932   gcc_cv_math_func_ctanh=no
22933 fi
22934 rm -f core conftest.err conftest.$ac_objext \
22935     conftest$ac_exeext conftest.$ac_ext
22936 fi
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22938 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22939   if test $gcc_cv_math_func_ctanh = yes; then
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_CTANH 1
22943 _ACEOF
22944
22945   fi
22946
22947
22948
22949
22950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22951 $as_echo_n "checking for ctanhl... " >&6; }
22952 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
22953   $as_echo_n "(cached) " >&6
22954 else
22955   if test x$gcc_no_link = xyes; then
22956   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22957 fi
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h.  */
22960
22961 #ifdef HAVE_COMPLEX_H
22962 #include <complex.h>
22963 #endif
22964 #ifdef HAVE_MATH_H
22965 #include <math.h>
22966 #endif
22967
22968 int (*ptr)() = (int (*)())ctanhl;
22969
22970 int
22971 main ()
22972 {
22973   return 0;
22974 }
22975
22976 _ACEOF
22977 if ac_fn_c_try_link "$LINENO"; then :
22978   gcc_cv_math_func_ctanhl=yes
22979 else
22980   gcc_cv_math_func_ctanhl=no
22981 fi
22982 rm -f core conftest.err conftest.$ac_objext \
22983     conftest$ac_exeext conftest.$ac_ext
22984 fi
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
22986 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
22987   if test $gcc_cv_math_func_ctanhl = yes; then
22988
22989 cat >>confdefs.h <<_ACEOF
22990 #define HAVE_CTANHL 1
22991 _ACEOF
22992
22993   fi
22994
22995
22996
22997
22998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
22999 $as_echo_n "checking for truncf... " >&6; }
23000 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23001   $as_echo_n "(cached) " >&6
23002 else
23003   if test x$gcc_no_link = xyes; then
23004   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23005 fi
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h.  */
23008
23009 #ifdef HAVE_COMPLEX_H
23010 #include <complex.h>
23011 #endif
23012 #ifdef HAVE_MATH_H
23013 #include <math.h>
23014 #endif
23015
23016 int (*ptr)() = (int (*)())truncf;
23017
23018 int
23019 main ()
23020 {
23021   return 0;
23022 }
23023
23024 _ACEOF
23025 if ac_fn_c_try_link "$LINENO"; then :
23026   gcc_cv_math_func_truncf=yes
23027 else
23028   gcc_cv_math_func_truncf=no
23029 fi
23030 rm -f core conftest.err conftest.$ac_objext \
23031     conftest$ac_exeext conftest.$ac_ext
23032 fi
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23034 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23035   if test $gcc_cv_math_func_truncf = yes; then
23036
23037 cat >>confdefs.h <<_ACEOF
23038 #define HAVE_TRUNCF 1
23039 _ACEOF
23040
23041   fi
23042
23043
23044
23045
23046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23047 $as_echo_n "checking for trunc... " >&6; }
23048 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23049   $as_echo_n "(cached) " >&6
23050 else
23051   if test x$gcc_no_link = xyes; then
23052   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23053 fi
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h.  */
23056
23057 #ifdef HAVE_COMPLEX_H
23058 #include <complex.h>
23059 #endif
23060 #ifdef HAVE_MATH_H
23061 #include <math.h>
23062 #endif
23063
23064 int (*ptr)() = (int (*)())trunc;
23065
23066 int
23067 main ()
23068 {
23069   return 0;
23070 }
23071
23072 _ACEOF
23073 if ac_fn_c_try_link "$LINENO"; then :
23074   gcc_cv_math_func_trunc=yes
23075 else
23076   gcc_cv_math_func_trunc=no
23077 fi
23078 rm -f core conftest.err conftest.$ac_objext \
23079     conftest$ac_exeext conftest.$ac_ext
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23082 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23083   if test $gcc_cv_math_func_trunc = yes; then
23084
23085 cat >>confdefs.h <<_ACEOF
23086 #define HAVE_TRUNC 1
23087 _ACEOF
23088
23089   fi
23090
23091
23092
23093
23094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23095 $as_echo_n "checking for truncl... " >&6; }
23096 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23097   $as_echo_n "(cached) " >&6
23098 else
23099   if test x$gcc_no_link = xyes; then
23100   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23101 fi
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h.  */
23104
23105 #ifdef HAVE_COMPLEX_H
23106 #include <complex.h>
23107 #endif
23108 #ifdef HAVE_MATH_H
23109 #include <math.h>
23110 #endif
23111
23112 int (*ptr)() = (int (*)())truncl;
23113
23114 int
23115 main ()
23116 {
23117   return 0;
23118 }
23119
23120 _ACEOF
23121 if ac_fn_c_try_link "$LINENO"; then :
23122   gcc_cv_math_func_truncl=yes
23123 else
23124   gcc_cv_math_func_truncl=no
23125 fi
23126 rm -f core conftest.err conftest.$ac_objext \
23127     conftest$ac_exeext conftest.$ac_ext
23128 fi
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23130 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23131   if test $gcc_cv_math_func_truncl = yes; then
23132
23133 cat >>confdefs.h <<_ACEOF
23134 #define HAVE_TRUNCL 1
23135 _ACEOF
23136
23137   fi
23138
23139
23140
23141
23142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23143 $as_echo_n "checking for erff... " >&6; }
23144 if test "${gcc_cv_math_func_erff+set}" = set; then :
23145   $as_echo_n "(cached) " >&6
23146 else
23147   if test x$gcc_no_link = xyes; then
23148   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23149 fi
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h.  */
23152
23153 #ifdef HAVE_COMPLEX_H
23154 #include <complex.h>
23155 #endif
23156 #ifdef HAVE_MATH_H
23157 #include <math.h>
23158 #endif
23159
23160 int (*ptr)() = (int (*)())erff;
23161
23162 int
23163 main ()
23164 {
23165   return 0;
23166 }
23167
23168 _ACEOF
23169 if ac_fn_c_try_link "$LINENO"; then :
23170   gcc_cv_math_func_erff=yes
23171 else
23172   gcc_cv_math_func_erff=no
23173 fi
23174 rm -f core conftest.err conftest.$ac_objext \
23175     conftest$ac_exeext conftest.$ac_ext
23176 fi
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23178 $as_echo "$gcc_cv_math_func_erff" >&6; }
23179   if test $gcc_cv_math_func_erff = yes; then
23180
23181 cat >>confdefs.h <<_ACEOF
23182 #define HAVE_ERFF 1
23183 _ACEOF
23184
23185   fi
23186
23187
23188
23189
23190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23191 $as_echo_n "checking for erf... " >&6; }
23192 if test "${gcc_cv_math_func_erf+set}" = set; then :
23193   $as_echo_n "(cached) " >&6
23194 else
23195   if test x$gcc_no_link = xyes; then
23196   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23197 fi
23198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199 /* end confdefs.h.  */
23200
23201 #ifdef HAVE_COMPLEX_H
23202 #include <complex.h>
23203 #endif
23204 #ifdef HAVE_MATH_H
23205 #include <math.h>
23206 #endif
23207
23208 int (*ptr)() = (int (*)())erf;
23209
23210 int
23211 main ()
23212 {
23213   return 0;
23214 }
23215
23216 _ACEOF
23217 if ac_fn_c_try_link "$LINENO"; then :
23218   gcc_cv_math_func_erf=yes
23219 else
23220   gcc_cv_math_func_erf=no
23221 fi
23222 rm -f core conftest.err conftest.$ac_objext \
23223     conftest$ac_exeext conftest.$ac_ext
23224 fi
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23226 $as_echo "$gcc_cv_math_func_erf" >&6; }
23227   if test $gcc_cv_math_func_erf = yes; then
23228
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_ERF 1
23231 _ACEOF
23232
23233   fi
23234
23235
23236
23237
23238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23239 $as_echo_n "checking for erfl... " >&6; }
23240 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23241   $as_echo_n "(cached) " >&6
23242 else
23243   if test x$gcc_no_link = xyes; then
23244   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23245 fi
23246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23247 /* end confdefs.h.  */
23248
23249 #ifdef HAVE_COMPLEX_H
23250 #include <complex.h>
23251 #endif
23252 #ifdef HAVE_MATH_H
23253 #include <math.h>
23254 #endif
23255
23256 int (*ptr)() = (int (*)())erfl;
23257
23258 int
23259 main ()
23260 {
23261   return 0;
23262 }
23263
23264 _ACEOF
23265 if ac_fn_c_try_link "$LINENO"; then :
23266   gcc_cv_math_func_erfl=yes
23267 else
23268   gcc_cv_math_func_erfl=no
23269 fi
23270 rm -f core conftest.err conftest.$ac_objext \
23271     conftest$ac_exeext conftest.$ac_ext
23272 fi
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23274 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23275   if test $gcc_cv_math_func_erfl = yes; then
23276
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_ERFL 1
23279 _ACEOF
23280
23281   fi
23282
23283
23284
23285
23286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23287 $as_echo_n "checking for erfcf... " >&6; }
23288 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23289   $as_echo_n "(cached) " >&6
23290 else
23291   if test x$gcc_no_link = xyes; then
23292   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23293 fi
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h.  */
23296
23297 #ifdef HAVE_COMPLEX_H
23298 #include <complex.h>
23299 #endif
23300 #ifdef HAVE_MATH_H
23301 #include <math.h>
23302 #endif
23303
23304 int (*ptr)() = (int (*)())erfcf;
23305
23306 int
23307 main ()
23308 {
23309   return 0;
23310 }
23311
23312 _ACEOF
23313 if ac_fn_c_try_link "$LINENO"; then :
23314   gcc_cv_math_func_erfcf=yes
23315 else
23316   gcc_cv_math_func_erfcf=no
23317 fi
23318 rm -f core conftest.err conftest.$ac_objext \
23319     conftest$ac_exeext conftest.$ac_ext
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23322 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23323   if test $gcc_cv_math_func_erfcf = yes; then
23324
23325 cat >>confdefs.h <<_ACEOF
23326 #define HAVE_ERFCF 1
23327 _ACEOF
23328
23329   fi
23330
23331
23332
23333
23334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23335 $as_echo_n "checking for erfc... " >&6; }
23336 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23337   $as_echo_n "(cached) " >&6
23338 else
23339   if test x$gcc_no_link = xyes; then
23340   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23341 fi
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h.  */
23344
23345 #ifdef HAVE_COMPLEX_H
23346 #include <complex.h>
23347 #endif
23348 #ifdef HAVE_MATH_H
23349 #include <math.h>
23350 #endif
23351
23352 int (*ptr)() = (int (*)())erfc;
23353
23354 int
23355 main ()
23356 {
23357   return 0;
23358 }
23359
23360 _ACEOF
23361 if ac_fn_c_try_link "$LINENO"; then :
23362   gcc_cv_math_func_erfc=yes
23363 else
23364   gcc_cv_math_func_erfc=no
23365 fi
23366 rm -f core conftest.err conftest.$ac_objext \
23367     conftest$ac_exeext conftest.$ac_ext
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23370 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23371   if test $gcc_cv_math_func_erfc = yes; then
23372
23373 cat >>confdefs.h <<_ACEOF
23374 #define HAVE_ERFC 1
23375 _ACEOF
23376
23377   fi
23378
23379
23380
23381
23382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23383 $as_echo_n "checking for erfcl... " >&6; }
23384 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23385   $as_echo_n "(cached) " >&6
23386 else
23387   if test x$gcc_no_link = xyes; then
23388   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23389 fi
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391 /* end confdefs.h.  */
23392
23393 #ifdef HAVE_COMPLEX_H
23394 #include <complex.h>
23395 #endif
23396 #ifdef HAVE_MATH_H
23397 #include <math.h>
23398 #endif
23399
23400 int (*ptr)() = (int (*)())erfcl;
23401
23402 int
23403 main ()
23404 {
23405   return 0;
23406 }
23407
23408 _ACEOF
23409 if ac_fn_c_try_link "$LINENO"; then :
23410   gcc_cv_math_func_erfcl=yes
23411 else
23412   gcc_cv_math_func_erfcl=no
23413 fi
23414 rm -f core conftest.err conftest.$ac_objext \
23415     conftest$ac_exeext conftest.$ac_ext
23416 fi
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23418 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23419   if test $gcc_cv_math_func_erfcl = yes; then
23420
23421 cat >>confdefs.h <<_ACEOF
23422 #define HAVE_ERFCL 1
23423 _ACEOF
23424
23425   fi
23426
23427
23428
23429
23430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23431 $as_echo_n "checking for j0f... " >&6; }
23432 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23433   $as_echo_n "(cached) " >&6
23434 else
23435   if test x$gcc_no_link = xyes; then
23436   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23437 fi
23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h.  */
23440
23441 #ifdef HAVE_COMPLEX_H
23442 #include <complex.h>
23443 #endif
23444 #ifdef HAVE_MATH_H
23445 #include <math.h>
23446 #endif
23447
23448 int (*ptr)() = (int (*)())j0f;
23449
23450 int
23451 main ()
23452 {
23453   return 0;
23454 }
23455
23456 _ACEOF
23457 if ac_fn_c_try_link "$LINENO"; then :
23458   gcc_cv_math_func_j0f=yes
23459 else
23460   gcc_cv_math_func_j0f=no
23461 fi
23462 rm -f core conftest.err conftest.$ac_objext \
23463     conftest$ac_exeext conftest.$ac_ext
23464 fi
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23466 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23467   if test $gcc_cv_math_func_j0f = yes; then
23468
23469 cat >>confdefs.h <<_ACEOF
23470 #define HAVE_J0F 1
23471 _ACEOF
23472
23473   fi
23474
23475
23476
23477
23478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23479 $as_echo_n "checking for j0... " >&6; }
23480 if test "${gcc_cv_math_func_j0+set}" = set; then :
23481   $as_echo_n "(cached) " >&6
23482 else
23483   if test x$gcc_no_link = xyes; then
23484   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23485 fi
23486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487 /* end confdefs.h.  */
23488
23489 #ifdef HAVE_COMPLEX_H
23490 #include <complex.h>
23491 #endif
23492 #ifdef HAVE_MATH_H
23493 #include <math.h>
23494 #endif
23495
23496 int (*ptr)() = (int (*)())j0;
23497
23498 int
23499 main ()
23500 {
23501   return 0;
23502 }
23503
23504 _ACEOF
23505 if ac_fn_c_try_link "$LINENO"; then :
23506   gcc_cv_math_func_j0=yes
23507 else
23508   gcc_cv_math_func_j0=no
23509 fi
23510 rm -f core conftest.err conftest.$ac_objext \
23511     conftest$ac_exeext conftest.$ac_ext
23512 fi
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23514 $as_echo "$gcc_cv_math_func_j0" >&6; }
23515   if test $gcc_cv_math_func_j0 = yes; then
23516
23517 cat >>confdefs.h <<_ACEOF
23518 #define HAVE_J0 1
23519 _ACEOF
23520
23521   fi
23522
23523
23524
23525
23526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23527 $as_echo_n "checking for j0l... " >&6; }
23528 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23529   $as_echo_n "(cached) " >&6
23530 else
23531   if test x$gcc_no_link = xyes; then
23532   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23533 fi
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535 /* end confdefs.h.  */
23536
23537 #ifdef HAVE_COMPLEX_H
23538 #include <complex.h>
23539 #endif
23540 #ifdef HAVE_MATH_H
23541 #include <math.h>
23542 #endif
23543
23544 int (*ptr)() = (int (*)())j0l;
23545
23546 int
23547 main ()
23548 {
23549   return 0;
23550 }
23551
23552 _ACEOF
23553 if ac_fn_c_try_link "$LINENO"; then :
23554   gcc_cv_math_func_j0l=yes
23555 else
23556   gcc_cv_math_func_j0l=no
23557 fi
23558 rm -f core conftest.err conftest.$ac_objext \
23559     conftest$ac_exeext conftest.$ac_ext
23560 fi
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23562 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23563   if test $gcc_cv_math_func_j0l = yes; then
23564
23565 cat >>confdefs.h <<_ACEOF
23566 #define HAVE_J0L 1
23567 _ACEOF
23568
23569   fi
23570
23571
23572
23573
23574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23575 $as_echo_n "checking for j1f... " >&6; }
23576 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23577   $as_echo_n "(cached) " >&6
23578 else
23579   if test x$gcc_no_link = xyes; then
23580   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23581 fi
23582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h.  */
23584
23585 #ifdef HAVE_COMPLEX_H
23586 #include <complex.h>
23587 #endif
23588 #ifdef HAVE_MATH_H
23589 #include <math.h>
23590 #endif
23591
23592 int (*ptr)() = (int (*)())j1f;
23593
23594 int
23595 main ()
23596 {
23597   return 0;
23598 }
23599
23600 _ACEOF
23601 if ac_fn_c_try_link "$LINENO"; then :
23602   gcc_cv_math_func_j1f=yes
23603 else
23604   gcc_cv_math_func_j1f=no
23605 fi
23606 rm -f core conftest.err conftest.$ac_objext \
23607     conftest$ac_exeext conftest.$ac_ext
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23610 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23611   if test $gcc_cv_math_func_j1f = yes; then
23612
23613 cat >>confdefs.h <<_ACEOF
23614 #define HAVE_J1F 1
23615 _ACEOF
23616
23617   fi
23618
23619
23620
23621
23622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23623 $as_echo_n "checking for j1... " >&6; }
23624 if test "${gcc_cv_math_func_j1+set}" = set; then :
23625   $as_echo_n "(cached) " >&6
23626 else
23627   if test x$gcc_no_link = xyes; then
23628   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23629 fi
23630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h.  */
23632
23633 #ifdef HAVE_COMPLEX_H
23634 #include <complex.h>
23635 #endif
23636 #ifdef HAVE_MATH_H
23637 #include <math.h>
23638 #endif
23639
23640 int (*ptr)() = (int (*)())j1;
23641
23642 int
23643 main ()
23644 {
23645   return 0;
23646 }
23647
23648 _ACEOF
23649 if ac_fn_c_try_link "$LINENO"; then :
23650   gcc_cv_math_func_j1=yes
23651 else
23652   gcc_cv_math_func_j1=no
23653 fi
23654 rm -f core conftest.err conftest.$ac_objext \
23655     conftest$ac_exeext conftest.$ac_ext
23656 fi
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23658 $as_echo "$gcc_cv_math_func_j1" >&6; }
23659   if test $gcc_cv_math_func_j1 = yes; then
23660
23661 cat >>confdefs.h <<_ACEOF
23662 #define HAVE_J1 1
23663 _ACEOF
23664
23665   fi
23666
23667
23668
23669
23670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23671 $as_echo_n "checking for j1l... " >&6; }
23672 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23673   $as_echo_n "(cached) " >&6
23674 else
23675   if test x$gcc_no_link = xyes; then
23676   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23677 fi
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679 /* end confdefs.h.  */
23680
23681 #ifdef HAVE_COMPLEX_H
23682 #include <complex.h>
23683 #endif
23684 #ifdef HAVE_MATH_H
23685 #include <math.h>
23686 #endif
23687
23688 int (*ptr)() = (int (*)())j1l;
23689
23690 int
23691 main ()
23692 {
23693   return 0;
23694 }
23695
23696 _ACEOF
23697 if ac_fn_c_try_link "$LINENO"; then :
23698   gcc_cv_math_func_j1l=yes
23699 else
23700   gcc_cv_math_func_j1l=no
23701 fi
23702 rm -f core conftest.err conftest.$ac_objext \
23703     conftest$ac_exeext conftest.$ac_ext
23704 fi
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23706 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23707   if test $gcc_cv_math_func_j1l = yes; then
23708
23709 cat >>confdefs.h <<_ACEOF
23710 #define HAVE_J1L 1
23711 _ACEOF
23712
23713   fi
23714
23715
23716
23717
23718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23719 $as_echo_n "checking for jnf... " >&6; }
23720 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23721   $as_echo_n "(cached) " >&6
23722 else
23723   if test x$gcc_no_link = xyes; then
23724   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23725 fi
23726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23727 /* end confdefs.h.  */
23728
23729 #ifdef HAVE_COMPLEX_H
23730 #include <complex.h>
23731 #endif
23732 #ifdef HAVE_MATH_H
23733 #include <math.h>
23734 #endif
23735
23736 int (*ptr)() = (int (*)())jnf;
23737
23738 int
23739 main ()
23740 {
23741   return 0;
23742 }
23743
23744 _ACEOF
23745 if ac_fn_c_try_link "$LINENO"; then :
23746   gcc_cv_math_func_jnf=yes
23747 else
23748   gcc_cv_math_func_jnf=no
23749 fi
23750 rm -f core conftest.err conftest.$ac_objext \
23751     conftest$ac_exeext conftest.$ac_ext
23752 fi
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23754 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23755   if test $gcc_cv_math_func_jnf = yes; then
23756
23757 cat >>confdefs.h <<_ACEOF
23758 #define HAVE_JNF 1
23759 _ACEOF
23760
23761   fi
23762
23763
23764
23765
23766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23767 $as_echo_n "checking for jn... " >&6; }
23768 if test "${gcc_cv_math_func_jn+set}" = set; then :
23769   $as_echo_n "(cached) " >&6
23770 else
23771   if test x$gcc_no_link = xyes; then
23772   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23773 fi
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775 /* end confdefs.h.  */
23776
23777 #ifdef HAVE_COMPLEX_H
23778 #include <complex.h>
23779 #endif
23780 #ifdef HAVE_MATH_H
23781 #include <math.h>
23782 #endif
23783
23784 int (*ptr)() = (int (*)())jn;
23785
23786 int
23787 main ()
23788 {
23789   return 0;
23790 }
23791
23792 _ACEOF
23793 if ac_fn_c_try_link "$LINENO"; then :
23794   gcc_cv_math_func_jn=yes
23795 else
23796   gcc_cv_math_func_jn=no
23797 fi
23798 rm -f core conftest.err conftest.$ac_objext \
23799     conftest$ac_exeext conftest.$ac_ext
23800 fi
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23802 $as_echo "$gcc_cv_math_func_jn" >&6; }
23803   if test $gcc_cv_math_func_jn = yes; then
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_JN 1
23807 _ACEOF
23808
23809   fi
23810
23811
23812
23813
23814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23815 $as_echo_n "checking for jnl... " >&6; }
23816 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   if test x$gcc_no_link = xyes; then
23820   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23821 fi
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h.  */
23824
23825 #ifdef HAVE_COMPLEX_H
23826 #include <complex.h>
23827 #endif
23828 #ifdef HAVE_MATH_H
23829 #include <math.h>
23830 #endif
23831
23832 int (*ptr)() = (int (*)())jnl;
23833
23834 int
23835 main ()
23836 {
23837   return 0;
23838 }
23839
23840 _ACEOF
23841 if ac_fn_c_try_link "$LINENO"; then :
23842   gcc_cv_math_func_jnl=yes
23843 else
23844   gcc_cv_math_func_jnl=no
23845 fi
23846 rm -f core conftest.err conftest.$ac_objext \
23847     conftest$ac_exeext conftest.$ac_ext
23848 fi
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23850 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23851   if test $gcc_cv_math_func_jnl = yes; then
23852
23853 cat >>confdefs.h <<_ACEOF
23854 #define HAVE_JNL 1
23855 _ACEOF
23856
23857   fi
23858
23859
23860
23861
23862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23863 $as_echo_n "checking for y0f... " >&6; }
23864 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23865   $as_echo_n "(cached) " >&6
23866 else
23867   if test x$gcc_no_link = xyes; then
23868   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23869 fi
23870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h.  */
23872
23873 #ifdef HAVE_COMPLEX_H
23874 #include <complex.h>
23875 #endif
23876 #ifdef HAVE_MATH_H
23877 #include <math.h>
23878 #endif
23879
23880 int (*ptr)() = (int (*)())y0f;
23881
23882 int
23883 main ()
23884 {
23885   return 0;
23886 }
23887
23888 _ACEOF
23889 if ac_fn_c_try_link "$LINENO"; then :
23890   gcc_cv_math_func_y0f=yes
23891 else
23892   gcc_cv_math_func_y0f=no
23893 fi
23894 rm -f core conftest.err conftest.$ac_objext \
23895     conftest$ac_exeext conftest.$ac_ext
23896 fi
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23898 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23899   if test $gcc_cv_math_func_y0f = yes; then
23900
23901 cat >>confdefs.h <<_ACEOF
23902 #define HAVE_Y0F 1
23903 _ACEOF
23904
23905   fi
23906
23907
23908
23909
23910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23911 $as_echo_n "checking for y0... " >&6; }
23912 if test "${gcc_cv_math_func_y0+set}" = set; then :
23913   $as_echo_n "(cached) " >&6
23914 else
23915   if test x$gcc_no_link = xyes; then
23916   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23917 fi
23918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23919 /* end confdefs.h.  */
23920
23921 #ifdef HAVE_COMPLEX_H
23922 #include <complex.h>
23923 #endif
23924 #ifdef HAVE_MATH_H
23925 #include <math.h>
23926 #endif
23927
23928 int (*ptr)() = (int (*)())y0;
23929
23930 int
23931 main ()
23932 {
23933   return 0;
23934 }
23935
23936 _ACEOF
23937 if ac_fn_c_try_link "$LINENO"; then :
23938   gcc_cv_math_func_y0=yes
23939 else
23940   gcc_cv_math_func_y0=no
23941 fi
23942 rm -f core conftest.err conftest.$ac_objext \
23943     conftest$ac_exeext conftest.$ac_ext
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23946 $as_echo "$gcc_cv_math_func_y0" >&6; }
23947   if test $gcc_cv_math_func_y0 = yes; then
23948
23949 cat >>confdefs.h <<_ACEOF
23950 #define HAVE_Y0 1
23951 _ACEOF
23952
23953   fi
23954
23955
23956
23957
23958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23959 $as_echo_n "checking for y0l... " >&6; }
23960 if test "${gcc_cv_math_func_y0l+set}" = set; then :
23961   $as_echo_n "(cached) " >&6
23962 else
23963   if test x$gcc_no_link = xyes; then
23964   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23965 fi
23966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967 /* end confdefs.h.  */
23968
23969 #ifdef HAVE_COMPLEX_H
23970 #include <complex.h>
23971 #endif
23972 #ifdef HAVE_MATH_H
23973 #include <math.h>
23974 #endif
23975
23976 int (*ptr)() = (int (*)())y0l;
23977
23978 int
23979 main ()
23980 {
23981   return 0;
23982 }
23983
23984 _ACEOF
23985 if ac_fn_c_try_link "$LINENO"; then :
23986   gcc_cv_math_func_y0l=yes
23987 else
23988   gcc_cv_math_func_y0l=no
23989 fi
23990 rm -f core conftest.err conftest.$ac_objext \
23991     conftest$ac_exeext conftest.$ac_ext
23992 fi
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
23994 $as_echo "$gcc_cv_math_func_y0l" >&6; }
23995   if test $gcc_cv_math_func_y0l = yes; then
23996
23997 cat >>confdefs.h <<_ACEOF
23998 #define HAVE_Y0L 1
23999 _ACEOF
24000
24001   fi
24002
24003
24004
24005
24006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24007 $as_echo_n "checking for y1f... " >&6; }
24008 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24009   $as_echo_n "(cached) " >&6
24010 else
24011   if test x$gcc_no_link = xyes; then
24012   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24013 fi
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h.  */
24016
24017 #ifdef HAVE_COMPLEX_H
24018 #include <complex.h>
24019 #endif
24020 #ifdef HAVE_MATH_H
24021 #include <math.h>
24022 #endif
24023
24024 int (*ptr)() = (int (*)())y1f;
24025
24026 int
24027 main ()
24028 {
24029   return 0;
24030 }
24031
24032 _ACEOF
24033 if ac_fn_c_try_link "$LINENO"; then :
24034   gcc_cv_math_func_y1f=yes
24035 else
24036   gcc_cv_math_func_y1f=no
24037 fi
24038 rm -f core conftest.err conftest.$ac_objext \
24039     conftest$ac_exeext conftest.$ac_ext
24040 fi
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24042 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24043   if test $gcc_cv_math_func_y1f = yes; then
24044
24045 cat >>confdefs.h <<_ACEOF
24046 #define HAVE_Y1F 1
24047 _ACEOF
24048
24049   fi
24050
24051
24052
24053
24054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24055 $as_echo_n "checking for y1... " >&6; }
24056 if test "${gcc_cv_math_func_y1+set}" = set; then :
24057   $as_echo_n "(cached) " >&6
24058 else
24059   if test x$gcc_no_link = xyes; then
24060   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24061 fi
24062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24063 /* end confdefs.h.  */
24064
24065 #ifdef HAVE_COMPLEX_H
24066 #include <complex.h>
24067 #endif
24068 #ifdef HAVE_MATH_H
24069 #include <math.h>
24070 #endif
24071
24072 int (*ptr)() = (int (*)())y1;
24073
24074 int
24075 main ()
24076 {
24077   return 0;
24078 }
24079
24080 _ACEOF
24081 if ac_fn_c_try_link "$LINENO"; then :
24082   gcc_cv_math_func_y1=yes
24083 else
24084   gcc_cv_math_func_y1=no
24085 fi
24086 rm -f core conftest.err conftest.$ac_objext \
24087     conftest$ac_exeext conftest.$ac_ext
24088 fi
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24090 $as_echo "$gcc_cv_math_func_y1" >&6; }
24091   if test $gcc_cv_math_func_y1 = yes; then
24092
24093 cat >>confdefs.h <<_ACEOF
24094 #define HAVE_Y1 1
24095 _ACEOF
24096
24097   fi
24098
24099
24100
24101
24102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24103 $as_echo_n "checking for y1l... " >&6; }
24104 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107   if test x$gcc_no_link = xyes; then
24108   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24109 fi
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h.  */
24112
24113 #ifdef HAVE_COMPLEX_H
24114 #include <complex.h>
24115 #endif
24116 #ifdef HAVE_MATH_H
24117 #include <math.h>
24118 #endif
24119
24120 int (*ptr)() = (int (*)())y1l;
24121
24122 int
24123 main ()
24124 {
24125   return 0;
24126 }
24127
24128 _ACEOF
24129 if ac_fn_c_try_link "$LINENO"; then :
24130   gcc_cv_math_func_y1l=yes
24131 else
24132   gcc_cv_math_func_y1l=no
24133 fi
24134 rm -f core conftest.err conftest.$ac_objext \
24135     conftest$ac_exeext conftest.$ac_ext
24136 fi
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24138 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24139   if test $gcc_cv_math_func_y1l = yes; then
24140
24141 cat >>confdefs.h <<_ACEOF
24142 #define HAVE_Y1L 1
24143 _ACEOF
24144
24145   fi
24146
24147
24148
24149
24150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24151 $as_echo_n "checking for ynf... " >&6; }
24152 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24153   $as_echo_n "(cached) " >&6
24154 else
24155   if test x$gcc_no_link = xyes; then
24156   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24157 fi
24158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159 /* end confdefs.h.  */
24160
24161 #ifdef HAVE_COMPLEX_H
24162 #include <complex.h>
24163 #endif
24164 #ifdef HAVE_MATH_H
24165 #include <math.h>
24166 #endif
24167
24168 int (*ptr)() = (int (*)())ynf;
24169
24170 int
24171 main ()
24172 {
24173   return 0;
24174 }
24175
24176 _ACEOF
24177 if ac_fn_c_try_link "$LINENO"; then :
24178   gcc_cv_math_func_ynf=yes
24179 else
24180   gcc_cv_math_func_ynf=no
24181 fi
24182 rm -f core conftest.err conftest.$ac_objext \
24183     conftest$ac_exeext conftest.$ac_ext
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24186 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24187   if test $gcc_cv_math_func_ynf = yes; then
24188
24189 cat >>confdefs.h <<_ACEOF
24190 #define HAVE_YNF 1
24191 _ACEOF
24192
24193   fi
24194
24195
24196
24197
24198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24199 $as_echo_n "checking for yn... " >&6; }
24200 if test "${gcc_cv_math_func_yn+set}" = set; then :
24201   $as_echo_n "(cached) " >&6
24202 else
24203   if test x$gcc_no_link = xyes; then
24204   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24205 fi
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h.  */
24208
24209 #ifdef HAVE_COMPLEX_H
24210 #include <complex.h>
24211 #endif
24212 #ifdef HAVE_MATH_H
24213 #include <math.h>
24214 #endif
24215
24216 int (*ptr)() = (int (*)())yn;
24217
24218 int
24219 main ()
24220 {
24221   return 0;
24222 }
24223
24224 _ACEOF
24225 if ac_fn_c_try_link "$LINENO"; then :
24226   gcc_cv_math_func_yn=yes
24227 else
24228   gcc_cv_math_func_yn=no
24229 fi
24230 rm -f core conftest.err conftest.$ac_objext \
24231     conftest$ac_exeext conftest.$ac_ext
24232 fi
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24234 $as_echo "$gcc_cv_math_func_yn" >&6; }
24235   if test $gcc_cv_math_func_yn = yes; then
24236
24237 cat >>confdefs.h <<_ACEOF
24238 #define HAVE_YN 1
24239 _ACEOF
24240
24241   fi
24242
24243
24244
24245
24246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24247 $as_echo_n "checking for ynl... " >&6; }
24248 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24249   $as_echo_n "(cached) " >&6
24250 else
24251   if test x$gcc_no_link = xyes; then
24252   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24253 fi
24254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24255 /* end confdefs.h.  */
24256
24257 #ifdef HAVE_COMPLEX_H
24258 #include <complex.h>
24259 #endif
24260 #ifdef HAVE_MATH_H
24261 #include <math.h>
24262 #endif
24263
24264 int (*ptr)() = (int (*)())ynl;
24265
24266 int
24267 main ()
24268 {
24269   return 0;
24270 }
24271
24272 _ACEOF
24273 if ac_fn_c_try_link "$LINENO"; then :
24274   gcc_cv_math_func_ynl=yes
24275 else
24276   gcc_cv_math_func_ynl=no
24277 fi
24278 rm -f core conftest.err conftest.$ac_objext \
24279     conftest$ac_exeext conftest.$ac_ext
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24282 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24283   if test $gcc_cv_math_func_ynl = yes; then
24284
24285 cat >>confdefs.h <<_ACEOF
24286 #define HAVE_YNL 1
24287 _ACEOF
24288
24289   fi
24290
24291
24292
24293
24294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24295 $as_echo_n "checking for tgamma... " >&6; }
24296 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24297   $as_echo_n "(cached) " >&6
24298 else
24299   if test x$gcc_no_link = xyes; then
24300   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24301 fi
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h.  */
24304
24305 #ifdef HAVE_COMPLEX_H
24306 #include <complex.h>
24307 #endif
24308 #ifdef HAVE_MATH_H
24309 #include <math.h>
24310 #endif
24311
24312 int (*ptr)() = (int (*)())tgamma;
24313
24314 int
24315 main ()
24316 {
24317   return 0;
24318 }
24319
24320 _ACEOF
24321 if ac_fn_c_try_link "$LINENO"; then :
24322   gcc_cv_math_func_tgamma=yes
24323 else
24324   gcc_cv_math_func_tgamma=no
24325 fi
24326 rm -f core conftest.err conftest.$ac_objext \
24327     conftest$ac_exeext conftest.$ac_ext
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24330 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24331   if test $gcc_cv_math_func_tgamma = yes; then
24332
24333 cat >>confdefs.h <<_ACEOF
24334 #define HAVE_TGAMMA 1
24335 _ACEOF
24336
24337   fi
24338
24339
24340
24341
24342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24343 $as_echo_n "checking for tgammaf... " >&6; }
24344 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24345   $as_echo_n "(cached) " >&6
24346 else
24347   if test x$gcc_no_link = xyes; then
24348   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24349 fi
24350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24351 /* end confdefs.h.  */
24352
24353 #ifdef HAVE_COMPLEX_H
24354 #include <complex.h>
24355 #endif
24356 #ifdef HAVE_MATH_H
24357 #include <math.h>
24358 #endif
24359
24360 int (*ptr)() = (int (*)())tgammaf;
24361
24362 int
24363 main ()
24364 {
24365   return 0;
24366 }
24367
24368 _ACEOF
24369 if ac_fn_c_try_link "$LINENO"; then :
24370   gcc_cv_math_func_tgammaf=yes
24371 else
24372   gcc_cv_math_func_tgammaf=no
24373 fi
24374 rm -f core conftest.err conftest.$ac_objext \
24375     conftest$ac_exeext conftest.$ac_ext
24376 fi
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24378 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24379   if test $gcc_cv_math_func_tgammaf = yes; then
24380
24381 cat >>confdefs.h <<_ACEOF
24382 #define HAVE_TGAMMAF 1
24383 _ACEOF
24384
24385   fi
24386
24387
24388
24389
24390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24391 $as_echo_n "checking for tgammal... " >&6; }
24392 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24393   $as_echo_n "(cached) " >&6
24394 else
24395   if test x$gcc_no_link = xyes; then
24396   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24397 fi
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h.  */
24400
24401 #ifdef HAVE_COMPLEX_H
24402 #include <complex.h>
24403 #endif
24404 #ifdef HAVE_MATH_H
24405 #include <math.h>
24406 #endif
24407
24408 int (*ptr)() = (int (*)())tgammal;
24409
24410 int
24411 main ()
24412 {
24413   return 0;
24414 }
24415
24416 _ACEOF
24417 if ac_fn_c_try_link "$LINENO"; then :
24418   gcc_cv_math_func_tgammal=yes
24419 else
24420   gcc_cv_math_func_tgammal=no
24421 fi
24422 rm -f core conftest.err conftest.$ac_objext \
24423     conftest$ac_exeext conftest.$ac_ext
24424 fi
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24426 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24427   if test $gcc_cv_math_func_tgammal = yes; then
24428
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_TGAMMAL 1
24431 _ACEOF
24432
24433   fi
24434
24435
24436
24437
24438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24439 $as_echo_n "checking for lgamma... " >&6; }
24440 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24441   $as_echo_n "(cached) " >&6
24442 else
24443   if test x$gcc_no_link = xyes; then
24444   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24445 fi
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h.  */
24448
24449 #ifdef HAVE_COMPLEX_H
24450 #include <complex.h>
24451 #endif
24452 #ifdef HAVE_MATH_H
24453 #include <math.h>
24454 #endif
24455
24456 int (*ptr)() = (int (*)())lgamma;
24457
24458 int
24459 main ()
24460 {
24461   return 0;
24462 }
24463
24464 _ACEOF
24465 if ac_fn_c_try_link "$LINENO"; then :
24466   gcc_cv_math_func_lgamma=yes
24467 else
24468   gcc_cv_math_func_lgamma=no
24469 fi
24470 rm -f core conftest.err conftest.$ac_objext \
24471     conftest$ac_exeext conftest.$ac_ext
24472 fi
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24474 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24475   if test $gcc_cv_math_func_lgamma = yes; then
24476
24477 cat >>confdefs.h <<_ACEOF
24478 #define HAVE_LGAMMA 1
24479 _ACEOF
24480
24481   fi
24482
24483
24484
24485
24486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24487 $as_echo_n "checking for lgammaf... " >&6; }
24488 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24489   $as_echo_n "(cached) " >&6
24490 else
24491   if test x$gcc_no_link = xyes; then
24492   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24493 fi
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h.  */
24496
24497 #ifdef HAVE_COMPLEX_H
24498 #include <complex.h>
24499 #endif
24500 #ifdef HAVE_MATH_H
24501 #include <math.h>
24502 #endif
24503
24504 int (*ptr)() = (int (*)())lgammaf;
24505
24506 int
24507 main ()
24508 {
24509   return 0;
24510 }
24511
24512 _ACEOF
24513 if ac_fn_c_try_link "$LINENO"; then :
24514   gcc_cv_math_func_lgammaf=yes
24515 else
24516   gcc_cv_math_func_lgammaf=no
24517 fi
24518 rm -f core conftest.err conftest.$ac_objext \
24519     conftest$ac_exeext conftest.$ac_ext
24520 fi
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24522 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24523   if test $gcc_cv_math_func_lgammaf = yes; then
24524
24525 cat >>confdefs.h <<_ACEOF
24526 #define HAVE_LGAMMAF 1
24527 _ACEOF
24528
24529   fi
24530
24531
24532
24533
24534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24535 $as_echo_n "checking for lgammal... " >&6; }
24536 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24537   $as_echo_n "(cached) " >&6
24538 else
24539   if test x$gcc_no_link = xyes; then
24540   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24541 fi
24542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543 /* end confdefs.h.  */
24544
24545 #ifdef HAVE_COMPLEX_H
24546 #include <complex.h>
24547 #endif
24548 #ifdef HAVE_MATH_H
24549 #include <math.h>
24550 #endif
24551
24552 int (*ptr)() = (int (*)())lgammal;
24553
24554 int
24555 main ()
24556 {
24557   return 0;
24558 }
24559
24560 _ACEOF
24561 if ac_fn_c_try_link "$LINENO"; then :
24562   gcc_cv_math_func_lgammal=yes
24563 else
24564   gcc_cv_math_func_lgammal=no
24565 fi
24566 rm -f core conftest.err conftest.$ac_objext \
24567     conftest$ac_exeext conftest.$ac_ext
24568 fi
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24570 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24571   if test $gcc_cv_math_func_lgammal = yes; then
24572
24573 cat >>confdefs.h <<_ACEOF
24574 #define HAVE_LGAMMAL 1
24575 _ACEOF
24576
24577   fi
24578
24579
24580 # Check for GFORTRAN_C99_1.1 funcs
24581
24582
24583
24584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24585 $as_echo_n "checking for cacos... " >&6; }
24586 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24587   $as_echo_n "(cached) " >&6
24588 else
24589   if test x$gcc_no_link = xyes; then
24590   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24591 fi
24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h.  */
24594
24595 #ifdef HAVE_COMPLEX_H
24596 #include <complex.h>
24597 #endif
24598 #ifdef HAVE_MATH_H
24599 #include <math.h>
24600 #endif
24601
24602 int (*ptr)() = (int (*)())cacos;
24603
24604 int
24605 main ()
24606 {
24607   return 0;
24608 }
24609
24610 _ACEOF
24611 if ac_fn_c_try_link "$LINENO"; then :
24612   gcc_cv_math_func_cacos=yes
24613 else
24614   gcc_cv_math_func_cacos=no
24615 fi
24616 rm -f core conftest.err conftest.$ac_objext \
24617     conftest$ac_exeext conftest.$ac_ext
24618 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24620 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24621   if test $gcc_cv_math_func_cacos = yes; then
24622
24623 cat >>confdefs.h <<_ACEOF
24624 #define HAVE_CACOS 1
24625 _ACEOF
24626
24627   fi
24628
24629
24630
24631
24632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24633 $as_echo_n "checking for cacosf... " >&6; }
24634 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24635   $as_echo_n "(cached) " >&6
24636 else
24637   if test x$gcc_no_link = xyes; then
24638   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24639 fi
24640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641 /* end confdefs.h.  */
24642
24643 #ifdef HAVE_COMPLEX_H
24644 #include <complex.h>
24645 #endif
24646 #ifdef HAVE_MATH_H
24647 #include <math.h>
24648 #endif
24649
24650 int (*ptr)() = (int (*)())cacosf;
24651
24652 int
24653 main ()
24654 {
24655   return 0;
24656 }
24657
24658 _ACEOF
24659 if ac_fn_c_try_link "$LINENO"; then :
24660   gcc_cv_math_func_cacosf=yes
24661 else
24662   gcc_cv_math_func_cacosf=no
24663 fi
24664 rm -f core conftest.err conftest.$ac_objext \
24665     conftest$ac_exeext conftest.$ac_ext
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24668 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24669   if test $gcc_cv_math_func_cacosf = yes; then
24670
24671 cat >>confdefs.h <<_ACEOF
24672 #define HAVE_CACOSF 1
24673 _ACEOF
24674
24675   fi
24676
24677
24678
24679
24680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24681 $as_echo_n "checking for cacosh... " >&6; }
24682 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24683   $as_echo_n "(cached) " >&6
24684 else
24685   if test x$gcc_no_link = xyes; then
24686   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24687 fi
24688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24689 /* end confdefs.h.  */
24690
24691 #ifdef HAVE_COMPLEX_H
24692 #include <complex.h>
24693 #endif
24694 #ifdef HAVE_MATH_H
24695 #include <math.h>
24696 #endif
24697
24698 int (*ptr)() = (int (*)())cacosh;
24699
24700 int
24701 main ()
24702 {
24703   return 0;
24704 }
24705
24706 _ACEOF
24707 if ac_fn_c_try_link "$LINENO"; then :
24708   gcc_cv_math_func_cacosh=yes
24709 else
24710   gcc_cv_math_func_cacosh=no
24711 fi
24712 rm -f core conftest.err conftest.$ac_objext \
24713     conftest$ac_exeext conftest.$ac_ext
24714 fi
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24716 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24717   if test $gcc_cv_math_func_cacosh = yes; then
24718
24719 cat >>confdefs.h <<_ACEOF
24720 #define HAVE_CACOSH 1
24721 _ACEOF
24722
24723   fi
24724
24725
24726
24727
24728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24729 $as_echo_n "checking for cacoshf... " >&6; }
24730 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24731   $as_echo_n "(cached) " >&6
24732 else
24733   if test x$gcc_no_link = xyes; then
24734   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24735 fi
24736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24737 /* end confdefs.h.  */
24738
24739 #ifdef HAVE_COMPLEX_H
24740 #include <complex.h>
24741 #endif
24742 #ifdef HAVE_MATH_H
24743 #include <math.h>
24744 #endif
24745
24746 int (*ptr)() = (int (*)())cacoshf;
24747
24748 int
24749 main ()
24750 {
24751   return 0;
24752 }
24753
24754 _ACEOF
24755 if ac_fn_c_try_link "$LINENO"; then :
24756   gcc_cv_math_func_cacoshf=yes
24757 else
24758   gcc_cv_math_func_cacoshf=no
24759 fi
24760 rm -f core conftest.err conftest.$ac_objext \
24761     conftest$ac_exeext conftest.$ac_ext
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24764 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24765   if test $gcc_cv_math_func_cacoshf = yes; then
24766
24767 cat >>confdefs.h <<_ACEOF
24768 #define HAVE_CACOSHF 1
24769 _ACEOF
24770
24771   fi
24772
24773
24774
24775
24776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24777 $as_echo_n "checking for cacoshl... " >&6; }
24778 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24779   $as_echo_n "(cached) " >&6
24780 else
24781   if test x$gcc_no_link = xyes; then
24782   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24783 fi
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h.  */
24786
24787 #ifdef HAVE_COMPLEX_H
24788 #include <complex.h>
24789 #endif
24790 #ifdef HAVE_MATH_H
24791 #include <math.h>
24792 #endif
24793
24794 int (*ptr)() = (int (*)())cacoshl;
24795
24796 int
24797 main ()
24798 {
24799   return 0;
24800 }
24801
24802 _ACEOF
24803 if ac_fn_c_try_link "$LINENO"; then :
24804   gcc_cv_math_func_cacoshl=yes
24805 else
24806   gcc_cv_math_func_cacoshl=no
24807 fi
24808 rm -f core conftest.err conftest.$ac_objext \
24809     conftest$ac_exeext conftest.$ac_ext
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24812 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24813   if test $gcc_cv_math_func_cacoshl = yes; then
24814
24815 cat >>confdefs.h <<_ACEOF
24816 #define HAVE_CACOSHL 1
24817 _ACEOF
24818
24819   fi
24820
24821
24822
24823
24824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24825 $as_echo_n "checking for cacosl... " >&6; }
24826 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24827   $as_echo_n "(cached) " >&6
24828 else
24829   if test x$gcc_no_link = xyes; then
24830   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24831 fi
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h.  */
24834
24835 #ifdef HAVE_COMPLEX_H
24836 #include <complex.h>
24837 #endif
24838 #ifdef HAVE_MATH_H
24839 #include <math.h>
24840 #endif
24841
24842 int (*ptr)() = (int (*)())cacosl;
24843
24844 int
24845 main ()
24846 {
24847   return 0;
24848 }
24849
24850 _ACEOF
24851 if ac_fn_c_try_link "$LINENO"; then :
24852   gcc_cv_math_func_cacosl=yes
24853 else
24854   gcc_cv_math_func_cacosl=no
24855 fi
24856 rm -f core conftest.err conftest.$ac_objext \
24857     conftest$ac_exeext conftest.$ac_ext
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24860 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24861   if test $gcc_cv_math_func_cacosl = yes; then
24862
24863 cat >>confdefs.h <<_ACEOF
24864 #define HAVE_CACOSL 1
24865 _ACEOF
24866
24867   fi
24868
24869
24870
24871
24872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24873 $as_echo_n "checking for casin... " >&6; }
24874 if test "${gcc_cv_math_func_casin+set}" = set; then :
24875   $as_echo_n "(cached) " >&6
24876 else
24877   if test x$gcc_no_link = xyes; then
24878   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24879 fi
24880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24881 /* end confdefs.h.  */
24882
24883 #ifdef HAVE_COMPLEX_H
24884 #include <complex.h>
24885 #endif
24886 #ifdef HAVE_MATH_H
24887 #include <math.h>
24888 #endif
24889
24890 int (*ptr)() = (int (*)())casin;
24891
24892 int
24893 main ()
24894 {
24895   return 0;
24896 }
24897
24898 _ACEOF
24899 if ac_fn_c_try_link "$LINENO"; then :
24900   gcc_cv_math_func_casin=yes
24901 else
24902   gcc_cv_math_func_casin=no
24903 fi
24904 rm -f core conftest.err conftest.$ac_objext \
24905     conftest$ac_exeext conftest.$ac_ext
24906 fi
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24908 $as_echo "$gcc_cv_math_func_casin" >&6; }
24909   if test $gcc_cv_math_func_casin = yes; then
24910
24911 cat >>confdefs.h <<_ACEOF
24912 #define HAVE_CASIN 1
24913 _ACEOF
24914
24915   fi
24916
24917
24918
24919
24920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24921 $as_echo_n "checking for casinf... " >&6; }
24922 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24923   $as_echo_n "(cached) " >&6
24924 else
24925   if test x$gcc_no_link = xyes; then
24926   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24927 fi
24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24929 /* end confdefs.h.  */
24930
24931 #ifdef HAVE_COMPLEX_H
24932 #include <complex.h>
24933 #endif
24934 #ifdef HAVE_MATH_H
24935 #include <math.h>
24936 #endif
24937
24938 int (*ptr)() = (int (*)())casinf;
24939
24940 int
24941 main ()
24942 {
24943   return 0;
24944 }
24945
24946 _ACEOF
24947 if ac_fn_c_try_link "$LINENO"; then :
24948   gcc_cv_math_func_casinf=yes
24949 else
24950   gcc_cv_math_func_casinf=no
24951 fi
24952 rm -f core conftest.err conftest.$ac_objext \
24953     conftest$ac_exeext conftest.$ac_ext
24954 fi
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24956 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24957   if test $gcc_cv_math_func_casinf = yes; then
24958
24959 cat >>confdefs.h <<_ACEOF
24960 #define HAVE_CASINF 1
24961 _ACEOF
24962
24963   fi
24964
24965
24966
24967
24968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24969 $as_echo_n "checking for casinh... " >&6; }
24970 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24971   $as_echo_n "(cached) " >&6
24972 else
24973   if test x$gcc_no_link = xyes; then
24974   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24975 fi
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978
24979 #ifdef HAVE_COMPLEX_H
24980 #include <complex.h>
24981 #endif
24982 #ifdef HAVE_MATH_H
24983 #include <math.h>
24984 #endif
24985
24986 int (*ptr)() = (int (*)())casinh;
24987
24988 int
24989 main ()
24990 {
24991   return 0;
24992 }
24993
24994 _ACEOF
24995 if ac_fn_c_try_link "$LINENO"; then :
24996   gcc_cv_math_func_casinh=yes
24997 else
24998   gcc_cv_math_func_casinh=no
24999 fi
25000 rm -f core conftest.err conftest.$ac_objext \
25001     conftest$ac_exeext conftest.$ac_ext
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25004 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25005   if test $gcc_cv_math_func_casinh = yes; then
25006
25007 cat >>confdefs.h <<_ACEOF
25008 #define HAVE_CASINH 1
25009 _ACEOF
25010
25011   fi
25012
25013
25014
25015
25016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25017 $as_echo_n "checking for casinhf... " >&6; }
25018 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25019   $as_echo_n "(cached) " >&6
25020 else
25021   if test x$gcc_no_link = xyes; then
25022   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25023 fi
25024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25025 /* end confdefs.h.  */
25026
25027 #ifdef HAVE_COMPLEX_H
25028 #include <complex.h>
25029 #endif
25030 #ifdef HAVE_MATH_H
25031 #include <math.h>
25032 #endif
25033
25034 int (*ptr)() = (int (*)())casinhf;
25035
25036 int
25037 main ()
25038 {
25039   return 0;
25040 }
25041
25042 _ACEOF
25043 if ac_fn_c_try_link "$LINENO"; then :
25044   gcc_cv_math_func_casinhf=yes
25045 else
25046   gcc_cv_math_func_casinhf=no
25047 fi
25048 rm -f core conftest.err conftest.$ac_objext \
25049     conftest$ac_exeext conftest.$ac_ext
25050 fi
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25052 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25053   if test $gcc_cv_math_func_casinhf = yes; then
25054
25055 cat >>confdefs.h <<_ACEOF
25056 #define HAVE_CASINHF 1
25057 _ACEOF
25058
25059   fi
25060
25061
25062
25063
25064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25065 $as_echo_n "checking for casinhl... " >&6; }
25066 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25067   $as_echo_n "(cached) " >&6
25068 else
25069   if test x$gcc_no_link = xyes; then
25070   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25071 fi
25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h.  */
25074
25075 #ifdef HAVE_COMPLEX_H
25076 #include <complex.h>
25077 #endif
25078 #ifdef HAVE_MATH_H
25079 #include <math.h>
25080 #endif
25081
25082 int (*ptr)() = (int (*)())casinhl;
25083
25084 int
25085 main ()
25086 {
25087   return 0;
25088 }
25089
25090 _ACEOF
25091 if ac_fn_c_try_link "$LINENO"; then :
25092   gcc_cv_math_func_casinhl=yes
25093 else
25094   gcc_cv_math_func_casinhl=no
25095 fi
25096 rm -f core conftest.err conftest.$ac_objext \
25097     conftest$ac_exeext conftest.$ac_ext
25098 fi
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25100 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25101   if test $gcc_cv_math_func_casinhl = yes; then
25102
25103 cat >>confdefs.h <<_ACEOF
25104 #define HAVE_CASINHL 1
25105 _ACEOF
25106
25107   fi
25108
25109
25110
25111
25112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25113 $as_echo_n "checking for casinl... " >&6; }
25114 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25115   $as_echo_n "(cached) " >&6
25116 else
25117   if test x$gcc_no_link = xyes; then
25118   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25119 fi
25120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h.  */
25122
25123 #ifdef HAVE_COMPLEX_H
25124 #include <complex.h>
25125 #endif
25126 #ifdef HAVE_MATH_H
25127 #include <math.h>
25128 #endif
25129
25130 int (*ptr)() = (int (*)())casinl;
25131
25132 int
25133 main ()
25134 {
25135   return 0;
25136 }
25137
25138 _ACEOF
25139 if ac_fn_c_try_link "$LINENO"; then :
25140   gcc_cv_math_func_casinl=yes
25141 else
25142   gcc_cv_math_func_casinl=no
25143 fi
25144 rm -f core conftest.err conftest.$ac_objext \
25145     conftest$ac_exeext conftest.$ac_ext
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25148 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25149   if test $gcc_cv_math_func_casinl = yes; then
25150
25151 cat >>confdefs.h <<_ACEOF
25152 #define HAVE_CASINL 1
25153 _ACEOF
25154
25155   fi
25156
25157
25158
25159
25160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25161 $as_echo_n "checking for catan... " >&6; }
25162 if test "${gcc_cv_math_func_catan+set}" = set; then :
25163   $as_echo_n "(cached) " >&6
25164 else
25165   if test x$gcc_no_link = xyes; then
25166   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25167 fi
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h.  */
25170
25171 #ifdef HAVE_COMPLEX_H
25172 #include <complex.h>
25173 #endif
25174 #ifdef HAVE_MATH_H
25175 #include <math.h>
25176 #endif
25177
25178 int (*ptr)() = (int (*)())catan;
25179
25180 int
25181 main ()
25182 {
25183   return 0;
25184 }
25185
25186 _ACEOF
25187 if ac_fn_c_try_link "$LINENO"; then :
25188   gcc_cv_math_func_catan=yes
25189 else
25190   gcc_cv_math_func_catan=no
25191 fi
25192 rm -f core conftest.err conftest.$ac_objext \
25193     conftest$ac_exeext conftest.$ac_ext
25194 fi
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25196 $as_echo "$gcc_cv_math_func_catan" >&6; }
25197   if test $gcc_cv_math_func_catan = yes; then
25198
25199 cat >>confdefs.h <<_ACEOF
25200 #define HAVE_CATAN 1
25201 _ACEOF
25202
25203   fi
25204
25205
25206
25207
25208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25209 $as_echo_n "checking for catanf... " >&6; }
25210 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25211   $as_echo_n "(cached) " >&6
25212 else
25213   if test x$gcc_no_link = xyes; then
25214   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25215 fi
25216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25217 /* end confdefs.h.  */
25218
25219 #ifdef HAVE_COMPLEX_H
25220 #include <complex.h>
25221 #endif
25222 #ifdef HAVE_MATH_H
25223 #include <math.h>
25224 #endif
25225
25226 int (*ptr)() = (int (*)())catanf;
25227
25228 int
25229 main ()
25230 {
25231   return 0;
25232 }
25233
25234 _ACEOF
25235 if ac_fn_c_try_link "$LINENO"; then :
25236   gcc_cv_math_func_catanf=yes
25237 else
25238   gcc_cv_math_func_catanf=no
25239 fi
25240 rm -f core conftest.err conftest.$ac_objext \
25241     conftest$ac_exeext conftest.$ac_ext
25242 fi
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25244 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25245   if test $gcc_cv_math_func_catanf = yes; then
25246
25247 cat >>confdefs.h <<_ACEOF
25248 #define HAVE_CATANF 1
25249 _ACEOF
25250
25251   fi
25252
25253
25254
25255
25256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25257 $as_echo_n "checking for catanh... " >&6; }
25258 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25259   $as_echo_n "(cached) " >&6
25260 else
25261   if test x$gcc_no_link = xyes; then
25262   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25263 fi
25264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25265 /* end confdefs.h.  */
25266
25267 #ifdef HAVE_COMPLEX_H
25268 #include <complex.h>
25269 #endif
25270 #ifdef HAVE_MATH_H
25271 #include <math.h>
25272 #endif
25273
25274 int (*ptr)() = (int (*)())catanh;
25275
25276 int
25277 main ()
25278 {
25279   return 0;
25280 }
25281
25282 _ACEOF
25283 if ac_fn_c_try_link "$LINENO"; then :
25284   gcc_cv_math_func_catanh=yes
25285 else
25286   gcc_cv_math_func_catanh=no
25287 fi
25288 rm -f core conftest.err conftest.$ac_objext \
25289     conftest$ac_exeext conftest.$ac_ext
25290 fi
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25292 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25293   if test $gcc_cv_math_func_catanh = yes; then
25294
25295 cat >>confdefs.h <<_ACEOF
25296 #define HAVE_CATANH 1
25297 _ACEOF
25298
25299   fi
25300
25301
25302
25303
25304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25305 $as_echo_n "checking for catanhf... " >&6; }
25306 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   if test x$gcc_no_link = xyes; then
25310   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25311 fi
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314
25315 #ifdef HAVE_COMPLEX_H
25316 #include <complex.h>
25317 #endif
25318 #ifdef HAVE_MATH_H
25319 #include <math.h>
25320 #endif
25321
25322 int (*ptr)() = (int (*)())catanhf;
25323
25324 int
25325 main ()
25326 {
25327   return 0;
25328 }
25329
25330 _ACEOF
25331 if ac_fn_c_try_link "$LINENO"; then :
25332   gcc_cv_math_func_catanhf=yes
25333 else
25334   gcc_cv_math_func_catanhf=no
25335 fi
25336 rm -f core conftest.err conftest.$ac_objext \
25337     conftest$ac_exeext conftest.$ac_ext
25338 fi
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25340 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25341   if test $gcc_cv_math_func_catanhf = yes; then
25342
25343 cat >>confdefs.h <<_ACEOF
25344 #define HAVE_CATANHF 1
25345 _ACEOF
25346
25347   fi
25348
25349
25350
25351
25352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25353 $as_echo_n "checking for catanhl... " >&6; }
25354 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25355   $as_echo_n "(cached) " >&6
25356 else
25357   if test x$gcc_no_link = xyes; then
25358   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25359 fi
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h.  */
25362
25363 #ifdef HAVE_COMPLEX_H
25364 #include <complex.h>
25365 #endif
25366 #ifdef HAVE_MATH_H
25367 #include <math.h>
25368 #endif
25369
25370 int (*ptr)() = (int (*)())catanhl;
25371
25372 int
25373 main ()
25374 {
25375   return 0;
25376 }
25377
25378 _ACEOF
25379 if ac_fn_c_try_link "$LINENO"; then :
25380   gcc_cv_math_func_catanhl=yes
25381 else
25382   gcc_cv_math_func_catanhl=no
25383 fi
25384 rm -f core conftest.err conftest.$ac_objext \
25385     conftest$ac_exeext conftest.$ac_ext
25386 fi
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25388 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25389   if test $gcc_cv_math_func_catanhl = yes; then
25390
25391 cat >>confdefs.h <<_ACEOF
25392 #define HAVE_CATANHL 1
25393 _ACEOF
25394
25395   fi
25396
25397
25398
25399
25400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25401 $as_echo_n "checking for catanl... " >&6; }
25402 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25403   $as_echo_n "(cached) " >&6
25404 else
25405   if test x$gcc_no_link = xyes; then
25406   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25407 fi
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h.  */
25410
25411 #ifdef HAVE_COMPLEX_H
25412 #include <complex.h>
25413 #endif
25414 #ifdef HAVE_MATH_H
25415 #include <math.h>
25416 #endif
25417
25418 int (*ptr)() = (int (*)())catanl;
25419
25420 int
25421 main ()
25422 {
25423   return 0;
25424 }
25425
25426 _ACEOF
25427 if ac_fn_c_try_link "$LINENO"; then :
25428   gcc_cv_math_func_catanl=yes
25429 else
25430   gcc_cv_math_func_catanl=no
25431 fi
25432 rm -f core conftest.err conftest.$ac_objext \
25433     conftest$ac_exeext conftest.$ac_ext
25434 fi
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25436 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25437   if test $gcc_cv_math_func_catanl = yes; then
25438
25439 cat >>confdefs.h <<_ACEOF
25440 #define HAVE_CATANL 1
25441 _ACEOF
25442
25443   fi
25444
25445
25446 # On AIX, clog is present in libm as __clog
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25448 $as_echo_n "checking for __clog in -lm... " >&6; }
25449 if test "${ac_cv_lib_m___clog+set}" = set; then :
25450   $as_echo_n "(cached) " >&6
25451 else
25452   ac_check_lib_save_LIBS=$LIBS
25453 LIBS="-lm  $LIBS"
25454 if test x$gcc_no_link = xyes; then
25455   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25456 fi
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458 /* end confdefs.h.  */
25459
25460 /* Override any GCC internal prototype to avoid an error.
25461    Use char because int might match the return type of a GCC
25462    builtin and then its argument prototype would still apply.  */
25463 #ifdef __cplusplus
25464 extern "C"
25465 #endif
25466 char __clog ();
25467 int
25468 main ()
25469 {
25470 return __clog ();
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 if ac_fn_c_try_link "$LINENO"; then :
25476   ac_cv_lib_m___clog=yes
25477 else
25478   ac_cv_lib_m___clog=no
25479 fi
25480 rm -f core conftest.err conftest.$ac_objext \
25481     conftest$ac_exeext conftest.$ac_ext
25482 LIBS=$ac_check_lib_save_LIBS
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25485 $as_echo "$ac_cv_lib_m___clog" >&6; }
25486 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25487
25488 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25489
25490 fi
25491
25492
25493 # Check whether the system has a working stat()
25494
25495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25496 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25497 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25498   $as_echo_n "(cached) " >&6
25499 else
25500
25501   if test "$cross_compiling" = yes; then :
25502
25503 case "${target}" in
25504   *mingw*) libgfor_cv_have_working_stat=no ;;
25505   *) libgfor_cv_have_working_stat=yes;;
25506 esac
25507 else
25508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h.  */
25510
25511 #include <stdio.h>
25512 #include <sys/types.h>
25513 #include <sys/stat.h>
25514 #include <unistd.h>
25515
25516 int main ()
25517 {
25518   FILE *f, *g;
25519   struct stat st1, st2;
25520
25521   f = fopen ("foo", "w");
25522   g = fopen ("bar", "w");
25523   if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25524     return 1;
25525   if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25526     return 1;
25527   fclose(f);
25528   fclose(g);
25529   return 0;
25530 }
25531 _ACEOF
25532 if ac_fn_c_try_run "$LINENO"; then :
25533   libgfor_cv_have_working_stat=yes
25534 else
25535   libgfor_cv_have_working_stat=no
25536 fi
25537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25538   conftest.$ac_objext conftest.beam conftest.$ac_ext
25539 fi
25540
25541 fi
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25543 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25544 if test x"$libgfor_cv_have_working_stat" = xyes; then
25545
25546 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25547
25548 fi
25549
25550 # Check whether __mingw_snprintf() is present
25551
25552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25553 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25554 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25555   $as_echo_n "(cached) " >&6
25556 else
25557
25558     if test x$gcc_no_link = xyes; then
25559   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25560 fi
25561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25562 /* end confdefs.h.  */
25563
25564 #include <stdio.h>
25565 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25566
25567 int
25568 main ()
25569 {
25570
25571 __mingw_snprintf (NULL, 0, "%d\n", 1);
25572
25573   ;
25574   return 0;
25575 }
25576 _ACEOF
25577 if ac_fn_c_try_link "$LINENO"; then :
25578   eval "libgfor_cv_have_mingw_snprintf=yes"
25579 else
25580   eval "libgfor_cv_have_mingw_snprintf=no"
25581 fi
25582 rm -f core conftest.err conftest.$ac_objext \
25583     conftest$ac_exeext conftest.$ac_ext
25584
25585 fi
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25587 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25588   if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25589
25590 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25591
25592   fi
25593
25594
25595 # Check whether libquadmath should be used
25596 # Check whether --enable-libquadmath-support was given.
25597 if test "${enable_libquadmath_support+set}" = set; then :
25598   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25599 else
25600   ENABLE_LIBQUADMATH_SUPPORT=yes
25601 fi
25602
25603 enable_libquadmath_support=
25604 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25605   enable_libquadmath_support=no
25606 fi
25607
25608 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25609
25610   LIBQUADSPEC=
25611
25612   if test "x$enable_libquadmath_support" != xno; then
25613
25614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25615 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25616 if test "${libgfor_cv_have_float128+set}" = set; then :
25617   $as_echo_n "(cached) " >&6
25618 else
25619
25620    if test x$gcc_no_link = xyes; then
25621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622 /* end confdefs.h.  */
25623
25624     typedef _Complex float __attribute__((mode(TC))) __complex128;
25625
25626     __float128 foo (__float128 x)
25627     {
25628
25629      __complex128 z1, z2;
25630
25631      z1 = x;
25632      z2 = x / 7.Q;
25633      z2 /= z1;
25634
25635      return (__float128) z2;
25636     }
25637
25638     __float128 bar (__float128 x)
25639     {
25640       return x * __builtin_huge_valq ();
25641     }
25642
25643 int
25644 main ()
25645 {
25646
25647     foo (1.2Q);
25648     bar (1.2Q);
25649
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 if ac_fn_c_try_compile "$LINENO"; then :
25655
25656     libgfor_cv_have_float128=yes
25657
25658 else
25659
25660     libgfor_cv_have_float128=no
25661
25662 fi
25663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25664 else
25665   if test x$gcc_no_link = xyes; then
25666   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25667 fi
25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669 /* end confdefs.h.  */
25670
25671     typedef _Complex float __attribute__((mode(TC))) __complex128;
25672
25673     __float128 foo (__float128 x)
25674     {
25675
25676      __complex128 z1, z2;
25677
25678      z1 = x;
25679      z2 = x / 7.Q;
25680      z2 /= z1;
25681
25682      return (__float128) z2;
25683     }
25684
25685     __float128 bar (__float128 x)
25686     {
25687       return x * __builtin_huge_valq ();
25688     }
25689
25690 int
25691 main ()
25692 {
25693
25694     foo (1.2Q);
25695     bar (1.2Q);
25696
25697   ;
25698   return 0;
25699 }
25700 _ACEOF
25701 if ac_fn_c_try_link "$LINENO"; then :
25702
25703     libgfor_cv_have_float128=yes
25704
25705 else
25706
25707     libgfor_cv_have_float128=no
25708
25709 fi
25710 rm -f core conftest.err conftest.$ac_objext \
25711     conftest$ac_exeext conftest.$ac_ext
25712 fi
25713 fi
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25715 $as_echo "$libgfor_cv_have_float128" >&6; }
25716
25717   if test "x$libgfor_cv_have_float128" = xyes; then
25718
25719 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25720
25721
25722                                 ac_xsave_c_werror_flag=$ac_c_werror_flag
25723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25724 $as_echo_n "checking whether --as-needed works... " >&6; }
25725 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25726   $as_echo_n "(cached) " >&6
25727 else
25728
25729       save_LDFLAGS="$LDFLAGS"
25730       LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25731       libgfor_cv_have_as_needed=no
25732
25733 ac_c_werror_flag=yes
25734       if test x$gcc_no_link = xyes; then
25735   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25736 fi
25737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25738 /* end confdefs.h.  */
25739
25740 int
25741 main ()
25742 {
25743
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 if ac_fn_c_try_link "$LINENO"; then :
25749   libgfor_cv_have_as_needed=yes
25750 else
25751   libgfor_cv_have_as_needed=no
25752 fi
25753 rm -f core conftest.err conftest.$ac_objext \
25754     conftest$ac_exeext conftest.$ac_ext
25755       LDFLAGS="$save_LDFLAGS"
25756       ac_c_werror_flag=$ac_xsave_c_werror_flag
25757
25758 fi
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25760 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25761
25762         if test "x$libgfor_cv_have_as_needed" = xyes; then
25763       LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25764     else
25765       LIBQUADSPEC="-lquadmath"
25766     fi
25767     if test -f ../libquadmath/libquadmath.la; then
25768       LIBQUADLIB=../libquadmath/libquadmath.la
25769       LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25770       LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25771     else
25772       LIBQUADLIB="-lquadmath"
25773       LIBQUADLIB_DEP=
25774       LIBQUADINCLUDE=
25775     fi
25776   fi
25777   else
25778     # for --disable-quadmath
25779     LIBQUADLIB=
25780     LIBQUADLIB_DEP=
25781     LIBQUADINCLUDE=
25782   fi
25783
25784
25785
25786
25787
25788
25789      if test "x$libgfor_cv_have_float128" = xyes; then
25790   LIBGFOR_BUILD_QUAD_TRUE=
25791   LIBGFOR_BUILD_QUAD_FALSE='#'
25792 else
25793   LIBGFOR_BUILD_QUAD_TRUE='#'
25794   LIBGFOR_BUILD_QUAD_FALSE=
25795 fi
25796
25797
25798
25799 # Check for GNU libc feenableexcept
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25801 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25802 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25803   $as_echo_n "(cached) " >&6
25804 else
25805   ac_check_lib_save_LIBS=$LIBS
25806 LIBS="-lm  $LIBS"
25807 if test x$gcc_no_link = xyes; then
25808   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25809 fi
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813 /* Override any GCC internal prototype to avoid an error.
25814    Use char because int might match the return type of a GCC
25815    builtin and then its argument prototype would still apply.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 #endif
25819 char feenableexcept ();
25820 int
25821 main ()
25822 {
25823 return feenableexcept ();
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 if ac_fn_c_try_link "$LINENO"; then :
25829   ac_cv_lib_m_feenableexcept=yes
25830 else
25831   ac_cv_lib_m_feenableexcept=no
25832 fi
25833 rm -f core conftest.err conftest.$ac_objext \
25834     conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25836 fi
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25838 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25839 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25840   have_feenableexcept=yes
25841 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25842
25843 fi
25844
25845
25846 # At least for glibc, clock_gettime is in librt.  But don't
25847 # pull that in if it still doesn't give us the function we want.  This
25848 # test is copied from libgomp, and modified to not link in -lrt as
25849 # libgfortran calls clock_gettime via a weak reference if it's found
25850 # in librt.
25851 if test $ac_cv_func_clock_gettime = no; then
25852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25853 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25854 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25855   $as_echo_n "(cached) " >&6
25856 else
25857   ac_check_lib_save_LIBS=$LIBS
25858 LIBS="-lrt  $LIBS"
25859 if test x$gcc_no_link = xyes; then
25860   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25861 fi
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h.  */
25864
25865 /* Override any GCC internal prototype to avoid an error.
25866    Use char because int might match the return type of a GCC
25867    builtin and then its argument prototype would still apply.  */
25868 #ifdef __cplusplus
25869 extern "C"
25870 #endif
25871 char clock_gettime ();
25872 int
25873 main ()
25874 {
25875 return clock_gettime ();
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 if ac_fn_c_try_link "$LINENO"; then :
25881   ac_cv_lib_rt_clock_gettime=yes
25882 else
25883   ac_cv_lib_rt_clock_gettime=no
25884 fi
25885 rm -f core conftest.err conftest.$ac_objext \
25886     conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25890 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25891 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25892
25893 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25894
25895 fi
25896
25897 fi
25898
25899 # Check for SysV fpsetmask
25900
25901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25902 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25903 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25904   $as_echo_n "(cached) " >&6
25905 else
25906
25907     if test x$gcc_no_link = xyes; then
25908   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25909 fi
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h.  */
25912
25913 #if HAVE_FLOATINGPOINT_H
25914 # include <floatingpoint.h>
25915 #endif /* HAVE_FLOATINGPOINT_H */
25916 #if HAVE_IEEEFP_H
25917 # include <ieeefp.h>
25918 #endif /* HAVE_IEEEFP_H */
25919 int
25920 main ()
25921 {
25922 fpsetmask(0);
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 if ac_fn_c_try_link "$LINENO"; then :
25928   eval "libgfor_cv_have_fpsetmask=yes"
25929 else
25930   eval "libgfor_cv_have_fpsetmask=no"
25931 fi
25932 rm -f core conftest.err conftest.$ac_objext \
25933     conftest$ac_exeext conftest.$ac_ext
25934
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25937 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25938   if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25939     have_fpsetmask=yes
25940
25941 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25942
25943   fi
25944
25945
25946 # Check for AIX fp_trap and fp_enable
25947 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25948 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25949   have_fp_trap=yes
25950 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25951
25952 fi
25953
25954 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25955 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25956   have_fp_enable=yes
25957 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25958
25959 fi
25960
25961
25962 # Runs configure.host to set up necessary host-dependent shell variables.
25963 # We then display a message about it, and propagate them through the
25964 # build chain.
25965 . ${srcdir}/configure.host
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25967 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25968 FPU_HOST_HEADER=config/${fpu_host}.h
25969
25970
25971 # Some targets require additional compiler options for IEEE compatibility.
25972 IEEE_FLAGS="${ieee_flags}"
25973
25974
25975
25976 # Check for POSIX getpwuid_r
25977 #
25978 # There are two versions of getpwuid_r, the POSIX one with 5
25979 # arguments, and another one with 4 arguments used by at least HP-UX
25980 # 10.2.
25981 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25983 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25984 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25985   $as_echo_n "(cached) " >&6
25986 else
25987
25988    if test x$gcc_no_link = xyes; then
25989   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25990 fi
25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h.  */
25993
25994 #include <stdio.h>
25995 #include <sys/types.h>
25996 #include <pwd.h>
25997 int
25998 main ()
25999 {
26000
26001     getpwuid_r(0, NULL, NULL, 0, NULL);
26002
26003   ;
26004   return 0;
26005 }
26006 _ACEOF
26007 if ac_fn_c_try_link "$LINENO"; then :
26008   libgfor_cv_posix_getpwuid_r="yes"
26009 else
26010   libgfor_cv_posix_getpwuid_r="no"
26011 fi
26012 rm -f core conftest.err conftest.$ac_objext \
26013     conftest$ac_exeext conftest.$ac_ext
26014 fi
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26016 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26017 fi
26018 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26019
26020 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26021
26022 fi
26023
26024
26025 # Check out attribute support.
26026
26027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26028 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26029 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26030   $as_echo_n "(cached) " >&6
26031 else
26032
26033   save_CFLAGS="$CFLAGS"
26034   CFLAGS="$CFLAGS -Werror"
26035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h.  */
26037 void __attribute__((visibility("hidden"))) foo(void) { }
26038 int
26039 main ()
26040 {
26041
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 if ac_fn_c_try_compile "$LINENO"; then :
26047   libgfor_cv_have_attribute_visibility=yes
26048 else
26049   libgfor_cv_have_attribute_visibility=no
26050 fi
26051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26052   CFLAGS="$save_CFLAGS"
26053 fi
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26055 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26056   if test $libgfor_cv_have_attribute_visibility = yes; then
26057
26058 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26059
26060   fi
26061
26062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26063 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26064 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26065   $as_echo_n "(cached) " >&6
26066 else
26067
26068   save_CFLAGS="$CFLAGS"
26069   CFLAGS="$CFLAGS -Werror"
26070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26071 /* end confdefs.h.  */
26072 void __attribute__((dllexport)) foo(void) { }
26073 int
26074 main ()
26075 {
26076
26077   ;
26078   return 0;
26079 }
26080 _ACEOF
26081 if ac_fn_c_try_compile "$LINENO"; then :
26082   libgfor_cv_have_attribute_dllexport=yes
26083 else
26084   libgfor_cv_have_attribute_dllexport=no
26085 fi
26086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26087   CFLAGS="$save_CFLAGS"
26088 fi
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26090 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26091   if test $libgfor_cv_have_attribute_dllexport = yes; then
26092
26093 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26094
26095   fi
26096
26097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26098 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26099 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26100   $as_echo_n "(cached) " >&6
26101 else
26102
26103   if test x$gcc_no_link = xyes; then
26104   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26105 fi
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h.  */
26108
26109 void foo(void) { }
26110 extern void bar(void) __attribute__((alias("foo")));
26111 int
26112 main ()
26113 {
26114 bar();
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 if ac_fn_c_try_link "$LINENO"; then :
26120   libgfor_cv_have_attribute_alias=yes
26121 else
26122   libgfor_cv_have_attribute_alias=no
26123 fi
26124 rm -f core conftest.err conftest.$ac_objext \
26125     conftest$ac_exeext conftest.$ac_ext
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26128 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26129   if test $libgfor_cv_have_attribute_alias = yes; then
26130
26131 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26132
26133   fi
26134
26135 # Check out sync builtins support.
26136
26137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26138 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26139 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26140   $as_echo_n "(cached) " >&6
26141 else
26142
26143   if test x$gcc_no_link = xyes; then
26144   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26145 fi
26146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h.  */
26148 int foovar = 0;
26149 int
26150 main ()
26151 {
26152
26153 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26154 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26155   ;
26156   return 0;
26157 }
26158 _ACEOF
26159 if ac_fn_c_try_link "$LINENO"; then :
26160   libgfor_cv_have_sync_fetch_and_add=yes
26161 else
26162   libgfor_cv_have_sync_fetch_and_add=no
26163 fi
26164 rm -f core conftest.err conftest.$ac_objext \
26165     conftest$ac_exeext conftest.$ac_ext
26166 fi
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26168 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26169   if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26170
26171 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26172
26173   fi
26174
26175 # Check out #pragma weak.
26176
26177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26178 $as_echo_n "checking whether pragma weak works... " >&6; }
26179 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26180   $as_echo_n "(cached) " >&6
26181 else
26182
26183   gfor_save_CFLAGS="$CFLAGS"
26184   CFLAGS="$CFLAGS -Wunknown-pragmas"
26185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h.  */
26187
26188 void foo (void);
26189 #pragma weak foo
26190
26191 int
26192 main ()
26193 {
26194 if (foo) foo ();
26195   ;
26196   return 0;
26197 }
26198 _ACEOF
26199 if ac_fn_c_try_compile "$LINENO"; then :
26200   libgfor_cv_have_pragma_weak=yes
26201 else
26202   libgfor_cv_have_pragma_weak=no
26203 fi
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205 fi
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26207 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26208   if test $libgfor_cv_have_pragma_weak = yes; then
26209
26210 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26211
26212   fi
26213   case "$host" in
26214     *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26215
26216 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26217
26218       ;;
26219   esac
26220
26221 # Various other checks on target
26222
26223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26224 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26225 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26226   $as_echo_n "(cached) " >&6
26227 else
26228
26229   if test "$cross_compiling" = yes; then :
26230
26231 case "${target}" in
26232   *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26233   *) libgfor_cv_have_unlink_open_file=yes;;
26234 esac
26235 else
26236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26237 /* end confdefs.h.  */
26238
26239 #include <errno.h>
26240 #include <fcntl.h>
26241 #include <unistd.h>
26242 #include <sys/stat.h>
26243
26244 int main ()
26245 {
26246   int fd;
26247
26248   fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26249   if (fd <= 0)
26250     return 0;
26251   if (unlink ("testfile") == -1)
26252     return 1;
26253   write (fd, "This is a test\n", 15);
26254   close (fd);
26255
26256   if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26257     return 0;
26258   else
26259     return 1;
26260 }
26261 _ACEOF
26262 if ac_fn_c_try_run "$LINENO"; then :
26263   libgfor_cv_have_unlink_open_file=yes
26264 else
26265   libgfor_cv_have_unlink_open_file=no
26266 fi
26267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26268   conftest.$ac_objext conftest.beam conftest.$ac_ext
26269 fi
26270
26271 fi
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26273 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26274 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26275
26276 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26277
26278 fi
26279
26280 # Check whether line terminator is LF or CRLF
26281
26282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26283 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26284 if test "${libgfor_cv_have_crlf+set}" = set; then :
26285   $as_echo_n "(cached) " >&6
26286 else
26287
26288   if test "$cross_compiling" = yes; then :
26289
26290 case "${target}" in
26291   *mingw*) libgfor_cv_have_crlf=yes ;;
26292   *) libgfor_cv_have_crlf=no;;
26293 esac
26294 else
26295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26296 /* end confdefs.h.  */
26297
26298 /* This test program should exit with status 0 if system uses a CRLF as
26299    line terminator, and status 1 otherwise.
26300    Since it is used to check for mingw systems, and should return 0 in any
26301    other case, in case of a failure we will not use CRLF.  */
26302 #include <sys/stat.h>
26303 #include <stdlib.h>
26304 #include <fcntl.h>
26305 #include <stdio.h>
26306
26307 int main ()
26308 {
26309 #ifndef O_BINARY
26310   exit(1);
26311 #else
26312   int fd, bytes;
26313   char buff[5];
26314
26315   fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26316   if (fd < 0)
26317     exit(1);
26318   if (write (fd, "\n", 1) < 0)
26319     perror ("write");
26320
26321   close (fd);
26322
26323   if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26324     exit(1);
26325   bytes = read (fd, buff, 5);
26326   if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26327     exit(0);
26328   else
26329     exit(1);
26330 #endif
26331 }
26332 _ACEOF
26333 if ac_fn_c_try_run "$LINENO"; then :
26334   libgfor_cv_have_crlf=yes
26335 else
26336   libgfor_cv_have_crlf=no
26337 fi
26338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26339   conftest.$ac_objext conftest.beam conftest.$ac_ext
26340 fi
26341
26342 fi
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26344 $as_echo "$libgfor_cv_have_crlf" >&6; }
26345 if test x"$libgfor_cv_have_crlf" = xyes; then
26346
26347 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26348
26349 fi
26350
26351 # Check whether we have _Unwind_GetIPInfo for backtrace
26352
26353
26354 # Check whether --with-system-libunwind was given.
26355 if test "${with_system_libunwind+set}" = set; then :
26356   withval=$with_system_libunwind;
26357 fi
26358
26359   # If system-libunwind was not specifically set, pick a default setting.
26360   if test x$with_system_libunwind = x; then
26361     case ${target} in
26362       ia64-*-hpux*) with_system_libunwind=yes ;;
26363       *) with_system_libunwind=no ;;
26364     esac
26365   fi
26366   # Based on system-libunwind and target, do we have ipinfo?
26367   if  test x$with_system_libunwind = xyes; then
26368     case ${target} in
26369       ia64-*-*) have_unwind_getipinfo=no ;;
26370       *) have_unwind_getipinfo=yes ;;
26371     esac
26372   else
26373     # Darwin before version 9 does not have _Unwind_GetIPInfo.
26374
26375     case ${target} in
26376       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26377       *) have_unwind_getipinfo=yes ;;
26378     esac
26379
26380   fi
26381
26382   if test x$have_unwind_getipinfo = xyes; then
26383
26384 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26385
26386   fi
26387
26388
26389 cat >confcache <<\_ACEOF
26390 # This file is a shell script that caches the results of configure
26391 # tests run on this system so they can be shared between configure
26392 # scripts and configure runs, see configure's option --config-cache.
26393 # It is not useful on other systems.  If it contains results you don't
26394 # want to keep, you may remove or edit it.
26395 #
26396 # config.status only pays attention to the cache file if you give it
26397 # the --recheck option to rerun configure.
26398 #
26399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26401 # following values.
26402
26403 _ACEOF
26404
26405 # The following way of writing the cache mishandles newlines in values,
26406 # but we know of no workaround that is simple, portable, and efficient.
26407 # So, we kill variables containing newlines.
26408 # Ultrix sh set writes to stderr and can't be redirected directly,
26409 # and sets the high bit in the cache file unless we assign to the vars.
26410 (
26411   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26412     eval ac_val=\$$ac_var
26413     case $ac_val in #(
26414     *${as_nl}*)
26415       case $ac_var in #(
26416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26418       esac
26419       case $ac_var in #(
26420       _ | IFS | as_nl) ;; #(
26421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26422       *) { eval $ac_var=; unset $ac_var;} ;;
26423       esac ;;
26424     esac
26425   done
26426
26427   (set) 2>&1 |
26428     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26429     *${as_nl}ac_space=\ *)
26430       # `set' does not quote correctly, so add quotes: double-quote
26431       # substitution turns \\\\ into \\, and sed turns \\ into \.
26432       sed -n \
26433         "s/'/'\\\\''/g;
26434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26435       ;; #(
26436     *)
26437       # `set' quotes correctly as required by POSIX, so do not add quotes.
26438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26439       ;;
26440     esac |
26441     sort
26442 ) |
26443   sed '
26444      /^ac_cv_env_/b end
26445      t clear
26446      :clear
26447      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26448      t end
26449      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26450      :end' >>confcache
26451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26452   if test -w "$cache_file"; then
26453     test "x$cache_file" != "x/dev/null" &&
26454       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26455 $as_echo "$as_me: updating cache $cache_file" >&6;}
26456     cat confcache >$cache_file
26457   else
26458     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26459 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26460   fi
26461 fi
26462 rm -f confcache
26463
26464 if test ${multilib} = yes; then
26465   multilib_arg="--enable-multilib"
26466 else
26467   multilib_arg=
26468 fi
26469
26470 # Write our Makefile and spec file.
26471 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26472
26473 cat >confcache <<\_ACEOF
26474 # This file is a shell script that caches the results of configure
26475 # tests run on this system so they can be shared between configure
26476 # scripts and configure runs, see configure's option --config-cache.
26477 # It is not useful on other systems.  If it contains results you don't
26478 # want to keep, you may remove or edit it.
26479 #
26480 # config.status only pays attention to the cache file if you give it
26481 # the --recheck option to rerun configure.
26482 #
26483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26485 # following values.
26486
26487 _ACEOF
26488
26489 # The following way of writing the cache mishandles newlines in values,
26490 # but we know of no workaround that is simple, portable, and efficient.
26491 # So, we kill variables containing newlines.
26492 # Ultrix sh set writes to stderr and can't be redirected directly,
26493 # and sets the high bit in the cache file unless we assign to the vars.
26494 (
26495   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26496     eval ac_val=\$$ac_var
26497     case $ac_val in #(
26498     *${as_nl}*)
26499       case $ac_var in #(
26500       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26501 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26502       esac
26503       case $ac_var in #(
26504       _ | IFS | as_nl) ;; #(
26505       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26506       *) { eval $ac_var=; unset $ac_var;} ;;
26507       esac ;;
26508     esac
26509   done
26510
26511   (set) 2>&1 |
26512     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26513     *${as_nl}ac_space=\ *)
26514       # `set' does not quote correctly, so add quotes: double-quote
26515       # substitution turns \\\\ into \\, and sed turns \\ into \.
26516       sed -n \
26517         "s/'/'\\\\''/g;
26518           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26519       ;; #(
26520     *)
26521       # `set' quotes correctly as required by POSIX, so do not add quotes.
26522       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26523       ;;
26524     esac |
26525     sort
26526 ) |
26527   sed '
26528      /^ac_cv_env_/b end
26529      t clear
26530      :clear
26531      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26532      t end
26533      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26534      :end' >>confcache
26535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26536   if test -w "$cache_file"; then
26537     test "x$cache_file" != "x/dev/null" &&
26538       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26539 $as_echo "$as_me: updating cache $cache_file" >&6;}
26540     cat confcache >$cache_file
26541   else
26542     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26544   fi
26545 fi
26546 rm -f confcache
26547
26548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26549 # Let make expand exec_prefix.
26550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26551
26552 DEFS=-DHAVE_CONFIG_H
26553
26554 ac_libobjs=
26555 ac_ltlibobjs=
26556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26557   # 1. Remove the extension, and $U if already installed.
26558   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26559   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26560   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26561   #    will be set to the directory where LIBOBJS objects are built.
26562   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26563   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26564 done
26565 LIBOBJS=$ac_libobjs
26566
26567 LTLIBOBJS=$ac_ltlibobjs
26568
26569
26570 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26571   as_fn_error "conditional \"onestep\" was never defined.
26572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26573 fi
26574  if test -n "$EXEEXT"; then
26575   am__EXEEXT_TRUE=
26576   am__EXEEXT_FALSE='#'
26577 else
26578   am__EXEEXT_TRUE='#'
26579   am__EXEEXT_FALSE=
26580 fi
26581
26582 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26583   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26585 fi
26586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26587   as_fn_error "conditional \"AMDEP\" was never defined.
26588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26589 fi
26590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26591   as_fn_error "conditional \"am__fastdepCC\" was never defined.
26592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26593 fi
26594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26595   as_fn_error "conditional \"am__fastdepCC\" was never defined.
26596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26597 fi
26598 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26599   as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26601 fi
26602 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26603   as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26605 fi
26606 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26607   as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26609 fi
26610 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26611   as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26613 fi
26614
26615 : ${CONFIG_STATUS=./config.status}
26616 ac_write_fail=0
26617 ac_clean_files_save=$ac_clean_files
26618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26621 as_write_fail=0
26622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26623 #! $SHELL
26624 # Generated by $as_me.
26625 # Run this file to recreate the current configuration.
26626 # Compiler output produced by configure, useful for debugging
26627 # configure, is in config.log if it exists.
26628
26629 debug=false
26630 ac_cs_recheck=false
26631 ac_cs_silent=false
26632
26633 SHELL=\${CONFIG_SHELL-$SHELL}
26634 export SHELL
26635 _ASEOF
26636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26637 ## -------------------- ##
26638 ## M4sh Initialization. ##
26639 ## -------------------- ##
26640
26641 # Be more Bourne compatible
26642 DUALCASE=1; export DUALCASE # for MKS sh
26643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26644   emulate sh
26645   NULLCMD=:
26646   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26647   # is contrary to our usage.  Disable this feature.
26648   alias -g '${1+"$@"}'='"$@"'
26649   setopt NO_GLOB_SUBST
26650 else
26651   case `(set -o) 2>/dev/null` in #(
26652   *posix*) :
26653     set -o posix ;; #(
26654   *) :
26655      ;;
26656 esac
26657 fi
26658
26659
26660 as_nl='
26661 '
26662 export as_nl
26663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26667 # Prefer a ksh shell builtin over an external printf program on Solaris,
26668 # but without wasting forks for bash or zsh.
26669 if test -z "$BASH_VERSION$ZSH_VERSION" \
26670     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26671   as_echo='print -r --'
26672   as_echo_n='print -rn --'
26673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26674   as_echo='printf %s\n'
26675   as_echo_n='printf %s'
26676 else
26677   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26678     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26679     as_echo_n='/usr/ucb/echo -n'
26680   else
26681     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26682     as_echo_n_body='eval
26683       arg=$1;
26684       case $arg in #(
26685       *"$as_nl"*)
26686         expr "X$arg" : "X\\(.*\\)$as_nl";
26687         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26688       esac;
26689       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26690     '
26691     export as_echo_n_body
26692     as_echo_n='sh -c $as_echo_n_body as_echo'
26693   fi
26694   export as_echo_body
26695   as_echo='sh -c $as_echo_body as_echo'
26696 fi
26697
26698 # The user is always right.
26699 if test "${PATH_SEPARATOR+set}" != set; then
26700   PATH_SEPARATOR=:
26701   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26702     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26703       PATH_SEPARATOR=';'
26704   }
26705 fi
26706
26707
26708 # IFS
26709 # We need space, tab and new line, in precisely that order.  Quoting is
26710 # there to prevent editors from complaining about space-tab.
26711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26712 # splitting by setting IFS to empty value.)
26713 IFS=" ""        $as_nl"
26714
26715 # Find who we are.  Look in the path if we contain no directory separator.
26716 case $0 in #((
26717   *[\\/]* ) as_myself=$0 ;;
26718   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26719 for as_dir in $PATH
26720 do
26721   IFS=$as_save_IFS
26722   test -z "$as_dir" && as_dir=.
26723     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26724   done
26725 IFS=$as_save_IFS
26726
26727      ;;
26728 esac
26729 # We did not find ourselves, most probably we were run as `sh COMMAND'
26730 # in which case we are not to be found in the path.
26731 if test "x$as_myself" = x; then
26732   as_myself=$0
26733 fi
26734 if test ! -f "$as_myself"; then
26735   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26736   exit 1
26737 fi
26738
26739 # Unset variables that we do not need and which cause bugs (e.g. in
26740 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26741 # suppresses any "Segmentation fault" message there.  '((' could
26742 # trigger a bug in pdksh 5.2.14.
26743 for as_var in BASH_ENV ENV MAIL MAILPATH
26744 do eval test x\${$as_var+set} = xset \
26745   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26746 done
26747 PS1='$ '
26748 PS2='> '
26749 PS4='+ '
26750
26751 # NLS nuisances.
26752 LC_ALL=C
26753 export LC_ALL
26754 LANGUAGE=C
26755 export LANGUAGE
26756
26757 # CDPATH.
26758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26759
26760
26761 # as_fn_error ERROR [LINENO LOG_FD]
26762 # ---------------------------------
26763 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26764 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26765 # script with status $?, using 1 if that was 0.
26766 as_fn_error ()
26767 {
26768   as_status=$?; test $as_status -eq 0 && as_status=1
26769   if test "$3"; then
26770     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26771     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26772   fi
26773   $as_echo "$as_me: error: $1" >&2
26774   as_fn_exit $as_status
26775 } # as_fn_error
26776
26777
26778 # as_fn_set_status STATUS
26779 # -----------------------
26780 # Set $? to STATUS, without forking.
26781 as_fn_set_status ()
26782 {
26783   return $1
26784 } # as_fn_set_status
26785
26786 # as_fn_exit STATUS
26787 # -----------------
26788 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26789 as_fn_exit ()
26790 {
26791   set +e
26792   as_fn_set_status $1
26793   exit $1
26794 } # as_fn_exit
26795
26796 # as_fn_unset VAR
26797 # ---------------
26798 # Portably unset VAR.
26799 as_fn_unset ()
26800 {
26801   { eval $1=; unset $1;}
26802 }
26803 as_unset=as_fn_unset
26804 # as_fn_append VAR VALUE
26805 # ----------------------
26806 # Append the text in VALUE to the end of the definition contained in VAR. Take
26807 # advantage of any shell optimizations that allow amortized linear growth over
26808 # repeated appends, instead of the typical quadratic growth present in naive
26809 # implementations.
26810 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26811   eval 'as_fn_append ()
26812   {
26813     eval $1+=\$2
26814   }'
26815 else
26816   as_fn_append ()
26817   {
26818     eval $1=\$$1\$2
26819   }
26820 fi # as_fn_append
26821
26822 # as_fn_arith ARG...
26823 # ------------------
26824 # Perform arithmetic evaluation on the ARGs, and store the result in the
26825 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26826 # must be portable across $(()) and expr.
26827 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26828   eval 'as_fn_arith ()
26829   {
26830     as_val=$(( $* ))
26831   }'
26832 else
26833   as_fn_arith ()
26834   {
26835     as_val=`expr "$@" || test $? -eq 1`
26836   }
26837 fi # as_fn_arith
26838
26839
26840 if expr a : '\(a\)' >/dev/null 2>&1 &&
26841    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26842   as_expr=expr
26843 else
26844   as_expr=false
26845 fi
26846
26847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26848   as_basename=basename
26849 else
26850   as_basename=false
26851 fi
26852
26853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26854   as_dirname=dirname
26855 else
26856   as_dirname=false
26857 fi
26858
26859 as_me=`$as_basename -- "$0" ||
26860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26861          X"$0" : 'X\(//\)$' \| \
26862          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26863 $as_echo X/"$0" |
26864     sed '/^.*\/\([^/][^/]*\)\/*$/{
26865             s//\1/
26866             q
26867           }
26868           /^X\/\(\/\/\)$/{
26869             s//\1/
26870             q
26871           }
26872           /^X\/\(\/\).*/{
26873             s//\1/
26874             q
26875           }
26876           s/.*/./; q'`
26877
26878 # Avoid depending upon Character Ranges.
26879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26882 as_cr_digits='0123456789'
26883 as_cr_alnum=$as_cr_Letters$as_cr_digits
26884
26885 ECHO_C= ECHO_N= ECHO_T=
26886 case `echo -n x` in #(((((
26887 -n*)
26888   case `echo 'xy\c'` in
26889   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26890   xy)  ECHO_C='\c';;
26891   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26892        ECHO_T=' ';;
26893   esac;;
26894 *)
26895   ECHO_N='-n';;
26896 esac
26897
26898 rm -f conf$$ conf$$.exe conf$$.file
26899 if test -d conf$$.dir; then
26900   rm -f conf$$.dir/conf$$.file
26901 else
26902   rm -f conf$$.dir
26903   mkdir conf$$.dir 2>/dev/null
26904 fi
26905 if (echo >conf$$.file) 2>/dev/null; then
26906   if ln -s conf$$.file conf$$ 2>/dev/null; then
26907     as_ln_s='ln -s'
26908     # ... but there are two gotchas:
26909     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26910     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26911     # In both cases, we have to default to `cp -p'.
26912     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26913       as_ln_s='cp -p'
26914   elif ln conf$$.file conf$$ 2>/dev/null; then
26915     as_ln_s=ln
26916   else
26917     as_ln_s='cp -p'
26918   fi
26919 else
26920   as_ln_s='cp -p'
26921 fi
26922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26923 rmdir conf$$.dir 2>/dev/null
26924
26925
26926 # as_fn_mkdir_p
26927 # -------------
26928 # Create "$as_dir" as a directory, including parents if necessary.
26929 as_fn_mkdir_p ()
26930 {
26931
26932   case $as_dir in #(
26933   -*) as_dir=./$as_dir;;
26934   esac
26935   test -d "$as_dir" || eval $as_mkdir_p || {
26936     as_dirs=
26937     while :; do
26938       case $as_dir in #(
26939       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26940       *) as_qdir=$as_dir;;
26941       esac
26942       as_dirs="'$as_qdir' $as_dirs"
26943       as_dir=`$as_dirname -- "$as_dir" ||
26944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26945          X"$as_dir" : 'X\(//\)[^/]' \| \
26946          X"$as_dir" : 'X\(//\)$' \| \
26947          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26948 $as_echo X"$as_dir" |
26949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26950             s//\1/
26951             q
26952           }
26953           /^X\(\/\/\)[^/].*/{
26954             s//\1/
26955             q
26956           }
26957           /^X\(\/\/\)$/{
26958             s//\1/
26959             q
26960           }
26961           /^X\(\/\).*/{
26962             s//\1/
26963             q
26964           }
26965           s/.*/./; q'`
26966       test -d "$as_dir" && break
26967     done
26968     test -z "$as_dirs" || eval "mkdir $as_dirs"
26969   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26970
26971
26972 } # as_fn_mkdir_p
26973 if mkdir -p . 2>/dev/null; then
26974   as_mkdir_p='mkdir -p "$as_dir"'
26975 else
26976   test -d ./-p && rmdir ./-p
26977   as_mkdir_p=false
26978 fi
26979
26980 if test -x / >/dev/null 2>&1; then
26981   as_test_x='test -x'
26982 else
26983   if ls -dL / >/dev/null 2>&1; then
26984     as_ls_L_option=L
26985   else
26986     as_ls_L_option=
26987   fi
26988   as_test_x='
26989     eval sh -c '\''
26990       if test -d "$1"; then
26991         test -d "$1/.";
26992       else
26993         case $1 in #(
26994         -*)set "./$1";;
26995         esac;
26996         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26997         ???[sx]*):;;*)false;;esac;fi
26998     '\'' sh
26999   '
27000 fi
27001 as_executable_p=$as_test_x
27002
27003 # Sed expression to map a string onto a valid CPP name.
27004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27005
27006 # Sed expression to map a string onto a valid variable name.
27007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27008
27009
27010 exec 6>&1
27011 ## ----------------------------------- ##
27012 ## Main body of $CONFIG_STATUS script. ##
27013 ## ----------------------------------- ##
27014 _ASEOF
27015 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27016
27017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27018 # Save the log message, to keep $0 and so on meaningful, and to
27019 # report actual input values of CONFIG_FILES etc. instead of their
27020 # values after options handling.
27021 ac_log="
27022 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27023 generated by GNU Autoconf 2.64.  Invocation command line was
27024
27025   CONFIG_FILES    = $CONFIG_FILES
27026   CONFIG_HEADERS  = $CONFIG_HEADERS
27027   CONFIG_LINKS    = $CONFIG_LINKS
27028   CONFIG_COMMANDS = $CONFIG_COMMANDS
27029   $ $0 $@
27030
27031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27032 "
27033
27034 _ACEOF
27035
27036 case $ac_config_files in *"
27037 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27038 esac
27039
27040 case $ac_config_headers in *"
27041 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27042 esac
27043
27044
27045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27046 # Files that config.status was made for.
27047 config_files="$ac_config_files"
27048 config_headers="$ac_config_headers"
27049 config_commands="$ac_config_commands"
27050
27051 _ACEOF
27052
27053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27054 ac_cs_usage="\
27055 \`$as_me' instantiates files and other configuration actions
27056 from templates according to the current configuration.  Unless the files
27057 and actions are specified as TAGs, all are instantiated by default.
27058
27059 Usage: $0 [OPTION]... [TAG]...
27060
27061   -h, --help       print this help, then exit
27062   -V, --version    print version number and configuration settings, then exit
27063   -q, --quiet, --silent
27064                    do not print progress messages
27065   -d, --debug      don't remove temporary files
27066       --recheck    update $as_me by reconfiguring in the same conditions
27067       --file=FILE[:TEMPLATE]
27068                    instantiate the configuration file FILE
27069       --header=FILE[:TEMPLATE]
27070                    instantiate the configuration header FILE
27071
27072 Configuration files:
27073 $config_files
27074
27075 Configuration headers:
27076 $config_headers
27077
27078 Configuration commands:
27079 $config_commands
27080
27081 Report bugs to the package provider.
27082 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27083 General help using GNU software: <http://www.gnu.org/gethelp/>."
27084
27085 _ACEOF
27086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27087 ac_cs_version="\\
27088 GNU Fortran Runtime Library config.status 0.3
27089 configured by $0, generated by GNU Autoconf 2.64,
27090   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27091
27092 Copyright (C) 2009 Free Software Foundation, Inc.
27093 This config.status script is free software; the Free Software Foundation
27094 gives unlimited permission to copy, distribute and modify it."
27095
27096 ac_pwd='$ac_pwd'
27097 srcdir='$srcdir'
27098 INSTALL='$INSTALL'
27099 MKDIR_P='$MKDIR_P'
27100 AWK='$AWK'
27101 test -n "\$AWK" || AWK=awk
27102 _ACEOF
27103
27104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27105 # The default lists apply if the user does not specify any file.
27106 ac_need_defaults=:
27107 while test $# != 0
27108 do
27109   case $1 in
27110   --*=*)
27111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27112     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27113     ac_shift=:
27114     ;;
27115   *)
27116     ac_option=$1
27117     ac_optarg=$2
27118     ac_shift=shift
27119     ;;
27120   esac
27121
27122   case $ac_option in
27123   # Handling of the options.
27124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27125     ac_cs_recheck=: ;;
27126   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27127     $as_echo "$ac_cs_version"; exit ;;
27128   --debug | --debu | --deb | --de | --d | -d )
27129     debug=: ;;
27130   --file | --fil | --fi | --f )
27131     $ac_shift
27132     case $ac_optarg in
27133     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27134     esac
27135     as_fn_append CONFIG_FILES " '$ac_optarg'"
27136     ac_need_defaults=false;;
27137   --header | --heade | --head | --hea )
27138     $ac_shift
27139     case $ac_optarg in
27140     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27141     esac
27142     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27143     ac_need_defaults=false;;
27144   --he | --h)
27145     # Conflict between --help and --header
27146     as_fn_error "ambiguous option: \`$1'
27147 Try \`$0 --help' for more information.";;
27148   --help | --hel | -h )
27149     $as_echo "$ac_cs_usage"; exit ;;
27150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27151   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27152     ac_cs_silent=: ;;
27153
27154   # This is an error.
27155   -*) as_fn_error "unrecognized option: \`$1'
27156 Try \`$0 --help' for more information." ;;
27157
27158   *) as_fn_append ac_config_targets " $1"
27159      ac_need_defaults=false ;;
27160
27161   esac
27162   shift
27163 done
27164
27165 ac_configure_extra_args=
27166
27167 if $ac_cs_silent; then
27168   exec 6>/dev/null
27169   ac_configure_extra_args="$ac_configure_extra_args --silent"
27170 fi
27171
27172 _ACEOF
27173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27174 if \$ac_cs_recheck; then
27175   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27176   shift
27177   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27178   CONFIG_SHELL='$SHELL'
27179   export CONFIG_SHELL
27180   exec "\$@"
27181 fi
27182
27183 _ACEOF
27184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27185 exec 5>>config.log
27186 {
27187   echo
27188   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27189 ## Running $as_me. ##
27190 _ASBOX
27191   $as_echo "$ac_log"
27192 } >&5
27193
27194 _ACEOF
27195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27196 #
27197 # INIT-COMMANDS
27198 #
27199
27200 srcdir="$srcdir"
27201 host="$host"
27202 target="$target"
27203 with_multisubdir="$with_multisubdir"
27204 with_multisrctop="$with_multisrctop"
27205 with_target_subdir="$with_target_subdir"
27206 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27207 multi_basedir="$multi_basedir"
27208 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27209 CC="$CC"
27210 CXX="$CXX"
27211 GFORTRAN="$GFORTRAN"
27212 GCJ="$GCJ"
27213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27214
27215
27216 # The HP-UX ksh and POSIX shell print the target directory to stdout
27217 # if CDPATH is set.
27218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27219
27220 sed_quote_subst='$sed_quote_subst'
27221 double_quote_subst='$double_quote_subst'
27222 delay_variable_subst='$delay_variable_subst'
27223 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27224 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27225 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27226 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27227 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27228 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27229 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27230 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27231 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27232 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27233 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27234 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27235 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27236 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27237 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27238 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27239 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27240 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27241 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27242 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27243 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27244 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27245 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27246 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27247 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27248 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27249 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27250 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27251 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27252 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27254 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27255 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27256 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27257 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27258 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27259 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27260 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27261 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27262 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27263 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27264 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27265 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27266 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27267 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27268 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27269 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27270 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27272 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27273 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27274 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27275 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27276 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27277 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27278 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27279 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27280 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27281 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27282 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27283 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27284 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27285 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27286 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27287 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27288 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27289 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27290 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27291 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27292 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27293 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27294 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27295 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27296 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27297 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27298 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27299 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27300 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27301 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27302 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27303 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27304 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27305 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27306 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27307 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27308 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27309 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27310 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27311 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27312 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27313 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27314 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27315 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27316 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27317 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27318 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27319 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27320 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27321 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27322 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27323 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27324 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27325 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27326 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27327 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27328 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27329 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27330 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27331 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27332 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27333 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27334 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27335 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27336 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27337 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27338 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27339 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27340 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27341 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27342 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27343 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27344 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27345 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27346 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27347 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27348 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27349 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27350 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27351 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27352 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27353 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27354 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27355 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27356 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27357 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27358 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27359 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27360 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27361 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27362 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27363 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27364 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27365 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27366 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27367 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27368 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27369 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27370 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27371 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27372 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27373 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27374 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27375 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27376 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27377 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27378 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27379 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27380 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27381 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27382 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27383 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27384 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27385 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27386 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27387 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27388 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27389 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27390 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27391 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27392 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27393 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27394 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27395 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27396 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27397 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27398
27399 LTCC='$LTCC'
27400 LTCFLAGS='$LTCFLAGS'
27401 compiler='$compiler_DEFAULT'
27402
27403 # A function that is used when there is no print builtin or printf.
27404 func_fallback_echo ()
27405 {
27406   eval 'cat <<_LTECHO_EOF
27407 \$1
27408 _LTECHO_EOF'
27409 }
27410
27411 # Quote evaled strings.
27412 for var in SHELL \
27413 ECHO \
27414 SED \
27415 GREP \
27416 EGREP \
27417 FGREP \
27418 LD \
27419 NM \
27420 LN_S \
27421 lt_SP2NL \
27422 lt_NL2SP \
27423 reload_flag \
27424 OBJDUMP \
27425 deplibs_check_method \
27426 file_magic_cmd \
27427 AR \
27428 AR_FLAGS \
27429 STRIP \
27430 RANLIB \
27431 CC \
27432 CFLAGS \
27433 compiler \
27434 lt_cv_sys_global_symbol_pipe \
27435 lt_cv_sys_global_symbol_to_cdecl \
27436 lt_cv_sys_global_symbol_to_c_name_address \
27437 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27438 lt_prog_compiler_no_builtin_flag \
27439 lt_prog_compiler_wl \
27440 lt_prog_compiler_pic \
27441 lt_prog_compiler_static \
27442 lt_cv_prog_compiler_c_o \
27443 need_locks \
27444 DSYMUTIL \
27445 NMEDIT \
27446 LIPO \
27447 OTOOL \
27448 OTOOL64 \
27449 shrext_cmds \
27450 export_dynamic_flag_spec \
27451 whole_archive_flag_spec \
27452 compiler_needs_object \
27453 with_gnu_ld \
27454 allow_undefined_flag \
27455 no_undefined_flag \
27456 hardcode_libdir_flag_spec \
27457 hardcode_libdir_flag_spec_ld \
27458 hardcode_libdir_separator \
27459 fix_srcfile_path \
27460 exclude_expsyms \
27461 include_expsyms \
27462 file_list_spec \
27463 variables_saved_for_relink \
27464 libname_spec \
27465 library_names_spec \
27466 soname_spec \
27467 install_override_mode \
27468 finish_eval \
27469 old_striplib \
27470 striplib \
27471 compiler_lib_search_dirs \
27472 predep_objects \
27473 postdep_objects \
27474 predeps \
27475 postdeps \
27476 compiler_lib_search_path \
27477 LD_FC \
27478 reload_flag_FC \
27479 compiler_FC \
27480 lt_prog_compiler_no_builtin_flag_FC \
27481 lt_prog_compiler_wl_FC \
27482 lt_prog_compiler_pic_FC \
27483 lt_prog_compiler_static_FC \
27484 lt_cv_prog_compiler_c_o_FC \
27485 export_dynamic_flag_spec_FC \
27486 whole_archive_flag_spec_FC \
27487 compiler_needs_object_FC \
27488 with_gnu_ld_FC \
27489 allow_undefined_flag_FC \
27490 no_undefined_flag_FC \
27491 hardcode_libdir_flag_spec_FC \
27492 hardcode_libdir_flag_spec_ld_FC \
27493 hardcode_libdir_separator_FC \
27494 fix_srcfile_path_FC \
27495 exclude_expsyms_FC \
27496 include_expsyms_FC \
27497 file_list_spec_FC \
27498 compiler_lib_search_dirs_FC \
27499 predep_objects_FC \
27500 postdep_objects_FC \
27501 predeps_FC \
27502 postdeps_FC \
27503 compiler_lib_search_path_FC; do
27504     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27505     *[\\\\\\\`\\"\\\$]*)
27506       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27507       ;;
27508     *)
27509       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27510       ;;
27511     esac
27512 done
27513
27514 # Double-quote double-evaled strings.
27515 for var in reload_cmds \
27516 old_postinstall_cmds \
27517 old_postuninstall_cmds \
27518 old_archive_cmds \
27519 extract_expsyms_cmds \
27520 old_archive_from_new_cmds \
27521 old_archive_from_expsyms_cmds \
27522 archive_cmds \
27523 archive_expsym_cmds \
27524 module_cmds \
27525 module_expsym_cmds \
27526 export_symbols_cmds \
27527 prelink_cmds \
27528 postinstall_cmds \
27529 postuninstall_cmds \
27530 finish_cmds \
27531 sys_lib_search_path_spec \
27532 sys_lib_dlsearch_path_spec \
27533 reload_cmds_FC \
27534 old_archive_cmds_FC \
27535 old_archive_from_new_cmds_FC \
27536 old_archive_from_expsyms_cmds_FC \
27537 archive_cmds_FC \
27538 archive_expsym_cmds_FC \
27539 module_cmds_FC \
27540 module_expsym_cmds_FC \
27541 export_symbols_cmds_FC \
27542 prelink_cmds_FC; do
27543     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27544     *[\\\\\\\`\\"\\\$]*)
27545       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27546       ;;
27547     *)
27548       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27549       ;;
27550     esac
27551 done
27552
27553 ac_aux_dir='$ac_aux_dir'
27554 xsi_shell='$xsi_shell'
27555 lt_shell_append='$lt_shell_append'
27556
27557 # See if we are running on zsh, and set the options which allow our
27558 # commands through without removal of \ escapes INIT.
27559 if test -n "\${ZSH_VERSION+set}" ; then
27560    setopt NO_GLOB_SUBST
27561 fi
27562
27563
27564     PACKAGE='$PACKAGE'
27565     VERSION='$VERSION'
27566     TIMESTAMP='$TIMESTAMP'
27567     RM='$RM'
27568     ofile='$ofile'
27569
27570
27571
27572
27573
27574
27575 GCC="$GCC"
27576 CC="$CC"
27577 acx_cv_header_stdint="$acx_cv_header_stdint"
27578 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27579 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27580 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27581 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27582 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27583 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27584 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27585 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27586 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27587 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27588 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27589 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27590 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27591
27592
27593 _ACEOF
27594
27595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27596
27597 # Handling of arguments.
27598 for ac_config_target in $ac_config_targets
27599 do
27600   case $ac_config_target in
27601     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27602     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27603     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27604     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27605     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27606     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27607     "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27608
27609   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27610   esac
27611 done
27612
27613
27614 # If the user did not use the arguments to specify the items to instantiate,
27615 # then the envvar interface is used.  Set only those that are not.
27616 # We use the long form for the default assignment because of an extremely
27617 # bizarre bug on SunOS 4.1.3.
27618 if $ac_need_defaults; then
27619   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27620   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27621   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27622 fi
27623
27624 # Have a temporary directory for convenience.  Make it in the build tree
27625 # simply because there is no reason against having it here, and in addition,
27626 # creating and moving files from /tmp can sometimes cause problems.
27627 # Hook for its removal unless debugging.
27628 # Note that there is a small window in which the directory will not be cleaned:
27629 # after its creation but before its name has been assigned to `$tmp'.
27630 $debug ||
27631 {
27632   tmp=
27633   trap 'exit_status=$?
27634   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27635 ' 0
27636   trap 'as_fn_exit 1' 1 2 13 15
27637 }
27638 # Create a (secure) tmp directory for tmp files.
27639
27640 {
27641   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27642   test -n "$tmp" && test -d "$tmp"
27643 }  ||
27644 {
27645   tmp=./conf$$-$RANDOM
27646   (umask 077 && mkdir "$tmp")
27647 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27648
27649 # Set up the scripts for CONFIG_FILES section.
27650 # No need to generate them if there are no CONFIG_FILES.
27651 # This happens for instance with `./config.status config.h'.
27652 if test -n "$CONFIG_FILES"; then
27653
27654
27655 ac_cr=`echo X | tr X '\015'`
27656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27657 # But we know of no other shell where ac_cr would be empty at this
27658 # point, so we can use a bashism as a fallback.
27659 if test "x$ac_cr" = x; then
27660   eval ac_cr=\$\'\\r\'
27661 fi
27662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27664   ac_cs_awk_cr='\r'
27665 else
27666   ac_cs_awk_cr=$ac_cr
27667 fi
27668
27669 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27670 _ACEOF
27671
27672
27673 {
27674   echo "cat >conf$$subs.awk <<_ACEOF" &&
27675   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27676   echo "_ACEOF"
27677 } >conf$$subs.sh ||
27678   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27680 ac_delim='%!_!# '
27681 for ac_last_try in false false false false false :; do
27682   . ./conf$$subs.sh ||
27683     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27684
27685   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27686   if test $ac_delim_n = $ac_delim_num; then
27687     break
27688   elif $ac_last_try; then
27689     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27690   else
27691     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27692   fi
27693 done
27694 rm -f conf$$subs.sh
27695
27696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27697 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27698 _ACEOF
27699 sed -n '
27700 h
27701 s/^/S["/; s/!.*/"]=/
27702 p
27703 g
27704 s/^[^!]*!//
27705 :repl
27706 t repl
27707 s/'"$ac_delim"'$//
27708 t delim
27709 :nl
27710 h
27711 s/\(.\{148\}\).*/\1/
27712 t more1
27713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27714 p
27715 n
27716 b repl
27717 :more1
27718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27719 p
27720 g
27721 s/.\{148\}//
27722 t nl
27723 :delim
27724 h
27725 s/\(.\{148\}\).*/\1/
27726 t more2
27727 s/["\\]/\\&/g; s/^/"/; s/$/"/
27728 p
27729 b
27730 :more2
27731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27732 p
27733 g
27734 s/.\{148\}//
27735 t delim
27736 ' <conf$$subs.awk | sed '
27737 /^[^""]/{
27738   N
27739   s/\n//
27740 }
27741 ' >>$CONFIG_STATUS || ac_write_fail=1
27742 rm -f conf$$subs.awk
27743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27744 _ACAWK
27745 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27746   for (key in S) S_is_set[key] = 1
27747   FS = "\a"
27748
27749 }
27750 {
27751   line = $ 0
27752   nfields = split(line, field, "@")
27753   substed = 0
27754   len = length(field[1])
27755   for (i = 2; i < nfields; i++) {
27756     key = field[i]
27757     keylen = length(key)
27758     if (S_is_set[key]) {
27759       value = S[key]
27760       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27761       len += length(value) + length(field[++i])
27762       substed = 1
27763     } else
27764       len += 1 + keylen
27765   }
27766
27767   print line
27768 }
27769
27770 _ACAWK
27771 _ACEOF
27772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27774   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27775 else
27776   cat
27777 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27778   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27779 _ACEOF
27780
27781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27783 # trailing colons and then remove the whole line if VPATH becomes empty
27784 # (actually we leave an empty line to preserve line numbers).
27785 if test "x$srcdir" = x.; then
27786   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27787 s/:*\$(srcdir):*/:/
27788 s/:*\${srcdir}:*/:/
27789 s/:*@srcdir@:*/:/
27790 s/^\([^=]*=[     ]*\):*/\1/
27791 s/:*$//
27792 s/^[^=]*=[       ]*$//
27793 }'
27794 fi
27795
27796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27797 fi # test -n "$CONFIG_FILES"
27798
27799 # Set up the scripts for CONFIG_HEADERS section.
27800 # No need to generate them if there are no CONFIG_HEADERS.
27801 # This happens for instance with `./config.status Makefile'.
27802 if test -n "$CONFIG_HEADERS"; then
27803 cat >"$tmp/defines.awk" <<\_ACAWK ||
27804 BEGIN {
27805 _ACEOF
27806
27807 # Transform confdefs.h into an awk script `defines.awk', embedded as
27808 # here-document in config.status, that substitutes the proper values into
27809 # config.h.in to produce config.h.
27810
27811 # Create a delimiter string that does not exist in confdefs.h, to ease
27812 # handling of long lines.
27813 ac_delim='%!_!# '
27814 for ac_last_try in false false :; do
27815   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27816   if test -z "$ac_t"; then
27817     break
27818   elif $ac_last_try; then
27819     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27820   else
27821     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27822   fi
27823 done
27824
27825 # For the awk script, D is an array of macro values keyed by name,
27826 # likewise P contains macro parameters if any.  Preserve backslash
27827 # newline sequences.
27828
27829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27830 sed -n '
27831 s/.\{148\}/&'"$ac_delim"'/g
27832 t rset
27833 :rset
27834 s/^[     ]*#[    ]*define[       ][      ]*/ /
27835 t def
27836 d
27837 :def
27838 s/\\$//
27839 t bsnl
27840 s/["\\]/\\&/g
27841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27842 D["\1"]=" \3"/p
27843 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27844 d
27845 :bsnl
27846 s/["\\]/\\&/g
27847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27848 D["\1"]=" \3\\\\\\n"\\/p
27849 t cont
27850 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27851 t cont
27852 d
27853 :cont
27854 n
27855 s/.\{148\}/&'"$ac_delim"'/g
27856 t clear
27857 :clear
27858 s/\\$//
27859 t bsnlc
27860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27861 d
27862 :bsnlc
27863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27864 b cont
27865 ' <confdefs.h | sed '
27866 s/'"$ac_delim"'/"\\\
27867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27868
27869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27870   for (key in D) D_is_set[key] = 1
27871   FS = "\a"
27872 }
27873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27874   line = \$ 0
27875   split(line, arg, " ")
27876   if (arg[1] == "#") {
27877     defundef = arg[2]
27878     mac1 = arg[3]
27879   } else {
27880     defundef = substr(arg[1], 2)
27881     mac1 = arg[2]
27882   }
27883   split(mac1, mac2, "(") #)
27884   macro = mac2[1]
27885   prefix = substr(line, 1, index(line, defundef) - 1)
27886   if (D_is_set[macro]) {
27887     # Preserve the white space surrounding the "#".
27888     print prefix "define", macro P[macro] D[macro]
27889     next
27890   } else {
27891     # Replace #undef with comments.  This is necessary, for example,
27892     # in the case of _POSIX_SOURCE, which is predefined and required
27893     # on some systems where configure will not decide to define it.
27894     if (defundef == "undef") {
27895       print "/*", prefix defundef, macro, "*/"
27896       next
27897     }
27898   }
27899 }
27900 { print }
27901 _ACAWK
27902 _ACEOF
27903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27904   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27905 fi # test -n "$CONFIG_HEADERS"
27906
27907
27908 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27909 shift
27910 for ac_tag
27911 do
27912   case $ac_tag in
27913   :[FHLC]) ac_mode=$ac_tag; continue;;
27914   esac
27915   case $ac_mode$ac_tag in
27916   :[FHL]*:*);;
27917   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27918   :[FH]-) ac_tag=-:-;;
27919   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27920   esac
27921   ac_save_IFS=$IFS
27922   IFS=:
27923   set x $ac_tag
27924   IFS=$ac_save_IFS
27925   shift
27926   ac_file=$1
27927   shift
27928
27929   case $ac_mode in
27930   :L) ac_source=$1;;
27931   :[FH])
27932     ac_file_inputs=
27933     for ac_f
27934     do
27935       case $ac_f in
27936       -) ac_f="$tmp/stdin";;
27937       *) # Look for the file first in the build tree, then in the source tree
27938          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27939          # because $ac_f cannot contain `:'.
27940          test -f "$ac_f" ||
27941            case $ac_f in
27942            [\\/$]*) false;;
27943            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27944            esac ||
27945            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27946       esac
27947       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27948       as_fn_append ac_file_inputs " '$ac_f'"
27949     done
27950
27951     # Let's still pretend it is `configure' which instantiates (i.e., don't
27952     # use $as_me), people would be surprised to read:
27953     #    /* config.h.  Generated by config.status.  */
27954     configure_input='Generated from '`
27955           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27956         `' by configure.'
27957     if test x"$ac_file" != x-; then
27958       configure_input="$ac_file.  $configure_input"
27959       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27960 $as_echo "$as_me: creating $ac_file" >&6;}
27961     fi
27962     # Neutralize special characters interpreted by sed in replacement strings.
27963     case $configure_input in #(
27964     *\&* | *\|* | *\\* )
27965        ac_sed_conf_input=`$as_echo "$configure_input" |
27966        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27967     *) ac_sed_conf_input=$configure_input;;
27968     esac
27969
27970     case $ac_tag in
27971     *:-:* | *:-) cat >"$tmp/stdin" \
27972       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27973     esac
27974     ;;
27975   esac
27976
27977   ac_dir=`$as_dirname -- "$ac_file" ||
27978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27979          X"$ac_file" : 'X\(//\)[^/]' \| \
27980          X"$ac_file" : 'X\(//\)$' \| \
27981          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27982 $as_echo X"$ac_file" |
27983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27984             s//\1/
27985             q
27986           }
27987           /^X\(\/\/\)[^/].*/{
27988             s//\1/
27989             q
27990           }
27991           /^X\(\/\/\)$/{
27992             s//\1/
27993             q
27994           }
27995           /^X\(\/\).*/{
27996             s//\1/
27997             q
27998           }
27999           s/.*/./; q'`
28000   as_dir="$ac_dir"; as_fn_mkdir_p
28001   ac_builddir=.
28002
28003 case "$ac_dir" in
28004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28005 *)
28006   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28007   # A ".." for each directory in $ac_dir_suffix.
28008   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28009   case $ac_top_builddir_sub in
28010   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28011   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28012   esac ;;
28013 esac
28014 ac_abs_top_builddir=$ac_pwd
28015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28016 # for backward compatibility:
28017 ac_top_builddir=$ac_top_build_prefix
28018
28019 case $srcdir in
28020   .)  # We are building in place.
28021     ac_srcdir=.
28022     ac_top_srcdir=$ac_top_builddir_sub
28023     ac_abs_top_srcdir=$ac_pwd ;;
28024   [\\/]* | ?:[\\/]* )  # Absolute name.
28025     ac_srcdir=$srcdir$ac_dir_suffix;
28026     ac_top_srcdir=$srcdir
28027     ac_abs_top_srcdir=$srcdir ;;
28028   *) # Relative name.
28029     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28030     ac_top_srcdir=$ac_top_build_prefix$srcdir
28031     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28032 esac
28033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28034
28035
28036   case $ac_mode in
28037   :F)
28038   #
28039   # CONFIG_FILE
28040   #
28041
28042   case $INSTALL in
28043   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28044   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28045   esac
28046   ac_MKDIR_P=$MKDIR_P
28047   case $MKDIR_P in
28048   [\\/$]* | ?:[\\/]* ) ;;
28049   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28050   esac
28051 _ACEOF
28052
28053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28054 # If the template does not know about datarootdir, expand it.
28055 # FIXME: This hack should be removed a few years after 2.60.
28056 ac_datarootdir_hack=; ac_datarootdir_seen=
28057 ac_sed_dataroot='
28058 /datarootdir/ {
28059   p
28060   q
28061 }
28062 /@datadir@/p
28063 /@docdir@/p
28064 /@infodir@/p
28065 /@localedir@/p
28066 /@mandir@/p'
28067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28068 *datarootdir*) ac_datarootdir_seen=yes;;
28069 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28070   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28072 _ACEOF
28073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28074   ac_datarootdir_hack='
28075   s&@datadir@&$datadir&g
28076   s&@docdir@&$docdir&g
28077   s&@infodir@&$infodir&g
28078   s&@localedir@&$localedir&g
28079   s&@mandir@&$mandir&g
28080   s&\\\${datarootdir}&$datarootdir&g' ;;
28081 esac
28082 _ACEOF
28083
28084 # Neutralize VPATH when `$srcdir' = `.'.
28085 # Shell code in configure.ac might set extrasub.
28086 # FIXME: do we really want to maintain this feature?
28087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28088 ac_sed_extra="$ac_vpsub
28089 $extrasub
28090 _ACEOF
28091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28092 :t
28093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28094 s|@configure_input@|$ac_sed_conf_input|;t t
28095 s&@top_builddir@&$ac_top_builddir_sub&;t t
28096 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28097 s&@srcdir@&$ac_srcdir&;t t
28098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28099 s&@top_srcdir@&$ac_top_srcdir&;t t
28100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28101 s&@builddir@&$ac_builddir&;t t
28102 s&@abs_builddir@&$ac_abs_builddir&;t t
28103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28104 s&@INSTALL@&$ac_INSTALL&;t t
28105 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28106 $ac_datarootdir_hack
28107 "
28108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28109   || as_fn_error "could not create $ac_file" "$LINENO" 5
28110
28111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28112   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28113   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28114   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28115 which seems to be undefined.  Please make sure it is defined." >&5
28116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28117 which seems to be undefined.  Please make sure it is defined." >&2;}
28118
28119   rm -f "$tmp/stdin"
28120   case $ac_file in
28121   -) cat "$tmp/out" && rm -f "$tmp/out";;
28122   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28123   esac \
28124   || as_fn_error "could not create $ac_file" "$LINENO" 5
28125  ;;
28126   :H)
28127   #
28128   # CONFIG_HEADER
28129   #
28130   if test x"$ac_file" != x-; then
28131     {
28132       $as_echo "/* $configure_input  */" \
28133       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28134     } >"$tmp/config.h" \
28135       || as_fn_error "could not create $ac_file" "$LINENO" 5
28136     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28137       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28138 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28139     else
28140       rm -f "$ac_file"
28141       mv "$tmp/config.h" "$ac_file" \
28142         || as_fn_error "could not create $ac_file" "$LINENO" 5
28143     fi
28144   else
28145     $as_echo "/* $configure_input  */" \
28146       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28147       || as_fn_error "could not create -" "$LINENO" 5
28148   fi
28149 # Compute "$ac_file"'s index in $config_headers.
28150 _am_arg="$ac_file"
28151 _am_stamp_count=1
28152 for _am_header in $config_headers :; do
28153   case $_am_header in
28154     $_am_arg | $_am_arg:* )
28155       break ;;
28156     * )
28157       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28158   esac
28159 done
28160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28162          X"$_am_arg" : 'X\(//\)[^/]' \| \
28163          X"$_am_arg" : 'X\(//\)$' \| \
28164          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28165 $as_echo X"$_am_arg" |
28166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28167             s//\1/
28168             q
28169           }
28170           /^X\(\/\/\)[^/].*/{
28171             s//\1/
28172             q
28173           }
28174           /^X\(\/\/\)$/{
28175             s//\1/
28176             q
28177           }
28178           /^X\(\/\).*/{
28179             s//\1/
28180             q
28181           }
28182           s/.*/./; q'`/stamp-h$_am_stamp_count
28183  ;;
28184
28185   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28186 $as_echo "$as_me: executing $ac_file commands" >&6;}
28187  ;;
28188   esac
28189
28190
28191   case $ac_file$ac_mode in
28192     "default-1":C)
28193 # Only add multilib support code if we just rebuilt the top-level
28194 # Makefile.
28195 case " $CONFIG_FILES " in
28196  *" Makefile "*)
28197    ac_file=Makefile . ${multi_basedir}/config-ml.in
28198    ;;
28199 esac ;;
28200     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28201   # Autoconf 2.62 quotes --file arguments for eval, but not when files
28202   # are listed without --file.  Let's play safe and only enable the eval
28203   # if we detect the quoting.
28204   case $CONFIG_FILES in
28205   *\'*) eval set x "$CONFIG_FILES" ;;
28206   *)   set x $CONFIG_FILES ;;
28207   esac
28208   shift
28209   for mf
28210   do
28211     # Strip MF so we end up with the name of the file.
28212     mf=`echo "$mf" | sed -e 's/:.*$//'`
28213     # Check whether this is an Automake generated Makefile or not.
28214     # We used to match only the files named `Makefile.in', but
28215     # some people rename them; so instead we look at the file content.
28216     # Grep'ing the first line is not enough: some people post-process
28217     # each Makefile.in and add a new line on top of each file to say so.
28218     # Grep'ing the whole file is not good either: AIX grep has a line
28219     # limit of 2048, but all sed's we know have understand at least 4000.
28220     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28221       dirpart=`$as_dirname -- "$mf" ||
28222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28223          X"$mf" : 'X\(//\)[^/]' \| \
28224          X"$mf" : 'X\(//\)$' \| \
28225          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28226 $as_echo X"$mf" |
28227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28228             s//\1/
28229             q
28230           }
28231           /^X\(\/\/\)[^/].*/{
28232             s//\1/
28233             q
28234           }
28235           /^X\(\/\/\)$/{
28236             s//\1/
28237             q
28238           }
28239           /^X\(\/\).*/{
28240             s//\1/
28241             q
28242           }
28243           s/.*/./; q'`
28244     else
28245       continue
28246     fi
28247     # Extract the definition of DEPDIR, am__include, and am__quote
28248     # from the Makefile without running `make'.
28249     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28250     test -z "$DEPDIR" && continue
28251     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28252     test -z "am__include" && continue
28253     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28254     # When using ansi2knr, U may be empty or an underscore; expand it
28255     U=`sed -n 's/^U = //p' < "$mf"`
28256     # Find all dependency output files, they are included files with
28257     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28258     # simplest approach to changing $(DEPDIR) to its actual value in the
28259     # expansion.
28260     for file in `sed -n "
28261       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28262          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28263       # Make sure the directory exists.
28264       test -f "$dirpart/$file" && continue
28265       fdir=`$as_dirname -- "$file" ||
28266 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28267          X"$file" : 'X\(//\)[^/]' \| \
28268          X"$file" : 'X\(//\)$' \| \
28269          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28270 $as_echo X"$file" |
28271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28272             s//\1/
28273             q
28274           }
28275           /^X\(\/\/\)[^/].*/{
28276             s//\1/
28277             q
28278           }
28279           /^X\(\/\/\)$/{
28280             s//\1/
28281             q
28282           }
28283           /^X\(\/\).*/{
28284             s//\1/
28285             q
28286           }
28287           s/.*/./; q'`
28288       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28289       # echo "creating $dirpart/$file"
28290       echo '# dummy' > "$dirpart/$file"
28291     done
28292   done
28293 }
28294  ;;
28295     "libtool":C)
28296
28297     # See if we are running on zsh, and set the options which allow our
28298     # commands through without removal of \ escapes.
28299     if test -n "${ZSH_VERSION+set}" ; then
28300       setopt NO_GLOB_SUBST
28301     fi
28302
28303     cfgfile="${ofile}T"
28304     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28305     $RM "$cfgfile"
28306
28307     cat <<_LT_EOF >> "$cfgfile"
28308 #! $SHELL
28309
28310 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28311 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28313 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28314 #
28315 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28316 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28317 #   Written by Gordon Matzigkeit, 1996
28318 #
28319 #   This file is part of GNU Libtool.
28320 #
28321 # GNU Libtool is free software; you can redistribute it and/or
28322 # modify it under the terms of the GNU General Public License as
28323 # published by the Free Software Foundation; either version 2 of
28324 # the License, or (at your option) any later version.
28325 #
28326 # As a special exception to the GNU General Public License,
28327 # if you distribute this file as part of a program or library that
28328 # is built using GNU Libtool, you may include this file under the
28329 # same distribution terms that you use for the rest of that program.
28330 #
28331 # GNU Libtool is distributed in the hope that it will be useful,
28332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28334 # GNU General Public License for more details.
28335 #
28336 # You should have received a copy of the GNU General Public License
28337 # along with GNU Libtool; see the file COPYING.  If not, a copy
28338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28339 # obtained by writing to the Free Software Foundation, Inc.,
28340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28341
28342
28343 # The names of the tagged configurations supported by this script.
28344 available_tags="FC "
28345
28346 # ### BEGIN LIBTOOL CONFIG
28347
28348 # Which release of libtool.m4 was used?
28349 macro_version=$macro_version
28350 macro_revision=$macro_revision
28351
28352 # Whether or not to build shared libraries.
28353 build_libtool_libs=$enable_shared
28354
28355 # Whether or not to build static libraries.
28356 build_old_libs=$enable_static
28357
28358 # What type of objects to build.
28359 pic_mode=$pic_mode
28360
28361 # Whether or not to optimize for fast installation.
28362 fast_install=$enable_fast_install
28363
28364 # Shell to use when invoking shell scripts.
28365 SHELL=$lt_SHELL
28366
28367 # An echo program that protects backslashes.
28368 ECHO=$lt_ECHO
28369
28370 # The host system.
28371 host_alias=$host_alias
28372 host=$host
28373 host_os=$host_os
28374
28375 # The build system.
28376 build_alias=$build_alias
28377 build=$build
28378 build_os=$build_os
28379
28380 # A sed program that does not truncate output.
28381 SED=$lt_SED
28382
28383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28384 Xsed="\$SED -e 1s/^X//"
28385
28386 # A grep program that handles long lines.
28387 GREP=$lt_GREP
28388
28389 # An ERE matcher.
28390 EGREP=$lt_EGREP
28391
28392 # A literal string matcher.
28393 FGREP=$lt_FGREP
28394
28395 # A BSD- or MS-compatible name lister.
28396 NM=$lt_NM
28397
28398 # Whether we need soft or hard links.
28399 LN_S=$lt_LN_S
28400
28401 # What is the maximum length of a command?
28402 max_cmd_len=$max_cmd_len
28403
28404 # Object file suffix (normally "o").
28405 objext=$ac_objext
28406
28407 # Executable file suffix (normally "").
28408 exeext=$exeext
28409
28410 # whether the shell understands "unset".
28411 lt_unset=$lt_unset
28412
28413 # turn spaces into newlines.
28414 SP2NL=$lt_lt_SP2NL
28415
28416 # turn newlines into spaces.
28417 NL2SP=$lt_lt_NL2SP
28418
28419 # An object symbol dumper.
28420 OBJDUMP=$lt_OBJDUMP
28421
28422 # Method to check whether dependent libraries are shared objects.
28423 deplibs_check_method=$lt_deplibs_check_method
28424
28425 # Command to use when deplibs_check_method == "file_magic".
28426 file_magic_cmd=$lt_file_magic_cmd
28427
28428 # The archiver.
28429 AR=$lt_AR
28430 AR_FLAGS=$lt_AR_FLAGS
28431
28432 # A symbol stripping program.
28433 STRIP=$lt_STRIP
28434
28435 # Commands used to install an old-style archive.
28436 RANLIB=$lt_RANLIB
28437 old_postinstall_cmds=$lt_old_postinstall_cmds
28438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28439
28440 # Whether to use a lock for old archive extraction.
28441 lock_old_archive_extraction=$lock_old_archive_extraction
28442
28443 # A C compiler.
28444 LTCC=$lt_CC
28445
28446 # LTCC compiler flags.
28447 LTCFLAGS=$lt_CFLAGS
28448
28449 # Take the output of nm and produce a listing of raw symbols and C names.
28450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28451
28452 # Transform the output of nm in a proper C declaration.
28453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28454
28455 # Transform the output of nm in a C name address pair.
28456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28457
28458 # Transform the output of nm in a C name address pair when lib prefix is needed.
28459 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28460
28461 # The name of the directory that contains temporary libtool files.
28462 objdir=$objdir
28463
28464 # Used to examine libraries when file_magic_cmd begins with "file".
28465 MAGIC_CMD=$MAGIC_CMD
28466
28467 # Must we lock files when doing compilation?
28468 need_locks=$lt_need_locks
28469
28470 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28471 DSYMUTIL=$lt_DSYMUTIL
28472
28473 # Tool to change global to local symbols on Mac OS X.
28474 NMEDIT=$lt_NMEDIT
28475
28476 # Tool to manipulate fat objects and archives on Mac OS X.
28477 LIPO=$lt_LIPO
28478
28479 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28480 OTOOL=$lt_OTOOL
28481
28482 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28483 OTOOL64=$lt_OTOOL64
28484
28485 # Old archive suffix (normally "a").
28486 libext=$libext
28487
28488 # Shared library suffix (normally ".so").
28489 shrext_cmds=$lt_shrext_cmds
28490
28491 # The commands to extract the exported symbol list from a shared archive.
28492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28493
28494 # Variables whose values should be saved in libtool wrapper scripts and
28495 # restored at link time.
28496 variables_saved_for_relink=$lt_variables_saved_for_relink
28497
28498 # Do we need the "lib" prefix for modules?
28499 need_lib_prefix=$need_lib_prefix
28500
28501 # Do we need a version for libraries?
28502 need_version=$need_version
28503
28504 # Library versioning type.
28505 version_type=$version_type
28506
28507 # Shared library runtime path variable.
28508 runpath_var=$runpath_var
28509
28510 # Shared library path variable.
28511 shlibpath_var=$shlibpath_var
28512
28513 # Is shlibpath searched before the hard-coded library search path?
28514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28515
28516 # Format of library name prefix.
28517 libname_spec=$lt_libname_spec
28518
28519 # List of archive names.  First name is the real one, the rest are links.
28520 # The last name is the one that the linker finds with -lNAME
28521 library_names_spec=$lt_library_names_spec
28522
28523 # The coded name of the library, if different from the real name.
28524 soname_spec=$lt_soname_spec
28525
28526 # Permission mode override for installation of shared libraries.
28527 install_override_mode=$lt_install_override_mode
28528
28529 # Command to use after installation of a shared archive.
28530 postinstall_cmds=$lt_postinstall_cmds
28531
28532 # Command to use after uninstallation of a shared archive.
28533 postuninstall_cmds=$lt_postuninstall_cmds
28534
28535 # Commands used to finish a libtool library installation in a directory.
28536 finish_cmds=$lt_finish_cmds
28537
28538 # As "finish_cmds", except a single script fragment to be evaled but
28539 # not shown.
28540 finish_eval=$lt_finish_eval
28541
28542 # Whether we should hardcode library paths into libraries.
28543 hardcode_into_libs=$hardcode_into_libs
28544
28545 # Compile-time system search path for libraries.
28546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28547
28548 # Run-time system search path for libraries.
28549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28550
28551 # Whether dlopen is supported.
28552 dlopen_support=$enable_dlopen
28553
28554 # Whether dlopen of programs is supported.
28555 dlopen_self=$enable_dlopen_self
28556
28557 # Whether dlopen of statically linked programs is supported.
28558 dlopen_self_static=$enable_dlopen_self_static
28559
28560 # Commands to strip libraries.
28561 old_striplib=$lt_old_striplib
28562 striplib=$lt_striplib
28563
28564
28565 # The linker used to build libraries.
28566 LD=$lt_LD
28567
28568 # How to create reloadable object files.
28569 reload_flag=$lt_reload_flag
28570 reload_cmds=$lt_reload_cmds
28571
28572 # Commands used to build an old-style archive.
28573 old_archive_cmds=$lt_old_archive_cmds
28574
28575 # A language specific compiler.
28576 CC=$lt_compiler
28577
28578 # Is the compiler the GNU compiler?
28579 with_gcc=$GCC
28580
28581 # Compiler flag to turn off builtin functions.
28582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28583
28584 # How to pass a linker flag through the compiler.
28585 wl=$lt_lt_prog_compiler_wl
28586
28587 # Additional compiler flags for building library objects.
28588 pic_flag=$lt_lt_prog_compiler_pic
28589
28590 # Compiler flag to prevent dynamic linking.
28591 link_static_flag=$lt_lt_prog_compiler_static
28592
28593 # Does compiler simultaneously support -c and -o options?
28594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28595
28596 # Whether or not to add -lc for building shared libraries.
28597 build_libtool_need_lc=$archive_cmds_need_lc
28598
28599 # Whether or not to disallow shared libs when runtime libs are static.
28600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28601
28602 # Compiler flag to allow reflexive dlopens.
28603 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28604
28605 # Compiler flag to generate shared objects directly from archives.
28606 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28607
28608 # Whether the compiler copes with passing no objects directly.
28609 compiler_needs_object=$lt_compiler_needs_object
28610
28611 # Create an old-style archive from a shared archive.
28612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28613
28614 # Create a temporary old-style archive to link instead of a shared archive.
28615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28616
28617 # Commands used to build a shared archive.
28618 archive_cmds=$lt_archive_cmds
28619 archive_expsym_cmds=$lt_archive_expsym_cmds
28620
28621 # Commands used to build a loadable module if different from building
28622 # a shared archive.
28623 module_cmds=$lt_module_cmds
28624 module_expsym_cmds=$lt_module_expsym_cmds
28625
28626 # Whether we are building with GNU ld or not.
28627 with_gnu_ld=$lt_with_gnu_ld
28628
28629 # Flag that allows shared libraries with undefined symbols to be built.
28630 allow_undefined_flag=$lt_allow_undefined_flag
28631
28632 # Flag that enforces no undefined symbols.
28633 no_undefined_flag=$lt_no_undefined_flag
28634
28635 # Flag to hardcode \$libdir into a binary during linking.
28636 # This must work even if \$libdir does not exist
28637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28638
28639 # If ld is used when linking, flag to hardcode \$libdir into a binary
28640 # during linking.  This must work even if \$libdir does not exist.
28641 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28642
28643 # Whether we need a single "-rpath" flag with a separated argument.
28644 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28645
28646 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28647 # DIR into the resulting binary.
28648 hardcode_direct=$hardcode_direct
28649
28650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28651 # DIR into the resulting binary and the resulting library dependency is
28652 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28653 # library is relocated.
28654 hardcode_direct_absolute=$hardcode_direct_absolute
28655
28656 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28657 # into the resulting binary.
28658 hardcode_minus_L=$hardcode_minus_L
28659
28660 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28661 # into the resulting binary.
28662 hardcode_shlibpath_var=$hardcode_shlibpath_var
28663
28664 # Set to "yes" if building a shared library automatically hardcodes DIR
28665 # into the library and all subsequent libraries and executables linked
28666 # against it.
28667 hardcode_automatic=$hardcode_automatic
28668
28669 # Set to yes if linker adds runtime paths of dependent libraries
28670 # to runtime path list.
28671 inherit_rpath=$inherit_rpath
28672
28673 # Whether libtool must link a program against all its dependency libraries.
28674 link_all_deplibs=$link_all_deplibs
28675
28676 # Fix the shell variable \$srcfile for the compiler.
28677 fix_srcfile_path=$lt_fix_srcfile_path
28678
28679 # Set to "yes" if exported symbols are required.
28680 always_export_symbols=$always_export_symbols
28681
28682 # The commands to list exported symbols.
28683 export_symbols_cmds=$lt_export_symbols_cmds
28684
28685 # Symbols that should not be listed in the preloaded symbols.
28686 exclude_expsyms=$lt_exclude_expsyms
28687
28688 # Symbols that must always be exported.
28689 include_expsyms=$lt_include_expsyms
28690
28691 # Commands necessary for linking programs (against libraries) with templates.
28692 prelink_cmds=$lt_prelink_cmds
28693
28694 # Specify filename containing input files.
28695 file_list_spec=$lt_file_list_spec
28696
28697 # How to hardcode a shared library path into an executable.
28698 hardcode_action=$hardcode_action
28699
28700 # The directories searched by this compiler when creating a shared library.
28701 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28702
28703 # Dependencies to place before and after the objects being linked to
28704 # create a shared library.
28705 predep_objects=$lt_predep_objects
28706 postdep_objects=$lt_postdep_objects
28707 predeps=$lt_predeps
28708 postdeps=$lt_postdeps
28709
28710 # The library search path used internally by the compiler when linking
28711 # a shared library.
28712 compiler_lib_search_path=$lt_compiler_lib_search_path
28713
28714 # ### END LIBTOOL CONFIG
28715
28716 _LT_EOF
28717
28718   case $host_os in
28719   aix3*)
28720     cat <<\_LT_EOF >> "$cfgfile"
28721 # AIX sometimes has problems with the GCC collect2 program.  For some
28722 # reason, if we set the COLLECT_NAMES environment variable, the problems
28723 # vanish in a puff of smoke.
28724 if test "X${COLLECT_NAMES+set}" != Xset; then
28725   COLLECT_NAMES=
28726   export COLLECT_NAMES
28727 fi
28728 _LT_EOF
28729     ;;
28730   esac
28731
28732
28733 ltmain="$ac_aux_dir/ltmain.sh"
28734
28735
28736   # We use sed instead of cat because bash on DJGPP gets confused if
28737   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28738   # text mode, it properly converts lines to CR/LF.  This bash problem
28739   # is reportedly fixed, but why not run on old versions too?
28740   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28741     || (rm -f "$cfgfile"; exit 1)
28742
28743   case $xsi_shell in
28744   yes)
28745     cat << \_LT_EOF >> "$cfgfile"
28746
28747 # func_dirname file append nondir_replacement
28748 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
28749 # otherwise set result to NONDIR_REPLACEMENT.
28750 func_dirname ()
28751 {
28752   case ${1} in
28753     */*) func_dirname_result="${1%/*}${2}" ;;
28754     *  ) func_dirname_result="${3}" ;;
28755   esac
28756 }
28757
28758 # func_basename file
28759 func_basename ()
28760 {
28761   func_basename_result="${1##*/}"
28762 }
28763
28764 # func_dirname_and_basename file append nondir_replacement
28765 # perform func_basename and func_dirname in a single function
28766 # call:
28767 #   dirname:  Compute the dirname of FILE.  If nonempty,
28768 #             add APPEND to the result, otherwise set result
28769 #             to NONDIR_REPLACEMENT.
28770 #             value returned in "$func_dirname_result"
28771 #   basename: Compute filename of FILE.
28772 #             value retuned in "$func_basename_result"
28773 # Implementation must be kept synchronized with func_dirname
28774 # and func_basename. For efficiency, we do not delegate to
28775 # those functions but instead duplicate the functionality here.
28776 func_dirname_and_basename ()
28777 {
28778   case ${1} in
28779     */*) func_dirname_result="${1%/*}${2}" ;;
28780     *  ) func_dirname_result="${3}" ;;
28781   esac
28782   func_basename_result="${1##*/}"
28783 }
28784
28785 # func_stripname prefix suffix name
28786 # strip PREFIX and SUFFIX off of NAME.
28787 # PREFIX and SUFFIX must not contain globbing or regex special
28788 # characters, hashes, percent signs, but SUFFIX may contain a leading
28789 # dot (in which case that matches only a dot).
28790 func_stripname ()
28791 {
28792   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28793   # positional parameters, so assign one to ordinary parameter first.
28794   func_stripname_result=${3}
28795   func_stripname_result=${func_stripname_result#"${1}"}
28796   func_stripname_result=${func_stripname_result%"${2}"}
28797 }
28798
28799 # func_opt_split
28800 func_opt_split ()
28801 {
28802   func_opt_split_opt=${1%%=*}
28803   func_opt_split_arg=${1#*=}
28804 }
28805
28806 # func_lo2o object
28807 func_lo2o ()
28808 {
28809   case ${1} in
28810     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28811     *)    func_lo2o_result=${1} ;;
28812   esac
28813 }
28814
28815 # func_xform libobj-or-source
28816 func_xform ()
28817 {
28818   func_xform_result=${1%.*}.lo
28819 }
28820
28821 # func_arith arithmetic-term...
28822 func_arith ()
28823 {
28824   func_arith_result=$(( $* ))
28825 }
28826
28827 # func_len string
28828 # STRING may not start with a hyphen.
28829 func_len ()
28830 {
28831   func_len_result=${#1}
28832 }
28833
28834 _LT_EOF
28835     ;;
28836   *) # Bourne compatible functions.
28837     cat << \_LT_EOF >> "$cfgfile"
28838
28839 # func_dirname file append nondir_replacement
28840 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
28841 # otherwise set result to NONDIR_REPLACEMENT.
28842 func_dirname ()
28843 {
28844   # Extract subdirectory from the argument.
28845   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28846   if test "X$func_dirname_result" = "X${1}"; then
28847     func_dirname_result="${3}"
28848   else
28849     func_dirname_result="$func_dirname_result${2}"
28850   fi
28851 }
28852
28853 # func_basename file
28854 func_basename ()
28855 {
28856   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28857 }
28858
28859
28860 # func_stripname prefix suffix name
28861 # strip PREFIX and SUFFIX off of NAME.
28862 # PREFIX and SUFFIX must not contain globbing or regex special
28863 # characters, hashes, percent signs, but SUFFIX may contain a leading
28864 # dot (in which case that matches only a dot).
28865 # func_strip_suffix prefix name
28866 func_stripname ()
28867 {
28868   case ${2} in
28869     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28870     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28871   esac
28872 }
28873
28874 # sed scripts:
28875 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28876 my_sed_long_arg='1s/^-[^=]*=//'
28877
28878 # func_opt_split
28879 func_opt_split ()
28880 {
28881   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28882   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28883 }
28884
28885 # func_lo2o object
28886 func_lo2o ()
28887 {
28888   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28889 }
28890
28891 # func_xform libobj-or-source
28892 func_xform ()
28893 {
28894   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28895 }
28896
28897 # func_arith arithmetic-term...
28898 func_arith ()
28899 {
28900   func_arith_result=`expr "$@"`
28901 }
28902
28903 # func_len string
28904 # STRING may not start with a hyphen.
28905 func_len ()
28906 {
28907   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28908 }
28909
28910 _LT_EOF
28911 esac
28912
28913 case $lt_shell_append in
28914   yes)
28915     cat << \_LT_EOF >> "$cfgfile"
28916
28917 # func_append var value
28918 # Append VALUE to the end of shell variable VAR.
28919 func_append ()
28920 {
28921   eval "$1+=\$2"
28922 }
28923 _LT_EOF
28924     ;;
28925   *)
28926     cat << \_LT_EOF >> "$cfgfile"
28927
28928 # func_append var value
28929 # Append VALUE to the end of shell variable VAR.
28930 func_append ()
28931 {
28932   eval "$1=\$$1\$2"
28933 }
28934
28935 _LT_EOF
28936     ;;
28937   esac
28938
28939
28940   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28941     || (rm -f "$cfgfile"; exit 1)
28942
28943   mv -f "$cfgfile" "$ofile" ||
28944     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28945   chmod +x "$ofile"
28946
28947
28948     cat <<_LT_EOF >> "$ofile"
28949
28950 # ### BEGIN LIBTOOL TAG CONFIG: FC
28951
28952 # The linker used to build libraries.
28953 LD=$lt_LD_FC
28954
28955 # How to create reloadable object files.
28956 reload_flag=$lt_reload_flag_FC
28957 reload_cmds=$lt_reload_cmds_FC
28958
28959 # Commands used to build an old-style archive.
28960 old_archive_cmds=$lt_old_archive_cmds_FC
28961
28962 # A language specific compiler.
28963 CC=$lt_compiler_FC
28964
28965 # Is the compiler the GNU compiler?
28966 with_gcc=$GCC_FC
28967
28968 # Compiler flag to turn off builtin functions.
28969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28970
28971 # How to pass a linker flag through the compiler.
28972 wl=$lt_lt_prog_compiler_wl_FC
28973
28974 # Additional compiler flags for building library objects.
28975 pic_flag=$lt_lt_prog_compiler_pic_FC
28976
28977 # Compiler flag to prevent dynamic linking.
28978 link_static_flag=$lt_lt_prog_compiler_static_FC
28979
28980 # Does compiler simultaneously support -c and -o options?
28981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28982
28983 # Whether or not to add -lc for building shared libraries.
28984 build_libtool_need_lc=$archive_cmds_need_lc_FC
28985
28986 # Whether or not to disallow shared libs when runtime libs are static.
28987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28988
28989 # Compiler flag to allow reflexive dlopens.
28990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28991
28992 # Compiler flag to generate shared objects directly from archives.
28993 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28994
28995 # Whether the compiler copes with passing no objects directly.
28996 compiler_needs_object=$lt_compiler_needs_object_FC
28997
28998 # Create an old-style archive from a shared archive.
28999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29000
29001 # Create a temporary old-style archive to link instead of a shared archive.
29002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29003
29004 # Commands used to build a shared archive.
29005 archive_cmds=$lt_archive_cmds_FC
29006 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29007
29008 # Commands used to build a loadable module if different from building
29009 # a shared archive.
29010 module_cmds=$lt_module_cmds_FC
29011 module_expsym_cmds=$lt_module_expsym_cmds_FC
29012
29013 # Whether we are building with GNU ld or not.
29014 with_gnu_ld=$lt_with_gnu_ld_FC
29015
29016 # Flag that allows shared libraries with undefined symbols to be built.
29017 allow_undefined_flag=$lt_allow_undefined_flag_FC
29018
29019 # Flag that enforces no undefined symbols.
29020 no_undefined_flag=$lt_no_undefined_flag_FC
29021
29022 # Flag to hardcode \$libdir into a binary during linking.
29023 # This must work even if \$libdir does not exist
29024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29025
29026 # If ld is used when linking, flag to hardcode \$libdir into a binary
29027 # during linking.  This must work even if \$libdir does not exist.
29028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29029
29030 # Whether we need a single "-rpath" flag with a separated argument.
29031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29032
29033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29034 # DIR into the resulting binary.
29035 hardcode_direct=$hardcode_direct_FC
29036
29037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29038 # DIR into the resulting binary and the resulting library dependency is
29039 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29040 # library is relocated.
29041 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29042
29043 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29044 # into the resulting binary.
29045 hardcode_minus_L=$hardcode_minus_L_FC
29046
29047 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29048 # into the resulting binary.
29049 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29050
29051 # Set to "yes" if building a shared library automatically hardcodes DIR
29052 # into the library and all subsequent libraries and executables linked
29053 # against it.
29054 hardcode_automatic=$hardcode_automatic_FC
29055
29056 # Set to yes if linker adds runtime paths of dependent libraries
29057 # to runtime path list.
29058 inherit_rpath=$inherit_rpath_FC
29059
29060 # Whether libtool must link a program against all its dependency libraries.
29061 link_all_deplibs=$link_all_deplibs_FC
29062
29063 # Fix the shell variable \$srcfile for the compiler.
29064 fix_srcfile_path=$lt_fix_srcfile_path_FC
29065
29066 # Set to "yes" if exported symbols are required.
29067 always_export_symbols=$always_export_symbols_FC
29068
29069 # The commands to list exported symbols.
29070 export_symbols_cmds=$lt_export_symbols_cmds_FC
29071
29072 # Symbols that should not be listed in the preloaded symbols.
29073 exclude_expsyms=$lt_exclude_expsyms_FC
29074
29075 # Symbols that must always be exported.
29076 include_expsyms=$lt_include_expsyms_FC
29077
29078 # Commands necessary for linking programs (against libraries) with templates.
29079 prelink_cmds=$lt_prelink_cmds_FC
29080
29081 # Specify filename containing input files.
29082 file_list_spec=$lt_file_list_spec_FC
29083
29084 # How to hardcode a shared library path into an executable.
29085 hardcode_action=$hardcode_action_FC
29086
29087 # The directories searched by this compiler when creating a shared library.
29088 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29089
29090 # Dependencies to place before and after the objects being linked to
29091 # create a shared library.
29092 predep_objects=$lt_predep_objects_FC
29093 postdep_objects=$lt_postdep_objects_FC
29094 predeps=$lt_predeps_FC
29095 postdeps=$lt_postdeps_FC
29096
29097 # The library search path used internally by the compiler when linking
29098 # a shared library.
29099 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29100
29101 # ### END LIBTOOL TAG CONFIG: FC
29102 _LT_EOF
29103
29104  ;;
29105     "gstdint.h":C)
29106 if test "$GCC" = yes; then
29107   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29108 else
29109   echo "/* generated for $CC */" > tmp-stdint.h
29110 fi
29111
29112 sed 's/^ *//' >> tmp-stdint.h <<EOF
29113
29114   #ifndef GCC_GENERATED_STDINT_H
29115   #define GCC_GENERATED_STDINT_H 1
29116
29117   #include <sys/types.h>
29118 EOF
29119
29120 if test "$acx_cv_header_stdint" != stdint.h; then
29121   echo "#include <stddef.h>" >> tmp-stdint.h
29122 fi
29123 if test "$acx_cv_header_stdint" != stddef.h; then
29124   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29125 fi
29126
29127 sed 's/^ *//' >> tmp-stdint.h <<EOF
29128   /* glibc uses these symbols as guards to prevent redefinitions.  */
29129   #ifdef __int8_t_defined
29130   #define _INT8_T
29131   #define _INT16_T
29132   #define _INT32_T
29133   #endif
29134   #ifdef __uint32_t_defined
29135   #define _UINT32_T
29136   #endif
29137
29138 EOF
29139
29140 # ----------------- done header, emit basic int types -------------
29141 if test "$acx_cv_header_stdint" = stddef.h; then
29142   sed 's/^ *//' >> tmp-stdint.h <<EOF
29143
29144     #ifndef _UINT8_T
29145     #define _UINT8_T
29146     #ifndef __uint8_t_defined
29147     #define __uint8_t_defined
29148     #ifndef uint8_t
29149     typedef unsigned $acx_cv_type_int8_t uint8_t;
29150     #endif
29151     #endif
29152     #endif
29153
29154     #ifndef _UINT16_T
29155     #define _UINT16_T
29156     #ifndef __uint16_t_defined
29157     #define __uint16_t_defined
29158     #ifndef uint16_t
29159     typedef unsigned $acx_cv_type_int16_t uint16_t;
29160     #endif
29161     #endif
29162     #endif
29163
29164     #ifndef _UINT32_T
29165     #define _UINT32_T
29166     #ifndef __uint32_t_defined
29167     #define __uint32_t_defined
29168     #ifndef uint32_t
29169     typedef unsigned $acx_cv_type_int32_t uint32_t;
29170     #endif
29171     #endif
29172     #endif
29173
29174     #ifndef _INT8_T
29175     #define _INT8_T
29176     #ifndef __int8_t_defined
29177     #define __int8_t_defined
29178     #ifndef int8_t
29179     typedef $acx_cv_type_int8_t int8_t;
29180     #endif
29181     #endif
29182     #endif
29183
29184     #ifndef _INT16_T
29185     #define _INT16_T
29186     #ifndef __int16_t_defined
29187     #define __int16_t_defined
29188     #ifndef int16_t
29189     typedef $acx_cv_type_int16_t int16_t;
29190     #endif
29191     #endif
29192     #endif
29193
29194     #ifndef _INT32_T
29195     #define _INT32_T
29196     #ifndef __int32_t_defined
29197     #define __int32_t_defined
29198     #ifndef int32_t
29199     typedef $acx_cv_type_int32_t int32_t;
29200     #endif
29201     #endif
29202     #endif
29203 EOF
29204 elif test "$ac_cv_type_u_int32_t" = yes; then
29205   sed 's/^ *//' >> tmp-stdint.h <<EOF
29206
29207     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29208     #ifndef _INT8_T
29209     #define _INT8_T
29210     #endif
29211     #ifndef _INT16_T
29212     #define _INT16_T
29213     #endif
29214     #ifndef _INT32_T
29215     #define _INT32_T
29216     #endif
29217
29218     #ifndef _UINT8_T
29219     #define _UINT8_T
29220     #ifndef __uint8_t_defined
29221     #define __uint8_t_defined
29222     #ifndef uint8_t
29223     typedef u_int8_t uint8_t;
29224     #endif
29225     #endif
29226     #endif
29227
29228     #ifndef _UINT16_T
29229     #define _UINT16_T
29230     #ifndef __uint16_t_defined
29231     #define __uint16_t_defined
29232     #ifndef uint16_t
29233     typedef u_int16_t uint16_t;
29234     #endif
29235     #endif
29236     #endif
29237
29238     #ifndef _UINT32_T
29239     #define _UINT32_T
29240     #ifndef __uint32_t_defined
29241     #define __uint32_t_defined
29242     #ifndef uint32_t
29243     typedef u_int32_t uint32_t;
29244     #endif
29245     #endif
29246     #endif
29247 EOF
29248 else
29249   sed 's/^ *//' >> tmp-stdint.h <<EOF
29250
29251     /* Some systems have guard macros to prevent redefinitions, define them.  */
29252     #ifndef _INT8_T
29253     #define _INT8_T
29254     #endif
29255     #ifndef _INT16_T
29256     #define _INT16_T
29257     #endif
29258     #ifndef _INT32_T
29259     #define _INT32_T
29260     #endif
29261     #ifndef _UINT8_T
29262     #define _UINT8_T
29263     #endif
29264     #ifndef _UINT16_T
29265     #define _UINT16_T
29266     #endif
29267     #ifndef _UINT32_T
29268     #define _UINT32_T
29269     #endif
29270 EOF
29271 fi
29272
29273 # ------------- done basic int types, emit int64_t types ------------
29274 if test "$ac_cv_type_uint64_t" = yes; then
29275   sed 's/^ *//' >> tmp-stdint.h <<EOF
29276
29277     /* system headers have good uint64_t and int64_t */
29278     #ifndef _INT64_T
29279     #define _INT64_T
29280     #endif
29281     #ifndef _UINT64_T
29282     #define _UINT64_T
29283     #endif
29284 EOF
29285 elif test "$ac_cv_type_u_int64_t" = yes; then
29286   sed 's/^ *//' >> tmp-stdint.h <<EOF
29287
29288     /* system headers have an u_int64_t (and int64_t) */
29289     #ifndef _INT64_T
29290     #define _INT64_T
29291     #endif
29292     #ifndef _UINT64_T
29293     #define _UINT64_T
29294     #ifndef __uint64_t_defined
29295     #define __uint64_t_defined
29296     #ifndef uint64_t
29297     typedef u_int64_t uint64_t;
29298     #endif
29299     #endif
29300     #endif
29301 EOF
29302 elif test -n "$acx_cv_type_int64_t"; then
29303   sed 's/^ *//' >> tmp-stdint.h <<EOF
29304
29305     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29306     #ifndef _INT64_T
29307     #define _INT64_T
29308     #ifndef int64_t
29309     typedef $acx_cv_type_int64_t int64_t;
29310     #endif
29311     #endif
29312     #ifndef _UINT64_T
29313     #define _UINT64_T
29314     #ifndef __uint64_t_defined
29315     #define __uint64_t_defined
29316     #ifndef uint64_t
29317     typedef unsigned $acx_cv_type_int64_t uint64_t;
29318     #endif
29319     #endif
29320     #endif
29321 EOF
29322 else
29323   sed 's/^ *//' >> tmp-stdint.h <<EOF
29324
29325     /* some common heuristics for int64_t, using compiler-specific tests */
29326     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29327     #ifndef _INT64_T
29328     #define _INT64_T
29329     #ifndef __int64_t_defined
29330     #ifndef int64_t
29331     typedef long long int64_t;
29332     #endif
29333     #endif
29334     #endif
29335     #ifndef _UINT64_T
29336     #define _UINT64_T
29337     #ifndef uint64_t
29338     typedef unsigned long long uint64_t;
29339     #endif
29340     #endif
29341
29342     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29343     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29344        does not implement __extension__.  But that compiler doesn't define
29345        __GNUC_MINOR__.  */
29346     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29347     # define __extension__
29348     # endif
29349
29350     # ifndef _INT64_T
29351     # define _INT64_T
29352     # ifndef int64_t
29353     __extension__ typedef long long int64_t;
29354     # endif
29355     # endif
29356     # ifndef _UINT64_T
29357     # define _UINT64_T
29358     # ifndef uint64_t
29359     __extension__ typedef unsigned long long uint64_t;
29360     # endif
29361     # endif
29362
29363     #elif !defined __STRICT_ANSI__
29364     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29365
29366     #  ifndef _INT64_T
29367     #  define _INT64_T
29368     #  ifndef int64_t
29369     typedef __int64 int64_t;
29370     #  endif
29371     #  endif
29372     #  ifndef _UINT64_T
29373     #  define _UINT64_T
29374     #  ifndef uint64_t
29375     typedef unsigned __int64 uint64_t;
29376     #  endif
29377     #  endif
29378     # endif /* compiler */
29379
29380     #endif /* ANSI version */
29381 EOF
29382 fi
29383
29384 # ------------- done int64_t types, emit intptr types ------------
29385 if test "$ac_cv_type_uintptr_t" != yes; then
29386   sed 's/^ *//' >> tmp-stdint.h <<EOF
29387
29388     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29389     #ifndef __uintptr_t_defined
29390     #ifndef uintptr_t
29391     typedef u$acx_cv_type_intptr_t uintptr_t;
29392     #endif
29393     #endif
29394     #ifndef __intptr_t_defined
29395     #ifndef intptr_t
29396     typedef $acx_cv_type_intptr_t  intptr_t;
29397     #endif
29398     #endif
29399 EOF
29400 fi
29401
29402 # ------------- done intptr types, emit int_least types ------------
29403 if test "$ac_cv_type_int_least32_t" != yes; then
29404   sed 's/^ *//' >> tmp-stdint.h <<EOF
29405
29406     /* Define int_least types */
29407     typedef int8_t     int_least8_t;
29408     typedef int16_t    int_least16_t;
29409     typedef int32_t    int_least32_t;
29410     #ifdef _INT64_T
29411     typedef int64_t    int_least64_t;
29412     #endif
29413
29414     typedef uint8_t    uint_least8_t;
29415     typedef uint16_t   uint_least16_t;
29416     typedef uint32_t   uint_least32_t;
29417     #ifdef _UINT64_T
29418     typedef uint64_t   uint_least64_t;
29419     #endif
29420 EOF
29421 fi
29422
29423 # ------------- done intptr types, emit int_fast types ------------
29424 if test "$ac_cv_type_int_fast32_t" != yes; then
29425       sed 's/^ *//' >> tmp-stdint.h <<EOF
29426
29427     /* Define int_fast types.  short is often slow */
29428     typedef int8_t       int_fast8_t;
29429     typedef int          int_fast16_t;
29430     typedef int32_t      int_fast32_t;
29431     #ifdef _INT64_T
29432     typedef int64_t      int_fast64_t;
29433     #endif
29434
29435     typedef uint8_t      uint_fast8_t;
29436     typedef unsigned int uint_fast16_t;
29437     typedef uint32_t     uint_fast32_t;
29438     #ifdef _UINT64_T
29439     typedef uint64_t     uint_fast64_t;
29440     #endif
29441 EOF
29442 fi
29443
29444 if test "$ac_cv_type_uintmax_t" != yes; then
29445   sed 's/^ *//' >> tmp-stdint.h <<EOF
29446
29447     /* Define intmax based on what we found */
29448     #ifndef intmax_t
29449     #ifdef _INT64_T
29450     typedef int64_t       intmax_t;
29451     #else
29452     typedef long          intmax_t;
29453     #endif
29454     #endif
29455     #ifndef uintmax_t
29456     #ifdef _UINT64_T
29457     typedef uint64_t      uintmax_t;
29458     #else
29459     typedef unsigned long uintmax_t;
29460     #endif
29461     #endif
29462 EOF
29463 fi
29464
29465 sed 's/^ *//' >> tmp-stdint.h <<EOF
29466
29467   #endif /* GCC_GENERATED_STDINT_H */
29468 EOF
29469
29470 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29471   rm -f tmp-stdint.h
29472 else
29473   mv -f tmp-stdint.h gstdint.h
29474 fi
29475
29476  ;;
29477
29478   esac
29479 done # for ac_tag
29480
29481
29482 as_fn_exit 0
29483 _ACEOF
29484 ac_clean_files=$ac_clean_files_save
29485
29486 test $ac_write_fail = 0 ||
29487   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29488
29489
29490 # configure is writing to config.log, and then calls config.status.
29491 # config.status does its own redirection, appending to config.log.
29492 # Unfortunately, on DOS this fails, as config.log is still kept open
29493 # by configure, so config.status won't be able to write to it; its
29494 # output is simply discarded.  So we exec the FD to /dev/null,
29495 # effectively closing config.log, so it can be properly (re)opened and
29496 # appended to by config.status.  When coming back to configure, we
29497 # need to make the FD available again.
29498 if test "$no_create" != yes; then
29499   ac_cs_success=:
29500   ac_config_status_args=
29501   test "$silent" = yes &&
29502     ac_config_status_args="$ac_config_status_args --quiet"
29503   exec 5>/dev/null
29504   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29505   exec 5>>config.log
29506   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29507   # would make configure fail if this is the last instruction.
29508   $ac_cs_success || as_fn_exit $?
29509 fi
29510 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29512 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29513 fi
29514