Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h
[official-gcc.git] / libgfortran / configure
blob4810b9b032e3bb96076ea34c3ffb6779b5b41704
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU Fortran Runtime Library'
589 PACKAGE_TARNAME='libgfortran'
590 PACKAGE_VERSION='0.3'
591 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_header_list=
632 ac_func_list=
633 ac_c_werror_flag=
634 ac_c_werror_flag=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 get_gcc_base_ver
640 HAVE_AVX128_FALSE
641 HAVE_AVX128_TRUE
642 tmake_file
643 IEEE_FLAGS
644 IEEE_SUPPORT
645 IEEE_SUPPORT_FALSE
646 IEEE_SUPPORT_TRUE
647 FPU_HOST_HEADER
648 LIBGFOR_BUILD_QUAD_FALSE
649 LIBGFOR_BUILD_QUAD_TRUE
650 LIBQUADINCLUDE
651 LIBQUADLIB_DEP
652 LIBQUADLIB
653 LIBQUADSPEC
654 extra_ldflags_libgfortran
655 ac_ct_FC
656 FCFLAGS
658 enable_static
659 enable_shared
660 lt_host_flags
661 LIBM
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 OBJDUMP
668 LN_S
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LIBTOOL
673 RANLIB
676 HAVE_HWCAP_FALSE
677 HAVE_HWCAP_TRUE
678 HWCAP_LDFLAGS
680 FGREP
682 SECTION_FLAGS
683 LIBGOMP_CHECKED_REAL_KINDS
684 LIBGOMP_CHECKED_INT_KINDS
685 LIBGFOR_MINIMAL_FALSE
686 LIBGFOR_MINIMAL_TRUE
687 LIBGFOR_USE_SYMVER_SUN_FALSE
688 LIBGFOR_USE_SYMVER_SUN_TRUE
689 LIBGFOR_USE_SYMVER_GNU_FALSE
690 LIBGFOR_USE_SYMVER_GNU_TRUE
691 LIBGFOR_USE_SYMVER_FALSE
692 LIBGFOR_USE_SYMVER_TRUE
693 AM_CFLAGS
694 AM_FCFLAGS
695 toolexeclibdir
696 toolexecdir
697 EGREP
698 GREP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 multi_basedir
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_noncanonical
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 onestep
758 onestep_FALSE
759 onestep_TRUE
760 target_subdir
761 host_subdir
762 build_subdir
763 build_libsubdir
764 build_os
765 build_vendor
766 build_cpu
767 build
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 with_build_libsubdir
810 enable_version_specific_runtime_libs
811 enable_intermodule
812 enable_silent_rules
813 enable_maintainer_mode
814 enable_multilib
815 enable_dependency_tracking
816 with_toolexeclibdir
817 enable_cet
818 enable_symvers
819 with_gnu_ld
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 enable_libtool_lock
825 enable_largefile
826 enable_libquadmath_support
827 with_gcc_major_version_only
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
839 FCFLAGS'
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
890 ac_prev=
891 ac_dashdash=
892 for ac_option
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
1380 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1389 Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 [PREFIX]
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1435 cat <<\_ACEOF
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1452 esac
1453 cat <<\_ACEOF
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-version-specific-runtime-libs
1460 specify that runtime libraries should be installed
1461 in a compiler-specific directory
1462 --enable-intermodule build the library in one step
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
1468 --enable-multilib build many library versions (default)
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --enable-cet enable Intel CET in target libraries [default=auto]
1474 --disable-symvers disable symbol versioning for libgfortran
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-largefile omit support for large files
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-build-libsubdir=DIR Directory where to find libraries for build system
1488 --with-toolexeclibdir=DIR
1489 install libraries built with a cross compiler within
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1493 both]
1494 --with-gcc-major-version-only
1495 use only GCC major number in filesystem paths
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 FC Fortran compiler command
1507 FCFLAGS Fortran compiler flags
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1512 Report bugs to the package provider.
1513 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1514 General help using GNU software: <http://www.gnu.org/gethelp/>.
1515 _ACEOF
1516 ac_status=$?
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 GNU Fortran Runtime Library configure 0.3
1578 generated by GNU Autoconf 2.69
1580 Copyright (C) 2012 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=1
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_compile
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1659 ac_retval=1
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_cpp
1666 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1669 # the include files in INCLUDES and setting the cache variable VAR
1670 # accordingly.
1671 ac_fn_c_check_header_mongrel ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if eval \${$3+:} false; then :
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 else
1684 # Is the header compilable?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1686 $as_echo_n "checking $2 usability... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 ac_header_compiler=yes
1694 else
1695 ac_header_compiler=no
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1699 $as_echo "$ac_header_compiler" >&6; }
1701 # Is the header present?
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1703 $as_echo_n "checking $2 presence... " >&6; }
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_cpp "$LINENO"; then :
1709 ac_header_preproc=yes
1710 else
1711 ac_header_preproc=no
1713 rm -f conftest.err conftest.i conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1715 $as_echo "$ac_header_preproc" >&6; }
1717 # So? What about this header?
1718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719 yes:no: )
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1721 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 no:yes:* )
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1727 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1729 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1731 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1733 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 esac
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 eval "$3=\$ac_header_compiler"
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_header_mongrel
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1757 ac_fn_c_try_run ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; }; }; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: program exited with status $ac_status" >&5
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=$ac_status
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_run
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 eval "$3=yes"
1814 else
1815 eval "$3=no"
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_header_compile
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_link ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 test -x conftest$ac_exeext
1854 }; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_link
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 if test x$gcc_no_link = xyes; then
1884 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1903 #undef $2
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1920 main ()
1922 return $2 ();
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929 else
1930 eval "$3=no"
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_fc_try_compile LINENO
1943 # ---------------------------
1944 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_fc_try_compile ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext
1949 if { { ac_try="$ac_compile"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_compile") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_fc_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest.$ac_objext; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=1
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_fc_try_compile
1980 # ac_fn_fc_try_link LINENO
1981 # ------------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_fc_try_link ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 rm -f conftest.$ac_objext conftest$ac_exeext
1987 if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>conftest.err
1995 ac_status=$?
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && {
2003 test -z "$ac_fc_werror_flag" ||
2004 test ! -s conftest.err
2005 } && test -s conftest$ac_exeext && {
2006 test "$cross_compiling" = yes ||
2007 test -x conftest$ac_exeext
2008 }; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_retval=1
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_fc_try_link
2026 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027 # -------------------------------------------
2028 # Tests whether TYPE exists after having included INCLUDES, setting cache
2029 # variable VAR accordingly.
2030 ac_fn_c_check_type ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=no"
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 if (sizeof ($2))
2046 return 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2056 main ()
2058 if (sizeof (($2)))
2059 return 0;
2061 return 0;
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2066 else
2067 eval "$3=yes"
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_type
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2084 # computed
2085 ac_fn_c_compute_int ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2097 test_array [0] = 0;
2098 return test_array [0];
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_lo=0 ac_mid=0
2106 while :; do
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 test_array [0] = 0;
2115 return test_array [0];
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=$ac_mid; break
2123 else
2124 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2125 if test $ac_lo -le $ac_mid; then
2126 ac_lo= ac_hi=
2127 break
2129 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) < 0)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=-1 ac_mid=-1
2150 while :; do
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158 test_array [0] = 0;
2159 return test_array [0];
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2167 else
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2170 ac_lo= ac_hi=
2171 break
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 else
2178 ac_lo= ac_hi=
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 # Binary search between lo and hi bounds.
2184 while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0;
2194 return test_array [0];
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_hi=$ac_mid
2202 else
2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 done
2207 case $ac_lo in #((
2208 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2209 '') ac_retval=1 ;;
2210 esac
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2215 static long int longval () { return $2; }
2216 static unsigned long int ulongval () { return $2; }
2217 #include <stdio.h>
2218 #include <stdlib.h>
2220 main ()
2223 FILE *f = fopen ("conftest.val", "w");
2224 if (! f)
2225 return 1;
2226 if (($2) < 0)
2228 long int i = longval ();
2229 if (i != ($2))
2230 return 1;
2231 fprintf (f, "%ld", i);
2233 else
2235 unsigned long int i = ulongval ();
2236 if (i != ($2))
2237 return 1;
2238 fprintf (f, "%lu", i);
2240 /* Do not output a trailing newline, as this causes \r\n confusion
2241 on some platforms. */
2242 return ferror (f) || fclose (f) != 0;
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_run "$LINENO"; then :
2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2250 else
2251 ac_retval=1
2253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2254 conftest.$ac_objext conftest.beam conftest.$ac_ext
2255 rm -f conftest.val
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2261 } # ac_fn_c_compute_int
2263 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2264 # ----------------------------------------------------
2265 # Tries to find if the field MEMBER exists in type AGGR, after including
2266 # INCLUDES, setting cache variable VAR accordingly.
2267 ac_fn_c_check_member ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2271 $as_echo_n "checking for $2.$3... " >&6; }
2272 if eval \${$4+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 static $2 ac_aggr;
2282 if (ac_aggr.$3)
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 eval "$4=yes"
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2295 main ()
2297 static $2 ac_aggr;
2298 if (sizeof ac_aggr.$3)
2299 return 0;
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$4=yes"
2306 else
2307 eval "$4=no"
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 eval ac_res=\$$4
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_member
2319 cat >config.log <<_ACEOF
2320 This file contains any messages produced by compilers while
2321 running configure, to aid debugging if configure makes a mistake.
2323 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2324 generated by GNU Autoconf 2.69. Invocation command line was
2326 $ $0 $@
2328 _ACEOF
2329 exec 5>>config.log
2331 cat <<_ASUNAME
2332 ## --------- ##
2333 ## Platform. ##
2334 ## --------- ##
2336 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2337 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2338 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2339 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2340 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2342 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2343 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2345 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2346 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2347 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2348 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2349 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2350 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2351 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2353 _ASUNAME
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 $as_echo "PATH: $as_dir"
2361 done
2362 IFS=$as_save_IFS
2364 } >&5
2366 cat >&5 <<_ACEOF
2369 ## ----------- ##
2370 ## Core tests. ##
2371 ## ----------- ##
2373 _ACEOF
2376 # Keep a trace of the command line.
2377 # Strip out --no-create and --no-recursion so they do not pile up.
2378 # Strip out --silent because we don't want to record it for future runs.
2379 # Also quote any args containing shell meta-characters.
2380 # Make two passes to allow for proper duplicate-argument suppression.
2381 ac_configure_args=
2382 ac_configure_args0=
2383 ac_configure_args1=
2384 ac_must_keep_next=false
2385 for ac_pass in 1 2
2387 for ac_arg
2389 case $ac_arg in
2390 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2392 | -silent | --silent | --silen | --sile | --sil)
2393 continue ;;
2394 *\'*)
2395 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2396 esac
2397 case $ac_pass in
2398 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2400 as_fn_append ac_configure_args1 " '$ac_arg'"
2401 if test $ac_must_keep_next = true; then
2402 ac_must_keep_next=false # Got value, back to normal.
2403 else
2404 case $ac_arg in
2405 *=* | --config-cache | -C | -disable-* | --disable-* \
2406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2408 | -with-* | --with-* | -without-* | --without-* | --x)
2409 case "$ac_configure_args0 " in
2410 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2411 esac
2413 -* ) ac_must_keep_next=true ;;
2414 esac
2416 as_fn_append ac_configure_args " '$ac_arg'"
2418 esac
2419 done
2420 done
2421 { ac_configure_args0=; unset ac_configure_args0;}
2422 { ac_configure_args1=; unset ac_configure_args1;}
2424 # When interrupted or exit'd, cleanup temporary files, and complete
2425 # config.log. We remove comments because anyway the quotes in there
2426 # would cause problems or look ugly.
2427 # WARNING: Use '\'' to represent an apostrophe within the trap.
2428 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2429 trap 'exit_status=$?
2430 # Save into config.log some information that might help in debugging.
2432 echo
2434 $as_echo "## ---------------- ##
2435 ## Cache variables. ##
2436 ## ---------------- ##"
2437 echo
2438 # The following way of writing the cache mishandles newlines in values,
2440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in #(
2443 *${as_nl}*)
2444 case $ac_var in #(
2445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2447 esac
2448 case $ac_var in #(
2449 _ | IFS | as_nl) ;; #(
2450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2451 *) { eval $ac_var=; unset $ac_var;} ;;
2452 esac ;;
2453 esac
2454 done
2455 (set) 2>&1 |
2456 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2457 *${as_nl}ac_space=\ *)
2458 sed -n \
2459 "s/'\''/'\''\\\\'\'''\''/g;
2460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2461 ;; #(
2463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 esac |
2466 sort
2468 echo
2470 $as_echo "## ----------------- ##
2471 ## Output variables. ##
2472 ## ----------------- ##"
2473 echo
2474 for ac_var in $ac_subst_vars
2476 eval ac_val=\$$ac_var
2477 case $ac_val in
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 esac
2480 $as_echo "$ac_var='\''$ac_val'\''"
2481 done | sort
2482 echo
2484 if test -n "$ac_subst_files"; then
2485 $as_echo "## ------------------- ##
2486 ## File substitutions. ##
2487 ## ------------------- ##"
2488 echo
2489 for ac_var in $ac_subst_files
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 $as_echo "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2500 if test -s confdefs.h; then
2501 $as_echo "## ----------- ##
2502 ## confdefs.h. ##
2503 ## ----------- ##"
2504 echo
2505 cat confdefs.h
2506 echo
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2516 for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518 done
2519 ac_signal=0
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest* confdefs.h
2524 $as_echo "/* confdefs.h */" > confdefs.h
2526 # Predefined preprocessor variables.
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2550 _ACEOF
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2555 ac_site_file1=NONE
2556 ac_site_file2=NONE
2557 if test -n "$CONFIG_SITE"; then
2558 # We do not want a PATH search for config.site.
2559 case $CONFIG_SITE in #((
2560 -*) ac_site_file1=./$CONFIG_SITE;;
2561 */*) ac_site_file1=$CONFIG_SITE;;
2562 *) ac_site_file1=./$CONFIG_SITE;;
2563 esac
2564 elif test "x$prefix" != xNONE; then
2565 ac_site_file1=$prefix/share/config.site
2566 ac_site_file2=$prefix/etc/config.site
2567 else
2568 ac_site_file1=$ac_default_prefix/share/config.site
2569 ac_site_file2=$ac_default_prefix/etc/config.site
2571 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573 test "x$ac_site_file" = xNONE && continue
2574 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
2578 . "$ac_site_file" \
2579 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 as_fn_error $? "failed to load site script $ac_site_file
2582 See \`config.log' for more details" "$LINENO" 5; }
2584 done
2586 if test -r "$cache_file"; then
2587 # Some versions of bash will fail to source /dev/null (special files
2588 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2589 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2591 $as_echo "$as_me: loading cache $cache_file" >&6;}
2592 case $cache_file in
2593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2594 *) . "./$cache_file";;
2595 esac
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2599 $as_echo "$as_me: creating cache $cache_file" >&6;}
2600 >$cache_file
2603 as_fn_append ac_header_list " unistd.h"
2604 as_fn_append ac_header_list " sys/random.h"
2605 as_fn_append ac_header_list " sys/time.h"
2606 as_fn_append ac_header_list " sys/times.h"
2607 as_fn_append ac_header_list " sys/resource.h"
2608 as_fn_append ac_header_list " sys/types.h"
2609 as_fn_append ac_header_list " sys/stat.h"
2610 as_fn_append ac_header_list " sys/uio.h"
2611 as_fn_append ac_header_list " sys/wait.h"
2612 as_fn_append ac_header_list " floatingpoint.h"
2613 as_fn_append ac_header_list " ieeefp.h"
2614 as_fn_append ac_header_list " fenv.h"
2615 as_fn_append ac_header_list " fptrap.h"
2616 as_fn_append ac_header_list " fpxcp.h"
2617 as_fn_append ac_header_list " pwd.h"
2618 as_fn_append ac_header_list " complex.h"
2619 as_fn_append ac_header_list " xlocale.h"
2620 as_fn_append ac_func_list " getrusage"
2621 as_fn_append ac_func_list " times"
2622 as_fn_append ac_func_list " mkstemp"
2623 as_fn_append ac_func_list " strtof"
2624 as_fn_append ac_func_list " strtold"
2625 as_fn_append ac_func_list " snprintf"
2626 as_fn_append ac_func_list " ftruncate"
2627 as_fn_append ac_func_list " chsize"
2628 as_fn_append ac_func_list " chdir"
2629 as_fn_append ac_func_list " getentropy"
2630 as_fn_append ac_func_list " getlogin"
2631 as_fn_append ac_func_list " gethostname"
2632 as_fn_append ac_func_list " kill"
2633 as_fn_append ac_func_list " link"
2634 as_fn_append ac_func_list " symlink"
2635 as_fn_append ac_func_list " sleep"
2636 as_fn_append ac_func_list " ttyname"
2637 as_fn_append ac_func_list " sigaction"
2638 as_fn_append ac_func_list " waitpid"
2639 as_fn_append ac_func_list " alarm"
2640 as_fn_append ac_func_list " access"
2641 as_fn_append ac_func_list " fork"
2642 as_fn_append ac_func_list " posix_spawn"
2643 as_fn_append ac_func_list " setmode"
2644 as_fn_append ac_func_list " fcntl"
2645 as_fn_append ac_func_list " writev"
2646 as_fn_append ac_func_list " gettimeofday"
2647 as_fn_append ac_func_list " stat"
2648 as_fn_append ac_func_list " fstat"
2649 as_fn_append ac_func_list " lstat"
2650 as_fn_append ac_func_list " getpwuid"
2651 as_fn_append ac_func_list " vsnprintf"
2652 as_fn_append ac_func_list " dup"
2653 as_fn_append ac_func_list " getcwd"
2654 as_fn_append ac_func_list " localtime_r"
2655 as_fn_append ac_func_list " gmtime_r"
2656 as_fn_append ac_func_list " getpwuid_r"
2657 as_fn_append ac_func_list " ttyname_r"
2658 as_fn_append ac_func_list " clock_gettime"
2659 as_fn_append ac_func_list " getgid"
2660 as_fn_append ac_func_list " getpid"
2661 as_fn_append ac_func_list " getuid"
2662 as_fn_append ac_func_list " geteuid"
2663 as_fn_append ac_func_list " umask"
2664 as_fn_append ac_func_list " getegid"
2665 as_fn_append ac_func_list " secure_getenv"
2666 as_fn_append ac_func_list " __secure_getenv"
2667 as_fn_append ac_func_list " mkostemp"
2668 as_fn_append ac_func_list " strnlen"
2669 as_fn_append ac_func_list " strndup"
2670 as_fn_append ac_func_list " newlocale"
2671 as_fn_append ac_func_list " freelocale"
2672 as_fn_append ac_func_list " uselocale"
2673 as_fn_append ac_func_list " strerror_l"
2674 as_fn_append ac_header_list " math.h"
2675 # Check that the precious variables saved in the cache have kept the same
2676 # value.
2677 ac_cache_corrupted=false
2678 for ac_var in $ac_precious_vars; do
2679 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2680 eval ac_new_set=\$ac_env_${ac_var}_set
2681 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2682 eval ac_new_val=\$ac_env_${ac_var}_value
2683 case $ac_old_set,$ac_new_set in
2684 set,)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,set)
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2690 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2691 ac_cache_corrupted=: ;;
2692 ,);;
2694 if test "x$ac_old_val" != "x$ac_new_val"; then
2695 # differences in whitespace do not lead to failure.
2696 ac_old_val_w=`echo x $ac_old_val`
2697 ac_new_val_w=`echo x $ac_new_val`
2698 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2700 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2701 ac_cache_corrupted=:
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2704 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2705 eval $ac_var=\$ac_old_val
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2708 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2710 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2711 fi;;
2712 esac
2713 # Pass precious variables to config.status.
2714 if test "$ac_new_set" = set; then
2715 case $ac_new_val in
2716 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2717 *) ac_arg=$ac_var=$ac_new_val ;;
2718 esac
2719 case " $ac_configure_args " in
2720 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2721 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722 esac
2724 done
2725 if $ac_cache_corrupted; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2729 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2730 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2732 ## -------------------- ##
2733 ## Main body of script. ##
2734 ## -------------------- ##
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 ac_config_headers="$ac_config_headers config.h"
2748 ac_aux_dir=
2749 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2750 if test -f "$ac_dir/install-sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install-sh -c"
2753 break
2754 elif test -f "$ac_dir/install.sh"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/install.sh -c"
2757 break
2758 elif test -f "$ac_dir/shtool"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/shtool install -c"
2761 break
2763 done
2764 if test -z "$ac_aux_dir"; then
2765 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2768 # These three variables are undocumented and unsupported,
2769 # and are intended to be withdrawn in a future Autoconf release.
2770 # They can cause serious problems if a builder's source tree is in a directory
2771 # whose full name contains unusual characters.
2772 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2773 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2774 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2777 # Make sure we can run config.sub.
2778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2782 $as_echo_n "checking build system type... " >&6; }
2783 if ${ac_cv_build+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 ac_build_alias=$build_alias
2787 test "x$ac_build_alias" = x &&
2788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789 test "x$ac_build_alias" = x &&
2790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2796 $as_echo "$ac_cv_build" >&6; }
2797 case $ac_cv_build in
2798 *-*-*) ;;
2799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2800 esac
2801 build=$ac_cv_build
2802 ac_save_IFS=$IFS; IFS='-'
2803 set x $ac_cv_build
2804 shift
2805 build_cpu=$1
2806 build_vendor=$2
2807 shift; shift
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2810 build_os=$*
2811 IFS=$ac_save_IFS
2812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2815 case ${build_alias} in
2816 "") build_noncanonical=${build} ;;
2817 *) build_noncanonical=${build_alias} ;;
2818 esac
2820 case ${host_alias} in
2821 "") host_noncanonical=${build_noncanonical} ;;
2822 *) host_noncanonical=${host_alias} ;;
2823 esac
2825 case ${target_alias} in
2826 "") target_noncanonical=${host_noncanonical} ;;
2827 *) target_noncanonical=${target_alias} ;;
2828 esac
2831 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2832 # have matching libraries, they should use host libraries: Makefile.tpl
2833 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2834 # However, they still use the build modules, because the corresponding
2835 # host modules (e.g. bison) are only built for the host when bootstrap
2836 # finishes. So:
2837 # - build_subdir is where we find build modules, and never changes.
2838 # - build_libsubdir is where we find build libraries, and can be overridden.
2840 # Prefix 'build-' so this never conflicts with target_subdir.
2841 build_subdir="build-${build_noncanonical}"
2843 # Check whether --with-build-libsubdir was given.
2844 if test "${with_build_libsubdir+set}" = set; then :
2845 withval=$with_build_libsubdir; build_libsubdir="$withval"
2846 else
2847 build_libsubdir="$build_subdir"
2850 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2851 if ( test $srcdir = . && test -d gcc ) \
2852 || test -d $srcdir/../host-${host_noncanonical}; then
2853 host_subdir="host-${host_noncanonical}"
2854 else
2855 host_subdir=.
2857 # No prefix.
2858 target_subdir=${target_noncanonical}
2861 # -------
2862 # Options
2863 # -------
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2866 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2867 # Check whether --enable-version-specific-runtime-libs was given.
2868 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2869 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2870 yes) version_specific_libs=yes ;;
2871 no) version_specific_libs=no ;;
2872 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2873 esac
2874 else
2875 version_specific_libs=no
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2879 $as_echo "$version_specific_libs" >&6; }
2881 # Build with intermodule optimisations
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2883 $as_echo_n "checking for --enable-intermodule... " >&6; }
2884 # Check whether --enable-intermodule was given.
2885 if test "${enable_intermodule+set}" = set; then :
2886 enableval=$enable_intermodule; case "$enable_intermodule" in
2887 yes) onestep="-onestep";;
2888 *) onestep="";;
2889 esac
2890 else
2891 onestep=""
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2895 $as_echo "$enable_intermodule" >&6; }
2896 if test x$onestep = x-onestep; then
2897 onestep_TRUE=
2898 onestep_FALSE='#'
2899 else
2900 onestep_TRUE='#'
2901 onestep_FALSE=
2906 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2908 # You will slowly go insane if you do not grok the following fact: when
2909 # building this library, the top-level /target/ becomes the library's /host/.
2911 # configure then causes --target to default to --host, exactly like any
2912 # other package using autoconf. Therefore, 'target' and 'host' will
2913 # always be the same. This makes sense both for native and cross compilers
2914 # just think about it for a little while. :-)
2916 # Also, if this library is being configured as part of a cross compiler, the
2917 # top-level configure script will pass the "real" host as $with_cross_host.
2919 # Do not delete or change the following two lines. For why, see
2920 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922 $as_echo_n "checking host system type... " >&6; }
2923 if ${ac_cv_host+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test "x$host_alias" = x; then
2927 ac_cv_host=$ac_cv_build
2928 else
2929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935 $as_echo "$ac_cv_host" >&6; }
2936 case $ac_cv_host in
2937 *-*-*) ;;
2938 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2939 esac
2940 host=$ac_cv_host
2941 ac_save_IFS=$IFS; IFS='-'
2942 set x $ac_cv_host
2943 shift
2944 host_cpu=$1
2945 host_vendor=$2
2946 shift; shift
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2949 host_os=$*
2950 IFS=$ac_save_IFS
2951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2955 $as_echo_n "checking target system type... " >&6; }
2956 if ${ac_cv_target+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test "x$target_alias" = x; then
2960 ac_cv_target=$ac_cv_host
2961 else
2962 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2968 $as_echo "$ac_cv_target" >&6; }
2969 case $ac_cv_target in
2970 *-*-*) ;;
2971 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2972 esac
2973 target=$ac_cv_target
2974 ac_save_IFS=$IFS; IFS='-'
2975 set x $ac_cv_target
2976 shift
2977 target_cpu=$1
2978 target_vendor=$2
2979 shift; shift
2980 # Remember, the first character of IFS is used to create $*,
2981 # except with old shells:
2982 target_os=$*
2983 IFS=$ac_save_IFS
2984 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2987 # The aliases save the names the user supplied, while $host etc.
2988 # will get canonicalized.
2989 test -n "$target_alias" &&
2990 test "$program_prefix$program_suffix$program_transform_name" = \
2991 NONENONEs,x,x, &&
2992 program_prefix=${target_alias}-
2997 target_alias=${target_alias-$host_alias}
3000 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3001 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3002 # 1.9.6: minimum required version
3003 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3004 # of other PACKAGE_* variables will, however, and there's nothing
3005 # we can do about that; they come from AC_INIT).
3006 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3007 # file in the top srcdir, etc, etc), so stop complaining.
3008 # no-dist: we don't want 'dist' and related rules.
3009 # -Wall: turns on all automake warnings...
3010 # -Wno-portability: ...except this one, since GNU make is required.
3011 am__api_version='1.15'
3013 # Find a good install program. We prefer a C program (faster),
3014 # so one script is as good as another. But avoid the broken or
3015 # incompatible versions:
3016 # SysV /etc/install, /usr/sbin/install
3017 # SunOS /usr/etc/install
3018 # IRIX /sbin/install
3019 # AIX /bin/install
3020 # AmigaOS /C/install, which installs bootblocks on floppy discs
3021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024 # OS/2's system install, which has a completely different semantic
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 # Reject install programs that cannot install multiple files.
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3028 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3029 if test -z "$INSTALL"; then
3030 if ${ac_cv_path_install+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 # Account for people who put trailing slashes in PATH elements.
3039 case $as_dir/ in #((
3040 ./ | .// | /[cC]/* | \
3041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3042 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3043 /usr/ucb/* ) ;;
3045 # OSF1 and SCO ODT 3.0 have their own names for install.
3046 # Don't use installbsd from OSF since it installs stuff as root
3047 # by default.
3048 for ac_prog in ginstall scoinst install; do
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3051 if test $ac_prog = install &&
3052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053 # AIX install. It has an incompatible calling convention.
3055 elif test $ac_prog = install &&
3056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3057 # program-specific install script used by HP pwplus--don't use.
3059 else
3060 rm -rf conftest.one conftest.two conftest.dir
3061 echo one > conftest.one
3062 echo two > conftest.two
3063 mkdir conftest.dir
3064 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3065 test -s conftest.one && test -s conftest.two &&
3066 test -s conftest.dir/conftest.one &&
3067 test -s conftest.dir/conftest.two
3068 then
3069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070 break 3
3074 done
3075 done
3077 esac
3079 done
3080 IFS=$as_save_IFS
3082 rm -rf conftest.one conftest.two conftest.dir
3085 if test "${ac_cv_path_install+set}" = set; then
3086 INSTALL=$ac_cv_path_install
3087 else
3088 # As a last resort, use the slow shell script. Don't cache a
3089 # value for INSTALL within a source directory, because that will
3090 # break other packages using the cache if that directory is
3091 # removed, or if the value is a relative name.
3092 INSTALL=$ac_install_sh
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3096 $as_echo "$INSTALL" >&6; }
3098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3099 # It thinks the first close brace ends the variable substitution.
3100 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3107 $as_echo_n "checking whether build environment is sane... " >&6; }
3108 # Reject unsafe characters in $srcdir or the absolute working directory
3109 # name. Accept space and tab only in the latter.
3110 am_lf='
3112 case `pwd` in
3113 *[\\\"\#\$\&\'\`$am_lf]*)
3114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3115 esac
3116 case $srcdir in
3117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3119 esac
3121 # Do 'set' in a subshell so we don't clobber the current shell's
3122 # arguments. Must try -L first in case configure is actually a
3123 # symlink; some systems play weird games with the mod time of symlinks
3124 # (eg FreeBSD returns the mod time of the symlink's containing
3125 # directory).
3126 if (
3127 am_has_slept=no
3128 for am_try in 1 2; do
3129 echo "timestamp, slept: $am_has_slept" > conftest.file
3130 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3131 if test "$*" = "X"; then
3132 # -L didn't work.
3133 set X `ls -t "$srcdir/configure" conftest.file`
3135 if test "$*" != "X $srcdir/configure conftest.file" \
3136 && test "$*" != "X conftest.file $srcdir/configure"; then
3138 # If neither matched, then we have a broken ls. This can happen
3139 # if, for instance, CONFIG_SHELL is bash and it inherits a
3140 # broken ls alias from the environment. This has actually
3141 # happened. Such a system could not be considered "sane".
3142 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3143 alias in your environment" "$LINENO" 5
3145 if test "$2" = conftest.file || test $am_try -eq 2; then
3146 break
3148 # Just in case.
3149 sleep 1
3150 am_has_slept=yes
3151 done
3152 test "$2" = conftest.file
3154 then
3155 # Ok.
3157 else
3158 as_fn_error $? "newly created file is older than distributed files!
3159 Check your system clock" "$LINENO" 5
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3163 # If we didn't sleep, we still need to ensure time stamps of config.status and
3164 # generated files are strictly newer.
3165 am_sleep_pid=
3166 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3167 ( sleep 1 ) &
3168 am_sleep_pid=$!
3171 rm -f conftest.file
3173 test "$program_prefix" != NONE &&
3174 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3175 # Use a double $ so make ignores it.
3176 test "$program_suffix" != NONE &&
3177 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3178 # Double any \ or $.
3179 # By default was `s,x,x', remove it if useless.
3180 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3181 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3183 # Expand $ac_aux_dir to an absolute path.
3184 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3186 if test x"${MISSING+set}" != xset; then
3187 case $am_aux_dir in
3188 *\ * | *\ *)
3189 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3191 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3192 esac
3194 # Use eval to expand $SHELL
3195 if eval "$MISSING --is-lightweight"; then
3196 am_missing_run="$MISSING "
3197 else
3198 am_missing_run=
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3200 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3203 if test x"${install_sh+set}" != xset; then
3204 case $am_aux_dir in
3205 *\ * | *\ *)
3206 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3208 install_sh="\${SHELL} $am_aux_dir/install-sh"
3209 esac
3212 # Installed binaries are usually stripped using 'strip' when the user
3213 # run "make install-strip". However 'strip' might not be the right
3214 # tool to use in cross-compilation environments, therefore Automake
3215 # will honor the 'STRIP' environment variable to overrule this program.
3216 if test "$cross_compiling" != no; then
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}strip; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_STRIP+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$STRIP"; then
3226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3241 IFS=$as_save_IFS
3245 STRIP=$ac_cv_prog_STRIP
3246 if test -n "$STRIP"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3248 $as_echo "$STRIP" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3256 if test -z "$ac_cv_prog_STRIP"; then
3257 ac_ct_STRIP=$STRIP
3258 # Extract the first word of "strip", so it can be a program name with args.
3259 set dummy strip; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$ac_ct_STRIP"; then
3266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_ac_ct_STRIP="strip"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3279 done
3280 done
3281 IFS=$as_save_IFS
3285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3286 if test -n "$ac_ct_STRIP"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3288 $as_echo "$ac_ct_STRIP" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3294 if test "x$ac_ct_STRIP" = x; then
3295 STRIP=":"
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301 ac_tool_warned=yes ;;
3302 esac
3303 STRIP=$ac_ct_STRIP
3305 else
3306 STRIP="$ac_cv_prog_STRIP"
3310 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3313 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3314 if test -z "$MKDIR_P"; then
3315 if ${ac_cv_path_mkdir+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_prog in mkdir gmkdir; do
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3326 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3327 'mkdir (GNU coreutils) '* | \
3328 'mkdir (coreutils) '* | \
3329 'mkdir (fileutils) '4.1*)
3330 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3331 break 3;;
3332 esac
3333 done
3334 done
3335 done
3336 IFS=$as_save_IFS
3340 test -d ./--version && rmdir ./--version
3341 if test "${ac_cv_path_mkdir+set}" = set; then
3342 MKDIR_P="$ac_cv_path_mkdir -p"
3343 else
3344 # As a last resort, use the slow shell script. Don't cache a
3345 # value for MKDIR_P within a source directory, because that will
3346 # break other packages using the cache if that directory is
3347 # removed, or if the value is a relative name.
3348 MKDIR_P="$ac_install_sh -d"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3352 $as_echo "$MKDIR_P" >&6; }
3354 for ac_prog in gawk mawk nawk awk
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_AWK+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$AWK"; then
3364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_AWK="$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3379 IFS=$as_save_IFS
3383 AWK=$ac_cv_prog_AWK
3384 if test -n "$AWK"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3386 $as_echo "$AWK" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3393 test -n "$AWK" && break
3394 done
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3397 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3398 set x ${MAKE-make}
3399 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3400 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 cat >conftest.make <<\_ACEOF
3404 SHELL = /bin/sh
3405 all:
3406 @echo '@@@%%%=$(MAKE)=@@@%%%'
3407 _ACEOF
3408 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3409 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3410 *@@@%%%=?*=@@@%%%*)
3411 eval ac_cv_prog_make_${ac_make}_set=yes;;
3413 eval ac_cv_prog_make_${ac_make}_set=no;;
3414 esac
3415 rm -f conftest.make
3417 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3419 $as_echo "yes" >&6; }
3420 SET_MAKE=
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 SET_MAKE="MAKE=${MAKE-make}"
3427 rm -rf .tst 2>/dev/null
3428 mkdir .tst 2>/dev/null
3429 if test -d .tst; then
3430 am__leading_dot=.
3431 else
3432 am__leading_dot=_
3434 rmdir .tst 2>/dev/null
3436 # Check whether --enable-silent-rules was given.
3437 if test "${enable_silent_rules+set}" = set; then :
3438 enableval=$enable_silent_rules;
3441 case $enable_silent_rules in # (((
3442 yes) AM_DEFAULT_VERBOSITY=0;;
3443 no) AM_DEFAULT_VERBOSITY=1;;
3444 *) AM_DEFAULT_VERBOSITY=1;;
3445 esac
3446 am_make=${MAKE-make}
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3448 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3449 if ${am_cv_make_support_nested_variables+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if $as_echo 'TRUE=$(BAR$(V))
3453 BAR0=false
3454 BAR1=true
3456 am__doit:
3457 @$(TRUE)
3458 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3459 am_cv_make_support_nested_variables=yes
3460 else
3461 am_cv_make_support_nested_variables=no
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3465 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3466 if test $am_cv_make_support_nested_variables = yes; then
3467 AM_V='$(V)'
3468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3469 else
3470 AM_V=$AM_DEFAULT_VERBOSITY
3471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3473 AM_BACKSLASH='\'
3475 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3476 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3477 # is not polluted with repeated "-I."
3478 am__isrc=' -I$(srcdir)'
3479 # test to see if srcdir already configured
3480 if test -f $srcdir/config.status; then
3481 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3485 # test whether we have cygpath
3486 if test -z "$CYGPATH_W"; then
3487 if (cygpath --version) >/dev/null 2>/dev/null; then
3488 CYGPATH_W='cygpath -w'
3489 else
3490 CYGPATH_W=echo
3495 # Define the identity of the package.
3496 PACKAGE='libgfortran'
3497 VERSION='0.3'
3500 # Some tools Automake needs.
3502 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3505 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3508 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3511 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3514 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3516 # For better backward compatibility. To be removed once Automake 1.9.x
3517 # dies out for good. For more background, see:
3518 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3519 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3520 mkdir_p='$(MKDIR_P)'
3522 # We need awk for the "check" target (and possibly the TAP driver). The
3523 # system "awk" is bad on some platforms.
3524 # Always define AMTAR for backward compatibility. Yes, it's still used
3525 # in the wild :-( We should find a proper way to deprecate it ...
3526 AMTAR='$${TAR-tar}'
3529 # We'll loop over all known methods to create a tar archive until one works.
3530 _am_tools='gnutar pax cpio none'
3532 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3539 # POSIX will say in a future version that running "rm -f" with no argument
3540 # is OK; and we want to be able to make that assumption in our Makefile
3541 # recipes. So use an aggressive probe to check that the usage we want is
3542 # actually supported "in the wild" to an acceptable degree.
3543 # See automake bug#10828.
3544 # To make any issue more visible, cause the running configure to be aborted
3545 # by default if the 'rm' program in use doesn't match our expectations; the
3546 # user can still override this though.
3547 if rm -f && rm -fr && rm -rf; then : OK; else
3548 cat >&2 <<'END'
3549 Oops!
3551 Your 'rm' program seems unable to run without file operands specified
3552 on the command line, even when the '-f' option is present. This is contrary
3553 to the behaviour of most rm programs out there, and not conforming with
3554 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3556 Please tell bug-automake@gnu.org about your system, including the value
3557 of your $PATH and any error possibly output before this message. This
3558 can help us improve future automake versions.
3561 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3562 echo 'Configuration will proceed anyway, since you have set the' >&2
3563 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3564 echo >&2
3565 else
3566 cat >&2 <<'END'
3567 Aborting the configuration process, to ensure you take notice of the issue.
3569 You can download and install GNU coreutils to get an 'rm' implementation
3570 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3572 If you want to complete the configuration process using your problematic
3573 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3574 to "yes", and re-run configure.
3577 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3584 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3585 # Check whether --enable-maintainer-mode was given.
3586 if test "${enable_maintainer_mode+set}" = set; then :
3587 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3588 else
3589 USE_MAINTAINER_MODE=no
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3593 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3594 if test $USE_MAINTAINER_MODE = yes; then
3595 MAINTAINER_MODE_TRUE=
3596 MAINTAINER_MODE_FALSE='#'
3597 else
3598 MAINTAINER_MODE_TRUE='#'
3599 MAINTAINER_MODE_FALSE=
3602 MAINT=$MAINTAINER_MODE_TRUE
3605 # Default to --enable-multilib
3606 # Check whether --enable-multilib was given.
3607 if test "${enable_multilib+set}" = set; then :
3608 enableval=$enable_multilib; case "$enableval" in
3609 yes) multilib=yes ;;
3610 no) multilib=no ;;
3611 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3612 esac
3613 else
3614 multilib=yes
3618 # We may get other options which we leave undocumented:
3619 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3620 # See config-ml.in if you want the gory details.
3622 if test "$srcdir" = "."; then
3623 if test "$with_target_subdir" != "."; then
3624 multi_basedir="$srcdir/$with_multisrctop../.."
3625 else
3626 multi_basedir="$srcdir/$with_multisrctop.."
3628 else
3629 multi_basedir="$srcdir/.."
3633 # Even if the default multilib is not a cross compilation,
3634 # it may be that some of the other multilibs are.
3635 if test $cross_compiling = no && test $multilib = yes \
3636 && test "x${with_multisubdir}" != x ; then
3637 cross_compiling=maybe
3640 ac_config_commands="$ac_config_commands default-1"
3643 # Handy for debugging:
3644 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3646 # Are we being configured with some form of cross compiler?
3647 # NB: We don't actually need to know this just now, but when, say, a test
3648 # suite is included, we'll have to know.
3649 if test "$build" != "$host"; then
3650 LIBGFOR_IS_NATIVE=false
3652 else
3653 LIBGFOR_IS_NATIVE=true
3656 DEPDIR="${am__leading_dot}deps"
3658 ac_config_commands="$ac_config_commands depfiles"
3661 am_make=${MAKE-make}
3662 cat > confinc << 'END'
3663 am__doit:
3664 @echo this is the am__doit target
3665 .PHONY: am__doit
3667 # If we don't find an include directive, just comment out the code.
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3669 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3670 am__include="#"
3671 am__quote=
3672 _am_result=none
3673 # First try GNU make style include.
3674 echo "include confinc" > confmf
3675 # Ignore all kinds of additional output from 'make'.
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=include
3679 am__quote=
3680 _am_result=GNU
3682 esac
3683 # Now try BSD make style include.
3684 if test "$am__include" = "#"; then
3685 echo '.include "confinc"' > confmf
3686 case `$am_make -s -f confmf 2> /dev/null` in #(
3687 *the\ am__doit\ target*)
3688 am__include=.include
3689 am__quote="\""
3690 _am_result=BSD
3692 esac
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3697 $as_echo "$_am_result" >&6; }
3698 rm -f confinc confmf
3700 # Check whether --enable-dependency-tracking was given.
3701 if test "${enable_dependency_tracking+set}" = set; then :
3702 enableval=$enable_dependency_tracking;
3705 if test "x$enable_dependency_tracking" != xno; then
3706 am_depcomp="$ac_aux_dir/depcomp"
3707 AMDEPBACKSLASH='\'
3708 am__nodep='_no'
3710 if test "x$enable_dependency_tracking" != xno; then
3711 AMDEP_TRUE=
3712 AMDEP_FALSE='#'
3713 else
3714 AMDEP_TRUE='#'
3715 AMDEP_FALSE=
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if ${ac_cv_prog_CC+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3763 if test -z "$ac_cv_prog_CC"; then
3764 ac_ct_CC=$CC
3765 # Extract the first word of "gcc", so it can be a program name with args.
3766 set dummy gcc; ac_word=$2
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768 $as_echo_n "checking for $ac_word... " >&6; }
3769 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 if test -n "$ac_ct_CC"; then
3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_ac_ct_CC="gcc"
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3786 done
3787 done
3788 IFS=$as_save_IFS
3792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3793 if test -n "$ac_ct_CC"; then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3795 $as_echo "$ac_ct_CC" >&6; }
3796 else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3801 if test "x$ac_ct_CC" = x; then
3802 CC=""
3803 else
3804 case $cross_compiling:$ac_tool_warned in
3805 yes:)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808 ac_tool_warned=yes ;;
3809 esac
3810 CC=$ac_ct_CC
3812 else
3813 CC="$ac_cv_prog_CC"
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3819 set dummy ${ac_tool_prefix}cc; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_CC+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_CC="${ac_tool_prefix}cc"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3839 done
3840 done
3841 IFS=$as_save_IFS
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3857 if test -z "$CC"; then
3858 # Extract the first word of "cc", so it can be a program name with args.
3859 set dummy cc; ac_word=$2
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if ${ac_cv_prog_CC+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3867 else
3868 ac_prog_rejected=no
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3877 ac_prog_rejected=yes
3878 continue
3880 ac_cv_prog_CC="cc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3888 if test $ac_prog_rejected = yes; then
3889 # We found a bogon in the path, so make sure we never use it.
3890 set dummy $ac_cv_prog_CC
3891 shift
3892 if test $# != 0; then
3893 # We chose a different compiler from the bogus one.
3894 # However, it has the same basename, so the bogon will be chosen
3895 # first if we set CC to just the basename; use the full file name.
3896 shift
3897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3902 CC=$ac_cv_prog_CC
3903 if test -n "$CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905 $as_echo "$CC" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3913 if test -z "$CC"; then
3914 if test -n "$ac_tool_prefix"; then
3915 for ac_prog in cl.exe
3917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_prog_CC+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -n "$CC"; then
3925 ac_cv_prog_CC="$CC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3940 IFS=$as_save_IFS
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 $as_echo "$CC" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3954 test -n "$CC" && break
3955 done
3957 if test -z "$CC"; then
3958 ac_ct_CC=$CC
3959 for ac_prog in cl.exe
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$ac_ct_CC"; then
3969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_CC="$ac_prog"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3989 if test -n "$ac_ct_CC"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3991 $as_echo "$ac_ct_CC" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3998 test -n "$ac_ct_CC" && break
3999 done
4001 if test "x$ac_ct_CC" = x; then
4002 CC=""
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005 yes:)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008 ac_tool_warned=yes ;;
4009 esac
4010 CC=$ac_ct_CC
4017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "no acceptable C compiler found in \$PATH
4020 See \`config.log' for more details" "$LINENO" 5; }
4022 # Provide some information about the compiler.
4023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4024 set X $ac_compile
4025 ac_compiler=$2
4026 for ac_option in --version -v -V -qversion; do
4027 { { ac_try="$ac_compiler $ac_option >&5"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4035 ac_status=$?
4036 if test -s conftest.err; then
4037 sed '10a\
4038 ... rest of stderr output deleted ...
4039 10q' conftest.err >conftest.er1
4040 cat conftest.er1 >&5
4042 rm -f conftest.er1 conftest.err
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 done
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <stdio.h>
4051 main ()
4053 printf ("hello world\n");
4055 return 0;
4057 _ACEOF
4058 # FIXME: Cleanup?
4059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4060 (eval $ac_link) 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 gcc_no_link=no
4065 else
4066 gcc_no_link=yes
4068 if test x$gcc_no_link = xyes; then
4069 # Setting cross_compile will disable run tests; it will
4070 # also disable AC_CHECK_FILE but that's generally
4071 # correct if we can't link.
4072 cross_compiling=yes
4073 EXEEXT=
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4079 main ()
4083 return 0;
4085 _ACEOF
4086 ac_clean_files_save=$ac_clean_files
4087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4088 # Try to create an executable without -o first, disregard a.out.
4089 # It will help us diagnose broken compilers, and finding out an intuition
4090 # of exeext.
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4092 $as_echo_n "checking whether the C compiler works... " >&6; }
4093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4095 # The possible output files:
4096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4098 ac_rmfiles=
4099 for ac_file in $ac_files
4101 case $ac_file in
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4104 esac
4105 done
4106 rm -f $ac_rmfiles
4108 if { { ac_try="$ac_link_default"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114 $as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_link_default") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; then :
4119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4122 # so that the user can short-circuit this test for compilers unknown to
4123 # Autoconf.
4124 for ac_file in $ac_files ''
4126 test -f "$ac_file" || continue
4127 case $ac_file in
4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4130 [ab].out )
4131 # We found the default executable, but exeext='' is most
4132 # certainly right.
4133 break;;
4134 *.* )
4135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4136 then :; else
4137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4139 # We set ac_cv_exeext here because the later test for it is not
4140 # safe: cross compilers may not add the suffix if given an `-o'
4141 # argument, so we may need to know it at that point already.
4142 # Even if this section looks crufty: it has the advantage of
4143 # actually working.
4144 break;;
4146 break;;
4147 esac
4148 done
4149 test "$ac_cv_exeext" = no && ac_cv_exeext=
4151 else
4152 ac_file=''
4154 if test -z "$ac_file"; then :
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4157 $as_echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error 77 "C compiler cannot create executables
4163 See \`config.log' for more details" "$LINENO" 5; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166 $as_echo "yes" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4169 $as_echo_n "checking for C compiler default output file name... " >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4171 $as_echo "$ac_file" >&6; }
4172 ac_exeext=$ac_cv_exeext
4174 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4175 ac_clean_files=$ac_clean_files_save
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4177 $as_echo_n "checking for suffix of executables... " >&6; }
4178 if { { ac_try="$ac_link"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_link") 2>&5
4186 ac_status=$?
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }; then :
4189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4191 # work properly (i.e., refer to `conftest.exe'), while it won't with
4192 # `rm'.
4193 for ac_file in conftest.exe conftest conftest.*; do
4194 test -f "$ac_file" || continue
4195 case $ac_file in
4196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4198 break;;
4199 * ) break;;
4200 esac
4201 done
4202 else
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4206 See \`config.log' for more details" "$LINENO" 5; }
4208 rm -f conftest conftest$ac_cv_exeext
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4210 $as_echo "$ac_cv_exeext" >&6; }
4212 rm -f conftest.$ac_ext
4213 EXEEXT=$ac_cv_exeext
4214 ac_exeext=$EXEEXT
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <stdio.h>
4219 main ()
4221 FILE *f = fopen ("conftest.out", "w");
4222 return ferror (f) || fclose (f) != 0;
4225 return 0;
4227 _ACEOF
4228 ac_clean_files="$ac_clean_files conftest.out"
4229 # Check that the compiler produces executables we can run. If not, either
4230 # the compiler is broken, or we cross compile.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4232 $as_echo_n "checking whether we are cross compiling... " >&6; }
4233 if test "$cross_compiling" != yes; then
4234 { { ac_try="$ac_link"
4235 case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_link") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }
4245 if { ac_try='./conftest$ac_cv_exeext'
4246 { { case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; }; }; then
4256 cross_compiling=no
4257 else
4258 if test "$cross_compiling" = maybe; then
4259 cross_compiling=yes
4260 else
4261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4263 as_fn_error $? "cannot run C compiled programs.
4264 If you meant to cross compile, use \`--host'.
4265 See \`config.log' for more details" "$LINENO" 5; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4270 $as_echo "$cross_compiling" >&6; }
4272 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4273 ac_clean_files=$ac_clean_files_save
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4276 $as_echo_n "checking for suffix of object files... " >&6; }
4277 if ${ac_cv_objext+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4284 main ()
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.o conftest.obj
4292 if { { ac_try="$ac_compile"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compile") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }; then :
4303 for ac_file in conftest.o conftest.obj conftest.*; do
4304 test -f "$ac_file" || continue;
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4308 break;;
4309 esac
4310 done
4311 else
4312 $as_echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "cannot compute suffix of object files: cannot compile
4318 See \`config.log' for more details" "$LINENO" 5; }
4320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4323 $as_echo "$ac_cv_objext" >&6; }
4324 OBJEXT=$ac_cv_objext
4325 ac_objext=$OBJEXT
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4328 if ${ac_cv_c_compiler_gnu+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4335 main ()
4337 #ifndef __GNUC__
4338 choke me
4339 #endif
4342 return 0;
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_compiler_gnu=yes
4347 else
4348 ac_compiler_gnu=no
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356 if test $ac_compiler_gnu = yes; then
4357 GCC=yes
4358 else
4359 GCC=
4361 ac_test_CFLAGS=${CFLAGS+set}
4362 ac_save_CFLAGS=$CFLAGS
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4365 if ${ac_cv_prog_cc_g+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_save_c_werror_flag=$ac_c_werror_flag
4369 ac_c_werror_flag=yes
4370 ac_cv_prog_cc_g=no
4371 CFLAGS="-g"
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4376 main ()
4380 return 0;
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"; then :
4384 ac_cv_prog_cc_g=yes
4385 else
4386 CFLAGS=""
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4391 main ()
4395 return 0;
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4400 else
4401 ac_c_werror_flag=$ac_save_c_werror_flag
4402 CFLAGS="-g"
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4407 main ()
4411 return 0;
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_g=yes
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 ac_c_werror_flag=$ac_save_c_werror_flag
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425 $as_echo "$ac_cv_prog_cc_g" >&6; }
4426 if test "$ac_test_CFLAGS" = set; then
4427 CFLAGS=$ac_save_CFLAGS
4428 elif test $ac_cv_prog_cc_g = yes; then
4429 if test "$GCC" = yes; then
4430 CFLAGS="-g -O2"
4431 else
4432 CFLAGS="-g"
4434 else
4435 if test "$GCC" = yes; then
4436 CFLAGS="-O2"
4437 else
4438 CFLAGS=
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4443 if ${ac_cv_prog_cc_c89+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 ac_cv_prog_cc_c89=no
4447 ac_save_CC=$CC
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <stdarg.h>
4451 #include <stdio.h>
4452 struct stat;
4453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454 struct buf { int x; };
4455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456 static char *e (p, i)
4457 char **p;
4458 int i;
4460 return p[i];
4462 static char *f (char * (*g) (char **, int), char **p, ...)
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
4475 as 'x'. The following induces an error, until -std is added to get
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
4478 that's true only with -std. */
4479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483 #define FOO(x) 'x'
4484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4486 int test (int i, double x);
4487 struct s1 {int (*f) (int a);};
4488 struct s2 {int (*f) (double a);};
4489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490 int argc;
4491 char **argv;
4493 main ()
4495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4497 return 0;
4499 _ACEOF
4500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503 CC="$ac_save_CC $ac_arg"
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
4507 rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
4509 done
4510 rm -f conftest.$ac_ext
4511 CC=$ac_save_CC
4514 # AC_CACHE_VAL
4515 case "x$ac_cv_prog_cc_c89" in
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518 $as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521 $as_echo "unsupported" >&6; } ;;
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4526 esac
4527 if test "x$ac_cv_prog_cc_c89" != xno; then :
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4543 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4544 if ${am_cv_prog_cc_c_o+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4551 main ()
4555 return 0;
4557 _ACEOF
4558 # Make sure it works both with $CC and with simple cc.
4559 # Following AC_PROG_CC_C_O, we do the test twice because some
4560 # compilers refuse to overwrite an existing .o file with -o,
4561 # though they will create one.
4562 am_cv_prog_cc_c_o=yes
4563 for am_i in 1 2; do
4564 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4565 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } \
4569 && test -f conftest2.$ac_objext; then
4570 : OK
4571 else
4572 am_cv_prog_cc_c_o=no
4573 break
4575 done
4576 rm -f core conftest*
4577 unset am_i
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4580 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4581 if test "$am_cv_prog_cc_c_o" != yes; then
4582 # Losing compiler, so override with the script.
4583 # FIXME: It is wrong to rewrite CC.
4584 # But if we don't then we get into trouble of one sort or another.
4585 # A longer-term fix would be to have automake use am__CC in this case,
4586 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4587 CC="$am_aux_dir/compile $CC"
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 depcc="$CC" am_compiler_list=
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4599 $as_echo_n "checking dependency style of $depcc... " >&6; }
4600 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4604 # We make a subdir and do the tests there. Otherwise we can end up
4605 # making bogus files that we don't know about and never remove. For
4606 # instance it was reported that on HP-UX the gcc test will end up
4607 # making a dummy file named 'D' -- because '-MD' means "put the output
4608 # in D".
4609 rm -rf conftest.dir
4610 mkdir conftest.dir
4611 # Copy depcomp to subdir because otherwise we won't find it if we're
4612 # using a relative directory.
4613 cp "$am_depcomp" conftest.dir
4614 cd conftest.dir
4615 # We will build objects and dependencies in a subdirectory because
4616 # it helps to detect inapplicable dependency modes. For instance
4617 # both Tru64's cc and ICC support -MD to output dependencies as a
4618 # side effect of compilation, but ICC will put the dependencies in
4619 # the current directory while Tru64 will put them in the object
4620 # directory.
4621 mkdir sub
4623 am_cv_CC_dependencies_compiler_type=none
4624 if test "$am_compiler_list" = ""; then
4625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627 am__universal=false
4628 case " $depcc " in #(
4629 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630 esac
4632 for depmode in $am_compiler_list; do
4633 # Setup a source with many dependencies, because some compilers
4634 # like to wrap large dependency lists on column 80 (with \), and
4635 # we should not choose a depcomp mode which is confused by this.
4637 # We need to recreate these files for each test, as the compiler may
4638 # overwrite some of them when testing with obscure command lines.
4639 # This happens at least with the AIX C compiler.
4640 : > sub/conftest.c
4641 for i in 1 2 3 4 5 6; do
4642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4644 # Solaris 10 /bin/sh.
4645 echo '/* dummy */' > sub/conftst$i.h
4646 done
4647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4649 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4650 # mode. It turns out that the SunPro C++ compiler does not properly
4651 # handle '-M -o', and we need to detect this. Also, some Intel
4652 # versions had trouble with output in subdirs.
4653 am__obj=sub/conftest.${OBJEXT-o}
4654 am__minus_obj="-o $am__obj"
4655 case $depmode in
4656 gcc)
4657 # This depmode causes a compiler race in universal mode.
4658 test "$am__universal" = false || continue
4660 nosideeffect)
4661 # After this tag, mechanisms are not by side-effect, so they'll
4662 # only be used when explicitly requested.
4663 if test "x$enable_dependency_tracking" = xyes; then
4664 continue
4665 else
4666 break
4669 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4670 # This compiler won't grok '-c -o', but also, the minuso test has
4671 # not run yet. These depmodes are late enough in the game, and
4672 # so weak that their functioning should not be impacted.
4673 am__obj=conftest.${OBJEXT-o}
4674 am__minus_obj=
4676 none) break ;;
4677 esac
4678 if depmode=$depmode \
4679 source=sub/conftest.c object=$am__obj \
4680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4681 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4682 >/dev/null 2>conftest.err &&
4683 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687 # icc doesn't choke on unknown options, it will just issue warnings
4688 # or remarks (even with -Werror). So we grep stderr for any message
4689 # that says an option was ignored or not supported.
4690 # When given -MP, icc 7.0 and 7.1 complain thusly:
4691 # icc: Command line warning: ignoring option '-M'; no argument required
4692 # The diagnosis changed in icc 8.0:
4693 # icc: Command line remark: option '-MP' not supported
4694 if (grep 'ignoring option' conftest.err ||
4695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696 am_cv_CC_dependencies_compiler_type=$depmode
4697 break
4700 done
4702 cd ..
4703 rm -rf conftest.dir
4704 else
4705 am_cv_CC_dependencies_compiler_type=none
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4710 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4711 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714 test "x$enable_dependency_tracking" != xno \
4715 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716 am__fastdepCC_TRUE=
4717 am__fastdepCC_FALSE='#'
4718 else
4719 am__fastdepCC_TRUE='#'
4720 am__fastdepCC_FALSE=
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4732 # On Suns, sometimes $CPP names a directory.
4733 if test -n "$CPP" && test -d "$CPP"; then
4734 CPP=
4736 if test -z "$CPP"; then
4737 if ${ac_cv_prog_CPP+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 # Double quotes because CPP needs to be expanded
4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4743 ac_preproc_ok=false
4744 for ac_c_preproc_warn_flag in '' yes
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #ifdef __STDC__
4755 # include <limits.h>
4756 #else
4757 # include <assert.h>
4758 #endif
4759 Syntax error
4760 _ACEOF
4761 if ac_fn_c_try_cpp "$LINENO"; then :
4763 else
4764 # Broken: fails on valid input.
4765 continue
4767 rm -f conftest.err conftest.i conftest.$ac_ext
4769 # OK, works on sane cases. Now check whether nonexistent headers
4770 # can be detected and how.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <ac_nonexistent.h>
4774 _ACEOF
4775 if ac_fn_c_try_cpp "$LINENO"; then :
4776 # Broken: success on invalid input.
4777 continue
4778 else
4779 # Passes both tests.
4780 ac_preproc_ok=:
4781 break
4783 rm -f conftest.err conftest.i conftest.$ac_ext
4785 done
4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787 rm -f conftest.i conftest.err conftest.$ac_ext
4788 if $ac_preproc_ok; then :
4789 break
4792 done
4793 ac_cv_prog_CPP=$CPP
4796 CPP=$ac_cv_prog_CPP
4797 else
4798 ac_cv_prog_CPP=$CPP
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4801 $as_echo "$CPP" >&6; }
4802 ac_preproc_ok=false
4803 for ac_c_preproc_warn_flag in '' yes
4805 # Use a header file that comes with gcc, so configuring glibc
4806 # with a fresh cross-compiler works.
4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808 # <limits.h> exists even on freestanding compilers.
4809 # On the NeXT, cc -E runs the code through the compiler's parser,
4810 # not just through cpp. "Syntax error" is here to catch this case.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #ifdef __STDC__
4814 # include <limits.h>
4815 #else
4816 # include <assert.h>
4817 #endif
4818 Syntax error
4819 _ACEOF
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4822 else
4823 # Broken: fails on valid input.
4824 continue
4826 rm -f conftest.err conftest.i conftest.$ac_ext
4828 # OK, works on sane cases. Now check whether nonexistent headers
4829 # can be detected and how.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <ac_nonexistent.h>
4833 _ACEOF
4834 if ac_fn_c_try_cpp "$LINENO"; then :
4835 # Broken: success on invalid input.
4836 continue
4837 else
4838 # Passes both tests.
4839 ac_preproc_ok=:
4840 break
4842 rm -f conftest.err conftest.i conftest.$ac_ext
4844 done
4845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846 rm -f conftest.i conftest.err conftest.$ac_ext
4847 if $ac_preproc_ok; then :
4849 else
4850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4853 See \`config.log' for more details" "$LINENO" 5; }
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865 if ${ac_cv_path_GREP+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -z "$GREP"; then
4869 ac_path_GREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_prog in grep ggrep; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879 as_fn_executable_p "$ac_path_GREP" || continue
4880 # Check for GNU ac_path_GREP and select it if it is found.
4881 # Check for GNU $ac_path_GREP
4882 case `"$ac_path_GREP" --version 2>&1` in
4883 *GNU*)
4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4886 ac_count=0
4887 $as_echo_n 0123456789 >"conftest.in"
4888 while :
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'GREP' >> "conftest.nl"
4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_GREP="$ac_path_GREP"
4900 ac_path_GREP_max=$ac_count
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4904 done
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4908 $ac_path_GREP_found && break 3
4909 done
4910 done
4911 done
4912 IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_GREP"; then
4914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4916 else
4917 ac_cv_path_GREP=$GREP
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922 $as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927 $as_echo_n "checking for egrep... " >&6; }
4928 if ${ac_cv_path_EGREP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932 then ac_cv_path_EGREP="$GREP -E"
4933 else
4934 if test -z "$EGREP"; then
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in egrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 as_fn_executable_p "$ac_path_EGREP" || continue
4946 # Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948 case `"$ac_path_EGREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952 ac_count=0
4953 $as_echo_n 0123456789 >"conftest.in"
4954 while :
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4974 $ac_path_EGREP_found && break 3
4975 done
4976 done
4977 done
4978 IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_EGREP"; then
4980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982 else
4983 ac_cv_path_EGREP=$EGREP
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989 $as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4994 $as_echo_n "checking for ANSI C header files... " >&6; }
4995 if ${ac_cv_header_stdc+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <stdlib.h>
5001 #include <stdarg.h>
5002 #include <string.h>
5003 #include <float.h>
5006 main ()
5010 return 0;
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_header_stdc=yes
5015 else
5016 ac_cv_header_stdc=no
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $ac_cv_header_stdc = yes; then
5021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <string.h>
5026 _ACEOF
5027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5028 $EGREP "memchr" >/dev/null 2>&1; then :
5030 else
5031 ac_cv_header_stdc=no
5033 rm -f conftest*
5037 if test $ac_cv_header_stdc = yes; then
5038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 #include <stdlib.h>
5043 _ACEOF
5044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5045 $EGREP "free" >/dev/null 2>&1; then :
5047 else
5048 ac_cv_header_stdc=no
5050 rm -f conftest*
5054 if test $ac_cv_header_stdc = yes; then
5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5056 if test "$cross_compiling" = yes; then :
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <ctype.h>
5062 #include <stdlib.h>
5063 #if ((' ' & 0x0FF) == 0x020)
5064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5066 #else
5067 # define ISLOWER(c) \
5068 (('a' <= (c) && (c) <= 'i') \
5069 || ('j' <= (c) && (c) <= 'r') \
5070 || ('s' <= (c) && (c) <= 'z'))
5071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5072 #endif
5074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 main ()
5078 int i;
5079 for (i = 0; i < 256; i++)
5080 if (XOR (islower (i), ISLOWER (i))
5081 || toupper (i) != TOUPPER (i))
5082 return 2;
5083 return 0;
5085 _ACEOF
5086 if ac_fn_c_try_run "$LINENO"; then :
5088 else
5089 ac_cv_header_stdc=no
5091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5092 conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5098 $as_echo "$ac_cv_header_stdc" >&6; }
5099 if test $ac_cv_header_stdc = yes; then
5101 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5105 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107 inttypes.h stdint.h unistd.h
5108 do :
5109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5113 cat >>confdefs.h <<_ACEOF
5114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5115 _ACEOF
5119 done
5123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5124 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5125 MINIX=yes
5126 else
5127 MINIX=
5131 if test "$MINIX" = yes; then
5133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5139 $as_echo "#define _MINIX 1" >>confdefs.h
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5145 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5146 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5152 # define __EXTENSIONS__ 1
5153 $ac_includes_default
5155 main ()
5159 return 0;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 ac_cv_safe_to_define___extensions__=yes
5164 else
5165 ac_cv_safe_to_define___extensions__=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5170 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5171 test $ac_cv_safe_to_define___extensions__ = yes &&
5172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5185 # Check whether --with-toolexeclibdir was given.
5186 if test "${with_toolexeclibdir+set}" = set; then :
5187 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5191 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5193 esac
5194 else
5195 with_toolexeclibdir=no
5200 # Calculate toolexeclibdir
5201 # Also toolexecdir, though it's only used in toolexeclibdir
5202 case ${version_specific_libs} in
5203 yes)
5204 # Need the gcc compiler version to know where to install libraries
5205 # and header files if --enable-version-specific-runtime-libs option
5206 # is selected.
5207 toolexecdir='$(libdir)/gcc/$(target_alias)'
5208 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5211 if test -n "$with_cross_host" &&
5212 test x"$with_cross_host" != x"no"; then
5213 # Install a library built with a cross compiler in tooldir, not libdir.
5214 toolexecdir='$(exec_prefix)/$(target_alias)'
5215 case ${with_toolexeclibdir} in
5217 toolexeclibdir='$(toolexecdir)/lib'
5220 toolexeclibdir=${with_toolexeclibdir}
5222 esac
5223 else
5224 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5225 toolexeclibdir='$(libdir)'
5227 multi_os_directory=`$CC -print-multi-os-directory`
5228 case $multi_os_directory in
5229 .) ;; # Avoid trailing /.
5230 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5231 esac
5233 esac
5237 # Create a spec file, so that compile/link tests don't fail
5238 test -f libgfortran.spec || touch libgfortran.spec
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246 # Check the compiler.
5247 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5248 # We must force CC to /not/ be precious variables; otherwise
5249 # the wrong, non-multilib-adjusted value will be used in multilibs.
5250 # As a side effect, we have to subst CFLAGS ourselves.
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_CC+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$CC"; then
5268 ac_cv_prog_CC="$CC" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5287 CC=$ac_cv_prog_CC
5288 if test -n "$CC"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5290 $as_echo "$CC" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5298 if test -z "$ac_cv_prog_CC"; then
5299 ac_ct_CC=$CC
5300 # Extract the first word of "gcc", so it can be a program name with args.
5301 set dummy gcc; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_CC="gcc"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328 if test -n "$ac_ct_CC"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5330 $as_echo "$ac_ct_CC" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5336 if test "x$ac_ct_CC" = x; then
5337 CC=""
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340 yes:)
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned=yes ;;
5344 esac
5345 CC=$ac_ct_CC
5347 else
5348 CC="$ac_cv_prog_CC"
5351 if test -z "$CC"; then
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}cc; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_CC+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$CC"; then
5361 ac_cv_prog_CC="$CC" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_CC="${ac_tool_prefix}cc"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5376 IFS=$as_save_IFS
5380 CC=$ac_cv_prog_CC
5381 if test -n "$CC"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5383 $as_echo "$CC" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5392 if test -z "$CC"; then
5393 # Extract the first word of "cc", so it can be a program name with args.
5394 set dummy cc; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_CC+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$CC"; then
5401 ac_cv_prog_CC="$CC" # Let the user override the test.
5402 else
5403 ac_prog_rejected=no
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5412 ac_prog_rejected=yes
5413 continue
5415 ac_cv_prog_CC="cc"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5419 done
5420 done
5421 IFS=$as_save_IFS
5423 if test $ac_prog_rejected = yes; then
5424 # We found a bogon in the path, so make sure we never use it.
5425 set dummy $ac_cv_prog_CC
5426 shift
5427 if test $# != 0; then
5428 # We chose a different compiler from the bogus one.
5429 # However, it has the same basename, so the bogon will be chosen
5430 # first if we set CC to just the basename; use the full file name.
5431 shift
5432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5437 CC=$ac_cv_prog_CC
5438 if test -n "$CC"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5440 $as_echo "$CC" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$CC"; then
5449 if test -n "$ac_tool_prefix"; then
5450 for ac_prog in cl.exe
5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_CC+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$CC"; then
5460 ac_cv_prog_CC="$CC" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 CC=$ac_cv_prog_CC
5480 if test -n "$CC"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5482 $as_echo "$CC" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 test -n "$CC" && break
5490 done
5492 if test -z "$CC"; then
5493 ac_ct_CC=$CC
5494 for ac_prog in cl.exe
5496 # Extract the first word of "$ac_prog", so it can be a program name with args.
5497 set dummy $ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$ac_ct_CC"; then
5504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_ac_ct_CC="$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5524 if test -n "$ac_ct_CC"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5526 $as_echo "$ac_ct_CC" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5533 test -n "$ac_ct_CC" && break
5534 done
5536 if test "x$ac_ct_CC" = x; then
5537 CC=""
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 CC=$ac_ct_CC
5552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error $? "no acceptable C compiler found in \$PATH
5555 See \`config.log' for more details" "$LINENO" 5; }
5557 # Provide some information about the compiler.
5558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5559 set X $ac_compile
5560 ac_compiler=$2
5561 for ac_option in --version -v -V -qversion; do
5562 { { ac_try="$ac_compiler $ac_option >&5"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5568 $as_echo "$ac_try_echo"; } >&5
5569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5570 ac_status=$?
5571 if test -s conftest.err; then
5572 sed '10a\
5573 ... rest of stderr output deleted ...
5574 10q' conftest.err >conftest.er1
5575 cat conftest.er1 >&5
5577 rm -f conftest.er1 conftest.err
5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579 test $ac_status = 0; }
5580 done
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5583 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5584 if ${ac_cv_c_compiler_gnu+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5591 main ()
5593 #ifndef __GNUC__
5594 choke me
5595 #endif
5598 return 0;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_compiler_gnu=yes
5603 else
5604 ac_compiler_gnu=no
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5611 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5612 if test $ac_compiler_gnu = yes; then
5613 GCC=yes
5614 else
5615 GCC=
5617 ac_test_CFLAGS=${CFLAGS+set}
5618 ac_save_CFLAGS=$CFLAGS
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5620 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5621 if ${ac_cv_prog_cc_g+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 ac_save_c_werror_flag=$ac_c_werror_flag
5625 ac_c_werror_flag=yes
5626 ac_cv_prog_cc_g=no
5627 CFLAGS="-g"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5632 main ()
5636 return 0;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 ac_cv_prog_cc_g=yes
5641 else
5642 CFLAGS=""
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5647 main ()
5651 return 0;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5656 else
5657 ac_c_werror_flag=$ac_save_c_werror_flag
5658 CFLAGS="-g"
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5663 main ()
5667 return 0;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_prog_cc_g=yes
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_c_werror_flag=$ac_save_c_werror_flag
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5681 $as_echo "$ac_cv_prog_cc_g" >&6; }
5682 if test "$ac_test_CFLAGS" = set; then
5683 CFLAGS=$ac_save_CFLAGS
5684 elif test $ac_cv_prog_cc_g = yes; then
5685 if test "$GCC" = yes; then
5686 CFLAGS="-g -O2"
5687 else
5688 CFLAGS="-g"
5690 else
5691 if test "$GCC" = yes; then
5692 CFLAGS="-O2"
5693 else
5694 CFLAGS=
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5699 if ${ac_cv_prog_cc_c89+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 ac_cv_prog_cc_c89=no
5703 ac_save_CC=$CC
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <stdarg.h>
5707 #include <stdio.h>
5708 struct stat;
5709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5710 struct buf { int x; };
5711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5712 static char *e (p, i)
5713 char **p;
5714 int i;
5716 return p[i];
5718 static char *f (char * (*g) (char **, int), char **p, ...)
5720 char *s;
5721 va_list v;
5722 va_start (v,p);
5723 s = g (p, va_arg (v,int));
5724 va_end (v);
5725 return s;
5728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5729 function prototypes and stuff, but not '\xHH' hex character constants.
5730 These don't provoke an error unfortunately, instead are silently treated
5731 as 'x'. The following induces an error, until -std is added to get
5732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5733 array size at least. It's necessary to write '\x00'==0 to get something
5734 that's true only with -std. */
5735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5738 inside strings and character constants. */
5739 #define FOO(x) 'x'
5740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5742 int test (int i, double x);
5743 struct s1 {int (*f) (int a);};
5744 struct s2 {int (*f) (double a);};
5745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5746 int argc;
5747 char **argv;
5749 main ()
5751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5753 return 0;
5755 _ACEOF
5756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5759 CC="$ac_save_CC $ac_arg"
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_prog_cc_c89=$ac_arg
5763 rm -f core conftest.err conftest.$ac_objext
5764 test "x$ac_cv_prog_cc_c89" != "xno" && break
5765 done
5766 rm -f conftest.$ac_ext
5767 CC=$ac_save_CC
5770 # AC_CACHE_VAL
5771 case "x$ac_cv_prog_cc_c89" in
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5774 $as_echo "none needed" >&6; } ;;
5775 xno)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5777 $as_echo "unsupported" >&6; } ;;
5779 CC="$CC $ac_cv_prog_cc_c89"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5782 esac
5783 if test "x$ac_cv_prog_cc_c89" != xno; then :
5787 ac_ext=c
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5799 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5800 if ${am_cv_prog_cc_c_o+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5807 main ()
5811 return 0;
5813 _ACEOF
5814 # Make sure it works both with $CC and with simple cc.
5815 # Following AC_PROG_CC_C_O, we do the test twice because some
5816 # compilers refuse to overwrite an existing .o file with -o,
5817 # though they will create one.
5818 am_cv_prog_cc_c_o=yes
5819 for am_i in 1 2; do
5820 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5821 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } \
5825 && test -f conftest2.$ac_objext; then
5826 : OK
5827 else
5828 am_cv_prog_cc_c_o=no
5829 break
5831 done
5832 rm -f core conftest*
5833 unset am_i
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5836 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5837 if test "$am_cv_prog_cc_c_o" != yes; then
5838 # Losing compiler, so override with the script.
5839 # FIXME: It is wrong to rewrite CC.
5840 # But if we don't then we get into trouble of one sort or another.
5841 # A longer-term fix would be to have automake use am__CC in this case,
5842 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5843 CC="$am_aux_dir/compile $CC"
5845 ac_ext=c
5846 ac_cpp='$CPP $CPPFLAGS'
5847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852 depcc="$CC" am_compiler_list=
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5855 $as_echo_n "checking dependency style of $depcc... " >&6; }
5856 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5860 # We make a subdir and do the tests there. Otherwise we can end up
5861 # making bogus files that we don't know about and never remove. For
5862 # instance it was reported that on HP-UX the gcc test will end up
5863 # making a dummy file named 'D' -- because '-MD' means "put the output
5864 # in D".
5865 rm -rf conftest.dir
5866 mkdir conftest.dir
5867 # Copy depcomp to subdir because otherwise we won't find it if we're
5868 # using a relative directory.
5869 cp "$am_depcomp" conftest.dir
5870 cd conftest.dir
5871 # We will build objects and dependencies in a subdirectory because
5872 # it helps to detect inapplicable dependency modes. For instance
5873 # both Tru64's cc and ICC support -MD to output dependencies as a
5874 # side effect of compilation, but ICC will put the dependencies in
5875 # the current directory while Tru64 will put them in the object
5876 # directory.
5877 mkdir sub
5879 am_cv_CC_dependencies_compiler_type=none
5880 if test "$am_compiler_list" = ""; then
5881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5883 am__universal=false
5884 case " $depcc " in #(
5885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5886 esac
5888 for depmode in $am_compiler_list; do
5889 # Setup a source with many dependencies, because some compilers
5890 # like to wrap large dependency lists on column 80 (with \), and
5891 # we should not choose a depcomp mode which is confused by this.
5893 # We need to recreate these files for each test, as the compiler may
5894 # overwrite some of them when testing with obscure command lines.
5895 # This happens at least with the AIX C compiler.
5896 : > sub/conftest.c
5897 for i in 1 2 3 4 5 6; do
5898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5900 # Solaris 10 /bin/sh.
5901 echo '/* dummy */' > sub/conftst$i.h
5902 done
5903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5906 # mode. It turns out that the SunPro C++ compiler does not properly
5907 # handle '-M -o', and we need to detect this. Also, some Intel
5908 # versions had trouble with output in subdirs.
5909 am__obj=sub/conftest.${OBJEXT-o}
5910 am__minus_obj="-o $am__obj"
5911 case $depmode in
5912 gcc)
5913 # This depmode causes a compiler race in universal mode.
5914 test "$am__universal" = false || continue
5916 nosideeffect)
5917 # After this tag, mechanisms are not by side-effect, so they'll
5918 # only be used when explicitly requested.
5919 if test "x$enable_dependency_tracking" = xyes; then
5920 continue
5921 else
5922 break
5925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5926 # This compiler won't grok '-c -o', but also, the minuso test has
5927 # not run yet. These depmodes are late enough in the game, and
5928 # so weak that their functioning should not be impacted.
5929 am__obj=conftest.${OBJEXT-o}
5930 am__minus_obj=
5932 none) break ;;
5933 esac
5934 if depmode=$depmode \
5935 source=sub/conftest.c object=$am__obj \
5936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5938 >/dev/null 2>conftest.err &&
5939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5943 # icc doesn't choke on unknown options, it will just issue warnings
5944 # or remarks (even with -Werror). So we grep stderr for any message
5945 # that says an option was ignored or not supported.
5946 # When given -MP, icc 7.0 and 7.1 complain thusly:
5947 # icc: Command line warning: ignoring option '-M'; no argument required
5948 # The diagnosis changed in icc 8.0:
5949 # icc: Command line remark: option '-MP' not supported
5950 if (grep 'ignoring option' conftest.err ||
5951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5952 am_cv_CC_dependencies_compiler_type=$depmode
5953 break
5956 done
5958 cd ..
5959 rm -rf conftest.dir
5960 else
5961 am_cv_CC_dependencies_compiler_type=none
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5966 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5967 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5970 test "x$enable_dependency_tracking" != xno \
5971 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5972 am__fastdepCC_TRUE=
5973 am__fastdepCC_FALSE='#'
5974 else
5975 am__fastdepCC_TRUE='#'
5976 am__fastdepCC_FALSE=
5986 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5987 if test "x$GCC" = "xyes"; then
5988 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5989 ## We like to use C11 and C99 routines when available. This makes
5990 ## sure that
5991 ## __STDC_VERSION__ is set such that libc includes make them available.
5992 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5993 ## Compile the following tests with the same system header contents
5994 ## that we'll encounter when compiling our own source files.
5995 CFLAGS="-std=gnu11 $CFLAGS"
5998 # Add CET specific flags if CET is enabled
5999 # Check whether --enable-cet was given.
6000 if test "${enable_cet+set}" = set; then :
6001 enableval=$enable_cet;
6002 case "$enableval" in
6003 yes|no|auto) ;;
6004 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
6005 esac
6007 else
6008 enable_cet=auto
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6013 $as_echo_n "checking for CET support... " >&6; }
6015 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
6016 case "$host" in
6017 i[34567]86-*-linux* | x86_64-*-linux*)
6018 case "$enable_cet" in
6019 auto)
6020 # Check if target supports multi-byte NOPs
6021 # and if compiler and assembler support CET insn.
6022 cet_save_CFLAGS="$CFLAGS"
6023 CFLAGS="$CFLAGS -fcf-protection"
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6028 main ()
6031 #if !defined(__SSE2__)
6032 #error target does not support multi-byte NOPs
6033 #else
6034 asm ("setssbsy");
6035 #endif
6038 return 0;
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 enable_cet=yes
6043 else
6044 enable_cet=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 CFLAGS="$cet_save_CFLAGS"
6049 yes)
6050 # Check if assembler supports CET.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6055 main ()
6057 asm ("setssbsy");
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6064 else
6065 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 esac
6072 enable_cet=no
6074 esac
6075 if test x$enable_cet = xyes; then
6076 CET_FLAGS="-fcf-protection -mshstk"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6078 $as_echo "yes" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6084 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6085 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6086 CFLAGS="$CFLAGS $CET_FLAGS"
6092 # Check for symbol versioning (copied from libssp).
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6094 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6095 # Check whether --enable-symvers was given.
6096 if test "${enable_symvers+set}" = set; then :
6097 enableval=$enable_symvers; gfortran_use_symver=$enableval
6098 else
6099 gfortran_use_symver=yes
6102 if test "x$gfortran_use_symver" != xno; then
6103 save_LDFLAGS="$LDFLAGS"
6104 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6105 cat > conftest.map <<EOF
6106 FOO_1.0 {
6107 global: *foo*; bar; local: *;
6110 if test x$gcc_no_link = xyes; then
6111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int foo;
6117 main ()
6121 return 0;
6123 _ACEOF
6124 if ac_fn_c_try_link "$LINENO"; then :
6125 gfortran_use_symver=gnu
6126 else
6127 gfortran_use_symver=no
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131 if test x$gfortran_use_symver = xno; then
6132 case "$target_os" in
6133 solaris2*)
6134 LDFLAGS="$save_LDFLAGS"
6135 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6136 # Sun ld cannot handle wildcards and treats all entries as undefined.
6137 cat > conftest.map <<EOF
6138 FOO_1.0 {
6139 global: foo; local: *;
6142 if test x$gcc_no_link = xyes; then
6143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 int foo;
6149 main ()
6153 return 0;
6155 _ACEOF
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 gfortran_use_symver=sun
6158 else
6159 gfortran_use_symver=no
6161 rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6164 esac
6166 LDFLAGS="$save_LDFLAGS"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6169 $as_echo "$gfortran_use_symver" >&6; }
6170 if test "x$gfortran_use_symver" != xno; then
6171 LIBGFOR_USE_SYMVER_TRUE=
6172 LIBGFOR_USE_SYMVER_FALSE='#'
6173 else
6174 LIBGFOR_USE_SYMVER_TRUE='#'
6175 LIBGFOR_USE_SYMVER_FALSE=
6178 if test "x$gfortran_use_symver" = xgnu; then
6179 LIBGFOR_USE_SYMVER_GNU_TRUE=
6180 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6181 else
6182 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6183 LIBGFOR_USE_SYMVER_GNU_FALSE=
6186 if test "x$gfortran_use_symver" = xsun; then
6187 LIBGFOR_USE_SYMVER_SUN_TRUE=
6188 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6189 else
6190 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6191 LIBGFOR_USE_SYMVER_SUN_FALSE=
6195 # For GPU offloading, not everything in libfortran can be supported.
6196 # Currently, the only target that has this problem is nvptx. The
6197 # following is a (partial) list of features that are unsupportable on
6198 # this particular target:
6199 # * Constructors
6200 # * alloca
6201 # * C library support for I/O, with printf as the one notable exception
6202 # * C library support for other features such as signal, environment
6203 # variables, time functions
6205 if test "x${target_cpu}" = xnvptx; then
6206 LIBGFOR_MINIMAL_TRUE=
6207 LIBGFOR_MINIMAL_FALSE='#'
6208 else
6209 LIBGFOR_MINIMAL_TRUE='#'
6210 LIBGFOR_MINIMAL_FALSE=
6214 # Some compiler target support may have limited support for integer
6215 # or floating point numbers – or may want to reduce the libgfortran size
6216 # although they do have the support.
6217 LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6218 LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6223 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6224 # similarly to how libstdc++ does it
6225 ac_test_CFLAGS="${CFLAGS+set}"
6226 ac_save_CFLAGS="$CFLAGS"
6228 # Check for -ffunction-sections -fdata-sections
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6230 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6231 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6236 main ()
6238 int foo;
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 ac_fdsections=yes
6245 else
6246 ac_fdsections=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 if test "$ac_test_CFLAGS" = set; then
6250 CFLAGS="$ac_save_CFLAGS"
6251 else
6252 # this is the suspicious part
6253 CFLAGS=""
6255 if test x"$ac_fdsections" = x"yes"; then
6256 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6259 $as_echo "$ac_fdsections" >&6; }
6262 # Check linker hardware capability support.
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6264 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6265 if ${ac_cv_path_SED+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6269 for ac_i in 1 2 3 4 5 6 7; do
6270 ac_script="$ac_script$as_nl$ac_script"
6271 done
6272 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6273 { ac_script=; unset ac_script;}
6274 if test -z "$SED"; then
6275 ac_path_SED_found=false
6276 # Loop through the user's path and test for each of PROGNAME-LIST
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_prog in sed gsed; do
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6285 as_fn_executable_p "$ac_path_SED" || continue
6286 # Check for GNU ac_path_SED and select it if it is found.
6287 # Check for GNU $ac_path_SED
6288 case `"$ac_path_SED" --version 2>&1` in
6289 *GNU*)
6290 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6292 ac_count=0
6293 $as_echo_n 0123456789 >"conftest.in"
6294 while :
6296 cat "conftest.in" "conftest.in" >"conftest.tmp"
6297 mv "conftest.tmp" "conftest.in"
6298 cp "conftest.in" "conftest.nl"
6299 $as_echo '' >> "conftest.nl"
6300 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6302 as_fn_arith $ac_count + 1 && ac_count=$as_val
6303 if test $ac_count -gt ${ac_path_SED_max-0}; then
6304 # Best one so far, save it but keep looking for a better one
6305 ac_cv_path_SED="$ac_path_SED"
6306 ac_path_SED_max=$ac_count
6308 # 10*(2^10) chars as input seems more than enough
6309 test $ac_count -gt 10 && break
6310 done
6311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6312 esac
6314 $ac_path_SED_found && break 3
6315 done
6316 done
6317 done
6318 IFS=$as_save_IFS
6319 if test -z "$ac_cv_path_SED"; then
6320 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6322 else
6323 ac_cv_path_SED=$SED
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6328 $as_echo "$ac_cv_path_SED" >&6; }
6329 SED="$ac_cv_path_SED"
6330 rm -f conftest.sed
6332 test -z "$SED" && SED=sed
6333 Xsed="$SED -e 1s/^X//"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6346 $as_echo_n "checking for fgrep... " >&6; }
6347 if ${ac_cv_path_FGREP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6351 then ac_cv_path_FGREP="$GREP -F"
6352 else
6353 if test -z "$FGREP"; then
6354 ac_path_FGREP_found=false
6355 # Loop through the user's path and test for each of PROGNAME-LIST
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_prog in fgrep; do
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6364 as_fn_executable_p "$ac_path_FGREP" || continue
6365 # Check for GNU ac_path_FGREP and select it if it is found.
6366 # Check for GNU $ac_path_FGREP
6367 case `"$ac_path_FGREP" --version 2>&1` in
6368 *GNU*)
6369 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6371 ac_count=0
6372 $as_echo_n 0123456789 >"conftest.in"
6373 while :
6375 cat "conftest.in" "conftest.in" >"conftest.tmp"
6376 mv "conftest.tmp" "conftest.in"
6377 cp "conftest.in" "conftest.nl"
6378 $as_echo 'FGREP' >> "conftest.nl"
6379 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6381 as_fn_arith $ac_count + 1 && ac_count=$as_val
6382 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6383 # Best one so far, save it but keep looking for a better one
6384 ac_cv_path_FGREP="$ac_path_FGREP"
6385 ac_path_FGREP_max=$ac_count
6387 # 10*(2^10) chars as input seems more than enough
6388 test $ac_count -gt 10 && break
6389 done
6390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391 esac
6393 $ac_path_FGREP_found && break 3
6394 done
6395 done
6396 done
6397 IFS=$as_save_IFS
6398 if test -z "$ac_cv_path_FGREP"; then
6399 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6401 else
6402 ac_cv_path_FGREP=$FGREP
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6408 $as_echo "$ac_cv_path_FGREP" >&6; }
6409 FGREP="$ac_cv_path_FGREP"
6412 test -z "$GREP" && GREP=grep
6430 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6435 $as_echo_n "checking how to print strings... " >&6; }
6436 # Test print first, because it will be a builtin if present.
6437 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6438 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6439 ECHO='print -r --'
6440 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6441 ECHO='printf %s\n'
6442 else
6443 # Use this function as a fallback that always works.
6444 func_fallback_echo ()
6446 eval 'cat <<_LTECHO_EOF
6448 _LTECHO_EOF'
6450 ECHO='func_fallback_echo'
6453 # func_echo_all arg...
6454 # Invoke $ECHO with all args, space-separated.
6455 func_echo_all ()
6457 $ECHO ""
6460 case "$ECHO" in
6461 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6462 $as_echo "printf" >&6; } ;;
6463 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6464 $as_echo "print -r" >&6; } ;;
6465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6466 $as_echo "cat" >&6; } ;;
6467 esac
6484 # Check whether --with-gnu-ld was given.
6485 if test "${with_gnu_ld+set}" = set; then :
6486 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6487 else
6488 with_gnu_ld=no
6491 ac_prog=ld
6492 if test "$GCC" = yes; then
6493 # Check if gcc -print-prog-name=ld gives a path.
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6495 $as_echo_n "checking for ld used by $CC... " >&6; }
6496 case $host in
6497 *-*-mingw*)
6498 # gcc leaves a trailing carriage return which upsets mingw
6499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6502 esac
6503 case $ac_prog in
6504 # Accept absolute paths.
6505 [\\/]* | ?:[\\/]*)
6506 re_direlt='/[^/][^/]*/\.\./'
6507 # Canonicalize the pathname of ld
6508 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6509 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6510 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6511 done
6512 test -z "$LD" && LD="$ac_prog"
6515 # If it fails, then pretend we aren't using GCC.
6516 ac_prog=ld
6519 # If it is relative, then search for the first ld in PATH.
6520 with_gnu_ld=unknown
6522 esac
6523 elif test "$with_gnu_ld" = yes; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6525 $as_echo_n "checking for GNU ld... " >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6528 $as_echo_n "checking for non-GNU ld... " >&6; }
6530 if ${lt_cv_path_LD+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -z "$LD"; then
6534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6535 for ac_dir in $PATH; do
6536 IFS="$lt_save_ifs"
6537 test -z "$ac_dir" && ac_dir=.
6538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6539 lt_cv_path_LD="$ac_dir/$ac_prog"
6540 # Check to see if the program is GNU ld. I'd rather use --version,
6541 # but apparently some variants of GNU ld only accept -v.
6542 # Break only if it was the GNU/non-GNU ld that we prefer.
6543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6544 *GNU* | *'with BFD'*)
6545 test "$with_gnu_ld" != no && break
6548 test "$with_gnu_ld" != yes && break
6550 esac
6552 done
6553 IFS="$lt_save_ifs"
6554 else
6555 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6559 LD="$lt_cv_path_LD"
6560 if test -n "$LD"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6562 $as_echo "$LD" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6567 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6569 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6570 if ${lt_cv_prog_gnu_ld+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574 case `$LD -v 2>&1 </dev/null` in
6575 *GNU* | *'with BFD'*)
6576 lt_cv_prog_gnu_ld=yes
6579 lt_cv_prog_gnu_ld=no
6581 esac
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6584 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6585 with_gnu_ld=$lt_cv_prog_gnu_ld
6596 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6599 ac_save_LDFLAGS="$LDFLAGS"
6600 LDFLAGS="$LFLAGS -mclear-hwcap"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6603 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6604 if test x$gcc_no_link = xyes; then
6605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6611 main ()
6613 return 0;
6615 return 0;
6617 _ACEOF
6618 if ac_fn_c_try_link "$LINENO"; then :
6619 ac_hwcap_ldflags=yes
6620 else
6621 ac_hwcap_ldflags=no
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 if test "$ac_hwcap_ldflags" = "yes"; then
6626 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6629 $as_echo "$ac_hwcap_ldflags" >&6; }
6631 LDFLAGS="$ac_save_LDFLAGS"
6635 if test $ac_hwcap_ldflags != no; then
6636 HAVE_HWCAP_TRUE=
6637 HAVE_HWCAP_FALSE='#'
6638 else
6639 HAVE_HWCAP_TRUE='#'
6640 HAVE_HWCAP_FALSE=
6645 # Find other programs we need.
6646 if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}as; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_AS+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -n "$AS"; then
6655 ac_cv_prog_AS="$AS" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_AS="${ac_tool_prefix}as"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6668 done
6669 done
6670 IFS=$as_save_IFS
6674 AS=$ac_cv_prog_AS
6675 if test -n "$AS"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6677 $as_echo "$AS" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6685 if test -z "$ac_cv_prog_AS"; then
6686 ac_ct_AS=$AS
6687 # Extract the first word of "as", so it can be a program name with args.
6688 set dummy as; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$ac_ct_AS"; then
6695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_ac_ct_AS="as"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6708 done
6709 done
6710 IFS=$as_save_IFS
6714 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6715 if test -n "$ac_ct_AS"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6717 $as_echo "$ac_ct_AS" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6723 if test "x$ac_ct_AS" = x; then
6724 AS=""
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732 AS=$ac_ct_AS
6734 else
6735 AS="$ac_cv_prog_AS"
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}ar; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_AR+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$AR"; then
6747 ac_cv_prog_AR="$AR" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_AR="${ac_tool_prefix}ar"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 AR=$ac_cv_prog_AR
6767 if test -n "$AR"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6769 $as_echo "$AR" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6777 if test -z "$ac_cv_prog_AR"; then
6778 ac_ct_AR=$AR
6779 # Extract the first word of "ar", so it can be a program name with args.
6780 set dummy ar; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$ac_ct_AR"; then
6787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_AR="ar"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6806 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6807 if test -n "$ac_ct_AR"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6809 $as_echo "$ac_ct_AR" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_ct_AR" = x; then
6816 AR=""
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 AR=$ac_ct_AR
6826 else
6827 AR="$ac_cv_prog_AR"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_RANLIB+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$RANLIB"; then
6839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 RANLIB=$ac_cv_prog_RANLIB
6859 if test -n "$RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6861 $as_echo "$RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6869 if test -z "$ac_cv_prog_RANLIB"; then
6870 ac_ct_RANLIB=$RANLIB
6871 # Extract the first word of "ranlib", so it can be a program name with args.
6872 set dummy ranlib; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$ac_ct_RANLIB"; then
6879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_ac_ct_RANLIB="ranlib"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6892 done
6893 done
6894 IFS=$as_save_IFS
6898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6899 if test -n "$ac_ct_RANLIB"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6901 $as_echo "$ac_ct_RANLIB" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$ac_ct_RANLIB" = x; then
6908 RANLIB="ranlib-not-found-in-path-error"
6909 else
6910 case $cross_compiling:$ac_tool_warned in
6911 yes:)
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6915 esac
6916 RANLIB=$ac_ct_RANLIB
6918 else
6919 RANLIB="$ac_cv_prog_RANLIB"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6923 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6924 set x ${MAKE-make}
6925 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6926 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat >conftest.make <<\_ACEOF
6930 SHELL = /bin/sh
6931 all:
6932 @echo '@@@%%%=$(MAKE)=@@@%%%'
6933 _ACEOF
6934 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6935 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6936 *@@@%%%=?*=@@@%%%*)
6937 eval ac_cv_prog_make_${ac_make}_set=yes;;
6939 eval ac_cv_prog_make_${ac_make}_set=no;;
6940 esac
6941 rm -f conftest.make
6943 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6946 SET_MAKE=
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 SET_MAKE="MAKE=${MAKE-make}"
6955 # Configure libtool
6956 #AC_MSG_NOTICE([====== Starting libtool configuration])
6957 enable_dlopen=yes
6961 case `pwd` in
6962 *\ * | *\ *)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6964 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6965 esac
6969 macro_version='2.2.7a'
6970 macro_revision='1.3134'
6984 ltmain="$ac_aux_dir/ltmain.sh"
6986 # Backslashify metacharacters that are still active within
6987 # double-quoted strings.
6988 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6990 # Same as above, but do not quote variable references.
6991 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6993 # Sed substitution to delay expansion of an escaped shell variable in a
6994 # double_quote_subst'ed string.
6995 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6997 # Sed substitution to delay expansion of an escaped single quote.
6998 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7000 # Sed substitution to avoid accidental globbing in evaled expressions
7001 no_glob_subst='s/\*/\\\*/g'
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7004 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7005 if ${lt_cv_path_NM+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$NM"; then
7009 # Let the user override the test.
7010 lt_cv_path_NM="$NM"
7011 else
7012 lt_nm_to_check="${ac_tool_prefix}nm"
7013 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7014 lt_nm_to_check="$lt_nm_to_check nm"
7016 for lt_tmp_nm in $lt_nm_to_check; do
7017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7018 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7019 IFS="$lt_save_ifs"
7020 test -z "$ac_dir" && ac_dir=.
7021 tmp_nm="$ac_dir/$lt_tmp_nm"
7022 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7023 # Check to see if the nm accepts a BSD-compat flag.
7024 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7025 # nm: unknown option "B" ignored
7026 # Tru64's nm complains that /dev/null is an invalid object file
7027 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7028 */dev/null* | *'Invalid file or object type'*)
7029 lt_cv_path_NM="$tmp_nm -B"
7030 break
7033 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7034 */dev/null*)
7035 lt_cv_path_NM="$tmp_nm -p"
7036 break
7039 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7040 continue # so that we can try to find one that supports BSD flags
7042 esac
7044 esac
7046 done
7047 IFS="$lt_save_ifs"
7048 done
7049 : ${lt_cv_path_NM=no}
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7053 $as_echo "$lt_cv_path_NM" >&6; }
7054 if test "$lt_cv_path_NM" != "no"; then
7055 NM="$lt_cv_path_NM"
7056 else
7057 # Didn't find any BSD compatible name lister, look for dumpbin.
7058 if test -n "$DUMPBIN"; then :
7059 # Let the user override the test.
7060 else
7061 if test -n "$ac_tool_prefix"; then
7062 for ac_prog in dumpbin "link -dump"
7064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_DUMPBIN+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$DUMPBIN"; then
7072 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 DUMPBIN=$ac_cv_prog_DUMPBIN
7092 if test -n "$DUMPBIN"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7094 $as_echo "$DUMPBIN" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7101 test -n "$DUMPBIN" && break
7102 done
7104 if test -z "$DUMPBIN"; then
7105 ac_ct_DUMPBIN=$DUMPBIN
7106 for ac_prog in dumpbin "link -dump"
7108 # Extract the first word of "$ac_prog", so it can be a program name with args.
7109 set dummy $ac_prog; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_DUMPBIN"; then
7116 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7136 if test -n "$ac_ct_DUMPBIN"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7138 $as_echo "$ac_ct_DUMPBIN" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7145 test -n "$ac_ct_DUMPBIN" && break
7146 done
7148 if test "x$ac_ct_DUMPBIN" = x; then
7149 DUMPBIN=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 DUMPBIN=$ac_ct_DUMPBIN
7161 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7162 *COFF*)
7163 DUMPBIN="$DUMPBIN -symbols"
7166 DUMPBIN=:
7168 esac
7171 if test "$DUMPBIN" != ":"; then
7172 NM="$DUMPBIN"
7175 test -z "$NM" && NM=nm
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7183 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7184 if ${lt_cv_nm_interface+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 lt_cv_nm_interface="BSD nm"
7188 echo "int some_variable = 0;" > conftest.$ac_ext
7189 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7190 (eval "$ac_compile" 2>conftest.err)
7191 cat conftest.err >&5
7192 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7193 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7194 cat conftest.err >&5
7195 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7196 cat conftest.out >&5
7197 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7198 lt_cv_nm_interface="MS dumpbin"
7200 rm -f conftest*
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7203 $as_echo "$lt_cv_nm_interface" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7206 $as_echo_n "checking whether ln -s works... " >&6; }
7207 LN_S=$as_ln_s
7208 if test "$LN_S" = "ln -s"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7210 $as_echo "yes" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7213 $as_echo "no, using $LN_S" >&6; }
7216 # find the maximum length of command line arguments
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7218 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7219 if ${lt_cv_sys_max_cmd_len+:} false; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7223 teststring="ABCD"
7225 case $build_os in
7226 msdosdjgpp*)
7227 # On DJGPP, this test can blow up pretty badly due to problems in libc
7228 # (any single argument exceeding 2000 bytes causes a buffer overrun
7229 # during glob expansion). Even if it were fixed, the result of this
7230 # check would be larger than it should be.
7231 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7234 gnu*)
7235 # Under GNU Hurd, this test is not required because there is
7236 # no limit to the length of command line arguments.
7237 # Libtool will interpret -1 as no limit whatsoever
7238 lt_cv_sys_max_cmd_len=-1;
7241 cygwin* | mingw* | cegcc*)
7242 # On Win9x/ME, this test blows up -- it succeeds, but takes
7243 # about 5 minutes as the teststring grows exponentially.
7244 # Worse, since 9x/ME are not pre-emptively multitasking,
7245 # you end up with a "frozen" computer, even though with patience
7246 # the test eventually succeeds (with a max line length of 256k).
7247 # Instead, let's just punt: use the minimum linelength reported by
7248 # all of the supported platforms: 8192 (on NT/2K/XP).
7249 lt_cv_sys_max_cmd_len=8192;
7252 mint*)
7253 # On MiNT this can take a long time and run out of memory.
7254 lt_cv_sys_max_cmd_len=8192;
7257 amigaos*)
7258 # On AmigaOS with pdksh, this test takes hours, literally.
7259 # So we just punt and use a minimum line length of 8192.
7260 lt_cv_sys_max_cmd_len=8192;
7263 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7264 # This has been around since 386BSD, at least. Likely further.
7265 if test -x /sbin/sysctl; then
7266 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7267 elif test -x /usr/sbin/sysctl; then
7268 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7269 else
7270 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7272 # And add a safety zone
7273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7277 interix*)
7278 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7279 lt_cv_sys_max_cmd_len=196608
7282 osf*)
7283 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7284 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7285 # nice to cause kernel panics so lets avoid the loop below.
7286 # First set a reasonable default.
7287 lt_cv_sys_max_cmd_len=16384
7289 if test -x /sbin/sysconfig; then
7290 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7291 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7292 esac
7295 sco3.2v5*)
7296 lt_cv_sys_max_cmd_len=102400
7298 sysv5* | sco5v6* | sysv4.2uw2*)
7299 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7300 if test -n "$kargmax"; then
7301 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7302 else
7303 lt_cv_sys_max_cmd_len=32768
7307 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7308 if test -n "$lt_cv_sys_max_cmd_len"; then
7309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7311 else
7312 # Make teststring a little bigger before we do anything with it.
7313 # a 1K string should be a reasonable start.
7314 for i in 1 2 3 4 5 6 7 8 ; do
7315 teststring=$teststring$teststring
7316 done
7317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7318 # If test is not a shell built-in, we'll probably end up computing a
7319 # maximum length that is only half of the actual maximum length, but
7320 # we can't tell.
7321 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7322 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7323 test $i != 17 # 1/2 MB should be enough
7325 i=`expr $i + 1`
7326 teststring=$teststring$teststring
7327 done
7328 # Only check the string length outside the loop.
7329 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7330 teststring=
7331 # Add a significant safety factor because C++ compilers can tack on
7332 # massive amounts of additional arguments before passing them to the
7333 # linker. It appears as though 1/2 is a usable value.
7334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7337 esac
7341 if test -n $lt_cv_sys_max_cmd_len ; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7343 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7346 $as_echo "none" >&6; }
7348 max_cmd_len=$lt_cv_sys_max_cmd_len
7355 : ${CP="cp -f"}
7356 : ${MV="mv -f"}
7357 : ${RM="rm -f"}
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7360 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7361 # Try some XSI features
7362 xsi_shell=no
7363 ( _lt_dummy="a/b/c"
7364 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7365 = c,a/b,, \
7366 && eval 'test $(( 1 + 1 )) -eq 2 \
7367 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7368 && xsi_shell=yes
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7370 $as_echo "$xsi_shell" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7374 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7375 lt_shell_append=no
7376 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7377 >/dev/null 2>&1 \
7378 && lt_shell_append=yes
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7380 $as_echo "$lt_shell_append" >&6; }
7383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7384 lt_unset=unset
7385 else
7386 lt_unset=false
7393 # test EBCDIC or ASCII
7394 case `echo X|tr X '\101'` in
7395 A) # ASCII based system
7396 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7397 lt_SP2NL='tr \040 \012'
7398 lt_NL2SP='tr \015\012 \040\040'
7400 *) # EBCDIC based system
7401 lt_SP2NL='tr \100 \n'
7402 lt_NL2SP='tr \r\n \100\100'
7404 esac
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7416 if ${lt_cv_ld_reload_flag+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 lt_cv_ld_reload_flag='-r'
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7423 reload_flag=$lt_cv_ld_reload_flag
7424 case $reload_flag in
7425 "" | " "*) ;;
7426 *) reload_flag=" $reload_flag" ;;
7427 esac
7428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7429 case $host_os in
7430 darwin*)
7431 if test "$GCC" = yes; then
7432 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7433 else
7434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7437 esac
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_OBJDUMP+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$OBJDUMP"; then
7456 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 OBJDUMP=$ac_cv_prog_OBJDUMP
7476 if test -n "$OBJDUMP"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7478 $as_echo "$OBJDUMP" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7486 if test -z "$ac_cv_prog_OBJDUMP"; then
7487 ac_ct_OBJDUMP=$OBJDUMP
7488 # Extract the first word of "objdump", so it can be a program name with args.
7489 set dummy objdump; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 if test -n "$ac_ct_OBJDUMP"; then
7496 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7509 done
7510 done
7511 IFS=$as_save_IFS
7515 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7516 if test -n "$ac_ct_OBJDUMP"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7518 $as_echo "$ac_ct_OBJDUMP" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7524 if test "x$ac_ct_OBJDUMP" = x; then
7525 OBJDUMP="false"
7526 else
7527 case $cross_compiling:$ac_tool_warned in
7528 yes:)
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7531 ac_tool_warned=yes ;;
7532 esac
7533 OBJDUMP=$ac_ct_OBJDUMP
7535 else
7536 OBJDUMP="$ac_cv_prog_OBJDUMP"
7539 test -z "$OBJDUMP" && OBJDUMP=objdump
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7550 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7551 if ${lt_cv_deplibs_check_method+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 lt_cv_file_magic_cmd='$MAGIC_CMD'
7555 lt_cv_file_magic_test_file=
7556 lt_cv_deplibs_check_method='unknown'
7557 # Need to set the preceding variable on all platforms that support
7558 # interlibrary dependencies.
7559 # 'none' -- dependencies not supported.
7560 # `unknown' -- same as none, but documents that we really don't know.
7561 # 'pass_all' -- all dependencies passed with no checks.
7562 # 'test_compile' -- check by making test program.
7563 # 'file_magic [[regex]]' -- check by looking for files in library path
7564 # which responds to the $file_magic_cmd with a given extended regex.
7565 # If you have `file' or equivalent on your system and you're not sure
7566 # whether `pass_all' will *always* work, you probably want this one.
7568 case $host_os in
7569 aix[4-9]*)
7570 lt_cv_deplibs_check_method=pass_all
7573 beos*)
7574 lt_cv_deplibs_check_method=pass_all
7577 bsdi[45]*)
7578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7579 lt_cv_file_magic_cmd='/usr/bin/file -L'
7580 lt_cv_file_magic_test_file=/shlib/libc.so
7583 cygwin*)
7584 # func_win32_libid is a shell function defined in ltmain.sh
7585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7586 lt_cv_file_magic_cmd='func_win32_libid'
7589 mingw* | pw32*)
7590 # Base MSYS/MinGW do not provide the 'file' command needed by
7591 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7592 # unless we find 'file', for example because we are cross-compiling.
7593 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7594 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7596 lt_cv_file_magic_cmd='func_win32_libid'
7597 else
7598 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7599 lt_cv_file_magic_cmd='$OBJDUMP -f'
7603 cegcc*)
7604 # use the weaker test based on 'objdump'. See mingw*.
7605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7606 lt_cv_file_magic_cmd='$OBJDUMP -f'
7609 darwin* | rhapsody*)
7610 lt_cv_deplibs_check_method=pass_all
7613 freebsd* | dragonfly*)
7614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7615 case $host_cpu in
7616 i*86 )
7617 # Not sure whether the presence of OpenBSD here was a mistake.
7618 # Let's accept both of them until this is cleared up.
7619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7620 lt_cv_file_magic_cmd=/usr/bin/file
7621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7623 esac
7624 else
7625 lt_cv_deplibs_check_method=pass_all
7629 gnu*)
7630 lt_cv_deplibs_check_method=pass_all
7633 haiku*)
7634 lt_cv_deplibs_check_method=pass_all
7637 hpux10.20* | hpux11*)
7638 lt_cv_file_magic_cmd=/usr/bin/file
7639 case $host_cpu in
7640 ia64*)
7641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7644 hppa*64*)
7645 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]'
7646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7652 esac
7655 interix[3-9]*)
7656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7660 irix5* | irix6* | nonstopux*)
7661 case $LD in
7662 *-32|*"-32 ") libmagic=32-bit;;
7663 *-n32|*"-n32 ") libmagic=N32;;
7664 *-64|*"-64 ") libmagic=64-bit;;
7665 *) libmagic=never-match;;
7666 esac
7667 lt_cv_deplibs_check_method=pass_all
7670 # This must be Linux ELF.
7671 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7672 lt_cv_deplibs_check_method=pass_all
7675 netbsd*)
7676 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7678 else
7679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7683 newos6*)
7684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7685 lt_cv_file_magic_cmd=/usr/bin/file
7686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7689 *nto* | *qnx*)
7690 lt_cv_deplibs_check_method=pass_all
7693 openbsd*)
7694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7696 else
7697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7701 osf3* | osf4* | osf5*)
7702 lt_cv_deplibs_check_method=pass_all
7705 rdos*)
7706 lt_cv_deplibs_check_method=pass_all
7709 solaris*)
7710 lt_cv_deplibs_check_method=pass_all
7713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7714 lt_cv_deplibs_check_method=pass_all
7717 sysv4 | sysv4.3*)
7718 case $host_vendor in
7719 motorola)
7720 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]'
7721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7723 ncr)
7724 lt_cv_deplibs_check_method=pass_all
7726 sequent)
7727 lt_cv_file_magic_cmd='/bin/file'
7728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7730 sni)
7731 lt_cv_file_magic_cmd='/bin/file'
7732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7733 lt_cv_file_magic_test_file=/lib/libc.so
7735 siemens)
7736 lt_cv_deplibs_check_method=pass_all
7739 lt_cv_deplibs_check_method=pass_all
7741 esac
7744 tpf*)
7745 lt_cv_deplibs_check_method=pass_all
7747 esac
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7751 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7752 file_magic_cmd=$lt_cv_file_magic_cmd
7753 deplibs_check_method=$lt_cv_deplibs_check_method
7754 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7767 if test -n "$ac_tool_prefix"; then
7768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7769 set dummy ${ac_tool_prefix}ar; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_prog_AR+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$AR"; then
7776 ac_cv_prog_AR="$AR" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_AR="${ac_tool_prefix}ar"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7791 IFS=$as_save_IFS
7795 AR=$ac_cv_prog_AR
7796 if test -n "$AR"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7798 $as_echo "$AR" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7806 if test -z "$ac_cv_prog_AR"; then
7807 ac_ct_AR=$AR
7808 # Extract the first word of "ar", so it can be a program name with args.
7809 set dummy ar; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$ac_ct_AR"; then
7816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_ac_ct_AR="ar"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7829 done
7830 done
7831 IFS=$as_save_IFS
7835 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7836 if test -n "$ac_ct_AR"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7838 $as_echo "$ac_ct_AR" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7844 if test "x$ac_ct_AR" = x; then
7845 AR="false"
7846 else
7847 case $cross_compiling:$ac_tool_warned in
7848 yes:)
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851 ac_tool_warned=yes ;;
7852 esac
7853 AR=$ac_ct_AR
7855 else
7856 AR="$ac_cv_prog_AR"
7859 test -z "$AR" && AR=ar
7860 test -z "$AR_FLAGS" && AR_FLAGS=cru
7872 if test -n "$ac_tool_prefix"; then
7873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7874 set dummy ${ac_tool_prefix}strip; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if ${ac_cv_prog_STRIP+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$STRIP"; then
7881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7894 done
7895 done
7896 IFS=$as_save_IFS
7900 STRIP=$ac_cv_prog_STRIP
7901 if test -n "$STRIP"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7903 $as_echo "$STRIP" >&6; }
7904 else
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7911 if test -z "$ac_cv_prog_STRIP"; then
7912 ac_ct_STRIP=$STRIP
7913 # Extract the first word of "strip", so it can be a program name with args.
7914 set dummy strip; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test -n "$ac_ct_STRIP"; then
7921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_ac_ct_STRIP="strip"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7934 done
7935 done
7936 IFS=$as_save_IFS
7940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7941 if test -n "$ac_ct_STRIP"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7943 $as_echo "$ac_ct_STRIP" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7949 if test "x$ac_ct_STRIP" = x; then
7950 STRIP=":"
7951 else
7952 case $cross_compiling:$ac_tool_warned in
7953 yes:)
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7956 ac_tool_warned=yes ;;
7957 esac
7958 STRIP=$ac_ct_STRIP
7960 else
7961 STRIP="$ac_cv_prog_STRIP"
7964 test -z "$STRIP" && STRIP=:
7971 if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_prog_RANLIB+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$RANLIB"; then
7980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7999 RANLIB=$ac_cv_prog_RANLIB
8000 if test -n "$RANLIB"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8002 $as_echo "$RANLIB" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8010 if test -z "$ac_cv_prog_RANLIB"; then
8011 ac_ct_RANLIB=$RANLIB
8012 # Extract the first word of "ranlib", so it can be a program name with args.
8013 set dummy ranlib; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$ac_ct_RANLIB"; then
8020 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_RANLIB="ranlib"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8039 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8040 if test -n "$ac_ct_RANLIB"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8042 $as_echo "$ac_ct_RANLIB" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8048 if test "x$ac_ct_RANLIB" = x; then
8049 RANLIB=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 RANLIB=$ac_ct_RANLIB
8059 else
8060 RANLIB="$ac_cv_prog_RANLIB"
8063 test -z "$RANLIB" && RANLIB=:
8070 # Determine commands to create old-style static archives.
8071 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8072 old_postinstall_cmds='chmod 644 $oldlib'
8073 old_postuninstall_cmds=
8075 if test -n "$RANLIB"; then
8076 case $host_os in
8077 openbsd*)
8078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8083 esac
8084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8087 case $host_os in
8088 darwin*)
8089 lock_old_archive_extraction=yes ;;
8091 lock_old_archive_extraction=no ;;
8092 esac
8132 # If no C compiler was specified, use CC.
8133 LTCC=${LTCC-"$CC"}
8135 # If no C compiler flags were specified, use CFLAGS.
8136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8138 # Allow CC to be a program name with arguments.
8139 compiler=$CC
8142 # Check for command to grab the raw symbol name followed by C symbol from nm.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8144 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8145 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8149 # These are sane defaults that work on at least a few old systems.
8150 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8152 # Character class describing NM global symbol codes.
8153 symcode='[BCDEGRST]'
8155 # Regexp to match symbols that can be accessed directly from C.
8156 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8158 # Define system-specific variables.
8159 case $host_os in
8160 aix*)
8161 symcode='[BCDT]'
8163 cygwin* | mingw* | pw32* | cegcc*)
8164 symcode='[ABCDGISTW]'
8166 hpux*)
8167 if test "$host_cpu" = ia64; then
8168 symcode='[ABCDEGRST]'
8171 irix* | nonstopux*)
8172 symcode='[BCDEGRST]'
8174 osf*)
8175 symcode='[BCDEGQRST]'
8177 solaris*)
8178 symcode='[BDRT]'
8180 sco3.2v5*)
8181 symcode='[DT]'
8183 sysv4.2uw2*)
8184 symcode='[DT]'
8186 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8187 symcode='[ABDT]'
8189 sysv4)
8190 symcode='[DFNSTU]'
8192 esac
8194 # If we're using GNU nm, then use its standard symbol codes.
8195 case `$NM -V 2>&1` in
8196 *GNU* | *'with BFD'*)
8197 symcode='[ABCDGIRSTW]' ;;
8198 esac
8200 # Transform an extracted symbol line into a proper C declaration.
8201 # Some systems (esp. on ia64) link data and code symbols differently,
8202 # so use this general approach.
8203 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8205 # Transform an extracted symbol line into symbol name and symbol address
8206 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8207 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'"
8209 # Handle CRLF in mingw tool chain
8210 opt_cr=
8211 case $build_os in
8212 mingw*)
8213 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8215 esac
8217 # Try without a prefix underscore, then with it.
8218 for ac_symprfx in "" "_"; do
8220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8221 symxfrm="\\1 $ac_symprfx\\2 \\2"
8223 # Write the raw and C identifiers.
8224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8225 # Fake it for dumpbin and say T for any non-static function
8226 # and D for any global variable.
8227 # Also find C++ and __fastcall symbols from MSVC++,
8228 # which start with @ or ?.
8229 lt_cv_sys_global_symbol_pipe="$AWK '"\
8230 " {last_section=section; section=\$ 3};"\
8231 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8232 " \$ 0!~/External *\|/{next};"\
8233 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8234 " {if(hide[section]) next};"\
8235 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8236 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8237 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8238 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8239 " ' prfx=^$ac_symprfx"
8240 else
8241 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8244 # Check to see that the pipe works correctly.
8245 pipe_works=no
8247 rm -f conftest*
8248 cat > conftest.$ac_ext <<_LT_EOF
8249 #ifdef __cplusplus
8250 extern "C" {
8251 #endif
8252 char nm_test_var;
8253 void nm_test_func(void);
8254 void nm_test_func(void){}
8255 #ifdef __cplusplus
8257 #endif
8258 int main(){nm_test_var='a';nm_test_func();return(0);}
8259 _LT_EOF
8261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8262 (eval $ac_compile) 2>&5
8263 ac_status=$?
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; }; then
8266 # Now try to grab the symbols.
8267 nlist=conftest.nm
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8269 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8270 ac_status=$?
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; } && test -s "$nlist"; then
8273 # Try sorting and uniquifying the output.
8274 if sort "$nlist" | uniq > "$nlist"T; then
8275 mv -f "$nlist"T "$nlist"
8276 else
8277 rm -f "$nlist"T
8280 # Make sure that we snagged all the symbols we need.
8281 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8282 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8283 cat <<_LT_EOF > conftest.$ac_ext
8284 #ifdef __cplusplus
8285 extern "C" {
8286 #endif
8288 _LT_EOF
8289 # Now generate the symbol file.
8290 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8292 cat <<_LT_EOF >> conftest.$ac_ext
8294 /* The mapping between symbol names and symbols. */
8295 const struct {
8296 const char *name;
8297 void *address;
8299 lt__PROGRAM__LTX_preloaded_symbols[] =
8301 { "@PROGRAM@", (void *) 0 },
8302 _LT_EOF
8303 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8304 cat <<\_LT_EOF >> conftest.$ac_ext
8305 {0, (void *) 0}
8308 /* This works around a problem in FreeBSD linker */
8309 #ifdef FREEBSD_WORKAROUND
8310 static const void *lt_preloaded_setup() {
8311 return lt__PROGRAM__LTX_preloaded_symbols;
8313 #endif
8315 #ifdef __cplusplus
8317 #endif
8318 _LT_EOF
8319 # Now try linking the two files.
8320 mv conftest.$ac_objext conftstm.$ac_objext
8321 lt_save_LIBS="$LIBS"
8322 lt_save_CFLAGS="$CFLAGS"
8323 LIBS="conftstm.$ac_objext"
8324 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8326 (eval $ac_link) 2>&5
8327 ac_status=$?
8328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8329 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8330 pipe_works=yes
8332 LIBS="$lt_save_LIBS"
8333 CFLAGS="$lt_save_CFLAGS"
8334 else
8335 echo "cannot find nm_test_func in $nlist" >&5
8337 else
8338 echo "cannot find nm_test_var in $nlist" >&5
8340 else
8341 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8343 else
8344 echo "$progname: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 rm -rf conftest* conftst*
8349 # Do not use the global_symbol_pipe unless it works.
8350 if test "$pipe_works" = yes; then
8351 break
8352 else
8353 lt_cv_sys_global_symbol_pipe=
8355 done
8359 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8360 lt_cv_sys_global_symbol_to_cdecl=
8362 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8364 $as_echo "failed" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8367 $as_echo "ok" >&6; }
8391 # Check whether --enable-libtool-lock was given.
8392 if test "${enable_libtool_lock+set}" = set; then :
8393 enableval=$enable_libtool_lock;
8396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8398 # Some flags need to be propagated to the compiler or linker for good
8399 # libtool support.
8400 case $host in
8401 ia64-*-hpux*)
8402 # Find out which ABI we are using.
8403 echo 'int i;' > conftest.$ac_ext
8404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8405 (eval $ac_compile) 2>&5
8406 ac_status=$?
8407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8408 test $ac_status = 0; }; then
8409 case `/usr/bin/file conftest.$ac_objext` in
8410 *ELF-32*)
8411 HPUX_IA64_MODE="32"
8413 *ELF-64*)
8414 HPUX_IA64_MODE="64"
8416 esac
8418 rm -rf conftest*
8420 *-*-irix6*)
8421 # Find out which ABI we are using.
8422 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8424 (eval $ac_compile) 2>&5
8425 ac_status=$?
8426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427 test $ac_status = 0; }; then
8428 if test "$lt_cv_prog_gnu_ld" = yes; then
8429 case `/usr/bin/file conftest.$ac_objext` in
8430 *32-bit*)
8431 LD="${LD-ld} -melf32bsmip"
8433 *N32*)
8434 LD="${LD-ld} -melf32bmipn32"
8436 *64-bit*)
8437 LD="${LD-ld} -melf64bmip"
8439 esac
8440 else
8441 case `/usr/bin/file conftest.$ac_objext` in
8442 *32-bit*)
8443 LD="${LD-ld} -32"
8445 *N32*)
8446 LD="${LD-ld} -n32"
8448 *64-bit*)
8449 LD="${LD-ld} -64"
8451 esac
8454 rm -rf conftest*
8457 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8458 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8459 # Find out which ABI we are using.
8460 echo 'int i;' > conftest.$ac_ext
8461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8462 (eval $ac_compile) 2>&5
8463 ac_status=$?
8464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465 test $ac_status = 0; }; then
8466 case `/usr/bin/file conftest.o` in
8467 *32-bit*)
8468 case $host in
8469 x86_64-*kfreebsd*-gnu)
8470 LD="${LD-ld} -m elf_i386_fbsd"
8472 x86_64-*linux*)
8473 case `/usr/bin/file conftest.o` in
8474 *x86-64*)
8475 LD="${LD-ld} -m elf32_x86_64"
8478 LD="${LD-ld} -m elf_i386"
8480 esac
8482 powerpc64le-*linux*)
8483 LD="${LD-ld} -m elf32lppclinux"
8485 powerpc64-*linux*)
8486 LD="${LD-ld} -m elf32ppclinux"
8488 s390x-*linux*)
8489 LD="${LD-ld} -m elf_s390"
8491 sparc64-*linux*)
8492 LD="${LD-ld} -m elf32_sparc"
8494 esac
8496 *64-bit*)
8497 case $host in
8498 x86_64-*kfreebsd*-gnu)
8499 LD="${LD-ld} -m elf_x86_64_fbsd"
8501 x86_64-*linux*)
8502 LD="${LD-ld} -m elf_x86_64"
8504 powerpcle-*linux*)
8505 LD="${LD-ld} -m elf64lppc"
8507 powerpc-*linux*)
8508 LD="${LD-ld} -m elf64ppc"
8510 s390*-*linux*|s390*-*tpf*)
8511 LD="${LD-ld} -m elf64_s390"
8513 sparc*-*linux*)
8514 LD="${LD-ld} -m elf64_sparc"
8516 esac
8518 esac
8520 rm -rf conftest*
8523 *-*-sco3.2v5*)
8524 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8525 SAVE_CFLAGS="$CFLAGS"
8526 CFLAGS="$CFLAGS -belf"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8528 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8529 if ${lt_cv_cc_needs_belf+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 ac_ext=c
8533 ac_cpp='$CPP $CPPFLAGS'
8534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538 if test x$gcc_no_link = xyes; then
8539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8545 main ()
8549 return 0;
8551 _ACEOF
8552 if ac_fn_c_try_link "$LINENO"; then :
8553 lt_cv_cc_needs_belf=yes
8554 else
8555 lt_cv_cc_needs_belf=no
8557 rm -f core conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559 ac_ext=c
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8567 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8568 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8569 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8570 CFLAGS="$SAVE_CFLAGS"
8573 sparc*-*solaris*)
8574 # Find out which ABI we are using.
8575 echo 'int i;' > conftest.$ac_ext
8576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8577 (eval $ac_compile) 2>&5
8578 ac_status=$?
8579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580 test $ac_status = 0; }; then
8581 case `/usr/bin/file conftest.o` in
8582 *64-bit*)
8583 case $lt_cv_prog_gnu_ld in
8584 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8586 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8587 LD="${LD-ld} -64"
8590 esac
8592 esac
8594 rm -rf conftest*
8596 esac
8598 need_locks="$enable_libtool_lock"
8601 case $host_os in
8602 rhapsody* | darwin*)
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8605 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 if test -n "$DSYMUTIL"; then
8612 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8613 else
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8625 done
8626 done
8627 IFS=$as_save_IFS
8631 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8632 if test -n "$DSYMUTIL"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8634 $as_echo "$DSYMUTIL" >&6; }
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8642 if test -z "$ac_cv_prog_DSYMUTIL"; then
8643 ac_ct_DSYMUTIL=$DSYMUTIL
8644 # Extract the first word of "dsymutil", so it can be a program name with args.
8645 set dummy dsymutil; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$ac_ct_DSYMUTIL"; then
8652 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8665 done
8666 done
8667 IFS=$as_save_IFS
8671 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8672 if test -n "$ac_ct_DSYMUTIL"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8674 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8680 if test "x$ac_ct_DSYMUTIL" = x; then
8681 DSYMUTIL=":"
8682 else
8683 case $cross_compiling:$ac_tool_warned in
8684 yes:)
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687 ac_tool_warned=yes ;;
8688 esac
8689 DSYMUTIL=$ac_ct_DSYMUTIL
8691 else
8692 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8695 if test -n "$ac_tool_prefix"; then
8696 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8697 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_NMEDIT+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 if test -n "$NMEDIT"; then
8704 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8717 done
8718 done
8719 IFS=$as_save_IFS
8723 NMEDIT=$ac_cv_prog_NMEDIT
8724 if test -n "$NMEDIT"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8726 $as_echo "$NMEDIT" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8734 if test -z "$ac_cv_prog_NMEDIT"; then
8735 ac_ct_NMEDIT=$NMEDIT
8736 # Extract the first word of "nmedit", so it can be a program name with args.
8737 set dummy nmedit; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$ac_ct_NMEDIT"; then
8744 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8757 done
8758 done
8759 IFS=$as_save_IFS
8763 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8764 if test -n "$ac_ct_NMEDIT"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8766 $as_echo "$ac_ct_NMEDIT" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8772 if test "x$ac_ct_NMEDIT" = x; then
8773 NMEDIT=":"
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776 yes:)
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8780 esac
8781 NMEDIT=$ac_ct_NMEDIT
8783 else
8784 NMEDIT="$ac_cv_prog_NMEDIT"
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_LIPO+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 if test -n "$LIPO"; then
8796 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 break 2
8809 done
8810 done
8811 IFS=$as_save_IFS
8815 LIPO=$ac_cv_prog_LIPO
8816 if test -n "$LIPO"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8818 $as_echo "$LIPO" >&6; }
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8826 if test -z "$ac_cv_prog_LIPO"; then
8827 ac_ct_LIPO=$LIPO
8828 # Extract the first word of "lipo", so it can be a program name with args.
8829 set dummy lipo; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$ac_ct_LIPO"; then
8836 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_ac_ct_LIPO="lipo"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8855 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8856 if test -n "$ac_ct_LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8858 $as_echo "$ac_ct_LIPO" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8864 if test "x$ac_ct_LIPO" = x; then
8865 LIPO=":"
8866 else
8867 case $cross_compiling:$ac_tool_warned in
8868 yes:)
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871 ac_tool_warned=yes ;;
8872 esac
8873 LIPO=$ac_ct_LIPO
8875 else
8876 LIPO="$ac_cv_prog_LIPO"
8879 if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8881 set dummy ${ac_tool_prefix}otool; ac_word=$2
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883 $as_echo_n "checking for $ac_word... " >&6; }
8884 if ${ac_cv_prog_OTOOL+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 if test -n "$OTOOL"; then
8888 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8889 else
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8901 done
8902 done
8903 IFS=$as_save_IFS
8907 OTOOL=$ac_cv_prog_OTOOL
8908 if test -n "$OTOOL"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8910 $as_echo "$OTOOL" >&6; }
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8918 if test -z "$ac_cv_prog_OTOOL"; then
8919 ac_ct_OTOOL=$OTOOL
8920 # Extract the first word of "otool", so it can be a program name with args.
8921 set dummy otool; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 if test -n "$ac_ct_OTOOL"; then
8928 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937 ac_cv_prog_ac_ct_OTOOL="otool"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8941 done
8942 done
8943 IFS=$as_save_IFS
8947 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8948 if test -n "$ac_ct_OTOOL"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8950 $as_echo "$ac_ct_OTOOL" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8956 if test "x$ac_ct_OTOOL" = x; then
8957 OTOOL=":"
8958 else
8959 case $cross_compiling:$ac_tool_warned in
8960 yes:)
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963 ac_tool_warned=yes ;;
8964 esac
8965 OTOOL=$ac_ct_OTOOL
8967 else
8968 OTOOL="$ac_cv_prog_OTOOL"
8971 if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8973 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975 $as_echo_n "checking for $ac_word... " >&6; }
8976 if ${ac_cv_prog_OTOOL64+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 if test -n "$OTOOL64"; then
8980 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8981 else
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8993 done
8994 done
8995 IFS=$as_save_IFS
8999 OTOOL64=$ac_cv_prog_OTOOL64
9000 if test -n "$OTOOL64"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9002 $as_echo "$OTOOL64" >&6; }
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9010 if test -z "$ac_cv_prog_OTOOL64"; then
9011 ac_ct_OTOOL64=$OTOOL64
9012 # Extract the first word of "otool64", so it can be a program name with args.
9013 set dummy otool64; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$ac_ct_OTOOL64"; then
9020 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9029 ac_cv_prog_ac_ct_OTOOL64="otool64"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9033 done
9034 done
9035 IFS=$as_save_IFS
9039 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9040 if test -n "$ac_ct_OTOOL64"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9042 $as_echo "$ac_ct_OTOOL64" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9048 if test "x$ac_ct_OTOOL64" = x; then
9049 OTOOL64=":"
9050 else
9051 case $cross_compiling:$ac_tool_warned in
9052 yes:)
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9055 ac_tool_warned=yes ;;
9056 esac
9057 OTOOL64=$ac_ct_OTOOL64
9059 else
9060 OTOOL64="$ac_cv_prog_OTOOL64"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9090 $as_echo_n "checking for -single_module linker flag... " >&6; }
9091 if ${lt_cv_apple_cc_single_mod+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 lt_cv_apple_cc_single_mod=no
9095 if test -z "${LT_MULTI_MODULE}"; then
9096 # By default we will add the -single_module flag. You can override
9097 # by either setting the environment variable LT_MULTI_MODULE
9098 # non-empty at configure time, or by adding -multi_module to the
9099 # link flags.
9100 rm -rf libconftest.dylib*
9101 echo "int foo(void){return 1;}" > conftest.c
9102 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9103 -dynamiclib -Wl,-single_module conftest.c" >&5
9104 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9105 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9106 _lt_result=$?
9107 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9108 lt_cv_apple_cc_single_mod=yes
9109 else
9110 cat conftest.err >&5
9112 rm -rf libconftest.dylib*
9113 rm -f conftest.*
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9117 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9119 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9120 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 lt_cv_ld_exported_symbols_list=no
9124 save_LDFLAGS=$LDFLAGS
9125 echo "_main" > conftest.sym
9126 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9127 if test x$gcc_no_link = xyes; then
9128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9134 main ()
9138 return 0;
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 lt_cv_ld_exported_symbols_list=yes
9143 else
9144 lt_cv_ld_exported_symbols_list=no
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LDFLAGS="$save_LDFLAGS"
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9152 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9154 $as_echo_n "checking for -force_load linker flag... " >&6; }
9155 if ${lt_cv_ld_force_load+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 lt_cv_ld_force_load=no
9159 cat > conftest.c << _LT_EOF
9160 int forced_loaded() { return 2;}
9161 _LT_EOF
9162 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9163 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9164 echo "$AR cru libconftest.a conftest.o" >&5
9165 $AR cru libconftest.a conftest.o 2>&5
9166 cat > conftest.c << _LT_EOF
9167 int main() { return 0;}
9168 _LT_EOF
9169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9171 _lt_result=$?
9172 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9173 lt_cv_ld_force_load=yes
9174 else
9175 cat conftest.err >&5
9177 rm -f conftest.err libconftest.a conftest conftest.c
9178 rm -rf conftest.dSYM
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9182 $as_echo "$lt_cv_ld_force_load" >&6; }
9183 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9184 # build without first building modern cctools / linker.
9185 case $host_cpu-$host_os in
9186 *-rhapsody* | *-darwin1.[012])
9187 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9188 *-darwin1.*)
9189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9190 *-darwin*)
9191 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9192 # deployment target is forced to an earlier version.
9193 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9194 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9196 10.[012][,.]*)
9197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9201 esac
9203 esac
9204 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9205 _lt_dar_single_mod='$single_module'
9207 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9208 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9209 else
9210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9212 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9213 _lt_dsymutil='~$DSYMUTIL $lib || :'
9214 else
9215 _lt_dsymutil=
9218 esac
9220 for ac_header in dlfcn.h
9221 do :
9222 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9224 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9225 cat >>confdefs.h <<_ACEOF
9226 #define HAVE_DLFCN_H 1
9227 _ACEOF
9231 done
9237 # Set options
9242 enable_win32_dll=no
9245 # Check whether --enable-shared was given.
9246 if test "${enable_shared+set}" = set; then :
9247 enableval=$enable_shared; p=${PACKAGE-default}
9248 case $enableval in
9249 yes) enable_shared=yes ;;
9250 no) enable_shared=no ;;
9252 enable_shared=no
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255 for pkg in $enableval; do
9256 IFS="$lt_save_ifs"
9257 if test "X$pkg" = "X$p"; then
9258 enable_shared=yes
9260 done
9261 IFS="$lt_save_ifs"
9263 esac
9264 else
9265 enable_shared=yes
9276 # Check whether --enable-static was given.
9277 if test "${enable_static+set}" = set; then :
9278 enableval=$enable_static; p=${PACKAGE-default}
9279 case $enableval in
9280 yes) enable_static=yes ;;
9281 no) enable_static=no ;;
9283 enable_static=no
9284 # Look at the argument we got. We use all the common list separators.
9285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9286 for pkg in $enableval; do
9287 IFS="$lt_save_ifs"
9288 if test "X$pkg" = "X$p"; then
9289 enable_static=yes
9291 done
9292 IFS="$lt_save_ifs"
9294 esac
9295 else
9296 enable_static=yes
9308 # Check whether --with-pic was given.
9309 if test "${with_pic+set}" = set; then :
9310 withval=$with_pic; pic_mode="$withval"
9311 else
9312 pic_mode=default
9316 test -z "$pic_mode" && pic_mode=default
9324 # Check whether --enable-fast-install was given.
9325 if test "${enable_fast_install+set}" = set; then :
9326 enableval=$enable_fast_install; p=${PACKAGE-default}
9327 case $enableval in
9328 yes) enable_fast_install=yes ;;
9329 no) enable_fast_install=no ;;
9331 enable_fast_install=no
9332 # Look at the argument we got. We use all the common list separators.
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for pkg in $enableval; do
9335 IFS="$lt_save_ifs"
9336 if test "X$pkg" = "X$p"; then
9337 enable_fast_install=yes
9339 done
9340 IFS="$lt_save_ifs"
9342 esac
9343 else
9344 enable_fast_install=yes
9357 # This can be used to rebuild libtool when needed
9358 LIBTOOL_DEPS="$ltmain"
9360 # Always use our own libtool.
9361 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9388 test -z "$LN_S" && LN_S="ln -s"
9403 if test -n "${ZSH_VERSION+set}" ; then
9404 setopt NO_GLOB_SUBST
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9408 $as_echo_n "checking for objdir... " >&6; }
9409 if ${lt_cv_objdir+:} false; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 rm -f .libs 2>/dev/null
9413 mkdir .libs 2>/dev/null
9414 if test -d .libs; then
9415 lt_cv_objdir=.libs
9416 else
9417 # MS-DOS does not allow filenames that begin with a dot.
9418 lt_cv_objdir=_libs
9420 rmdir .libs 2>/dev/null
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9423 $as_echo "$lt_cv_objdir" >&6; }
9424 objdir=$lt_cv_objdir
9430 cat >>confdefs.h <<_ACEOF
9431 #define LT_OBJDIR "$lt_cv_objdir/"
9432 _ACEOF
9437 case $host_os in
9438 aix3*)
9439 # AIX sometimes has problems with the GCC collect2 program. For some
9440 # reason, if we set the COLLECT_NAMES environment variable, the problems
9441 # vanish in a puff of smoke.
9442 if test "X${COLLECT_NAMES+set}" != Xset; then
9443 COLLECT_NAMES=
9444 export COLLECT_NAMES
9447 esac
9449 # Global variables:
9450 ofile=libtool
9451 can_build_shared=yes
9453 # All known linkers require a `.a' archive for static linking (except MSVC,
9454 # which needs '.lib').
9455 libext=a
9457 with_gnu_ld="$lt_cv_prog_gnu_ld"
9459 old_CC="$CC"
9460 old_CFLAGS="$CFLAGS"
9462 # Set sane defaults for various variables
9463 test -z "$CC" && CC=cc
9464 test -z "$LTCC" && LTCC=$CC
9465 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9466 test -z "$LD" && LD=ld
9467 test -z "$ac_objext" && ac_objext=o
9469 for cc_temp in $compiler""; do
9470 case $cc_temp in
9471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9473 \-*) ;;
9474 *) break;;
9475 esac
9476 done
9477 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9480 # Only perform the check for file, if the check method requires it
9481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9482 case $deplibs_check_method in
9483 file_magic*)
9484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9486 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9487 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 case $MAGIC_CMD in
9491 [\\/*] | ?:[\\/]*)
9492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9495 lt_save_MAGIC_CMD="$MAGIC_CMD"
9496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9498 for ac_dir in $ac_dummy; do
9499 IFS="$lt_save_ifs"
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f $ac_dir/${ac_tool_prefix}file; then
9502 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9503 if test -n "$file_magic_test_file"; then
9504 case $deplibs_check_method in
9505 "file_magic "*)
9506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9509 $EGREP "$file_magic_regex" > /dev/null; then
9511 else
9512 cat <<_LT_EOF 1>&2
9514 *** Warning: the command libtool uses to detect shared libraries,
9515 *** $file_magic_cmd, produces output that libtool cannot recognize.
9516 *** The result is that libtool may fail to recognize shared libraries
9517 *** as such. This will affect the creation of libtool libraries that
9518 *** depend on shared libraries, but programs linked with such libtool
9519 *** libraries will work regardless of this problem. Nevertheless, you
9520 *** may want to report the problem to your system manager and/or to
9521 *** bug-libtool@gnu.org
9523 _LT_EOF
9524 fi ;;
9525 esac
9527 break
9529 done
9530 IFS="$lt_save_ifs"
9531 MAGIC_CMD="$lt_save_MAGIC_CMD"
9533 esac
9536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9537 if test -n "$MAGIC_CMD"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9539 $as_echo "$MAGIC_CMD" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9549 if test -z "$lt_cv_path_MAGIC_CMD"; then
9550 if test -n "$ac_tool_prefix"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9552 $as_echo_n "checking for file... " >&6; }
9553 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 case $MAGIC_CMD in
9557 [\\/*] | ?:[\\/]*)
9558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9561 lt_save_MAGIC_CMD="$MAGIC_CMD"
9562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9564 for ac_dir in $ac_dummy; do
9565 IFS="$lt_save_ifs"
9566 test -z "$ac_dir" && ac_dir=.
9567 if test -f $ac_dir/file; then
9568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9569 if test -n "$file_magic_test_file"; then
9570 case $deplibs_check_method in
9571 "file_magic "*)
9572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9575 $EGREP "$file_magic_regex" > /dev/null; then
9577 else
9578 cat <<_LT_EOF 1>&2
9580 *** Warning: the command libtool uses to detect shared libraries,
9581 *** $file_magic_cmd, produces output that libtool cannot recognize.
9582 *** The result is that libtool may fail to recognize shared libraries
9583 *** as such. This will affect the creation of libtool libraries that
9584 *** depend on shared libraries, but programs linked with such libtool
9585 *** libraries will work regardless of this problem. Nevertheless, you
9586 *** may want to report the problem to your system manager and/or to
9587 *** bug-libtool@gnu.org
9589 _LT_EOF
9590 fi ;;
9591 esac
9593 break
9595 done
9596 IFS="$lt_save_ifs"
9597 MAGIC_CMD="$lt_save_MAGIC_CMD"
9599 esac
9602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9603 if test -n "$MAGIC_CMD"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9605 $as_echo "$MAGIC_CMD" >&6; }
9606 else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9612 else
9613 MAGIC_CMD=:
9619 esac
9621 # Use C for the default configuration in the libtool script
9623 lt_save_CC="$CC"
9624 ac_ext=c
9625 ac_cpp='$CPP $CPPFLAGS'
9626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9631 # Source file extension for C test sources.
9632 ac_ext=c
9634 # Object file extension for compiled C test sources.
9635 objext=o
9636 objext=$objext
9638 # Code to be used in simple compile tests
9639 lt_simple_compile_test_code="int some_variable = 0;"
9641 # Code to be used in simple link tests
9642 lt_simple_link_test_code='int main(){return(0);}'
9650 # If no C compiler was specified, use CC.
9651 LTCC=${LTCC-"$CC"}
9653 # If no C compiler flags were specified, use CFLAGS.
9654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9656 # Allow CC to be a program name with arguments.
9657 compiler=$CC
9659 # Save the default compiler, since it gets overwritten when the other
9660 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9661 compiler_DEFAULT=$CC
9663 # save warnings/boilerplate of simple test code
9664 ac_outfile=conftest.$ac_objext
9665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9667 _lt_compiler_boilerplate=`cat conftest.err`
9668 $RM conftest*
9670 ac_outfile=conftest.$ac_objext
9671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9673 _lt_linker_boilerplate=`cat conftest.err`
9674 $RM -r conftest*
9677 ## CAVEAT EMPTOR:
9678 ## There is no encapsulation within the following macros, do not change
9679 ## the running order or otherwise move them around unless you know exactly
9680 ## what you are doing...
9681 if test -n "$compiler"; then
9683 lt_prog_compiler_no_builtin_flag=
9685 if test "$GCC" = yes; then
9686 case $cc_basename in
9687 nvcc*)
9688 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9690 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9691 esac
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9694 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9695 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 lt_cv_prog_compiler_rtti_exceptions=no
9699 ac_outfile=conftest.$ac_objext
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 lt_compiler_flag="-fno-rtti -fno-exceptions"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 # The option is referenced via a variable to avoid confusing sed.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9712 (eval "$lt_compile" 2>conftest.err)
9713 ac_status=$?
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 if (exit $ac_status) && test -s "$ac_outfile"; then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings other than the usual output.
9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_rtti_exceptions=yes
9725 $RM conftest*
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9729 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9731 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9733 else
9744 lt_prog_compiler_wl=
9745 lt_prog_compiler_pic=
9746 lt_prog_compiler_static=
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9749 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9751 if test "$GCC" = yes; then
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_static='-static'
9755 case $host_os in
9756 aix*)
9757 # All AIX code is PIC.
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 now supports IA64 processor
9760 lt_prog_compiler_static='-Bstatic'
9762 lt_prog_compiler_pic='-fPIC'
9765 amigaos*)
9766 case $host_cpu in
9767 powerpc)
9768 # see comment about AmigaOS4 .so support
9769 lt_prog_compiler_pic='-fPIC'
9771 m68k)
9772 # FIXME: we need at least 68020 code to build shared libraries, but
9773 # adding the `-m68020' flag to GCC prevents building anything better,
9774 # like `-m68040'.
9775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9777 esac
9780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9781 # PIC is the default for these OSes.
9784 mingw* | cygwin* | pw32* | os2* | cegcc*)
9785 # This hack is so that the source file can tell whether it is being
9786 # built for inclusion in a dll (and should export symbols for example).
9787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9788 # (--disable-auto-import) libraries
9789 lt_prog_compiler_pic='-DDLL_EXPORT'
9792 darwin* | rhapsody*)
9793 # PIC is the default on this platform
9794 # Common symbols not allowed in MH_DYLIB files
9795 lt_prog_compiler_pic='-fno-common'
9798 haiku*)
9799 # PIC is the default for Haiku.
9800 # The "-static" flag exists, but is broken.
9801 lt_prog_compiler_static=
9804 hpux*)
9805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9807 # sets the default TLS model and affects inlining.
9808 case $host_cpu in
9809 hppa*64*)
9810 # +Z the default
9813 lt_prog_compiler_pic='-fPIC'
9815 esac
9818 interix[3-9]*)
9819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9820 # Instead, we relocate shared libraries at runtime.
9823 msdosdjgpp*)
9824 # Just because we use GCC doesn't mean we suddenly get shared libraries
9825 # on systems that don't support them.
9826 lt_prog_compiler_can_build_shared=no
9827 enable_shared=no
9830 *nto* | *qnx*)
9831 # QNX uses GNU C++, but need to define -shared option too, otherwise
9832 # it will coredump.
9833 lt_prog_compiler_pic='-fPIC -shared'
9836 sysv4*MP*)
9837 if test -d /usr/nec; then
9838 lt_prog_compiler_pic=-Kconform_pic
9843 lt_prog_compiler_pic='-fPIC'
9845 esac
9847 case $cc_basename in
9848 nvcc*) # Cuda Compiler Driver 2.2
9849 lt_prog_compiler_wl='-Xlinker '
9850 lt_prog_compiler_pic='-Xcompiler -fPIC'
9852 esac
9853 else
9854 # PORTME Check for flag to pass linker flags through the system compiler.
9855 case $host_os in
9856 aix*)
9857 lt_prog_compiler_wl='-Wl,'
9858 if test "$host_cpu" = ia64; then
9859 # AIX 5 now supports IA64 processor
9860 lt_prog_compiler_static='-Bstatic'
9861 else
9862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9866 mingw* | cygwin* | pw32* | os2* | cegcc*)
9867 # This hack is so that the source file can tell whether it is being
9868 # built for inclusion in a dll (and should export symbols for example).
9869 lt_prog_compiler_pic='-DDLL_EXPORT'
9872 hpux9* | hpux10* | hpux11*)
9873 lt_prog_compiler_wl='-Wl,'
9874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9875 # not for PA HP-UX.
9876 case $host_cpu in
9877 hppa*64*|ia64*)
9878 # +Z the default
9881 lt_prog_compiler_pic='+Z'
9883 esac
9884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9885 lt_prog_compiler_static='${wl}-a ${wl}archive'
9888 irix5* | irix6* | nonstopux*)
9889 lt_prog_compiler_wl='-Wl,'
9890 # PIC (with -KPIC) is the default.
9891 lt_prog_compiler_static='-non_shared'
9894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9895 case $cc_basename in
9896 # old Intel for x86_64 which still supported -KPIC.
9897 ecc*)
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-KPIC'
9900 lt_prog_compiler_static='-static'
9902 # icc used to be incompatible with GCC.
9903 # ICC 10 doesn't accept -KPIC any more.
9904 icc* | ifort*)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-fPIC'
9907 lt_prog_compiler_static='-static'
9909 # Lahey Fortran 8.1.
9910 lf95*)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='--shared'
9913 lt_prog_compiler_static='--static'
9915 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9916 # Portland Group compilers (*not* the Pentium gcc compiler,
9917 # which looks to be a dead project)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fpic'
9920 lt_prog_compiler_static='-Bstatic'
9922 ccc*)
9923 lt_prog_compiler_wl='-Wl,'
9924 # All Alpha code is PIC.
9925 lt_prog_compiler_static='-non_shared'
9927 xl* | bgxl* | bgf* | mpixl*)
9928 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9929 lt_prog_compiler_wl='-Wl,'
9930 lt_prog_compiler_pic='-qpic'
9931 lt_prog_compiler_static='-qstaticlink'
9934 case `$CC -V 2>&1 | sed 5q` in
9935 *Sun\ F* | *Sun*Fortran*)
9936 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 lt_prog_compiler_wl=''
9941 *Sun\ C*)
9942 # Sun C 5.9
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 lt_prog_compiler_wl='-Wl,'
9947 esac
9949 esac
9952 newsos6)
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9957 *nto* | *qnx*)
9958 # QNX uses GNU C++, but need to define -shared option too, otherwise
9959 # it will coredump.
9960 lt_prog_compiler_pic='-fPIC -shared'
9963 osf3* | osf4* | osf5*)
9964 lt_prog_compiler_wl='-Wl,'
9965 # All OSF/1 code is PIC.
9966 lt_prog_compiler_static='-non_shared'
9969 rdos*)
9970 lt_prog_compiler_static='-non_shared'
9973 solaris*)
9974 lt_prog_compiler_pic='-KPIC'
9975 lt_prog_compiler_static='-Bstatic'
9976 case $cc_basename in
9977 f77* | f90* | f95*)
9978 lt_prog_compiler_wl='-Qoption ld ';;
9980 lt_prog_compiler_wl='-Wl,';;
9981 esac
9984 sunos4*)
9985 lt_prog_compiler_wl='-Qoption ld '
9986 lt_prog_compiler_pic='-PIC'
9987 lt_prog_compiler_static='-Bstatic'
9990 sysv4 | sysv4.2uw2* | sysv4.3*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_pic='-KPIC'
9993 lt_prog_compiler_static='-Bstatic'
9996 sysv4*MP*)
9997 if test -d /usr/nec ;then
9998 lt_prog_compiler_pic='-Kconform_pic'
9999 lt_prog_compiler_static='-Bstatic'
10003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10004 lt_prog_compiler_wl='-Wl,'
10005 lt_prog_compiler_pic='-KPIC'
10006 lt_prog_compiler_static='-Bstatic'
10009 unicos*)
10010 lt_prog_compiler_wl='-Wl,'
10011 lt_prog_compiler_can_build_shared=no
10014 uts4*)
10015 lt_prog_compiler_pic='-pic'
10016 lt_prog_compiler_static='-Bstatic'
10020 lt_prog_compiler_can_build_shared=no
10022 esac
10025 case $host_os in
10026 # For platforms which do not support PIC, -DPIC is meaningless:
10027 *djgpp*)
10028 lt_prog_compiler_pic=
10031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10033 esac
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10035 $as_echo "$lt_prog_compiler_pic" >&6; }
10043 # Check to make sure the PIC flag actually works.
10045 if test -n "$lt_prog_compiler_pic"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 lt_cv_prog_compiler_pic_works=no
10052 ac_outfile=conftest.$ac_objext
10053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10055 # Insert the option either (1) after the last *FLAGS variable, or
10056 # (2) before a word containing "conftest.", or (3) at the end.
10057 # Note that $ac_compile itself does not contain backslashes and begins
10058 # with a dollar sign (not a hyphen), so the echo should work correctly.
10059 # The option is referenced via a variable to avoid confusing sed.
10060 lt_compile=`echo "$ac_compile" | $SED \
10061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10063 -e 's:$: $lt_compiler_flag:'`
10064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10065 (eval "$lt_compile" 2>conftest.err)
10066 ac_status=$?
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 if (exit $ac_status) && test -s "$ac_outfile"; then
10070 # The compiler can only warn and ignore the option if not recognized
10071 # So say no if there are warnings other than the usual output.
10072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10075 lt_cv_prog_compiler_pic_works=yes
10078 $RM conftest*
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10085 case $lt_prog_compiler_pic in
10086 "" | " "*) ;;
10087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10088 esac
10089 else
10090 lt_prog_compiler_pic=
10091 lt_prog_compiler_can_build_shared=no
10102 # Check to make sure the static flag actually works.
10104 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10106 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10107 if ${lt_cv_prog_compiler_static_works+:} false; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 lt_cv_prog_compiler_static_works=no
10111 save_LDFLAGS="$LDFLAGS"
10112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10115 # The linker can only warn and ignore the option if not recognized
10116 # So say no if there are warnings
10117 if test -s conftest.err; then
10118 # Append any errors to the config.log.
10119 cat conftest.err 1>&5
10120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10122 if diff conftest.exp conftest.er2 >/dev/null; then
10123 lt_cv_prog_compiler_static_works=yes
10125 else
10126 lt_cv_prog_compiler_static_works=yes
10129 $RM -r conftest*
10130 LDFLAGS="$save_LDFLAGS"
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10134 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10136 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10138 else
10139 lt_prog_compiler_static=
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10149 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10150 if ${lt_cv_prog_compiler_c_o+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 lt_cv_prog_compiler_c_o=no
10154 $RM -r conftest 2>/dev/null
10155 mkdir conftest
10156 cd conftest
10157 mkdir out
10158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10160 lt_compiler_flag="-o out/conftest2.$ac_objext"
10161 # Insert the option either (1) after the last *FLAGS variable, or
10162 # (2) before a word containing "conftest.", or (3) at the end.
10163 # Note that $ac_compile itself does not contain backslashes and begins
10164 # with a dollar sign (not a hyphen), so the echo should work correctly.
10165 lt_compile=`echo "$ac_compile" | $SED \
10166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168 -e 's:$: $lt_compiler_flag:'`
10169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10170 (eval "$lt_compile" 2>out/conftest.err)
10171 ac_status=$?
10172 cat out/conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10175 then
10176 # The compiler can only warn and ignore the option if not recognized
10177 # So say no if there are warnings
10178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10181 lt_cv_prog_compiler_c_o=yes
10184 chmod u+w . 2>&5
10185 $RM conftest*
10186 # SGI C++ compiler will create directory out/ii_files/ for
10187 # template instantiation
10188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10189 $RM out/* && rmdir out
10190 cd ..
10191 $RM -r conftest
10192 $RM conftest*
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10196 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10205 if ${lt_cv_prog_compiler_c_o+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 lt_cv_prog_compiler_c_o=no
10209 $RM -r conftest 2>/dev/null
10210 mkdir conftest
10211 cd conftest
10212 mkdir out
10213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10215 lt_compiler_flag="-o out/conftest2.$ac_objext"
10216 # Insert the option either (1) after the last *FLAGS variable, or
10217 # (2) before a word containing "conftest.", or (3) at the end.
10218 # Note that $ac_compile itself does not contain backslashes and begins
10219 # with a dollar sign (not a hyphen), so the echo should work correctly.
10220 lt_compile=`echo "$ac_compile" | $SED \
10221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10223 -e 's:$: $lt_compiler_flag:'`
10224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10225 (eval "$lt_compile" 2>out/conftest.err)
10226 ac_status=$?
10227 cat out/conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10230 then
10231 # The compiler can only warn and ignore the option if not recognized
10232 # So say no if there are warnings
10233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10236 lt_cv_prog_compiler_c_o=yes
10239 chmod u+w . 2>&5
10240 $RM conftest*
10241 # SGI C++ compiler will create directory out/ii_files/ for
10242 # template instantiation
10243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10244 $RM out/* && rmdir out
10245 cd ..
10246 $RM -r conftest
10247 $RM conftest*
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10251 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10256 hard_links="nottested"
10257 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10258 # do not overwrite the value of need_locks provided by the user
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10260 $as_echo_n "checking if we can lock with hard links... " >&6; }
10261 hard_links=yes
10262 $RM conftest*
10263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264 touch conftest.a
10265 ln conftest.a conftest.b 2>&5 || hard_links=no
10266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10268 $as_echo "$hard_links" >&6; }
10269 if test "$hard_links" = no; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10271 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10272 need_locks=warn
10274 else
10275 need_locks=no
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10284 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10286 runpath_var=
10287 allow_undefined_flag=
10288 always_export_symbols=no
10289 archive_cmds=
10290 archive_expsym_cmds=
10291 compiler_needs_object=no
10292 enable_shared_with_static_runtimes=no
10293 export_dynamic_flag_spec=
10294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10295 hardcode_automatic=no
10296 hardcode_direct=no
10297 hardcode_direct_absolute=no
10298 hardcode_libdir_flag_spec=
10299 hardcode_libdir_flag_spec_ld=
10300 hardcode_libdir_separator=
10301 hardcode_minus_L=no
10302 hardcode_shlibpath_var=unsupported
10303 inherit_rpath=no
10304 link_all_deplibs=unknown
10305 module_cmds=
10306 module_expsym_cmds=
10307 old_archive_from_new_cmds=
10308 old_archive_from_expsyms_cmds=
10309 thread_safe_flag_spec=
10310 whole_archive_flag_spec=
10311 # include_expsyms should be a list of space-separated symbols to be *always*
10312 # included in the symbol list
10313 include_expsyms=
10314 # exclude_expsyms can be an extended regexp of symbols to exclude
10315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10317 # as well as any symbol that contains `d'.
10318 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10320 # platforms (ab)use it in PIC code, but their linkers get confused if
10321 # the symbol is explicitly referenced. Since portable code cannot
10322 # rely on this symbol name, it's probably fine to never include it in
10323 # preloaded symbol tables.
10324 # Exclude shared library initialization/finalization symbols.
10325 extract_expsyms_cmds=
10327 case $host_os in
10328 cygwin* | mingw* | pw32* | cegcc*)
10329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10330 # When not using gcc, we currently assume that we are using
10331 # Microsoft Visual C++.
10332 if test "$GCC" != yes; then
10333 with_gnu_ld=no
10336 interix*)
10337 # we just hope/assume this is gcc and not c89 (= MSVC++)
10338 with_gnu_ld=yes
10340 openbsd*)
10341 with_gnu_ld=no
10343 esac
10345 ld_shlibs=yes
10347 # On some targets, GNU ld is compatible enough with the native linker
10348 # that we're better off using the native interface for both.
10349 lt_use_gnu_ld_interface=no
10350 if test "$with_gnu_ld" = yes; then
10351 case $host_os in
10352 aix*)
10353 # The AIX port of GNU ld has always aspired to compatibility
10354 # with the native linker. However, as the warning in the GNU ld
10355 # block says, versions before 2.19.5* couldn't really create working
10356 # shared libraries, regardless of the interface used.
10357 case `$LD -v 2>&1` in
10358 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10359 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10360 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10362 lt_use_gnu_ld_interface=yes
10364 esac
10367 lt_use_gnu_ld_interface=yes
10369 esac
10372 if test "$lt_use_gnu_ld_interface" = yes; then
10373 # If archive_cmds runs LD, not CC, wlarc should be empty
10374 wlarc='${wl}'
10376 # Set some defaults for GNU ld with shared library support. These
10377 # are reset later if shared libraries are not supported. Putting them
10378 # here allows them to be overridden if necessary.
10379 runpath_var=LD_RUN_PATH
10380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381 export_dynamic_flag_spec='${wl}--export-dynamic'
10382 # ancient GNU ld didn't support --whole-archive et. al.
10383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10384 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10385 else
10386 whole_archive_flag_spec=
10388 supports_anon_versioning=no
10389 case `$LD -v 2>&1` in
10390 *GNU\ gold*) supports_anon_versioning=yes ;;
10391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10394 *\ 2.11.*) ;; # other 2.11 versions
10395 *) supports_anon_versioning=yes ;;
10396 esac
10398 # See if GNU ld supports shared libraries.
10399 case $host_os in
10400 aix[3-9]*)
10401 # On AIX/PPC, the GNU linker is very broken
10402 if test "$host_cpu" != ia64; then
10403 ld_shlibs=no
10404 cat <<_LT_EOF 1>&2
10406 *** Warning: the GNU linker, at least up to release 2.19, is reported
10407 *** to be unable to reliably create shared libraries on AIX.
10408 *** Therefore, libtool is disabling shared libraries support. If you
10409 *** really care for shared libraries, you may want to install binutils
10410 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10411 *** You will then need to restart the configuration process.
10413 _LT_EOF
10417 amigaos*)
10418 case $host_cpu in
10419 powerpc)
10420 # see comment about AmigaOS4 .so support
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 archive_expsym_cmds=''
10424 m68k)
10425 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)'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_minus_L=yes
10429 esac
10432 beos*)
10433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434 allow_undefined_flag=unsupported
10435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10436 # support --undefined. This deserves some investigation. FIXME
10437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438 else
10439 ld_shlibs=no
10443 cygwin* | mingw* | pw32* | cegcc*)
10444 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10445 # as there is no search path for DLLs.
10446 hardcode_libdir_flag_spec='-L$libdir'
10447 export_dynamic_flag_spec='${wl}--export-all-symbols'
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=no
10450 enable_shared_with_static_runtimes=yes
10451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 # If the export-symbols file already is a .def file (1st line
10456 # is EXPORTS), use it as is; otherwise, prepend...
10457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458 cp $export_symbols $output_objdir/$soname.def;
10459 else
10460 echo EXPORTS > $output_objdir/$soname.def;
10461 cat $export_symbols >> $output_objdir/$soname.def;
10463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10464 else
10465 ld_shlibs=no
10469 haiku*)
10470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10471 link_all_deplibs=yes
10474 interix[3-9]*)
10475 hardcode_direct=no
10476 hardcode_shlibpath_var=no
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 export_dynamic_flag_spec='${wl}-E'
10479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10480 # Instead, shared libraries are loaded at an image base (0x10000000 by
10481 # default) and relocated if they conflict, which is a slow very memory
10482 # consuming and fragmenting process. To avoid this, we pick a random,
10483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10486 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'
10489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10490 tmp_diet=no
10491 if test "$host_os" = linux-dietlibc; then
10492 case $cc_basename in
10493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10494 esac
10496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10497 && test "$tmp_diet" = no
10498 then
10499 tmp_addflag=' $pic_flag'
10500 tmp_sharedflag='-shared'
10501 case $cc_basename,$host_cpu in
10502 pgcc*) # Portland Group C compiler
10503 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'
10504 tmp_addflag=' $pic_flag'
10506 pgf77* | pgf90* | pgf95* | pgfortran*)
10507 # Portland Group f77 and f90 compilers
10508 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'
10509 tmp_addflag=' $pic_flag -Mnomain' ;;
10510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10511 tmp_addflag=' -i_dynamic' ;;
10512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10513 tmp_addflag=' -i_dynamic -nofor_main' ;;
10514 ifc* | ifort*) # Intel Fortran compiler
10515 tmp_addflag=' -nofor_main' ;;
10516 lf95*) # Lahey Fortran 8.1
10517 whole_archive_flag_spec=
10518 tmp_sharedflag='--shared' ;;
10519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10520 tmp_sharedflag='-qmkshrobj'
10521 tmp_addflag= ;;
10522 nvcc*) # Cuda Compiler Driver 2.2
10523 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'
10524 compiler_needs_object=yes
10526 esac
10527 case `$CC -V 2>&1 | sed 5q` in
10528 *Sun\ C*) # Sun C 5.9
10529 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'
10530 compiler_needs_object=yes
10531 tmp_sharedflag='-G' ;;
10532 *Sun\ F*) # Sun Fortran 8.3
10533 tmp_sharedflag='-G' ;;
10534 esac
10535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 if test "x$supports_anon_versioning" = xyes; then
10538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540 echo "local: *; };" >> $output_objdir/$libname.ver~
10541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10544 case $cc_basename in
10545 xlf* | bgf* | bgxlf* | mpixlf*)
10546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10547 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10548 hardcode_libdir_flag_spec=
10549 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10550 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10551 if test "x$supports_anon_versioning" = xyes; then
10552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10554 echo "local: *; };" >> $output_objdir/$libname.ver~
10555 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10558 esac
10559 else
10560 ld_shlibs=no
10564 netbsd*)
10565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10566 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10567 wlarc=
10568 else
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 solaris*)
10575 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10576 ld_shlibs=no
10577 cat <<_LT_EOF 1>&2
10579 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10580 *** create shared libraries on Solaris systems. Therefore, libtool
10581 *** is disabling shared libraries support. We urge you to upgrade GNU
10582 *** binutils to release 2.9.1 or newer. Another option is to modify
10583 *** your PATH or compiler configuration so that the native linker is
10584 *** used, and then restart.
10586 _LT_EOF
10587 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10590 else
10591 ld_shlibs=no
10595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10596 case `$LD -v 2>&1` in
10597 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10598 ld_shlibs=no
10599 cat <<_LT_EOF 1>&2
10601 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10602 *** reliably create shared libraries on SCO systems. Therefore, libtool
10603 *** is disabling shared libraries support. We urge you to upgrade GNU
10604 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10605 *** your PATH or compiler configuration so that the native linker is
10606 *** used, and then restart.
10608 _LT_EOF
10611 # For security reasons, it is highly recommended that you always
10612 # use absolute paths for naming shared libraries, and exclude the
10613 # DT_RUNPATH tag from executables and libraries. But doing so
10614 # requires that you compile everything twice, which is a pain.
10615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10619 else
10620 ld_shlibs=no
10623 esac
10626 sunos4*)
10627 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 wlarc=
10629 hardcode_direct=yes
10630 hardcode_shlibpath_var=no
10634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10637 else
10638 ld_shlibs=no
10641 esac
10643 if test "$ld_shlibs" = no; then
10644 runpath_var=
10645 hardcode_libdir_flag_spec=
10646 export_dynamic_flag_spec=
10647 whole_archive_flag_spec=
10649 else
10650 # PORTME fill in a description of your system's linker (not GNU ld)
10651 case $host_os in
10652 aix3*)
10653 allow_undefined_flag=unsupported
10654 always_export_symbols=yes
10655 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'
10656 # Note: this linker hardcodes the directories in LIBPATH if there
10657 # are no directories specified by -L.
10658 hardcode_minus_L=yes
10659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10660 # Neither direct hardcoding nor static linking is supported with a
10661 # broken collect2.
10662 hardcode_direct=unsupported
10666 aix[4-9]*)
10667 if test "$host_cpu" = ia64; then
10668 # On IA64, the linker does run time linking by default, so we don't
10669 # have to do anything special.
10670 aix_use_runtimelinking=no
10671 exp_sym_flag='-Bexport'
10672 no_entry_flag=""
10673 else
10674 # If we're using GNU nm, then we don't want the "-C" option.
10675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10676 # Also, AIX nm treats weak defined symbols like other global
10677 # defined symbols, whereas GNU nm marks them as "W".
10678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10679 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'
10680 else
10681 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10683 aix_use_runtimelinking=no
10685 # Test if we are trying to use run time linking or normal
10686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10687 # need to do runtime linking.
10688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10689 for ld_flag in $LDFLAGS; do
10690 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10691 aix_use_runtimelinking=yes
10692 break
10694 done
10696 esac
10698 exp_sym_flag='-bexport'
10699 no_entry_flag='-bnoentry'
10702 # When large executables or shared objects are built, AIX ld can
10703 # have problems creating the table of contents. If linking a library
10704 # or program results in "error TOC overflow" add -mminimal-toc to
10705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10708 archive_cmds=''
10709 hardcode_direct=yes
10710 hardcode_direct_absolute=yes
10711 hardcode_libdir_separator=':'
10712 link_all_deplibs=yes
10713 file_list_spec='${wl}-f,'
10715 if test "$GCC" = yes; then
10716 case $host_os in aix4.[012]|aix4.[012].*)
10717 # We only want to do this on AIX 4.2 and lower, the check
10718 # below for broken collect2 doesn't work under 4.3+
10719 collect2name=`${CC} -print-prog-name=collect2`
10720 if test -f "$collect2name" &&
10721 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10722 then
10723 # We have reworked collect2
10725 else
10726 # We have old collect2
10727 hardcode_direct=unsupported
10728 # It fails to find uninstalled libraries when the uninstalled
10729 # path is not listed in the libpath. Setting hardcode_minus_L
10730 # to unsupported forces relinking
10731 hardcode_minus_L=yes
10732 hardcode_libdir_flag_spec='-L$libdir'
10733 hardcode_libdir_separator=
10736 esac
10737 shared_flag='-shared'
10738 if test "$aix_use_runtimelinking" = yes; then
10739 shared_flag="$shared_flag "'${wl}-G'
10741 else
10742 # not using gcc
10743 if test "$host_cpu" = ia64; then
10744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10745 # chokes on -Wl,-G. The following line is correct:
10746 shared_flag='-G'
10747 else
10748 if test "$aix_use_runtimelinking" = yes; then
10749 shared_flag='${wl}-G'
10750 else
10751 shared_flag='${wl}-bM:SRE'
10756 export_dynamic_flag_spec='${wl}-bexpall'
10757 # It seems that -bexpall does not export symbols beginning with
10758 # underscore (_), so it is better to generate a list of symbols to export.
10759 always_export_symbols=yes
10760 if test "$aix_use_runtimelinking" = yes; then
10761 # Warning - without using the other runtime loading flags (-brtl),
10762 # -berok will link without error, but may produce a broken library.
10763 allow_undefined_flag='-berok'
10764 # Determine the default libpath from the value encoded in an
10765 # empty executable.
10766 if test x$gcc_no_link = xyes; then
10767 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10773 main ()
10777 return 0;
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10782 lt_aix_libpath_sed='
10783 /Import File Strings/,/^$/ {
10784 /^0/ {
10785 s/^0 *\(.*\)$/\1/
10789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790 # Check for a 64-bit object if we didn't find anything.
10791 if test -z "$aix_libpath"; then
10792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10800 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"
10801 else
10802 if test "$host_cpu" = ia64; then
10803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10804 allow_undefined_flag="-z nodefs"
10805 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"
10806 else
10807 # Determine the default libpath from the value encoded in an
10808 # empty executable.
10809 if test x$gcc_no_link = xyes; then
10810 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10816 main ()
10820 return 0;
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10825 lt_aix_libpath_sed='
10826 /Import File Strings/,/^$/ {
10827 /^0/ {
10828 s/^0 *\(.*\)$/\1/
10832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$aix_libpath"; then
10835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10843 # Warning - without using the other run time loading flags,
10844 # -berok will link without error, but may produce a broken library.
10845 no_undefined_flag=' ${wl}-bernotok'
10846 allow_undefined_flag=' ${wl}-berok'
10847 if test "$with_gnu_ld" = yes; then
10848 # We only use this code for GNU lds that support --whole-archive.
10849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10850 else
10851 # Exported symbols can be pulled into shared objects from archives
10852 whole_archive_flag_spec='$convenience'
10854 archive_cmds_need_lc=yes
10855 # This is similar to how AIX traditionally builds its shared libraries.
10856 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'
10861 amigaos*)
10862 case $host_cpu in
10863 powerpc)
10864 # see comment about AmigaOS4 .so support
10865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10866 archive_expsym_cmds=''
10868 m68k)
10869 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)'
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_minus_L=yes
10873 esac
10876 bsdi[45]*)
10877 export_dynamic_flag_spec=-rdynamic
10880 cygwin* | mingw* | pw32* | cegcc*)
10881 # When not using gcc, we currently assume that we are using
10882 # Microsoft Visual C++.
10883 # hardcode_libdir_flag_spec is actually meaningless, as there is
10884 # no search path for DLLs.
10885 hardcode_libdir_flag_spec=' '
10886 allow_undefined_flag=unsupported
10887 # Tell ltmain to make .lib files, not .a files.
10888 libext=lib
10889 # Tell ltmain to make .dll files, not .so files.
10890 shrext_cmds=".dll"
10891 # FIXME: Setting linknames here is a bad hack.
10892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10893 # The linker will automatically build a .lib file if we build a DLL.
10894 old_archive_from_new_cmds='true'
10895 # FIXME: Should let the user specify the lib program.
10896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10897 fix_srcfile_path='`cygpath -w "$srcfile"`'
10898 enable_shared_with_static_runtimes=yes
10901 darwin* | rhapsody*)
10904 archive_cmds_need_lc=no
10905 hardcode_direct=no
10906 hardcode_automatic=yes
10907 hardcode_shlibpath_var=unsupported
10908 if test "$lt_cv_ld_force_load" = "yes"; then
10909 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\"`'
10910 else
10911 whole_archive_flag_spec=''
10913 link_all_deplibs=yes
10914 allow_undefined_flag="$_lt_dar_allow_undefined"
10915 case $cc_basename in
10916 ifort*) _lt_dar_can_shared=yes ;;
10917 *) _lt_dar_can_shared=$GCC ;;
10918 esac
10919 if test "$_lt_dar_can_shared" = "yes"; then
10920 output_verbose_link_cmd=func_echo_all
10921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10923 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}"
10924 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}"
10926 else
10927 ld_shlibs=no
10932 dgux*)
10933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10934 hardcode_libdir_flag_spec='-L$libdir'
10935 hardcode_shlibpath_var=no
10938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10939 # support. Future versions do this automatically, but an explicit c++rt0.o
10940 # does not break anything, and helps significantly (at the cost of a little
10941 # extra space).
10942 freebsd2.2*)
10943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10944 hardcode_libdir_flag_spec='-R$libdir'
10945 hardcode_direct=yes
10946 hardcode_shlibpath_var=no
10949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10950 freebsd2.*)
10951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_direct=yes
10953 hardcode_minus_L=yes
10954 hardcode_shlibpath_var=no
10957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10958 freebsd* | dragonfly*)
10959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10960 hardcode_libdir_flag_spec='-R$libdir'
10961 hardcode_direct=yes
10962 hardcode_shlibpath_var=no
10965 hpux9*)
10966 if test "$GCC" = yes; then
10967 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'
10968 else
10969 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'
10971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10972 hardcode_libdir_separator=:
10973 hardcode_direct=yes
10975 # hardcode_minus_L: Not really in the search PATH,
10976 # but as the default location of the library.
10977 hardcode_minus_L=yes
10978 export_dynamic_flag_spec='${wl}-E'
10981 hpux10*)
10982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10984 else
10985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10987 if test "$with_gnu_ld" = no; then
10988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10989 hardcode_libdir_flag_spec_ld='+b $libdir'
10990 hardcode_libdir_separator=:
10991 hardcode_direct=yes
10992 hardcode_direct_absolute=yes
10993 export_dynamic_flag_spec='${wl}-E'
10994 # hardcode_minus_L: Not really in the search PATH,
10995 # but as the default location of the library.
10996 hardcode_minus_L=yes
11000 hpux11*)
11001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11002 case $host_cpu in
11003 hppa*64*)
11004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11006 ia64*)
11007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11012 esac
11013 else
11014 case $host_cpu in
11015 hppa*64*)
11016 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11018 ia64*)
11019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11023 # Older versions of the 11.00 compiler do not understand -b yet
11024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11026 $as_echo_n "checking if $CC understands -b... " >&6; }
11027 if ${lt_cv_prog_compiler__b+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 lt_cv_prog_compiler__b=no
11031 save_LDFLAGS="$LDFLAGS"
11032 LDFLAGS="$LDFLAGS -b"
11033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11035 # The linker can only warn and ignore the option if not recognized
11036 # So say no if there are warnings
11037 if test -s conftest.err; then
11038 # Append any errors to the config.log.
11039 cat conftest.err 1>&5
11040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11042 if diff conftest.exp conftest.er2 >/dev/null; then
11043 lt_cv_prog_compiler__b=yes
11045 else
11046 lt_cv_prog_compiler__b=yes
11049 $RM -r conftest*
11050 LDFLAGS="$save_LDFLAGS"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11054 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11056 if test x"$lt_cv_prog_compiler__b" = xyes; then
11057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11058 else
11059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11063 esac
11065 if test "$with_gnu_ld" = no; then
11066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11067 hardcode_libdir_separator=:
11069 case $host_cpu in
11070 hppa*64*|ia64*)
11071 hardcode_direct=no
11072 hardcode_shlibpath_var=no
11075 hardcode_direct=yes
11076 hardcode_direct_absolute=yes
11077 export_dynamic_flag_spec='${wl}-E'
11079 # hardcode_minus_L: Not really in the search PATH,
11080 # but as the default location of the library.
11081 hardcode_minus_L=yes
11083 esac
11087 irix5* | irix6* | nonstopux*)
11088 if test "$GCC" = yes; then
11089 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'
11090 # Try to use the -exported_symbol ld option, if it does not
11091 # work, assume that -exports_file does not work either and
11092 # implicitly export all symbols.
11093 save_LDFLAGS="$LDFLAGS"
11094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11095 if test x$gcc_no_link = xyes; then
11096 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 int foo(void) {}
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 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'
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LDFLAGS="$save_LDFLAGS"
11109 else
11110 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'
11111 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'
11113 archive_cmds_need_lc='no'
11114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11115 hardcode_libdir_separator=:
11116 inherit_rpath=yes
11117 link_all_deplibs=yes
11120 netbsd*)
11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11123 else
11124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11126 hardcode_libdir_flag_spec='-R$libdir'
11127 hardcode_direct=yes
11128 hardcode_shlibpath_var=no
11131 newsos6)
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_direct=yes
11134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator=:
11136 hardcode_shlibpath_var=no
11139 *nto* | *qnx*)
11142 openbsd*)
11143 if test -f /usr/libexec/ld.so; then
11144 hardcode_direct=yes
11145 hardcode_shlibpath_var=no
11146 hardcode_direct_absolute=yes
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11151 export_dynamic_flag_spec='${wl}-E'
11152 else
11153 case $host_os in
11154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_libdir_flag_spec='-R$libdir'
11159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11162 esac
11164 else
11165 ld_shlibs=no
11169 os2*)
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_minus_L=yes
11172 allow_undefined_flag=unsupported
11173 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'
11174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11177 osf3*)
11178 if test "$GCC" = yes; then
11179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11180 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'
11181 else
11182 allow_undefined_flag=' -expect_unresolved \*'
11183 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'
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11187 hardcode_libdir_separator=:
11190 osf4* | osf5*) # as osf3* with the addition of -msym flag
11191 if test "$GCC" = yes; then
11192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11193 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'
11194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11195 else
11196 allow_undefined_flag=' -expect_unresolved \*'
11197 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'
11198 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~
11199 $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'
11201 # Both c and cxx compiler support -rpath directly
11202 hardcode_libdir_flag_spec='-rpath $libdir'
11204 archive_cmds_need_lc='no'
11205 hardcode_libdir_separator=:
11208 solaris*)
11209 no_undefined_flag=' -z defs'
11210 if test "$GCC" = yes; then
11211 wlarc='${wl}'
11212 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11215 else
11216 case `$CC -V 2>&1` in
11217 *"Compilers 5.0"*)
11218 wlarc=''
11219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11224 wlarc='${wl}'
11225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11229 esac
11231 hardcode_libdir_flag_spec='-R$libdir'
11232 hardcode_shlibpath_var=no
11233 case $host_os in
11234 solaris2.[0-5] | solaris2.[0-5].*) ;;
11236 # The compiler driver will combine and reorder linker options,
11237 # but understands `-z linker_flag'. GCC discards it without `$wl',
11238 # but is careful enough not to reorder.
11239 # Supported since Solaris 2.6 (maybe 2.5.1?)
11240 if test "$GCC" = yes; then
11241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11242 else
11243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11246 esac
11247 link_all_deplibs=yes
11250 sunos4*)
11251 if test "x$host_vendor" = xsequent; then
11252 # Use $CC to link under sequent, because it throws in some extra .o
11253 # files that make .init and .fini sections work.
11254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11255 else
11256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 hardcode_direct=yes
11260 hardcode_minus_L=yes
11261 hardcode_shlibpath_var=no
11264 sysv4)
11265 case $host_vendor in
11266 sni)
11267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268 hardcode_direct=yes # is this really true???
11270 siemens)
11271 ## LD is ld it makes a PLAMLIB
11272 ## CC just makes a GrossModule.
11273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11274 reload_cmds='$CC -r -o $output$reload_objs'
11275 hardcode_direct=no
11277 motorola)
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11281 esac
11282 runpath_var='LD_RUN_PATH'
11283 hardcode_shlibpath_var=no
11286 sysv4.3*)
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_shlibpath_var=no
11289 export_dynamic_flag_spec='-Bexport'
11292 sysv4*MP*)
11293 if test -d /usr/nec; then
11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295 hardcode_shlibpath_var=no
11296 runpath_var=LD_RUN_PATH
11297 hardcode_runpath_var=yes
11298 ld_shlibs=yes
11302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303 no_undefined_flag='${wl}-z,text'
11304 archive_cmds_need_lc=no
11305 hardcode_shlibpath_var=no
11306 runpath_var='LD_RUN_PATH'
11308 if test "$GCC" = yes; then
11309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 else
11312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 sysv5* | sco3.2v5* | sco5v6*)
11318 # Note: We can NOT use -z defs as we might desire, because we do not
11319 # link with -lc, and that would cause any symbols used from libc to
11320 # always be unresolved, which means just about no library would
11321 # ever link correctly. If we're not using GNU ld we use -z text
11322 # though, which does catch some bad symbols but isn't as heavy-handed
11323 # as -z defs.
11324 no_undefined_flag='${wl}-z,text'
11325 allow_undefined_flag='${wl}-z,nodefs'
11326 archive_cmds_need_lc=no
11327 hardcode_shlibpath_var=no
11328 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11329 hardcode_libdir_separator=':'
11330 link_all_deplibs=yes
11331 export_dynamic_flag_spec='${wl}-Bexport'
11332 runpath_var='LD_RUN_PATH'
11334 if test "$GCC" = yes; then
11335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 else
11338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11343 uts4*)
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_shlibpath_var=no
11350 ld_shlibs=no
11352 esac
11354 if test x$host_vendor = xsni; then
11355 case $host in
11356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11357 export_dynamic_flag_spec='${wl}-Blargedynsym'
11359 esac
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11364 $as_echo "$ld_shlibs" >&6; }
11365 test "$ld_shlibs" = no && can_build_shared=no
11367 with_gnu_ld=$with_gnu_ld
11384 # Do we need to explicitly link libc?
11386 case "x$archive_cmds_need_lc" in
11387 x|xyes)
11388 # Assume -lc should be added
11389 archive_cmds_need_lc=yes
11391 if test "$enable_shared" = yes && test "$GCC" = yes; then
11392 case $archive_cmds in
11393 *'~'*)
11394 # FIXME: we may have to deal with multi-command sequences.
11396 '$CC '*)
11397 # Test whether the compiler implicitly links with -lc since on some
11398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11399 # to ld, don't add -lc before -lgcc.
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11401 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11402 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 $RM conftest*
11406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11409 (eval $ac_compile) 2>&5
11410 ac_status=$?
11411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412 test $ac_status = 0; } 2>conftest.err; then
11413 soname=conftest
11414 lib=conftest
11415 libobjs=conftest.$ac_objext
11416 deplibs=
11417 wl=$lt_prog_compiler_wl
11418 pic_flag=$lt_prog_compiler_pic
11419 compiler_flags=-v
11420 linker_flags=-v
11421 verstring=
11422 output_objdir=.
11423 libname=conftest
11424 lt_save_allow_undefined_flag=$allow_undefined_flag
11425 allow_undefined_flag=
11426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11428 ac_status=$?
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; }
11431 then
11432 lt_cv_archive_cmds_need_lc=no
11433 else
11434 lt_cv_archive_cmds_need_lc=yes
11436 allow_undefined_flag=$lt_save_allow_undefined_flag
11437 else
11438 cat conftest.err 1>&5
11440 $RM conftest*
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11444 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11447 esac
11450 esac
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11611 if test "$GCC" = yes; then
11612 case $host_os in
11613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11614 *) lt_awk_arg="/^libraries:/" ;;
11615 esac
11616 case $host_os in
11617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11618 *) lt_sed_strip_eq="s,=/,/,g" ;;
11619 esac
11620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621 case $lt_search_path_spec in
11622 *\;*)
11623 # if the path contains ";" then we assume it to be the separator
11624 # otherwise default to the standard path separator (i.e. ":") - it is
11625 # assumed that no part of a normal pathname contains ";" but that should
11626 # okay in the real world where ";" in dirpaths is itself problematic.
11627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11632 esac
11633 # Ok, now we have the path, separated by spaces, we can step through it
11634 # and add multilib dir if necessary.
11635 lt_tmp_lt_search_path_spec=
11636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637 for lt_sys_path in $lt_search_path_spec; do
11638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11640 else
11641 test -d "$lt_sys_path" && \
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11644 done
11645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11646 BEGIN {RS=" "; FS="/|\n";} {
11647 lt_foo="";
11648 lt_count=0;
11649 for (lt_i = NF; lt_i > 0; lt_i--) {
11650 if ($lt_i != "" && $lt_i != ".") {
11651 if ($lt_i == "..") {
11652 lt_count++;
11653 } else {
11654 if (lt_count == 0) {
11655 lt_foo="/" $lt_i lt_foo;
11656 } else {
11657 lt_count--;
11662 if (lt_foo != "") { lt_freq[lt_foo]++; }
11663 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11665 # AWK program above erroneously prepends '/' to C:/dos/paths
11666 # for these hosts.
11667 case $host_os in
11668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11669 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11670 esac
11671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11672 else
11673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675 library_names_spec=
11676 libname_spec='lib$name'
11677 soname_spec=
11678 shrext_cmds=".so"
11679 postinstall_cmds=
11680 postuninstall_cmds=
11681 finish_cmds=
11682 finish_eval=
11683 shlibpath_var=
11684 shlibpath_overrides_runpath=unknown
11685 version_type=none
11686 dynamic_linker="$host_os ld.so"
11687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11688 need_lib_prefix=unknown
11689 hardcode_into_libs=no
11691 # when you set need_version to no, make sure it does not cause -set_version
11692 # flags to be left without arguments
11693 need_version=unknown
11695 case $host_os in
11696 aix3*)
11697 version_type=linux
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11699 shlibpath_var=LIBPATH
11701 # AIX 3 has no versioning support, so we append a major version to the name.
11702 soname_spec='${libname}${release}${shared_ext}$major'
11705 aix[4-9]*)
11706 version_type=linux
11707 need_lib_prefix=no
11708 need_version=no
11709 hardcode_into_libs=yes
11710 if test "$host_cpu" = ia64; then
11711 # AIX 5 supports IA64
11712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 else
11715 # With GCC up to 2.95.x, collect2 would create an import file
11716 # for dependence libraries. The import file would start with
11717 # the line `#! .'. This would cause the generated library to
11718 # depend on `.', always an invalid library. This was fixed in
11719 # development snapshots of GCC prior to 3.0.
11720 case $host_os in
11721 aix4 | aix4.[01] | aix4.[01].*)
11722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723 echo ' yes '
11724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11726 else
11727 can_build_shared=no
11730 esac
11731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11732 # soname into executable. Probably we can add versioning support to
11733 # collect2, so additional links can be useful in future.
11734 if test "$aix_use_runtimelinking" = yes; then
11735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11736 # instead of lib<name>.a to let people know that these are not
11737 # typical AIX shared libraries.
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 else
11740 # We preserve .a as extension for shared libraries through AIX4.2
11741 # and later when we are not doing run time linking.
11742 library_names_spec='${libname}${release}.a $libname.a'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11745 shlibpath_var=LIBPATH
11749 amigaos*)
11750 case $host_cpu in
11751 powerpc)
11752 # Since July 2007 AmigaOS4 officially supports .so libraries.
11753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 m68k)
11757 library_names_spec='$libname.ixlibrary $libname.a'
11758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11759 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'
11761 esac
11764 beos*)
11765 library_names_spec='${libname}${shared_ext}'
11766 dynamic_linker="$host_os ld.so"
11767 shlibpath_var=LIBRARY_PATH
11770 bsdi[45]*)
11771 version_type=linux
11772 need_version=no
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11779 # the default ld.so.conf also contains /usr/contrib/lib and
11780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11781 # libtool to hard-code these into programs
11784 cygwin* | mingw* | pw32* | cegcc*)
11785 version_type=windows
11786 shrext_cmds=".dll"
11787 need_version=no
11788 need_lib_prefix=no
11790 case $GCC,$host_os in
11791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11792 library_names_spec='$libname.dll.a'
11793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11794 postinstall_cmds='base_file=`basename \${file}`~
11795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11796 dldir=$destdir/`dirname \$dlpath`~
11797 test -d \$dldir || mkdir -p \$dldir~
11798 $install_prog $dir/$dlname \$dldir/$dlname~
11799 chmod a+x \$dldir/$dlname~
11800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11804 dlpath=$dir/\$dldll~
11805 $RM \$dlpath'
11806 shlibpath_overrides_runpath=yes
11808 case $host_os in
11809 cygwin*)
11810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11815 mingw* | cegcc*)
11816 # MinGW DLLs use traditional 'lib' prefix
11817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819 pw32*)
11820 # pw32 DLLs use 'pw' prefix rather than 'lib'
11821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11823 esac
11827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11829 esac
11830 dynamic_linker='Win32 ld.exe'
11831 # FIXME: first we should search . and the directory the executable is in
11832 shlibpath_var=PATH
11835 darwin* | rhapsody*)
11836 dynamic_linker="$host_os dyld"
11837 version_type=darwin
11838 need_lib_prefix=no
11839 need_version=no
11840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11841 soname_spec='${libname}${release}${major}$shared_ext'
11842 shlibpath_overrides_runpath=yes
11843 shlibpath_var=DYLD_LIBRARY_PATH
11844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11850 dgux*)
11851 version_type=linux
11852 need_lib_prefix=no
11853 need_version=no
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11859 freebsd* | dragonfly*)
11860 # DragonFly does not have aout. When/if they implement a new
11861 # versioning mechanism, adjust this.
11862 if test -x /usr/bin/objformat; then
11863 objformat=`/usr/bin/objformat`
11864 else
11865 case $host_os in
11866 freebsd[23].*) objformat=aout ;;
11867 *) objformat=elf ;;
11868 esac
11870 version_type=freebsd-$objformat
11871 case $version_type in
11872 freebsd-elf*)
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11874 need_version=no
11875 need_lib_prefix=no
11877 freebsd-*)
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11879 need_version=yes
11881 esac
11882 shlibpath_var=LD_LIBRARY_PATH
11883 case $host_os in
11884 freebsd2.*)
11885 shlibpath_overrides_runpath=yes
11887 freebsd3.[01]* | freebsdelf3.[01]*)
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11893 shlibpath_overrides_runpath=no
11894 hardcode_into_libs=yes
11896 *) # from 4.6 on, and DragonFly
11897 shlibpath_overrides_runpath=yes
11898 hardcode_into_libs=yes
11900 esac
11903 haiku*)
11904 version_type=linux
11905 need_lib_prefix=no
11906 need_version=no
11907 dynamic_linker="$host_os runtime_loader"
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11913 hardcode_into_libs=yes
11916 hpux9* | hpux10* | hpux11*)
11917 # Give a soname corresponding to the major version so that dld.sl refuses to
11918 # link against other versions.
11919 version_type=sunos
11920 need_lib_prefix=no
11921 need_version=no
11922 case $host_cpu in
11923 ia64*)
11924 shrext_cmds='.so'
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.so"
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 if test "X$HPUX_IA64_MODE" = X32; then
11932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933 else
11934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11938 hppa*64*)
11939 shrext_cmds='.sl'
11940 hardcode_into_libs=yes
11941 dynamic_linker="$host_os dld.sl"
11942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 soname_spec='${libname}${release}${shared_ext}$major'
11946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11950 shrext_cmds='.sl'
11951 dynamic_linker="$host_os dld.sl"
11952 shlibpath_var=SHLIB_PATH
11953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec='${libname}${release}${shared_ext}$major'
11957 esac
11958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11959 postinstall_cmds='chmod 555 $lib'
11960 # or fails outright, so override atomically:
11961 install_override_mode=555
11964 interix[3-9]*)
11965 version_type=linux
11966 need_lib_prefix=no
11967 need_version=no
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=no
11973 hardcode_into_libs=yes
11976 irix5* | irix6* | nonstopux*)
11977 case $host_os in
11978 nonstopux*) version_type=nonstopux ;;
11980 if test "$lt_cv_prog_gnu_ld" = yes; then
11981 version_type=linux
11982 else
11983 version_type=irix
11984 fi ;;
11985 esac
11986 need_lib_prefix=no
11987 need_version=no
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11990 case $host_os in
11991 irix5* | nonstopux*)
11992 libsuff= shlibsuff=
11995 case $LD in # libtool.m4 will add one of these switches to LD
11996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11997 libsuff= shlibsuff= libmagic=32-bit;;
11998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11999 libsuff=32 shlibsuff=N32 libmagic=N32;;
12000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12002 *) libsuff= shlibsuff= libmagic=never-match;;
12003 esac
12005 esac
12006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12007 shlibpath_overrides_runpath=no
12008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12010 hardcode_into_libs=yes
12013 # No shared lib support for Linux oldld, aout, or coff.
12014 linux*oldld* | linux*aout* | linux*coff*)
12015 dynamic_linker=no
12018 # This must be Linux ELF.
12020 # uclinux* changes (here and below) have been submitted to the libtool
12021 # project, but have not yet been accepted: they are GCC-local changes
12022 # for the time being. (See
12023 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12024 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12025 version_type=linux
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12034 # Some binutils ld are patched to set DT_RUNPATH
12035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 lt_cv_shlibpath_overrides_runpath=no
12039 save_LDFLAGS=$LDFLAGS
12040 save_libdir=$libdir
12041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12043 if test x$gcc_no_link = xyes; then
12044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12050 main ()
12054 return 0;
12056 _ACEOF
12057 if ac_fn_c_try_link "$LINENO"; then :
12058 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12059 lt_cv_shlibpath_overrides_runpath=yes
12062 rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064 LDFLAGS=$save_LDFLAGS
12065 libdir=$save_libdir
12069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12071 # This implies no fast_install, which is unacceptable.
12072 # Some rework will be needed to allow for fast_install
12073 # before this can be enabled.
12074 hardcode_into_libs=yes
12076 # Append ld.so.conf contents to the search path
12077 if test -f /etc/ld.so.conf; then
12078 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' ' '`
12079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12082 # We used to test for /lib/ld.so.1 and disable shared libraries on
12083 # powerpc, because MkLinux only supported shared libraries with the
12084 # GNU dynamic linker. Since this was broken with cross compilers,
12085 # most powerpc-linux boxes support dynamic linking these days and
12086 # people can always --disable-shared, the test was removed, and we
12087 # assume the GNU/Linux dynamic linker is in use.
12088 dynamic_linker='GNU/Linux ld.so'
12091 netbsd*)
12092 version_type=sunos
12093 need_lib_prefix=no
12094 need_version=no
12095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12098 dynamic_linker='NetBSD (a.out) ld.so'
12099 else
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 dynamic_linker='NetBSD ld.elf_so'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12109 newsos6)
12110 version_type=linux
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes
12116 *nto* | *qnx*)
12117 version_type=qnx
12118 need_lib_prefix=no
12119 need_version=no
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=no
12124 hardcode_into_libs=yes
12125 dynamic_linker='ldqnx.so'
12128 openbsd*)
12129 version_type=sunos
12130 sys_lib_dlsearch_path_spec="/usr/lib"
12131 need_lib_prefix=no
12132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12133 case $host_os in
12134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12135 *) need_version=no ;;
12136 esac
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12141 case $host_os in
12142 openbsd2.[89] | openbsd2.[89].*)
12143 shlibpath_overrides_runpath=no
12146 shlibpath_overrides_runpath=yes
12148 esac
12149 else
12150 shlibpath_overrides_runpath=yes
12154 os2*)
12155 libname_spec='$name'
12156 shrext_cmds=".dll"
12157 need_lib_prefix=no
12158 library_names_spec='$libname${shared_ext} $libname.a'
12159 dynamic_linker='OS/2 ld.exe'
12160 shlibpath_var=LIBPATH
12163 osf3* | osf4* | osf5*)
12164 version_type=osf
12165 need_lib_prefix=no
12166 need_version=no
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12174 rdos*)
12175 dynamic_linker=no
12178 solaris*)
12179 version_type=linux
12180 need_lib_prefix=no
12181 need_version=no
12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12183 soname_spec='${libname}${release}${shared_ext}$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 shlibpath_overrides_runpath=yes
12186 hardcode_into_libs=yes
12187 # ldd complains unless libraries are executable
12188 postinstall_cmds='chmod +x $lib'
12191 sunos4*)
12192 version_type=sunos
12193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes
12197 if test "$with_gnu_ld" = yes; then
12198 need_lib_prefix=no
12200 need_version=yes
12203 sysv4 | sysv4.3*)
12204 version_type=linux
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 case $host_vendor in
12209 sni)
12210 shlibpath_overrides_runpath=no
12211 need_lib_prefix=no
12212 runpath_var=LD_RUN_PATH
12214 siemens)
12215 need_lib_prefix=no
12217 motorola)
12218 need_lib_prefix=no
12219 need_version=no
12220 shlibpath_overrides_runpath=no
12221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12223 esac
12226 sysv4*MP*)
12227 if test -d /usr/nec ;then
12228 version_type=linux
12229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12230 soname_spec='$libname${shared_ext}.$major'
12231 shlibpath_var=LD_LIBRARY_PATH
12235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12236 version_type=freebsd-elf
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes
12243 hardcode_into_libs=yes
12244 if test "$with_gnu_ld" = yes; then
12245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12246 else
12247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12248 case $host_os in
12249 sco3.2v5*)
12250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12252 esac
12254 sys_lib_dlsearch_path_spec='/usr/lib'
12257 tpf*)
12258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12259 version_type=linux
12260 need_lib_prefix=no
12261 need_version=no
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12268 uts4*)
12269 version_type=linux
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12276 dynamic_linker=no
12278 esac
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12280 $as_echo "$dynamic_linker" >&6; }
12281 test "$dynamic_linker" = no && can_build_shared=no
12283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12284 if test "$GCC" = yes; then
12285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12388 hardcode_action=
12389 if test -n "$hardcode_libdir_flag_spec" ||
12390 test -n "$runpath_var" ||
12391 test "X$hardcode_automatic" = "Xyes" ; then
12393 # We can hardcode non-existent directories.
12394 if test "$hardcode_direct" != no &&
12395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12396 # have to relink, otherwise we might link with an installed library
12397 # when we should be linking with a yet-to-be-installed one
12398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12399 test "$hardcode_minus_L" != no; then
12400 # Linking always hardcodes the temporary library directory.
12401 hardcode_action=relink
12402 else
12403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12404 hardcode_action=immediate
12406 else
12407 # We cannot hardcode anything, or else we can only hardcode existing
12408 # directories.
12409 hardcode_action=unsupported
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12412 $as_echo "$hardcode_action" >&6; }
12414 if test "$hardcode_action" = relink ||
12415 test "$inherit_rpath" = yes; then
12416 # Fast installation is not supported
12417 enable_fast_install=no
12418 elif test "$shlibpath_overrides_runpath" = yes ||
12419 test "$enable_shared" = no; then
12420 # Fast installation is not necessary
12421 enable_fast_install=needless
12429 if test "x$enable_dlopen" != xyes; then
12430 enable_dlopen=unknown
12431 enable_dlopen_self=unknown
12432 enable_dlopen_self_static=unknown
12433 else
12434 lt_cv_dlopen=no
12435 lt_cv_dlopen_libs=
12437 case $host_os in
12438 beos*)
12439 lt_cv_dlopen="load_add_on"
12440 lt_cv_dlopen_libs=
12441 lt_cv_dlopen_self=yes
12444 mingw* | pw32* | cegcc*)
12445 lt_cv_dlopen="LoadLibrary"
12446 lt_cv_dlopen_libs=
12449 cygwin*)
12450 lt_cv_dlopen="dlopen"
12451 lt_cv_dlopen_libs=
12454 darwin*)
12455 # if libdl is installed we need to link against it
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12458 if ${ac_cv_lib_dl_dlopen+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl $LIBS"
12463 if test x$gcc_no_link = xyes; then
12464 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char dlopen ();
12477 main ()
12479 return dlopen ();
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_lib_dl_dlopen=yes
12486 else
12487 ac_cv_lib_dl_dlopen=no
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_check_lib_save_LIBS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12497 else
12499 lt_cv_dlopen="dyld"
12500 lt_cv_dlopen_libs=
12501 lt_cv_dlopen_self=yes
12508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12509 if test "x$ac_cv_func_shl_load" = xyes; then :
12510 lt_cv_dlopen="shl_load"
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12514 if ${ac_cv_lib_dld_shl_load+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-ldld $LIBS"
12519 if test x$gcc_no_link = xyes; then
12520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char shl_load ();
12533 main ()
12535 return shl_load ();
12537 return 0;
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_lib_dld_shl_load=yes
12542 else
12543 ac_cv_lib_dld_shl_load=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12550 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12551 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12552 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12553 else
12554 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12555 if test "x$ac_cv_func_dlopen" = xyes; then :
12556 lt_cv_dlopen="dlopen"
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12560 if ${ac_cv_lib_dl_dlopen+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 ac_check_lib_save_LIBS=$LIBS
12564 LIBS="-ldl $LIBS"
12565 if test x$gcc_no_link = xyes; then
12566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char dlopen ();
12579 main ()
12581 return dlopen ();
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 ac_cv_lib_dl_dlopen=yes
12588 else
12589 ac_cv_lib_dl_dlopen=no
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12601 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12602 if ${ac_cv_lib_svld_dlopen+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lsvld $LIBS"
12607 if test x$gcc_no_link = xyes; then
12608 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char dlopen ();
12621 main ()
12623 return dlopen ();
12625 return 0;
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 ac_cv_lib_svld_dlopen=yes
12630 else
12631 ac_cv_lib_svld_dlopen=no
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12638 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12639 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12643 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12644 if ${ac_cv_lib_dld_dld_link+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-ldld $LIBS"
12649 if test x$gcc_no_link = xyes; then
12650 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12658 #ifdef __cplusplus
12659 extern "C"
12660 #endif
12661 char dld_link ();
12663 main ()
12665 return dld_link ();
12667 return 0;
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_lib_dld_dld_link=yes
12672 else
12673 ac_cv_lib_dld_dld_link=no
12675 rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12680 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12681 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12682 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12701 esac
12703 if test "x$lt_cv_dlopen" != xno; then
12704 enable_dlopen=yes
12705 else
12706 enable_dlopen=no
12709 case $lt_cv_dlopen in
12710 dlopen)
12711 save_CPPFLAGS="$CPPFLAGS"
12712 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12714 save_LDFLAGS="$LDFLAGS"
12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12717 save_LIBS="$LIBS"
12718 LIBS="$lt_cv_dlopen_libs $LIBS"
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12721 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12722 if ${lt_cv_dlopen_self+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 if test "$cross_compiling" = yes; then :
12726 lt_cv_dlopen_self=cross
12727 else
12728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729 lt_status=$lt_dlunknown
12730 cat > conftest.$ac_ext <<_LT_EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12734 #if HAVE_DLFCN_H
12735 #include <dlfcn.h>
12736 #endif
12738 #include <stdio.h>
12740 #ifdef RTLD_GLOBAL
12741 # define LT_DLGLOBAL RTLD_GLOBAL
12742 #else
12743 # ifdef DL_GLOBAL
12744 # define LT_DLGLOBAL DL_GLOBAL
12745 # else
12746 # define LT_DLGLOBAL 0
12747 # endif
12748 #endif
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751 find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12753 # ifdef RTLD_LAZY
12754 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12755 # else
12756 # ifdef DL_LAZY
12757 # define LT_DLLAZY_OR_NOW DL_LAZY
12758 # else
12759 # ifdef RTLD_NOW
12760 # define LT_DLLAZY_OR_NOW RTLD_NOW
12761 # else
12762 # ifdef DL_NOW
12763 # define LT_DLLAZY_OR_NOW DL_NOW
12764 # else
12765 # define LT_DLLAZY_OR_NOW 0
12766 # endif
12767 # endif
12768 # endif
12769 # endif
12770 #endif
12772 /* When -fvisbility=hidden is used, assume the code has been annotated
12773 correspondingly for the symbols needed. */
12774 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12775 void fnord () __attribute__((visibility("default")));
12776 #endif
12778 void fnord () { int i=42; }
12779 int main ()
12781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12782 int status = $lt_dlunknown;
12784 if (self)
12786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12787 else
12789 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12790 else puts (dlerror ());
12792 /* dlclose (self); */
12794 else
12795 puts (dlerror ());
12797 return status;
12799 _LT_EOF
12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12801 (eval $ac_link) 2>&5
12802 ac_status=$?
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12805 (./conftest; exit; ) >&5 2>/dev/null
12806 lt_status=$?
12807 case x$lt_status in
12808 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12809 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12810 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12811 esac
12812 else :
12813 # compilation failed
12814 lt_cv_dlopen_self=no
12817 rm -fr conftest*
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12822 $as_echo "$lt_cv_dlopen_self" >&6; }
12824 if test "x$lt_cv_dlopen_self" = xyes; then
12825 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12827 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12828 if ${lt_cv_dlopen_self_static+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 if test "$cross_compiling" = yes; then :
12832 lt_cv_dlopen_self_static=cross
12833 else
12834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835 lt_status=$lt_dlunknown
12836 cat > conftest.$ac_ext <<_LT_EOF
12837 #line 12837 "configure"
12838 #include "confdefs.h"
12840 #if HAVE_DLFCN_H
12841 #include <dlfcn.h>
12842 #endif
12844 #include <stdio.h>
12846 #ifdef RTLD_GLOBAL
12847 # define LT_DLGLOBAL RTLD_GLOBAL
12848 #else
12849 # ifdef DL_GLOBAL
12850 # define LT_DLGLOBAL DL_GLOBAL
12851 # else
12852 # define LT_DLGLOBAL 0
12853 # endif
12854 #endif
12856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857 find out it does not work in some platform. */
12858 #ifndef LT_DLLAZY_OR_NOW
12859 # ifdef RTLD_LAZY
12860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12861 # else
12862 # ifdef DL_LAZY
12863 # define LT_DLLAZY_OR_NOW DL_LAZY
12864 # else
12865 # ifdef RTLD_NOW
12866 # define LT_DLLAZY_OR_NOW RTLD_NOW
12867 # else
12868 # ifdef DL_NOW
12869 # define LT_DLLAZY_OR_NOW DL_NOW
12870 # else
12871 # define LT_DLLAZY_OR_NOW 0
12872 # endif
12873 # endif
12874 # endif
12875 # endif
12876 #endif
12878 /* When -fvisbility=hidden is used, assume the code has been annotated
12879 correspondingly for the symbols needed. */
12880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12881 void fnord () __attribute__((visibility("default")));
12882 #endif
12884 void fnord () { int i=42; }
12885 int main ()
12887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12888 int status = $lt_dlunknown;
12890 if (self)
12892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12893 else
12895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896 else puts (dlerror ());
12898 /* dlclose (self); */
12900 else
12901 puts (dlerror ());
12903 return status;
12905 _LT_EOF
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12907 (eval $ac_link) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12911 (./conftest; exit; ) >&5 2>/dev/null
12912 lt_status=$?
12913 case x$lt_status in
12914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12916 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12917 esac
12918 else :
12919 # compilation failed
12920 lt_cv_dlopen_self_static=no
12923 rm -fr conftest*
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12928 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12931 CPPFLAGS="$save_CPPFLAGS"
12932 LDFLAGS="$save_LDFLAGS"
12933 LIBS="$save_LIBS"
12935 esac
12937 case $lt_cv_dlopen_self in
12938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12939 *) enable_dlopen_self=unknown ;;
12940 esac
12942 case $lt_cv_dlopen_self_static in
12943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12944 *) enable_dlopen_self_static=unknown ;;
12945 esac
12964 striplib=
12965 old_striplib=
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12967 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12968 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972 $as_echo "yes" >&6; }
12973 else
12974 # FIXME - insert some real tests, host_os isn't really good enough
12975 case $host_os in
12976 darwin*)
12977 if test -n "$STRIP" ; then
12978 striplib="$STRIP -x"
12979 old_striplib="$STRIP -S"
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 $as_echo "yes" >&6; }
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12991 esac
13005 # Report which library types will actually be built
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13007 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13009 $as_echo "$can_build_shared" >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13012 $as_echo_n "checking whether to build shared libraries... " >&6; }
13013 test "$can_build_shared" = "no" && enable_shared=no
13015 # On AIX, shared libraries and static libraries use the same namespace, and
13016 # are all built from PIC.
13017 case $host_os in
13018 aix3*)
13019 test "$enable_shared" = yes && enable_static=no
13020 if test -n "$RANLIB"; then
13021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13022 postinstall_cmds='$RANLIB $lib'
13026 aix[4-9]*)
13027 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13028 test "$enable_shared" = yes && enable_static=no
13031 esac
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13033 $as_echo "$enable_shared" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13036 $as_echo_n "checking whether to build static libraries... " >&6; }
13037 # Make sure either enable_shared or enable_static is yes.
13038 test "$enable_shared" = yes || enable_static=yes
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13040 $as_echo "$enable_static" >&6; }
13046 ac_ext=c
13047 ac_cpp='$CPP $CPPFLAGS'
13048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13052 CC="$lt_save_CC"
13066 ac_config_commands="$ac_config_commands libtool"
13071 # Only expand once:
13074 LIBM=
13075 case $host in
13076 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13077 # These system don't have libm, or don't need it
13079 *-ncr-sysv4.3*)
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13081 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13082 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-lmw $LIBS"
13087 if test x$gcc_no_link = xyes; then
13088 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char _mwvalidcheckl ();
13101 main ()
13103 return _mwvalidcheckl ();
13105 return 0;
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 ac_cv_lib_mw__mwvalidcheckl=yes
13110 else
13111 ac_cv_lib_mw__mwvalidcheckl=no
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 LIBS=$ac_check_lib_save_LIBS
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13118 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13119 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13120 LIBM="-lmw"
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13124 $as_echo_n "checking for cos in -lm... " >&6; }
13125 if ${ac_cv_lib_m_cos+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lm $LIBS"
13130 if test x$gcc_no_link = xyes; then
13131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char cos ();
13144 main ()
13146 return cos ();
13148 return 0;
13150 _ACEOF
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_m_cos=yes
13153 else
13154 ac_cv_lib_m_cos=no
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13161 $as_echo "$ac_cv_lib_m_cos" >&6; }
13162 if test "x$ac_cv_lib_m_cos" = xyes; then :
13163 LIBM="$LIBM -lm"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13169 $as_echo_n "checking for cos in -lm... " >&6; }
13170 if ${ac_cv_lib_m_cos+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lm $LIBS"
13175 if test x$gcc_no_link = xyes; then
13176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char cos ();
13189 main ()
13191 return cos ();
13193 return 0;
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_m_cos=yes
13198 else
13199 ac_cv_lib_m_cos=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13206 $as_echo "$ac_cv_lib_m_cos" >&6; }
13207 if test "x$ac_cv_lib_m_cos" = xyes; then :
13208 LIBM="-lm"
13212 esac
13218 case $host in
13219 *-cygwin* | *-mingw*)
13220 # 'host' will be top-level target in the case of a target lib,
13221 # we must compare to with_cross_host to decide if this is a native
13222 # or cross-compiler and select where to install dlls appropriately.
13223 if test -n "$with_cross_host" &&
13224 test x"$with_cross_host" != x"no"; then
13225 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13226 else
13227 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13231 lt_host_flags=
13233 esac
13239 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13241 # We need gfortran to compile parts of the library
13242 #AC_PROG_FC(gfortran)
13243 FC="$GFORTRAN"
13244 ac_ext=${ac_fc_srcext-f}
13245 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13246 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13247 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13248 if test -n "$ac_tool_prefix"; then
13249 for ac_prog in gfortran
13251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254 $as_echo_n "checking for $ac_word... " >&6; }
13255 if ${ac_cv_prog_FC+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 if test -n "$FC"; then
13259 ac_cv_prog_FC="$FC" # Let the user override the test.
13260 else
13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262 for as_dir in $PATH
13264 IFS=$as_save_IFS
13265 test -z "$as_dir" && as_dir=.
13266 for ac_exec_ext in '' $ac_executable_extensions; do
13267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13268 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270 break 2
13272 done
13273 done
13274 IFS=$as_save_IFS
13278 FC=$ac_cv_prog_FC
13279 if test -n "$FC"; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13281 $as_echo "$FC" >&6; }
13282 else
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13288 test -n "$FC" && break
13289 done
13291 if test -z "$FC"; then
13292 ac_ct_FC=$FC
13293 for ac_prog in gfortran
13295 # Extract the first word of "$ac_prog", so it can be a program name with args.
13296 set dummy $ac_prog; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 if test -n "$ac_ct_FC"; then
13303 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13304 else
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13308 IFS=$as_save_IFS
13309 test -z "$as_dir" && as_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13312 ac_cv_prog_ac_ct_FC="$ac_prog"
13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314 break 2
13316 done
13317 done
13318 IFS=$as_save_IFS
13322 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13323 if test -n "$ac_ct_FC"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13325 $as_echo "$ac_ct_FC" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13332 test -n "$ac_ct_FC" && break
13333 done
13335 if test "x$ac_ct_FC" = x; then
13336 FC=""
13337 else
13338 case $cross_compiling:$ac_tool_warned in
13339 yes:)
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342 ac_tool_warned=yes ;;
13343 esac
13344 FC=$ac_ct_FC
13349 # Provide some information about the compiler.
13350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13351 set X $ac_compile
13352 ac_compiler=$2
13353 for ac_option in --version -v -V -qversion; do
13354 { { ac_try="$ac_compiler $ac_option >&5"
13355 case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358 esac
13359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13360 $as_echo "$ac_try_echo"; } >&5
13361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13362 ac_status=$?
13363 if test -s conftest.err; then
13364 sed '10a\
13365 ... rest of stderr output deleted ...
13366 10q' conftest.err >conftest.er1
13367 cat conftest.er1 >&5
13369 rm -f conftest.er1 conftest.err
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }
13372 done
13373 rm -f a.out
13375 # If we don't use `.F' as extension, the preprocessor is not run on the
13376 # input file. (Note that this only needs to work for GNU compilers.)
13377 ac_save_ext=$ac_ext
13378 ac_ext=F
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13380 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13381 if ${ac_cv_fc_compiler_gnu+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 cat > conftest.$ac_ext <<_ACEOF
13385 program main
13386 #ifndef __GNUC__
13387 choke me
13388 #endif
13391 _ACEOF
13392 if ac_fn_fc_try_compile "$LINENO"; then :
13393 ac_compiler_gnu=yes
13394 else
13395 ac_compiler_gnu=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13402 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13403 ac_ext=$ac_save_ext
13404 ac_test_FCFLAGS=${FCFLAGS+set}
13405 ac_save_FCFLAGS=$FCFLAGS
13406 FCFLAGS=
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13408 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13409 if ${ac_cv_prog_fc_g+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 FCFLAGS=-g
13413 cat > conftest.$ac_ext <<_ACEOF
13414 program main
13417 _ACEOF
13418 if ac_fn_fc_try_compile "$LINENO"; then :
13419 ac_cv_prog_fc_g=yes
13420 else
13421 ac_cv_prog_fc_g=no
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13427 $as_echo "$ac_cv_prog_fc_g" >&6; }
13428 if test "$ac_test_FCFLAGS" = set; then
13429 FCFLAGS=$ac_save_FCFLAGS
13430 elif test $ac_cv_prog_fc_g = yes; then
13431 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13432 FCFLAGS="-g -O2"
13433 else
13434 FCFLAGS="-g"
13436 else
13437 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13438 FCFLAGS="-O2"
13439 else
13440 FCFLAGS=
13444 if test $ac_compiler_gnu = yes; then
13445 GFC=yes
13446 else
13447 GFC=
13449 ac_ext=c
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13455 ac_ext=${ac_fc_srcext-f}
13456 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13457 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13458 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13461 if test -z "$FC" || test "X$FC" = "Xno"; then
13462 _lt_disable_FC=yes
13465 archive_cmds_need_lc_FC=no
13466 allow_undefined_flag_FC=
13467 always_export_symbols_FC=no
13468 archive_expsym_cmds_FC=
13469 export_dynamic_flag_spec_FC=
13470 hardcode_direct_FC=no
13471 hardcode_direct_absolute_FC=no
13472 hardcode_libdir_flag_spec_FC=
13473 hardcode_libdir_flag_spec_ld_FC=
13474 hardcode_libdir_separator_FC=
13475 hardcode_minus_L_FC=no
13476 hardcode_automatic_FC=no
13477 inherit_rpath_FC=no
13478 module_cmds_FC=
13479 module_expsym_cmds_FC=
13480 link_all_deplibs_FC=unknown
13481 old_archive_cmds_FC=$old_archive_cmds
13482 reload_flag_FC=$reload_flag
13483 reload_cmds_FC=$reload_cmds
13484 no_undefined_flag_FC=
13485 whole_archive_flag_spec_FC=
13486 enable_shared_with_static_runtimes_FC=no
13488 # Source file extension for fc test sources.
13489 ac_ext=${ac_fc_srcext-f}
13491 # Object file extension for compiled fc test sources.
13492 objext=o
13493 objext_FC=$objext
13495 # No sense in running all these tests if we already determined that
13496 # the FC compiler isn't working. Some variables (like enable_shared)
13497 # are currently assumed to apply to all compilers on this platform,
13498 # and will be corrupted by setting them based on a non-working compiler.
13499 if test "$_lt_disable_FC" != yes; then
13500 # Code to be used in simple compile tests
13501 lt_simple_compile_test_code="\
13502 subroutine t
13503 return
13507 # Code to be used in simple link tests
13508 lt_simple_link_test_code="\
13509 program t
13513 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13520 # If no C compiler was specified, use CC.
13521 LTCC=${LTCC-"$CC"}
13523 # If no C compiler flags were specified, use CFLAGS.
13524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13526 # Allow CC to be a program name with arguments.
13527 compiler=$CC
13530 # save warnings/boilerplate of simple test code
13531 ac_outfile=conftest.$ac_objext
13532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13534 _lt_compiler_boilerplate=`cat conftest.err`
13535 $RM conftest*
13537 ac_outfile=conftest.$ac_objext
13538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13540 _lt_linker_boilerplate=`cat conftest.err`
13541 $RM -r conftest*
13544 # Allow CC to be a program name with arguments.
13545 lt_save_CC="$CC"
13546 lt_save_GCC=$GCC
13547 CC=${FC-"f95"}
13548 compiler=$CC
13549 GCC=$ac_cv_fc_compiler_gnu
13551 compiler_FC=$CC
13552 for cc_temp in $compiler""; do
13553 case $cc_temp in
13554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556 \-*) ;;
13557 *) break;;
13558 esac
13559 done
13560 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13563 if test -n "$compiler"; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13565 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13567 $as_echo "$can_build_shared" >&6; }
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13570 $as_echo_n "checking whether to build shared libraries... " >&6; }
13571 test "$can_build_shared" = "no" && enable_shared=no
13573 # On AIX, shared libraries and static libraries use the same namespace, and
13574 # are all built from PIC.
13575 case $host_os in
13576 aix3*)
13577 test "$enable_shared" = yes && enable_static=no
13578 if test -n "$RANLIB"; then
13579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13580 postinstall_cmds='$RANLIB $lib'
13583 aix[4-9]*)
13584 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13585 test "$enable_shared" = yes && enable_static=no
13588 esac
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13590 $as_echo "$enable_shared" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13593 $as_echo_n "checking whether to build static libraries... " >&6; }
13594 # Make sure either enable_shared or enable_static is yes.
13595 test "$enable_shared" = yes || enable_static=yes
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13597 $as_echo "$enable_static" >&6; }
13599 GCC_FC="$ac_cv_fc_compiler_gnu"
13600 LD_FC="$LD"
13602 ## CAVEAT EMPTOR:
13603 ## There is no encapsulation within the following macros, do not change
13604 ## the running order or otherwise move them around unless you know exactly
13605 ## what you are doing...
13606 # Dependencies to place before and after the object being linked:
13607 predep_objects_FC=
13608 postdep_objects_FC=
13609 predeps_FC=
13610 postdeps_FC=
13611 compiler_lib_search_path_FC=
13613 cat > conftest.$ac_ext <<_LT_EOF
13614 subroutine foo
13615 implicit none
13616 integer a
13618 return
13620 _LT_EOF
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 # Parse the compiler output and extract the necessary
13628 # objects, libraries and library flags.
13630 # Sentinel used to keep track of whether or not we are before
13631 # the conftest object file.
13632 pre_test_object_deps_done=no
13634 for p in `eval "$output_verbose_link_cmd"`; do
13635 case $p in
13637 -L* | -R* | -l*)
13638 # Some compilers place space between "-{L,R}" and the path.
13639 # Remove the space.
13640 if test $p = "-L" ||
13641 test $p = "-R"; then
13642 prev=$p
13643 continue
13644 else
13645 prev=
13648 if test "$pre_test_object_deps_done" = no; then
13649 case $p in
13650 -L* | -R*)
13651 # Internal compiler library paths should come after those
13652 # provided the user. The postdeps already come after the
13653 # user supplied libs so there is no need to process them.
13654 if test -z "$compiler_lib_search_path_FC"; then
13655 compiler_lib_search_path_FC="${prev}${p}"
13656 else
13657 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13660 # The "-l" case would never come before the object being
13661 # linked, so don't bother handling this case.
13662 esac
13663 else
13664 if test -z "$postdeps_FC"; then
13665 postdeps_FC="${prev}${p}"
13666 else
13667 postdeps_FC="${postdeps_FC} ${prev}${p}"
13672 *.$objext)
13673 # This assumes that the test object file only shows up
13674 # once in the compiler output.
13675 if test "$p" = "conftest.$objext"; then
13676 pre_test_object_deps_done=yes
13677 continue
13680 if test "$pre_test_object_deps_done" = no; then
13681 if test -z "$predep_objects_FC"; then
13682 predep_objects_FC="$p"
13683 else
13684 predep_objects_FC="$predep_objects_FC $p"
13686 else
13687 if test -z "$postdep_objects_FC"; then
13688 postdep_objects_FC="$p"
13689 else
13690 postdep_objects_FC="$postdep_objects_FC $p"
13695 *) ;; # Ignore the rest.
13697 esac
13698 done
13700 # Clean up.
13701 rm -f a.out a.exe
13702 else
13703 echo "libtool.m4: error: problem compiling FC test program"
13706 $RM -f confest.$objext
13708 # PORTME: override above test on systems where it is broken
13711 case " $postdeps_FC " in
13712 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13713 esac
13714 compiler_lib_search_dirs_FC=
13715 if test -n "${compiler_lib_search_path_FC}"; then
13716 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13749 lt_prog_compiler_wl_FC=
13750 lt_prog_compiler_pic_FC=
13751 lt_prog_compiler_static_FC=
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13754 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13756 if test "$GCC" = yes; then
13757 lt_prog_compiler_wl_FC='-Wl,'
13758 lt_prog_compiler_static_FC='-static'
13760 case $host_os in
13761 aix*)
13762 # All AIX code is PIC.
13763 if test "$host_cpu" = ia64; then
13764 # AIX 5 now supports IA64 processor
13765 lt_prog_compiler_static_FC='-Bstatic'
13767 lt_prog_compiler_pic_FC='-fPIC'
13770 amigaos*)
13771 case $host_cpu in
13772 powerpc)
13773 # see comment about AmigaOS4 .so support
13774 lt_prog_compiler_pic_FC='-fPIC'
13776 m68k)
13777 # FIXME: we need at least 68020 code to build shared libraries, but
13778 # adding the `-m68020' flag to GCC prevents building anything better,
13779 # like `-m68040'.
13780 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13782 esac
13785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13786 # PIC is the default for these OSes.
13789 mingw* | cygwin* | pw32* | os2* | cegcc*)
13790 # This hack is so that the source file can tell whether it is being
13791 # built for inclusion in a dll (and should export symbols for example).
13792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13793 # (--disable-auto-import) libraries
13794 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13797 darwin* | rhapsody*)
13798 # PIC is the default on this platform
13799 # Common symbols not allowed in MH_DYLIB files
13800 lt_prog_compiler_pic_FC='-fno-common'
13803 haiku*)
13804 # PIC is the default for Haiku.
13805 # The "-static" flag exists, but is broken.
13806 lt_prog_compiler_static_FC=
13809 hpux*)
13810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13812 # sets the default TLS model and affects inlining.
13813 case $host_cpu in
13814 hppa*64*)
13815 # +Z the default
13818 lt_prog_compiler_pic_FC='-fPIC'
13820 esac
13823 interix[3-9]*)
13824 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13825 # Instead, we relocate shared libraries at runtime.
13828 msdosdjgpp*)
13829 # Just because we use GCC doesn't mean we suddenly get shared libraries
13830 # on systems that don't support them.
13831 lt_prog_compiler_can_build_shared_FC=no
13832 enable_shared=no
13835 *nto* | *qnx*)
13836 # QNX uses GNU C++, but need to define -shared option too, otherwise
13837 # it will coredump.
13838 lt_prog_compiler_pic_FC='-fPIC -shared'
13841 sysv4*MP*)
13842 if test -d /usr/nec; then
13843 lt_prog_compiler_pic_FC=-Kconform_pic
13848 lt_prog_compiler_pic_FC='-fPIC'
13850 esac
13852 case $cc_basename in
13853 nvcc*) # Cuda Compiler Driver 2.2
13854 lt_prog_compiler_wl_FC='-Xlinker '
13855 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13857 esac
13858 else
13859 # PORTME Check for flag to pass linker flags through the system compiler.
13860 case $host_os in
13861 aix*)
13862 lt_prog_compiler_wl_FC='-Wl,'
13863 if test "$host_cpu" = ia64; then
13864 # AIX 5 now supports IA64 processor
13865 lt_prog_compiler_static_FC='-Bstatic'
13866 else
13867 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13871 mingw* | cygwin* | pw32* | os2* | cegcc*)
13872 # This hack is so that the source file can tell whether it is being
13873 # built for inclusion in a dll (and should export symbols for example).
13874 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13877 hpux9* | hpux10* | hpux11*)
13878 lt_prog_compiler_wl_FC='-Wl,'
13879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13880 # not for PA HP-UX.
13881 case $host_cpu in
13882 hppa*64*|ia64*)
13883 # +Z the default
13886 lt_prog_compiler_pic_FC='+Z'
13888 esac
13889 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13890 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13893 irix5* | irix6* | nonstopux*)
13894 lt_prog_compiler_wl_FC='-Wl,'
13895 # PIC (with -KPIC) is the default.
13896 lt_prog_compiler_static_FC='-non_shared'
13899 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13900 case $cc_basename in
13901 # old Intel for x86_64 which still supported -KPIC.
13902 ecc*)
13903 lt_prog_compiler_wl_FC='-Wl,'
13904 lt_prog_compiler_pic_FC='-KPIC'
13905 lt_prog_compiler_static_FC='-static'
13907 # icc used to be incompatible with GCC.
13908 # ICC 10 doesn't accept -KPIC any more.
13909 icc* | ifort*)
13910 lt_prog_compiler_wl_FC='-Wl,'
13911 lt_prog_compiler_pic_FC='-fPIC'
13912 lt_prog_compiler_static_FC='-static'
13914 # Lahey Fortran 8.1.
13915 lf95*)
13916 lt_prog_compiler_wl_FC='-Wl,'
13917 lt_prog_compiler_pic_FC='--shared'
13918 lt_prog_compiler_static_FC='--static'
13920 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13921 # Portland Group compilers (*not* the Pentium gcc compiler,
13922 # which looks to be a dead project)
13923 lt_prog_compiler_wl_FC='-Wl,'
13924 lt_prog_compiler_pic_FC='-fpic'
13925 lt_prog_compiler_static_FC='-Bstatic'
13927 ccc*)
13928 lt_prog_compiler_wl_FC='-Wl,'
13929 # All Alpha code is PIC.
13930 lt_prog_compiler_static_FC='-non_shared'
13932 xl* | bgxl* | bgf* | mpixl*)
13933 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13934 lt_prog_compiler_wl_FC='-Wl,'
13935 lt_prog_compiler_pic_FC='-qpic'
13936 lt_prog_compiler_static_FC='-qstaticlink'
13939 case `$CC -V 2>&1 | sed 5q` in
13940 *Sun\ F* | *Sun*Fortran*)
13941 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13942 lt_prog_compiler_pic_FC='-KPIC'
13943 lt_prog_compiler_static_FC='-Bstatic'
13944 lt_prog_compiler_wl_FC=''
13946 *Sun\ C*)
13947 # Sun C 5.9
13948 lt_prog_compiler_pic_FC='-KPIC'
13949 lt_prog_compiler_static_FC='-Bstatic'
13950 lt_prog_compiler_wl_FC='-Wl,'
13952 esac
13954 esac
13957 newsos6)
13958 lt_prog_compiler_pic_FC='-KPIC'
13959 lt_prog_compiler_static_FC='-Bstatic'
13962 *nto* | *qnx*)
13963 # QNX uses GNU C++, but need to define -shared option too, otherwise
13964 # it will coredump.
13965 lt_prog_compiler_pic_FC='-fPIC -shared'
13968 osf3* | osf4* | osf5*)
13969 lt_prog_compiler_wl_FC='-Wl,'
13970 # All OSF/1 code is PIC.
13971 lt_prog_compiler_static_FC='-non_shared'
13974 rdos*)
13975 lt_prog_compiler_static_FC='-non_shared'
13978 solaris*)
13979 lt_prog_compiler_pic_FC='-KPIC'
13980 lt_prog_compiler_static_FC='-Bstatic'
13981 case $cc_basename in
13982 f77* | f90* | f95*)
13983 lt_prog_compiler_wl_FC='-Qoption ld ';;
13985 lt_prog_compiler_wl_FC='-Wl,';;
13986 esac
13989 sunos4*)
13990 lt_prog_compiler_wl_FC='-Qoption ld '
13991 lt_prog_compiler_pic_FC='-PIC'
13992 lt_prog_compiler_static_FC='-Bstatic'
13995 sysv4 | sysv4.2uw2* | sysv4.3*)
13996 lt_prog_compiler_wl_FC='-Wl,'
13997 lt_prog_compiler_pic_FC='-KPIC'
13998 lt_prog_compiler_static_FC='-Bstatic'
14001 sysv4*MP*)
14002 if test -d /usr/nec ;then
14003 lt_prog_compiler_pic_FC='-Kconform_pic'
14004 lt_prog_compiler_static_FC='-Bstatic'
14008 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14009 lt_prog_compiler_wl_FC='-Wl,'
14010 lt_prog_compiler_pic_FC='-KPIC'
14011 lt_prog_compiler_static_FC='-Bstatic'
14014 unicos*)
14015 lt_prog_compiler_wl_FC='-Wl,'
14016 lt_prog_compiler_can_build_shared_FC=no
14019 uts4*)
14020 lt_prog_compiler_pic_FC='-pic'
14021 lt_prog_compiler_static_FC='-Bstatic'
14025 lt_prog_compiler_can_build_shared_FC=no
14027 esac
14030 case $host_os in
14031 # For platforms which do not support PIC, -DPIC is meaningless:
14032 *djgpp*)
14033 lt_prog_compiler_pic_FC=
14036 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14038 esac
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
14040 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
14045 # Check to make sure the PIC flag actually works.
14047 if test -n "$lt_prog_compiler_pic_FC"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14049 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
14050 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 lt_cv_prog_compiler_pic_works_FC=no
14054 ac_outfile=conftest.$ac_objext
14055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14056 lt_compiler_flag="$lt_prog_compiler_pic_FC"
14057 # Insert the option either (1) after the last *FLAGS variable, or
14058 # (2) before a word containing "conftest.", or (3) at the end.
14059 # Note that $ac_compile itself does not contain backslashes and begins
14060 # with a dollar sign (not a hyphen), so the echo should work correctly.
14061 # The option is referenced via a variable to avoid confusing sed.
14062 lt_compile=`echo "$ac_compile" | $SED \
14063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14065 -e 's:$: $lt_compiler_flag:'`
14066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14067 (eval "$lt_compile" 2>conftest.err)
14068 ac_status=$?
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 if (exit $ac_status) && test -s "$ac_outfile"; then
14072 # The compiler can only warn and ignore the option if not recognized
14073 # So say no if there are warnings other than the usual output.
14074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14077 lt_cv_prog_compiler_pic_works_FC=yes
14080 $RM conftest*
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14084 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
14086 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
14087 case $lt_prog_compiler_pic_FC in
14088 "" | " "*) ;;
14089 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14090 esac
14091 else
14092 lt_prog_compiler_pic_FC=
14093 lt_prog_compiler_can_build_shared_FC=no
14101 # Check to make sure the static flag actually works.
14103 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14106 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 lt_cv_prog_compiler_static_works_FC=no
14110 save_LDFLAGS="$LDFLAGS"
14111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14114 # The linker can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 if test -s conftest.err; then
14117 # Append any errors to the config.log.
14118 cat conftest.err 1>&5
14119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121 if diff conftest.exp conftest.er2 >/dev/null; then
14122 lt_cv_prog_compiler_static_works_FC=yes
14124 else
14125 lt_cv_prog_compiler_static_works_FC=yes
14128 $RM -r conftest*
14129 LDFLAGS="$save_LDFLAGS"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14133 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
14135 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
14137 else
14138 lt_prog_compiler_static_FC=
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14146 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 lt_cv_prog_compiler_c_o_FC=no
14150 $RM -r conftest 2>/dev/null
14151 mkdir conftest
14152 cd conftest
14153 mkdir out
14154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14156 lt_compiler_flag="-o out/conftest2.$ac_objext"
14157 # Insert the option either (1) after the last *FLAGS variable, or
14158 # (2) before a word containing "conftest.", or (3) at the end.
14159 # Note that $ac_compile itself does not contain backslashes and begins
14160 # with a dollar sign (not a hyphen), so the echo should work correctly.
14161 lt_compile=`echo "$ac_compile" | $SED \
14162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14164 -e 's:$: $lt_compiler_flag:'`
14165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14166 (eval "$lt_compile" 2>out/conftest.err)
14167 ac_status=$?
14168 cat out/conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14171 then
14172 # The compiler can only warn and ignore the option if not recognized
14173 # So say no if there are warnings
14174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14177 lt_cv_prog_compiler_c_o_FC=yes
14180 chmod u+w . 2>&5
14181 $RM conftest*
14182 # SGI C++ compiler will create directory out/ii_files/ for
14183 # template instantiation
14184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14185 $RM out/* && rmdir out
14186 cd ..
14187 $RM -r conftest
14188 $RM conftest*
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14192 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14198 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 lt_cv_prog_compiler_c_o_FC=no
14202 $RM -r conftest 2>/dev/null
14203 mkdir conftest
14204 cd conftest
14205 mkdir out
14206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14208 lt_compiler_flag="-o out/conftest2.$ac_objext"
14209 # Insert the option either (1) after the last *FLAGS variable, or
14210 # (2) before a word containing "conftest.", or (3) at the end.
14211 # Note that $ac_compile itself does not contain backslashes and begins
14212 # with a dollar sign (not a hyphen), so the echo should work correctly.
14213 lt_compile=`echo "$ac_compile" | $SED \
14214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14216 -e 's:$: $lt_compiler_flag:'`
14217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14218 (eval "$lt_compile" 2>out/conftest.err)
14219 ac_status=$?
14220 cat out/conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14223 then
14224 # The compiler can only warn and ignore the option if not recognized
14225 # So say no if there are warnings
14226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14229 lt_cv_prog_compiler_c_o_FC=yes
14232 chmod u+w . 2>&5
14233 $RM conftest*
14234 # SGI C++ compiler will create directory out/ii_files/ for
14235 # template instantiation
14236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14237 $RM out/* && rmdir out
14238 cd ..
14239 $RM -r conftest
14240 $RM conftest*
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14244 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14249 hard_links="nottested"
14250 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14251 # do not overwrite the value of need_locks provided by the user
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14253 $as_echo_n "checking if we can lock with hard links... " >&6; }
14254 hard_links=yes
14255 $RM conftest*
14256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14257 touch conftest.a
14258 ln conftest.a conftest.b 2>&5 || hard_links=no
14259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14261 $as_echo "$hard_links" >&6; }
14262 if test "$hard_links" = no; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14264 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14265 need_locks=warn
14267 else
14268 need_locks=no
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14276 runpath_var=
14277 allow_undefined_flag_FC=
14278 always_export_symbols_FC=no
14279 archive_cmds_FC=
14280 archive_expsym_cmds_FC=
14281 compiler_needs_object_FC=no
14282 enable_shared_with_static_runtimes_FC=no
14283 export_dynamic_flag_spec_FC=
14284 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14285 hardcode_automatic_FC=no
14286 hardcode_direct_FC=no
14287 hardcode_direct_absolute_FC=no
14288 hardcode_libdir_flag_spec_FC=
14289 hardcode_libdir_flag_spec_ld_FC=
14290 hardcode_libdir_separator_FC=
14291 hardcode_minus_L_FC=no
14292 hardcode_shlibpath_var_FC=unsupported
14293 inherit_rpath_FC=no
14294 link_all_deplibs_FC=unknown
14295 module_cmds_FC=
14296 module_expsym_cmds_FC=
14297 old_archive_from_new_cmds_FC=
14298 old_archive_from_expsyms_cmds_FC=
14299 thread_safe_flag_spec_FC=
14300 whole_archive_flag_spec_FC=
14301 # include_expsyms should be a list of space-separated symbols to be *always*
14302 # included in the symbol list
14303 include_expsyms_FC=
14304 # exclude_expsyms can be an extended regexp of symbols to exclude
14305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14307 # as well as any symbol that contains `d'.
14308 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14310 # platforms (ab)use it in PIC code, but their linkers get confused if
14311 # the symbol is explicitly referenced. Since portable code cannot
14312 # rely on this symbol name, it's probably fine to never include it in
14313 # preloaded symbol tables.
14314 # Exclude shared library initialization/finalization symbols.
14315 extract_expsyms_cmds=
14317 case $host_os in
14318 cygwin* | mingw* | pw32* | cegcc*)
14319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320 # When not using gcc, we currently assume that we are using
14321 # Microsoft Visual C++.
14322 if test "$GCC" != yes; then
14323 with_gnu_ld=no
14326 interix*)
14327 # we just hope/assume this is gcc and not c89 (= MSVC++)
14328 with_gnu_ld=yes
14330 openbsd*)
14331 with_gnu_ld=no
14333 esac
14335 ld_shlibs_FC=yes
14337 # On some targets, GNU ld is compatible enough with the native linker
14338 # that we're better off using the native interface for both.
14339 lt_use_gnu_ld_interface=no
14340 if test "$with_gnu_ld" = yes; then
14341 case $host_os in
14342 aix*)
14343 # The AIX port of GNU ld has always aspired to compatibility
14344 # with the native linker. However, as the warning in the GNU ld
14345 # block says, versions before 2.19.5* couldn't really create working
14346 # shared libraries, regardless of the interface used.
14347 case `$LD -v 2>&1` in
14348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14352 lt_use_gnu_ld_interface=yes
14354 esac
14357 lt_use_gnu_ld_interface=yes
14359 esac
14362 if test "$lt_use_gnu_ld_interface" = yes; then
14363 # If archive_cmds runs LD, not CC, wlarc should be empty
14364 wlarc='${wl}'
14366 # Set some defaults for GNU ld with shared library support. These
14367 # are reset later if shared libraries are not supported. Putting them
14368 # here allows them to be overridden if necessary.
14369 runpath_var=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14374 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14375 else
14376 whole_archive_flag_spec_FC=
14378 supports_anon_versioning=no
14379 case `$LD -v 2>&1` in
14380 *GNU\ gold*) supports_anon_versioning=yes ;;
14381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14384 *\ 2.11.*) ;; # other 2.11 versions
14385 *) supports_anon_versioning=yes ;;
14386 esac
14388 # See if GNU ld supports shared libraries.
14389 case $host_os in
14390 aix[3-9]*)
14391 # On AIX/PPC, the GNU linker is very broken
14392 if test "$host_cpu" != ia64; then
14393 ld_shlibs_FC=no
14394 cat <<_LT_EOF 1>&2
14396 *** Warning: the GNU linker, at least up to release 2.19, is reported
14397 *** to be unable to reliably create shared libraries on AIX.
14398 *** Therefore, libtool is disabling shared libraries support. If you
14399 *** really care for shared libraries, you may want to install binutils
14400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14401 *** You will then need to restart the configuration process.
14403 _LT_EOF
14407 amigaos*)
14408 case $host_cpu in
14409 powerpc)
14410 # see comment about AmigaOS4 .so support
14411 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 archive_expsym_cmds_FC=''
14414 m68k)
14415 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)'
14416 hardcode_libdir_flag_spec_FC='-L$libdir'
14417 hardcode_minus_L_FC=yes
14419 esac
14422 beos*)
14423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14424 allow_undefined_flag_FC=unsupported
14425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14426 # support --undefined. This deserves some investigation. FIXME
14427 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14428 else
14429 ld_shlibs_FC=no
14433 cygwin* | mingw* | pw32* | cegcc*)
14434 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14435 # as there is no search path for DLLs.
14436 hardcode_libdir_flag_spec_FC='-L$libdir'
14437 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14438 allow_undefined_flag_FC=unsupported
14439 always_export_symbols_FC=no
14440 enable_shared_with_static_runtimes_FC=yes
14441 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14444 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14445 # If the export-symbols file already is a .def file (1st line
14446 # is EXPORTS), use it as is; otherwise, prepend...
14447 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14448 cp $export_symbols $output_objdir/$soname.def;
14449 else
14450 echo EXPORTS > $output_objdir/$soname.def;
14451 cat $export_symbols >> $output_objdir/$soname.def;
14453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14454 else
14455 ld_shlibs_FC=no
14459 haiku*)
14460 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 link_all_deplibs_FC=yes
14464 interix[3-9]*)
14465 hardcode_direct_FC=no
14466 hardcode_shlibpath_var_FC=no
14467 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14468 export_dynamic_flag_spec_FC='${wl}-E'
14469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14470 # Instead, shared libraries are loaded at an image base (0x10000000 by
14471 # default) and relocated if they conflict, which is a slow very memory
14472 # consuming and fragmenting process. To avoid this, we pick a random,
14473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14475 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'
14476 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'
14479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14480 tmp_diet=no
14481 if test "$host_os" = linux-dietlibc; then
14482 case $cc_basename in
14483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14484 esac
14486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14487 && test "$tmp_diet" = no
14488 then
14489 tmp_addflag=' $pic_flag'
14490 tmp_sharedflag='-shared'
14491 case $cc_basename,$host_cpu in
14492 pgcc*) # Portland Group C compiler
14493 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'
14494 tmp_addflag=' $pic_flag'
14496 pgf77* | pgf90* | pgf95* | pgfortran*)
14497 # Portland Group f77 and f90 compilers
14498 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'
14499 tmp_addflag=' $pic_flag -Mnomain' ;;
14500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14501 tmp_addflag=' -i_dynamic' ;;
14502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14503 tmp_addflag=' -i_dynamic -nofor_main' ;;
14504 ifc* | ifort*) # Intel Fortran compiler
14505 tmp_addflag=' -nofor_main' ;;
14506 lf95*) # Lahey Fortran 8.1
14507 whole_archive_flag_spec_FC=
14508 tmp_sharedflag='--shared' ;;
14509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14510 tmp_sharedflag='-qmkshrobj'
14511 tmp_addflag= ;;
14512 nvcc*) # Cuda Compiler Driver 2.2
14513 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'
14514 compiler_needs_object_FC=yes
14516 esac
14517 case `$CC -V 2>&1 | sed 5q` in
14518 *Sun\ C*) # Sun C 5.9
14519 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'
14520 compiler_needs_object_FC=yes
14521 tmp_sharedflag='-G' ;;
14522 *Sun\ F*) # Sun Fortran 8.3
14523 tmp_sharedflag='-G' ;;
14524 esac
14525 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527 if test "x$supports_anon_versioning" = xyes; then
14528 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14530 echo "local: *; };" >> $output_objdir/$libname.ver~
14531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14534 case $cc_basename in
14535 xlf* | bgf* | bgxlf* | mpixlf*)
14536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14537 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14538 hardcode_libdir_flag_spec_FC=
14539 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14540 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14541 if test "x$supports_anon_versioning" = xyes; then
14542 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14544 echo "local: *; };" >> $output_objdir/$libname.ver~
14545 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14548 esac
14549 else
14550 ld_shlibs_FC=no
14554 netbsd*)
14555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14556 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14557 wlarc=
14558 else
14559 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14564 solaris*)
14565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14566 ld_shlibs_FC=no
14567 cat <<_LT_EOF 1>&2
14569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14570 *** create shared libraries on Solaris systems. Therefore, libtool
14571 *** is disabling shared libraries support. We urge you to upgrade GNU
14572 *** binutils to release 2.9.1 or newer. Another option is to modify
14573 *** your PATH or compiler configuration so that the native linker is
14574 *** used, and then restart.
14576 _LT_EOF
14577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14578 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580 else
14581 ld_shlibs_FC=no
14585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14586 case `$LD -v 2>&1` in
14587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14588 ld_shlibs_FC=no
14589 cat <<_LT_EOF 1>&2
14591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14592 *** reliably create shared libraries on SCO systems. Therefore, libtool
14593 *** is disabling shared libraries support. We urge you to upgrade GNU
14594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14595 *** your PATH or compiler configuration so that the native linker is
14596 *** used, and then restart.
14598 _LT_EOF
14601 # For security reasons, it is highly recommended that you always
14602 # use absolute paths for naming shared libraries, and exclude the
14603 # DT_RUNPATH tag from executables and libraries. But doing so
14604 # requires that you compile everything twice, which is a pain.
14605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14606 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14607 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14608 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14609 else
14610 ld_shlibs_FC=no
14613 esac
14616 sunos4*)
14617 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14618 wlarc=
14619 hardcode_direct_FC=yes
14620 hardcode_shlibpath_var_FC=no
14624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14625 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14626 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14627 else
14628 ld_shlibs_FC=no
14631 esac
14633 if test "$ld_shlibs_FC" = no; then
14634 runpath_var=
14635 hardcode_libdir_flag_spec_FC=
14636 export_dynamic_flag_spec_FC=
14637 whole_archive_flag_spec_FC=
14639 else
14640 # PORTME fill in a description of your system's linker (not GNU ld)
14641 case $host_os in
14642 aix3*)
14643 allow_undefined_flag_FC=unsupported
14644 always_export_symbols_FC=yes
14645 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'
14646 # Note: this linker hardcodes the directories in LIBPATH if there
14647 # are no directories specified by -L.
14648 hardcode_minus_L_FC=yes
14649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14650 # Neither direct hardcoding nor static linking is supported with a
14651 # broken collect2.
14652 hardcode_direct_FC=unsupported
14656 aix[4-9]*)
14657 if test "$host_cpu" = ia64; then
14658 # On IA64, the linker does run time linking by default, so we don't
14659 # have to do anything special.
14660 aix_use_runtimelinking=no
14661 exp_sym_flag='-Bexport'
14662 no_entry_flag=""
14663 else
14664 # If we're using GNU nm, then we don't want the "-C" option.
14665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14666 # Also, AIX nm treats weak defined symbols like other global
14667 # defined symbols, whereas GNU nm marks them as "W".
14668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14669 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'
14670 else
14671 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14673 aix_use_runtimelinking=no
14675 # Test if we are trying to use run time linking or normal
14676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14677 # need to do runtime linking.
14678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14679 for ld_flag in $LDFLAGS; do
14680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14681 aix_use_runtimelinking=yes
14682 break
14684 done
14686 esac
14688 exp_sym_flag='-bexport'
14689 no_entry_flag='-bnoentry'
14692 # When large executables or shared objects are built, AIX ld can
14693 # have problems creating the table of contents. If linking a library
14694 # or program results in "error TOC overflow" add -mminimal-toc to
14695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14698 archive_cmds_FC=''
14699 hardcode_direct_FC=yes
14700 hardcode_direct_absolute_FC=yes
14701 hardcode_libdir_separator_FC=':'
14702 link_all_deplibs_FC=yes
14703 file_list_spec_FC='${wl}-f,'
14705 if test "$GCC" = yes; then
14706 case $host_os in aix4.[012]|aix4.[012].*)
14707 # We only want to do this on AIX 4.2 and lower, the check
14708 # below for broken collect2 doesn't work under 4.3+
14709 collect2name=`${CC} -print-prog-name=collect2`
14710 if test -f "$collect2name" &&
14711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14712 then
14713 # We have reworked collect2
14715 else
14716 # We have old collect2
14717 hardcode_direct_FC=unsupported
14718 # It fails to find uninstalled libraries when the uninstalled
14719 # path is not listed in the libpath. Setting hardcode_minus_L
14720 # to unsupported forces relinking
14721 hardcode_minus_L_FC=yes
14722 hardcode_libdir_flag_spec_FC='-L$libdir'
14723 hardcode_libdir_separator_FC=
14726 esac
14727 shared_flag='-shared'
14728 if test "$aix_use_runtimelinking" = yes; then
14729 shared_flag="$shared_flag "'${wl}-G'
14731 else
14732 # not using gcc
14733 if test "$host_cpu" = ia64; then
14734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14735 # chokes on -Wl,-G. The following line is correct:
14736 shared_flag='-G'
14737 else
14738 if test "$aix_use_runtimelinking" = yes; then
14739 shared_flag='${wl}-G'
14740 else
14741 shared_flag='${wl}-bM:SRE'
14746 export_dynamic_flag_spec_FC='${wl}-bexpall'
14747 # It seems that -bexpall does not export symbols beginning with
14748 # underscore (_), so it is better to generate a list of symbols to export.
14749 always_export_symbols_FC=yes
14750 if test "$aix_use_runtimelinking" = yes; then
14751 # Warning - without using the other runtime loading flags (-brtl),
14752 # -berok will link without error, but may produce a broken library.
14753 allow_undefined_flag_FC='-berok'
14754 # Determine the default libpath from the value encoded in an
14755 # empty executable.
14756 if test x$gcc_no_link = xyes; then
14757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14759 cat > conftest.$ac_ext <<_ACEOF
14760 program main
14763 _ACEOF
14764 if ac_fn_fc_try_link "$LINENO"; then :
14766 lt_aix_libpath_sed='
14767 /Import File Strings/,/^$/ {
14768 /^0/ {
14769 s/^0 *\(.*\)$/\1/
14773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14774 # Check for a 64-bit object if we didn't find anything.
14775 if test -z "$aix_libpath"; then
14776 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14783 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14784 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"
14785 else
14786 if test "$host_cpu" = ia64; then
14787 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14788 allow_undefined_flag_FC="-z nodefs"
14789 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"
14790 else
14791 # Determine the default libpath from the value encoded in an
14792 # empty executable.
14793 if test x$gcc_no_link = xyes; then
14794 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14796 cat > conftest.$ac_ext <<_ACEOF
14797 program main
14800 _ACEOF
14801 if ac_fn_fc_try_link "$LINENO"; then :
14803 lt_aix_libpath_sed='
14804 /Import File Strings/,/^$/ {
14805 /^0/ {
14806 s/^0 *\(.*\)$/\1/
14810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14811 # Check for a 64-bit object if we didn't find anything.
14812 if test -z "$aix_libpath"; then
14813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14820 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14821 # Warning - without using the other run time loading flags,
14822 # -berok will link without error, but may produce a broken library.
14823 no_undefined_flag_FC=' ${wl}-bernotok'
14824 allow_undefined_flag_FC=' ${wl}-berok'
14825 if test "$with_gnu_ld" = yes; then
14826 # We only use this code for GNU lds that support --whole-archive.
14827 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14828 else
14829 # Exported symbols can be pulled into shared objects from archives
14830 whole_archive_flag_spec_FC='$convenience'
14832 archive_cmds_need_lc_FC=yes
14833 # This is similar to how AIX traditionally builds its shared libraries.
14834 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'
14839 amigaos*)
14840 case $host_cpu in
14841 powerpc)
14842 # see comment about AmigaOS4 .so support
14843 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844 archive_expsym_cmds_FC=''
14846 m68k)
14847 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)'
14848 hardcode_libdir_flag_spec_FC='-L$libdir'
14849 hardcode_minus_L_FC=yes
14851 esac
14854 bsdi[45]*)
14855 export_dynamic_flag_spec_FC=-rdynamic
14858 cygwin* | mingw* | pw32* | cegcc*)
14859 # When not using gcc, we currently assume that we are using
14860 # Microsoft Visual C++.
14861 # hardcode_libdir_flag_spec is actually meaningless, as there is
14862 # no search path for DLLs.
14863 hardcode_libdir_flag_spec_FC=' '
14864 allow_undefined_flag_FC=unsupported
14865 # Tell ltmain to make .lib files, not .a files.
14866 libext=lib
14867 # Tell ltmain to make .dll files, not .so files.
14868 shrext_cmds=".dll"
14869 # FIXME: Setting linknames here is a bad hack.
14870 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14871 # The linker will automatically build a .lib file if we build a DLL.
14872 old_archive_from_new_cmds_FC='true'
14873 # FIXME: Should let the user specify the lib program.
14874 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14875 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14876 enable_shared_with_static_runtimes_FC=yes
14879 darwin* | rhapsody*)
14882 archive_cmds_need_lc_FC=no
14883 hardcode_direct_FC=no
14884 hardcode_automatic_FC=yes
14885 hardcode_shlibpath_var_FC=unsupported
14886 if test "$lt_cv_ld_force_load" = "yes"; then
14887 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\"`'
14888 else
14889 whole_archive_flag_spec_FC=''
14891 link_all_deplibs_FC=yes
14892 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14893 case $cc_basename in
14894 ifort*) _lt_dar_can_shared=yes ;;
14895 *) _lt_dar_can_shared=$GCC ;;
14896 esac
14897 if test "$_lt_dar_can_shared" = "yes"; then
14898 output_verbose_link_cmd=func_echo_all
14899 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}"
14900 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14901 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}"
14902 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}"
14904 else
14905 ld_shlibs_FC=no
14910 dgux*)
14911 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_libdir_flag_spec_FC='-L$libdir'
14913 hardcode_shlibpath_var_FC=no
14916 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14917 # support. Future versions do this automatically, but an explicit c++rt0.o
14918 # does not break anything, and helps significantly (at the cost of a little
14919 # extra space).
14920 freebsd2.2*)
14921 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14922 hardcode_libdir_flag_spec_FC='-R$libdir'
14923 hardcode_direct_FC=yes
14924 hardcode_shlibpath_var_FC=no
14927 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14928 freebsd2.*)
14929 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_direct_FC=yes
14931 hardcode_minus_L_FC=yes
14932 hardcode_shlibpath_var_FC=no
14935 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14936 freebsd* | dragonfly*)
14937 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14938 hardcode_libdir_flag_spec_FC='-R$libdir'
14939 hardcode_direct_FC=yes
14940 hardcode_shlibpath_var_FC=no
14943 hpux9*)
14944 if test "$GCC" = yes; then
14945 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'
14946 else
14947 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'
14949 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14950 hardcode_libdir_separator_FC=:
14951 hardcode_direct_FC=yes
14953 # hardcode_minus_L: Not really in the search PATH,
14954 # but as the default location of the library.
14955 hardcode_minus_L_FC=yes
14956 export_dynamic_flag_spec_FC='${wl}-E'
14959 hpux10*)
14960 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14961 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962 else
14963 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14965 if test "$with_gnu_ld" = no; then
14966 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14967 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14968 hardcode_libdir_separator_FC=:
14969 hardcode_direct_FC=yes
14970 hardcode_direct_absolute_FC=yes
14971 export_dynamic_flag_spec_FC='${wl}-E'
14972 # hardcode_minus_L: Not really in the search PATH,
14973 # but as the default location of the library.
14974 hardcode_minus_L_FC=yes
14978 hpux11*)
14979 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14980 case $host_cpu in
14981 hppa*64*)
14982 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14984 ia64*)
14985 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14990 esac
14991 else
14992 case $host_cpu in
14993 hppa*64*)
14994 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14996 ia64*)
14997 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15002 esac
15004 if test "$with_gnu_ld" = no; then
15005 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15006 hardcode_libdir_separator_FC=:
15008 case $host_cpu in
15009 hppa*64*|ia64*)
15010 hardcode_direct_FC=no
15011 hardcode_shlibpath_var_FC=no
15014 hardcode_direct_FC=yes
15015 hardcode_direct_absolute_FC=yes
15016 export_dynamic_flag_spec_FC='${wl}-E'
15018 # hardcode_minus_L: Not really in the search PATH,
15019 # but as the default location of the library.
15020 hardcode_minus_L_FC=yes
15022 esac
15026 irix5* | irix6* | nonstopux*)
15027 if test "$GCC" = yes; then
15028 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'
15029 # Try to use the -exported_symbol ld option, if it does not
15030 # work, assume that -exports_file does not work either and
15031 # implicitly export all symbols.
15032 save_LDFLAGS="$LDFLAGS"
15033 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15034 if test x$gcc_no_link = xyes; then
15035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15037 cat > conftest.$ac_ext <<_ACEOF
15038 int foo(void) {}
15039 _ACEOF
15040 if ac_fn_fc_try_link "$LINENO"; then :
15041 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'
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LDFLAGS="$save_LDFLAGS"
15047 else
15048 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'
15049 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'
15051 archive_cmds_need_lc_FC='no'
15052 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15053 hardcode_libdir_separator_FC=:
15054 inherit_rpath_FC=yes
15055 link_all_deplibs_FC=yes
15058 netbsd*)
15059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15060 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15061 else
15062 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15064 hardcode_libdir_flag_spec_FC='-R$libdir'
15065 hardcode_direct_FC=yes
15066 hardcode_shlibpath_var_FC=no
15069 newsos6)
15070 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071 hardcode_direct_FC=yes
15072 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15073 hardcode_libdir_separator_FC=:
15074 hardcode_shlibpath_var_FC=no
15077 *nto* | *qnx*)
15080 openbsd*)
15081 if test -f /usr/libexec/ld.so; then
15082 hardcode_direct_FC=yes
15083 hardcode_shlibpath_var_FC=no
15084 hardcode_direct_absolute_FC=yes
15085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15086 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15088 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15089 export_dynamic_flag_spec_FC='${wl}-E'
15090 else
15091 case $host_os in
15092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15093 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_libdir_flag_spec_FC='-R$libdir'
15097 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15098 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15100 esac
15102 else
15103 ld_shlibs_FC=no
15107 os2*)
15108 hardcode_libdir_flag_spec_FC='-L$libdir'
15109 hardcode_minus_L_FC=yes
15110 allow_undefined_flag_FC=unsupported
15111 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'
15112 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15115 osf3*)
15116 if test "$GCC" = yes; then
15117 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
15118 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'
15119 else
15120 allow_undefined_flag_FC=' -expect_unresolved \*'
15121 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'
15123 archive_cmds_need_lc_FC='no'
15124 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15125 hardcode_libdir_separator_FC=:
15128 osf4* | osf5*) # as osf3* with the addition of -msym flag
15129 if test "$GCC" = yes; then
15130 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
15131 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'
15132 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15133 else
15134 allow_undefined_flag_FC=' -expect_unresolved \*'
15135 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'
15136 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~
15137 $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'
15139 # Both c and cxx compiler support -rpath directly
15140 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15142 archive_cmds_need_lc_FC='no'
15143 hardcode_libdir_separator_FC=:
15146 solaris*)
15147 no_undefined_flag_FC=' -z defs'
15148 if test "$GCC" = yes; then
15149 wlarc='${wl}'
15150 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15152 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15153 else
15154 case `$CC -V 2>&1` in
15155 *"Compilers 5.0"*)
15156 wlarc=''
15157 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15162 wlarc='${wl}'
15163 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15164 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15167 esac
15169 hardcode_libdir_flag_spec_FC='-R$libdir'
15170 hardcode_shlibpath_var_FC=no
15171 case $host_os in
15172 solaris2.[0-5] | solaris2.[0-5].*) ;;
15174 # The compiler driver will combine and reorder linker options,
15175 # but understands `-z linker_flag'. GCC discards it without `$wl',
15176 # but is careful enough not to reorder.
15177 # Supported since Solaris 2.6 (maybe 2.5.1?)
15178 if test "$GCC" = yes; then
15179 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15180 else
15181 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15184 esac
15185 link_all_deplibs_FC=yes
15188 sunos4*)
15189 if test "x$host_vendor" = xsequent; then
15190 # Use $CC to link under sequent, because it throws in some extra .o
15191 # files that make .init and .fini sections work.
15192 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15193 else
15194 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_libdir_flag_spec_FC='-L$libdir'
15197 hardcode_direct_FC=yes
15198 hardcode_minus_L_FC=yes
15199 hardcode_shlibpath_var_FC=no
15202 sysv4)
15203 case $host_vendor in
15204 sni)
15205 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206 hardcode_direct_FC=yes # is this really true???
15208 siemens)
15209 ## LD is ld it makes a PLAMLIB
15210 ## CC just makes a GrossModule.
15211 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15212 reload_cmds_FC='$CC -r -o $output$reload_objs'
15213 hardcode_direct_FC=no
15215 motorola)
15216 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15217 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15219 esac
15220 runpath_var='LD_RUN_PATH'
15221 hardcode_shlibpath_var_FC=no
15224 sysv4.3*)
15225 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226 hardcode_shlibpath_var_FC=no
15227 export_dynamic_flag_spec_FC='-Bexport'
15230 sysv4*MP*)
15231 if test -d /usr/nec; then
15232 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15233 hardcode_shlibpath_var_FC=no
15234 runpath_var=LD_RUN_PATH
15235 hardcode_runpath_var=yes
15236 ld_shlibs_FC=yes
15240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15241 no_undefined_flag_FC='${wl}-z,text'
15242 archive_cmds_need_lc_FC=no
15243 hardcode_shlibpath_var_FC=no
15244 runpath_var='LD_RUN_PATH'
15246 if test "$GCC" = yes; then
15247 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 else
15250 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 sysv5* | sco3.2v5* | sco5v6*)
15256 # Note: We can NOT use -z defs as we might desire, because we do not
15257 # link with -lc, and that would cause any symbols used from libc to
15258 # always be unresolved, which means just about no library would
15259 # ever link correctly. If we're not using GNU ld we use -z text
15260 # though, which does catch some bad symbols but isn't as heavy-handed
15261 # as -z defs.
15262 no_undefined_flag_FC='${wl}-z,text'
15263 allow_undefined_flag_FC='${wl}-z,nodefs'
15264 archive_cmds_need_lc_FC=no
15265 hardcode_shlibpath_var_FC=no
15266 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15267 hardcode_libdir_separator_FC=':'
15268 link_all_deplibs_FC=yes
15269 export_dynamic_flag_spec_FC='${wl}-Bexport'
15270 runpath_var='LD_RUN_PATH'
15272 if test "$GCC" = yes; then
15273 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 else
15276 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15281 uts4*)
15282 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15283 hardcode_libdir_flag_spec_FC='-L$libdir'
15284 hardcode_shlibpath_var_FC=no
15288 ld_shlibs_FC=no
15290 esac
15292 if test x$host_vendor = xsni; then
15293 case $host in
15294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15295 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15297 esac
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15302 $as_echo "$ld_shlibs_FC" >&6; }
15303 test "$ld_shlibs_FC" = no && can_build_shared=no
15305 with_gnu_ld_FC=$with_gnu_ld
15313 # Do we need to explicitly link libc?
15315 case "x$archive_cmds_need_lc_FC" in
15316 x|xyes)
15317 # Assume -lc should be added
15318 archive_cmds_need_lc_FC=yes
15320 if test "$enable_shared" = yes && test "$GCC" = yes; then
15321 case $archive_cmds_FC in
15322 *'~'*)
15323 # FIXME: we may have to deal with multi-command sequences.
15325 '$CC '*)
15326 # Test whether the compiler implicitly links with -lc since on some
15327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15328 # to ld, don't add -lc before -lgcc.
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15331 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334 $RM conftest*
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15338 (eval $ac_compile) 2>&5
15339 ac_status=$?
15340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 test $ac_status = 0; } 2>conftest.err; then
15342 soname=conftest
15343 lib=conftest
15344 libobjs=conftest.$ac_objext
15345 deplibs=
15346 wl=$lt_prog_compiler_wl_FC
15347 pic_flag=$lt_prog_compiler_pic_FC
15348 compiler_flags=-v
15349 linker_flags=-v
15350 verstring=
15351 output_objdir=.
15352 libname=conftest
15353 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15354 allow_undefined_flag_FC=
15355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15356 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15357 ac_status=$?
15358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15359 test $ac_status = 0; }
15360 then
15361 lt_cv_archive_cmds_need_lc_FC=no
15362 else
15363 lt_cv_archive_cmds_need_lc_FC=yes
15365 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15366 else
15367 cat conftest.err 1>&5
15369 $RM conftest*
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15373 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15374 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15376 esac
15379 esac
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15445 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15447 library_names_spec=
15448 libname_spec='lib$name'
15449 soname_spec=
15450 shrext_cmds=".so"
15451 postinstall_cmds=
15452 postuninstall_cmds=
15453 finish_cmds=
15454 finish_eval=
15455 shlibpath_var=
15456 shlibpath_overrides_runpath=unknown
15457 version_type=none
15458 dynamic_linker="$host_os ld.so"
15459 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15460 need_lib_prefix=unknown
15461 hardcode_into_libs=no
15463 # when you set need_version to no, make sure it does not cause -set_version
15464 # flags to be left without arguments
15465 need_version=unknown
15467 case $host_os in
15468 aix3*)
15469 version_type=linux
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15471 shlibpath_var=LIBPATH
15473 # AIX 3 has no versioning support, so we append a major version to the name.
15474 soname_spec='${libname}${release}${shared_ext}$major'
15477 aix[4-9]*)
15478 version_type=linux
15479 need_lib_prefix=no
15480 need_version=no
15481 hardcode_into_libs=yes
15482 if test "$host_cpu" = ia64; then
15483 # AIX 5 supports IA64
15484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 else
15487 # With GCC up to 2.95.x, collect2 would create an import file
15488 # for dependence libraries. The import file would start with
15489 # the line `#! .'. This would cause the generated library to
15490 # depend on `.', always an invalid library. This was fixed in
15491 # development snapshots of GCC prior to 3.0.
15492 case $host_os in
15493 aix4 | aix4.[01] | aix4.[01].*)
15494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15495 echo ' yes '
15496 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15498 else
15499 can_build_shared=no
15502 esac
15503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15504 # soname into executable. Probably we can add versioning support to
15505 # collect2, so additional links can be useful in future.
15506 if test "$aix_use_runtimelinking" = yes; then
15507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15508 # instead of lib<name>.a to let people know that these are not
15509 # typical AIX shared libraries.
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511 else
15512 # We preserve .a as extension for shared libraries through AIX4.2
15513 # and later when we are not doing run time linking.
15514 library_names_spec='${libname}${release}.a $libname.a'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LIBPATH
15521 amigaos*)
15522 case $host_cpu in
15523 powerpc)
15524 # Since July 2007 AmigaOS4 officially supports .so libraries.
15525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 m68k)
15529 library_names_spec='$libname.ixlibrary $libname.a'
15530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15531 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'
15533 esac
15536 beos*)
15537 library_names_spec='${libname}${shared_ext}'
15538 dynamic_linker="$host_os ld.so"
15539 shlibpath_var=LIBRARY_PATH
15542 bsdi[45]*)
15543 version_type=linux
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15551 # the default ld.so.conf also contains /usr/contrib/lib and
15552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15553 # libtool to hard-code these into programs
15556 cygwin* | mingw* | pw32* | cegcc*)
15557 version_type=windows
15558 shrext_cmds=".dll"
15559 need_version=no
15560 need_lib_prefix=no
15562 case $GCC,$host_os in
15563 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15564 library_names_spec='$libname.dll.a'
15565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15566 postinstall_cmds='base_file=`basename \${file}`~
15567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15568 dldir=$destdir/`dirname \$dlpath`~
15569 test -d \$dldir || mkdir -p \$dldir~
15570 $install_prog $dir/$dlname \$dldir/$dlname~
15571 chmod a+x \$dldir/$dlname~
15572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15576 dlpath=$dir/\$dldll~
15577 $RM \$dlpath'
15578 shlibpath_overrides_runpath=yes
15580 case $host_os in
15581 cygwin*)
15582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15586 mingw* | cegcc*)
15587 # MinGW DLLs use traditional 'lib' prefix
15588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15590 pw32*)
15591 # pw32 DLLs use 'pw' prefix rather than 'lib'
15592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15594 esac
15598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15600 esac
15601 dynamic_linker='Win32 ld.exe'
15602 # FIXME: first we should search . and the directory the executable is in
15603 shlibpath_var=PATH
15606 darwin* | rhapsody*)
15607 dynamic_linker="$host_os dyld"
15608 version_type=darwin
15609 need_lib_prefix=no
15610 need_version=no
15611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15612 soname_spec='${libname}${release}${major}$shared_ext'
15613 shlibpath_overrides_runpath=yes
15614 shlibpath_var=DYLD_LIBRARY_PATH
15615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15620 dgux*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15629 freebsd* | dragonfly*)
15630 # DragonFly does not have aout. When/if they implement a new
15631 # versioning mechanism, adjust this.
15632 if test -x /usr/bin/objformat; then
15633 objformat=`/usr/bin/objformat`
15634 else
15635 case $host_os in
15636 freebsd[23].*) objformat=aout ;;
15637 *) objformat=elf ;;
15638 esac
15640 version_type=freebsd-$objformat
15641 case $version_type in
15642 freebsd-elf*)
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15644 need_version=no
15645 need_lib_prefix=no
15647 freebsd-*)
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15649 need_version=yes
15651 esac
15652 shlibpath_var=LD_LIBRARY_PATH
15653 case $host_os in
15654 freebsd2.*)
15655 shlibpath_overrides_runpath=yes
15657 freebsd3.[01]* | freebsdelf3.[01]*)
15658 shlibpath_overrides_runpath=yes
15659 hardcode_into_libs=yes
15661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15663 shlibpath_overrides_runpath=no
15664 hardcode_into_libs=yes
15666 *) # from 4.6 on, and DragonFly
15667 shlibpath_overrides_runpath=yes
15668 hardcode_into_libs=yes
15670 esac
15673 haiku*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 dynamic_linker="$host_os runtime_loader"
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15683 hardcode_into_libs=yes
15686 hpux9* | hpux10* | hpux11*)
15687 # Give a soname corresponding to the major version so that dld.sl refuses to
15688 # link against other versions.
15689 version_type=sunos
15690 need_lib_prefix=no
15691 need_version=no
15692 case $host_cpu in
15693 ia64*)
15694 shrext_cmds='.so'
15695 hardcode_into_libs=yes
15696 dynamic_linker="$host_os dld.so"
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 if test "X$HPUX_IA64_MODE" = X32; then
15702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15703 else
15704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15708 hppa*64*)
15709 shrext_cmds='.sl'
15710 hardcode_into_libs=yes
15711 dynamic_linker="$host_os dld.sl"
15712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15720 shrext_cmds='.sl'
15721 dynamic_linker="$host_os dld.sl"
15722 shlibpath_var=SHLIB_PATH
15723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15727 esac
15728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15729 postinstall_cmds='chmod 555 $lib'
15730 # or fails outright, so override atomically:
15731 install_override_mode=555
15734 interix[3-9]*)
15735 version_type=linux
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=no
15743 hardcode_into_libs=yes
15746 irix5* | irix6* | nonstopux*)
15747 case $host_os in
15748 nonstopux*) version_type=nonstopux ;;
15750 if test "$lt_cv_prog_gnu_ld" = yes; then
15751 version_type=linux
15752 else
15753 version_type=irix
15754 fi ;;
15755 esac
15756 need_lib_prefix=no
15757 need_version=no
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 case $host_os in
15761 irix5* | nonstopux*)
15762 libsuff= shlibsuff=
15765 case $LD in # libtool.m4 will add one of these switches to LD
15766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15767 libsuff= shlibsuff= libmagic=32-bit;;
15768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15769 libsuff=32 shlibsuff=N32 libmagic=N32;;
15770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15772 *) libsuff= shlibsuff= libmagic=never-match;;
15773 esac
15775 esac
15776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15777 shlibpath_overrides_runpath=no
15778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15780 hardcode_into_libs=yes
15783 # No shared lib support for Linux oldld, aout, or coff.
15784 linux*oldld* | linux*aout* | linux*coff*)
15785 dynamic_linker=no
15788 # This must be Linux ELF.
15790 # uclinux* changes (here and below) have been submitted to the libtool
15791 # project, but have not yet been accepted: they are GCC-local changes
15792 # for the time being. (See
15793 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 shlibpath_overrides_runpath=no
15804 # Some binutils ld are patched to set DT_RUNPATH
15805 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 lt_cv_shlibpath_overrides_runpath=no
15809 save_LDFLAGS=$LDFLAGS
15810 save_libdir=$libdir
15811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15813 if test x$gcc_no_link = xyes; then
15814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15816 cat > conftest.$ac_ext <<_ACEOF
15817 program main
15820 _ACEOF
15821 if ac_fn_fc_try_link "$LINENO"; then :
15822 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15823 lt_cv_shlibpath_overrides_runpath=yes
15826 rm -f core conftest.err conftest.$ac_objext \
15827 conftest$ac_exeext conftest.$ac_ext
15828 LDFLAGS=$save_LDFLAGS
15829 libdir=$save_libdir
15833 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15835 # This implies no fast_install, which is unacceptable.
15836 # Some rework will be needed to allow for fast_install
15837 # before this can be enabled.
15838 hardcode_into_libs=yes
15840 # Append ld.so.conf contents to the search path
15841 if test -f /etc/ld.so.conf; then
15842 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' ' '`
15843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15846 # We used to test for /lib/ld.so.1 and disable shared libraries on
15847 # powerpc, because MkLinux only supported shared libraries with the
15848 # GNU dynamic linker. Since this was broken with cross compilers,
15849 # most powerpc-linux boxes support dynamic linking these days and
15850 # people can always --disable-shared, the test was removed, and we
15851 # assume the GNU/Linux dynamic linker is in use.
15852 dynamic_linker='GNU/Linux ld.so'
15855 netbsd*)
15856 version_type=sunos
15857 need_lib_prefix=no
15858 need_version=no
15859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15862 dynamic_linker='NetBSD (a.out) ld.so'
15863 else
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 dynamic_linker='NetBSD ld.elf_so'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=yes
15870 hardcode_into_libs=yes
15873 newsos6)
15874 version_type=linux
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 shlibpath_overrides_runpath=yes
15880 *nto* | *qnx*)
15881 version_type=qnx
15882 need_lib_prefix=no
15883 need_version=no
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15889 dynamic_linker='ldqnx.so'
15892 openbsd*)
15893 version_type=sunos
15894 sys_lib_dlsearch_path_spec="/usr/lib"
15895 need_lib_prefix=no
15896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15897 case $host_os in
15898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15899 *) need_version=no ;;
15900 esac
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15905 case $host_os in
15906 openbsd2.[89] | openbsd2.[89].*)
15907 shlibpath_overrides_runpath=no
15910 shlibpath_overrides_runpath=yes
15912 esac
15913 else
15914 shlibpath_overrides_runpath=yes
15918 os2*)
15919 libname_spec='$name'
15920 shrext_cmds=".dll"
15921 need_lib_prefix=no
15922 library_names_spec='$libname${shared_ext} $libname.a'
15923 dynamic_linker='OS/2 ld.exe'
15924 shlibpath_var=LIBPATH
15927 osf3* | osf4* | osf5*)
15928 version_type=osf
15929 need_lib_prefix=no
15930 need_version=no
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15938 rdos*)
15939 dynamic_linker=no
15942 solaris*)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15951 # ldd complains unless libraries are executable
15952 postinstall_cmds='chmod +x $lib'
15955 sunos4*)
15956 version_type=sunos
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 if test "$with_gnu_ld" = yes; then
15962 need_lib_prefix=no
15964 need_version=yes
15967 sysv4 | sysv4.3*)
15968 version_type=linux
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 case $host_vendor in
15973 sni)
15974 shlibpath_overrides_runpath=no
15975 need_lib_prefix=no
15976 runpath_var=LD_RUN_PATH
15978 siemens)
15979 need_lib_prefix=no
15981 motorola)
15982 need_lib_prefix=no
15983 need_version=no
15984 shlibpath_overrides_runpath=no
15985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15987 esac
15990 sysv4*MP*)
15991 if test -d /usr/nec ;then
15992 version_type=linux
15993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15994 soname_spec='$libname${shared_ext}.$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16000 version_type=freebsd-elf
16001 need_lib_prefix=no
16002 need_version=no
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes
16007 hardcode_into_libs=yes
16008 if test "$with_gnu_ld" = yes; then
16009 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16010 else
16011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16012 case $host_os in
16013 sco3.2v5*)
16014 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16016 esac
16018 sys_lib_dlsearch_path_spec='/usr/lib'
16021 tpf*)
16022 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 shlibpath_overrides_runpath=no
16029 hardcode_into_libs=yes
16032 uts4*)
16033 version_type=linux
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LD_LIBRARY_PATH
16040 dynamic_linker=no
16042 esac
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16044 $as_echo "$dynamic_linker" >&6; }
16045 test "$dynamic_linker" = no && can_build_shared=no
16047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16048 if test "$GCC" = yes; then
16049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16052 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16053 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16055 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16056 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16097 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16098 hardcode_action_FC=
16099 if test -n "$hardcode_libdir_flag_spec_FC" ||
16100 test -n "$runpath_var_FC" ||
16101 test "X$hardcode_automatic_FC" = "Xyes" ; then
16103 # We can hardcode non-existent directories.
16104 if test "$hardcode_direct_FC" != no &&
16105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16106 # have to relink, otherwise we might link with an installed library
16107 # when we should be linking with a yet-to-be-installed one
16108 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
16109 test "$hardcode_minus_L_FC" != no; then
16110 # Linking always hardcodes the temporary library directory.
16111 hardcode_action_FC=relink
16112 else
16113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16114 hardcode_action_FC=immediate
16116 else
16117 # We cannot hardcode anything, or else we can only hardcode existing
16118 # directories.
16119 hardcode_action_FC=unsupported
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16122 $as_echo "$hardcode_action_FC" >&6; }
16124 if test "$hardcode_action_FC" = relink ||
16125 test "$inherit_rpath_FC" = yes; then
16126 # Fast installation is not supported
16127 enable_fast_install=no
16128 elif test "$shlibpath_overrides_runpath" = yes ||
16129 test "$enable_shared" = no; then
16130 # Fast installation is not necessary
16131 enable_fast_install=needless
16140 fi # test -n "$compiler"
16142 GCC=$lt_save_GCC
16143 CC="$lt_save_CC"
16144 fi # test "$_lt_disable_FC" != yes
16146 ac_ext=c
16147 ac_cpp='$CPP $CPPFLAGS'
16148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16154 # extra LD Flags which are required for targets
16155 case "${host}" in
16156 *-darwin*)
16157 # Darwin needs -single_module when linking libgfortran
16158 extra_ldflags_libgfortran=-Wl,-single_module
16160 esac
16163 # We need a working compiler at that point, otherwise give a clear
16164 # error message and bail out.
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16167 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16168 ac_ext=${ac_fc_srcext-f}
16169 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16170 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16171 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16173 cat > conftest.$ac_ext <<_ACEOF
16175 program foo
16176 real, parameter :: bar = sin (12.34 / 2.5)
16177 end program foo
16178 _ACEOF
16179 if ac_fn_fc_try_compile "$LINENO"; then :
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181 $as_echo "yes" >&6; }
16182 else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16185 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 ac_ext=c
16190 ac_cpp='$CPP $CPPFLAGS'
16191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16197 # Check whether --enable-largefile was given.
16198 if test "${enable_largefile+set}" = set; then :
16199 enableval=$enable_largefile;
16202 if test "$enable_largefile" != no; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16205 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16206 if ${ac_cv_sys_largefile_CC+:} false; then :
16207 $as_echo_n "(cached) " >&6
16208 else
16209 ac_cv_sys_largefile_CC=no
16210 if test "$GCC" != yes; then
16211 ac_save_CC=$CC
16212 while :; do
16213 # IRIX 6.2 and later do not support large files by default,
16214 # so use the C compiler's -n32 option if that helps.
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 #include <sys/types.h>
16218 /* Check that off_t can represent 2**63 - 1 correctly.
16219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16220 since some C++ compilers masquerading as C compilers
16221 incorrectly reject 9223372036854775807. */
16222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16224 && LARGE_OFF_T % 2147483647 == 1)
16225 ? 1 : -1];
16227 main ()
16231 return 0;
16233 _ACEOF
16234 if ac_fn_c_try_compile "$LINENO"; then :
16235 break
16237 rm -f core conftest.err conftest.$ac_objext
16238 CC="$CC -n32"
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 ac_cv_sys_largefile_CC=' -n32'; break
16242 rm -f core conftest.err conftest.$ac_objext
16243 break
16244 done
16245 CC=$ac_save_CC
16246 rm -f conftest.$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16250 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16251 if test "$ac_cv_sys_largefile_CC" != no; then
16252 CC=$CC$ac_cv_sys_largefile_CC
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16256 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16257 if ${ac_cv_sys_file_offset_bits+:} false; then :
16258 $as_echo_n "(cached) " >&6
16259 else
16260 while :; do
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #include <sys/types.h>
16264 /* Check that off_t can represent 2**63 - 1 correctly.
16265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16266 since some C++ compilers masquerading as C compilers
16267 incorrectly reject 9223372036854775807. */
16268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16270 && LARGE_OFF_T % 2147483647 == 1)
16271 ? 1 : -1];
16273 main ()
16277 return 0;
16279 _ACEOF
16280 if ac_fn_c_try_compile "$LINENO"; then :
16281 ac_cv_sys_file_offset_bits=no; break
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 #define _FILE_OFFSET_BITS 64
16287 #include <sys/types.h>
16288 /* Check that off_t can represent 2**63 - 1 correctly.
16289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16290 since some C++ compilers masquerading as C compilers
16291 incorrectly reject 9223372036854775807. */
16292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16294 && LARGE_OFF_T % 2147483647 == 1)
16295 ? 1 : -1];
16297 main ()
16301 return 0;
16303 _ACEOF
16304 if ac_fn_c_try_compile "$LINENO"; then :
16305 ac_cv_sys_file_offset_bits=64; break
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 ac_cv_sys_file_offset_bits=unknown
16309 break
16310 done
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16313 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16314 case $ac_cv_sys_file_offset_bits in #(
16315 no | unknown) ;;
16317 cat >>confdefs.h <<_ACEOF
16318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16319 _ACEOF
16321 esac
16322 rm -rf conftest*
16323 if test $ac_cv_sys_file_offset_bits = unknown; then
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16325 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16326 if ${ac_cv_sys_large_files+:} false; then :
16327 $as_echo_n "(cached) " >&6
16328 else
16329 while :; do
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332 #include <sys/types.h>
16333 /* Check that off_t can represent 2**63 - 1 correctly.
16334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16335 since some C++ compilers masquerading as C compilers
16336 incorrectly reject 9223372036854775807. */
16337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16339 && LARGE_OFF_T % 2147483647 == 1)
16340 ? 1 : -1];
16342 main ()
16346 return 0;
16348 _ACEOF
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350 ac_cv_sys_large_files=no; break
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16355 #define _LARGE_FILES 1
16356 #include <sys/types.h>
16357 /* Check that off_t can represent 2**63 - 1 correctly.
16358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16359 since some C++ compilers masquerading as C compilers
16360 incorrectly reject 9223372036854775807. */
16361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16363 && LARGE_OFF_T % 2147483647 == 1)
16364 ? 1 : -1];
16366 main ()
16370 return 0;
16372 _ACEOF
16373 if ac_fn_c_try_compile "$LINENO"; then :
16374 ac_cv_sys_large_files=1; break
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 ac_cv_sys_large_files=unknown
16378 break
16379 done
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16382 $as_echo "$ac_cv_sys_large_files" >&6; }
16383 case $ac_cv_sys_large_files in #(
16384 no | unknown) ;;
16386 cat >>confdefs.h <<_ACEOF
16387 #define _LARGE_FILES $ac_cv_sys_large_files
16388 _ACEOF
16390 esac
16391 rm -rf conftest*
16398 # Types
16399 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16400 if test "x$ac_cv_type_off_t" = xyes; then :
16402 else
16404 cat >>confdefs.h <<_ACEOF
16405 #define off_t long int
16406 _ACEOF
16411 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16412 if test "x$ac_cv_type_intptr_t" = xyes; then :
16414 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16416 else
16417 for ac_type in 'int' 'long int' 'long long int'; do
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 $ac_includes_default
16422 main ()
16424 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16425 test_array [0] = 0;
16426 return test_array [0];
16429 return 0;
16431 _ACEOF
16432 if ac_fn_c_try_compile "$LINENO"; then :
16434 cat >>confdefs.h <<_ACEOF
16435 #define intptr_t $ac_type
16436 _ACEOF
16438 ac_type=
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 test -z "$ac_type" && break
16442 done
16447 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16448 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16450 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16452 else
16453 for ac_type in 'unsigned int' 'unsigned long int' \
16454 'unsigned long long int'; do
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 $ac_includes_default
16459 main ()
16461 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16462 test_array [0] = 0;
16463 return test_array [0];
16466 return 0;
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"; then :
16471 cat >>confdefs.h <<_ACEOF
16472 #define uintptr_t $ac_type
16473 _ACEOF
16475 ac_type=
16477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 test -z "$ac_type" && break
16479 done
16483 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16484 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16486 cat >>confdefs.h <<_ACEOF
16487 #define HAVE_PTRDIFF_T 1
16488 _ACEOF
16494 # check header files (we assume C89 is available, so don't check for that)
16498 for ac_header in $ac_header_list
16499 do :
16500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16504 cat >>confdefs.h <<_ACEOF
16505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16506 _ACEOF
16510 done
16550 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16552 acx_cv_header_stdint=stddef.h
16553 acx_cv_header_stdint_kind="(already complete)"
16554 for i in stdint.h $inttype_headers; do
16555 unset ac_cv_type_uintptr_t
16556 unset ac_cv_type_uintmax_t
16557 unset ac_cv_type_int_least32_t
16558 unset ac_cv_type_int_fast32_t
16559 unset ac_cv_type_uint64_t
16560 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16561 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16562 #include <$i>
16564 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16565 acx_cv_header_stdint=$i
16566 else
16567 continue
16570 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16571 #include <$i>
16573 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16575 else
16576 acx_cv_header_stdint_kind="(mostly complete)"
16579 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16580 #include <$i>
16582 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16584 else
16585 acx_cv_header_stdint_kind="(mostly complete)"
16588 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16589 #include <$i>
16591 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16593 else
16594 acx_cv_header_stdint_kind="(mostly complete)"
16597 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16598 #include <$i>
16600 if test "x$ac_cv_type_uint64_t" = xyes; then :
16602 else
16603 acx_cv_header_stdint_kind="(lacks uint64_t)"
16606 break
16607 done
16608 if test "$acx_cv_header_stdint" = stddef.h; then
16609 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16610 for i in stdint.h $inttype_headers; do
16611 unset ac_cv_type_uintptr_t
16612 unset ac_cv_type_uint32_t
16613 unset ac_cv_type_uint64_t
16614 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16615 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16616 #include <$i>
16618 if test "x$ac_cv_type_uint32_t" = xyes; then :
16619 acx_cv_header_stdint=$i
16620 else
16621 continue
16624 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16625 #include <$i>
16627 if test "x$ac_cv_type_uint64_t" = xyes; then :
16631 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16632 #include <$i>
16634 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16638 break
16639 done
16641 if test "$acx_cv_header_stdint" = stddef.h; then
16642 acx_cv_header_stdint_kind="(u_intXX_t style)"
16643 for i in sys/types.h $inttype_headers; do
16644 unset ac_cv_type_u_int32_t
16645 unset ac_cv_type_u_int64_t
16646 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16647 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16648 #include <$i>
16650 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16651 acx_cv_header_stdint=$i
16652 else
16653 continue
16656 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16657 #include <$i>
16659 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16663 break
16664 done
16666 if test "$acx_cv_header_stdint" = stddef.h; then
16667 acx_cv_header_stdint_kind="(using manual detection)"
16670 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16671 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16672 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16673 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16674 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16676 # ----------------- Summarize what we found so far
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16679 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16681 case `$as_basename -- gstdint.h ||
16682 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16683 Xgstdint.h : 'X\(//\)$' \| \
16684 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16685 $as_echo X/gstdint.h |
16686 sed '/^.*\/\([^/][^/]*\)\/*$/{
16687 s//\1/
16690 /^X\/\(\/\/\)$/{
16691 s//\1/
16694 /^X\/\(\/\).*/{
16695 s//\1/
16698 s/.*/./; q'` in
16699 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16700 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16701 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16702 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16703 *) ;;
16704 esac
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16707 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16709 # ----------------- done included file, check C basic types --------
16711 # Lacking an uintptr_t? Test size of void *
16712 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16713 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16716 # This bug is HP SR number 8606223364.
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16718 $as_echo_n "checking size of void *... " >&6; }
16719 if ${ac_cv_sizeof_void_p+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16724 else
16725 if test "$ac_cv_type_void_p" = yes; then
16726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16728 as_fn_error 77 "cannot compute sizeof (void *)
16729 See \`config.log' for more details" "$LINENO" 5; }
16730 else
16731 ac_cv_sizeof_void_p=0
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16737 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16741 cat >>confdefs.h <<_ACEOF
16742 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16743 _ACEOF
16746 esac
16748 # Lacking an uint64_t? Test size of long
16749 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16750 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16753 # This bug is HP SR number 8606223364.
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16755 $as_echo_n "checking size of long... " >&6; }
16756 if ${ac_cv_sizeof_long+:} false; then :
16757 $as_echo_n "(cached) " >&6
16758 else
16759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16761 else
16762 if test "$ac_cv_type_long" = yes; then
16763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16765 as_fn_error 77 "cannot compute sizeof (long)
16766 See \`config.log' for more details" "$LINENO" 5; }
16767 else
16768 ac_cv_sizeof_long=0
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16774 $as_echo "$ac_cv_sizeof_long" >&6; }
16778 cat >>confdefs.h <<_ACEOF
16779 #define SIZEOF_LONG $ac_cv_sizeof_long
16780 _ACEOF
16783 esac
16785 if test $acx_cv_header_stdint = stddef.h; then
16786 # Lacking a good header? Test size of everything and deduce all types.
16787 # The cast to long int works around a bug in the HP C Compiler
16788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16790 # This bug is HP SR number 8606223364.
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16792 $as_echo_n "checking size of int... " >&6; }
16793 if ${ac_cv_sizeof_int+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16798 else
16799 if test "$ac_cv_type_int" = yes; then
16800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16802 as_fn_error 77 "cannot compute sizeof (int)
16803 See \`config.log' for more details" "$LINENO" 5; }
16804 else
16805 ac_cv_sizeof_int=0
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16811 $as_echo "$ac_cv_sizeof_int" >&6; }
16815 cat >>confdefs.h <<_ACEOF
16816 #define SIZEOF_INT $ac_cv_sizeof_int
16817 _ACEOF
16820 # The cast to long int works around a bug in the HP C Compiler
16821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16823 # This bug is HP SR number 8606223364.
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16825 $as_echo_n "checking size of short... " >&6; }
16826 if ${ac_cv_sizeof_short+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16831 else
16832 if test "$ac_cv_type_short" = yes; then
16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16835 as_fn_error 77 "cannot compute sizeof (short)
16836 See \`config.log' for more details" "$LINENO" 5; }
16837 else
16838 ac_cv_sizeof_short=0
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16844 $as_echo "$ac_cv_sizeof_short" >&6; }
16848 cat >>confdefs.h <<_ACEOF
16849 #define SIZEOF_SHORT $ac_cv_sizeof_short
16850 _ACEOF
16853 # The cast to long int works around a bug in the HP C Compiler
16854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16856 # This bug is HP SR number 8606223364.
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16858 $as_echo_n "checking size of char... " >&6; }
16859 if ${ac_cv_sizeof_char+:} false; then :
16860 $as_echo_n "(cached) " >&6
16861 else
16862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16864 else
16865 if test "$ac_cv_type_char" = yes; then
16866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16868 as_fn_error 77 "cannot compute sizeof (char)
16869 See \`config.log' for more details" "$LINENO" 5; }
16870 else
16871 ac_cv_sizeof_char=0
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16877 $as_echo "$ac_cv_sizeof_char" >&6; }
16881 cat >>confdefs.h <<_ACEOF
16882 #define SIZEOF_CHAR $ac_cv_sizeof_char
16883 _ACEOF
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16888 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16889 case "$ac_cv_sizeof_char" in
16890 1) acx_cv_type_int8_t=char ;;
16891 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16892 esac
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16894 $as_echo "$acx_cv_type_int8_t" >&6; }
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16897 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16898 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16899 2:*) acx_cv_type_int16_t=int ;;
16900 *:2) acx_cv_type_int16_t=short ;;
16901 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16902 esac
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16904 $as_echo "$acx_cv_type_int16_t" >&6; }
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16907 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16908 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16909 4:*) acx_cv_type_int32_t=int ;;
16910 *:4) acx_cv_type_int32_t=long ;;
16911 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16912 esac
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16914 $as_echo "$acx_cv_type_int32_t" >&6; }
16917 # These tests are here to make the output prettier
16919 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16920 case "$ac_cv_sizeof_long" in
16921 8) acx_cv_type_int64_t=long ;;
16922 esac
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16924 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16926 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16929 # Now we can use the above types
16931 if test "$ac_cv_type_uintptr_t" != yes; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16933 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16934 case $ac_cv_sizeof_void_p in
16935 2) acx_cv_type_intptr_t=int16_t ;;
16936 4) acx_cv_type_intptr_t=int32_t ;;
16937 8) acx_cv_type_intptr_t=int64_t ;;
16938 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16939 esac
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16941 $as_echo "$acx_cv_type_intptr_t" >&6; }
16944 # ----------------- done all checks, emit header -------------
16945 ac_config_commands="$ac_config_commands gstdint.h"
16950 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16951 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16955 _ACEOF
16959 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16960 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16962 cat >>confdefs.h <<_ACEOF
16963 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16964 _ACEOF
16968 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16969 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_STRUCT_STAT_ST_RDEV 1
16973 _ACEOF
16979 case "${host}--x${with_newlib}" in
16980 mips*--xyes)
16981 hardwire_newlib=1;;
16982 nvptx*--xyes)
16983 hardwire_newlib=1;;
16984 esac
16986 # Check for library functions.
16987 if test "${hardwire_newlib:-0}" -eq 1; then
16988 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16989 # may not work correctly, because the compiler may not be able to
16990 # link executables.
16992 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16995 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16998 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17001 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17004 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17007 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17010 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17013 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17016 # At some point, we should differentiate between architectures
17017 # like x86, which have long double versions, and alpha/powerpc/etc.,
17018 # which don't. For the time being, punt.
17019 if test x"long_double_math_on_this_cpu" = x"yes"; then
17021 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
17024 else
17028 for ac_func in $ac_func_list
17029 do :
17030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17033 cat >>confdefs.h <<_ACEOF
17034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17035 _ACEOF
17038 done
17151 # Check strerror_r, cannot be above as versions with two and three arguments exist
17153 ac_save_CFLAGS="$CFLAGS"
17154 CFLAGS="-Wimplicit-function-declaration -Werror"
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 #define _GNU_SOURCE 1
17158 #include <string.h>
17159 #include <locale.h>
17161 main ()
17163 char s[128]; strerror_r(5, s, 128);
17165 return 0;
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"; then :
17170 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 CFLAGS="$ac_save_CFLAGS"
17176 ac_save_CFLAGS="$CFLAGS"
17177 CFLAGS="-Wimplicit-function-declaration -Werror"
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17180 #define _GNU_SOURCE 1
17181 #include <string.h>
17182 #include <locale.h>
17184 main ()
17186 char s[128]; strerror_r(5, s);
17188 return 0;
17190 _ACEOF
17191 if ac_fn_c_try_compile "$LINENO"; then :
17193 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 CFLAGS="$ac_save_CFLAGS"
17200 # Check for C99 (and other IEEE) math functions
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17202 $as_echo_n "checking for sin in -lm... " >&6; }
17203 if ${ac_cv_lib_m_sin+:} false; then :
17204 $as_echo_n "(cached) " >&6
17205 else
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lm $LIBS"
17208 if test x$gcc_no_link = xyes; then
17209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17214 /* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
17217 #ifdef __cplusplus
17218 extern "C"
17219 #endif
17220 char sin ();
17222 main ()
17224 return sin ();
17226 return 0;
17228 _ACEOF
17229 if ac_fn_c_try_link "$LINENO"; then :
17230 ac_cv_lib_m_sin=yes
17231 else
17232 ac_cv_lib_m_sin=no
17234 rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17236 LIBS=$ac_check_lib_save_LIBS
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17239 $as_echo "$ac_cv_lib_m_sin" >&6; }
17240 if test "x$ac_cv_lib_m_sin" = xyes; then :
17241 cat >>confdefs.h <<_ACEOF
17242 #define HAVE_LIBM 1
17243 _ACEOF
17245 LIBS="-lm $LIBS"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17256 $as_echo_n "checking for acosf... " >&6; }
17257 if ${gcc_cv_math_func_acosf+:} false; then :
17258 $as_echo_n "(cached) " >&6
17259 else
17260 if test x$gcc_no_link = xyes; then
17261 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17266 #ifdef HAVE_COMPLEX_H
17267 #include <complex.h>
17268 #endif
17269 #ifdef HAVE_MATH_H
17270 #include <math.h>
17271 #endif
17273 int (*ptr)() = (int (*)())acosf;
17276 main ()
17278 return 0;
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 gcc_cv_math_func_acosf=yes
17284 else
17285 gcc_cv_math_func_acosf=no
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17291 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17292 if test $gcc_cv_math_func_acosf = yes; then
17294 cat >>confdefs.h <<_ACEOF
17295 #define HAVE_ACOSF 1
17296 _ACEOF
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17304 $as_echo_n "checking for acos... " >&6; }
17305 if ${gcc_cv_math_func_acos+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307 else
17308 if test x$gcc_no_link = xyes; then
17309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17314 #ifdef HAVE_COMPLEX_H
17315 #include <complex.h>
17316 #endif
17317 #ifdef HAVE_MATH_H
17318 #include <math.h>
17319 #endif
17321 int (*ptr)() = (int (*)())acos;
17324 main ()
17326 return 0;
17329 _ACEOF
17330 if ac_fn_c_try_link "$LINENO"; then :
17331 gcc_cv_math_func_acos=yes
17332 else
17333 gcc_cv_math_func_acos=no
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17339 $as_echo "$gcc_cv_math_func_acos" >&6; }
17340 if test $gcc_cv_math_func_acos = yes; then
17342 cat >>confdefs.h <<_ACEOF
17343 #define HAVE_ACOS 1
17344 _ACEOF
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17352 $as_echo_n "checking for acosl... " >&6; }
17353 if ${gcc_cv_math_func_acosl+:} false; then :
17354 $as_echo_n "(cached) " >&6
17355 else
17356 if test x$gcc_no_link = xyes; then
17357 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17362 #ifdef HAVE_COMPLEX_H
17363 #include <complex.h>
17364 #endif
17365 #ifdef HAVE_MATH_H
17366 #include <math.h>
17367 #endif
17369 int (*ptr)() = (int (*)())acosl;
17372 main ()
17374 return 0;
17377 _ACEOF
17378 if ac_fn_c_try_link "$LINENO"; then :
17379 gcc_cv_math_func_acosl=yes
17380 else
17381 gcc_cv_math_func_acosl=no
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17387 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17388 if test $gcc_cv_math_func_acosl = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define HAVE_ACOSL 1
17392 _ACEOF
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17400 $as_echo_n "checking for acoshf... " >&6; }
17401 if ${gcc_cv_math_func_acoshf+:} false; then :
17402 $as_echo_n "(cached) " >&6
17403 else
17404 if test x$gcc_no_link = xyes; then
17405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17410 #ifdef HAVE_COMPLEX_H
17411 #include <complex.h>
17412 #endif
17413 #ifdef HAVE_MATH_H
17414 #include <math.h>
17415 #endif
17417 int (*ptr)() = (int (*)())acoshf;
17420 main ()
17422 return 0;
17425 _ACEOF
17426 if ac_fn_c_try_link "$LINENO"; then :
17427 gcc_cv_math_func_acoshf=yes
17428 else
17429 gcc_cv_math_func_acoshf=no
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17435 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17436 if test $gcc_cv_math_func_acoshf = yes; then
17438 cat >>confdefs.h <<_ACEOF
17439 #define HAVE_ACOSHF 1
17440 _ACEOF
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17448 $as_echo_n "checking for acosh... " >&6; }
17449 if ${gcc_cv_math_func_acosh+:} false; then :
17450 $as_echo_n "(cached) " >&6
17451 else
17452 if test x$gcc_no_link = xyes; then
17453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17458 #ifdef HAVE_COMPLEX_H
17459 #include <complex.h>
17460 #endif
17461 #ifdef HAVE_MATH_H
17462 #include <math.h>
17463 #endif
17465 int (*ptr)() = (int (*)())acosh;
17468 main ()
17470 return 0;
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 gcc_cv_math_func_acosh=yes
17476 else
17477 gcc_cv_math_func_acosh=no
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17483 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17484 if test $gcc_cv_math_func_acosh = yes; then
17486 cat >>confdefs.h <<_ACEOF
17487 #define HAVE_ACOSH 1
17488 _ACEOF
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17496 $as_echo_n "checking for acoshl... " >&6; }
17497 if ${gcc_cv_math_func_acoshl+:} false; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500 if test x$gcc_no_link = xyes; then
17501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17506 #ifdef HAVE_COMPLEX_H
17507 #include <complex.h>
17508 #endif
17509 #ifdef HAVE_MATH_H
17510 #include <math.h>
17511 #endif
17513 int (*ptr)() = (int (*)())acoshl;
17516 main ()
17518 return 0;
17521 _ACEOF
17522 if ac_fn_c_try_link "$LINENO"; then :
17523 gcc_cv_math_func_acoshl=yes
17524 else
17525 gcc_cv_math_func_acoshl=no
17527 rm -f core conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17531 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17532 if test $gcc_cv_math_func_acoshl = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define HAVE_ACOSHL 1
17536 _ACEOF
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17544 $as_echo_n "checking for asinf... " >&6; }
17545 if ${gcc_cv_math_func_asinf+:} false; then :
17546 $as_echo_n "(cached) " >&6
17547 else
17548 if test x$gcc_no_link = xyes; then
17549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17554 #ifdef HAVE_COMPLEX_H
17555 #include <complex.h>
17556 #endif
17557 #ifdef HAVE_MATH_H
17558 #include <math.h>
17559 #endif
17561 int (*ptr)() = (int (*)())asinf;
17564 main ()
17566 return 0;
17569 _ACEOF
17570 if ac_fn_c_try_link "$LINENO"; then :
17571 gcc_cv_math_func_asinf=yes
17572 else
17573 gcc_cv_math_func_asinf=no
17575 rm -f core conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17579 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17580 if test $gcc_cv_math_func_asinf = yes; then
17582 cat >>confdefs.h <<_ACEOF
17583 #define HAVE_ASINF 1
17584 _ACEOF
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17592 $as_echo_n "checking for asin... " >&6; }
17593 if ${gcc_cv_math_func_asin+:} false; then :
17594 $as_echo_n "(cached) " >&6
17595 else
17596 if test x$gcc_no_link = xyes; then
17597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17602 #ifdef HAVE_COMPLEX_H
17603 #include <complex.h>
17604 #endif
17605 #ifdef HAVE_MATH_H
17606 #include <math.h>
17607 #endif
17609 int (*ptr)() = (int (*)())asin;
17612 main ()
17614 return 0;
17617 _ACEOF
17618 if ac_fn_c_try_link "$LINENO"; then :
17619 gcc_cv_math_func_asin=yes
17620 else
17621 gcc_cv_math_func_asin=no
17623 rm -f core conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17627 $as_echo "$gcc_cv_math_func_asin" >&6; }
17628 if test $gcc_cv_math_func_asin = yes; then
17630 cat >>confdefs.h <<_ACEOF
17631 #define HAVE_ASIN 1
17632 _ACEOF
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17640 $as_echo_n "checking for asinl... " >&6; }
17641 if ${gcc_cv_math_func_asinl+:} false; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644 if test x$gcc_no_link = xyes; then
17645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17650 #ifdef HAVE_COMPLEX_H
17651 #include <complex.h>
17652 #endif
17653 #ifdef HAVE_MATH_H
17654 #include <math.h>
17655 #endif
17657 int (*ptr)() = (int (*)())asinl;
17660 main ()
17662 return 0;
17665 _ACEOF
17666 if ac_fn_c_try_link "$LINENO"; then :
17667 gcc_cv_math_func_asinl=yes
17668 else
17669 gcc_cv_math_func_asinl=no
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17675 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17676 if test $gcc_cv_math_func_asinl = yes; then
17678 cat >>confdefs.h <<_ACEOF
17679 #define HAVE_ASINL 1
17680 _ACEOF
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17688 $as_echo_n "checking for asinhf... " >&6; }
17689 if ${gcc_cv_math_func_asinhf+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691 else
17692 if test x$gcc_no_link = xyes; then
17693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17698 #ifdef HAVE_COMPLEX_H
17699 #include <complex.h>
17700 #endif
17701 #ifdef HAVE_MATH_H
17702 #include <math.h>
17703 #endif
17705 int (*ptr)() = (int (*)())asinhf;
17708 main ()
17710 return 0;
17713 _ACEOF
17714 if ac_fn_c_try_link "$LINENO"; then :
17715 gcc_cv_math_func_asinhf=yes
17716 else
17717 gcc_cv_math_func_asinhf=no
17719 rm -f core conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17723 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17724 if test $gcc_cv_math_func_asinhf = yes; then
17726 cat >>confdefs.h <<_ACEOF
17727 #define HAVE_ASINHF 1
17728 _ACEOF
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17736 $as_echo_n "checking for asinh... " >&6; }
17737 if ${gcc_cv_math_func_asinh+:} false; then :
17738 $as_echo_n "(cached) " >&6
17739 else
17740 if test x$gcc_no_link = xyes; then
17741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 #ifdef HAVE_COMPLEX_H
17747 #include <complex.h>
17748 #endif
17749 #ifdef HAVE_MATH_H
17750 #include <math.h>
17751 #endif
17753 int (*ptr)() = (int (*)())asinh;
17756 main ()
17758 return 0;
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"; then :
17763 gcc_cv_math_func_asinh=yes
17764 else
17765 gcc_cv_math_func_asinh=no
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17771 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17772 if test $gcc_cv_math_func_asinh = yes; then
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_ASINH 1
17776 _ACEOF
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17784 $as_echo_n "checking for asinhl... " >&6; }
17785 if ${gcc_cv_math_func_asinhl+:} false; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 if test x$gcc_no_link = xyes; then
17789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17794 #ifdef HAVE_COMPLEX_H
17795 #include <complex.h>
17796 #endif
17797 #ifdef HAVE_MATH_H
17798 #include <math.h>
17799 #endif
17801 int (*ptr)() = (int (*)())asinhl;
17804 main ()
17806 return 0;
17809 _ACEOF
17810 if ac_fn_c_try_link "$LINENO"; then :
17811 gcc_cv_math_func_asinhl=yes
17812 else
17813 gcc_cv_math_func_asinhl=no
17815 rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17819 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17820 if test $gcc_cv_math_func_asinhl = yes; then
17822 cat >>confdefs.h <<_ACEOF
17823 #define HAVE_ASINHL 1
17824 _ACEOF
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17832 $as_echo_n "checking for atan2f... " >&6; }
17833 if ${gcc_cv_math_func_atan2f+:} false; then :
17834 $as_echo_n "(cached) " >&6
17835 else
17836 if test x$gcc_no_link = xyes; then
17837 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17842 #ifdef HAVE_COMPLEX_H
17843 #include <complex.h>
17844 #endif
17845 #ifdef HAVE_MATH_H
17846 #include <math.h>
17847 #endif
17849 int (*ptr)() = (int (*)())atan2f;
17852 main ()
17854 return 0;
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 gcc_cv_math_func_atan2f=yes
17860 else
17861 gcc_cv_math_func_atan2f=no
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17867 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17868 if test $gcc_cv_math_func_atan2f = yes; then
17870 cat >>confdefs.h <<_ACEOF
17871 #define HAVE_ATAN2F 1
17872 _ACEOF
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17880 $as_echo_n "checking for atan2... " >&6; }
17881 if ${gcc_cv_math_func_atan2+:} false; then :
17882 $as_echo_n "(cached) " >&6
17883 else
17884 if test x$gcc_no_link = xyes; then
17885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17890 #ifdef HAVE_COMPLEX_H
17891 #include <complex.h>
17892 #endif
17893 #ifdef HAVE_MATH_H
17894 #include <math.h>
17895 #endif
17897 int (*ptr)() = (int (*)())atan2;
17900 main ()
17902 return 0;
17905 _ACEOF
17906 if ac_fn_c_try_link "$LINENO"; then :
17907 gcc_cv_math_func_atan2=yes
17908 else
17909 gcc_cv_math_func_atan2=no
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17915 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17916 if test $gcc_cv_math_func_atan2 = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define HAVE_ATAN2 1
17920 _ACEOF
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17928 $as_echo_n "checking for atan2l... " >&6; }
17929 if ${gcc_cv_math_func_atan2l+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17932 if test x$gcc_no_link = xyes; then
17933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17938 #ifdef HAVE_COMPLEX_H
17939 #include <complex.h>
17940 #endif
17941 #ifdef HAVE_MATH_H
17942 #include <math.h>
17943 #endif
17945 int (*ptr)() = (int (*)())atan2l;
17948 main ()
17950 return 0;
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 gcc_cv_math_func_atan2l=yes
17956 else
17957 gcc_cv_math_func_atan2l=no
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17963 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17964 if test $gcc_cv_math_func_atan2l = yes; then
17966 cat >>confdefs.h <<_ACEOF
17967 #define HAVE_ATAN2L 1
17968 _ACEOF
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17976 $as_echo_n "checking for atanf... " >&6; }
17977 if ${gcc_cv_math_func_atanf+:} false; then :
17978 $as_echo_n "(cached) " >&6
17979 else
17980 if test x$gcc_no_link = xyes; then
17981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17986 #ifdef HAVE_COMPLEX_H
17987 #include <complex.h>
17988 #endif
17989 #ifdef HAVE_MATH_H
17990 #include <math.h>
17991 #endif
17993 int (*ptr)() = (int (*)())atanf;
17996 main ()
17998 return 0;
18001 _ACEOF
18002 if ac_fn_c_try_link "$LINENO"; then :
18003 gcc_cv_math_func_atanf=yes
18004 else
18005 gcc_cv_math_func_atanf=no
18007 rm -f core conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
18011 $as_echo "$gcc_cv_math_func_atanf" >&6; }
18012 if test $gcc_cv_math_func_atanf = yes; then
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_ATANF 1
18016 _ACEOF
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
18024 $as_echo_n "checking for atan... " >&6; }
18025 if ${gcc_cv_math_func_atan+:} false; then :
18026 $as_echo_n "(cached) " >&6
18027 else
18028 if test x$gcc_no_link = xyes; then
18029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 #ifdef HAVE_COMPLEX_H
18035 #include <complex.h>
18036 #endif
18037 #ifdef HAVE_MATH_H
18038 #include <math.h>
18039 #endif
18041 int (*ptr)() = (int (*)())atan;
18044 main ()
18046 return 0;
18049 _ACEOF
18050 if ac_fn_c_try_link "$LINENO"; then :
18051 gcc_cv_math_func_atan=yes
18052 else
18053 gcc_cv_math_func_atan=no
18055 rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
18059 $as_echo "$gcc_cv_math_func_atan" >&6; }
18060 if test $gcc_cv_math_func_atan = yes; then
18062 cat >>confdefs.h <<_ACEOF
18063 #define HAVE_ATAN 1
18064 _ACEOF
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
18072 $as_echo_n "checking for atanl... " >&6; }
18073 if ${gcc_cv_math_func_atanl+:} false; then :
18074 $as_echo_n "(cached) " >&6
18075 else
18076 if test x$gcc_no_link = xyes; then
18077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18082 #ifdef HAVE_COMPLEX_H
18083 #include <complex.h>
18084 #endif
18085 #ifdef HAVE_MATH_H
18086 #include <math.h>
18087 #endif
18089 int (*ptr)() = (int (*)())atanl;
18092 main ()
18094 return 0;
18097 _ACEOF
18098 if ac_fn_c_try_link "$LINENO"; then :
18099 gcc_cv_math_func_atanl=yes
18100 else
18101 gcc_cv_math_func_atanl=no
18103 rm -f core conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
18107 $as_echo "$gcc_cv_math_func_atanl" >&6; }
18108 if test $gcc_cv_math_func_atanl = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_ATANL 1
18112 _ACEOF
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
18120 $as_echo_n "checking for atanhf... " >&6; }
18121 if ${gcc_cv_math_func_atanhf+:} false; then :
18122 $as_echo_n "(cached) " >&6
18123 else
18124 if test x$gcc_no_link = xyes; then
18125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18130 #ifdef HAVE_COMPLEX_H
18131 #include <complex.h>
18132 #endif
18133 #ifdef HAVE_MATH_H
18134 #include <math.h>
18135 #endif
18137 int (*ptr)() = (int (*)())atanhf;
18140 main ()
18142 return 0;
18145 _ACEOF
18146 if ac_fn_c_try_link "$LINENO"; then :
18147 gcc_cv_math_func_atanhf=yes
18148 else
18149 gcc_cv_math_func_atanhf=no
18151 rm -f core conftest.err conftest.$ac_objext \
18152 conftest$ac_exeext conftest.$ac_ext
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18155 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
18156 if test $gcc_cv_math_func_atanhf = yes; then
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE_ATANHF 1
18160 _ACEOF
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18168 $as_echo_n "checking for atanh... " >&6; }
18169 if ${gcc_cv_math_func_atanh+:} false; then :
18170 $as_echo_n "(cached) " >&6
18171 else
18172 if test x$gcc_no_link = xyes; then
18173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18178 #ifdef HAVE_COMPLEX_H
18179 #include <complex.h>
18180 #endif
18181 #ifdef HAVE_MATH_H
18182 #include <math.h>
18183 #endif
18185 int (*ptr)() = (int (*)())atanh;
18188 main ()
18190 return 0;
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195 gcc_cv_math_func_atanh=yes
18196 else
18197 gcc_cv_math_func_atanh=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18203 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18204 if test $gcc_cv_math_func_atanh = yes; then
18206 cat >>confdefs.h <<_ACEOF
18207 #define HAVE_ATANH 1
18208 _ACEOF
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18216 $as_echo_n "checking for atanhl... " >&6; }
18217 if ${gcc_cv_math_func_atanhl+:} false; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 if test x$gcc_no_link = xyes; then
18221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18226 #ifdef HAVE_COMPLEX_H
18227 #include <complex.h>
18228 #endif
18229 #ifdef HAVE_MATH_H
18230 #include <math.h>
18231 #endif
18233 int (*ptr)() = (int (*)())atanhl;
18236 main ()
18238 return 0;
18241 _ACEOF
18242 if ac_fn_c_try_link "$LINENO"; then :
18243 gcc_cv_math_func_atanhl=yes
18244 else
18245 gcc_cv_math_func_atanhl=no
18247 rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18251 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18252 if test $gcc_cv_math_func_atanhl = yes; then
18254 cat >>confdefs.h <<_ACEOF
18255 #define HAVE_ATANHL 1
18256 _ACEOF
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18264 $as_echo_n "checking for cargf... " >&6; }
18265 if ${gcc_cv_math_func_cargf+:} false; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 if test x$gcc_no_link = xyes; then
18269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18274 #ifdef HAVE_COMPLEX_H
18275 #include <complex.h>
18276 #endif
18277 #ifdef HAVE_MATH_H
18278 #include <math.h>
18279 #endif
18281 int (*ptr)() = (int (*)())cargf;
18284 main ()
18286 return 0;
18289 _ACEOF
18290 if ac_fn_c_try_link "$LINENO"; then :
18291 gcc_cv_math_func_cargf=yes
18292 else
18293 gcc_cv_math_func_cargf=no
18295 rm -f core conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18299 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18300 if test $gcc_cv_math_func_cargf = yes; then
18302 cat >>confdefs.h <<_ACEOF
18303 #define HAVE_CARGF 1
18304 _ACEOF
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18312 $as_echo_n "checking for carg... " >&6; }
18313 if ${gcc_cv_math_func_carg+:} false; then :
18314 $as_echo_n "(cached) " >&6
18315 else
18316 if test x$gcc_no_link = xyes; then
18317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18322 #ifdef HAVE_COMPLEX_H
18323 #include <complex.h>
18324 #endif
18325 #ifdef HAVE_MATH_H
18326 #include <math.h>
18327 #endif
18329 int (*ptr)() = (int (*)())carg;
18332 main ()
18334 return 0;
18337 _ACEOF
18338 if ac_fn_c_try_link "$LINENO"; then :
18339 gcc_cv_math_func_carg=yes
18340 else
18341 gcc_cv_math_func_carg=no
18343 rm -f core conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18347 $as_echo "$gcc_cv_math_func_carg" >&6; }
18348 if test $gcc_cv_math_func_carg = yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define HAVE_CARG 1
18352 _ACEOF
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18360 $as_echo_n "checking for cargl... " >&6; }
18361 if ${gcc_cv_math_func_cargl+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 if test x$gcc_no_link = xyes; then
18365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #ifdef HAVE_COMPLEX_H
18371 #include <complex.h>
18372 #endif
18373 #ifdef HAVE_MATH_H
18374 #include <math.h>
18375 #endif
18377 int (*ptr)() = (int (*)())cargl;
18380 main ()
18382 return 0;
18385 _ACEOF
18386 if ac_fn_c_try_link "$LINENO"; then :
18387 gcc_cv_math_func_cargl=yes
18388 else
18389 gcc_cv_math_func_cargl=no
18391 rm -f core conftest.err conftest.$ac_objext \
18392 conftest$ac_exeext conftest.$ac_ext
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18395 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18396 if test $gcc_cv_math_func_cargl = yes; then
18398 cat >>confdefs.h <<_ACEOF
18399 #define HAVE_CARGL 1
18400 _ACEOF
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18408 $as_echo_n "checking for ceilf... " >&6; }
18409 if ${gcc_cv_math_func_ceilf+:} false; then :
18410 $as_echo_n "(cached) " >&6
18411 else
18412 if test x$gcc_no_link = xyes; then
18413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18418 #ifdef HAVE_COMPLEX_H
18419 #include <complex.h>
18420 #endif
18421 #ifdef HAVE_MATH_H
18422 #include <math.h>
18423 #endif
18425 int (*ptr)() = (int (*)())ceilf;
18428 main ()
18430 return 0;
18433 _ACEOF
18434 if ac_fn_c_try_link "$LINENO"; then :
18435 gcc_cv_math_func_ceilf=yes
18436 else
18437 gcc_cv_math_func_ceilf=no
18439 rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18443 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18444 if test $gcc_cv_math_func_ceilf = yes; then
18446 cat >>confdefs.h <<_ACEOF
18447 #define HAVE_CEILF 1
18448 _ACEOF
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18456 $as_echo_n "checking for ceil... " >&6; }
18457 if ${gcc_cv_math_func_ceil+:} false; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460 if test x$gcc_no_link = xyes; then
18461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18466 #ifdef HAVE_COMPLEX_H
18467 #include <complex.h>
18468 #endif
18469 #ifdef HAVE_MATH_H
18470 #include <math.h>
18471 #endif
18473 int (*ptr)() = (int (*)())ceil;
18476 main ()
18478 return 0;
18481 _ACEOF
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 gcc_cv_math_func_ceil=yes
18484 else
18485 gcc_cv_math_func_ceil=no
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18491 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18492 if test $gcc_cv_math_func_ceil = yes; then
18494 cat >>confdefs.h <<_ACEOF
18495 #define HAVE_CEIL 1
18496 _ACEOF
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18504 $as_echo_n "checking for ceill... " >&6; }
18505 if ${gcc_cv_math_func_ceill+:} false; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508 if test x$gcc_no_link = xyes; then
18509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 #ifdef HAVE_COMPLEX_H
18515 #include <complex.h>
18516 #endif
18517 #ifdef HAVE_MATH_H
18518 #include <math.h>
18519 #endif
18521 int (*ptr)() = (int (*)())ceill;
18524 main ()
18526 return 0;
18529 _ACEOF
18530 if ac_fn_c_try_link "$LINENO"; then :
18531 gcc_cv_math_func_ceill=yes
18532 else
18533 gcc_cv_math_func_ceill=no
18535 rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18539 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18540 if test $gcc_cv_math_func_ceill = yes; then
18542 cat >>confdefs.h <<_ACEOF
18543 #define HAVE_CEILL 1
18544 _ACEOF
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18552 $as_echo_n "checking for copysignf... " >&6; }
18553 if ${gcc_cv_math_func_copysignf+:} false; then :
18554 $as_echo_n "(cached) " >&6
18555 else
18556 if test x$gcc_no_link = xyes; then
18557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 #ifdef HAVE_COMPLEX_H
18563 #include <complex.h>
18564 #endif
18565 #ifdef HAVE_MATH_H
18566 #include <math.h>
18567 #endif
18569 int (*ptr)() = (int (*)())copysignf;
18572 main ()
18574 return 0;
18577 _ACEOF
18578 if ac_fn_c_try_link "$LINENO"; then :
18579 gcc_cv_math_func_copysignf=yes
18580 else
18581 gcc_cv_math_func_copysignf=no
18583 rm -f core conftest.err conftest.$ac_objext \
18584 conftest$ac_exeext conftest.$ac_ext
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18587 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18588 if test $gcc_cv_math_func_copysignf = yes; then
18590 cat >>confdefs.h <<_ACEOF
18591 #define HAVE_COPYSIGNF 1
18592 _ACEOF
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18600 $as_echo_n "checking for copysign... " >&6; }
18601 if ${gcc_cv_math_func_copysign+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603 else
18604 if test x$gcc_no_link = xyes; then
18605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18610 #ifdef HAVE_COMPLEX_H
18611 #include <complex.h>
18612 #endif
18613 #ifdef HAVE_MATH_H
18614 #include <math.h>
18615 #endif
18617 int (*ptr)() = (int (*)())copysign;
18620 main ()
18622 return 0;
18625 _ACEOF
18626 if ac_fn_c_try_link "$LINENO"; then :
18627 gcc_cv_math_func_copysign=yes
18628 else
18629 gcc_cv_math_func_copysign=no
18631 rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18635 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18636 if test $gcc_cv_math_func_copysign = yes; then
18638 cat >>confdefs.h <<_ACEOF
18639 #define HAVE_COPYSIGN 1
18640 _ACEOF
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18648 $as_echo_n "checking for copysignl... " >&6; }
18649 if ${gcc_cv_math_func_copysignl+:} false; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 if test x$gcc_no_link = xyes; then
18653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18658 #ifdef HAVE_COMPLEX_H
18659 #include <complex.h>
18660 #endif
18661 #ifdef HAVE_MATH_H
18662 #include <math.h>
18663 #endif
18665 int (*ptr)() = (int (*)())copysignl;
18668 main ()
18670 return 0;
18673 _ACEOF
18674 if ac_fn_c_try_link "$LINENO"; then :
18675 gcc_cv_math_func_copysignl=yes
18676 else
18677 gcc_cv_math_func_copysignl=no
18679 rm -f core conftest.err conftest.$ac_objext \
18680 conftest$ac_exeext conftest.$ac_ext
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18683 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18684 if test $gcc_cv_math_func_copysignl = yes; then
18686 cat >>confdefs.h <<_ACEOF
18687 #define HAVE_COPYSIGNL 1
18688 _ACEOF
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18696 $as_echo_n "checking for cosf... " >&6; }
18697 if ${gcc_cv_math_func_cosf+:} false; then :
18698 $as_echo_n "(cached) " >&6
18699 else
18700 if test x$gcc_no_link = xyes; then
18701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18706 #ifdef HAVE_COMPLEX_H
18707 #include <complex.h>
18708 #endif
18709 #ifdef HAVE_MATH_H
18710 #include <math.h>
18711 #endif
18713 int (*ptr)() = (int (*)())cosf;
18716 main ()
18718 return 0;
18721 _ACEOF
18722 if ac_fn_c_try_link "$LINENO"; then :
18723 gcc_cv_math_func_cosf=yes
18724 else
18725 gcc_cv_math_func_cosf=no
18727 rm -f core conftest.err conftest.$ac_objext \
18728 conftest$ac_exeext conftest.$ac_ext
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18731 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18732 if test $gcc_cv_math_func_cosf = yes; then
18734 cat >>confdefs.h <<_ACEOF
18735 #define HAVE_COSF 1
18736 _ACEOF
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18744 $as_echo_n "checking for cos... " >&6; }
18745 if ${gcc_cv_math_func_cos+:} false; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 if test x$gcc_no_link = xyes; then
18749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18754 #ifdef HAVE_COMPLEX_H
18755 #include <complex.h>
18756 #endif
18757 #ifdef HAVE_MATH_H
18758 #include <math.h>
18759 #endif
18761 int (*ptr)() = (int (*)())cos;
18764 main ()
18766 return 0;
18769 _ACEOF
18770 if ac_fn_c_try_link "$LINENO"; then :
18771 gcc_cv_math_func_cos=yes
18772 else
18773 gcc_cv_math_func_cos=no
18775 rm -f core conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18779 $as_echo "$gcc_cv_math_func_cos" >&6; }
18780 if test $gcc_cv_math_func_cos = yes; then
18782 cat >>confdefs.h <<_ACEOF
18783 #define HAVE_COS 1
18784 _ACEOF
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18792 $as_echo_n "checking for cosl... " >&6; }
18793 if ${gcc_cv_math_func_cosl+:} false; then :
18794 $as_echo_n "(cached) " >&6
18795 else
18796 if test x$gcc_no_link = xyes; then
18797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800 /* end confdefs.h. */
18802 #ifdef HAVE_COMPLEX_H
18803 #include <complex.h>
18804 #endif
18805 #ifdef HAVE_MATH_H
18806 #include <math.h>
18807 #endif
18809 int (*ptr)() = (int (*)())cosl;
18812 main ()
18814 return 0;
18817 _ACEOF
18818 if ac_fn_c_try_link "$LINENO"; then :
18819 gcc_cv_math_func_cosl=yes
18820 else
18821 gcc_cv_math_func_cosl=no
18823 rm -f core conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18827 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18828 if test $gcc_cv_math_func_cosl = yes; then
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_COSL 1
18832 _ACEOF
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18840 $as_echo_n "checking for ccosf... " >&6; }
18841 if ${gcc_cv_math_func_ccosf+:} false; then :
18842 $as_echo_n "(cached) " >&6
18843 else
18844 if test x$gcc_no_link = xyes; then
18845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18850 #ifdef HAVE_COMPLEX_H
18851 #include <complex.h>
18852 #endif
18853 #ifdef HAVE_MATH_H
18854 #include <math.h>
18855 #endif
18857 int (*ptr)() = (int (*)())ccosf;
18860 main ()
18862 return 0;
18865 _ACEOF
18866 if ac_fn_c_try_link "$LINENO"; then :
18867 gcc_cv_math_func_ccosf=yes
18868 else
18869 gcc_cv_math_func_ccosf=no
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18875 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18876 if test $gcc_cv_math_func_ccosf = yes; then
18878 cat >>confdefs.h <<_ACEOF
18879 #define HAVE_CCOSF 1
18880 _ACEOF
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18888 $as_echo_n "checking for ccos... " >&6; }
18889 if ${gcc_cv_math_func_ccos+:} false; then :
18890 $as_echo_n "(cached) " >&6
18891 else
18892 if test x$gcc_no_link = xyes; then
18893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18898 #ifdef HAVE_COMPLEX_H
18899 #include <complex.h>
18900 #endif
18901 #ifdef HAVE_MATH_H
18902 #include <math.h>
18903 #endif
18905 int (*ptr)() = (int (*)())ccos;
18908 main ()
18910 return 0;
18913 _ACEOF
18914 if ac_fn_c_try_link "$LINENO"; then :
18915 gcc_cv_math_func_ccos=yes
18916 else
18917 gcc_cv_math_func_ccos=no
18919 rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18923 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18924 if test $gcc_cv_math_func_ccos = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_CCOS 1
18928 _ACEOF
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18936 $as_echo_n "checking for ccosl... " >&6; }
18937 if ${gcc_cv_math_func_ccosl+:} false; then :
18938 $as_echo_n "(cached) " >&6
18939 else
18940 if test x$gcc_no_link = xyes; then
18941 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18946 #ifdef HAVE_COMPLEX_H
18947 #include <complex.h>
18948 #endif
18949 #ifdef HAVE_MATH_H
18950 #include <math.h>
18951 #endif
18953 int (*ptr)() = (int (*)())ccosl;
18956 main ()
18958 return 0;
18961 _ACEOF
18962 if ac_fn_c_try_link "$LINENO"; then :
18963 gcc_cv_math_func_ccosl=yes
18964 else
18965 gcc_cv_math_func_ccosl=no
18967 rm -f core conftest.err conftest.$ac_objext \
18968 conftest$ac_exeext conftest.$ac_ext
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18971 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18972 if test $gcc_cv_math_func_ccosl = yes; then
18974 cat >>confdefs.h <<_ACEOF
18975 #define HAVE_CCOSL 1
18976 _ACEOF
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18984 $as_echo_n "checking for coshf... " >&6; }
18985 if ${gcc_cv_math_func_coshf+:} false; then :
18986 $as_echo_n "(cached) " >&6
18987 else
18988 if test x$gcc_no_link = xyes; then
18989 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18994 #ifdef HAVE_COMPLEX_H
18995 #include <complex.h>
18996 #endif
18997 #ifdef HAVE_MATH_H
18998 #include <math.h>
18999 #endif
19001 int (*ptr)() = (int (*)())coshf;
19004 main ()
19006 return 0;
19009 _ACEOF
19010 if ac_fn_c_try_link "$LINENO"; then :
19011 gcc_cv_math_func_coshf=yes
19012 else
19013 gcc_cv_math_func_coshf=no
19015 rm -f core conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
19019 $as_echo "$gcc_cv_math_func_coshf" >&6; }
19020 if test $gcc_cv_math_func_coshf = yes; then
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_COSHF 1
19024 _ACEOF
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
19032 $as_echo_n "checking for cosh... " >&6; }
19033 if ${gcc_cv_math_func_cosh+:} false; then :
19034 $as_echo_n "(cached) " >&6
19035 else
19036 if test x$gcc_no_link = xyes; then
19037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19042 #ifdef HAVE_COMPLEX_H
19043 #include <complex.h>
19044 #endif
19045 #ifdef HAVE_MATH_H
19046 #include <math.h>
19047 #endif
19049 int (*ptr)() = (int (*)())cosh;
19052 main ()
19054 return 0;
19057 _ACEOF
19058 if ac_fn_c_try_link "$LINENO"; then :
19059 gcc_cv_math_func_cosh=yes
19060 else
19061 gcc_cv_math_func_cosh=no
19063 rm -f core conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
19067 $as_echo "$gcc_cv_math_func_cosh" >&6; }
19068 if test $gcc_cv_math_func_cosh = yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_COSH 1
19072 _ACEOF
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
19080 $as_echo_n "checking for coshl... " >&6; }
19081 if ${gcc_cv_math_func_coshl+:} false; then :
19082 $as_echo_n "(cached) " >&6
19083 else
19084 if test x$gcc_no_link = xyes; then
19085 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19090 #ifdef HAVE_COMPLEX_H
19091 #include <complex.h>
19092 #endif
19093 #ifdef HAVE_MATH_H
19094 #include <math.h>
19095 #endif
19097 int (*ptr)() = (int (*)())coshl;
19100 main ()
19102 return 0;
19105 _ACEOF
19106 if ac_fn_c_try_link "$LINENO"; then :
19107 gcc_cv_math_func_coshl=yes
19108 else
19109 gcc_cv_math_func_coshl=no
19111 rm -f core conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
19115 $as_echo "$gcc_cv_math_func_coshl" >&6; }
19116 if test $gcc_cv_math_func_coshl = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_COSHL 1
19120 _ACEOF
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19128 $as_echo_n "checking for ccoshf... " >&6; }
19129 if ${gcc_cv_math_func_ccoshf+:} false; then :
19130 $as_echo_n "(cached) " >&6
19131 else
19132 if test x$gcc_no_link = xyes; then
19133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19138 #ifdef HAVE_COMPLEX_H
19139 #include <complex.h>
19140 #endif
19141 #ifdef HAVE_MATH_H
19142 #include <math.h>
19143 #endif
19145 int (*ptr)() = (int (*)())ccoshf;
19148 main ()
19150 return 0;
19153 _ACEOF
19154 if ac_fn_c_try_link "$LINENO"; then :
19155 gcc_cv_math_func_ccoshf=yes
19156 else
19157 gcc_cv_math_func_ccoshf=no
19159 rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19163 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19164 if test $gcc_cv_math_func_ccoshf = yes; then
19166 cat >>confdefs.h <<_ACEOF
19167 #define HAVE_CCOSHF 1
19168 _ACEOF
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19176 $as_echo_n "checking for ccosh... " >&6; }
19177 if ${gcc_cv_math_func_ccosh+:} false; then :
19178 $as_echo_n "(cached) " >&6
19179 else
19180 if test x$gcc_no_link = xyes; then
19181 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19186 #ifdef HAVE_COMPLEX_H
19187 #include <complex.h>
19188 #endif
19189 #ifdef HAVE_MATH_H
19190 #include <math.h>
19191 #endif
19193 int (*ptr)() = (int (*)())ccosh;
19196 main ()
19198 return 0;
19201 _ACEOF
19202 if ac_fn_c_try_link "$LINENO"; then :
19203 gcc_cv_math_func_ccosh=yes
19204 else
19205 gcc_cv_math_func_ccosh=no
19207 rm -f core conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19211 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19212 if test $gcc_cv_math_func_ccosh = yes; then
19214 cat >>confdefs.h <<_ACEOF
19215 #define HAVE_CCOSH 1
19216 _ACEOF
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19224 $as_echo_n "checking for ccoshl... " >&6; }
19225 if ${gcc_cv_math_func_ccoshl+:} false; then :
19226 $as_echo_n "(cached) " >&6
19227 else
19228 if test x$gcc_no_link = xyes; then
19229 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19234 #ifdef HAVE_COMPLEX_H
19235 #include <complex.h>
19236 #endif
19237 #ifdef HAVE_MATH_H
19238 #include <math.h>
19239 #endif
19241 int (*ptr)() = (int (*)())ccoshl;
19244 main ()
19246 return 0;
19249 _ACEOF
19250 if ac_fn_c_try_link "$LINENO"; then :
19251 gcc_cv_math_func_ccoshl=yes
19252 else
19253 gcc_cv_math_func_ccoshl=no
19255 rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19259 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19260 if test $gcc_cv_math_func_ccoshl = yes; then
19262 cat >>confdefs.h <<_ACEOF
19263 #define HAVE_CCOSHL 1
19264 _ACEOF
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19272 $as_echo_n "checking for expf... " >&6; }
19273 if ${gcc_cv_math_func_expf+:} false; then :
19274 $as_echo_n "(cached) " >&6
19275 else
19276 if test x$gcc_no_link = xyes; then
19277 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19282 #ifdef HAVE_COMPLEX_H
19283 #include <complex.h>
19284 #endif
19285 #ifdef HAVE_MATH_H
19286 #include <math.h>
19287 #endif
19289 int (*ptr)() = (int (*)())expf;
19292 main ()
19294 return 0;
19297 _ACEOF
19298 if ac_fn_c_try_link "$LINENO"; then :
19299 gcc_cv_math_func_expf=yes
19300 else
19301 gcc_cv_math_func_expf=no
19303 rm -f core conftest.err conftest.$ac_objext \
19304 conftest$ac_exeext conftest.$ac_ext
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19307 $as_echo "$gcc_cv_math_func_expf" >&6; }
19308 if test $gcc_cv_math_func_expf = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_EXPF 1
19312 _ACEOF
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19320 $as_echo_n "checking for exp... " >&6; }
19321 if ${gcc_cv_math_func_exp+:} false; then :
19322 $as_echo_n "(cached) " >&6
19323 else
19324 if test x$gcc_no_link = xyes; then
19325 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h. */
19330 #ifdef HAVE_COMPLEX_H
19331 #include <complex.h>
19332 #endif
19333 #ifdef HAVE_MATH_H
19334 #include <math.h>
19335 #endif
19337 int (*ptr)() = (int (*)())exp;
19340 main ()
19342 return 0;
19345 _ACEOF
19346 if ac_fn_c_try_link "$LINENO"; then :
19347 gcc_cv_math_func_exp=yes
19348 else
19349 gcc_cv_math_func_exp=no
19351 rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19355 $as_echo "$gcc_cv_math_func_exp" >&6; }
19356 if test $gcc_cv_math_func_exp = yes; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_EXP 1
19360 _ACEOF
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19368 $as_echo_n "checking for expl... " >&6; }
19369 if ${gcc_cv_math_func_expl+:} false; then :
19370 $as_echo_n "(cached) " >&6
19371 else
19372 if test x$gcc_no_link = xyes; then
19373 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19378 #ifdef HAVE_COMPLEX_H
19379 #include <complex.h>
19380 #endif
19381 #ifdef HAVE_MATH_H
19382 #include <math.h>
19383 #endif
19385 int (*ptr)() = (int (*)())expl;
19388 main ()
19390 return 0;
19393 _ACEOF
19394 if ac_fn_c_try_link "$LINENO"; then :
19395 gcc_cv_math_func_expl=yes
19396 else
19397 gcc_cv_math_func_expl=no
19399 rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19403 $as_echo "$gcc_cv_math_func_expl" >&6; }
19404 if test $gcc_cv_math_func_expl = yes; then
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_EXPL 1
19408 _ACEOF
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19416 $as_echo_n "checking for cexpf... " >&6; }
19417 if ${gcc_cv_math_func_cexpf+:} false; then :
19418 $as_echo_n "(cached) " >&6
19419 else
19420 if test x$gcc_no_link = xyes; then
19421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 #ifdef HAVE_COMPLEX_H
19427 #include <complex.h>
19428 #endif
19429 #ifdef HAVE_MATH_H
19430 #include <math.h>
19431 #endif
19433 int (*ptr)() = (int (*)())cexpf;
19436 main ()
19438 return 0;
19441 _ACEOF
19442 if ac_fn_c_try_link "$LINENO"; then :
19443 gcc_cv_math_func_cexpf=yes
19444 else
19445 gcc_cv_math_func_cexpf=no
19447 rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19451 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19452 if test $gcc_cv_math_func_cexpf = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE_CEXPF 1
19456 _ACEOF
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19464 $as_echo_n "checking for cexp... " >&6; }
19465 if ${gcc_cv_math_func_cexp+:} false; then :
19466 $as_echo_n "(cached) " >&6
19467 else
19468 if test x$gcc_no_link = xyes; then
19469 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19474 #ifdef HAVE_COMPLEX_H
19475 #include <complex.h>
19476 #endif
19477 #ifdef HAVE_MATH_H
19478 #include <math.h>
19479 #endif
19481 int (*ptr)() = (int (*)())cexp;
19484 main ()
19486 return 0;
19489 _ACEOF
19490 if ac_fn_c_try_link "$LINENO"; then :
19491 gcc_cv_math_func_cexp=yes
19492 else
19493 gcc_cv_math_func_cexp=no
19495 rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19499 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19500 if test $gcc_cv_math_func_cexp = yes; then
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_CEXP 1
19504 _ACEOF
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19512 $as_echo_n "checking for cexpl... " >&6; }
19513 if ${gcc_cv_math_func_cexpl+:} false; then :
19514 $as_echo_n "(cached) " >&6
19515 else
19516 if test x$gcc_no_link = xyes; then
19517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h. */
19522 #ifdef HAVE_COMPLEX_H
19523 #include <complex.h>
19524 #endif
19525 #ifdef HAVE_MATH_H
19526 #include <math.h>
19527 #endif
19529 int (*ptr)() = (int (*)())cexpl;
19532 main ()
19534 return 0;
19537 _ACEOF
19538 if ac_fn_c_try_link "$LINENO"; then :
19539 gcc_cv_math_func_cexpl=yes
19540 else
19541 gcc_cv_math_func_cexpl=no
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19547 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19548 if test $gcc_cv_math_func_cexpl = yes; then
19550 cat >>confdefs.h <<_ACEOF
19551 #define HAVE_CEXPL 1
19552 _ACEOF
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19560 $as_echo_n "checking for fabsf... " >&6; }
19561 if ${gcc_cv_math_func_fabsf+:} false; then :
19562 $as_echo_n "(cached) " >&6
19563 else
19564 if test x$gcc_no_link = xyes; then
19565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 #ifdef HAVE_COMPLEX_H
19571 #include <complex.h>
19572 #endif
19573 #ifdef HAVE_MATH_H
19574 #include <math.h>
19575 #endif
19577 int (*ptr)() = (int (*)())fabsf;
19580 main ()
19582 return 0;
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587 gcc_cv_math_func_fabsf=yes
19588 else
19589 gcc_cv_math_func_fabsf=no
19591 rm -f core conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19595 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19596 if test $gcc_cv_math_func_fabsf = yes; then
19598 cat >>confdefs.h <<_ACEOF
19599 #define HAVE_FABSF 1
19600 _ACEOF
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19608 $as_echo_n "checking for fabs... " >&6; }
19609 if ${gcc_cv_math_func_fabs+:} false; then :
19610 $as_echo_n "(cached) " >&6
19611 else
19612 if test x$gcc_no_link = xyes; then
19613 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19618 #ifdef HAVE_COMPLEX_H
19619 #include <complex.h>
19620 #endif
19621 #ifdef HAVE_MATH_H
19622 #include <math.h>
19623 #endif
19625 int (*ptr)() = (int (*)())fabs;
19628 main ()
19630 return 0;
19633 _ACEOF
19634 if ac_fn_c_try_link "$LINENO"; then :
19635 gcc_cv_math_func_fabs=yes
19636 else
19637 gcc_cv_math_func_fabs=no
19639 rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19643 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19644 if test $gcc_cv_math_func_fabs = yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_FABS 1
19648 _ACEOF
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19656 $as_echo_n "checking for fabsl... " >&6; }
19657 if ${gcc_cv_math_func_fabsl+:} false; then :
19658 $as_echo_n "(cached) " >&6
19659 else
19660 if test x$gcc_no_link = xyes; then
19661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19666 #ifdef HAVE_COMPLEX_H
19667 #include <complex.h>
19668 #endif
19669 #ifdef HAVE_MATH_H
19670 #include <math.h>
19671 #endif
19673 int (*ptr)() = (int (*)())fabsl;
19676 main ()
19678 return 0;
19681 _ACEOF
19682 if ac_fn_c_try_link "$LINENO"; then :
19683 gcc_cv_math_func_fabsl=yes
19684 else
19685 gcc_cv_math_func_fabsl=no
19687 rm -f core conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19691 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19692 if test $gcc_cv_math_func_fabsl = yes; then
19694 cat >>confdefs.h <<_ACEOF
19695 #define HAVE_FABSL 1
19696 _ACEOF
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19704 $as_echo_n "checking for cabsf... " >&6; }
19705 if ${gcc_cv_math_func_cabsf+:} false; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 if test x$gcc_no_link = xyes; then
19709 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19714 #ifdef HAVE_COMPLEX_H
19715 #include <complex.h>
19716 #endif
19717 #ifdef HAVE_MATH_H
19718 #include <math.h>
19719 #endif
19721 int (*ptr)() = (int (*)())cabsf;
19724 main ()
19726 return 0;
19729 _ACEOF
19730 if ac_fn_c_try_link "$LINENO"; then :
19731 gcc_cv_math_func_cabsf=yes
19732 else
19733 gcc_cv_math_func_cabsf=no
19735 rm -f core conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19739 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19740 if test $gcc_cv_math_func_cabsf = yes; then
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_CABSF 1
19744 _ACEOF
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19752 $as_echo_n "checking for cabs... " >&6; }
19753 if ${gcc_cv_math_func_cabs+:} false; then :
19754 $as_echo_n "(cached) " >&6
19755 else
19756 if test x$gcc_no_link = xyes; then
19757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h. */
19762 #ifdef HAVE_COMPLEX_H
19763 #include <complex.h>
19764 #endif
19765 #ifdef HAVE_MATH_H
19766 #include <math.h>
19767 #endif
19769 int (*ptr)() = (int (*)())cabs;
19772 main ()
19774 return 0;
19777 _ACEOF
19778 if ac_fn_c_try_link "$LINENO"; then :
19779 gcc_cv_math_func_cabs=yes
19780 else
19781 gcc_cv_math_func_cabs=no
19783 rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19787 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19788 if test $gcc_cv_math_func_cabs = yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define HAVE_CABS 1
19792 _ACEOF
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19800 $as_echo_n "checking for cabsl... " >&6; }
19801 if ${gcc_cv_math_func_cabsl+:} false; then :
19802 $as_echo_n "(cached) " >&6
19803 else
19804 if test x$gcc_no_link = xyes; then
19805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19810 #ifdef HAVE_COMPLEX_H
19811 #include <complex.h>
19812 #endif
19813 #ifdef HAVE_MATH_H
19814 #include <math.h>
19815 #endif
19817 int (*ptr)() = (int (*)())cabsl;
19820 main ()
19822 return 0;
19825 _ACEOF
19826 if ac_fn_c_try_link "$LINENO"; then :
19827 gcc_cv_math_func_cabsl=yes
19828 else
19829 gcc_cv_math_func_cabsl=no
19831 rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19835 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19836 if test $gcc_cv_math_func_cabsl = yes; then
19838 cat >>confdefs.h <<_ACEOF
19839 #define HAVE_CABSL 1
19840 _ACEOF
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19848 $as_echo_n "checking for floorf... " >&6; }
19849 if ${gcc_cv_math_func_floorf+:} false; then :
19850 $as_echo_n "(cached) " >&6
19851 else
19852 if test x$gcc_no_link = xyes; then
19853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19858 #ifdef HAVE_COMPLEX_H
19859 #include <complex.h>
19860 #endif
19861 #ifdef HAVE_MATH_H
19862 #include <math.h>
19863 #endif
19865 int (*ptr)() = (int (*)())floorf;
19868 main ()
19870 return 0;
19873 _ACEOF
19874 if ac_fn_c_try_link "$LINENO"; then :
19875 gcc_cv_math_func_floorf=yes
19876 else
19877 gcc_cv_math_func_floorf=no
19879 rm -f core conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19883 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19884 if test $gcc_cv_math_func_floorf = yes; then
19886 cat >>confdefs.h <<_ACEOF
19887 #define HAVE_FLOORF 1
19888 _ACEOF
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19896 $as_echo_n "checking for floor... " >&6; }
19897 if ${gcc_cv_math_func_floor+:} false; then :
19898 $as_echo_n "(cached) " >&6
19899 else
19900 if test x$gcc_no_link = xyes; then
19901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904 /* end confdefs.h. */
19906 #ifdef HAVE_COMPLEX_H
19907 #include <complex.h>
19908 #endif
19909 #ifdef HAVE_MATH_H
19910 #include <math.h>
19911 #endif
19913 int (*ptr)() = (int (*)())floor;
19916 main ()
19918 return 0;
19921 _ACEOF
19922 if ac_fn_c_try_link "$LINENO"; then :
19923 gcc_cv_math_func_floor=yes
19924 else
19925 gcc_cv_math_func_floor=no
19927 rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19931 $as_echo "$gcc_cv_math_func_floor" >&6; }
19932 if test $gcc_cv_math_func_floor = yes; then
19934 cat >>confdefs.h <<_ACEOF
19935 #define HAVE_FLOOR 1
19936 _ACEOF
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19944 $as_echo_n "checking for floorl... " >&6; }
19945 if ${gcc_cv_math_func_floorl+:} false; then :
19946 $as_echo_n "(cached) " >&6
19947 else
19948 if test x$gcc_no_link = xyes; then
19949 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h. */
19954 #ifdef HAVE_COMPLEX_H
19955 #include <complex.h>
19956 #endif
19957 #ifdef HAVE_MATH_H
19958 #include <math.h>
19959 #endif
19961 int (*ptr)() = (int (*)())floorl;
19964 main ()
19966 return 0;
19969 _ACEOF
19970 if ac_fn_c_try_link "$LINENO"; then :
19971 gcc_cv_math_func_floorl=yes
19972 else
19973 gcc_cv_math_func_floorl=no
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19979 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19980 if test $gcc_cv_math_func_floorl = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_FLOORL 1
19984 _ACEOF
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19992 $as_echo_n "checking for fmaf... " >&6; }
19993 if ${gcc_cv_math_func_fmaf+:} false; then :
19994 $as_echo_n "(cached) " >&6
19995 else
19996 if test x$gcc_no_link = xyes; then
19997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20000 /* end confdefs.h. */
20002 #ifdef HAVE_COMPLEX_H
20003 #include <complex.h>
20004 #endif
20005 #ifdef HAVE_MATH_H
20006 #include <math.h>
20007 #endif
20009 int (*ptr)() = (int (*)())fmaf;
20012 main ()
20014 return 0;
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20019 gcc_cv_math_func_fmaf=yes
20020 else
20021 gcc_cv_math_func_fmaf=no
20023 rm -f core conftest.err conftest.$ac_objext \
20024 conftest$ac_exeext conftest.$ac_ext
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
20027 $as_echo "$gcc_cv_math_func_fmaf" >&6; }
20028 if test $gcc_cv_math_func_fmaf = yes; then
20030 cat >>confdefs.h <<_ACEOF
20031 #define HAVE_FMAF 1
20032 _ACEOF
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
20040 $as_echo_n "checking for fma... " >&6; }
20041 if ${gcc_cv_math_func_fma+:} false; then :
20042 $as_echo_n "(cached) " >&6
20043 else
20044 if test x$gcc_no_link = xyes; then
20045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h. */
20050 #ifdef HAVE_COMPLEX_H
20051 #include <complex.h>
20052 #endif
20053 #ifdef HAVE_MATH_H
20054 #include <math.h>
20055 #endif
20057 int (*ptr)() = (int (*)())fma;
20060 main ()
20062 return 0;
20065 _ACEOF
20066 if ac_fn_c_try_link "$LINENO"; then :
20067 gcc_cv_math_func_fma=yes
20068 else
20069 gcc_cv_math_func_fma=no
20071 rm -f core conftest.err conftest.$ac_objext \
20072 conftest$ac_exeext conftest.$ac_ext
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
20075 $as_echo "$gcc_cv_math_func_fma" >&6; }
20076 if test $gcc_cv_math_func_fma = yes; then
20078 cat >>confdefs.h <<_ACEOF
20079 #define HAVE_FMA 1
20080 _ACEOF
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
20088 $as_echo_n "checking for fmal... " >&6; }
20089 if ${gcc_cv_math_func_fmal+:} false; then :
20090 $as_echo_n "(cached) " >&6
20091 else
20092 if test x$gcc_no_link = xyes; then
20093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h. */
20098 #ifdef HAVE_COMPLEX_H
20099 #include <complex.h>
20100 #endif
20101 #ifdef HAVE_MATH_H
20102 #include <math.h>
20103 #endif
20105 int (*ptr)() = (int (*)())fmal;
20108 main ()
20110 return 0;
20113 _ACEOF
20114 if ac_fn_c_try_link "$LINENO"; then :
20115 gcc_cv_math_func_fmal=yes
20116 else
20117 gcc_cv_math_func_fmal=no
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
20123 $as_echo "$gcc_cv_math_func_fmal" >&6; }
20124 if test $gcc_cv_math_func_fmal = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_FMAL 1
20128 _ACEOF
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20136 $as_echo_n "checking for fmodf... " >&6; }
20137 if ${gcc_cv_math_func_fmodf+:} false; then :
20138 $as_echo_n "(cached) " >&6
20139 else
20140 if test x$gcc_no_link = xyes; then
20141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20146 #ifdef HAVE_COMPLEX_H
20147 #include <complex.h>
20148 #endif
20149 #ifdef HAVE_MATH_H
20150 #include <math.h>
20151 #endif
20153 int (*ptr)() = (int (*)())fmodf;
20156 main ()
20158 return 0;
20161 _ACEOF
20162 if ac_fn_c_try_link "$LINENO"; then :
20163 gcc_cv_math_func_fmodf=yes
20164 else
20165 gcc_cv_math_func_fmodf=no
20167 rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20171 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
20172 if test $gcc_cv_math_func_fmodf = yes; then
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_FMODF 1
20176 _ACEOF
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20184 $as_echo_n "checking for fmod... " >&6; }
20185 if ${gcc_cv_math_func_fmod+:} false; then :
20186 $as_echo_n "(cached) " >&6
20187 else
20188 if test x$gcc_no_link = xyes; then
20189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192 /* end confdefs.h. */
20194 #ifdef HAVE_COMPLEX_H
20195 #include <complex.h>
20196 #endif
20197 #ifdef HAVE_MATH_H
20198 #include <math.h>
20199 #endif
20201 int (*ptr)() = (int (*)())fmod;
20204 main ()
20206 return 0;
20209 _ACEOF
20210 if ac_fn_c_try_link "$LINENO"; then :
20211 gcc_cv_math_func_fmod=yes
20212 else
20213 gcc_cv_math_func_fmod=no
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20219 $as_echo "$gcc_cv_math_func_fmod" >&6; }
20220 if test $gcc_cv_math_func_fmod = yes; then
20222 cat >>confdefs.h <<_ACEOF
20223 #define HAVE_FMOD 1
20224 _ACEOF
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20232 $as_echo_n "checking for fmodl... " >&6; }
20233 if ${gcc_cv_math_func_fmodl+:} false; then :
20234 $as_echo_n "(cached) " >&6
20235 else
20236 if test x$gcc_no_link = xyes; then
20237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20242 #ifdef HAVE_COMPLEX_H
20243 #include <complex.h>
20244 #endif
20245 #ifdef HAVE_MATH_H
20246 #include <math.h>
20247 #endif
20249 int (*ptr)() = (int (*)())fmodl;
20252 main ()
20254 return 0;
20257 _ACEOF
20258 if ac_fn_c_try_link "$LINENO"; then :
20259 gcc_cv_math_func_fmodl=yes
20260 else
20261 gcc_cv_math_func_fmodl=no
20263 rm -f core conftest.err conftest.$ac_objext \
20264 conftest$ac_exeext conftest.$ac_ext
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20267 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
20268 if test $gcc_cv_math_func_fmodl = yes; then
20270 cat >>confdefs.h <<_ACEOF
20271 #define HAVE_FMODL 1
20272 _ACEOF
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20280 $as_echo_n "checking for frexpf... " >&6; }
20281 if ${gcc_cv_math_func_frexpf+:} false; then :
20282 $as_echo_n "(cached) " >&6
20283 else
20284 if test x$gcc_no_link = xyes; then
20285 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20290 #ifdef HAVE_COMPLEX_H
20291 #include <complex.h>
20292 #endif
20293 #ifdef HAVE_MATH_H
20294 #include <math.h>
20295 #endif
20297 int (*ptr)() = (int (*)())frexpf;
20300 main ()
20302 return 0;
20305 _ACEOF
20306 if ac_fn_c_try_link "$LINENO"; then :
20307 gcc_cv_math_func_frexpf=yes
20308 else
20309 gcc_cv_math_func_frexpf=no
20311 rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20315 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20316 if test $gcc_cv_math_func_frexpf = yes; then
20318 cat >>confdefs.h <<_ACEOF
20319 #define HAVE_FREXPF 1
20320 _ACEOF
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20328 $as_echo_n "checking for frexp... " >&6; }
20329 if ${gcc_cv_math_func_frexp+:} false; then :
20330 $as_echo_n "(cached) " >&6
20331 else
20332 if test x$gcc_no_link = xyes; then
20333 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20338 #ifdef HAVE_COMPLEX_H
20339 #include <complex.h>
20340 #endif
20341 #ifdef HAVE_MATH_H
20342 #include <math.h>
20343 #endif
20345 int (*ptr)() = (int (*)())frexp;
20348 main ()
20350 return 0;
20353 _ACEOF
20354 if ac_fn_c_try_link "$LINENO"; then :
20355 gcc_cv_math_func_frexp=yes
20356 else
20357 gcc_cv_math_func_frexp=no
20359 rm -f core conftest.err conftest.$ac_objext \
20360 conftest$ac_exeext conftest.$ac_ext
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20363 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20364 if test $gcc_cv_math_func_frexp = yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define HAVE_FREXP 1
20368 _ACEOF
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20376 $as_echo_n "checking for frexpl... " >&6; }
20377 if ${gcc_cv_math_func_frexpl+:} false; then :
20378 $as_echo_n "(cached) " >&6
20379 else
20380 if test x$gcc_no_link = xyes; then
20381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20386 #ifdef HAVE_COMPLEX_H
20387 #include <complex.h>
20388 #endif
20389 #ifdef HAVE_MATH_H
20390 #include <math.h>
20391 #endif
20393 int (*ptr)() = (int (*)())frexpl;
20396 main ()
20398 return 0;
20401 _ACEOF
20402 if ac_fn_c_try_link "$LINENO"; then :
20403 gcc_cv_math_func_frexpl=yes
20404 else
20405 gcc_cv_math_func_frexpl=no
20407 rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20411 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20412 if test $gcc_cv_math_func_frexpl = yes; then
20414 cat >>confdefs.h <<_ACEOF
20415 #define HAVE_FREXPL 1
20416 _ACEOF
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20424 $as_echo_n "checking for hypotf... " >&6; }
20425 if ${gcc_cv_math_func_hypotf+:} false; then :
20426 $as_echo_n "(cached) " >&6
20427 else
20428 if test x$gcc_no_link = xyes; then
20429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h. */
20434 #ifdef HAVE_COMPLEX_H
20435 #include <complex.h>
20436 #endif
20437 #ifdef HAVE_MATH_H
20438 #include <math.h>
20439 #endif
20441 int (*ptr)() = (int (*)())hypotf;
20444 main ()
20446 return 0;
20449 _ACEOF
20450 if ac_fn_c_try_link "$LINENO"; then :
20451 gcc_cv_math_func_hypotf=yes
20452 else
20453 gcc_cv_math_func_hypotf=no
20455 rm -f core conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20459 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20460 if test $gcc_cv_math_func_hypotf = yes; then
20462 cat >>confdefs.h <<_ACEOF
20463 #define HAVE_HYPOTF 1
20464 _ACEOF
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20472 $as_echo_n "checking for hypot... " >&6; }
20473 if ${gcc_cv_math_func_hypot+:} false; then :
20474 $as_echo_n "(cached) " >&6
20475 else
20476 if test x$gcc_no_link = xyes; then
20477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20482 #ifdef HAVE_COMPLEX_H
20483 #include <complex.h>
20484 #endif
20485 #ifdef HAVE_MATH_H
20486 #include <math.h>
20487 #endif
20489 int (*ptr)() = (int (*)())hypot;
20492 main ()
20494 return 0;
20497 _ACEOF
20498 if ac_fn_c_try_link "$LINENO"; then :
20499 gcc_cv_math_func_hypot=yes
20500 else
20501 gcc_cv_math_func_hypot=no
20503 rm -f core conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20507 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20508 if test $gcc_cv_math_func_hypot = yes; then
20510 cat >>confdefs.h <<_ACEOF
20511 #define HAVE_HYPOT 1
20512 _ACEOF
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20520 $as_echo_n "checking for hypotl... " >&6; }
20521 if ${gcc_cv_math_func_hypotl+:} false; then :
20522 $as_echo_n "(cached) " >&6
20523 else
20524 if test x$gcc_no_link = xyes; then
20525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20530 #ifdef HAVE_COMPLEX_H
20531 #include <complex.h>
20532 #endif
20533 #ifdef HAVE_MATH_H
20534 #include <math.h>
20535 #endif
20537 int (*ptr)() = (int (*)())hypotl;
20540 main ()
20542 return 0;
20545 _ACEOF
20546 if ac_fn_c_try_link "$LINENO"; then :
20547 gcc_cv_math_func_hypotl=yes
20548 else
20549 gcc_cv_math_func_hypotl=no
20551 rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20555 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20556 if test $gcc_cv_math_func_hypotl = yes; then
20558 cat >>confdefs.h <<_ACEOF
20559 #define HAVE_HYPOTL 1
20560 _ACEOF
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20568 $as_echo_n "checking for ldexpf... " >&6; }
20569 if ${gcc_cv_math_func_ldexpf+:} false; then :
20570 $as_echo_n "(cached) " >&6
20571 else
20572 if test x$gcc_no_link = xyes; then
20573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576 /* end confdefs.h. */
20578 #ifdef HAVE_COMPLEX_H
20579 #include <complex.h>
20580 #endif
20581 #ifdef HAVE_MATH_H
20582 #include <math.h>
20583 #endif
20585 int (*ptr)() = (int (*)())ldexpf;
20588 main ()
20590 return 0;
20593 _ACEOF
20594 if ac_fn_c_try_link "$LINENO"; then :
20595 gcc_cv_math_func_ldexpf=yes
20596 else
20597 gcc_cv_math_func_ldexpf=no
20599 rm -f core conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20603 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20604 if test $gcc_cv_math_func_ldexpf = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_LDEXPF 1
20608 _ACEOF
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20616 $as_echo_n "checking for ldexp... " >&6; }
20617 if ${gcc_cv_math_func_ldexp+:} false; then :
20618 $as_echo_n "(cached) " >&6
20619 else
20620 if test x$gcc_no_link = xyes; then
20621 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20626 #ifdef HAVE_COMPLEX_H
20627 #include <complex.h>
20628 #endif
20629 #ifdef HAVE_MATH_H
20630 #include <math.h>
20631 #endif
20633 int (*ptr)() = (int (*)())ldexp;
20636 main ()
20638 return 0;
20641 _ACEOF
20642 if ac_fn_c_try_link "$LINENO"; then :
20643 gcc_cv_math_func_ldexp=yes
20644 else
20645 gcc_cv_math_func_ldexp=no
20647 rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20651 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20652 if test $gcc_cv_math_func_ldexp = yes; then
20654 cat >>confdefs.h <<_ACEOF
20655 #define HAVE_LDEXP 1
20656 _ACEOF
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20664 $as_echo_n "checking for ldexpl... " >&6; }
20665 if ${gcc_cv_math_func_ldexpl+:} false; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 if test x$gcc_no_link = xyes; then
20669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20674 #ifdef HAVE_COMPLEX_H
20675 #include <complex.h>
20676 #endif
20677 #ifdef HAVE_MATH_H
20678 #include <math.h>
20679 #endif
20681 int (*ptr)() = (int (*)())ldexpl;
20684 main ()
20686 return 0;
20689 _ACEOF
20690 if ac_fn_c_try_link "$LINENO"; then :
20691 gcc_cv_math_func_ldexpl=yes
20692 else
20693 gcc_cv_math_func_ldexpl=no
20695 rm -f core conftest.err conftest.$ac_objext \
20696 conftest$ac_exeext conftest.$ac_ext
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20699 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20700 if test $gcc_cv_math_func_ldexpl = yes; then
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_LDEXPL 1
20704 _ACEOF
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20712 $as_echo_n "checking for logf... " >&6; }
20713 if ${gcc_cv_math_func_logf+:} false; then :
20714 $as_echo_n "(cached) " >&6
20715 else
20716 if test x$gcc_no_link = xyes; then
20717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20722 #ifdef HAVE_COMPLEX_H
20723 #include <complex.h>
20724 #endif
20725 #ifdef HAVE_MATH_H
20726 #include <math.h>
20727 #endif
20729 int (*ptr)() = (int (*)())logf;
20732 main ()
20734 return 0;
20737 _ACEOF
20738 if ac_fn_c_try_link "$LINENO"; then :
20739 gcc_cv_math_func_logf=yes
20740 else
20741 gcc_cv_math_func_logf=no
20743 rm -f core conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20747 $as_echo "$gcc_cv_math_func_logf" >&6; }
20748 if test $gcc_cv_math_func_logf = yes; then
20750 cat >>confdefs.h <<_ACEOF
20751 #define HAVE_LOGF 1
20752 _ACEOF
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20760 $as_echo_n "checking for log... " >&6; }
20761 if ${gcc_cv_math_func_log+:} false; then :
20762 $as_echo_n "(cached) " >&6
20763 else
20764 if test x$gcc_no_link = xyes; then
20765 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20770 #ifdef HAVE_COMPLEX_H
20771 #include <complex.h>
20772 #endif
20773 #ifdef HAVE_MATH_H
20774 #include <math.h>
20775 #endif
20777 int (*ptr)() = (int (*)())log;
20780 main ()
20782 return 0;
20785 _ACEOF
20786 if ac_fn_c_try_link "$LINENO"; then :
20787 gcc_cv_math_func_log=yes
20788 else
20789 gcc_cv_math_func_log=no
20791 rm -f core conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext conftest.$ac_ext
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20795 $as_echo "$gcc_cv_math_func_log" >&6; }
20796 if test $gcc_cv_math_func_log = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define HAVE_LOG 1
20800 _ACEOF
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20808 $as_echo_n "checking for logl... " >&6; }
20809 if ${gcc_cv_math_func_logl+:} false; then :
20810 $as_echo_n "(cached) " >&6
20811 else
20812 if test x$gcc_no_link = xyes; then
20813 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20818 #ifdef HAVE_COMPLEX_H
20819 #include <complex.h>
20820 #endif
20821 #ifdef HAVE_MATH_H
20822 #include <math.h>
20823 #endif
20825 int (*ptr)() = (int (*)())logl;
20828 main ()
20830 return 0;
20833 _ACEOF
20834 if ac_fn_c_try_link "$LINENO"; then :
20835 gcc_cv_math_func_logl=yes
20836 else
20837 gcc_cv_math_func_logl=no
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20843 $as_echo "$gcc_cv_math_func_logl" >&6; }
20844 if test $gcc_cv_math_func_logl = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_LOGL 1
20848 _ACEOF
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20856 $as_echo_n "checking for clogf... " >&6; }
20857 if ${gcc_cv_math_func_clogf+:} false; then :
20858 $as_echo_n "(cached) " >&6
20859 else
20860 if test x$gcc_no_link = xyes; then
20861 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h. */
20866 #ifdef HAVE_COMPLEX_H
20867 #include <complex.h>
20868 #endif
20869 #ifdef HAVE_MATH_H
20870 #include <math.h>
20871 #endif
20873 int (*ptr)() = (int (*)())clogf;
20876 main ()
20878 return 0;
20881 _ACEOF
20882 if ac_fn_c_try_link "$LINENO"; then :
20883 gcc_cv_math_func_clogf=yes
20884 else
20885 gcc_cv_math_func_clogf=no
20887 rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20891 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20892 if test $gcc_cv_math_func_clogf = yes; then
20894 cat >>confdefs.h <<_ACEOF
20895 #define HAVE_CLOGF 1
20896 _ACEOF
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20904 $as_echo_n "checking for clog... " >&6; }
20905 if ${gcc_cv_math_func_clog+:} false; then :
20906 $as_echo_n "(cached) " >&6
20907 else
20908 if test x$gcc_no_link = xyes; then
20909 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h. */
20914 #ifdef HAVE_COMPLEX_H
20915 #include <complex.h>
20916 #endif
20917 #ifdef HAVE_MATH_H
20918 #include <math.h>
20919 #endif
20921 int (*ptr)() = (int (*)())clog;
20924 main ()
20926 return 0;
20929 _ACEOF
20930 if ac_fn_c_try_link "$LINENO"; then :
20931 gcc_cv_math_func_clog=yes
20932 else
20933 gcc_cv_math_func_clog=no
20935 rm -f core conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20939 $as_echo "$gcc_cv_math_func_clog" >&6; }
20940 if test $gcc_cv_math_func_clog = yes; then
20942 cat >>confdefs.h <<_ACEOF
20943 #define HAVE_CLOG 1
20944 _ACEOF
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20952 $as_echo_n "checking for clogl... " >&6; }
20953 if ${gcc_cv_math_func_clogl+:} false; then :
20954 $as_echo_n "(cached) " >&6
20955 else
20956 if test x$gcc_no_link = xyes; then
20957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20962 #ifdef HAVE_COMPLEX_H
20963 #include <complex.h>
20964 #endif
20965 #ifdef HAVE_MATH_H
20966 #include <math.h>
20967 #endif
20969 int (*ptr)() = (int (*)())clogl;
20972 main ()
20974 return 0;
20977 _ACEOF
20978 if ac_fn_c_try_link "$LINENO"; then :
20979 gcc_cv_math_func_clogl=yes
20980 else
20981 gcc_cv_math_func_clogl=no
20983 rm -f core conftest.err conftest.$ac_objext \
20984 conftest$ac_exeext conftest.$ac_ext
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20987 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20988 if test $gcc_cv_math_func_clogl = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_CLOGL 1
20992 _ACEOF
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
21000 $as_echo_n "checking for log10f... " >&6; }
21001 if ${gcc_cv_math_func_log10f+:} false; then :
21002 $as_echo_n "(cached) " >&6
21003 else
21004 if test x$gcc_no_link = xyes; then
21005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21010 #ifdef HAVE_COMPLEX_H
21011 #include <complex.h>
21012 #endif
21013 #ifdef HAVE_MATH_H
21014 #include <math.h>
21015 #endif
21017 int (*ptr)() = (int (*)())log10f;
21020 main ()
21022 return 0;
21025 _ACEOF
21026 if ac_fn_c_try_link "$LINENO"; then :
21027 gcc_cv_math_func_log10f=yes
21028 else
21029 gcc_cv_math_func_log10f=no
21031 rm -f core conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
21035 $as_echo "$gcc_cv_math_func_log10f" >&6; }
21036 if test $gcc_cv_math_func_log10f = yes; then
21038 cat >>confdefs.h <<_ACEOF
21039 #define HAVE_LOG10F 1
21040 _ACEOF
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
21048 $as_echo_n "checking for log10... " >&6; }
21049 if ${gcc_cv_math_func_log10+:} false; then :
21050 $as_echo_n "(cached) " >&6
21051 else
21052 if test x$gcc_no_link = xyes; then
21053 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h. */
21058 #ifdef HAVE_COMPLEX_H
21059 #include <complex.h>
21060 #endif
21061 #ifdef HAVE_MATH_H
21062 #include <math.h>
21063 #endif
21065 int (*ptr)() = (int (*)())log10;
21068 main ()
21070 return 0;
21073 _ACEOF
21074 if ac_fn_c_try_link "$LINENO"; then :
21075 gcc_cv_math_func_log10=yes
21076 else
21077 gcc_cv_math_func_log10=no
21079 rm -f core conftest.err conftest.$ac_objext \
21080 conftest$ac_exeext conftest.$ac_ext
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
21083 $as_echo "$gcc_cv_math_func_log10" >&6; }
21084 if test $gcc_cv_math_func_log10 = yes; then
21086 cat >>confdefs.h <<_ACEOF
21087 #define HAVE_LOG10 1
21088 _ACEOF
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
21096 $as_echo_n "checking for log10l... " >&6; }
21097 if ${gcc_cv_math_func_log10l+:} false; then :
21098 $as_echo_n "(cached) " >&6
21099 else
21100 if test x$gcc_no_link = xyes; then
21101 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21104 /* end confdefs.h. */
21106 #ifdef HAVE_COMPLEX_H
21107 #include <complex.h>
21108 #endif
21109 #ifdef HAVE_MATH_H
21110 #include <math.h>
21111 #endif
21113 int (*ptr)() = (int (*)())log10l;
21116 main ()
21118 return 0;
21121 _ACEOF
21122 if ac_fn_c_try_link "$LINENO"; then :
21123 gcc_cv_math_func_log10l=yes
21124 else
21125 gcc_cv_math_func_log10l=no
21127 rm -f core conftest.err conftest.$ac_objext \
21128 conftest$ac_exeext conftest.$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21131 $as_echo "$gcc_cv_math_func_log10l" >&6; }
21132 if test $gcc_cv_math_func_log10l = yes; then
21134 cat >>confdefs.h <<_ACEOF
21135 #define HAVE_LOG10L 1
21136 _ACEOF
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21144 $as_echo_n "checking for clog10f... " >&6; }
21145 if ${gcc_cv_math_func_clog10f+:} false; then :
21146 $as_echo_n "(cached) " >&6
21147 else
21148 if test x$gcc_no_link = xyes; then
21149 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21154 #ifdef HAVE_COMPLEX_H
21155 #include <complex.h>
21156 #endif
21157 #ifdef HAVE_MATH_H
21158 #include <math.h>
21159 #endif
21161 int (*ptr)() = (int (*)())clog10f;
21164 main ()
21166 return 0;
21169 _ACEOF
21170 if ac_fn_c_try_link "$LINENO"; then :
21171 gcc_cv_math_func_clog10f=yes
21172 else
21173 gcc_cv_math_func_clog10f=no
21175 rm -f core conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21179 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
21180 if test $gcc_cv_math_func_clog10f = yes; then
21182 cat >>confdefs.h <<_ACEOF
21183 #define HAVE_CLOG10F 1
21184 _ACEOF
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21192 $as_echo_n "checking for clog10... " >&6; }
21193 if ${gcc_cv_math_func_clog10+:} false; then :
21194 $as_echo_n "(cached) " >&6
21195 else
21196 if test x$gcc_no_link = xyes; then
21197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21202 #ifdef HAVE_COMPLEX_H
21203 #include <complex.h>
21204 #endif
21205 #ifdef HAVE_MATH_H
21206 #include <math.h>
21207 #endif
21209 int (*ptr)() = (int (*)())clog10;
21212 main ()
21214 return 0;
21217 _ACEOF
21218 if ac_fn_c_try_link "$LINENO"; then :
21219 gcc_cv_math_func_clog10=yes
21220 else
21221 gcc_cv_math_func_clog10=no
21223 rm -f core conftest.err conftest.$ac_objext \
21224 conftest$ac_exeext conftest.$ac_ext
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21227 $as_echo "$gcc_cv_math_func_clog10" >&6; }
21228 if test $gcc_cv_math_func_clog10 = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_CLOG10 1
21232 _ACEOF
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21240 $as_echo_n "checking for clog10l... " >&6; }
21241 if ${gcc_cv_math_func_clog10l+:} false; then :
21242 $as_echo_n "(cached) " >&6
21243 else
21244 if test x$gcc_no_link = xyes; then
21245 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21250 #ifdef HAVE_COMPLEX_H
21251 #include <complex.h>
21252 #endif
21253 #ifdef HAVE_MATH_H
21254 #include <math.h>
21255 #endif
21257 int (*ptr)() = (int (*)())clog10l;
21260 main ()
21262 return 0;
21265 _ACEOF
21266 if ac_fn_c_try_link "$LINENO"; then :
21267 gcc_cv_math_func_clog10l=yes
21268 else
21269 gcc_cv_math_func_clog10l=no
21271 rm -f core conftest.err conftest.$ac_objext \
21272 conftest$ac_exeext conftest.$ac_ext
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21275 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
21276 if test $gcc_cv_math_func_clog10l = yes; then
21278 cat >>confdefs.h <<_ACEOF
21279 #define HAVE_CLOG10L 1
21280 _ACEOF
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21288 $as_echo_n "checking for nextafterf... " >&6; }
21289 if ${gcc_cv_math_func_nextafterf+:} false; then :
21290 $as_echo_n "(cached) " >&6
21291 else
21292 if test x$gcc_no_link = xyes; then
21293 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21298 #ifdef HAVE_COMPLEX_H
21299 #include <complex.h>
21300 #endif
21301 #ifdef HAVE_MATH_H
21302 #include <math.h>
21303 #endif
21305 int (*ptr)() = (int (*)())nextafterf;
21308 main ()
21310 return 0;
21313 _ACEOF
21314 if ac_fn_c_try_link "$LINENO"; then :
21315 gcc_cv_math_func_nextafterf=yes
21316 else
21317 gcc_cv_math_func_nextafterf=no
21319 rm -f core conftest.err conftest.$ac_objext \
21320 conftest$ac_exeext conftest.$ac_ext
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21323 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21324 if test $gcc_cv_math_func_nextafterf = yes; then
21326 cat >>confdefs.h <<_ACEOF
21327 #define HAVE_NEXTAFTERF 1
21328 _ACEOF
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21336 $as_echo_n "checking for nextafter... " >&6; }
21337 if ${gcc_cv_math_func_nextafter+:} false; then :
21338 $as_echo_n "(cached) " >&6
21339 else
21340 if test x$gcc_no_link = xyes; then
21341 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21346 #ifdef HAVE_COMPLEX_H
21347 #include <complex.h>
21348 #endif
21349 #ifdef HAVE_MATH_H
21350 #include <math.h>
21351 #endif
21353 int (*ptr)() = (int (*)())nextafter;
21356 main ()
21358 return 0;
21361 _ACEOF
21362 if ac_fn_c_try_link "$LINENO"; then :
21363 gcc_cv_math_func_nextafter=yes
21364 else
21365 gcc_cv_math_func_nextafter=no
21367 rm -f core conftest.err conftest.$ac_objext \
21368 conftest$ac_exeext conftest.$ac_ext
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21371 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21372 if test $gcc_cv_math_func_nextafter = yes; then
21374 cat >>confdefs.h <<_ACEOF
21375 #define HAVE_NEXTAFTER 1
21376 _ACEOF
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21384 $as_echo_n "checking for nextafterl... " >&6; }
21385 if ${gcc_cv_math_func_nextafterl+:} false; then :
21386 $as_echo_n "(cached) " >&6
21387 else
21388 if test x$gcc_no_link = xyes; then
21389 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21394 #ifdef HAVE_COMPLEX_H
21395 #include <complex.h>
21396 #endif
21397 #ifdef HAVE_MATH_H
21398 #include <math.h>
21399 #endif
21401 int (*ptr)() = (int (*)())nextafterl;
21404 main ()
21406 return 0;
21409 _ACEOF
21410 if ac_fn_c_try_link "$LINENO"; then :
21411 gcc_cv_math_func_nextafterl=yes
21412 else
21413 gcc_cv_math_func_nextafterl=no
21415 rm -f core conftest.err conftest.$ac_objext \
21416 conftest$ac_exeext conftest.$ac_ext
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21419 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21420 if test $gcc_cv_math_func_nextafterl = yes; then
21422 cat >>confdefs.h <<_ACEOF
21423 #define HAVE_NEXTAFTERL 1
21424 _ACEOF
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21432 $as_echo_n "checking for powf... " >&6; }
21433 if ${gcc_cv_math_func_powf+:} false; then :
21434 $as_echo_n "(cached) " >&6
21435 else
21436 if test x$gcc_no_link = xyes; then
21437 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21442 #ifdef HAVE_COMPLEX_H
21443 #include <complex.h>
21444 #endif
21445 #ifdef HAVE_MATH_H
21446 #include <math.h>
21447 #endif
21449 int (*ptr)() = (int (*)())powf;
21452 main ()
21454 return 0;
21457 _ACEOF
21458 if ac_fn_c_try_link "$LINENO"; then :
21459 gcc_cv_math_func_powf=yes
21460 else
21461 gcc_cv_math_func_powf=no
21463 rm -f core conftest.err conftest.$ac_objext \
21464 conftest$ac_exeext conftest.$ac_ext
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21467 $as_echo "$gcc_cv_math_func_powf" >&6; }
21468 if test $gcc_cv_math_func_powf = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_POWF 1
21472 _ACEOF
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21480 $as_echo_n "checking for pow... " >&6; }
21481 if ${gcc_cv_math_func_pow+:} false; then :
21482 $as_echo_n "(cached) " >&6
21483 else
21484 if test x$gcc_no_link = xyes; then
21485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21490 #ifdef HAVE_COMPLEX_H
21491 #include <complex.h>
21492 #endif
21493 #ifdef HAVE_MATH_H
21494 #include <math.h>
21495 #endif
21497 int (*ptr)() = (int (*)())pow;
21500 main ()
21502 return 0;
21505 _ACEOF
21506 if ac_fn_c_try_link "$LINENO"; then :
21507 gcc_cv_math_func_pow=yes
21508 else
21509 gcc_cv_math_func_pow=no
21511 rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21515 $as_echo "$gcc_cv_math_func_pow" >&6; }
21516 if test $gcc_cv_math_func_pow = yes; then
21518 cat >>confdefs.h <<_ACEOF
21519 #define HAVE_POW 1
21520 _ACEOF
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21528 $as_echo_n "checking for cpowf... " >&6; }
21529 if ${gcc_cv_math_func_cpowf+:} false; then :
21530 $as_echo_n "(cached) " >&6
21531 else
21532 if test x$gcc_no_link = xyes; then
21533 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21536 /* end confdefs.h. */
21538 #ifdef HAVE_COMPLEX_H
21539 #include <complex.h>
21540 #endif
21541 #ifdef HAVE_MATH_H
21542 #include <math.h>
21543 #endif
21545 int (*ptr)() = (int (*)())cpowf;
21548 main ()
21550 return 0;
21553 _ACEOF
21554 if ac_fn_c_try_link "$LINENO"; then :
21555 gcc_cv_math_func_cpowf=yes
21556 else
21557 gcc_cv_math_func_cpowf=no
21559 rm -f core conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21563 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21564 if test $gcc_cv_math_func_cpowf = yes; then
21566 cat >>confdefs.h <<_ACEOF
21567 #define HAVE_CPOWF 1
21568 _ACEOF
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21576 $as_echo_n "checking for cpow... " >&6; }
21577 if ${gcc_cv_math_func_cpow+:} false; then :
21578 $as_echo_n "(cached) " >&6
21579 else
21580 if test x$gcc_no_link = xyes; then
21581 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21586 #ifdef HAVE_COMPLEX_H
21587 #include <complex.h>
21588 #endif
21589 #ifdef HAVE_MATH_H
21590 #include <math.h>
21591 #endif
21593 int (*ptr)() = (int (*)())cpow;
21596 main ()
21598 return 0;
21601 _ACEOF
21602 if ac_fn_c_try_link "$LINENO"; then :
21603 gcc_cv_math_func_cpow=yes
21604 else
21605 gcc_cv_math_func_cpow=no
21607 rm -f core conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21611 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21612 if test $gcc_cv_math_func_cpow = yes; then
21614 cat >>confdefs.h <<_ACEOF
21615 #define HAVE_CPOW 1
21616 _ACEOF
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21624 $as_echo_n "checking for cpowl... " >&6; }
21625 if ${gcc_cv_math_func_cpowl+:} false; then :
21626 $as_echo_n "(cached) " >&6
21627 else
21628 if test x$gcc_no_link = xyes; then
21629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21634 #ifdef HAVE_COMPLEX_H
21635 #include <complex.h>
21636 #endif
21637 #ifdef HAVE_MATH_H
21638 #include <math.h>
21639 #endif
21641 int (*ptr)() = (int (*)())cpowl;
21644 main ()
21646 return 0;
21649 _ACEOF
21650 if ac_fn_c_try_link "$LINENO"; then :
21651 gcc_cv_math_func_cpowl=yes
21652 else
21653 gcc_cv_math_func_cpowl=no
21655 rm -f core conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21659 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21660 if test $gcc_cv_math_func_cpowl = yes; then
21662 cat >>confdefs.h <<_ACEOF
21663 #define HAVE_CPOWL 1
21664 _ACEOF
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21672 $as_echo_n "checking for roundf... " >&6; }
21673 if ${gcc_cv_math_func_roundf+:} false; then :
21674 $as_echo_n "(cached) " >&6
21675 else
21676 if test x$gcc_no_link = xyes; then
21677 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h. */
21682 #ifdef HAVE_COMPLEX_H
21683 #include <complex.h>
21684 #endif
21685 #ifdef HAVE_MATH_H
21686 #include <math.h>
21687 #endif
21689 int (*ptr)() = (int (*)())roundf;
21692 main ()
21694 return 0;
21697 _ACEOF
21698 if ac_fn_c_try_link "$LINENO"; then :
21699 gcc_cv_math_func_roundf=yes
21700 else
21701 gcc_cv_math_func_roundf=no
21703 rm -f core conftest.err conftest.$ac_objext \
21704 conftest$ac_exeext conftest.$ac_ext
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21707 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21708 if test $gcc_cv_math_func_roundf = yes; then
21710 cat >>confdefs.h <<_ACEOF
21711 #define HAVE_ROUNDF 1
21712 _ACEOF
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21720 $as_echo_n "checking for round... " >&6; }
21721 if ${gcc_cv_math_func_round+:} false; then :
21722 $as_echo_n "(cached) " >&6
21723 else
21724 if test x$gcc_no_link = xyes; then
21725 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21730 #ifdef HAVE_COMPLEX_H
21731 #include <complex.h>
21732 #endif
21733 #ifdef HAVE_MATH_H
21734 #include <math.h>
21735 #endif
21737 int (*ptr)() = (int (*)())round;
21740 main ()
21742 return 0;
21745 _ACEOF
21746 if ac_fn_c_try_link "$LINENO"; then :
21747 gcc_cv_math_func_round=yes
21748 else
21749 gcc_cv_math_func_round=no
21751 rm -f core conftest.err conftest.$ac_objext \
21752 conftest$ac_exeext conftest.$ac_ext
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21755 $as_echo "$gcc_cv_math_func_round" >&6; }
21756 if test $gcc_cv_math_func_round = yes; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define HAVE_ROUND 1
21760 _ACEOF
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21768 $as_echo_n "checking for roundl... " >&6; }
21769 if ${gcc_cv_math_func_roundl+:} false; then :
21770 $as_echo_n "(cached) " >&6
21771 else
21772 if test x$gcc_no_link = xyes; then
21773 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* end confdefs.h. */
21778 #ifdef HAVE_COMPLEX_H
21779 #include <complex.h>
21780 #endif
21781 #ifdef HAVE_MATH_H
21782 #include <math.h>
21783 #endif
21785 int (*ptr)() = (int (*)())roundl;
21788 main ()
21790 return 0;
21793 _ACEOF
21794 if ac_fn_c_try_link "$LINENO"; then :
21795 gcc_cv_math_func_roundl=yes
21796 else
21797 gcc_cv_math_func_roundl=no
21799 rm -f core conftest.err conftest.$ac_objext \
21800 conftest$ac_exeext conftest.$ac_ext
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21803 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21804 if test $gcc_cv_math_func_roundl = yes; then
21806 cat >>confdefs.h <<_ACEOF
21807 #define HAVE_ROUNDL 1
21808 _ACEOF
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21816 $as_echo_n "checking for lroundf... " >&6; }
21817 if ${gcc_cv_math_func_lroundf+:} false; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 if test x$gcc_no_link = xyes; then
21821 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h. */
21826 #ifdef HAVE_COMPLEX_H
21827 #include <complex.h>
21828 #endif
21829 #ifdef HAVE_MATH_H
21830 #include <math.h>
21831 #endif
21833 int (*ptr)() = (int (*)())lroundf;
21836 main ()
21838 return 0;
21841 _ACEOF
21842 if ac_fn_c_try_link "$LINENO"; then :
21843 gcc_cv_math_func_lroundf=yes
21844 else
21845 gcc_cv_math_func_lroundf=no
21847 rm -f core conftest.err conftest.$ac_objext \
21848 conftest$ac_exeext conftest.$ac_ext
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21851 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21852 if test $gcc_cv_math_func_lroundf = yes; then
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_LROUNDF 1
21856 _ACEOF
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21864 $as_echo_n "checking for lround... " >&6; }
21865 if ${gcc_cv_math_func_lround+:} false; then :
21866 $as_echo_n "(cached) " >&6
21867 else
21868 if test x$gcc_no_link = xyes; then
21869 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21874 #ifdef HAVE_COMPLEX_H
21875 #include <complex.h>
21876 #endif
21877 #ifdef HAVE_MATH_H
21878 #include <math.h>
21879 #endif
21881 int (*ptr)() = (int (*)())lround;
21884 main ()
21886 return 0;
21889 _ACEOF
21890 if ac_fn_c_try_link "$LINENO"; then :
21891 gcc_cv_math_func_lround=yes
21892 else
21893 gcc_cv_math_func_lround=no
21895 rm -f core conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21899 $as_echo "$gcc_cv_math_func_lround" >&6; }
21900 if test $gcc_cv_math_func_lround = yes; then
21902 cat >>confdefs.h <<_ACEOF
21903 #define HAVE_LROUND 1
21904 _ACEOF
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21912 $as_echo_n "checking for lroundl... " >&6; }
21913 if ${gcc_cv_math_func_lroundl+:} false; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 if test x$gcc_no_link = xyes; then
21917 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21920 /* end confdefs.h. */
21922 #ifdef HAVE_COMPLEX_H
21923 #include <complex.h>
21924 #endif
21925 #ifdef HAVE_MATH_H
21926 #include <math.h>
21927 #endif
21929 int (*ptr)() = (int (*)())lroundl;
21932 main ()
21934 return 0;
21937 _ACEOF
21938 if ac_fn_c_try_link "$LINENO"; then :
21939 gcc_cv_math_func_lroundl=yes
21940 else
21941 gcc_cv_math_func_lroundl=no
21943 rm -f core conftest.err conftest.$ac_objext \
21944 conftest$ac_exeext conftest.$ac_ext
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21947 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21948 if test $gcc_cv_math_func_lroundl = yes; then
21950 cat >>confdefs.h <<_ACEOF
21951 #define HAVE_LROUNDL 1
21952 _ACEOF
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21960 $as_echo_n "checking for llroundf... " >&6; }
21961 if ${gcc_cv_math_func_llroundf+:} false; then :
21962 $as_echo_n "(cached) " >&6
21963 else
21964 if test x$gcc_no_link = xyes; then
21965 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21970 #ifdef HAVE_COMPLEX_H
21971 #include <complex.h>
21972 #endif
21973 #ifdef HAVE_MATH_H
21974 #include <math.h>
21975 #endif
21977 int (*ptr)() = (int (*)())llroundf;
21980 main ()
21982 return 0;
21985 _ACEOF
21986 if ac_fn_c_try_link "$LINENO"; then :
21987 gcc_cv_math_func_llroundf=yes
21988 else
21989 gcc_cv_math_func_llroundf=no
21991 rm -f core conftest.err conftest.$ac_objext \
21992 conftest$ac_exeext conftest.$ac_ext
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21995 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21996 if test $gcc_cv_math_func_llroundf = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define HAVE_LLROUNDF 1
22000 _ACEOF
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
22008 $as_echo_n "checking for llround... " >&6; }
22009 if ${gcc_cv_math_func_llround+:} false; then :
22010 $as_echo_n "(cached) " >&6
22011 else
22012 if test x$gcc_no_link = xyes; then
22013 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22016 /* end confdefs.h. */
22018 #ifdef HAVE_COMPLEX_H
22019 #include <complex.h>
22020 #endif
22021 #ifdef HAVE_MATH_H
22022 #include <math.h>
22023 #endif
22025 int (*ptr)() = (int (*)())llround;
22028 main ()
22030 return 0;
22033 _ACEOF
22034 if ac_fn_c_try_link "$LINENO"; then :
22035 gcc_cv_math_func_llround=yes
22036 else
22037 gcc_cv_math_func_llround=no
22039 rm -f core conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
22043 $as_echo "$gcc_cv_math_func_llround" >&6; }
22044 if test $gcc_cv_math_func_llround = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define HAVE_LLROUND 1
22048 _ACEOF
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
22056 $as_echo_n "checking for llroundl... " >&6; }
22057 if ${gcc_cv_math_func_llroundl+:} false; then :
22058 $as_echo_n "(cached) " >&6
22059 else
22060 if test x$gcc_no_link = xyes; then
22061 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22066 #ifdef HAVE_COMPLEX_H
22067 #include <complex.h>
22068 #endif
22069 #ifdef HAVE_MATH_H
22070 #include <math.h>
22071 #endif
22073 int (*ptr)() = (int (*)())llroundl;
22076 main ()
22078 return 0;
22081 _ACEOF
22082 if ac_fn_c_try_link "$LINENO"; then :
22083 gcc_cv_math_func_llroundl=yes
22084 else
22085 gcc_cv_math_func_llroundl=no
22087 rm -f core conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
22091 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
22092 if test $gcc_cv_math_func_llroundl = yes; then
22094 cat >>confdefs.h <<_ACEOF
22095 #define HAVE_LLROUNDL 1
22096 _ACEOF
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
22104 $as_echo_n "checking for scalbnf... " >&6; }
22105 if ${gcc_cv_math_func_scalbnf+:} false; then :
22106 $as_echo_n "(cached) " >&6
22107 else
22108 if test x$gcc_no_link = xyes; then
22109 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22112 /* end confdefs.h. */
22114 #ifdef HAVE_COMPLEX_H
22115 #include <complex.h>
22116 #endif
22117 #ifdef HAVE_MATH_H
22118 #include <math.h>
22119 #endif
22121 int (*ptr)() = (int (*)())scalbnf;
22124 main ()
22126 return 0;
22129 _ACEOF
22130 if ac_fn_c_try_link "$LINENO"; then :
22131 gcc_cv_math_func_scalbnf=yes
22132 else
22133 gcc_cv_math_func_scalbnf=no
22135 rm -f core conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22139 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22140 if test $gcc_cv_math_func_scalbnf = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define HAVE_SCALBNF 1
22144 _ACEOF
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22152 $as_echo_n "checking for scalbn... " >&6; }
22153 if ${gcc_cv_math_func_scalbn+:} false; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 if test x$gcc_no_link = xyes; then
22157 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22162 #ifdef HAVE_COMPLEX_H
22163 #include <complex.h>
22164 #endif
22165 #ifdef HAVE_MATH_H
22166 #include <math.h>
22167 #endif
22169 int (*ptr)() = (int (*)())scalbn;
22172 main ()
22174 return 0;
22177 _ACEOF
22178 if ac_fn_c_try_link "$LINENO"; then :
22179 gcc_cv_math_func_scalbn=yes
22180 else
22181 gcc_cv_math_func_scalbn=no
22183 rm -f core conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22187 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
22188 if test $gcc_cv_math_func_scalbn = yes; then
22190 cat >>confdefs.h <<_ACEOF
22191 #define HAVE_SCALBN 1
22192 _ACEOF
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22200 $as_echo_n "checking for scalbnl... " >&6; }
22201 if ${gcc_cv_math_func_scalbnl+:} false; then :
22202 $as_echo_n "(cached) " >&6
22203 else
22204 if test x$gcc_no_link = xyes; then
22205 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22210 #ifdef HAVE_COMPLEX_H
22211 #include <complex.h>
22212 #endif
22213 #ifdef HAVE_MATH_H
22214 #include <math.h>
22215 #endif
22217 int (*ptr)() = (int (*)())scalbnl;
22220 main ()
22222 return 0;
22225 _ACEOF
22226 if ac_fn_c_try_link "$LINENO"; then :
22227 gcc_cv_math_func_scalbnl=yes
22228 else
22229 gcc_cv_math_func_scalbnl=no
22231 rm -f core conftest.err conftest.$ac_objext \
22232 conftest$ac_exeext conftest.$ac_ext
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22235 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22236 if test $gcc_cv_math_func_scalbnl = yes; then
22238 cat >>confdefs.h <<_ACEOF
22239 #define HAVE_SCALBNL 1
22240 _ACEOF
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22248 $as_echo_n "checking for sinf... " >&6; }
22249 if ${gcc_cv_math_func_sinf+:} false; then :
22250 $as_echo_n "(cached) " >&6
22251 else
22252 if test x$gcc_no_link = xyes; then
22253 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22258 #ifdef HAVE_COMPLEX_H
22259 #include <complex.h>
22260 #endif
22261 #ifdef HAVE_MATH_H
22262 #include <math.h>
22263 #endif
22265 int (*ptr)() = (int (*)())sinf;
22268 main ()
22270 return 0;
22273 _ACEOF
22274 if ac_fn_c_try_link "$LINENO"; then :
22275 gcc_cv_math_func_sinf=yes
22276 else
22277 gcc_cv_math_func_sinf=no
22279 rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22283 $as_echo "$gcc_cv_math_func_sinf" >&6; }
22284 if test $gcc_cv_math_func_sinf = yes; then
22286 cat >>confdefs.h <<_ACEOF
22287 #define HAVE_SINF 1
22288 _ACEOF
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22296 $as_echo_n "checking for sin... " >&6; }
22297 if ${gcc_cv_math_func_sin+:} false; then :
22298 $as_echo_n "(cached) " >&6
22299 else
22300 if test x$gcc_no_link = xyes; then
22301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22306 #ifdef HAVE_COMPLEX_H
22307 #include <complex.h>
22308 #endif
22309 #ifdef HAVE_MATH_H
22310 #include <math.h>
22311 #endif
22313 int (*ptr)() = (int (*)())sin;
22316 main ()
22318 return 0;
22321 _ACEOF
22322 if ac_fn_c_try_link "$LINENO"; then :
22323 gcc_cv_math_func_sin=yes
22324 else
22325 gcc_cv_math_func_sin=no
22327 rm -f core conftest.err conftest.$ac_objext \
22328 conftest$ac_exeext conftest.$ac_ext
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22331 $as_echo "$gcc_cv_math_func_sin" >&6; }
22332 if test $gcc_cv_math_func_sin = yes; then
22334 cat >>confdefs.h <<_ACEOF
22335 #define HAVE_SIN 1
22336 _ACEOF
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22344 $as_echo_n "checking for sinl... " >&6; }
22345 if ${gcc_cv_math_func_sinl+:} false; then :
22346 $as_echo_n "(cached) " >&6
22347 else
22348 if test x$gcc_no_link = xyes; then
22349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22354 #ifdef HAVE_COMPLEX_H
22355 #include <complex.h>
22356 #endif
22357 #ifdef HAVE_MATH_H
22358 #include <math.h>
22359 #endif
22361 int (*ptr)() = (int (*)())sinl;
22364 main ()
22366 return 0;
22369 _ACEOF
22370 if ac_fn_c_try_link "$LINENO"; then :
22371 gcc_cv_math_func_sinl=yes
22372 else
22373 gcc_cv_math_func_sinl=no
22375 rm -f core conftest.err conftest.$ac_objext \
22376 conftest$ac_exeext conftest.$ac_ext
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22379 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22380 if test $gcc_cv_math_func_sinl = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_SINL 1
22384 _ACEOF
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22392 $as_echo_n "checking for csinf... " >&6; }
22393 if ${gcc_cv_math_func_csinf+:} false; then :
22394 $as_echo_n "(cached) " >&6
22395 else
22396 if test x$gcc_no_link = xyes; then
22397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22402 #ifdef HAVE_COMPLEX_H
22403 #include <complex.h>
22404 #endif
22405 #ifdef HAVE_MATH_H
22406 #include <math.h>
22407 #endif
22409 int (*ptr)() = (int (*)())csinf;
22412 main ()
22414 return 0;
22417 _ACEOF
22418 if ac_fn_c_try_link "$LINENO"; then :
22419 gcc_cv_math_func_csinf=yes
22420 else
22421 gcc_cv_math_func_csinf=no
22423 rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22427 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22428 if test $gcc_cv_math_func_csinf = yes; then
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_CSINF 1
22432 _ACEOF
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22440 $as_echo_n "checking for csin... " >&6; }
22441 if ${gcc_cv_math_func_csin+:} false; then :
22442 $as_echo_n "(cached) " >&6
22443 else
22444 if test x$gcc_no_link = xyes; then
22445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22450 #ifdef HAVE_COMPLEX_H
22451 #include <complex.h>
22452 #endif
22453 #ifdef HAVE_MATH_H
22454 #include <math.h>
22455 #endif
22457 int (*ptr)() = (int (*)())csin;
22460 main ()
22462 return 0;
22465 _ACEOF
22466 if ac_fn_c_try_link "$LINENO"; then :
22467 gcc_cv_math_func_csin=yes
22468 else
22469 gcc_cv_math_func_csin=no
22471 rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22475 $as_echo "$gcc_cv_math_func_csin" >&6; }
22476 if test $gcc_cv_math_func_csin = yes; then
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_CSIN 1
22480 _ACEOF
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22488 $as_echo_n "checking for csinl... " >&6; }
22489 if ${gcc_cv_math_func_csinl+:} false; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 if test x$gcc_no_link = xyes; then
22493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h. */
22498 #ifdef HAVE_COMPLEX_H
22499 #include <complex.h>
22500 #endif
22501 #ifdef HAVE_MATH_H
22502 #include <math.h>
22503 #endif
22505 int (*ptr)() = (int (*)())csinl;
22508 main ()
22510 return 0;
22513 _ACEOF
22514 if ac_fn_c_try_link "$LINENO"; then :
22515 gcc_cv_math_func_csinl=yes
22516 else
22517 gcc_cv_math_func_csinl=no
22519 rm -f core conftest.err conftest.$ac_objext \
22520 conftest$ac_exeext conftest.$ac_ext
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22523 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22524 if test $gcc_cv_math_func_csinl = yes; then
22526 cat >>confdefs.h <<_ACEOF
22527 #define HAVE_CSINL 1
22528 _ACEOF
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22536 $as_echo_n "checking for sinhf... " >&6; }
22537 if ${gcc_cv_math_func_sinhf+:} false; then :
22538 $as_echo_n "(cached) " >&6
22539 else
22540 if test x$gcc_no_link = xyes; then
22541 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 /* end confdefs.h. */
22546 #ifdef HAVE_COMPLEX_H
22547 #include <complex.h>
22548 #endif
22549 #ifdef HAVE_MATH_H
22550 #include <math.h>
22551 #endif
22553 int (*ptr)() = (int (*)())sinhf;
22556 main ()
22558 return 0;
22561 _ACEOF
22562 if ac_fn_c_try_link "$LINENO"; then :
22563 gcc_cv_math_func_sinhf=yes
22564 else
22565 gcc_cv_math_func_sinhf=no
22567 rm -f core conftest.err conftest.$ac_objext \
22568 conftest$ac_exeext conftest.$ac_ext
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22571 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22572 if test $gcc_cv_math_func_sinhf = yes; then
22574 cat >>confdefs.h <<_ACEOF
22575 #define HAVE_SINHF 1
22576 _ACEOF
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22584 $as_echo_n "checking for sinh... " >&6; }
22585 if ${gcc_cv_math_func_sinh+:} false; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 if test x$gcc_no_link = xyes; then
22589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h. */
22594 #ifdef HAVE_COMPLEX_H
22595 #include <complex.h>
22596 #endif
22597 #ifdef HAVE_MATH_H
22598 #include <math.h>
22599 #endif
22601 int (*ptr)() = (int (*)())sinh;
22604 main ()
22606 return 0;
22609 _ACEOF
22610 if ac_fn_c_try_link "$LINENO"; then :
22611 gcc_cv_math_func_sinh=yes
22612 else
22613 gcc_cv_math_func_sinh=no
22615 rm -f core conftest.err conftest.$ac_objext \
22616 conftest$ac_exeext conftest.$ac_ext
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22619 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22620 if test $gcc_cv_math_func_sinh = yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define HAVE_SINH 1
22624 _ACEOF
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22632 $as_echo_n "checking for sinhl... " >&6; }
22633 if ${gcc_cv_math_func_sinhl+:} false; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 if test x$gcc_no_link = xyes; then
22637 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22640 /* end confdefs.h. */
22642 #ifdef HAVE_COMPLEX_H
22643 #include <complex.h>
22644 #endif
22645 #ifdef HAVE_MATH_H
22646 #include <math.h>
22647 #endif
22649 int (*ptr)() = (int (*)())sinhl;
22652 main ()
22654 return 0;
22657 _ACEOF
22658 if ac_fn_c_try_link "$LINENO"; then :
22659 gcc_cv_math_func_sinhl=yes
22660 else
22661 gcc_cv_math_func_sinhl=no
22663 rm -f core conftest.err conftest.$ac_objext \
22664 conftest$ac_exeext conftest.$ac_ext
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22667 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22668 if test $gcc_cv_math_func_sinhl = yes; then
22670 cat >>confdefs.h <<_ACEOF
22671 #define HAVE_SINHL 1
22672 _ACEOF
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22680 $as_echo_n "checking for csinhf... " >&6; }
22681 if ${gcc_cv_math_func_csinhf+:} false; then :
22682 $as_echo_n "(cached) " >&6
22683 else
22684 if test x$gcc_no_link = xyes; then
22685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688 /* end confdefs.h. */
22690 #ifdef HAVE_COMPLEX_H
22691 #include <complex.h>
22692 #endif
22693 #ifdef HAVE_MATH_H
22694 #include <math.h>
22695 #endif
22697 int (*ptr)() = (int (*)())csinhf;
22700 main ()
22702 return 0;
22705 _ACEOF
22706 if ac_fn_c_try_link "$LINENO"; then :
22707 gcc_cv_math_func_csinhf=yes
22708 else
22709 gcc_cv_math_func_csinhf=no
22711 rm -f core conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22715 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22716 if test $gcc_cv_math_func_csinhf = yes; then
22718 cat >>confdefs.h <<_ACEOF
22719 #define HAVE_CSINHF 1
22720 _ACEOF
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22728 $as_echo_n "checking for csinh... " >&6; }
22729 if ${gcc_cv_math_func_csinh+:} false; then :
22730 $as_echo_n "(cached) " >&6
22731 else
22732 if test x$gcc_no_link = xyes; then
22733 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h. */
22738 #ifdef HAVE_COMPLEX_H
22739 #include <complex.h>
22740 #endif
22741 #ifdef HAVE_MATH_H
22742 #include <math.h>
22743 #endif
22745 int (*ptr)() = (int (*)())csinh;
22748 main ()
22750 return 0;
22753 _ACEOF
22754 if ac_fn_c_try_link "$LINENO"; then :
22755 gcc_cv_math_func_csinh=yes
22756 else
22757 gcc_cv_math_func_csinh=no
22759 rm -f core conftest.err conftest.$ac_objext \
22760 conftest$ac_exeext conftest.$ac_ext
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22763 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22764 if test $gcc_cv_math_func_csinh = yes; then
22766 cat >>confdefs.h <<_ACEOF
22767 #define HAVE_CSINH 1
22768 _ACEOF
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22776 $as_echo_n "checking for csinhl... " >&6; }
22777 if ${gcc_cv_math_func_csinhl+:} false; then :
22778 $as_echo_n "(cached) " >&6
22779 else
22780 if test x$gcc_no_link = xyes; then
22781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22786 #ifdef HAVE_COMPLEX_H
22787 #include <complex.h>
22788 #endif
22789 #ifdef HAVE_MATH_H
22790 #include <math.h>
22791 #endif
22793 int (*ptr)() = (int (*)())csinhl;
22796 main ()
22798 return 0;
22801 _ACEOF
22802 if ac_fn_c_try_link "$LINENO"; then :
22803 gcc_cv_math_func_csinhl=yes
22804 else
22805 gcc_cv_math_func_csinhl=no
22807 rm -f core conftest.err conftest.$ac_objext \
22808 conftest$ac_exeext conftest.$ac_ext
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22811 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22812 if test $gcc_cv_math_func_csinhl = yes; then
22814 cat >>confdefs.h <<_ACEOF
22815 #define HAVE_CSINHL 1
22816 _ACEOF
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22824 $as_echo_n "checking for sqrtf... " >&6; }
22825 if ${gcc_cv_math_func_sqrtf+:} false; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 if test x$gcc_no_link = xyes; then
22829 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832 /* end confdefs.h. */
22834 #ifdef HAVE_COMPLEX_H
22835 #include <complex.h>
22836 #endif
22837 #ifdef HAVE_MATH_H
22838 #include <math.h>
22839 #endif
22841 int (*ptr)() = (int (*)())sqrtf;
22844 main ()
22846 return 0;
22849 _ACEOF
22850 if ac_fn_c_try_link "$LINENO"; then :
22851 gcc_cv_math_func_sqrtf=yes
22852 else
22853 gcc_cv_math_func_sqrtf=no
22855 rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22859 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22860 if test $gcc_cv_math_func_sqrtf = yes; then
22862 cat >>confdefs.h <<_ACEOF
22863 #define HAVE_SQRTF 1
22864 _ACEOF
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22872 $as_echo_n "checking for sqrt... " >&6; }
22873 if ${gcc_cv_math_func_sqrt+:} false; then :
22874 $as_echo_n "(cached) " >&6
22875 else
22876 if test x$gcc_no_link = xyes; then
22877 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h. */
22882 #ifdef HAVE_COMPLEX_H
22883 #include <complex.h>
22884 #endif
22885 #ifdef HAVE_MATH_H
22886 #include <math.h>
22887 #endif
22889 int (*ptr)() = (int (*)())sqrt;
22892 main ()
22894 return 0;
22897 _ACEOF
22898 if ac_fn_c_try_link "$LINENO"; then :
22899 gcc_cv_math_func_sqrt=yes
22900 else
22901 gcc_cv_math_func_sqrt=no
22903 rm -f core conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22907 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22908 if test $gcc_cv_math_func_sqrt = yes; then
22910 cat >>confdefs.h <<_ACEOF
22911 #define HAVE_SQRT 1
22912 _ACEOF
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22920 $as_echo_n "checking for sqrtl... " >&6; }
22921 if ${gcc_cv_math_func_sqrtl+:} false; then :
22922 $as_echo_n "(cached) " >&6
22923 else
22924 if test x$gcc_no_link = xyes; then
22925 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h. */
22930 #ifdef HAVE_COMPLEX_H
22931 #include <complex.h>
22932 #endif
22933 #ifdef HAVE_MATH_H
22934 #include <math.h>
22935 #endif
22937 int (*ptr)() = (int (*)())sqrtl;
22940 main ()
22942 return 0;
22945 _ACEOF
22946 if ac_fn_c_try_link "$LINENO"; then :
22947 gcc_cv_math_func_sqrtl=yes
22948 else
22949 gcc_cv_math_func_sqrtl=no
22951 rm -f core conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22955 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22956 if test $gcc_cv_math_func_sqrtl = yes; then
22958 cat >>confdefs.h <<_ACEOF
22959 #define HAVE_SQRTL 1
22960 _ACEOF
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22968 $as_echo_n "checking for csqrtf... " >&6; }
22969 if ${gcc_cv_math_func_csqrtf+:} false; then :
22970 $as_echo_n "(cached) " >&6
22971 else
22972 if test x$gcc_no_link = xyes; then
22973 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22978 #ifdef HAVE_COMPLEX_H
22979 #include <complex.h>
22980 #endif
22981 #ifdef HAVE_MATH_H
22982 #include <math.h>
22983 #endif
22985 int (*ptr)() = (int (*)())csqrtf;
22988 main ()
22990 return 0;
22993 _ACEOF
22994 if ac_fn_c_try_link "$LINENO"; then :
22995 gcc_cv_math_func_csqrtf=yes
22996 else
22997 gcc_cv_math_func_csqrtf=no
22999 rm -f core conftest.err conftest.$ac_objext \
23000 conftest$ac_exeext conftest.$ac_ext
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
23003 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
23004 if test $gcc_cv_math_func_csqrtf = yes; then
23006 cat >>confdefs.h <<_ACEOF
23007 #define HAVE_CSQRTF 1
23008 _ACEOF
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
23016 $as_echo_n "checking for csqrt... " >&6; }
23017 if ${gcc_cv_math_func_csqrt+:} false; then :
23018 $as_echo_n "(cached) " >&6
23019 else
23020 if test x$gcc_no_link = xyes; then
23021 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23026 #ifdef HAVE_COMPLEX_H
23027 #include <complex.h>
23028 #endif
23029 #ifdef HAVE_MATH_H
23030 #include <math.h>
23031 #endif
23033 int (*ptr)() = (int (*)())csqrt;
23036 main ()
23038 return 0;
23041 _ACEOF
23042 if ac_fn_c_try_link "$LINENO"; then :
23043 gcc_cv_math_func_csqrt=yes
23044 else
23045 gcc_cv_math_func_csqrt=no
23047 rm -f core conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
23051 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
23052 if test $gcc_cv_math_func_csqrt = yes; then
23054 cat >>confdefs.h <<_ACEOF
23055 #define HAVE_CSQRT 1
23056 _ACEOF
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
23064 $as_echo_n "checking for csqrtl... " >&6; }
23065 if ${gcc_cv_math_func_csqrtl+:} false; then :
23066 $as_echo_n "(cached) " >&6
23067 else
23068 if test x$gcc_no_link = xyes; then
23069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072 /* end confdefs.h. */
23074 #ifdef HAVE_COMPLEX_H
23075 #include <complex.h>
23076 #endif
23077 #ifdef HAVE_MATH_H
23078 #include <math.h>
23079 #endif
23081 int (*ptr)() = (int (*)())csqrtl;
23084 main ()
23086 return 0;
23089 _ACEOF
23090 if ac_fn_c_try_link "$LINENO"; then :
23091 gcc_cv_math_func_csqrtl=yes
23092 else
23093 gcc_cv_math_func_csqrtl=no
23095 rm -f core conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
23099 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
23100 if test $gcc_cv_math_func_csqrtl = yes; then
23102 cat >>confdefs.h <<_ACEOF
23103 #define HAVE_CSQRTL 1
23104 _ACEOF
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
23112 $as_echo_n "checking for tanf... " >&6; }
23113 if ${gcc_cv_math_func_tanf+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 if test x$gcc_no_link = xyes; then
23117 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h. */
23122 #ifdef HAVE_COMPLEX_H
23123 #include <complex.h>
23124 #endif
23125 #ifdef HAVE_MATH_H
23126 #include <math.h>
23127 #endif
23129 int (*ptr)() = (int (*)())tanf;
23132 main ()
23134 return 0;
23137 _ACEOF
23138 if ac_fn_c_try_link "$LINENO"; then :
23139 gcc_cv_math_func_tanf=yes
23140 else
23141 gcc_cv_math_func_tanf=no
23143 rm -f core conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23147 $as_echo "$gcc_cv_math_func_tanf" >&6; }
23148 if test $gcc_cv_math_func_tanf = yes; then
23150 cat >>confdefs.h <<_ACEOF
23151 #define HAVE_TANF 1
23152 _ACEOF
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23160 $as_echo_n "checking for tan... " >&6; }
23161 if ${gcc_cv_math_func_tan+:} false; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 if test x$gcc_no_link = xyes; then
23165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23170 #ifdef HAVE_COMPLEX_H
23171 #include <complex.h>
23172 #endif
23173 #ifdef HAVE_MATH_H
23174 #include <math.h>
23175 #endif
23177 int (*ptr)() = (int (*)())tan;
23180 main ()
23182 return 0;
23185 _ACEOF
23186 if ac_fn_c_try_link "$LINENO"; then :
23187 gcc_cv_math_func_tan=yes
23188 else
23189 gcc_cv_math_func_tan=no
23191 rm -f core conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23195 $as_echo "$gcc_cv_math_func_tan" >&6; }
23196 if test $gcc_cv_math_func_tan = yes; then
23198 cat >>confdefs.h <<_ACEOF
23199 #define HAVE_TAN 1
23200 _ACEOF
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23208 $as_echo_n "checking for tanl... " >&6; }
23209 if ${gcc_cv_math_func_tanl+:} false; then :
23210 $as_echo_n "(cached) " >&6
23211 else
23212 if test x$gcc_no_link = xyes; then
23213 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23218 #ifdef HAVE_COMPLEX_H
23219 #include <complex.h>
23220 #endif
23221 #ifdef HAVE_MATH_H
23222 #include <math.h>
23223 #endif
23225 int (*ptr)() = (int (*)())tanl;
23228 main ()
23230 return 0;
23233 _ACEOF
23234 if ac_fn_c_try_link "$LINENO"; then :
23235 gcc_cv_math_func_tanl=yes
23236 else
23237 gcc_cv_math_func_tanl=no
23239 rm -f core conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23243 $as_echo "$gcc_cv_math_func_tanl" >&6; }
23244 if test $gcc_cv_math_func_tanl = yes; then
23246 cat >>confdefs.h <<_ACEOF
23247 #define HAVE_TANL 1
23248 _ACEOF
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23256 $as_echo_n "checking for ctanf... " >&6; }
23257 if ${gcc_cv_math_func_ctanf+:} false; then :
23258 $as_echo_n "(cached) " >&6
23259 else
23260 if test x$gcc_no_link = xyes; then
23261 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h. */
23266 #ifdef HAVE_COMPLEX_H
23267 #include <complex.h>
23268 #endif
23269 #ifdef HAVE_MATH_H
23270 #include <math.h>
23271 #endif
23273 int (*ptr)() = (int (*)())ctanf;
23276 main ()
23278 return 0;
23281 _ACEOF
23282 if ac_fn_c_try_link "$LINENO"; then :
23283 gcc_cv_math_func_ctanf=yes
23284 else
23285 gcc_cv_math_func_ctanf=no
23287 rm -f core conftest.err conftest.$ac_objext \
23288 conftest$ac_exeext conftest.$ac_ext
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23291 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
23292 if test $gcc_cv_math_func_ctanf = yes; then
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_CTANF 1
23296 _ACEOF
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23304 $as_echo_n "checking for ctan... " >&6; }
23305 if ${gcc_cv_math_func_ctan+:} false; then :
23306 $as_echo_n "(cached) " >&6
23307 else
23308 if test x$gcc_no_link = xyes; then
23309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23312 /* end confdefs.h. */
23314 #ifdef HAVE_COMPLEX_H
23315 #include <complex.h>
23316 #endif
23317 #ifdef HAVE_MATH_H
23318 #include <math.h>
23319 #endif
23321 int (*ptr)() = (int (*)())ctan;
23324 main ()
23326 return 0;
23329 _ACEOF
23330 if ac_fn_c_try_link "$LINENO"; then :
23331 gcc_cv_math_func_ctan=yes
23332 else
23333 gcc_cv_math_func_ctan=no
23335 rm -f core conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23339 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23340 if test $gcc_cv_math_func_ctan = yes; then
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_CTAN 1
23344 _ACEOF
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23352 $as_echo_n "checking for ctanl... " >&6; }
23353 if ${gcc_cv_math_func_ctanl+:} false; then :
23354 $as_echo_n "(cached) " >&6
23355 else
23356 if test x$gcc_no_link = xyes; then
23357 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360 /* end confdefs.h. */
23362 #ifdef HAVE_COMPLEX_H
23363 #include <complex.h>
23364 #endif
23365 #ifdef HAVE_MATH_H
23366 #include <math.h>
23367 #endif
23369 int (*ptr)() = (int (*)())ctanl;
23372 main ()
23374 return 0;
23377 _ACEOF
23378 if ac_fn_c_try_link "$LINENO"; then :
23379 gcc_cv_math_func_ctanl=yes
23380 else
23381 gcc_cv_math_func_ctanl=no
23383 rm -f core conftest.err conftest.$ac_objext \
23384 conftest$ac_exeext conftest.$ac_ext
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23387 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23388 if test $gcc_cv_math_func_ctanl = yes; then
23390 cat >>confdefs.h <<_ACEOF
23391 #define HAVE_CTANL 1
23392 _ACEOF
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23400 $as_echo_n "checking for tanhf... " >&6; }
23401 if ${gcc_cv_math_func_tanhf+:} false; then :
23402 $as_echo_n "(cached) " >&6
23403 else
23404 if test x$gcc_no_link = xyes; then
23405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23408 /* end confdefs.h. */
23410 #ifdef HAVE_COMPLEX_H
23411 #include <complex.h>
23412 #endif
23413 #ifdef HAVE_MATH_H
23414 #include <math.h>
23415 #endif
23417 int (*ptr)() = (int (*)())tanhf;
23420 main ()
23422 return 0;
23425 _ACEOF
23426 if ac_fn_c_try_link "$LINENO"; then :
23427 gcc_cv_math_func_tanhf=yes
23428 else
23429 gcc_cv_math_func_tanhf=no
23431 rm -f core conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23435 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23436 if test $gcc_cv_math_func_tanhf = yes; then
23438 cat >>confdefs.h <<_ACEOF
23439 #define HAVE_TANHF 1
23440 _ACEOF
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23448 $as_echo_n "checking for tanh... " >&6; }
23449 if ${gcc_cv_math_func_tanh+:} false; then :
23450 $as_echo_n "(cached) " >&6
23451 else
23452 if test x$gcc_no_link = xyes; then
23453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23458 #ifdef HAVE_COMPLEX_H
23459 #include <complex.h>
23460 #endif
23461 #ifdef HAVE_MATH_H
23462 #include <math.h>
23463 #endif
23465 int (*ptr)() = (int (*)())tanh;
23468 main ()
23470 return 0;
23473 _ACEOF
23474 if ac_fn_c_try_link "$LINENO"; then :
23475 gcc_cv_math_func_tanh=yes
23476 else
23477 gcc_cv_math_func_tanh=no
23479 rm -f core conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23483 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23484 if test $gcc_cv_math_func_tanh = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487 #define HAVE_TANH 1
23488 _ACEOF
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23496 $as_echo_n "checking for tanhl... " >&6; }
23497 if ${gcc_cv_math_func_tanhl+:} false; then :
23498 $as_echo_n "(cached) " >&6
23499 else
23500 if test x$gcc_no_link = xyes; then
23501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23506 #ifdef HAVE_COMPLEX_H
23507 #include <complex.h>
23508 #endif
23509 #ifdef HAVE_MATH_H
23510 #include <math.h>
23511 #endif
23513 int (*ptr)() = (int (*)())tanhl;
23516 main ()
23518 return 0;
23521 _ACEOF
23522 if ac_fn_c_try_link "$LINENO"; then :
23523 gcc_cv_math_func_tanhl=yes
23524 else
23525 gcc_cv_math_func_tanhl=no
23527 rm -f core conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23531 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23532 if test $gcc_cv_math_func_tanhl = yes; then
23534 cat >>confdefs.h <<_ACEOF
23535 #define HAVE_TANHL 1
23536 _ACEOF
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23544 $as_echo_n "checking for ctanhf... " >&6; }
23545 if ${gcc_cv_math_func_ctanhf+:} false; then :
23546 $as_echo_n "(cached) " >&6
23547 else
23548 if test x$gcc_no_link = xyes; then
23549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552 /* end confdefs.h. */
23554 #ifdef HAVE_COMPLEX_H
23555 #include <complex.h>
23556 #endif
23557 #ifdef HAVE_MATH_H
23558 #include <math.h>
23559 #endif
23561 int (*ptr)() = (int (*)())ctanhf;
23564 main ()
23566 return 0;
23569 _ACEOF
23570 if ac_fn_c_try_link "$LINENO"; then :
23571 gcc_cv_math_func_ctanhf=yes
23572 else
23573 gcc_cv_math_func_ctanhf=no
23575 rm -f core conftest.err conftest.$ac_objext \
23576 conftest$ac_exeext conftest.$ac_ext
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23579 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23580 if test $gcc_cv_math_func_ctanhf = yes; then
23582 cat >>confdefs.h <<_ACEOF
23583 #define HAVE_CTANHF 1
23584 _ACEOF
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23592 $as_echo_n "checking for ctanh... " >&6; }
23593 if ${gcc_cv_math_func_ctanh+:} false; then :
23594 $as_echo_n "(cached) " >&6
23595 else
23596 if test x$gcc_no_link = xyes; then
23597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h. */
23602 #ifdef HAVE_COMPLEX_H
23603 #include <complex.h>
23604 #endif
23605 #ifdef HAVE_MATH_H
23606 #include <math.h>
23607 #endif
23609 int (*ptr)() = (int (*)())ctanh;
23612 main ()
23614 return 0;
23617 _ACEOF
23618 if ac_fn_c_try_link "$LINENO"; then :
23619 gcc_cv_math_func_ctanh=yes
23620 else
23621 gcc_cv_math_func_ctanh=no
23623 rm -f core conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23627 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23628 if test $gcc_cv_math_func_ctanh = yes; then
23630 cat >>confdefs.h <<_ACEOF
23631 #define HAVE_CTANH 1
23632 _ACEOF
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23640 $as_echo_n "checking for ctanhl... " >&6; }
23641 if ${gcc_cv_math_func_ctanhl+:} false; then :
23642 $as_echo_n "(cached) " >&6
23643 else
23644 if test x$gcc_no_link = xyes; then
23645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 #ifdef HAVE_COMPLEX_H
23651 #include <complex.h>
23652 #endif
23653 #ifdef HAVE_MATH_H
23654 #include <math.h>
23655 #endif
23657 int (*ptr)() = (int (*)())ctanhl;
23660 main ()
23662 return 0;
23665 _ACEOF
23666 if ac_fn_c_try_link "$LINENO"; then :
23667 gcc_cv_math_func_ctanhl=yes
23668 else
23669 gcc_cv_math_func_ctanhl=no
23671 rm -f core conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23675 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23676 if test $gcc_cv_math_func_ctanhl = yes; then
23678 cat >>confdefs.h <<_ACEOF
23679 #define HAVE_CTANHL 1
23680 _ACEOF
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23688 $as_echo_n "checking for truncf... " >&6; }
23689 if ${gcc_cv_math_func_truncf+:} false; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 if test x$gcc_no_link = xyes; then
23693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23696 /* end confdefs.h. */
23698 #ifdef HAVE_COMPLEX_H
23699 #include <complex.h>
23700 #endif
23701 #ifdef HAVE_MATH_H
23702 #include <math.h>
23703 #endif
23705 int (*ptr)() = (int (*)())truncf;
23708 main ()
23710 return 0;
23713 _ACEOF
23714 if ac_fn_c_try_link "$LINENO"; then :
23715 gcc_cv_math_func_truncf=yes
23716 else
23717 gcc_cv_math_func_truncf=no
23719 rm -f core conftest.err conftest.$ac_objext \
23720 conftest$ac_exeext conftest.$ac_ext
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23723 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23724 if test $gcc_cv_math_func_truncf = yes; then
23726 cat >>confdefs.h <<_ACEOF
23727 #define HAVE_TRUNCF 1
23728 _ACEOF
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23736 $as_echo_n "checking for trunc... " >&6; }
23737 if ${gcc_cv_math_func_trunc+:} false; then :
23738 $as_echo_n "(cached) " >&6
23739 else
23740 if test x$gcc_no_link = xyes; then
23741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23744 /* end confdefs.h. */
23746 #ifdef HAVE_COMPLEX_H
23747 #include <complex.h>
23748 #endif
23749 #ifdef HAVE_MATH_H
23750 #include <math.h>
23751 #endif
23753 int (*ptr)() = (int (*)())trunc;
23756 main ()
23758 return 0;
23761 _ACEOF
23762 if ac_fn_c_try_link "$LINENO"; then :
23763 gcc_cv_math_func_trunc=yes
23764 else
23765 gcc_cv_math_func_trunc=no
23767 rm -f core conftest.err conftest.$ac_objext \
23768 conftest$ac_exeext conftest.$ac_ext
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23771 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23772 if test $gcc_cv_math_func_trunc = yes; then
23774 cat >>confdefs.h <<_ACEOF
23775 #define HAVE_TRUNC 1
23776 _ACEOF
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23784 $as_echo_n "checking for truncl... " >&6; }
23785 if ${gcc_cv_math_func_truncl+:} false; then :
23786 $as_echo_n "(cached) " >&6
23787 else
23788 if test x$gcc_no_link = xyes; then
23789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23792 /* end confdefs.h. */
23794 #ifdef HAVE_COMPLEX_H
23795 #include <complex.h>
23796 #endif
23797 #ifdef HAVE_MATH_H
23798 #include <math.h>
23799 #endif
23801 int (*ptr)() = (int (*)())truncl;
23804 main ()
23806 return 0;
23809 _ACEOF
23810 if ac_fn_c_try_link "$LINENO"; then :
23811 gcc_cv_math_func_truncl=yes
23812 else
23813 gcc_cv_math_func_truncl=no
23815 rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23819 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23820 if test $gcc_cv_math_func_truncl = yes; then
23822 cat >>confdefs.h <<_ACEOF
23823 #define HAVE_TRUNCL 1
23824 _ACEOF
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23832 $as_echo_n "checking for erff... " >&6; }
23833 if ${gcc_cv_math_func_erff+:} false; then :
23834 $as_echo_n "(cached) " >&6
23835 else
23836 if test x$gcc_no_link = xyes; then
23837 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23842 #ifdef HAVE_COMPLEX_H
23843 #include <complex.h>
23844 #endif
23845 #ifdef HAVE_MATH_H
23846 #include <math.h>
23847 #endif
23849 int (*ptr)() = (int (*)())erff;
23852 main ()
23854 return 0;
23857 _ACEOF
23858 if ac_fn_c_try_link "$LINENO"; then :
23859 gcc_cv_math_func_erff=yes
23860 else
23861 gcc_cv_math_func_erff=no
23863 rm -f core conftest.err conftest.$ac_objext \
23864 conftest$ac_exeext conftest.$ac_ext
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23867 $as_echo "$gcc_cv_math_func_erff" >&6; }
23868 if test $gcc_cv_math_func_erff = yes; then
23870 cat >>confdefs.h <<_ACEOF
23871 #define HAVE_ERFF 1
23872 _ACEOF
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23880 $as_echo_n "checking for erf... " >&6; }
23881 if ${gcc_cv_math_func_erf+:} false; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884 if test x$gcc_no_link = xyes; then
23885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23888 /* end confdefs.h. */
23890 #ifdef HAVE_COMPLEX_H
23891 #include <complex.h>
23892 #endif
23893 #ifdef HAVE_MATH_H
23894 #include <math.h>
23895 #endif
23897 int (*ptr)() = (int (*)())erf;
23900 main ()
23902 return 0;
23905 _ACEOF
23906 if ac_fn_c_try_link "$LINENO"; then :
23907 gcc_cv_math_func_erf=yes
23908 else
23909 gcc_cv_math_func_erf=no
23911 rm -f core conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23915 $as_echo "$gcc_cv_math_func_erf" >&6; }
23916 if test $gcc_cv_math_func_erf = yes; then
23918 cat >>confdefs.h <<_ACEOF
23919 #define HAVE_ERF 1
23920 _ACEOF
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23928 $as_echo_n "checking for erfcf... " >&6; }
23929 if ${gcc_cv_math_func_erfcf+:} false; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 if test x$gcc_no_link = xyes; then
23933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23938 #ifdef HAVE_COMPLEX_H
23939 #include <complex.h>
23940 #endif
23941 #ifdef HAVE_MATH_H
23942 #include <math.h>
23943 #endif
23945 int (*ptr)() = (int (*)())erfcf;
23948 main ()
23950 return 0;
23953 _ACEOF
23954 if ac_fn_c_try_link "$LINENO"; then :
23955 gcc_cv_math_func_erfcf=yes
23956 else
23957 gcc_cv_math_func_erfcf=no
23959 rm -f core conftest.err conftest.$ac_objext \
23960 conftest$ac_exeext conftest.$ac_ext
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23963 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23964 if test $gcc_cv_math_func_erfcf = yes; then
23966 cat >>confdefs.h <<_ACEOF
23967 #define HAVE_ERFCF 1
23968 _ACEOF
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23976 $as_echo_n "checking for erfc... " >&6; }
23977 if ${gcc_cv_math_func_erfc+:} false; then :
23978 $as_echo_n "(cached) " >&6
23979 else
23980 if test x$gcc_no_link = xyes; then
23981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23986 #ifdef HAVE_COMPLEX_H
23987 #include <complex.h>
23988 #endif
23989 #ifdef HAVE_MATH_H
23990 #include <math.h>
23991 #endif
23993 int (*ptr)() = (int (*)())erfc;
23996 main ()
23998 return 0;
24001 _ACEOF
24002 if ac_fn_c_try_link "$LINENO"; then :
24003 gcc_cv_math_func_erfc=yes
24004 else
24005 gcc_cv_math_func_erfc=no
24007 rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
24011 $as_echo "$gcc_cv_math_func_erfc" >&6; }
24012 if test $gcc_cv_math_func_erfc = yes; then
24014 cat >>confdefs.h <<_ACEOF
24015 #define HAVE_ERFC 1
24016 _ACEOF
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
24024 $as_echo_n "checking for erfcl... " >&6; }
24025 if ${gcc_cv_math_func_erfcl+:} false; then :
24026 $as_echo_n "(cached) " >&6
24027 else
24028 if test x$gcc_no_link = xyes; then
24029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24034 #ifdef HAVE_COMPLEX_H
24035 #include <complex.h>
24036 #endif
24037 #ifdef HAVE_MATH_H
24038 #include <math.h>
24039 #endif
24041 int (*ptr)() = (int (*)())erfcl;
24044 main ()
24046 return 0;
24049 _ACEOF
24050 if ac_fn_c_try_link "$LINENO"; then :
24051 gcc_cv_math_func_erfcl=yes
24052 else
24053 gcc_cv_math_func_erfcl=no
24055 rm -f core conftest.err conftest.$ac_objext \
24056 conftest$ac_exeext conftest.$ac_ext
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
24059 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
24060 if test $gcc_cv_math_func_erfcl = yes; then
24062 cat >>confdefs.h <<_ACEOF
24063 #define HAVE_ERFCL 1
24064 _ACEOF
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
24072 $as_echo_n "checking for j0f... " >&6; }
24073 if ${gcc_cv_math_func_j0f+:} false; then :
24074 $as_echo_n "(cached) " >&6
24075 else
24076 if test x$gcc_no_link = xyes; then
24077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24080 /* end confdefs.h. */
24082 #ifdef HAVE_COMPLEX_H
24083 #include <complex.h>
24084 #endif
24085 #ifdef HAVE_MATH_H
24086 #include <math.h>
24087 #endif
24089 int (*ptr)() = (int (*)())j0f;
24092 main ()
24094 return 0;
24097 _ACEOF
24098 if ac_fn_c_try_link "$LINENO"; then :
24099 gcc_cv_math_func_j0f=yes
24100 else
24101 gcc_cv_math_func_j0f=no
24103 rm -f core conftest.err conftest.$ac_objext \
24104 conftest$ac_exeext conftest.$ac_ext
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
24107 $as_echo "$gcc_cv_math_func_j0f" >&6; }
24108 if test $gcc_cv_math_func_j0f = yes; then
24110 cat >>confdefs.h <<_ACEOF
24111 #define HAVE_J0F 1
24112 _ACEOF
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
24120 $as_echo_n "checking for j0... " >&6; }
24121 if ${gcc_cv_math_func_j0+:} false; then :
24122 $as_echo_n "(cached) " >&6
24123 else
24124 if test x$gcc_no_link = xyes; then
24125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24130 #ifdef HAVE_COMPLEX_H
24131 #include <complex.h>
24132 #endif
24133 #ifdef HAVE_MATH_H
24134 #include <math.h>
24135 #endif
24137 int (*ptr)() = (int (*)())j0;
24140 main ()
24142 return 0;
24145 _ACEOF
24146 if ac_fn_c_try_link "$LINENO"; then :
24147 gcc_cv_math_func_j0=yes
24148 else
24149 gcc_cv_math_func_j0=no
24151 rm -f core conftest.err conftest.$ac_objext \
24152 conftest$ac_exeext conftest.$ac_ext
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24155 $as_echo "$gcc_cv_math_func_j0" >&6; }
24156 if test $gcc_cv_math_func_j0 = yes; then
24158 cat >>confdefs.h <<_ACEOF
24159 #define HAVE_J0 1
24160 _ACEOF
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24168 $as_echo_n "checking for j1f... " >&6; }
24169 if ${gcc_cv_math_func_j1f+:} false; then :
24170 $as_echo_n "(cached) " >&6
24171 else
24172 if test x$gcc_no_link = xyes; then
24173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24176 /* end confdefs.h. */
24178 #ifdef HAVE_COMPLEX_H
24179 #include <complex.h>
24180 #endif
24181 #ifdef HAVE_MATH_H
24182 #include <math.h>
24183 #endif
24185 int (*ptr)() = (int (*)())j1f;
24188 main ()
24190 return 0;
24193 _ACEOF
24194 if ac_fn_c_try_link "$LINENO"; then :
24195 gcc_cv_math_func_j1f=yes
24196 else
24197 gcc_cv_math_func_j1f=no
24199 rm -f core conftest.err conftest.$ac_objext \
24200 conftest$ac_exeext conftest.$ac_ext
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24203 $as_echo "$gcc_cv_math_func_j1f" >&6; }
24204 if test $gcc_cv_math_func_j1f = yes; then
24206 cat >>confdefs.h <<_ACEOF
24207 #define HAVE_J1F 1
24208 _ACEOF
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24216 $as_echo_n "checking for j1... " >&6; }
24217 if ${gcc_cv_math_func_j1+:} false; then :
24218 $as_echo_n "(cached) " >&6
24219 else
24220 if test x$gcc_no_link = xyes; then
24221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224 /* end confdefs.h. */
24226 #ifdef HAVE_COMPLEX_H
24227 #include <complex.h>
24228 #endif
24229 #ifdef HAVE_MATH_H
24230 #include <math.h>
24231 #endif
24233 int (*ptr)() = (int (*)())j1;
24236 main ()
24238 return 0;
24241 _ACEOF
24242 if ac_fn_c_try_link "$LINENO"; then :
24243 gcc_cv_math_func_j1=yes
24244 else
24245 gcc_cv_math_func_j1=no
24247 rm -f core conftest.err conftest.$ac_objext \
24248 conftest$ac_exeext conftest.$ac_ext
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24251 $as_echo "$gcc_cv_math_func_j1" >&6; }
24252 if test $gcc_cv_math_func_j1 = yes; then
24254 cat >>confdefs.h <<_ACEOF
24255 #define HAVE_J1 1
24256 _ACEOF
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24264 $as_echo_n "checking for jnf... " >&6; }
24265 if ${gcc_cv_math_func_jnf+:} false; then :
24266 $as_echo_n "(cached) " >&6
24267 else
24268 if test x$gcc_no_link = xyes; then
24269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24272 /* end confdefs.h. */
24274 #ifdef HAVE_COMPLEX_H
24275 #include <complex.h>
24276 #endif
24277 #ifdef HAVE_MATH_H
24278 #include <math.h>
24279 #endif
24281 int (*ptr)() = (int (*)())jnf;
24284 main ()
24286 return 0;
24289 _ACEOF
24290 if ac_fn_c_try_link "$LINENO"; then :
24291 gcc_cv_math_func_jnf=yes
24292 else
24293 gcc_cv_math_func_jnf=no
24295 rm -f core conftest.err conftest.$ac_objext \
24296 conftest$ac_exeext conftest.$ac_ext
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24299 $as_echo "$gcc_cv_math_func_jnf" >&6; }
24300 if test $gcc_cv_math_func_jnf = yes; then
24302 cat >>confdefs.h <<_ACEOF
24303 #define HAVE_JNF 1
24304 _ACEOF
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24312 $as_echo_n "checking for jn... " >&6; }
24313 if ${gcc_cv_math_func_jn+:} false; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 if test x$gcc_no_link = xyes; then
24317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24322 #ifdef HAVE_COMPLEX_H
24323 #include <complex.h>
24324 #endif
24325 #ifdef HAVE_MATH_H
24326 #include <math.h>
24327 #endif
24329 int (*ptr)() = (int (*)())jn;
24332 main ()
24334 return 0;
24337 _ACEOF
24338 if ac_fn_c_try_link "$LINENO"; then :
24339 gcc_cv_math_func_jn=yes
24340 else
24341 gcc_cv_math_func_jn=no
24343 rm -f core conftest.err conftest.$ac_objext \
24344 conftest$ac_exeext conftest.$ac_ext
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24347 $as_echo "$gcc_cv_math_func_jn" >&6; }
24348 if test $gcc_cv_math_func_jn = yes; then
24350 cat >>confdefs.h <<_ACEOF
24351 #define HAVE_JN 1
24352 _ACEOF
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24360 $as_echo_n "checking for jnl... " >&6; }
24361 if ${gcc_cv_math_func_jnl+:} false; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 if test x$gcc_no_link = xyes; then
24365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368 /* end confdefs.h. */
24370 #ifdef HAVE_COMPLEX_H
24371 #include <complex.h>
24372 #endif
24373 #ifdef HAVE_MATH_H
24374 #include <math.h>
24375 #endif
24377 int (*ptr)() = (int (*)())jnl;
24380 main ()
24382 return 0;
24385 _ACEOF
24386 if ac_fn_c_try_link "$LINENO"; then :
24387 gcc_cv_math_func_jnl=yes
24388 else
24389 gcc_cv_math_func_jnl=no
24391 rm -f core conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24395 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24396 if test $gcc_cv_math_func_jnl = yes; then
24398 cat >>confdefs.h <<_ACEOF
24399 #define HAVE_JNL 1
24400 _ACEOF
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24408 $as_echo_n "checking for y0f... " >&6; }
24409 if ${gcc_cv_math_func_y0f+:} false; then :
24410 $as_echo_n "(cached) " >&6
24411 else
24412 if test x$gcc_no_link = xyes; then
24413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h. */
24418 #ifdef HAVE_COMPLEX_H
24419 #include <complex.h>
24420 #endif
24421 #ifdef HAVE_MATH_H
24422 #include <math.h>
24423 #endif
24425 int (*ptr)() = (int (*)())y0f;
24428 main ()
24430 return 0;
24433 _ACEOF
24434 if ac_fn_c_try_link "$LINENO"; then :
24435 gcc_cv_math_func_y0f=yes
24436 else
24437 gcc_cv_math_func_y0f=no
24439 rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24443 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24444 if test $gcc_cv_math_func_y0f = yes; then
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_Y0F 1
24448 _ACEOF
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24456 $as_echo_n "checking for y0... " >&6; }
24457 if ${gcc_cv_math_func_y0+:} false; then :
24458 $as_echo_n "(cached) " >&6
24459 else
24460 if test x$gcc_no_link = xyes; then
24461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24464 /* end confdefs.h. */
24466 #ifdef HAVE_COMPLEX_H
24467 #include <complex.h>
24468 #endif
24469 #ifdef HAVE_MATH_H
24470 #include <math.h>
24471 #endif
24473 int (*ptr)() = (int (*)())y0;
24476 main ()
24478 return 0;
24481 _ACEOF
24482 if ac_fn_c_try_link "$LINENO"; then :
24483 gcc_cv_math_func_y0=yes
24484 else
24485 gcc_cv_math_func_y0=no
24487 rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24491 $as_echo "$gcc_cv_math_func_y0" >&6; }
24492 if test $gcc_cv_math_func_y0 = yes; then
24494 cat >>confdefs.h <<_ACEOF
24495 #define HAVE_Y0 1
24496 _ACEOF
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24504 $as_echo_n "checking for y1f... " >&6; }
24505 if ${gcc_cv_math_func_y1f+:} false; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 if test x$gcc_no_link = xyes; then
24509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512 /* end confdefs.h. */
24514 #ifdef HAVE_COMPLEX_H
24515 #include <complex.h>
24516 #endif
24517 #ifdef HAVE_MATH_H
24518 #include <math.h>
24519 #endif
24521 int (*ptr)() = (int (*)())y1f;
24524 main ()
24526 return 0;
24529 _ACEOF
24530 if ac_fn_c_try_link "$LINENO"; then :
24531 gcc_cv_math_func_y1f=yes
24532 else
24533 gcc_cv_math_func_y1f=no
24535 rm -f core conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24539 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24540 if test $gcc_cv_math_func_y1f = yes; then
24542 cat >>confdefs.h <<_ACEOF
24543 #define HAVE_Y1F 1
24544 _ACEOF
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24552 $as_echo_n "checking for y1... " >&6; }
24553 if ${gcc_cv_math_func_y1+:} false; then :
24554 $as_echo_n "(cached) " >&6
24555 else
24556 if test x$gcc_no_link = xyes; then
24557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 #ifdef HAVE_COMPLEX_H
24563 #include <complex.h>
24564 #endif
24565 #ifdef HAVE_MATH_H
24566 #include <math.h>
24567 #endif
24569 int (*ptr)() = (int (*)())y1;
24572 main ()
24574 return 0;
24577 _ACEOF
24578 if ac_fn_c_try_link "$LINENO"; then :
24579 gcc_cv_math_func_y1=yes
24580 else
24581 gcc_cv_math_func_y1=no
24583 rm -f core conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24587 $as_echo "$gcc_cv_math_func_y1" >&6; }
24588 if test $gcc_cv_math_func_y1 = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 #define HAVE_Y1 1
24592 _ACEOF
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24600 $as_echo_n "checking for ynf... " >&6; }
24601 if ${gcc_cv_math_func_ynf+:} false; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 if test x$gcc_no_link = xyes; then
24605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24610 #ifdef HAVE_COMPLEX_H
24611 #include <complex.h>
24612 #endif
24613 #ifdef HAVE_MATH_H
24614 #include <math.h>
24615 #endif
24617 int (*ptr)() = (int (*)())ynf;
24620 main ()
24622 return 0;
24625 _ACEOF
24626 if ac_fn_c_try_link "$LINENO"; then :
24627 gcc_cv_math_func_ynf=yes
24628 else
24629 gcc_cv_math_func_ynf=no
24631 rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24635 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24636 if test $gcc_cv_math_func_ynf = yes; then
24638 cat >>confdefs.h <<_ACEOF
24639 #define HAVE_YNF 1
24640 _ACEOF
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24648 $as_echo_n "checking for yn... " >&6; }
24649 if ${gcc_cv_math_func_yn+:} false; then :
24650 $as_echo_n "(cached) " >&6
24651 else
24652 if test x$gcc_no_link = xyes; then
24653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h. */
24658 #ifdef HAVE_COMPLEX_H
24659 #include <complex.h>
24660 #endif
24661 #ifdef HAVE_MATH_H
24662 #include <math.h>
24663 #endif
24665 int (*ptr)() = (int (*)())yn;
24668 main ()
24670 return 0;
24673 _ACEOF
24674 if ac_fn_c_try_link "$LINENO"; then :
24675 gcc_cv_math_func_yn=yes
24676 else
24677 gcc_cv_math_func_yn=no
24679 rm -f core conftest.err conftest.$ac_objext \
24680 conftest$ac_exeext conftest.$ac_ext
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24683 $as_echo "$gcc_cv_math_func_yn" >&6; }
24684 if test $gcc_cv_math_func_yn = yes; then
24686 cat >>confdefs.h <<_ACEOF
24687 #define HAVE_YN 1
24688 _ACEOF
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24696 $as_echo_n "checking for ynl... " >&6; }
24697 if ${gcc_cv_math_func_ynl+:} false; then :
24698 $as_echo_n "(cached) " >&6
24699 else
24700 if test x$gcc_no_link = xyes; then
24701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h. */
24706 #ifdef HAVE_COMPLEX_H
24707 #include <complex.h>
24708 #endif
24709 #ifdef HAVE_MATH_H
24710 #include <math.h>
24711 #endif
24713 int (*ptr)() = (int (*)())ynl;
24716 main ()
24718 return 0;
24721 _ACEOF
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 gcc_cv_math_func_ynl=yes
24724 else
24725 gcc_cv_math_func_ynl=no
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24731 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24732 if test $gcc_cv_math_func_ynl = yes; then
24734 cat >>confdefs.h <<_ACEOF
24735 #define HAVE_YNL 1
24736 _ACEOF
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24744 $as_echo_n "checking for tgamma... " >&6; }
24745 if ${gcc_cv_math_func_tgamma+:} false; then :
24746 $as_echo_n "(cached) " >&6
24747 else
24748 if test x$gcc_no_link = xyes; then
24749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24752 /* end confdefs.h. */
24754 #ifdef HAVE_COMPLEX_H
24755 #include <complex.h>
24756 #endif
24757 #ifdef HAVE_MATH_H
24758 #include <math.h>
24759 #endif
24761 int (*ptr)() = (int (*)())tgamma;
24764 main ()
24766 return 0;
24769 _ACEOF
24770 if ac_fn_c_try_link "$LINENO"; then :
24771 gcc_cv_math_func_tgamma=yes
24772 else
24773 gcc_cv_math_func_tgamma=no
24775 rm -f core conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24779 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24780 if test $gcc_cv_math_func_tgamma = yes; then
24782 cat >>confdefs.h <<_ACEOF
24783 #define HAVE_TGAMMA 1
24784 _ACEOF
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24792 $as_echo_n "checking for tgammaf... " >&6; }
24793 if ${gcc_cv_math_func_tgammaf+:} false; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 if test x$gcc_no_link = xyes; then
24797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h. */
24802 #ifdef HAVE_COMPLEX_H
24803 #include <complex.h>
24804 #endif
24805 #ifdef HAVE_MATH_H
24806 #include <math.h>
24807 #endif
24809 int (*ptr)() = (int (*)())tgammaf;
24812 main ()
24814 return 0;
24817 _ACEOF
24818 if ac_fn_c_try_link "$LINENO"; then :
24819 gcc_cv_math_func_tgammaf=yes
24820 else
24821 gcc_cv_math_func_tgammaf=no
24823 rm -f core conftest.err conftest.$ac_objext \
24824 conftest$ac_exeext conftest.$ac_ext
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24827 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24828 if test $gcc_cv_math_func_tgammaf = yes; then
24830 cat >>confdefs.h <<_ACEOF
24831 #define HAVE_TGAMMAF 1
24832 _ACEOF
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24840 $as_echo_n "checking for lgamma... " >&6; }
24841 if ${gcc_cv_math_func_lgamma+:} false; then :
24842 $as_echo_n "(cached) " >&6
24843 else
24844 if test x$gcc_no_link = xyes; then
24845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24848 /* end confdefs.h. */
24850 #ifdef HAVE_COMPLEX_H
24851 #include <complex.h>
24852 #endif
24853 #ifdef HAVE_MATH_H
24854 #include <math.h>
24855 #endif
24857 int (*ptr)() = (int (*)())lgamma;
24860 main ()
24862 return 0;
24865 _ACEOF
24866 if ac_fn_c_try_link "$LINENO"; then :
24867 gcc_cv_math_func_lgamma=yes
24868 else
24869 gcc_cv_math_func_lgamma=no
24871 rm -f core conftest.err conftest.$ac_objext \
24872 conftest$ac_exeext conftest.$ac_ext
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24875 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24876 if test $gcc_cv_math_func_lgamma = yes; then
24878 cat >>confdefs.h <<_ACEOF
24879 #define HAVE_LGAMMA 1
24880 _ACEOF
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24888 $as_echo_n "checking for lgammaf... " >&6; }
24889 if ${gcc_cv_math_func_lgammaf+:} false; then :
24890 $as_echo_n "(cached) " >&6
24891 else
24892 if test x$gcc_no_link = xyes; then
24893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24896 /* end confdefs.h. */
24898 #ifdef HAVE_COMPLEX_H
24899 #include <complex.h>
24900 #endif
24901 #ifdef HAVE_MATH_H
24902 #include <math.h>
24903 #endif
24905 int (*ptr)() = (int (*)())lgammaf;
24908 main ()
24910 return 0;
24913 _ACEOF
24914 if ac_fn_c_try_link "$LINENO"; then :
24915 gcc_cv_math_func_lgammaf=yes
24916 else
24917 gcc_cv_math_func_lgammaf=no
24919 rm -f core conftest.err conftest.$ac_objext \
24920 conftest$ac_exeext conftest.$ac_ext
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24923 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24924 if test $gcc_cv_math_func_lgammaf = yes; then
24926 cat >>confdefs.h <<_ACEOF
24927 #define HAVE_LGAMMAF 1
24928 _ACEOF
24933 # Check for GFORTRAN_C99_1.1 funcs
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24938 $as_echo_n "checking for cacos... " >&6; }
24939 if ${gcc_cv_math_func_cacos+:} false; then :
24940 $as_echo_n "(cached) " >&6
24941 else
24942 if test x$gcc_no_link = xyes; then
24943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946 /* end confdefs.h. */
24948 #ifdef HAVE_COMPLEX_H
24949 #include <complex.h>
24950 #endif
24951 #ifdef HAVE_MATH_H
24952 #include <math.h>
24953 #endif
24955 int (*ptr)() = (int (*)())cacos;
24958 main ()
24960 return 0;
24963 _ACEOF
24964 if ac_fn_c_try_link "$LINENO"; then :
24965 gcc_cv_math_func_cacos=yes
24966 else
24967 gcc_cv_math_func_cacos=no
24969 rm -f core conftest.err conftest.$ac_objext \
24970 conftest$ac_exeext conftest.$ac_ext
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24973 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24974 if test $gcc_cv_math_func_cacos = yes; then
24976 cat >>confdefs.h <<_ACEOF
24977 #define HAVE_CACOS 1
24978 _ACEOF
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24986 $as_echo_n "checking for cacosf... " >&6; }
24987 if ${gcc_cv_math_func_cacosf+:} false; then :
24988 $as_echo_n "(cached) " >&6
24989 else
24990 if test x$gcc_no_link = xyes; then
24991 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994 /* end confdefs.h. */
24996 #ifdef HAVE_COMPLEX_H
24997 #include <complex.h>
24998 #endif
24999 #ifdef HAVE_MATH_H
25000 #include <math.h>
25001 #endif
25003 int (*ptr)() = (int (*)())cacosf;
25006 main ()
25008 return 0;
25011 _ACEOF
25012 if ac_fn_c_try_link "$LINENO"; then :
25013 gcc_cv_math_func_cacosf=yes
25014 else
25015 gcc_cv_math_func_cacosf=no
25017 rm -f core conftest.err conftest.$ac_objext \
25018 conftest$ac_exeext conftest.$ac_ext
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
25021 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
25022 if test $gcc_cv_math_func_cacosf = yes; then
25024 cat >>confdefs.h <<_ACEOF
25025 #define HAVE_CACOSF 1
25026 _ACEOF
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
25034 $as_echo_n "checking for cacosh... " >&6; }
25035 if ${gcc_cv_math_func_cacosh+:} false; then :
25036 $as_echo_n "(cached) " >&6
25037 else
25038 if test x$gcc_no_link = xyes; then
25039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25042 /* end confdefs.h. */
25044 #ifdef HAVE_COMPLEX_H
25045 #include <complex.h>
25046 #endif
25047 #ifdef HAVE_MATH_H
25048 #include <math.h>
25049 #endif
25051 int (*ptr)() = (int (*)())cacosh;
25054 main ()
25056 return 0;
25059 _ACEOF
25060 if ac_fn_c_try_link "$LINENO"; then :
25061 gcc_cv_math_func_cacosh=yes
25062 else
25063 gcc_cv_math_func_cacosh=no
25065 rm -f core conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
25069 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
25070 if test $gcc_cv_math_func_cacosh = yes; then
25072 cat >>confdefs.h <<_ACEOF
25073 #define HAVE_CACOSH 1
25074 _ACEOF
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
25082 $as_echo_n "checking for cacoshf... " >&6; }
25083 if ${gcc_cv_math_func_cacoshf+:} false; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 if test x$gcc_no_link = xyes; then
25087 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25092 #ifdef HAVE_COMPLEX_H
25093 #include <complex.h>
25094 #endif
25095 #ifdef HAVE_MATH_H
25096 #include <math.h>
25097 #endif
25099 int (*ptr)() = (int (*)())cacoshf;
25102 main ()
25104 return 0;
25107 _ACEOF
25108 if ac_fn_c_try_link "$LINENO"; then :
25109 gcc_cv_math_func_cacoshf=yes
25110 else
25111 gcc_cv_math_func_cacoshf=no
25113 rm -f core conftest.err conftest.$ac_objext \
25114 conftest$ac_exeext conftest.$ac_ext
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
25117 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
25118 if test $gcc_cv_math_func_cacoshf = yes; then
25120 cat >>confdefs.h <<_ACEOF
25121 #define HAVE_CACOSHF 1
25122 _ACEOF
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25130 $as_echo_n "checking for cacoshl... " >&6; }
25131 if ${gcc_cv_math_func_cacoshl+:} false; then :
25132 $as_echo_n "(cached) " >&6
25133 else
25134 if test x$gcc_no_link = xyes; then
25135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138 /* end confdefs.h. */
25140 #ifdef HAVE_COMPLEX_H
25141 #include <complex.h>
25142 #endif
25143 #ifdef HAVE_MATH_H
25144 #include <math.h>
25145 #endif
25147 int (*ptr)() = (int (*)())cacoshl;
25150 main ()
25152 return 0;
25155 _ACEOF
25156 if ac_fn_c_try_link "$LINENO"; then :
25157 gcc_cv_math_func_cacoshl=yes
25158 else
25159 gcc_cv_math_func_cacoshl=no
25161 rm -f core conftest.err conftest.$ac_objext \
25162 conftest$ac_exeext conftest.$ac_ext
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25165 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25166 if test $gcc_cv_math_func_cacoshl = yes; then
25168 cat >>confdefs.h <<_ACEOF
25169 #define HAVE_CACOSHL 1
25170 _ACEOF
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25178 $as_echo_n "checking for cacosl... " >&6; }
25179 if ${gcc_cv_math_func_cacosl+:} false; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 if test x$gcc_no_link = xyes; then
25183 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h. */
25188 #ifdef HAVE_COMPLEX_H
25189 #include <complex.h>
25190 #endif
25191 #ifdef HAVE_MATH_H
25192 #include <math.h>
25193 #endif
25195 int (*ptr)() = (int (*)())cacosl;
25198 main ()
25200 return 0;
25203 _ACEOF
25204 if ac_fn_c_try_link "$LINENO"; then :
25205 gcc_cv_math_func_cacosl=yes
25206 else
25207 gcc_cv_math_func_cacosl=no
25209 rm -f core conftest.err conftest.$ac_objext \
25210 conftest$ac_exeext conftest.$ac_ext
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25213 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
25214 if test $gcc_cv_math_func_cacosl = yes; then
25216 cat >>confdefs.h <<_ACEOF
25217 #define HAVE_CACOSL 1
25218 _ACEOF
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25226 $as_echo_n "checking for casin... " >&6; }
25227 if ${gcc_cv_math_func_casin+:} false; then :
25228 $as_echo_n "(cached) " >&6
25229 else
25230 if test x$gcc_no_link = xyes; then
25231 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25234 /* end confdefs.h. */
25236 #ifdef HAVE_COMPLEX_H
25237 #include <complex.h>
25238 #endif
25239 #ifdef HAVE_MATH_H
25240 #include <math.h>
25241 #endif
25243 int (*ptr)() = (int (*)())casin;
25246 main ()
25248 return 0;
25251 _ACEOF
25252 if ac_fn_c_try_link "$LINENO"; then :
25253 gcc_cv_math_func_casin=yes
25254 else
25255 gcc_cv_math_func_casin=no
25257 rm -f core conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25261 $as_echo "$gcc_cv_math_func_casin" >&6; }
25262 if test $gcc_cv_math_func_casin = yes; then
25264 cat >>confdefs.h <<_ACEOF
25265 #define HAVE_CASIN 1
25266 _ACEOF
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25274 $as_echo_n "checking for casinf... " >&6; }
25275 if ${gcc_cv_math_func_casinf+:} false; then :
25276 $as_echo_n "(cached) " >&6
25277 else
25278 if test x$gcc_no_link = xyes; then
25279 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25282 /* end confdefs.h. */
25284 #ifdef HAVE_COMPLEX_H
25285 #include <complex.h>
25286 #endif
25287 #ifdef HAVE_MATH_H
25288 #include <math.h>
25289 #endif
25291 int (*ptr)() = (int (*)())casinf;
25294 main ()
25296 return 0;
25299 _ACEOF
25300 if ac_fn_c_try_link "$LINENO"; then :
25301 gcc_cv_math_func_casinf=yes
25302 else
25303 gcc_cv_math_func_casinf=no
25305 rm -f core conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25309 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25310 if test $gcc_cv_math_func_casinf = yes; then
25312 cat >>confdefs.h <<_ACEOF
25313 #define HAVE_CASINF 1
25314 _ACEOF
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25322 $as_echo_n "checking for casinh... " >&6; }
25323 if ${gcc_cv_math_func_casinh+:} false; then :
25324 $as_echo_n "(cached) " >&6
25325 else
25326 if test x$gcc_no_link = xyes; then
25327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330 /* end confdefs.h. */
25332 #ifdef HAVE_COMPLEX_H
25333 #include <complex.h>
25334 #endif
25335 #ifdef HAVE_MATH_H
25336 #include <math.h>
25337 #endif
25339 int (*ptr)() = (int (*)())casinh;
25342 main ()
25344 return 0;
25347 _ACEOF
25348 if ac_fn_c_try_link "$LINENO"; then :
25349 gcc_cv_math_func_casinh=yes
25350 else
25351 gcc_cv_math_func_casinh=no
25353 rm -f core conftest.err conftest.$ac_objext \
25354 conftest$ac_exeext conftest.$ac_ext
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25357 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25358 if test $gcc_cv_math_func_casinh = yes; then
25360 cat >>confdefs.h <<_ACEOF
25361 #define HAVE_CASINH 1
25362 _ACEOF
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25370 $as_echo_n "checking for casinhf... " >&6; }
25371 if ${gcc_cv_math_func_casinhf+:} false; then :
25372 $as_echo_n "(cached) " >&6
25373 else
25374 if test x$gcc_no_link = xyes; then
25375 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h. */
25380 #ifdef HAVE_COMPLEX_H
25381 #include <complex.h>
25382 #endif
25383 #ifdef HAVE_MATH_H
25384 #include <math.h>
25385 #endif
25387 int (*ptr)() = (int (*)())casinhf;
25390 main ()
25392 return 0;
25395 _ACEOF
25396 if ac_fn_c_try_link "$LINENO"; then :
25397 gcc_cv_math_func_casinhf=yes
25398 else
25399 gcc_cv_math_func_casinhf=no
25401 rm -f core conftest.err conftest.$ac_objext \
25402 conftest$ac_exeext conftest.$ac_ext
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25405 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25406 if test $gcc_cv_math_func_casinhf = yes; then
25408 cat >>confdefs.h <<_ACEOF
25409 #define HAVE_CASINHF 1
25410 _ACEOF
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25418 $as_echo_n "checking for casinhl... " >&6; }
25419 if ${gcc_cv_math_func_casinhl+:} false; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25422 if test x$gcc_no_link = xyes; then
25423 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h. */
25428 #ifdef HAVE_COMPLEX_H
25429 #include <complex.h>
25430 #endif
25431 #ifdef HAVE_MATH_H
25432 #include <math.h>
25433 #endif
25435 int (*ptr)() = (int (*)())casinhl;
25438 main ()
25440 return 0;
25443 _ACEOF
25444 if ac_fn_c_try_link "$LINENO"; then :
25445 gcc_cv_math_func_casinhl=yes
25446 else
25447 gcc_cv_math_func_casinhl=no
25449 rm -f core conftest.err conftest.$ac_objext \
25450 conftest$ac_exeext conftest.$ac_ext
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25453 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25454 if test $gcc_cv_math_func_casinhl = yes; then
25456 cat >>confdefs.h <<_ACEOF
25457 #define HAVE_CASINHL 1
25458 _ACEOF
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25466 $as_echo_n "checking for casinl... " >&6; }
25467 if ${gcc_cv_math_func_casinl+:} false; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 if test x$gcc_no_link = xyes; then
25471 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h. */
25476 #ifdef HAVE_COMPLEX_H
25477 #include <complex.h>
25478 #endif
25479 #ifdef HAVE_MATH_H
25480 #include <math.h>
25481 #endif
25483 int (*ptr)() = (int (*)())casinl;
25486 main ()
25488 return 0;
25491 _ACEOF
25492 if ac_fn_c_try_link "$LINENO"; then :
25493 gcc_cv_math_func_casinl=yes
25494 else
25495 gcc_cv_math_func_casinl=no
25497 rm -f core conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25501 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25502 if test $gcc_cv_math_func_casinl = yes; then
25504 cat >>confdefs.h <<_ACEOF
25505 #define HAVE_CASINL 1
25506 _ACEOF
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25514 $as_echo_n "checking for catan... " >&6; }
25515 if ${gcc_cv_math_func_catan+:} false; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 if test x$gcc_no_link = xyes; then
25519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25524 #ifdef HAVE_COMPLEX_H
25525 #include <complex.h>
25526 #endif
25527 #ifdef HAVE_MATH_H
25528 #include <math.h>
25529 #endif
25531 int (*ptr)() = (int (*)())catan;
25534 main ()
25536 return 0;
25539 _ACEOF
25540 if ac_fn_c_try_link "$LINENO"; then :
25541 gcc_cv_math_func_catan=yes
25542 else
25543 gcc_cv_math_func_catan=no
25545 rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25549 $as_echo "$gcc_cv_math_func_catan" >&6; }
25550 if test $gcc_cv_math_func_catan = yes; then
25552 cat >>confdefs.h <<_ACEOF
25553 #define HAVE_CATAN 1
25554 _ACEOF
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25562 $as_echo_n "checking for catanf... " >&6; }
25563 if ${gcc_cv_math_func_catanf+:} false; then :
25564 $as_echo_n "(cached) " >&6
25565 else
25566 if test x$gcc_no_link = xyes; then
25567 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570 /* end confdefs.h. */
25572 #ifdef HAVE_COMPLEX_H
25573 #include <complex.h>
25574 #endif
25575 #ifdef HAVE_MATH_H
25576 #include <math.h>
25577 #endif
25579 int (*ptr)() = (int (*)())catanf;
25582 main ()
25584 return 0;
25587 _ACEOF
25588 if ac_fn_c_try_link "$LINENO"; then :
25589 gcc_cv_math_func_catanf=yes
25590 else
25591 gcc_cv_math_func_catanf=no
25593 rm -f core conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25597 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25598 if test $gcc_cv_math_func_catanf = yes; then
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_CATANF 1
25602 _ACEOF
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25610 $as_echo_n "checking for catanh... " >&6; }
25611 if ${gcc_cv_math_func_catanh+:} false; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 if test x$gcc_no_link = xyes; then
25615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618 /* end confdefs.h. */
25620 #ifdef HAVE_COMPLEX_H
25621 #include <complex.h>
25622 #endif
25623 #ifdef HAVE_MATH_H
25624 #include <math.h>
25625 #endif
25627 int (*ptr)() = (int (*)())catanh;
25630 main ()
25632 return 0;
25635 _ACEOF
25636 if ac_fn_c_try_link "$LINENO"; then :
25637 gcc_cv_math_func_catanh=yes
25638 else
25639 gcc_cv_math_func_catanh=no
25641 rm -f core conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext conftest.$ac_ext
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25645 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25646 if test $gcc_cv_math_func_catanh = yes; then
25648 cat >>confdefs.h <<_ACEOF
25649 #define HAVE_CATANH 1
25650 _ACEOF
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25658 $as_echo_n "checking for catanhf... " >&6; }
25659 if ${gcc_cv_math_func_catanhf+:} false; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 if test x$gcc_no_link = xyes; then
25663 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25666 /* end confdefs.h. */
25668 #ifdef HAVE_COMPLEX_H
25669 #include <complex.h>
25670 #endif
25671 #ifdef HAVE_MATH_H
25672 #include <math.h>
25673 #endif
25675 int (*ptr)() = (int (*)())catanhf;
25678 main ()
25680 return 0;
25683 _ACEOF
25684 if ac_fn_c_try_link "$LINENO"; then :
25685 gcc_cv_math_func_catanhf=yes
25686 else
25687 gcc_cv_math_func_catanhf=no
25689 rm -f core conftest.err conftest.$ac_objext \
25690 conftest$ac_exeext conftest.$ac_ext
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25693 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25694 if test $gcc_cv_math_func_catanhf = yes; then
25696 cat >>confdefs.h <<_ACEOF
25697 #define HAVE_CATANHF 1
25698 _ACEOF
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25706 $as_echo_n "checking for catanhl... " >&6; }
25707 if ${gcc_cv_math_func_catanhl+:} false; then :
25708 $as_echo_n "(cached) " >&6
25709 else
25710 if test x$gcc_no_link = xyes; then
25711 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h. */
25716 #ifdef HAVE_COMPLEX_H
25717 #include <complex.h>
25718 #endif
25719 #ifdef HAVE_MATH_H
25720 #include <math.h>
25721 #endif
25723 int (*ptr)() = (int (*)())catanhl;
25726 main ()
25728 return 0;
25731 _ACEOF
25732 if ac_fn_c_try_link "$LINENO"; then :
25733 gcc_cv_math_func_catanhl=yes
25734 else
25735 gcc_cv_math_func_catanhl=no
25737 rm -f core conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25741 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25742 if test $gcc_cv_math_func_catanhl = yes; then
25744 cat >>confdefs.h <<_ACEOF
25745 #define HAVE_CATANHL 1
25746 _ACEOF
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25754 $as_echo_n "checking for catanl... " >&6; }
25755 if ${gcc_cv_math_func_catanl+:} false; then :
25756 $as_echo_n "(cached) " >&6
25757 else
25758 if test x$gcc_no_link = xyes; then
25759 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h. */
25764 #ifdef HAVE_COMPLEX_H
25765 #include <complex.h>
25766 #endif
25767 #ifdef HAVE_MATH_H
25768 #include <math.h>
25769 #endif
25771 int (*ptr)() = (int (*)())catanl;
25774 main ()
25776 return 0;
25779 _ACEOF
25780 if ac_fn_c_try_link "$LINENO"; then :
25781 gcc_cv_math_func_catanl=yes
25782 else
25783 gcc_cv_math_func_catanl=no
25785 rm -f core conftest.err conftest.$ac_objext \
25786 conftest$ac_exeext conftest.$ac_ext
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25789 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25790 if test $gcc_cv_math_func_catanl = yes; then
25792 cat >>confdefs.h <<_ACEOF
25793 #define HAVE_CATANL 1
25794 _ACEOF
25799 # On AIX, clog is present in libm as __clog
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25801 $as_echo_n "checking for __clog in -lm... " >&6; }
25802 if ${ac_cv_lib_m___clog+:} false; 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
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
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 __clog ();
25821 main ()
25823 return __clog ();
25825 return 0;
25827 _ACEOF
25828 if ac_fn_c_try_link "$LINENO"; then :
25829 ac_cv_lib_m___clog=yes
25830 else
25831 ac_cv_lib_m___clog=no
25833 rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25838 $as_echo "$ac_cv_lib_m___clog" >&6; }
25839 if test "x$ac_cv_lib_m___clog" = xyes; then :
25841 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25848 if test $gcc_cv_math_func_copysign = no; then
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25850 $as_echo_n "checking for inline __builtin_copysign... " >&6; }
25851 if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
25852 $as_echo_n "(cached) " >&6
25853 else
25854 if test x$gcc_no_link = xyes; then
25855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25860 double
25861 copysign_fallback (double x, double y)
25863 return __builtin_copysign (x, y);
25867 main ()
25869 return 0;
25872 _ACEOF
25873 if ac_fn_c_try_link "$LINENO"; then :
25874 gcc_cv_math_inline_builtin_copysign=yes
25875 else
25876 gcc_cv_math_inline_builtin_copysign=no
25878 rm -f core conftest.err conftest.$ac_objext \
25879 conftest$ac_exeext conftest.$ac_ext
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25882 $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25883 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25885 cat >>confdefs.h <<_ACEOF
25886 #define HAVE_INLINE_BUILTIN_COPYSIGN 1
25887 _ACEOF
25893 if test $gcc_cv_math_func_copysignl = no; then
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25895 $as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25896 if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 if test x$gcc_no_link = xyes; then
25900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h. */
25905 long double
25906 copysignl_fallback (long double x, long double y)
25908 return __builtin_copysignl (x, y);
25912 main ()
25914 return 0;
25917 _ACEOF
25918 if ac_fn_c_try_link "$LINENO"; then :
25919 gcc_cv_math_inline_builtin_copysignl=yes
25920 else
25921 gcc_cv_math_inline_builtin_copysignl=no
25923 rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25927 $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25928 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25930 cat >>confdefs.h <<_ACEOF
25931 #define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25932 _ACEOF
25938 if test $gcc_cv_math_func_fabs = no; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25940 $as_echo_n "checking for inline __builtin_fabs... " >&6; }
25941 if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 if test x$gcc_no_link = xyes; then
25945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25948 /* end confdefs.h. */
25950 double
25951 fabs_fallback (double x)
25953 return __builtin_fabs (x);
25957 main ()
25959 return 0;
25962 _ACEOF
25963 if ac_fn_c_try_link "$LINENO"; then :
25964 gcc_cv_math_inline_builtin_fabs=yes
25965 else
25966 gcc_cv_math_inline_builtin_fabs=no
25968 rm -f core conftest.err conftest.$ac_objext \
25969 conftest$ac_exeext conftest.$ac_ext
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25972 $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25973 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25975 cat >>confdefs.h <<_ACEOF
25976 #define HAVE_INLINE_BUILTIN_FABS 1
25977 _ACEOF
25983 if test $gcc_cv_math_func_fabsl = no; then
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25985 $as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25986 if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25987 $as_echo_n "(cached) " >&6
25988 else
25989 if test x$gcc_no_link = xyes; then
25990 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993 /* end confdefs.h. */
25995 long double
25996 fabsl_fallback (long double x)
25998 return __builtin_fabsl (x);
26002 main ()
26004 return 0;
26007 _ACEOF
26008 if ac_fn_c_try_link "$LINENO"; then :
26009 gcc_cv_math_inline_builtin_fabsl=yes
26010 else
26011 gcc_cv_math_inline_builtin_fabsl=no
26013 rm -f core conftest.err conftest.$ac_objext \
26014 conftest$ac_exeext conftest.$ac_ext
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
26017 $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
26018 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
26020 cat >>confdefs.h <<_ACEOF
26021 #define HAVE_INLINE_BUILTIN_FABSL 1
26022 _ACEOF
26027 # Check whether the system has a working stat()
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
26030 $as_echo_n "checking whether the target stat is reliable... " >&6; }
26031 if ${libgfor_cv_have_working_stat+:} false; then :
26032 $as_echo_n "(cached) " >&6
26033 else
26035 if test "$cross_compiling" = yes; then :
26037 case "${target}" in
26038 *mingw*) libgfor_cv_have_working_stat=no ;;
26039 *) libgfor_cv_have_working_stat=yes;;
26040 esac
26041 else
26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h. */
26045 #include <stdio.h>
26046 #include <sys/types.h>
26047 #include <sys/stat.h>
26048 #include <unistd.h>
26050 int main ()
26052 FILE *f, *g;
26053 struct stat st1, st2;
26055 f = fopen ("foo", "w");
26056 g = fopen ("bar", "w");
26057 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
26058 return 1;
26059 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
26060 return 1;
26061 fclose(f);
26062 fclose(g);
26063 return 0;
26065 _ACEOF
26066 if ac_fn_c_try_run "$LINENO"; then :
26067 libgfor_cv_have_working_stat=yes
26068 else
26069 libgfor_cv_have_working_stat=no
26071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26072 conftest.$ac_objext conftest.beam conftest.$ac_ext
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
26077 $as_echo "$libgfor_cv_have_working_stat" >&6; }
26078 if test x"$libgfor_cv_have_working_stat" = xyes; then
26080 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
26084 # Check whether __mingw_snprintf() is present
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
26087 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
26088 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
26089 $as_echo_n "(cached) " >&6
26090 else
26092 if test x$gcc_no_link = xyes; then
26093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h. */
26098 #include <stdio.h>
26099 extern int __mingw_snprintf (char *, size_t, const char *, ...);
26102 main ()
26105 __mingw_snprintf (NULL, 0, "%d\n", 1);
26108 return 0;
26110 _ACEOF
26111 if ac_fn_c_try_link "$LINENO"; then :
26112 eval "libgfor_cv_have_mingw_snprintf=yes"
26113 else
26114 eval "libgfor_cv_have_mingw_snprintf=no"
26116 rm -f core conftest.err conftest.$ac_objext \
26117 conftest$ac_exeext conftest.$ac_ext
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
26121 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
26122 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
26124 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
26129 # Check whether libquadmath should be used
26130 # Check whether --enable-libquadmath-support was given.
26131 if test "${enable_libquadmath_support+set}" = set; then :
26132 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26133 else
26134 ENABLE_LIBQUADMATH_SUPPORT=yes
26137 enable_libquadmath_support=
26138 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
26139 enable_libquadmath_support=no
26142 # Check whether we have a __float128 type, depends on enable_libquadmath_support
26144 LIBQUADSPEC=
26146 if test "x$enable_libquadmath_support" != xno; then
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26149 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
26150 if ${libgfor_cv_have_float128+:} false; then :
26151 $as_echo_n "(cached) " >&6
26152 else
26154 if test x$gcc_no_link = xyes; then
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h. */
26158 typedef _Complex float __attribute__((mode(TC))) __complex128;
26160 __float128 foo (__float128 x)
26163 __complex128 z1, z2;
26165 z1 = x;
26166 z2 = x / 7.Q;
26167 z2 /= z1;
26169 return (__float128) z2;
26172 __float128 bar (__float128 x)
26174 return x * __builtin_huge_valq ();
26178 main ()
26181 foo (1.2Q);
26182 bar (1.2Q);
26185 return 0;
26187 _ACEOF
26188 if ac_fn_c_try_compile "$LINENO"; then :
26190 libgfor_cv_have_float128=yes
26192 else
26194 libgfor_cv_have_float128=no
26197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198 else
26199 if test x$gcc_no_link = xyes; then
26200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26203 /* end confdefs.h. */
26205 typedef _Complex float __attribute__((mode(TC))) __complex128;
26207 __float128 foo (__float128 x)
26210 __complex128 z1, z2;
26212 z1 = x;
26213 z2 = x / 7.Q;
26214 z2 /= z1;
26216 return (__float128) z2;
26219 __float128 bar (__float128 x)
26221 return x * __builtin_huge_valq ();
26225 main ()
26228 foo (1.2Q);
26229 bar (1.2Q);
26232 return 0;
26234 _ACEOF
26235 if ac_fn_c_try_link "$LINENO"; then :
26237 libgfor_cv_have_float128=yes
26239 else
26241 libgfor_cv_have_float128=no
26244 rm -f core conftest.err conftest.$ac_objext \
26245 conftest$ac_exeext conftest.$ac_ext
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26249 $as_echo "$libgfor_cv_have_float128" >&6; }
26251 if test "x$libgfor_cv_have_float128" = xyes; then
26253 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26256 ac_xsave_c_werror_flag=$ac_c_werror_flag
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26258 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
26259 if ${libgfor_cv_have_as_needed+:} false; then :
26260 $as_echo_n "(cached) " >&6
26261 else
26263 # Test for native Solaris options first.
26264 # No whitespace after -z to pass it through -Wl.
26265 libgfor_cv_as_needed_option="-zignore"
26266 libgfor_cv_no_as_needed_option="-zrecord"
26267 save_LDFLAGS="$LDFLAGS"
26268 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26269 libgfor_cv_have_as_needed=no
26271 ac_c_werror_flag=yes
26272 if test x$gcc_no_link = xyes; then
26273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26279 main ()
26283 return 0;
26285 _ACEOF
26286 if ac_fn_c_try_link "$LINENO"; then :
26287 libgfor_cv_have_as_needed=yes
26288 else
26289 libgfor_cv_have_as_needed=no
26291 rm -f core conftest.err conftest.$ac_objext \
26292 conftest$ac_exeext conftest.$ac_ext
26293 LDFLAGS="$save_LDFLAGS"
26294 if test "x$libgfor_cv_have_as_needed" = xno; then
26295 libgfor_cv_as_needed_option="--as-needed"
26296 libgfor_cv_no_as_needed_option="--no-as-needed"
26297 save_LDFLAGS="$LDFLAGS"
26298 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26299 libgfor_cv_have_as_needed=no
26301 ac_c_werror_flag=yes
26302 if test x$gcc_no_link = xyes; then
26303 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h. */
26309 main ()
26313 return 0;
26315 _ACEOF
26316 if ac_fn_c_try_link "$LINENO"; then :
26317 libgfor_cv_have_as_needed=yes
26318 else
26319 libgfor_cv_have_as_needed=no
26321 rm -f core conftest.err conftest.$ac_objext \
26322 conftest$ac_exeext conftest.$ac_ext
26323 LDFLAGS="$save_LDFLAGS"
26325 ac_c_werror_flag=$ac_xsave_c_werror_flag
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26329 $as_echo "$libgfor_cv_have_as_needed" >&6; }
26331 if test "x$libgfor_cv_have_as_needed" = xyes; then
26332 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
26333 else
26334 LIBQUADSPEC="-lquadmath"
26336 if test -f ../libquadmath/libquadmath.la; then
26337 LIBQUADLIB=../libquadmath/libquadmath.la
26338 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26339 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26340 else
26341 LIBQUADLIB="-lquadmath"
26342 LIBQUADLIB_DEP=
26343 LIBQUADINCLUDE=
26346 else
26347 # for --disable-quadmath
26348 LIBQUADLIB=
26349 LIBQUADLIB_DEP=
26350 LIBQUADINCLUDE=
26358 if test "x$libgfor_cv_have_float128" = xyes; then
26359 LIBGFOR_BUILD_QUAD_TRUE=
26360 LIBGFOR_BUILD_QUAD_FALSE='#'
26361 else
26362 LIBGFOR_BUILD_QUAD_TRUE='#'
26363 LIBGFOR_BUILD_QUAD_FALSE=
26368 # Check for GNU libc feenableexcept
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26370 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
26371 if ${ac_cv_lib_m_feenableexcept+:} false; then :
26372 $as_echo_n "(cached) " >&6
26373 else
26374 ac_check_lib_save_LIBS=$LIBS
26375 LIBS="-lm $LIBS"
26376 if test x$gcc_no_link = xyes; then
26377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26382 /* Override any GCC internal prototype to avoid an error.
26383 Use char because int might match the return type of a GCC
26384 builtin and then its argument prototype would still apply. */
26385 #ifdef __cplusplus
26386 extern "C"
26387 #endif
26388 char feenableexcept ();
26390 main ()
26392 return feenableexcept ();
26394 return 0;
26396 _ACEOF
26397 if ac_fn_c_try_link "$LINENO"; then :
26398 ac_cv_lib_m_feenableexcept=yes
26399 else
26400 ac_cv_lib_m_feenableexcept=no
26402 rm -f core conftest.err conftest.$ac_objext \
26403 conftest$ac_exeext conftest.$ac_ext
26404 LIBS=$ac_check_lib_save_LIBS
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26407 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
26408 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
26409 have_feenableexcept=yes
26410 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
26415 # At least for glibc, clock_gettime is in librt. But don't
26416 # pull that in if it still doesn't give us the function we want. This
26417 # test is copied from libgomp, and modified to not link in -lrt as
26418 # libgfortran calls clock_gettime via a weak reference if it's found
26419 # in librt.
26420 if test "$ac_cv_func_clock_gettime" = no; then
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26422 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26423 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26424 $as_echo_n "(cached) " >&6
26425 else
26426 ac_check_lib_save_LIBS=$LIBS
26427 LIBS="-lrt $LIBS"
26428 if test x$gcc_no_link = xyes; then
26429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432 /* end confdefs.h. */
26434 /* Override any GCC internal prototype to avoid an error.
26435 Use char because int might match the return type of a GCC
26436 builtin and then its argument prototype would still apply. */
26437 #ifdef __cplusplus
26438 extern "C"
26439 #endif
26440 char clock_gettime ();
26442 main ()
26444 return clock_gettime ();
26446 return 0;
26448 _ACEOF
26449 if ac_fn_c_try_link "$LINENO"; then :
26450 ac_cv_lib_rt_clock_gettime=yes
26451 else
26452 ac_cv_lib_rt_clock_gettime=no
26454 rm -f core conftest.err conftest.$ac_objext \
26455 conftest$ac_exeext conftest.$ac_ext
26456 LIBS=$ac_check_lib_save_LIBS
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26459 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26460 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26462 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26468 # Check for SysV fpsetmask
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26471 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26472 if ${libgfor_cv_have_fpsetmask+:} false; then :
26473 $as_echo_n "(cached) " >&6
26474 else
26476 if test x$gcc_no_link = xyes; then
26477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h. */
26482 #if HAVE_FLOATINGPOINT_H
26483 # include <floatingpoint.h>
26484 #endif /* HAVE_FLOATINGPOINT_H */
26485 #if HAVE_IEEEFP_H
26486 # include <ieeefp.h>
26487 #endif /* HAVE_IEEEFP_H */
26489 main ()
26491 fpsetmask(0);
26493 return 0;
26495 _ACEOF
26496 if ac_fn_c_try_link "$LINENO"; then :
26497 eval "libgfor_cv_have_fpsetmask=yes"
26498 else
26499 eval "libgfor_cv_have_fpsetmask=no"
26501 rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26506 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26507 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26508 have_fpsetmask=yes
26510 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26514 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26515 #ifdef HAVE_IEEEFP_H
26516 #include <ieeefp.h>
26517 #endif
26518 #include <math.h>
26521 if test "x$ac_cv_type_fp_except" = xyes; then :
26523 cat >>confdefs.h <<_ACEOF
26524 #define HAVE_FP_EXCEPT 1
26525 _ACEOF
26529 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26530 #ifdef HAVE_IEEEFP_H
26531 #include <ieeefp.h>
26532 #endif
26533 #include <math.h>
26536 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26538 cat >>confdefs.h <<_ACEOF
26539 #define HAVE_FP_EXCEPT_T 1
26540 _ACEOF
26545 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26546 #ifdef HAVE_IEEEFP_H
26547 #include <ieeefp.h>
26548 #endif
26549 #include <math.h>
26552 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26554 cat >>confdefs.h <<_ACEOF
26555 #define HAVE_FP_RND 1
26556 _ACEOF
26560 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26561 #ifdef HAVE_IEEEFP_H
26562 #include <ieeefp.h>
26563 #endif
26564 #include <math.h>
26567 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26569 cat >>confdefs.h <<_ACEOF
26570 #define HAVE_FP_RND_T 1
26571 _ACEOF
26577 # Check whether we have fpsetsticky or fpresetsticky
26578 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26579 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26580 have_fpsetsticky=yes
26581 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26585 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26586 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26587 have_fpresetsticky=yes
26588 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26593 # Check for AIX fp_trap and fp_enable
26594 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26595 if test "x$ac_cv_func_fp_trap" = xyes; then :
26596 have_fp_trap=yes
26597 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26601 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26602 if test "x$ac_cv_func_fp_enable" = xyes; then :
26603 have_fp_enable=yes
26604 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26609 # Check if _SOFT_FLOAT is defined
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26612 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26613 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615 else
26616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617 /* end confdefs.h. */
26620 main ()
26623 #ifdef _SOFT_FLOAT
26624 int ok;
26625 #else
26626 choke me
26627 #endif
26630 return 0;
26632 _ACEOF
26633 if ac_fn_c_try_compile "$LINENO"; then :
26634 ac_cv_defined__SOFT_FLOAT=yes
26635 else
26636 ac_cv_defined__SOFT_FLOAT=no
26638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26641 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26642 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26643 have_soft_float=yes
26646 # Runs configure.host to set up necessary host-dependent shell variables.
26647 # We then display a message about it, and propagate them through the
26648 # build chain.
26649 . ${srcdir}/configure.host
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26651 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26653 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26654 FPU_HOST_HEADER=config/${fpu_host}.h
26657 # Whether we will build the IEEE modules
26658 if test x${ieee_support} = xyes; then
26659 IEEE_SUPPORT_TRUE=
26660 IEEE_SUPPORT_FALSE='#'
26661 else
26662 IEEE_SUPPORT_TRUE='#'
26663 IEEE_SUPPORT_FALSE=
26668 # Some targets require additional compiler options for IEEE compatibility.
26669 IEEE_FLAGS="${ieee_flags}"
26672 # Conditionalize the makefile for this target machine.
26673 tmake_file_=
26674 for f in ${tmake_file}
26676 if test -f ${srcdir}/config/$f
26677 then
26678 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
26680 done
26681 tmake_file="${tmake_file_}"
26685 # Check for POSIX getpwuid_r
26687 # There are two versions of getpwuid_r, the POSIX one with 5
26688 # arguments, and another one with 4 arguments used by at least HP-UX
26689 # 10.2.
26690 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26692 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26693 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26694 $as_echo_n "(cached) " >&6
26695 else
26697 if test x$gcc_no_link = xyes; then
26698 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701 /* end confdefs.h. */
26703 #include <stdio.h>
26704 #include <sys/types.h>
26705 #include <pwd.h>
26707 main ()
26710 getpwuid_r(0, NULL, NULL, 0, NULL);
26713 return 0;
26715 _ACEOF
26716 if ac_fn_c_try_link "$LINENO"; then :
26717 libgfor_cv_posix_getpwuid_r="yes"
26718 else
26719 libgfor_cv_posix_getpwuid_r="no"
26721 rm -f core conftest.err conftest.$ac_objext \
26722 conftest$ac_exeext conftest.$ac_ext
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26725 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26727 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26729 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26734 # Check out attribute support.
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26737 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26738 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740 else
26742 save_CFLAGS="$CFLAGS"
26743 CFLAGS="$CFLAGS -Werror"
26744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745 /* end confdefs.h. */
26746 void __attribute__((visibility("hidden"))) foo(void) { }
26748 main ()
26752 return 0;
26754 _ACEOF
26755 if ac_fn_c_try_compile "$LINENO"; then :
26756 libgfor_cv_have_attribute_visibility=yes
26757 else
26758 libgfor_cv_have_attribute_visibility=no
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761 CFLAGS="$save_CFLAGS"
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26764 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26765 if test $libgfor_cv_have_attribute_visibility = yes; then
26767 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26772 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26773 if ${libgfor_cv_have_attribute_alias+:} false; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26777 if test x$gcc_no_link = xyes; then
26778 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26783 void foo(void) { }
26784 extern void bar(void) __attribute__((alias("foo")));
26786 main ()
26788 bar();
26790 return 0;
26792 _ACEOF
26793 if ac_fn_c_try_link "$LINENO"; then :
26794 libgfor_cv_have_attribute_alias=yes
26795 else
26796 libgfor_cv_have_attribute_alias=no
26798 rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26802 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26803 if test $libgfor_cv_have_attribute_alias = yes; then
26805 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26809 # Check out atomic builtins support.
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26812 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26813 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26817 if test x$gcc_no_link = xyes; then
26818 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821 /* end confdefs.h. */
26822 int foovar = 0;
26824 main ()
26827 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26828 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26830 return 0;
26832 _ACEOF
26833 if ac_fn_c_try_link "$LINENO"; then :
26834 libgfor_cv_have_atomic_fetch_add=yes
26835 else
26836 libgfor_cv_have_atomic_fetch_add=no
26838 rm -f core conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26842 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26843 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26845 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26849 # Check out #pragma weak.
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26852 $as_echo_n "checking whether pragma weak works... " >&6; }
26853 if ${libgfor_cv_have_pragma_weak+:} false; then :
26854 $as_echo_n "(cached) " >&6
26855 else
26857 gfor_save_CFLAGS="$CFLAGS"
26858 CFLAGS="$CFLAGS -Wunknown-pragmas"
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h. */
26862 void foo (void);
26863 #pragma weak foo
26866 main ()
26868 if (foo) foo ();
26870 return 0;
26872 _ACEOF
26873 if ac_fn_c_try_compile "$LINENO"; then :
26874 libgfor_cv_have_pragma_weak=yes
26875 else
26876 libgfor_cv_have_pragma_weak=no
26878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26881 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26882 if test $libgfor_cv_have_pragma_weak = yes; then
26884 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26887 case "$host" in
26888 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26890 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26893 esac
26895 # Check out weakref support.
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26898 $as_echo_n "checking whether the target supports weakref... " >&6; }
26899 if ${libgfor_cv_have_weakref+:} false; then :
26900 $as_echo_n "(cached) " >&6
26901 else
26903 save_CFLAGS="$CFLAGS"
26904 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26905 if test x$gcc_no_link = xyes; then
26906 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h. */
26911 static int mytoto (int) __attribute__((__weakref__("toto")));
26914 main ()
26916 return (mytoto != 0);
26918 return 0;
26920 _ACEOF
26921 if ac_fn_c_try_link "$LINENO"; then :
26922 libgfor_cv_have_weakref=yes
26923 else
26924 libgfor_cv_have_weakref=no
26926 rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26928 CFLAGS="$save_CFLAGS"
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26931 $as_echo "$libgfor_cv_have_weakref" >&6; }
26932 if test $libgfor_cv_have_weakref = yes; then
26934 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26938 # Various other checks on target
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26941 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26942 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26943 $as_echo_n "(cached) " >&6
26944 else
26946 if test "$cross_compiling" = yes; then :
26948 case "${target}" in
26949 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26950 *) libgfor_cv_have_unlink_open_file=yes;;
26951 esac
26952 else
26953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26954 /* end confdefs.h. */
26956 #include <errno.h>
26957 #include <fcntl.h>
26958 #include <unistd.h>
26959 #include <sys/stat.h>
26961 int main ()
26963 int fd;
26965 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26966 if (fd <= 0)
26967 return 0;
26968 if (unlink ("testfile") == -1)
26969 return 1;
26970 write (fd, "This is a test\n", 15);
26971 close (fd);
26973 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26974 return 0;
26975 else
26976 return 1;
26978 _ACEOF
26979 if ac_fn_c_try_run "$LINENO"; then :
26980 libgfor_cv_have_unlink_open_file=yes
26981 else
26982 libgfor_cv_have_unlink_open_file=no
26984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26985 conftest.$ac_objext conftest.beam conftest.$ac_ext
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26990 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26991 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26993 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26997 # Check whether line terminator is LF or CRLF
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
27000 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
27001 if ${libgfor_cv_have_crlf+:} false; then :
27002 $as_echo_n "(cached) " >&6
27003 else
27005 if test "$cross_compiling" = yes; then :
27007 case "${target}" in
27008 *mingw*) libgfor_cv_have_crlf=yes ;;
27009 *) libgfor_cv_have_crlf=no;;
27010 esac
27011 else
27012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27013 /* end confdefs.h. */
27015 /* This test program should exit with status 0 if system uses a CRLF as
27016 line terminator, and status 1 otherwise.
27017 Since it is used to check for mingw systems, and should return 0 in any
27018 other case, in case of a failure we will not use CRLF. */
27019 #include <sys/stat.h>
27020 #include <stdlib.h>
27021 #include <fcntl.h>
27022 #include <stdio.h>
27024 int main ()
27026 #ifndef O_BINARY
27027 exit(1);
27028 #else
27029 int fd, bytes;
27030 char buff[5];
27032 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
27033 if (fd < 0)
27034 exit(1);
27035 if (write (fd, "\n", 1) < 0)
27036 perror ("write");
27038 close (fd);
27040 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
27041 exit(1);
27042 bytes = read (fd, buff, 5);
27043 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
27044 exit(0);
27045 else
27046 exit(1);
27047 #endif
27049 _ACEOF
27050 if ac_fn_c_try_run "$LINENO"; then :
27051 libgfor_cv_have_crlf=yes
27052 else
27053 libgfor_cv_have_crlf=no
27055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27056 conftest.$ac_objext conftest.beam conftest.$ac_ext
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
27061 $as_echo "$libgfor_cv_have_crlf" >&6; }
27062 if test x"$libgfor_cv_have_crlf" = xyes; then
27064 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
27068 # Check whether we support AVX extensions
27070 ac_save_CFLAGS="$CFLAGS"
27071 CFLAGS="-O2 -mavx"
27072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27073 /* end confdefs.h. */
27075 void _mm256_zeroall (void)
27077 __builtin_ia32_vzeroall ();
27080 main ()
27084 return 0;
27086 _ACEOF
27087 if ac_fn_c_try_compile "$LINENO"; then :
27089 $as_echo "#define HAVE_AVX 1" >>confdefs.h
27092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27093 CFLAGS="$ac_save_CFLAGS"
27096 # Check wether we support AVX2 extensions
27098 ac_save_CFLAGS="$CFLAGS"
27099 CFLAGS="-O2 -mavx2"
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27103 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
27104 __v4di
27105 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
27107 return __builtin_ia32_andnotsi256 (__X, __Y);
27110 main ()
27114 return 0;
27116 _ACEOF
27117 if ac_fn_c_try_compile "$LINENO"; then :
27119 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
27122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123 CFLAGS="$ac_save_CFLAGS"
27126 # Check wether we support AVX512f extensions
27128 ac_save_CFLAGS="$CFLAGS"
27129 CFLAGS="-O2 -mavx512f"
27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h. */
27133 typedef double __m512d __attribute__ ((__vector_size__ (64)));
27134 __m512d _mm512_add (__m512d a)
27136 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
27137 /* For -m64/-mx32 also verify that code will work even if
27138 the target uses call saved zmm16+ and needs to emit
27139 unwind info for them (e.g. on mingw). See PR79127. */
27140 #ifdef __x86_64__
27141 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
27142 #endif
27143 return b;
27146 main ()
27150 return 0;
27152 _ACEOF
27153 if ac_fn_c_try_compile "$LINENO"; then :
27155 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 CFLAGS="$ac_save_CFLAGS"
27162 # Check for FMA3 extensions
27164 ac_save_CFLAGS="$CFLAGS"
27165 CFLAGS="-O2 -mfma -mno-fma4"
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h. */
27169 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27170 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27171 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27173 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27174 (__v4sf)__B,
27175 (__v4sf)__C);
27178 main ()
27182 return 0;
27184 _ACEOF
27185 if ac_fn_c_try_compile "$LINENO"; then :
27187 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
27190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191 CFLAGS="$ac_save_CFLAGS"
27194 # Check for FMA4 extensions
27196 ac_save_CFLAGS="$CFLAGS"
27197 CFLAGS="-O2 -mfma4 -mno-fma"
27198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27199 /* end confdefs.h. */
27201 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27202 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27203 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27205 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27206 (__v4sf)__B,
27207 (__v4sf)__C);
27210 main ()
27214 return 0;
27216 _ACEOF
27217 if ac_fn_c_try_compile "$LINENO"; then :
27219 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 CFLAGS="$ac_save_CFLAGS"
27226 # Check if AVX128 works
27228 ac_save_CFLAGS="$CFLAGS"
27229 CFLAGS="-O2 -mavx -mprefer-avx128"
27230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27231 /* end confdefs.h. */
27233 void foo()
27237 main ()
27241 return 0;
27243 _ACEOF
27244 if ac_fn_c_try_compile "$LINENO"; then :
27246 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
27248 if true; then
27249 HAVE_AVX128_TRUE=
27250 HAVE_AVX128_FALSE='#'
27251 else
27252 HAVE_AVX128_TRUE='#'
27253 HAVE_AVX128_FALSE=
27256 else
27257 if false; then
27258 HAVE_AVX128_TRUE=
27259 HAVE_AVX128_FALSE='#'
27260 else
27261 HAVE_AVX128_TRUE='#'
27262 HAVE_AVX128_FALSE=
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267 CFLAGS="$ac_save_CFLAGS"
27270 # Determine what GCC version number to use in filesystem paths.
27272 get_gcc_base_ver="cat"
27274 # Check whether --with-gcc-major-version-only was given.
27275 if test "${with_gcc_major_version_only+set}" = set; then :
27276 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
27277 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
27285 cat >confcache <<\_ACEOF
27286 # This file is a shell script that caches the results of configure
27287 # tests run on this system so they can be shared between configure
27288 # scripts and configure runs, see configure's option --config-cache.
27289 # It is not useful on other systems. If it contains results you don't
27290 # want to keep, you may remove or edit it.
27292 # config.status only pays attention to the cache file if you give it
27293 # the --recheck option to rerun configure.
27295 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27296 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27297 # following values.
27299 _ACEOF
27301 # The following way of writing the cache mishandles newlines in values,
27302 # but we know of no workaround that is simple, portable, and efficient.
27303 # So, we kill variables containing newlines.
27304 # Ultrix sh set writes to stderr and can't be redirected directly,
27305 # and sets the high bit in the cache file unless we assign to the vars.
27307 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27308 eval ac_val=\$$ac_var
27309 case $ac_val in #(
27310 *${as_nl}*)
27311 case $ac_var in #(
27312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27314 esac
27315 case $ac_var in #(
27316 _ | IFS | as_nl) ;; #(
27317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27318 *) { eval $ac_var=; unset $ac_var;} ;;
27319 esac ;;
27320 esac
27321 done
27323 (set) 2>&1 |
27324 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27325 *${as_nl}ac_space=\ *)
27326 # `set' does not quote correctly, so add quotes: double-quote
27327 # substitution turns \\\\ into \\, and sed turns \\ into \.
27328 sed -n \
27329 "s/'/'\\\\''/g;
27330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27331 ;; #(
27333 # `set' quotes correctly as required by POSIX, so do not add quotes.
27334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27336 esac |
27337 sort
27339 sed '
27340 /^ac_cv_env_/b end
27341 t clear
27342 :clear
27343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27344 t end
27345 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27346 :end' >>confcache
27347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27348 if test -w "$cache_file"; then
27349 if test "x$cache_file" != "x/dev/null"; then
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27351 $as_echo "$as_me: updating cache $cache_file" >&6;}
27352 if test ! -f "$cache_file" || test -h "$cache_file"; then
27353 cat confcache >"$cache_file"
27354 else
27355 case $cache_file in #(
27356 */* | ?:*)
27357 mv -f confcache "$cache_file"$$ &&
27358 mv -f "$cache_file"$$ "$cache_file" ;; #(
27360 mv -f confcache "$cache_file" ;;
27361 esac
27364 else
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27366 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27369 rm -f confcache
27371 if test ${multilib} = yes; then
27372 multilib_arg="--enable-multilib"
27373 else
27374 multilib_arg=
27377 # Write our Makefile and spec file.
27378 ac_config_files="$ac_config_files Makefile libgfortran.spec"
27380 cat >confcache <<\_ACEOF
27381 # This file is a shell script that caches the results of configure
27382 # tests run on this system so they can be shared between configure
27383 # scripts and configure runs, see configure's option --config-cache.
27384 # It is not useful on other systems. If it contains results you don't
27385 # want to keep, you may remove or edit it.
27387 # config.status only pays attention to the cache file if you give it
27388 # the --recheck option to rerun configure.
27390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27392 # following values.
27394 _ACEOF
27396 # The following way of writing the cache mishandles newlines in values,
27397 # but we know of no workaround that is simple, portable, and efficient.
27398 # So, we kill variables containing newlines.
27399 # Ultrix sh set writes to stderr and can't be redirected directly,
27400 # and sets the high bit in the cache file unless we assign to the vars.
27402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27403 eval ac_val=\$$ac_var
27404 case $ac_val in #(
27405 *${as_nl}*)
27406 case $ac_var in #(
27407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27409 esac
27410 case $ac_var in #(
27411 _ | IFS | as_nl) ;; #(
27412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27413 *) { eval $ac_var=; unset $ac_var;} ;;
27414 esac ;;
27415 esac
27416 done
27418 (set) 2>&1 |
27419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27420 *${as_nl}ac_space=\ *)
27421 # `set' does not quote correctly, so add quotes: double-quote
27422 # substitution turns \\\\ into \\, and sed turns \\ into \.
27423 sed -n \
27424 "s/'/'\\\\''/g;
27425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27426 ;; #(
27428 # `set' quotes correctly as required by POSIX, so do not add quotes.
27429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27431 esac |
27432 sort
27434 sed '
27435 /^ac_cv_env_/b end
27436 t clear
27437 :clear
27438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27439 t end
27440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27441 :end' >>confcache
27442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27443 if test -w "$cache_file"; then
27444 if test "x$cache_file" != "x/dev/null"; then
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27446 $as_echo "$as_me: updating cache $cache_file" >&6;}
27447 if test ! -f "$cache_file" || test -h "$cache_file"; then
27448 cat confcache >"$cache_file"
27449 else
27450 case $cache_file in #(
27451 */* | ?:*)
27452 mv -f confcache "$cache_file"$$ &&
27453 mv -f "$cache_file"$$ "$cache_file" ;; #(
27455 mv -f confcache "$cache_file" ;;
27456 esac
27459 else
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27464 rm -f confcache
27466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27467 # Let make expand exec_prefix.
27468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27470 DEFS=-DHAVE_CONFIG_H
27472 ac_libobjs=
27473 ac_ltlibobjs=
27475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27476 # 1. Remove the extension, and $U if already installed.
27477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27480 # will be set to the directory where LIBOBJS objects are built.
27481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27483 done
27484 LIBOBJS=$ac_libobjs
27486 LTLIBOBJS=$ac_ltlibobjs
27489 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
27490 as_fn_error $? "conditional \"onestep\" was never defined.
27491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27494 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27495 if test -n "$am_sleep_pid"; then
27496 # Hide warnings about reused PIDs.
27497 wait $am_sleep_pid 2>/dev/null
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27500 $as_echo "done" >&6; }
27501 if test -n "$EXEEXT"; then
27502 am__EXEEXT_TRUE=
27503 am__EXEEXT_FALSE='#'
27504 else
27505 am__EXEEXT_TRUE='#'
27506 am__EXEEXT_FALSE=
27509 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27510 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27514 as_fn_error $? "conditional \"AMDEP\" was never defined.
27515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27518 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27521 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27522 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27525 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27526 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27529 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27530 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27533 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27534 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27537 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27538 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27541 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27542 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27545 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27546 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27549 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27550 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27553 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27554 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27557 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27558 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27562 : "${CONFIG_STATUS=./config.status}"
27563 ac_write_fail=0
27564 ac_clean_files_save=$ac_clean_files
27565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27568 as_write_fail=0
27569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27570 #! $SHELL
27571 # Generated by $as_me.
27572 # Run this file to recreate the current configuration.
27573 # Compiler output produced by configure, useful for debugging
27574 # configure, is in config.log if it exists.
27576 debug=false
27577 ac_cs_recheck=false
27578 ac_cs_silent=false
27580 SHELL=\${CONFIG_SHELL-$SHELL}
27581 export SHELL
27582 _ASEOF
27583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27584 ## -------------------- ##
27585 ## M4sh Initialization. ##
27586 ## -------------------- ##
27588 # Be more Bourne compatible
27589 DUALCASE=1; export DUALCASE # for MKS sh
27590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27591 emulate sh
27592 NULLCMD=:
27593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27594 # is contrary to our usage. Disable this feature.
27595 alias -g '${1+"$@"}'='"$@"'
27596 setopt NO_GLOB_SUBST
27597 else
27598 case `(set -o) 2>/dev/null` in #(
27599 *posix*) :
27600 set -o posix ;; #(
27601 *) :
27603 esac
27607 as_nl='
27609 export as_nl
27610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27611 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27614 # Prefer a ksh shell builtin over an external printf program on Solaris,
27615 # but without wasting forks for bash or zsh.
27616 if test -z "$BASH_VERSION$ZSH_VERSION" \
27617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27618 as_echo='print -r --'
27619 as_echo_n='print -rn --'
27620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27621 as_echo='printf %s\n'
27622 as_echo_n='printf %s'
27623 else
27624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27626 as_echo_n='/usr/ucb/echo -n'
27627 else
27628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27629 as_echo_n_body='eval
27630 arg=$1;
27631 case $arg in #(
27632 *"$as_nl"*)
27633 expr "X$arg" : "X\\(.*\\)$as_nl";
27634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27635 esac;
27636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27638 export as_echo_n_body
27639 as_echo_n='sh -c $as_echo_n_body as_echo'
27641 export as_echo_body
27642 as_echo='sh -c $as_echo_body as_echo'
27645 # The user is always right.
27646 if test "${PATH_SEPARATOR+set}" != set; then
27647 PATH_SEPARATOR=:
27648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27650 PATH_SEPARATOR=';'
27655 # IFS
27656 # We need space, tab and new line, in precisely that order. Quoting is
27657 # there to prevent editors from complaining about space-tab.
27658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27659 # splitting by setting IFS to empty value.)
27660 IFS=" "" $as_nl"
27662 # Find who we are. Look in the path if we contain no directory separator.
27663 as_myself=
27664 case $0 in #((
27665 *[\\/]* ) as_myself=$0 ;;
27666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27667 for as_dir in $PATH
27669 IFS=$as_save_IFS
27670 test -z "$as_dir" && as_dir=.
27671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27672 done
27673 IFS=$as_save_IFS
27676 esac
27677 # We did not find ourselves, most probably we were run as `sh COMMAND'
27678 # in which case we are not to be found in the path.
27679 if test "x$as_myself" = x; then
27680 as_myself=$0
27682 if test ! -f "$as_myself"; then
27683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27684 exit 1
27687 # Unset variables that we do not need and which cause bugs (e.g. in
27688 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27689 # suppresses any "Segmentation fault" message there. '((' could
27690 # trigger a bug in pdksh 5.2.14.
27691 for as_var in BASH_ENV ENV MAIL MAILPATH
27692 do eval test x\${$as_var+set} = xset \
27693 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27694 done
27695 PS1='$ '
27696 PS2='> '
27697 PS4='+ '
27699 # NLS nuisances.
27700 LC_ALL=C
27701 export LC_ALL
27702 LANGUAGE=C
27703 export LANGUAGE
27705 # CDPATH.
27706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27709 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27710 # ----------------------------------------
27711 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27712 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27713 # script with STATUS, using 1 if that was 0.
27714 as_fn_error ()
27716 as_status=$1; test $as_status -eq 0 && as_status=1
27717 if test "$4"; then
27718 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27719 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27721 $as_echo "$as_me: error: $2" >&2
27722 as_fn_exit $as_status
27723 } # as_fn_error
27726 # as_fn_set_status STATUS
27727 # -----------------------
27728 # Set $? to STATUS, without forking.
27729 as_fn_set_status ()
27731 return $1
27732 } # as_fn_set_status
27734 # as_fn_exit STATUS
27735 # -----------------
27736 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27737 as_fn_exit ()
27739 set +e
27740 as_fn_set_status $1
27741 exit $1
27742 } # as_fn_exit
27744 # as_fn_unset VAR
27745 # ---------------
27746 # Portably unset VAR.
27747 as_fn_unset ()
27749 { eval $1=; unset $1;}
27751 as_unset=as_fn_unset
27752 # as_fn_append VAR VALUE
27753 # ----------------------
27754 # Append the text in VALUE to the end of the definition contained in VAR. Take
27755 # advantage of any shell optimizations that allow amortized linear growth over
27756 # repeated appends, instead of the typical quadratic growth present in naive
27757 # implementations.
27758 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27759 eval 'as_fn_append ()
27761 eval $1+=\$2
27763 else
27764 as_fn_append ()
27766 eval $1=\$$1\$2
27768 fi # as_fn_append
27770 # as_fn_arith ARG...
27771 # ------------------
27772 # Perform arithmetic evaluation on the ARGs, and store the result in the
27773 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27774 # must be portable across $(()) and expr.
27775 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27776 eval 'as_fn_arith ()
27778 as_val=$(( $* ))
27780 else
27781 as_fn_arith ()
27783 as_val=`expr "$@" || test $? -eq 1`
27785 fi # as_fn_arith
27788 if expr a : '\(a\)' >/dev/null 2>&1 &&
27789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27790 as_expr=expr
27791 else
27792 as_expr=false
27795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27796 as_basename=basename
27797 else
27798 as_basename=false
27801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27802 as_dirname=dirname
27803 else
27804 as_dirname=false
27807 as_me=`$as_basename -- "$0" ||
27808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27809 X"$0" : 'X\(//\)$' \| \
27810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27811 $as_echo X/"$0" |
27812 sed '/^.*\/\([^/][^/]*\)\/*$/{
27813 s//\1/
27816 /^X\/\(\/\/\)$/{
27817 s//\1/
27820 /^X\/\(\/\).*/{
27821 s//\1/
27824 s/.*/./; q'`
27826 # Avoid depending upon Character Ranges.
27827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27830 as_cr_digits='0123456789'
27831 as_cr_alnum=$as_cr_Letters$as_cr_digits
27833 ECHO_C= ECHO_N= ECHO_T=
27834 case `echo -n x` in #(((((
27835 -n*)
27836 case `echo 'xy\c'` in
27837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27838 xy) ECHO_C='\c';;
27839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27840 ECHO_T=' ';;
27841 esac;;
27843 ECHO_N='-n';;
27844 esac
27846 rm -f conf$$ conf$$.exe conf$$.file
27847 if test -d conf$$.dir; then
27848 rm -f conf$$.dir/conf$$.file
27849 else
27850 rm -f conf$$.dir
27851 mkdir conf$$.dir 2>/dev/null
27853 if (echo >conf$$.file) 2>/dev/null; then
27854 if ln -s conf$$.file conf$$ 2>/dev/null; then
27855 as_ln_s='ln -s'
27856 # ... but there are two gotchas:
27857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27859 # In both cases, we have to default to `cp -pR'.
27860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27861 as_ln_s='cp -pR'
27862 elif ln conf$$.file conf$$ 2>/dev/null; then
27863 as_ln_s=ln
27864 else
27865 as_ln_s='cp -pR'
27867 else
27868 as_ln_s='cp -pR'
27870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27871 rmdir conf$$.dir 2>/dev/null
27874 # as_fn_mkdir_p
27875 # -------------
27876 # Create "$as_dir" as a directory, including parents if necessary.
27877 as_fn_mkdir_p ()
27880 case $as_dir in #(
27881 -*) as_dir=./$as_dir;;
27882 esac
27883 test -d "$as_dir" || eval $as_mkdir_p || {
27884 as_dirs=
27885 while :; do
27886 case $as_dir in #(
27887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27888 *) as_qdir=$as_dir;;
27889 esac
27890 as_dirs="'$as_qdir' $as_dirs"
27891 as_dir=`$as_dirname -- "$as_dir" ||
27892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27893 X"$as_dir" : 'X\(//\)[^/]' \| \
27894 X"$as_dir" : 'X\(//\)$' \| \
27895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27896 $as_echo X"$as_dir" |
27897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27898 s//\1/
27901 /^X\(\/\/\)[^/].*/{
27902 s//\1/
27905 /^X\(\/\/\)$/{
27906 s//\1/
27909 /^X\(\/\).*/{
27910 s//\1/
27913 s/.*/./; q'`
27914 test -d "$as_dir" && break
27915 done
27916 test -z "$as_dirs" || eval "mkdir $as_dirs"
27917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27920 } # as_fn_mkdir_p
27921 if mkdir -p . 2>/dev/null; then
27922 as_mkdir_p='mkdir -p "$as_dir"'
27923 else
27924 test -d ./-p && rmdir ./-p
27925 as_mkdir_p=false
27929 # as_fn_executable_p FILE
27930 # -----------------------
27931 # Test if FILE is an executable regular file.
27932 as_fn_executable_p ()
27934 test -f "$1" && test -x "$1"
27935 } # as_fn_executable_p
27936 as_test_x='test -x'
27937 as_executable_p=as_fn_executable_p
27939 # Sed expression to map a string onto a valid CPP name.
27940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27942 # Sed expression to map a string onto a valid variable name.
27943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27946 exec 6>&1
27947 ## ----------------------------------- ##
27948 ## Main body of $CONFIG_STATUS script. ##
27949 ## ----------------------------------- ##
27950 _ASEOF
27951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27954 # Save the log message, to keep $0 and so on meaningful, and to
27955 # report actual input values of CONFIG_FILES etc. instead of their
27956 # values after options handling.
27957 ac_log="
27958 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27959 generated by GNU Autoconf 2.69. Invocation command line was
27961 CONFIG_FILES = $CONFIG_FILES
27962 CONFIG_HEADERS = $CONFIG_HEADERS
27963 CONFIG_LINKS = $CONFIG_LINKS
27964 CONFIG_COMMANDS = $CONFIG_COMMANDS
27965 $ $0 $@
27967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27970 _ACEOF
27972 case $ac_config_files in *"
27973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27974 esac
27976 case $ac_config_headers in *"
27977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27978 esac
27981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27982 # Files that config.status was made for.
27983 config_files="$ac_config_files"
27984 config_headers="$ac_config_headers"
27985 config_commands="$ac_config_commands"
27987 _ACEOF
27989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27990 ac_cs_usage="\
27991 \`$as_me' instantiates files and other configuration actions
27992 from templates according to the current configuration. Unless the files
27993 and actions are specified as TAGs, all are instantiated by default.
27995 Usage: $0 [OPTION]... [TAG]...
27997 -h, --help print this help, then exit
27998 -V, --version print version number and configuration settings, then exit
27999 --config print configuration, then exit
28000 -q, --quiet, --silent
28001 do not print progress messages
28002 -d, --debug don't remove temporary files
28003 --recheck update $as_me by reconfiguring in the same conditions
28004 --file=FILE[:TEMPLATE]
28005 instantiate the configuration file FILE
28006 --header=FILE[:TEMPLATE]
28007 instantiate the configuration header FILE
28009 Configuration files:
28010 $config_files
28012 Configuration headers:
28013 $config_headers
28015 Configuration commands:
28016 $config_commands
28018 Report bugs to the package provider.
28019 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
28020 General help using GNU software: <http://www.gnu.org/gethelp/>."
28022 _ACEOF
28023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28024 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28025 ac_cs_version="\\
28026 GNU Fortran Runtime Library config.status 0.3
28027 configured by $0, generated by GNU Autoconf 2.69,
28028 with options \\"\$ac_cs_config\\"
28030 Copyright (C) 2012 Free Software Foundation, Inc.
28031 This config.status script is free software; the Free Software Foundation
28032 gives unlimited permission to copy, distribute and modify it."
28034 ac_pwd='$ac_pwd'
28035 srcdir='$srcdir'
28036 INSTALL='$INSTALL'
28037 MKDIR_P='$MKDIR_P'
28038 AWK='$AWK'
28039 test -n "\$AWK" || AWK=awk
28040 _ACEOF
28042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28043 # The default lists apply if the user does not specify any file.
28044 ac_need_defaults=:
28045 while test $# != 0
28047 case $1 in
28048 --*=?*)
28049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28051 ac_shift=:
28053 --*=)
28054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28055 ac_optarg=
28056 ac_shift=:
28059 ac_option=$1
28060 ac_optarg=$2
28061 ac_shift=shift
28063 esac
28065 case $ac_option in
28066 # Handling of the options.
28067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28068 ac_cs_recheck=: ;;
28069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28070 $as_echo "$ac_cs_version"; exit ;;
28071 --config | --confi | --conf | --con | --co | --c )
28072 $as_echo "$ac_cs_config"; exit ;;
28073 --debug | --debu | --deb | --de | --d | -d )
28074 debug=: ;;
28075 --file | --fil | --fi | --f )
28076 $ac_shift
28077 case $ac_optarg in
28078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28079 '') as_fn_error $? "missing file argument" ;;
28080 esac
28081 as_fn_append CONFIG_FILES " '$ac_optarg'"
28082 ac_need_defaults=false;;
28083 --header | --heade | --head | --hea )
28084 $ac_shift
28085 case $ac_optarg in
28086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28087 esac
28088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28089 ac_need_defaults=false;;
28090 --he | --h)
28091 # Conflict between --help and --header
28092 as_fn_error $? "ambiguous option: \`$1'
28093 Try \`$0 --help' for more information.";;
28094 --help | --hel | -h )
28095 $as_echo "$ac_cs_usage"; exit ;;
28096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28098 ac_cs_silent=: ;;
28100 # This is an error.
28101 -*) as_fn_error $? "unrecognized option: \`$1'
28102 Try \`$0 --help' for more information." ;;
28104 *) as_fn_append ac_config_targets " $1"
28105 ac_need_defaults=false ;;
28107 esac
28108 shift
28109 done
28111 ac_configure_extra_args=
28113 if $ac_cs_silent; then
28114 exec 6>/dev/null
28115 ac_configure_extra_args="$ac_configure_extra_args --silent"
28118 _ACEOF
28119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28120 if \$ac_cs_recheck; then
28121 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28122 shift
28123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28124 CONFIG_SHELL='$SHELL'
28125 export CONFIG_SHELL
28126 exec "\$@"
28129 _ACEOF
28130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28131 exec 5>>config.log
28133 echo
28134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28135 ## Running $as_me. ##
28136 _ASBOX
28137 $as_echo "$ac_log"
28138 } >&5
28140 _ACEOF
28141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28143 # INIT-COMMANDS
28146 srcdir="$srcdir"
28147 host="$host"
28148 target="$target"
28149 with_multisubdir="$with_multisubdir"
28150 with_multisrctop="$with_multisrctop"
28151 with_target_subdir="$with_target_subdir"
28152 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28153 multi_basedir="$multi_basedir"
28154 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28155 CC="$CC"
28156 CXX="$CXX"
28157 GFORTRAN="$GFORTRAN"
28158 GDC="$GDC"
28159 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28162 # The HP-UX ksh and POSIX shell print the target directory to stdout
28163 # if CDPATH is set.
28164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28166 sed_quote_subst='$sed_quote_subst'
28167 double_quote_subst='$double_quote_subst'
28168 delay_variable_subst='$delay_variable_subst'
28169 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28170 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28171 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28172 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28173 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28176 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28177 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28178 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28179 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28180 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28181 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28182 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28183 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28184 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28185 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28186 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28187 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28188 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28197 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28198 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28199 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28200 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28201 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28202 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28203 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28204 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28205 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28206 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28207 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28208 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28209 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28210 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28211 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28212 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28213 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28214 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28215 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28216 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28217 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"`'
28218 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28219 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28220 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28221 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28222 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28223 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28224 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28225 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28226 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28227 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28228 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28229 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28230 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28231 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28232 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28233 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28234 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28235 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28236 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28237 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28238 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28239 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28240 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28241 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28242 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28243 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28244 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28245 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28246 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28247 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28248 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28249 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28250 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28251 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28252 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28253 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28254 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28255 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28256 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28257 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28258 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28259 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28260 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28261 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28262 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28263 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28264 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28265 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28266 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28267 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28268 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28269 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28270 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28271 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28272 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28273 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28274 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28275 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28276 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28277 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28278 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28279 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28280 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28281 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28282 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28283 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28284 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28285 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28286 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28287 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28288 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28289 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28290 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28291 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28292 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28293 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28294 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28295 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28296 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28297 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28298 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28299 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28300 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28301 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28302 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28303 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28304 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28305 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28306 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28307 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28308 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28309 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28310 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28311 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28312 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28313 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28314 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28315 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28316 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28317 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28318 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28319 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28320 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28321 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28322 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28323 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28324 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28325 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28326 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28327 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28328 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28329 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28330 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28331 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28332 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28333 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28334 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28335 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28336 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28337 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28338 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28339 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28340 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28341 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28342 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28343 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28345 LTCC='$LTCC'
28346 LTCFLAGS='$LTCFLAGS'
28347 compiler='$compiler_DEFAULT'
28349 # A function that is used when there is no print builtin or printf.
28350 func_fallback_echo ()
28352 eval 'cat <<_LTECHO_EOF
28354 _LTECHO_EOF'
28357 # Quote evaled strings.
28358 for var in SED \
28359 GREP \
28360 EGREP \
28361 FGREP \
28362 SHELL \
28363 ECHO \
28364 LD \
28365 NM \
28366 LN_S \
28367 lt_SP2NL \
28368 lt_NL2SP \
28369 reload_flag \
28370 OBJDUMP \
28371 deplibs_check_method \
28372 file_magic_cmd \
28373 AR \
28374 AR_FLAGS \
28375 STRIP \
28376 RANLIB \
28377 CC \
28378 CFLAGS \
28379 compiler \
28380 lt_cv_sys_global_symbol_pipe \
28381 lt_cv_sys_global_symbol_to_cdecl \
28382 lt_cv_sys_global_symbol_to_c_name_address \
28383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28384 lt_prog_compiler_no_builtin_flag \
28385 lt_prog_compiler_wl \
28386 lt_prog_compiler_pic \
28387 lt_prog_compiler_static \
28388 lt_cv_prog_compiler_c_o \
28389 need_locks \
28390 DSYMUTIL \
28391 NMEDIT \
28392 LIPO \
28393 OTOOL \
28394 OTOOL64 \
28395 shrext_cmds \
28396 export_dynamic_flag_spec \
28397 whole_archive_flag_spec \
28398 compiler_needs_object \
28399 with_gnu_ld \
28400 allow_undefined_flag \
28401 no_undefined_flag \
28402 hardcode_libdir_flag_spec \
28403 hardcode_libdir_flag_spec_ld \
28404 hardcode_libdir_separator \
28405 fix_srcfile_path \
28406 exclude_expsyms \
28407 include_expsyms \
28408 file_list_spec \
28409 variables_saved_for_relink \
28410 libname_spec \
28411 library_names_spec \
28412 soname_spec \
28413 install_override_mode \
28414 finish_eval \
28415 old_striplib \
28416 striplib \
28417 compiler_lib_search_dirs \
28418 predep_objects \
28419 postdep_objects \
28420 predeps \
28421 postdeps \
28422 compiler_lib_search_path \
28423 LD_FC \
28424 reload_flag_FC \
28425 compiler_FC \
28426 lt_prog_compiler_no_builtin_flag_FC \
28427 lt_prog_compiler_wl_FC \
28428 lt_prog_compiler_pic_FC \
28429 lt_prog_compiler_static_FC \
28430 lt_cv_prog_compiler_c_o_FC \
28431 export_dynamic_flag_spec_FC \
28432 whole_archive_flag_spec_FC \
28433 compiler_needs_object_FC \
28434 with_gnu_ld_FC \
28435 allow_undefined_flag_FC \
28436 no_undefined_flag_FC \
28437 hardcode_libdir_flag_spec_FC \
28438 hardcode_libdir_flag_spec_ld_FC \
28439 hardcode_libdir_separator_FC \
28440 fix_srcfile_path_FC \
28441 exclude_expsyms_FC \
28442 include_expsyms_FC \
28443 file_list_spec_FC \
28444 compiler_lib_search_dirs_FC \
28445 predep_objects_FC \
28446 postdep_objects_FC \
28447 predeps_FC \
28448 postdeps_FC \
28449 compiler_lib_search_path_FC; do
28450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28451 *[\\\\\\\`\\"\\\$]*)
28452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28457 esac
28458 done
28460 # Double-quote double-evaled strings.
28461 for var in reload_cmds \
28462 old_postinstall_cmds \
28463 old_postuninstall_cmds \
28464 old_archive_cmds \
28465 extract_expsyms_cmds \
28466 old_archive_from_new_cmds \
28467 old_archive_from_expsyms_cmds \
28468 archive_cmds \
28469 archive_expsym_cmds \
28470 module_cmds \
28471 module_expsym_cmds \
28472 export_symbols_cmds \
28473 prelink_cmds \
28474 postinstall_cmds \
28475 postuninstall_cmds \
28476 finish_cmds \
28477 sys_lib_search_path_spec \
28478 sys_lib_dlsearch_path_spec \
28479 reload_cmds_FC \
28480 old_archive_cmds_FC \
28481 old_archive_from_new_cmds_FC \
28482 old_archive_from_expsyms_cmds_FC \
28483 archive_cmds_FC \
28484 archive_expsym_cmds_FC \
28485 module_cmds_FC \
28486 module_expsym_cmds_FC \
28487 export_symbols_cmds_FC \
28488 prelink_cmds_FC; do
28489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28490 *[\\\\\\\`\\"\\\$]*)
28491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28496 esac
28497 done
28499 ac_aux_dir='$ac_aux_dir'
28500 xsi_shell='$xsi_shell'
28501 lt_shell_append='$lt_shell_append'
28503 # See if we are running on zsh, and set the options which allow our
28504 # commands through without removal of \ escapes INIT.
28505 if test -n "\${ZSH_VERSION+set}" ; then
28506 setopt NO_GLOB_SUBST
28510 PACKAGE='$PACKAGE'
28511 VERSION='$VERSION'
28512 TIMESTAMP='$TIMESTAMP'
28513 RM='$RM'
28514 ofile='$ofile'
28521 GCC="$GCC"
28522 CC="$CC"
28523 acx_cv_header_stdint="$acx_cv_header_stdint"
28524 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28525 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28526 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28527 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28528 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28529 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28530 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28531 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28532 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28533 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28534 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28535 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28536 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28539 _ACEOF
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28543 # Handling of arguments.
28544 for ac_config_target in $ac_config_targets
28546 case $ac_config_target in
28547 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28548 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28549 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28550 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28551 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28552 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28553 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28555 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28556 esac
28557 done
28560 # If the user did not use the arguments to specify the items to instantiate,
28561 # then the envvar interface is used. Set only those that are not.
28562 # We use the long form for the default assignment because of an extremely
28563 # bizarre bug on SunOS 4.1.3.
28564 if $ac_need_defaults; then
28565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28570 # Have a temporary directory for convenience. Make it in the build tree
28571 # simply because there is no reason against having it here, and in addition,
28572 # creating and moving files from /tmp can sometimes cause problems.
28573 # Hook for its removal unless debugging.
28574 # Note that there is a small window in which the directory will not be cleaned:
28575 # after its creation but before its name has been assigned to `$tmp'.
28576 $debug ||
28578 tmp= ac_tmp=
28579 trap 'exit_status=$?
28580 : "${ac_tmp:=$tmp}"
28581 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28583 trap 'as_fn_exit 1' 1 2 13 15
28585 # Create a (secure) tmp directory for tmp files.
28588 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28589 test -d "$tmp"
28590 } ||
28592 tmp=./conf$$-$RANDOM
28593 (umask 077 && mkdir "$tmp")
28594 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28595 ac_tmp=$tmp
28597 # Set up the scripts for CONFIG_FILES section.
28598 # No need to generate them if there are no CONFIG_FILES.
28599 # This happens for instance with `./config.status config.h'.
28600 if test -n "$CONFIG_FILES"; then
28603 ac_cr=`echo X | tr X '\015'`
28604 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28605 # But we know of no other shell where ac_cr would be empty at this
28606 # point, so we can use a bashism as a fallback.
28607 if test "x$ac_cr" = x; then
28608 eval ac_cr=\$\'\\r\'
28610 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28611 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28612 ac_cs_awk_cr='\\r'
28613 else
28614 ac_cs_awk_cr=$ac_cr
28617 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28618 _ACEOF
28622 echo "cat >conf$$subs.awk <<_ACEOF" &&
28623 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28624 echo "_ACEOF"
28625 } >conf$$subs.sh ||
28626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28627 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28628 ac_delim='%!_!# '
28629 for ac_last_try in false false false false false :; do
28630 . ./conf$$subs.sh ||
28631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28633 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28634 if test $ac_delim_n = $ac_delim_num; then
28635 break
28636 elif $ac_last_try; then
28637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28638 else
28639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28641 done
28642 rm -f conf$$subs.sh
28644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28645 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28646 _ACEOF
28647 sed -n '
28649 s/^/S["/; s/!.*/"]=/
28652 s/^[^!]*!//
28653 :repl
28654 t repl
28655 s/'"$ac_delim"'$//
28656 t delim
28659 s/\(.\{148\}\)..*/\1/
28660 t more1
28661 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28664 b repl
28665 :more1
28666 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28669 s/.\{148\}//
28670 t nl
28671 :delim
28673 s/\(.\{148\}\)..*/\1/
28674 t more2
28675 s/["\\]/\\&/g; s/^/"/; s/$/"/
28678 :more2
28679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28682 s/.\{148\}//
28683 t delim
28684 ' <conf$$subs.awk | sed '
28685 /^[^""]/{
28687 s/\n//
28689 ' >>$CONFIG_STATUS || ac_write_fail=1
28690 rm -f conf$$subs.awk
28691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28692 _ACAWK
28693 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28694 for (key in S) S_is_set[key] = 1
28695 FS = "\a"
28699 line = $ 0
28700 nfields = split(line, field, "@")
28701 substed = 0
28702 len = length(field[1])
28703 for (i = 2; i < nfields; i++) {
28704 key = field[i]
28705 keylen = length(key)
28706 if (S_is_set[key]) {
28707 value = S[key]
28708 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28709 len += length(value) + length(field[++i])
28710 substed = 1
28711 } else
28712 len += 1 + keylen
28715 print line
28718 _ACAWK
28719 _ACEOF
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28722 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28723 else
28725 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28726 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28727 _ACEOF
28729 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28730 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28731 # trailing colons and then remove the whole line if VPATH becomes empty
28732 # (actually we leave an empty line to preserve line numbers).
28733 if test "x$srcdir" = x.; then
28734 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28736 s///
28737 s/^/:/
28738 s/[ ]*$/:/
28739 s/:\$(srcdir):/:/g
28740 s/:\${srcdir}:/:/g
28741 s/:@srcdir@:/:/g
28742 s/^:*//
28743 s/:*$//
28745 s/\(=[ ]*\).*/\1/
28747 s/\n//
28748 s/^[^=]*=[ ]*$//
28752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28753 fi # test -n "$CONFIG_FILES"
28755 # Set up the scripts for CONFIG_HEADERS section.
28756 # No need to generate them if there are no CONFIG_HEADERS.
28757 # This happens for instance with `./config.status Makefile'.
28758 if test -n "$CONFIG_HEADERS"; then
28759 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28760 BEGIN {
28761 _ACEOF
28763 # Transform confdefs.h into an awk script `defines.awk', embedded as
28764 # here-document in config.status, that substitutes the proper values into
28765 # config.h.in to produce config.h.
28767 # Create a delimiter string that does not exist in confdefs.h, to ease
28768 # handling of long lines.
28769 ac_delim='%!_!# '
28770 for ac_last_try in false false :; do
28771 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28772 if test -z "$ac_tt"; then
28773 break
28774 elif $ac_last_try; then
28775 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28776 else
28777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28779 done
28781 # For the awk script, D is an array of macro values keyed by name,
28782 # likewise P contains macro parameters if any. Preserve backslash
28783 # newline sequences.
28785 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28786 sed -n '
28787 s/.\{148\}/&'"$ac_delim"'/g
28788 t rset
28789 :rset
28790 s/^[ ]*#[ ]*define[ ][ ]*/ /
28791 t def
28793 :def
28794 s/\\$//
28795 t bsnl
28796 s/["\\]/\\&/g
28797 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28798 D["\1"]=" \3"/p
28799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28801 :bsnl
28802 s/["\\]/\\&/g
28803 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28804 D["\1"]=" \3\\\\\\n"\\/p
28805 t cont
28806 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28807 t cont
28809 :cont
28811 s/.\{148\}/&'"$ac_delim"'/g
28812 t clear
28813 :clear
28814 s/\\$//
28815 t bsnlc
28816 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28818 :bsnlc
28819 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28820 b cont
28821 ' <confdefs.h | sed '
28822 s/'"$ac_delim"'/"\\\
28823 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28826 for (key in D) D_is_set[key] = 1
28827 FS = "\a"
28829 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28830 line = \$ 0
28831 split(line, arg, " ")
28832 if (arg[1] == "#") {
28833 defundef = arg[2]
28834 mac1 = arg[3]
28835 } else {
28836 defundef = substr(arg[1], 2)
28837 mac1 = arg[2]
28839 split(mac1, mac2, "(") #)
28840 macro = mac2[1]
28841 prefix = substr(line, 1, index(line, defundef) - 1)
28842 if (D_is_set[macro]) {
28843 # Preserve the white space surrounding the "#".
28844 print prefix "define", macro P[macro] D[macro]
28845 next
28846 } else {
28847 # Replace #undef with comments. This is necessary, for example,
28848 # in the case of _POSIX_SOURCE, which is predefined and required
28849 # on some systems where configure will not decide to define it.
28850 if (defundef == "undef") {
28851 print "/*", prefix defundef, macro, "*/"
28852 next
28856 { print }
28857 _ACAWK
28858 _ACEOF
28859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28860 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28861 fi # test -n "$CONFIG_HEADERS"
28864 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28865 shift
28866 for ac_tag
28868 case $ac_tag in
28869 :[FHLC]) ac_mode=$ac_tag; continue;;
28870 esac
28871 case $ac_mode$ac_tag in
28872 :[FHL]*:*);;
28873 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28874 :[FH]-) ac_tag=-:-;;
28875 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28876 esac
28877 ac_save_IFS=$IFS
28878 IFS=:
28879 set x $ac_tag
28880 IFS=$ac_save_IFS
28881 shift
28882 ac_file=$1
28883 shift
28885 case $ac_mode in
28886 :L) ac_source=$1;;
28887 :[FH])
28888 ac_file_inputs=
28889 for ac_f
28891 case $ac_f in
28892 -) ac_f="$ac_tmp/stdin";;
28893 *) # Look for the file first in the build tree, then in the source tree
28894 # (if the path is not absolute). The absolute path cannot be DOS-style,
28895 # because $ac_f cannot contain `:'.
28896 test -f "$ac_f" ||
28897 case $ac_f in
28898 [\\/$]*) false;;
28899 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28900 esac ||
28901 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28902 esac
28903 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28904 as_fn_append ac_file_inputs " '$ac_f'"
28905 done
28907 # Let's still pretend it is `configure' which instantiates (i.e., don't
28908 # use $as_me), people would be surprised to read:
28909 # /* config.h. Generated by config.status. */
28910 configure_input='Generated from '`
28911 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28912 `' by configure.'
28913 if test x"$ac_file" != x-; then
28914 configure_input="$ac_file. $configure_input"
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28916 $as_echo "$as_me: creating $ac_file" >&6;}
28918 # Neutralize special characters interpreted by sed in replacement strings.
28919 case $configure_input in #(
28920 *\&* | *\|* | *\\* )
28921 ac_sed_conf_input=`$as_echo "$configure_input" |
28922 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28923 *) ac_sed_conf_input=$configure_input;;
28924 esac
28926 case $ac_tag in
28927 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28929 esac
28931 esac
28933 ac_dir=`$as_dirname -- "$ac_file" ||
28934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28935 X"$ac_file" : 'X\(//\)[^/]' \| \
28936 X"$ac_file" : 'X\(//\)$' \| \
28937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28938 $as_echo X"$ac_file" |
28939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28940 s//\1/
28943 /^X\(\/\/\)[^/].*/{
28944 s//\1/
28947 /^X\(\/\/\)$/{
28948 s//\1/
28951 /^X\(\/\).*/{
28952 s//\1/
28955 s/.*/./; q'`
28956 as_dir="$ac_dir"; as_fn_mkdir_p
28957 ac_builddir=.
28959 case "$ac_dir" in
28960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28963 # A ".." for each directory in $ac_dir_suffix.
28964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28965 case $ac_top_builddir_sub in
28966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28968 esac ;;
28969 esac
28970 ac_abs_top_builddir=$ac_pwd
28971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28972 # for backward compatibility:
28973 ac_top_builddir=$ac_top_build_prefix
28975 case $srcdir in
28976 .) # We are building in place.
28977 ac_srcdir=.
28978 ac_top_srcdir=$ac_top_builddir_sub
28979 ac_abs_top_srcdir=$ac_pwd ;;
28980 [\\/]* | ?:[\\/]* ) # Absolute name.
28981 ac_srcdir=$srcdir$ac_dir_suffix;
28982 ac_top_srcdir=$srcdir
28983 ac_abs_top_srcdir=$srcdir ;;
28984 *) # Relative name.
28985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28986 ac_top_srcdir=$ac_top_build_prefix$srcdir
28987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28988 esac
28989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28992 case $ac_mode in
28995 # CONFIG_FILE
28998 case $INSTALL in
28999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29001 esac
29002 ac_MKDIR_P=$MKDIR_P
29003 case $MKDIR_P in
29004 [\\/$]* | ?:[\\/]* ) ;;
29005 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29006 esac
29007 _ACEOF
29009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29010 # If the template does not know about datarootdir, expand it.
29011 # FIXME: This hack should be removed a few years after 2.60.
29012 ac_datarootdir_hack=; ac_datarootdir_seen=
29013 ac_sed_dataroot='
29014 /datarootdir/ {
29018 /@datadir@/p
29019 /@docdir@/p
29020 /@infodir@/p
29021 /@localedir@/p
29022 /@mandir@/p'
29023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29024 *datarootdir*) ac_datarootdir_seen=yes;;
29025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29027 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29028 _ACEOF
29029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29030 ac_datarootdir_hack='
29031 s&@datadir@&$datadir&g
29032 s&@docdir@&$docdir&g
29033 s&@infodir@&$infodir&g
29034 s&@localedir@&$localedir&g
29035 s&@mandir@&$mandir&g
29036 s&\\\${datarootdir}&$datarootdir&g' ;;
29037 esac
29038 _ACEOF
29040 # Neutralize VPATH when `$srcdir' = `.'.
29041 # Shell code in configure.ac might set extrasub.
29042 # FIXME: do we really want to maintain this feature?
29043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29044 ac_sed_extra="$ac_vpsub
29045 $extrasub
29046 _ACEOF
29047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29050 s|@configure_input@|$ac_sed_conf_input|;t t
29051 s&@top_builddir@&$ac_top_builddir_sub&;t t
29052 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29053 s&@srcdir@&$ac_srcdir&;t t
29054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29055 s&@top_srcdir@&$ac_top_srcdir&;t t
29056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29057 s&@builddir@&$ac_builddir&;t t
29058 s&@abs_builddir@&$ac_abs_builddir&;t t
29059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29060 s&@INSTALL@&$ac_INSTALL&;t t
29061 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29062 $ac_datarootdir_hack
29064 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29065 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29068 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29070 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29072 which seems to be undefined. Please make sure it is defined" >&5
29073 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29074 which seems to be undefined. Please make sure it is defined" >&2;}
29076 rm -f "$ac_tmp/stdin"
29077 case $ac_file in
29078 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29079 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29080 esac \
29081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29085 # CONFIG_HEADER
29087 if test x"$ac_file" != x-; then
29089 $as_echo "/* $configure_input */" \
29090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29091 } >"$ac_tmp/config.h" \
29092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29093 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29095 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29096 else
29097 rm -f "$ac_file"
29098 mv "$ac_tmp/config.h" "$ac_file" \
29099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29101 else
29102 $as_echo "/* $configure_input */" \
29103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29104 || as_fn_error $? "could not create -" "$LINENO" 5
29106 # Compute "$ac_file"'s index in $config_headers.
29107 _am_arg="$ac_file"
29108 _am_stamp_count=1
29109 for _am_header in $config_headers :; do
29110 case $_am_header in
29111 $_am_arg | $_am_arg:* )
29112 break ;;
29114 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29115 esac
29116 done
29117 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29118 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29119 X"$_am_arg" : 'X\(//\)[^/]' \| \
29120 X"$_am_arg" : 'X\(//\)$' \| \
29121 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29122 $as_echo X"$_am_arg" |
29123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29124 s//\1/
29127 /^X\(\/\/\)[^/].*/{
29128 s//\1/
29131 /^X\(\/\/\)$/{
29132 s//\1/
29135 /^X\(\/\).*/{
29136 s//\1/
29139 s/.*/./; q'`/stamp-h$_am_stamp_count
29142 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29143 $as_echo "$as_me: executing $ac_file commands" >&6;}
29145 esac
29148 case $ac_file$ac_mode in
29149 "default-1":C)
29150 # Only add multilib support code if we just rebuilt the top-level
29151 # Makefile.
29152 case " $CONFIG_FILES " in
29153 *" Makefile "*)
29154 ac_file=Makefile . ${multi_basedir}/config-ml.in
29156 esac ;;
29157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29158 # Older Autoconf quotes --file arguments for eval, but not when files
29159 # are listed without --file. Let's play safe and only enable the eval
29160 # if we detect the quoting.
29161 case $CONFIG_FILES in
29162 *\'*) eval set x "$CONFIG_FILES" ;;
29163 *) set x $CONFIG_FILES ;;
29164 esac
29165 shift
29166 for mf
29168 # Strip MF so we end up with the name of the file.
29169 mf=`echo "$mf" | sed -e 's/:.*$//'`
29170 # Check whether this is an Automake generated Makefile or not.
29171 # We used to match only the files named 'Makefile.in', but
29172 # some people rename them; so instead we look at the file content.
29173 # Grep'ing the first line is not enough: some people post-process
29174 # each Makefile.in and add a new line on top of each file to say so.
29175 # Grep'ing the whole file is not good either: AIX grep has a line
29176 # limit of 2048, but all sed's we know have understand at least 4000.
29177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29178 dirpart=`$as_dirname -- "$mf" ||
29179 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29180 X"$mf" : 'X\(//\)[^/]' \| \
29181 X"$mf" : 'X\(//\)$' \| \
29182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29183 $as_echo X"$mf" |
29184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29185 s//\1/
29188 /^X\(\/\/\)[^/].*/{
29189 s//\1/
29192 /^X\(\/\/\)$/{
29193 s//\1/
29196 /^X\(\/\).*/{
29197 s//\1/
29200 s/.*/./; q'`
29201 else
29202 continue
29204 # Extract the definition of DEPDIR, am__include, and am__quote
29205 # from the Makefile without running 'make'.
29206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29207 test -z "$DEPDIR" && continue
29208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29209 test -z "$am__include" && continue
29210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29211 # Find all dependency output files, they are included files with
29212 # $(DEPDIR) in their names. We invoke sed twice because it is the
29213 # simplest approach to changing $(DEPDIR) to its actual value in the
29214 # expansion.
29215 for file in `sed -n "
29216 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29217 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29218 # Make sure the directory exists.
29219 test -f "$dirpart/$file" && continue
29220 fdir=`$as_dirname -- "$file" ||
29221 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29222 X"$file" : 'X\(//\)[^/]' \| \
29223 X"$file" : 'X\(//\)$' \| \
29224 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29225 $as_echo X"$file" |
29226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29227 s//\1/
29230 /^X\(\/\/\)[^/].*/{
29231 s//\1/
29234 /^X\(\/\/\)$/{
29235 s//\1/
29238 /^X\(\/\).*/{
29239 s//\1/
29242 s/.*/./; q'`
29243 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29244 # echo "creating $dirpart/$file"
29245 echo '# dummy' > "$dirpart/$file"
29246 done
29247 done
29250 "libtool":C)
29252 # See if we are running on zsh, and set the options which allow our
29253 # commands through without removal of \ escapes.
29254 if test -n "${ZSH_VERSION+set}" ; then
29255 setopt NO_GLOB_SUBST
29258 cfgfile="${ofile}T"
29259 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29260 $RM "$cfgfile"
29262 cat <<_LT_EOF >> "$cfgfile"
29263 #! $SHELL
29265 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29266 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29268 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29270 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29271 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
29272 # Written by Gordon Matzigkeit, 1996
29274 # This file is part of GNU Libtool.
29276 # GNU Libtool is free software; you can redistribute it and/or
29277 # modify it under the terms of the GNU General Public License as
29278 # published by the Free Software Foundation; either version 2 of
29279 # the License, or (at your option) any later version.
29281 # As a special exception to the GNU General Public License,
29282 # if you distribute this file as part of a program or library that
29283 # is built using GNU Libtool, you may include this file under the
29284 # same distribution terms that you use for the rest of that program.
29286 # GNU Libtool is distributed in the hope that it will be useful,
29287 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29288 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29289 # GNU General Public License for more details.
29291 # You should have received a copy of the GNU General Public License
29292 # along with GNU Libtool; see the file COPYING. If not, a copy
29293 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29294 # obtained by writing to the Free Software Foundation, Inc.,
29295 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29298 # The names of the tagged configurations supported by this script.
29299 available_tags="FC "
29301 # ### BEGIN LIBTOOL CONFIG
29303 # A sed program that does not truncate output.
29304 SED=$lt_SED
29306 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29307 Xsed="\$SED -e 1s/^X//"
29309 # A grep program that handles long lines.
29310 GREP=$lt_GREP
29312 # An ERE matcher.
29313 EGREP=$lt_EGREP
29315 # A literal string matcher.
29316 FGREP=$lt_FGREP
29318 # Shell to use when invoking shell scripts.
29319 SHELL=$lt_SHELL
29321 # An echo program that protects backslashes.
29322 ECHO=$lt_ECHO
29324 # Which release of libtool.m4 was used?
29325 macro_version=$macro_version
29326 macro_revision=$macro_revision
29328 # Whether or not to build shared libraries.
29329 build_libtool_libs=$enable_shared
29331 # Whether or not to build static libraries.
29332 build_old_libs=$enable_static
29334 # What type of objects to build.
29335 pic_mode=$pic_mode
29337 # Whether or not to optimize for fast installation.
29338 fast_install=$enable_fast_install
29340 # The host system.
29341 host_alias=$host_alias
29342 host=$host
29343 host_os=$host_os
29345 # The build system.
29346 build_alias=$build_alias
29347 build=$build
29348 build_os=$build_os
29350 # A BSD- or MS-compatible name lister.
29351 NM=$lt_NM
29353 # Whether we need soft or hard links.
29354 LN_S=$lt_LN_S
29356 # What is the maximum length of a command?
29357 max_cmd_len=$max_cmd_len
29359 # Object file suffix (normally "o").
29360 objext=$ac_objext
29362 # Executable file suffix (normally "").
29363 exeext=$exeext
29365 # whether the shell understands "unset".
29366 lt_unset=$lt_unset
29368 # turn spaces into newlines.
29369 SP2NL=$lt_lt_SP2NL
29371 # turn newlines into spaces.
29372 NL2SP=$lt_lt_NL2SP
29374 # An object symbol dumper.
29375 OBJDUMP=$lt_OBJDUMP
29377 # Method to check whether dependent libraries are shared objects.
29378 deplibs_check_method=$lt_deplibs_check_method
29380 # Command to use when deplibs_check_method == "file_magic".
29381 file_magic_cmd=$lt_file_magic_cmd
29383 # The archiver.
29384 AR=$lt_AR
29385 AR_FLAGS=$lt_AR_FLAGS
29387 # A symbol stripping program.
29388 STRIP=$lt_STRIP
29390 # Commands used to install an old-style archive.
29391 RANLIB=$lt_RANLIB
29392 old_postinstall_cmds=$lt_old_postinstall_cmds
29393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29395 # Whether to use a lock for old archive extraction.
29396 lock_old_archive_extraction=$lock_old_archive_extraction
29398 # A C compiler.
29399 LTCC=$lt_CC
29401 # LTCC compiler flags.
29402 LTCFLAGS=$lt_CFLAGS
29404 # Take the output of nm and produce a listing of raw symbols and C names.
29405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29407 # Transform the output of nm in a proper C declaration.
29408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29410 # Transform the output of nm in a C name address pair.
29411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29413 # Transform the output of nm in a C name address pair when lib prefix is needed.
29414 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29416 # The name of the directory that contains temporary libtool files.
29417 objdir=$objdir
29419 # Used to examine libraries when file_magic_cmd begins with "file".
29420 MAGIC_CMD=$MAGIC_CMD
29422 # Must we lock files when doing compilation?
29423 need_locks=$lt_need_locks
29425 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29426 DSYMUTIL=$lt_DSYMUTIL
29428 # Tool to change global to local symbols on Mac OS X.
29429 NMEDIT=$lt_NMEDIT
29431 # Tool to manipulate fat objects and archives on Mac OS X.
29432 LIPO=$lt_LIPO
29434 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29435 OTOOL=$lt_OTOOL
29437 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29438 OTOOL64=$lt_OTOOL64
29440 # Old archive suffix (normally "a").
29441 libext=$libext
29443 # Shared library suffix (normally ".so").
29444 shrext_cmds=$lt_shrext_cmds
29446 # The commands to extract the exported symbol list from a shared archive.
29447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29449 # Variables whose values should be saved in libtool wrapper scripts and
29450 # restored at link time.
29451 variables_saved_for_relink=$lt_variables_saved_for_relink
29453 # Do we need the "lib" prefix for modules?
29454 need_lib_prefix=$need_lib_prefix
29456 # Do we need a version for libraries?
29457 need_version=$need_version
29459 # Library versioning type.
29460 version_type=$version_type
29462 # Shared library runtime path variable.
29463 runpath_var=$runpath_var
29465 # Shared library path variable.
29466 shlibpath_var=$shlibpath_var
29468 # Is shlibpath searched before the hard-coded library search path?
29469 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29471 # Format of library name prefix.
29472 libname_spec=$lt_libname_spec
29474 # List of archive names. First name is the real one, the rest are links.
29475 # The last name is the one that the linker finds with -lNAME
29476 library_names_spec=$lt_library_names_spec
29478 # The coded name of the library, if different from the real name.
29479 soname_spec=$lt_soname_spec
29481 # Permission mode override for installation of shared libraries.
29482 install_override_mode=$lt_install_override_mode
29484 # Command to use after installation of a shared archive.
29485 postinstall_cmds=$lt_postinstall_cmds
29487 # Command to use after uninstallation of a shared archive.
29488 postuninstall_cmds=$lt_postuninstall_cmds
29490 # Commands used to finish a libtool library installation in a directory.
29491 finish_cmds=$lt_finish_cmds
29493 # As "finish_cmds", except a single script fragment to be evaled but
29494 # not shown.
29495 finish_eval=$lt_finish_eval
29497 # Whether we should hardcode library paths into libraries.
29498 hardcode_into_libs=$hardcode_into_libs
29500 # Compile-time system search path for libraries.
29501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29503 # Run-time system search path for libraries.
29504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29506 # Whether dlopen is supported.
29507 dlopen_support=$enable_dlopen
29509 # Whether dlopen of programs is supported.
29510 dlopen_self=$enable_dlopen_self
29512 # Whether dlopen of statically linked programs is supported.
29513 dlopen_self_static=$enable_dlopen_self_static
29515 # Commands to strip libraries.
29516 old_striplib=$lt_old_striplib
29517 striplib=$lt_striplib
29520 # The linker used to build libraries.
29521 LD=$lt_LD
29523 # How to create reloadable object files.
29524 reload_flag=$lt_reload_flag
29525 reload_cmds=$lt_reload_cmds
29527 # Commands used to build an old-style archive.
29528 old_archive_cmds=$lt_old_archive_cmds
29530 # A language specific compiler.
29531 CC=$lt_compiler
29533 # Is the compiler the GNU compiler?
29534 with_gcc=$GCC
29536 # Compiler flag to turn off builtin functions.
29537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29539 # How to pass a linker flag through the compiler.
29540 wl=$lt_lt_prog_compiler_wl
29542 # Additional compiler flags for building library objects.
29543 pic_flag=$lt_lt_prog_compiler_pic
29545 # Compiler flag to prevent dynamic linking.
29546 link_static_flag=$lt_lt_prog_compiler_static
29548 # Does compiler simultaneously support -c and -o options?
29549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29551 # Whether or not to add -lc for building shared libraries.
29552 build_libtool_need_lc=$archive_cmds_need_lc
29554 # Whether or not to disallow shared libs when runtime libs are static.
29555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29557 # Compiler flag to allow reflexive dlopens.
29558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29560 # Compiler flag to generate shared objects directly from archives.
29561 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29563 # Whether the compiler copes with passing no objects directly.
29564 compiler_needs_object=$lt_compiler_needs_object
29566 # Create an old-style archive from a shared archive.
29567 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29569 # Create a temporary old-style archive to link instead of a shared archive.
29570 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29572 # Commands used to build a shared archive.
29573 archive_cmds=$lt_archive_cmds
29574 archive_expsym_cmds=$lt_archive_expsym_cmds
29576 # Commands used to build a loadable module if different from building
29577 # a shared archive.
29578 module_cmds=$lt_module_cmds
29579 module_expsym_cmds=$lt_module_expsym_cmds
29581 # Whether we are building with GNU ld or not.
29582 with_gnu_ld=$lt_with_gnu_ld
29584 # Flag that allows shared libraries with undefined symbols to be built.
29585 allow_undefined_flag=$lt_allow_undefined_flag
29587 # Flag that enforces no undefined symbols.
29588 no_undefined_flag=$lt_no_undefined_flag
29590 # Flag to hardcode \$libdir into a binary during linking.
29591 # This must work even if \$libdir does not exist
29592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29594 # If ld is used when linking, flag to hardcode \$libdir into a binary
29595 # during linking. This must work even if \$libdir does not exist.
29596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29598 # Whether we need a single "-rpath" flag with a separated argument.
29599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29602 # DIR into the resulting binary.
29603 hardcode_direct=$hardcode_direct
29605 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29606 # DIR into the resulting binary and the resulting library dependency is
29607 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29608 # library is relocated.
29609 hardcode_direct_absolute=$hardcode_direct_absolute
29611 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29612 # into the resulting binary.
29613 hardcode_minus_L=$hardcode_minus_L
29615 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29616 # into the resulting binary.
29617 hardcode_shlibpath_var=$hardcode_shlibpath_var
29619 # Set to "yes" if building a shared library automatically hardcodes DIR
29620 # into the library and all subsequent libraries and executables linked
29621 # against it.
29622 hardcode_automatic=$hardcode_automatic
29624 # Set to yes if linker adds runtime paths of dependent libraries
29625 # to runtime path list.
29626 inherit_rpath=$inherit_rpath
29628 # Whether libtool must link a program against all its dependency libraries.
29629 link_all_deplibs=$link_all_deplibs
29631 # Fix the shell variable \$srcfile for the compiler.
29632 fix_srcfile_path=$lt_fix_srcfile_path
29634 # Set to "yes" if exported symbols are required.
29635 always_export_symbols=$always_export_symbols
29637 # The commands to list exported symbols.
29638 export_symbols_cmds=$lt_export_symbols_cmds
29640 # Symbols that should not be listed in the preloaded symbols.
29641 exclude_expsyms=$lt_exclude_expsyms
29643 # Symbols that must always be exported.
29644 include_expsyms=$lt_include_expsyms
29646 # Commands necessary for linking programs (against libraries) with templates.
29647 prelink_cmds=$lt_prelink_cmds
29649 # Specify filename containing input files.
29650 file_list_spec=$lt_file_list_spec
29652 # How to hardcode a shared library path into an executable.
29653 hardcode_action=$hardcode_action
29655 # The directories searched by this compiler when creating a shared library.
29656 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29658 # Dependencies to place before and after the objects being linked to
29659 # create a shared library.
29660 predep_objects=$lt_predep_objects
29661 postdep_objects=$lt_postdep_objects
29662 predeps=$lt_predeps
29663 postdeps=$lt_postdeps
29665 # The library search path used internally by the compiler when linking
29666 # a shared library.
29667 compiler_lib_search_path=$lt_compiler_lib_search_path
29669 # ### END LIBTOOL CONFIG
29671 _LT_EOF
29673 case $host_os in
29674 aix3*)
29675 cat <<\_LT_EOF >> "$cfgfile"
29676 # AIX sometimes has problems with the GCC collect2 program. For some
29677 # reason, if we set the COLLECT_NAMES environment variable, the problems
29678 # vanish in a puff of smoke.
29679 if test "X${COLLECT_NAMES+set}" != Xset; then
29680 COLLECT_NAMES=
29681 export COLLECT_NAMES
29683 _LT_EOF
29685 esac
29688 ltmain="$ac_aux_dir/ltmain.sh"
29691 # We use sed instead of cat because bash on DJGPP gets confused if
29692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29693 # text mode, it properly converts lines to CR/LF. This bash problem
29694 # is reportedly fixed, but why not run on old versions too?
29695 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29696 || (rm -f "$cfgfile"; exit 1)
29698 case $xsi_shell in
29699 yes)
29700 cat << \_LT_EOF >> "$cfgfile"
29702 # func_dirname file append nondir_replacement
29703 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29704 # otherwise set result to NONDIR_REPLACEMENT.
29705 func_dirname ()
29707 case ${1} in
29708 */*) func_dirname_result="${1%/*}${2}" ;;
29709 * ) func_dirname_result="${3}" ;;
29710 esac
29713 # func_basename file
29714 func_basename ()
29716 func_basename_result="${1##*/}"
29719 # func_dirname_and_basename file append nondir_replacement
29720 # perform func_basename and func_dirname in a single function
29721 # call:
29722 # dirname: Compute the dirname of FILE. If nonempty,
29723 # add APPEND to the result, otherwise set result
29724 # to NONDIR_REPLACEMENT.
29725 # value returned in "$func_dirname_result"
29726 # basename: Compute filename of FILE.
29727 # value retuned in "$func_basename_result"
29728 # Implementation must be kept synchronized with func_dirname
29729 # and func_basename. For efficiency, we do not delegate to
29730 # those functions but instead duplicate the functionality here.
29731 func_dirname_and_basename ()
29733 case ${1} in
29734 */*) func_dirname_result="${1%/*}${2}" ;;
29735 * ) func_dirname_result="${3}" ;;
29736 esac
29737 func_basename_result="${1##*/}"
29740 # func_stripname prefix suffix name
29741 # strip PREFIX and SUFFIX off of NAME.
29742 # PREFIX and SUFFIX must not contain globbing or regex special
29743 # characters, hashes, percent signs, but SUFFIX may contain a leading
29744 # dot (in which case that matches only a dot).
29745 func_stripname ()
29747 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29748 # positional parameters, so assign one to ordinary parameter first.
29749 func_stripname_result=${3}
29750 func_stripname_result=${func_stripname_result#"${1}"}
29751 func_stripname_result=${func_stripname_result%"${2}"}
29754 # func_opt_split
29755 func_opt_split ()
29757 func_opt_split_opt=${1%%=*}
29758 func_opt_split_arg=${1#*=}
29761 # func_lo2o object
29762 func_lo2o ()
29764 case ${1} in
29765 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29766 *) func_lo2o_result=${1} ;;
29767 esac
29770 # func_xform libobj-or-source
29771 func_xform ()
29773 func_xform_result=${1%.*}.lo
29776 # func_arith arithmetic-term...
29777 func_arith ()
29779 func_arith_result=$(( $* ))
29782 # func_len string
29783 # STRING may not start with a hyphen.
29784 func_len ()
29786 func_len_result=${#1}
29789 _LT_EOF
29791 *) # Bourne compatible functions.
29792 cat << \_LT_EOF >> "$cfgfile"
29794 # func_dirname file append nondir_replacement
29795 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29796 # otherwise set result to NONDIR_REPLACEMENT.
29797 func_dirname ()
29799 # Extract subdirectory from the argument.
29800 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29801 if test "X$func_dirname_result" = "X${1}"; then
29802 func_dirname_result="${3}"
29803 else
29804 func_dirname_result="$func_dirname_result${2}"
29808 # func_basename file
29809 func_basename ()
29811 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29815 # func_stripname prefix suffix name
29816 # strip PREFIX and SUFFIX off of NAME.
29817 # PREFIX and SUFFIX must not contain globbing or regex special
29818 # characters, hashes, percent signs, but SUFFIX may contain a leading
29819 # dot (in which case that matches only a dot).
29820 # func_strip_suffix prefix name
29821 func_stripname ()
29823 case ${2} in
29824 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29825 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29826 esac
29829 # sed scripts:
29830 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29831 my_sed_long_arg='1s/^-[^=]*=//'
29833 # func_opt_split
29834 func_opt_split ()
29836 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29837 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29840 # func_lo2o object
29841 func_lo2o ()
29843 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29846 # func_xform libobj-or-source
29847 func_xform ()
29849 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29852 # func_arith arithmetic-term...
29853 func_arith ()
29855 func_arith_result=`expr "$@"`
29858 # func_len string
29859 # STRING may not start with a hyphen.
29860 func_len ()
29862 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29865 _LT_EOF
29866 esac
29868 case $lt_shell_append in
29869 yes)
29870 cat << \_LT_EOF >> "$cfgfile"
29872 # func_append var value
29873 # Append VALUE to the end of shell variable VAR.
29874 func_append ()
29876 eval "$1+=\$2"
29878 _LT_EOF
29881 cat << \_LT_EOF >> "$cfgfile"
29883 # func_append var value
29884 # Append VALUE to the end of shell variable VAR.
29885 func_append ()
29887 eval "$1=\$$1\$2"
29890 _LT_EOF
29892 esac
29895 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29896 || (rm -f "$cfgfile"; exit 1)
29898 mv -f "$cfgfile" "$ofile" ||
29899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29900 chmod +x "$ofile"
29903 cat <<_LT_EOF >> "$ofile"
29905 # ### BEGIN LIBTOOL TAG CONFIG: FC
29907 # The linker used to build libraries.
29908 LD=$lt_LD_FC
29910 # How to create reloadable object files.
29911 reload_flag=$lt_reload_flag_FC
29912 reload_cmds=$lt_reload_cmds_FC
29914 # Commands used to build an old-style archive.
29915 old_archive_cmds=$lt_old_archive_cmds_FC
29917 # A language specific compiler.
29918 CC=$lt_compiler_FC
29920 # Is the compiler the GNU compiler?
29921 with_gcc=$GCC_FC
29923 # Compiler flag to turn off builtin functions.
29924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29926 # How to pass a linker flag through the compiler.
29927 wl=$lt_lt_prog_compiler_wl_FC
29929 # Additional compiler flags for building library objects.
29930 pic_flag=$lt_lt_prog_compiler_pic_FC
29932 # Compiler flag to prevent dynamic linking.
29933 link_static_flag=$lt_lt_prog_compiler_static_FC
29935 # Does compiler simultaneously support -c and -o options?
29936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29938 # Whether or not to add -lc for building shared libraries.
29939 build_libtool_need_lc=$archive_cmds_need_lc_FC
29941 # Whether or not to disallow shared libs when runtime libs are static.
29942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29944 # Compiler flag to allow reflexive dlopens.
29945 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29947 # Compiler flag to generate shared objects directly from archives.
29948 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29950 # Whether the compiler copes with passing no objects directly.
29951 compiler_needs_object=$lt_compiler_needs_object_FC
29953 # Create an old-style archive from a shared archive.
29954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29956 # Create a temporary old-style archive to link instead of a shared archive.
29957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29959 # Commands used to build a shared archive.
29960 archive_cmds=$lt_archive_cmds_FC
29961 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29963 # Commands used to build a loadable module if different from building
29964 # a shared archive.
29965 module_cmds=$lt_module_cmds_FC
29966 module_expsym_cmds=$lt_module_expsym_cmds_FC
29968 # Whether we are building with GNU ld or not.
29969 with_gnu_ld=$lt_with_gnu_ld_FC
29971 # Flag that allows shared libraries with undefined symbols to be built.
29972 allow_undefined_flag=$lt_allow_undefined_flag_FC
29974 # Flag that enforces no undefined symbols.
29975 no_undefined_flag=$lt_no_undefined_flag_FC
29977 # Flag to hardcode \$libdir into a binary during linking.
29978 # This must work even if \$libdir does not exist
29979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29981 # If ld is used when linking, flag to hardcode \$libdir into a binary
29982 # during linking. This must work even if \$libdir does not exist.
29983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29985 # Whether we need a single "-rpath" flag with a separated argument.
29986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29989 # DIR into the resulting binary.
29990 hardcode_direct=$hardcode_direct_FC
29992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29993 # DIR into the resulting binary and the resulting library dependency is
29994 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29995 # library is relocated.
29996 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29998 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29999 # into the resulting binary.
30000 hardcode_minus_L=$hardcode_minus_L_FC
30002 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30003 # into the resulting binary.
30004 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
30006 # Set to "yes" if building a shared library automatically hardcodes DIR
30007 # into the library and all subsequent libraries and executables linked
30008 # against it.
30009 hardcode_automatic=$hardcode_automatic_FC
30011 # Set to yes if linker adds runtime paths of dependent libraries
30012 # to runtime path list.
30013 inherit_rpath=$inherit_rpath_FC
30015 # Whether libtool must link a program against all its dependency libraries.
30016 link_all_deplibs=$link_all_deplibs_FC
30018 # Fix the shell variable \$srcfile for the compiler.
30019 fix_srcfile_path=$lt_fix_srcfile_path_FC
30021 # Set to "yes" if exported symbols are required.
30022 always_export_symbols=$always_export_symbols_FC
30024 # The commands to list exported symbols.
30025 export_symbols_cmds=$lt_export_symbols_cmds_FC
30027 # Symbols that should not be listed in the preloaded symbols.
30028 exclude_expsyms=$lt_exclude_expsyms_FC
30030 # Symbols that must always be exported.
30031 include_expsyms=$lt_include_expsyms_FC
30033 # Commands necessary for linking programs (against libraries) with templates.
30034 prelink_cmds=$lt_prelink_cmds_FC
30036 # Specify filename containing input files.
30037 file_list_spec=$lt_file_list_spec_FC
30039 # How to hardcode a shared library path into an executable.
30040 hardcode_action=$hardcode_action_FC
30042 # The directories searched by this compiler when creating a shared library.
30043 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
30045 # Dependencies to place before and after the objects being linked to
30046 # create a shared library.
30047 predep_objects=$lt_predep_objects_FC
30048 postdep_objects=$lt_postdep_objects_FC
30049 predeps=$lt_predeps_FC
30050 postdeps=$lt_postdeps_FC
30052 # The library search path used internally by the compiler when linking
30053 # a shared library.
30054 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
30056 # ### END LIBTOOL TAG CONFIG: FC
30057 _LT_EOF
30060 "gstdint.h":C)
30061 if test "$GCC" = yes; then
30062 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30063 else
30064 echo "/* generated for $CC */" > tmp-stdint.h
30067 sed 's/^ *//' >> tmp-stdint.h <<EOF
30069 #ifndef GCC_GENERATED_STDINT_H
30070 #define GCC_GENERATED_STDINT_H 1
30072 #include <sys/types.h>
30075 if test "$acx_cv_header_stdint" != stdint.h; then
30076 echo "#include <stddef.h>" >> tmp-stdint.h
30078 if test "$acx_cv_header_stdint" != stddef.h; then
30079 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30082 sed 's/^ *//' >> tmp-stdint.h <<EOF
30083 /* glibc uses these symbols as guards to prevent redefinitions. */
30084 #ifdef __int8_t_defined
30085 #define _INT8_T
30086 #define _INT16_T
30087 #define _INT32_T
30088 #endif
30089 #ifdef __uint32_t_defined
30090 #define _UINT32_T
30091 #endif
30095 # ----------------- done header, emit basic int types -------------
30096 if test "$acx_cv_header_stdint" = stddef.h; then
30097 sed 's/^ *//' >> tmp-stdint.h <<EOF
30099 #ifndef _UINT8_T
30100 #define _UINT8_T
30101 #ifndef __uint8_t_defined
30102 #define __uint8_t_defined
30103 #ifndef uint8_t
30104 typedef unsigned $acx_cv_type_int8_t uint8_t;
30105 #endif
30106 #endif
30107 #endif
30109 #ifndef _UINT16_T
30110 #define _UINT16_T
30111 #ifndef __uint16_t_defined
30112 #define __uint16_t_defined
30113 #ifndef uint16_t
30114 typedef unsigned $acx_cv_type_int16_t uint16_t;
30115 #endif
30116 #endif
30117 #endif
30119 #ifndef _UINT32_T
30120 #define _UINT32_T
30121 #ifndef __uint32_t_defined
30122 #define __uint32_t_defined
30123 #ifndef uint32_t
30124 typedef unsigned $acx_cv_type_int32_t uint32_t;
30125 #endif
30126 #endif
30127 #endif
30129 #ifndef _INT8_T
30130 #define _INT8_T
30131 #ifndef __int8_t_defined
30132 #define __int8_t_defined
30133 #ifndef int8_t
30134 typedef $acx_cv_type_int8_t int8_t;
30135 #endif
30136 #endif
30137 #endif
30139 #ifndef _INT16_T
30140 #define _INT16_T
30141 #ifndef __int16_t_defined
30142 #define __int16_t_defined
30143 #ifndef int16_t
30144 typedef $acx_cv_type_int16_t int16_t;
30145 #endif
30146 #endif
30147 #endif
30149 #ifndef _INT32_T
30150 #define _INT32_T
30151 #ifndef __int32_t_defined
30152 #define __int32_t_defined
30153 #ifndef int32_t
30154 typedef $acx_cv_type_int32_t int32_t;
30155 #endif
30156 #endif
30157 #endif
30159 elif test "$ac_cv_type_u_int32_t" = yes; then
30160 sed 's/^ *//' >> tmp-stdint.h <<EOF
30162 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30163 #ifndef _INT8_T
30164 #define _INT8_T
30165 #endif
30166 #ifndef _INT16_T
30167 #define _INT16_T
30168 #endif
30169 #ifndef _INT32_T
30170 #define _INT32_T
30171 #endif
30173 #ifndef _UINT8_T
30174 #define _UINT8_T
30175 #ifndef __uint8_t_defined
30176 #define __uint8_t_defined
30177 #ifndef uint8_t
30178 typedef u_int8_t uint8_t;
30179 #endif
30180 #endif
30181 #endif
30183 #ifndef _UINT16_T
30184 #define _UINT16_T
30185 #ifndef __uint16_t_defined
30186 #define __uint16_t_defined
30187 #ifndef uint16_t
30188 typedef u_int16_t uint16_t;
30189 #endif
30190 #endif
30191 #endif
30193 #ifndef _UINT32_T
30194 #define _UINT32_T
30195 #ifndef __uint32_t_defined
30196 #define __uint32_t_defined
30197 #ifndef uint32_t
30198 typedef u_int32_t uint32_t;
30199 #endif
30200 #endif
30201 #endif
30203 else
30204 sed 's/^ *//' >> tmp-stdint.h <<EOF
30206 /* Some systems have guard macros to prevent redefinitions, define them. */
30207 #ifndef _INT8_T
30208 #define _INT8_T
30209 #endif
30210 #ifndef _INT16_T
30211 #define _INT16_T
30212 #endif
30213 #ifndef _INT32_T
30214 #define _INT32_T
30215 #endif
30216 #ifndef _UINT8_T
30217 #define _UINT8_T
30218 #endif
30219 #ifndef _UINT16_T
30220 #define _UINT16_T
30221 #endif
30222 #ifndef _UINT32_T
30223 #define _UINT32_T
30224 #endif
30228 # ------------- done basic int types, emit int64_t types ------------
30229 if test "$ac_cv_type_uint64_t" = yes; then
30230 sed 's/^ *//' >> tmp-stdint.h <<EOF
30232 /* system headers have good uint64_t and int64_t */
30233 #ifndef _INT64_T
30234 #define _INT64_T
30235 #endif
30236 #ifndef _UINT64_T
30237 #define _UINT64_T
30238 #endif
30240 elif test "$ac_cv_type_u_int64_t" = yes; then
30241 sed 's/^ *//' >> tmp-stdint.h <<EOF
30243 /* system headers have an u_int64_t (and int64_t) */
30244 #ifndef _INT64_T
30245 #define _INT64_T
30246 #endif
30247 #ifndef _UINT64_T
30248 #define _UINT64_T
30249 #ifndef __uint64_t_defined
30250 #define __uint64_t_defined
30251 #ifndef uint64_t
30252 typedef u_int64_t uint64_t;
30253 #endif
30254 #endif
30255 #endif
30257 elif test -n "$acx_cv_type_int64_t"; then
30258 sed 's/^ *//' >> tmp-stdint.h <<EOF
30260 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30261 #ifndef _INT64_T
30262 #define _INT64_T
30263 #ifndef int64_t
30264 typedef $acx_cv_type_int64_t int64_t;
30265 #endif
30266 #endif
30267 #ifndef _UINT64_T
30268 #define _UINT64_T
30269 #ifndef __uint64_t_defined
30270 #define __uint64_t_defined
30271 #ifndef uint64_t
30272 typedef unsigned $acx_cv_type_int64_t uint64_t;
30273 #endif
30274 #endif
30275 #endif
30277 else
30278 sed 's/^ *//' >> tmp-stdint.h <<EOF
30280 /* some common heuristics for int64_t, using compiler-specific tests */
30281 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30282 #ifndef _INT64_T
30283 #define _INT64_T
30284 #ifndef __int64_t_defined
30285 #ifndef int64_t
30286 typedef long long int64_t;
30287 #endif
30288 #endif
30289 #endif
30290 #ifndef _UINT64_T
30291 #define _UINT64_T
30292 #ifndef uint64_t
30293 typedef unsigned long long uint64_t;
30294 #endif
30295 #endif
30297 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30298 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30299 does not implement __extension__. But that compiler doesn't define
30300 __GNUC_MINOR__. */
30301 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30302 # define __extension__
30303 # endif
30305 # ifndef _INT64_T
30306 # define _INT64_T
30307 # ifndef int64_t
30308 __extension__ typedef long long int64_t;
30309 # endif
30310 # endif
30311 # ifndef _UINT64_T
30312 # define _UINT64_T
30313 # ifndef uint64_t
30314 __extension__ typedef unsigned long long uint64_t;
30315 # endif
30316 # endif
30318 #elif !defined __STRICT_ANSI__
30319 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30321 # ifndef _INT64_T
30322 # define _INT64_T
30323 # ifndef int64_t
30324 typedef __int64 int64_t;
30325 # endif
30326 # endif
30327 # ifndef _UINT64_T
30328 # define _UINT64_T
30329 # ifndef uint64_t
30330 typedef unsigned __int64 uint64_t;
30331 # endif
30332 # endif
30333 # endif /* compiler */
30335 #endif /* ANSI version */
30339 # ------------- done int64_t types, emit intptr types ------------
30340 if test "$ac_cv_type_uintptr_t" != yes; then
30341 sed 's/^ *//' >> tmp-stdint.h <<EOF
30343 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30344 #ifndef __uintptr_t_defined
30345 #ifndef uintptr_t
30346 typedef u$acx_cv_type_intptr_t uintptr_t;
30347 #endif
30348 #endif
30349 #ifndef __intptr_t_defined
30350 #ifndef intptr_t
30351 typedef $acx_cv_type_intptr_t intptr_t;
30352 #endif
30353 #endif
30357 # ------------- done intptr types, emit int_least types ------------
30358 if test "$ac_cv_type_int_least32_t" != yes; then
30359 sed 's/^ *//' >> tmp-stdint.h <<EOF
30361 /* Define int_least types */
30362 typedef int8_t int_least8_t;
30363 typedef int16_t int_least16_t;
30364 typedef int32_t int_least32_t;
30365 #ifdef _INT64_T
30366 typedef int64_t int_least64_t;
30367 #endif
30369 typedef uint8_t uint_least8_t;
30370 typedef uint16_t uint_least16_t;
30371 typedef uint32_t uint_least32_t;
30372 #ifdef _UINT64_T
30373 typedef uint64_t uint_least64_t;
30374 #endif
30378 # ------------- done intptr types, emit int_fast types ------------
30379 if test "$ac_cv_type_int_fast32_t" != yes; then
30380 sed 's/^ *//' >> tmp-stdint.h <<EOF
30382 /* Define int_fast types. short is often slow */
30383 typedef int8_t int_fast8_t;
30384 typedef int int_fast16_t;
30385 typedef int32_t int_fast32_t;
30386 #ifdef _INT64_T
30387 typedef int64_t int_fast64_t;
30388 #endif
30390 typedef uint8_t uint_fast8_t;
30391 typedef unsigned int uint_fast16_t;
30392 typedef uint32_t uint_fast32_t;
30393 #ifdef _UINT64_T
30394 typedef uint64_t uint_fast64_t;
30395 #endif
30399 if test "$ac_cv_type_uintmax_t" != yes; then
30400 sed 's/^ *//' >> tmp-stdint.h <<EOF
30402 /* Define intmax based on what we found */
30403 #ifndef intmax_t
30404 #ifdef _INT64_T
30405 typedef int64_t intmax_t;
30406 #else
30407 typedef long intmax_t;
30408 #endif
30409 #endif
30410 #ifndef uintmax_t
30411 #ifdef _UINT64_T
30412 typedef uint64_t uintmax_t;
30413 #else
30414 typedef unsigned long uintmax_t;
30415 #endif
30416 #endif
30420 sed 's/^ *//' >> tmp-stdint.h <<EOF
30422 #endif /* GCC_GENERATED_STDINT_H */
30425 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30426 rm -f tmp-stdint.h
30427 else
30428 mv -f tmp-stdint.h gstdint.h
30433 esac
30434 done # for ac_tag
30437 as_fn_exit 0
30438 _ACEOF
30439 ac_clean_files=$ac_clean_files_save
30441 test $ac_write_fail = 0 ||
30442 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30445 # configure is writing to config.log, and then calls config.status.
30446 # config.status does its own redirection, appending to config.log.
30447 # Unfortunately, on DOS this fails, as config.log is still kept open
30448 # by configure, so config.status won't be able to write to it; its
30449 # output is simply discarded. So we exec the FD to /dev/null,
30450 # effectively closing config.log, so it can be properly (re)opened and
30451 # appended to by config.status. When coming back to configure, we
30452 # need to make the FD available again.
30453 if test "$no_create" != yes; then
30454 ac_cs_success=:
30455 ac_config_status_args=
30456 test "$silent" = yes &&
30457 ac_config_status_args="$ac_config_status_args --quiet"
30458 exec 5>/dev/null
30459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30460 exec 5>>config.log
30461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30462 # would make configure fail if this is the last instruction.
30463 $ac_cs_success || as_fn_exit 1
30465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}