Patch ieee128-lib-patch007b
[official-gcc.git] / libgfortran / configure
blobb4cf854ddb399ae206b96a5f0924f19d935ad7c4
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 IEEE_FLAGS
643 IEEE_SUPPORT
644 IEEE_SUPPORT_FALSE
645 IEEE_SUPPORT_TRUE
646 FPU_HOST_HEADER
647 LIBGFOR_BUILD_QUAD_FALSE
648 LIBGFOR_BUILD_QUAD_TRUE
649 LIBQUADINCLUDE
650 LIBQUADLIB_DEP
651 LIBQUADLIB
652 LIBQUADSPEC
653 extra_ldflags_libgfortran
654 ac_ct_FC
655 FCFLAGS
657 enable_static
658 enable_shared
659 lt_host_flags
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 OBJDUMP
666 LN_S
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 RANLIB
674 HAVE_HWCAP_FALSE
675 HAVE_HWCAP_TRUE
676 HWCAP_LDFLAGS
678 FGREP
680 SECTION_FLAGS
681 LIBGFOR_MINIMAL_FALSE
682 LIBGFOR_MINIMAL_TRUE
683 LIBGFOR_USE_SYMVER_SUN_FALSE
684 LIBGFOR_USE_SYMVER_SUN_TRUE
685 LIBGFOR_USE_SYMVER_GNU_FALSE
686 LIBGFOR_USE_SYMVER_GNU_TRUE
687 LIBGFOR_USE_SYMVER_FALSE
688 LIBGFOR_USE_SYMVER_TRUE
689 AM_CFLAGS
690 AM_FCFLAGS
691 toolexeclibdir
692 toolexecdir
693 EGREP
694 GREP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
713 multi_basedir
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_noncanonical
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 onestep
754 onestep_FALSE
755 onestep_TRUE
756 target_subdir
757 host_subdir
758 build_subdir
759 build_libsubdir
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 enable_version_specific_runtime_libs
807 enable_intermodule
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_multilib
811 enable_dependency_tracking
812 with_toolexeclibdir
813 enable_cet
814 enable_symvers
815 with_gnu_ld
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 enable_libtool_lock
821 enable_largefile
822 enable_libquadmath_support
823 with_gcc_major_version_only
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
835 FCFLAGS'
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
886 ac_prev=
887 ac_dashdash=
888 for ac_option
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 esac
1244 done
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1448 esac
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-version-specific-runtime-libs
1456 specify that runtime libraries should be installed
1457 in a compiler-specific directory
1458 --enable-intermodule build the library in one step
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-multilib build many library versions (default)
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1469 --enable-cet enable Intel CET in target libraries [default=no]
1470 --disable-symvers disable symbol versioning for libgfortran
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --disable-largefile omit support for large files
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-build-libsubdir=DIR Directory where to find libraries for build system
1484 --with-toolexeclibdir=DIR
1485 install libraries built with a cross compiler within
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1489 both]
1490 --with-gcc-major-version-only
1491 use only GCC major number in filesystem paths
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502 FC Fortran compiler command
1503 FCFLAGS Fortran compiler flags
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 Report bugs to the package provider.
1509 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1510 General help using GNU software: <http://www.gnu.org/gethelp/>.
1511 _ACEOF
1512 ac_status=$?
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 GNU Fortran Runtime Library configure 0.3
1574 generated by GNU Autoconf 2.69
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580 exit
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1618 ac_retval=1
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_compile
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1655 ac_retval=1
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_cpp
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if eval \${$3+:} false; then :
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680 # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_header_compiler=yes
1690 else
1691 ac_header_compiler=no
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705 ac_header_preproc=yes
1706 else
1707 ac_header_preproc=no
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1713 # So? What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 yes:no: )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 no:yes:* )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 esac
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 eval "$3=\$ac_header_compiler"
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_header_mongrel
1749 # ac_fn_c_try_run LINENO
1750 # ----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1752 # that executables *can* be run.
1753 ac_fn_c_try_run ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1767 { { case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_try") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; }; }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: program exited with status $ac_status" >&5
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=$ac_status
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_run
1791 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists and can be compiled using the include files in
1794 # INCLUDES, setting the cache variable VAR accordingly.
1795 ac_fn_c_check_header_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_header_compile
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_link ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 test -x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_c_try_link
1868 # ac_fn_c_check_func LINENO FUNC VAR
1869 # ----------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_c_check_func ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 if test x$gcc_no_link = xyes; then
1880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1899 #undef $2
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1916 main ()
1918 return $2 ();
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_fc_try_compile LINENO
1939 # ---------------------------
1940 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_fc_try_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext
1945 if { { ac_try="$ac_compile"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_compile") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_fc_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest.$ac_objext; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_fc_try_compile
1976 # ac_fn_fc_try_link LINENO
1977 # ------------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_fc_try_link ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_fc_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 test -x conftest$ac_exeext
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=1
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_fc_try_link
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 eval "$3=no"
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 if (sizeof ($2))
2042 return 0;
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 if (sizeof (($2)))
2055 return 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2062 else
2063 eval "$3=yes"
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_type
2076 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2077 # --------------------------------------------
2078 # Tries to find the compile-time value of EXPR in a program that includes
2079 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2080 # computed
2081 ac_fn_c_compute_int ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if test "$cross_compiling" = yes; then
2085 # Depending upon the size, compute the lo and hi bounds.
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) >= 0)];
2093 test_array [0] = 0;
2094 return test_array [0];
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0;
2111 return test_array [0];
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 ac_hi=$ac_mid; break
2119 else
2120 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2121 if test $ac_lo -le $ac_mid; then
2122 ac_lo= ac_hi=
2123 break
2125 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 done
2129 else
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 static int test_array [1 - 2 * !(($2) < 0)];
2137 test_array [0] = 0;
2138 return test_array [0];
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_hi=-1 ac_mid=-1
2146 while :; do
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2154 test_array [0] = 0;
2155 return test_array [0];
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163 else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 else
2174 ac_lo= ac_hi=
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2186 main ()
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0;
2190 return test_array [0];
2193 return 0;
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_hi=$ac_mid
2198 else
2199 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203 case $ac_lo in #((
2204 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2205 '') ac_retval=1 ;;
2206 esac
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2211 static long int longval () { return $2; }
2212 static unsigned long int ulongval () { return $2; }
2213 #include <stdio.h>
2214 #include <stdlib.h>
2216 main ()
2219 FILE *f = fopen ("conftest.val", "w");
2220 if (! f)
2221 return 1;
2222 if (($2) < 0)
2224 long int i = longval ();
2225 if (i != ($2))
2226 return 1;
2227 fprintf (f, "%ld", i);
2229 else
2231 unsigned long int i = ulongval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%lu", i);
2236 /* Do not output a trailing newline, as this causes \r\n confusion
2237 on some platforms. */
2238 return ferror (f) || fclose (f) != 0;
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_run "$LINENO"; then :
2245 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2246 else
2247 ac_retval=1
2249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2250 conftest.$ac_objext conftest.beam conftest.$ac_ext
2251 rm -f conftest.val
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2257 } # ac_fn_c_compute_int
2259 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2260 # ----------------------------------------------------
2261 # Tries to find if the field MEMBER exists in type AGGR, after including
2262 # INCLUDES, setting cache variable VAR accordingly.
2263 ac_fn_c_check_member ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2267 $as_echo_n "checking for $2.$3... " >&6; }
2268 if eval \${$4+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 static $2 ac_aggr;
2278 if (ac_aggr.$3)
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285 eval "$4=yes"
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 static $2 ac_aggr;
2294 if (sizeof ac_aggr.$3)
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302 else
2303 eval "$4=no"
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 eval ac_res=\$$4
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_member
2315 cat >config.log <<_ACEOF
2316 This file contains any messages produced by compilers while
2317 running configure, to aid debugging if configure makes a mistake.
2319 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2320 generated by GNU Autoconf 2.69. Invocation command line was
2322 $ $0 $@
2324 _ACEOF
2325 exec 5>>config.log
2327 cat <<_ASUNAME
2328 ## --------- ##
2329 ## Platform. ##
2330 ## --------- ##
2332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2341 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2342 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2345 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2346 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2347 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2349 _ASUNAME
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2357 done
2358 IFS=$as_save_IFS
2360 } >&5
2362 cat >&5 <<_ACEOF
2365 ## ----------- ##
2366 ## Core tests. ##
2367 ## ----------- ##
2369 _ACEOF
2372 # Keep a trace of the command line.
2373 # Strip out --no-create and --no-recursion so they do not pile up.
2374 # Strip out --silent because we don't want to record it for future runs.
2375 # Also quote any args containing shell meta-characters.
2376 # Make two passes to allow for proper duplicate-argument suppression.
2377 ac_configure_args=
2378 ac_configure_args0=
2379 ac_configure_args1=
2380 ac_must_keep_next=false
2381 for ac_pass in 1 2
2383 for ac_arg
2385 case $ac_arg in
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2389 continue ;;
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 esac
2393 case $ac_pass in
2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2396 as_fn_append ac_configure_args1 " '$ac_arg'"
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2399 else
2400 case $ac_arg in
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 esac
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2412 as_fn_append ac_configure_args " '$ac_arg'"
2414 esac
2415 done
2416 done
2417 { ac_configure_args0=; unset ac_configure_args0;}
2418 { ac_configure_args1=; unset ac_configure_args1;}
2420 # When interrupted or exit'd, cleanup temporary files, and complete
2421 # config.log. We remove comments because anyway the quotes in there
2422 # would cause problems or look ugly.
2423 # WARNING: Use '\'' to represent an apostrophe within the trap.
2424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425 trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2428 echo
2430 $as_echo "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 esac |
2462 sort
2464 echo
2466 $as_echo "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 done
2515 ac_signal=0
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2520 $as_echo "/* confdefs.h */" > confdefs.h
2522 # Predefined preprocessor variables.
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2546 _ACEOF
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2551 ac_site_file1=NONE
2552 ac_site_file2=NONE
2553 if test -n "$CONFIG_SITE"; then
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2559 esac
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2563 else
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
2567 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2569 test "x$ac_site_file" = xNONE && continue
2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 sed 's/^/| /' "$ac_site_file" >&5
2574 . "$ac_site_file" \
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 as_fn_error $? "failed to load site script $ac_site_file
2578 See \`config.log' for more details" "$LINENO" 5; }
2580 done
2582 if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587 $as_echo "$as_me: loading cache $cache_file" >&6;}
2588 case $cache_file in
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2591 esac
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 >$cache_file
2599 as_fn_append ac_header_list " unistd.h"
2600 as_fn_append ac_header_list " sys/random.h"
2601 as_fn_append ac_header_list " sys/time.h"
2602 as_fn_append ac_header_list " sys/times.h"
2603 as_fn_append ac_header_list " sys/resource.h"
2604 as_fn_append ac_header_list " sys/types.h"
2605 as_fn_append ac_header_list " sys/stat.h"
2606 as_fn_append ac_header_list " sys/uio.h"
2607 as_fn_append ac_header_list " sys/wait.h"
2608 as_fn_append ac_header_list " floatingpoint.h"
2609 as_fn_append ac_header_list " ieeefp.h"
2610 as_fn_append ac_header_list " fenv.h"
2611 as_fn_append ac_header_list " fptrap.h"
2612 as_fn_append ac_header_list " fpxcp.h"
2613 as_fn_append ac_header_list " pwd.h"
2614 as_fn_append ac_header_list " complex.h"
2615 as_fn_append ac_header_list " xlocale.h"
2616 as_fn_append ac_func_list " getrusage"
2617 as_fn_append ac_func_list " times"
2618 as_fn_append ac_func_list " mkstemp"
2619 as_fn_append ac_func_list " strtof"
2620 as_fn_append ac_func_list " strtold"
2621 as_fn_append ac_func_list " snprintf"
2622 as_fn_append ac_func_list " ftruncate"
2623 as_fn_append ac_func_list " chsize"
2624 as_fn_append ac_func_list " chdir"
2625 as_fn_append ac_func_list " getentropy"
2626 as_fn_append ac_func_list " getlogin"
2627 as_fn_append ac_func_list " gethostname"
2628 as_fn_append ac_func_list " kill"
2629 as_fn_append ac_func_list " link"
2630 as_fn_append ac_func_list " symlink"
2631 as_fn_append ac_func_list " sleep"
2632 as_fn_append ac_func_list " ttyname"
2633 as_fn_append ac_func_list " sigaction"
2634 as_fn_append ac_func_list " waitpid"
2635 as_fn_append ac_func_list " alarm"
2636 as_fn_append ac_func_list " access"
2637 as_fn_append ac_func_list " fork"
2638 as_fn_append ac_func_list " posix_spawn"
2639 as_fn_append ac_func_list " setmode"
2640 as_fn_append ac_func_list " fcntl"
2641 as_fn_append ac_func_list " writev"
2642 as_fn_append ac_func_list " gettimeofday"
2643 as_fn_append ac_func_list " stat"
2644 as_fn_append ac_func_list " fstat"
2645 as_fn_append ac_func_list " lstat"
2646 as_fn_append ac_func_list " getpwuid"
2647 as_fn_append ac_func_list " vsnprintf"
2648 as_fn_append ac_func_list " dup"
2649 as_fn_append ac_func_list " getcwd"
2650 as_fn_append ac_func_list " localtime_r"
2651 as_fn_append ac_func_list " gmtime_r"
2652 as_fn_append ac_func_list " getpwuid_r"
2653 as_fn_append ac_func_list " ttyname_r"
2654 as_fn_append ac_func_list " clock_gettime"
2655 as_fn_append ac_func_list " getgid"
2656 as_fn_append ac_func_list " getpid"
2657 as_fn_append ac_func_list " getuid"
2658 as_fn_append ac_func_list " geteuid"
2659 as_fn_append ac_func_list " umask"
2660 as_fn_append ac_func_list " getegid"
2661 as_fn_append ac_func_list " secure_getenv"
2662 as_fn_append ac_func_list " __secure_getenv"
2663 as_fn_append ac_func_list " mkostemp"
2664 as_fn_append ac_func_list " strnlen"
2665 as_fn_append ac_func_list " strndup"
2666 as_fn_append ac_func_list " newlocale"
2667 as_fn_append ac_func_list " freelocale"
2668 as_fn_append ac_func_list " uselocale"
2669 as_fn_append ac_func_list " strerror_l"
2670 as_fn_append ac_header_list " math.h"
2671 # Check that the precious variables saved in the cache have kept the same
2672 # value.
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2680 set,)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,set)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,);;
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 fi;;
2708 esac
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2711 case $ac_new_val in
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2714 esac
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 esac
2720 done
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 ac_config_headers="$ac_config_headers config.h"
2744 ac_aux_dir=
2745 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if test -f "$ac_dir/install-sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 break
2750 elif 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/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2759 done
2760 if test -z "$ac_aux_dir"; then
2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2764 # These three variables are undocumented and unsupported,
2765 # and are intended to be withdrawn in a future Autoconf release.
2766 # They can cause serious problems if a builder's source tree is in a directory
2767 # whose full name contains unusual characters.
2768 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2769 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2770 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 esac
2797 build=$ac_cv_build
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_build
2800 shift
2801 build_cpu=$1
2802 build_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 build_os=$*
2807 IFS=$ac_save_IFS
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811 case ${build_alias} in
2812 "") build_noncanonical=${build} ;;
2813 *) build_noncanonical=${build_alias} ;;
2814 esac
2816 case ${host_alias} in
2817 "") host_noncanonical=${build_noncanonical} ;;
2818 *) host_noncanonical=${host_alias} ;;
2819 esac
2821 case ${target_alias} in
2822 "") target_noncanonical=${host_noncanonical} ;;
2823 *) target_noncanonical=${target_alias} ;;
2824 esac
2827 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828 # have matching libraries, they should use host libraries: Makefile.tpl
2829 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830 # However, they still use the build modules, because the corresponding
2831 # host modules (e.g. bison) are only built for the host when bootstrap
2832 # finishes. So:
2833 # - build_subdir is where we find build modules, and never changes.
2834 # - build_libsubdir is where we find build libraries, and can be overridden.
2836 # Prefix 'build-' so this never conflicts with target_subdir.
2837 build_subdir="build-${build_noncanonical}"
2839 # Check whether --with-build-libsubdir was given.
2840 if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
2842 else
2843 build_libsubdir="$build_subdir"
2846 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847 if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2850 else
2851 host_subdir=.
2853 # No prefix.
2854 target_subdir=${target_noncanonical}
2857 # -------
2858 # Options
2859 # -------
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2862 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2863 # Check whether --enable-version-specific-runtime-libs was given.
2864 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2865 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2866 yes) version_specific_libs=yes ;;
2867 no) version_specific_libs=no ;;
2868 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2869 esac
2870 else
2871 version_specific_libs=no
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2875 $as_echo "$version_specific_libs" >&6; }
2877 # Build with intermodule optimisations
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2879 $as_echo_n "checking for --enable-intermodule... " >&6; }
2880 # Check whether --enable-intermodule was given.
2881 if test "${enable_intermodule+set}" = set; then :
2882 enableval=$enable_intermodule; case "$enable_intermodule" in
2883 yes) onestep="-onestep";;
2884 *) onestep="";;
2885 esac
2886 else
2887 onestep=""
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2891 $as_echo "$enable_intermodule" >&6; }
2892 if test x$onestep = x-onestep; then
2893 onestep_TRUE=
2894 onestep_FALSE='#'
2895 else
2896 onestep_TRUE='#'
2897 onestep_FALSE=
2902 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2904 # You will slowly go insane if you do not grok the following fact: when
2905 # building this library, the top-level /target/ becomes the library's /host/.
2907 # configure then causes --target to default to --host, exactly like any
2908 # other package using autoconf. Therefore, 'target' and 'host' will
2909 # always be the same. This makes sense both for native and cross compilers
2910 # just think about it for a little while. :-)
2912 # Also, if this library is being configured as part of a cross compiler, the
2913 # top-level configure script will pass the "real" host as $with_cross_host.
2915 # Do not delete or change the following two lines. For why, see
2916 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2918 $as_echo_n "checking host system type... " >&6; }
2919 if ${ac_cv_host+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test "x$host_alias" = x; then
2923 ac_cv_host=$ac_cv_build
2924 else
2925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2931 $as_echo "$ac_cv_host" >&6; }
2932 case $ac_cv_host in
2933 *-*-*) ;;
2934 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2935 esac
2936 host=$ac_cv_host
2937 ac_save_IFS=$IFS; IFS='-'
2938 set x $ac_cv_host
2939 shift
2940 host_cpu=$1
2941 host_vendor=$2
2942 shift; shift
2943 # Remember, the first character of IFS is used to create $*,
2944 # except with old shells:
2945 host_os=$*
2946 IFS=$ac_save_IFS
2947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2951 $as_echo_n "checking target system type... " >&6; }
2952 if ${ac_cv_target+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test "x$target_alias" = x; then
2956 ac_cv_target=$ac_cv_host
2957 else
2958 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2964 $as_echo "$ac_cv_target" >&6; }
2965 case $ac_cv_target in
2966 *-*-*) ;;
2967 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2968 esac
2969 target=$ac_cv_target
2970 ac_save_IFS=$IFS; IFS='-'
2971 set x $ac_cv_target
2972 shift
2973 target_cpu=$1
2974 target_vendor=$2
2975 shift; shift
2976 # Remember, the first character of IFS is used to create $*,
2977 # except with old shells:
2978 target_os=$*
2979 IFS=$ac_save_IFS
2980 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2983 # The aliases save the names the user supplied, while $host etc.
2984 # will get canonicalized.
2985 test -n "$target_alias" &&
2986 test "$program_prefix$program_suffix$program_transform_name" = \
2987 NONENONEs,x,x, &&
2988 program_prefix=${target_alias}-
2993 target_alias=${target_alias-$host_alias}
2996 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2997 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2998 # 1.9.6: minimum required version
2999 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3000 # of other PACKAGE_* variables will, however, and there's nothing
3001 # we can do about that; they come from AC_INIT).
3002 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3003 # file in the top srcdir, etc, etc), so stop complaining.
3004 # no-dist: we don't want 'dist' and related rules.
3005 # -Wall: turns on all automake warnings...
3006 # -Wno-portability: ...except this one, since GNU make is required.
3007 am__api_version='1.15'
3009 # Find a good install program. We prefer a C program (faster),
3010 # so one script is as good as another. But avoid the broken or
3011 # incompatible versions:
3012 # SysV /etc/install, /usr/sbin/install
3013 # SunOS /usr/etc/install
3014 # IRIX /sbin/install
3015 # AIX /bin/install
3016 # AmigaOS /C/install, which installs bootblocks on floppy discs
3017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3020 # OS/2's system install, which has a completely different semantic
3021 # ./install, which can be erroneously created by make from ./install.sh.
3022 # Reject install programs that cannot install multiple files.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3024 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3025 if test -z "$INSTALL"; then
3026 if ${ac_cv_path_install+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 # Account for people who put trailing slashes in PATH elements.
3035 case $as_dir/ in #((
3036 ./ | .// | /[cC]/* | \
3037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3038 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3039 /usr/ucb/* ) ;;
3041 # OSF1 and SCO ODT 3.0 have their own names for install.
3042 # Don't use installbsd from OSF since it installs stuff as root
3043 # by default.
3044 for ac_prog in ginstall scoinst install; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3047 if test $ac_prog = install &&
3048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049 # AIX install. It has an incompatible calling convention.
3051 elif test $ac_prog = install &&
3052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053 # program-specific install script used by HP pwplus--don't use.
3055 else
3056 rm -rf conftest.one conftest.two conftest.dir
3057 echo one > conftest.one
3058 echo two > conftest.two
3059 mkdir conftest.dir
3060 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3061 test -s conftest.one && test -s conftest.two &&
3062 test -s conftest.dir/conftest.one &&
3063 test -s conftest.dir/conftest.two
3064 then
3065 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3066 break 3
3070 done
3071 done
3073 esac
3075 done
3076 IFS=$as_save_IFS
3078 rm -rf conftest.one conftest.two conftest.dir
3081 if test "${ac_cv_path_install+set}" = set; then
3082 INSTALL=$ac_cv_path_install
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for INSTALL within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 INSTALL=$ac_install_sh
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3092 $as_echo "$INSTALL" >&6; }
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3103 $as_echo_n "checking whether build environment is sane... " >&6; }
3104 # Reject unsafe characters in $srcdir or the absolute working directory
3105 # name. Accept space and tab only in the latter.
3106 am_lf='
3108 case `pwd` in
3109 *[\\\"\#\$\&\'\`$am_lf]*)
3110 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3111 esac
3112 case $srcdir in
3113 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3114 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3115 esac
3117 # Do 'set' in a subshell so we don't clobber the current shell's
3118 # arguments. Must try -L first in case configure is actually a
3119 # symlink; some systems play weird games with the mod time of symlinks
3120 # (eg FreeBSD returns the mod time of the symlink's containing
3121 # directory).
3122 if (
3123 am_has_slept=no
3124 for am_try in 1 2; do
3125 echo "timestamp, slept: $am_has_slept" > conftest.file
3126 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3127 if test "$*" = "X"; then
3128 # -L didn't work.
3129 set X `ls -t "$srcdir/configure" conftest.file`
3131 if test "$*" != "X $srcdir/configure conftest.file" \
3132 && test "$*" != "X conftest.file $srcdir/configure"; then
3134 # If neither matched, then we have a broken ls. This can happen
3135 # if, for instance, CONFIG_SHELL is bash and it inherits a
3136 # broken ls alias from the environment. This has actually
3137 # happened. Such a system could not be considered "sane".
3138 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3139 alias in your environment" "$LINENO" 5
3141 if test "$2" = conftest.file || test $am_try -eq 2; then
3142 break
3144 # Just in case.
3145 sleep 1
3146 am_has_slept=yes
3147 done
3148 test "$2" = conftest.file
3150 then
3151 # Ok.
3153 else
3154 as_fn_error $? "newly created file is older than distributed files!
3155 Check your system clock" "$LINENO" 5
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3159 # If we didn't sleep, we still need to ensure time stamps of config.status and
3160 # generated files are strictly newer.
3161 am_sleep_pid=
3162 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3163 ( sleep 1 ) &
3164 am_sleep_pid=$!
3167 rm -f conftest.file
3169 test "$program_prefix" != NONE &&
3170 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3171 # Use a double $ so make ignores it.
3172 test "$program_suffix" != NONE &&
3173 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3174 # Double any \ or $.
3175 # By default was `s,x,x', remove it if useless.
3176 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3177 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3179 # Expand $ac_aux_dir to an absolute path.
3180 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3182 if test x"${MISSING+set}" != xset; then
3183 case $am_aux_dir in
3184 *\ * | *\ *)
3185 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3187 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3188 esac
3190 # Use eval to expand $SHELL
3191 if eval "$MISSING --is-lightweight"; then
3192 am_missing_run="$MISSING "
3193 else
3194 am_missing_run=
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3196 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3199 if test x"${install_sh+set}" != xset; then
3200 case $am_aux_dir in
3201 *\ * | *\ *)
3202 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3204 install_sh="\${SHELL} $am_aux_dir/install-sh"
3205 esac
3208 # Installed binaries are usually stripped using 'strip' when the user
3209 # run "make install-strip". However 'strip' might not be the right
3210 # tool to use in cross-compilation environments, therefore Automake
3211 # will honor the 'STRIP' environment variable to overrule this program.
3212 if test "$cross_compiling" != no; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}strip; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_STRIP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$STRIP"; then
3222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3241 STRIP=$ac_cv_prog_STRIP
3242 if test -n "$STRIP"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3244 $as_echo "$STRIP" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3252 if test -z "$ac_cv_prog_STRIP"; then
3253 ac_ct_STRIP=$STRIP
3254 # Extract the first word of "strip", so it can be a program name with args.
3255 set dummy strip; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$ac_ct_STRIP"; then
3262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_STRIP="strip"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3275 done
3276 done
3277 IFS=$as_save_IFS
3281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3282 if test -n "$ac_ct_STRIP"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3284 $as_echo "$ac_ct_STRIP" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3290 if test "x$ac_ct_STRIP" = x; then
3291 STRIP=":"
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 STRIP=$ac_ct_STRIP
3301 else
3302 STRIP="$ac_cv_prog_STRIP"
3306 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3309 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3310 if test -z "$MKDIR_P"; then
3311 if ${ac_cv_path_mkdir+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_prog in mkdir gmkdir; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3322 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3323 'mkdir (GNU coreutils) '* | \
3324 'mkdir (coreutils) '* | \
3325 'mkdir (fileutils) '4.1*)
3326 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3327 break 3;;
3328 esac
3329 done
3330 done
3331 done
3332 IFS=$as_save_IFS
3336 test -d ./--version && rmdir ./--version
3337 if test "${ac_cv_path_mkdir+set}" = set; then
3338 MKDIR_P="$ac_cv_path_mkdir -p"
3339 else
3340 # As a last resort, use the slow shell script. Don't cache a
3341 # value for MKDIR_P within a source directory, because that will
3342 # break other packages using the cache if that directory is
3343 # removed, or if the value is a relative name.
3344 MKDIR_P="$ac_install_sh -d"
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3348 $as_echo "$MKDIR_P" >&6; }
3350 for ac_prog in gawk mawk nawk awk
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_AWK+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$AWK"; then
3360 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_AWK="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3375 IFS=$as_save_IFS
3379 AWK=$ac_cv_prog_AWK
3380 if test -n "$AWK"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3382 $as_echo "$AWK" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3389 test -n "$AWK" && break
3390 done
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3393 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3394 set x ${MAKE-make}
3395 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3396 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 cat >conftest.make <<\_ACEOF
3400 SHELL = /bin/sh
3401 all:
3402 @echo '@@@%%%=$(MAKE)=@@@%%%'
3403 _ACEOF
3404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3405 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3406 *@@@%%%=?*=@@@%%%*)
3407 eval ac_cv_prog_make_${ac_make}_set=yes;;
3409 eval ac_cv_prog_make_${ac_make}_set=no;;
3410 esac
3411 rm -f conftest.make
3413 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3416 SET_MAKE=
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 SET_MAKE="MAKE=${MAKE-make}"
3423 rm -rf .tst 2>/dev/null
3424 mkdir .tst 2>/dev/null
3425 if test -d .tst; then
3426 am__leading_dot=.
3427 else
3428 am__leading_dot=_
3430 rmdir .tst 2>/dev/null
3432 # Check whether --enable-silent-rules was given.
3433 if test "${enable_silent_rules+set}" = set; then :
3434 enableval=$enable_silent_rules;
3437 case $enable_silent_rules in # (((
3438 yes) AM_DEFAULT_VERBOSITY=0;;
3439 no) AM_DEFAULT_VERBOSITY=1;;
3440 *) AM_DEFAULT_VERBOSITY=1;;
3441 esac
3442 am_make=${MAKE-make}
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3444 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3445 if ${am_cv_make_support_nested_variables+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if $as_echo 'TRUE=$(BAR$(V))
3449 BAR0=false
3450 BAR1=true
3452 am__doit:
3453 @$(TRUE)
3454 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3455 am_cv_make_support_nested_variables=yes
3456 else
3457 am_cv_make_support_nested_variables=no
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3461 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3462 if test $am_cv_make_support_nested_variables = yes; then
3463 AM_V='$(V)'
3464 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3465 else
3466 AM_V=$AM_DEFAULT_VERBOSITY
3467 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3469 AM_BACKSLASH='\'
3471 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3472 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3473 # is not polluted with repeated "-I."
3474 am__isrc=' -I$(srcdir)'
3475 # test to see if srcdir already configured
3476 if test -f $srcdir/config.status; then
3477 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3481 # test whether we have cygpath
3482 if test -z "$CYGPATH_W"; then
3483 if (cygpath --version) >/dev/null 2>/dev/null; then
3484 CYGPATH_W='cygpath -w'
3485 else
3486 CYGPATH_W=echo
3491 # Define the identity of the package.
3492 PACKAGE='libgfortran'
3493 VERSION='0.3'
3496 # Some tools Automake needs.
3498 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3501 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3504 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3507 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3510 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3512 # For better backward compatibility. To be removed once Automake 1.9.x
3513 # dies out for good. For more background, see:
3514 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3515 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3516 mkdir_p='$(MKDIR_P)'
3518 # We need awk for the "check" target (and possibly the TAP driver). The
3519 # system "awk" is bad on some platforms.
3520 # Always define AMTAR for backward compatibility. Yes, it's still used
3521 # in the wild :-( We should find a proper way to deprecate it ...
3522 AMTAR='$${TAR-tar}'
3525 # We'll loop over all known methods to create a tar archive until one works.
3526 _am_tools='gnutar pax cpio none'
3528 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3535 # POSIX will say in a future version that running "rm -f" with no argument
3536 # is OK; and we want to be able to make that assumption in our Makefile
3537 # recipes. So use an aggressive probe to check that the usage we want is
3538 # actually supported "in the wild" to an acceptable degree.
3539 # See automake bug#10828.
3540 # To make any issue more visible, cause the running configure to be aborted
3541 # by default if the 'rm' program in use doesn't match our expectations; the
3542 # user can still override this though.
3543 if rm -f && rm -fr && rm -rf; then : OK; else
3544 cat >&2 <<'END'
3545 Oops!
3547 Your 'rm' program seems unable to run without file operands specified
3548 on the command line, even when the '-f' option is present. This is contrary
3549 to the behaviour of most rm programs out there, and not conforming with
3550 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3552 Please tell bug-automake@gnu.org about your system, including the value
3553 of your $PATH and any error possibly output before this message. This
3554 can help us improve future automake versions.
3557 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3558 echo 'Configuration will proceed anyway, since you have set the' >&2
3559 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3560 echo >&2
3561 else
3562 cat >&2 <<'END'
3563 Aborting the configuration process, to ensure you take notice of the issue.
3565 You can download and install GNU coreutils to get an 'rm' implementation
3566 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3568 If you want to complete the configuration process using your problematic
3569 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3570 to "yes", and re-run configure.
3573 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3580 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3581 # Check whether --enable-maintainer-mode was given.
3582 if test "${enable_maintainer_mode+set}" = set; then :
3583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3584 else
3585 USE_MAINTAINER_MODE=no
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3589 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3590 if test $USE_MAINTAINER_MODE = yes; then
3591 MAINTAINER_MODE_TRUE=
3592 MAINTAINER_MODE_FALSE='#'
3593 else
3594 MAINTAINER_MODE_TRUE='#'
3595 MAINTAINER_MODE_FALSE=
3598 MAINT=$MAINTAINER_MODE_TRUE
3601 # Default to --enable-multilib
3602 # Check whether --enable-multilib was given.
3603 if test "${enable_multilib+set}" = set; then :
3604 enableval=$enable_multilib; case "$enableval" in
3605 yes) multilib=yes ;;
3606 no) multilib=no ;;
3607 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3608 esac
3609 else
3610 multilib=yes
3614 # We may get other options which we leave undocumented:
3615 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3616 # See config-ml.in if you want the gory details.
3618 if test "$srcdir" = "."; then
3619 if test "$with_target_subdir" != "."; then
3620 multi_basedir="$srcdir/$with_multisrctop../.."
3621 else
3622 multi_basedir="$srcdir/$with_multisrctop.."
3624 else
3625 multi_basedir="$srcdir/.."
3629 # Even if the default multilib is not a cross compilation,
3630 # it may be that some of the other multilibs are.
3631 if test $cross_compiling = no && test $multilib = yes \
3632 && test "x${with_multisubdir}" != x ; then
3633 cross_compiling=maybe
3636 ac_config_commands="$ac_config_commands default-1"
3639 # Handy for debugging:
3640 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3642 # Are we being configured with some form of cross compiler?
3643 # NB: We don't actually need to know this just now, but when, say, a test
3644 # suite is included, we'll have to know.
3645 if test "$build" != "$host"; then
3646 LIBGFOR_IS_NATIVE=false
3648 else
3649 LIBGFOR_IS_NATIVE=true
3652 DEPDIR="${am__leading_dot}deps"
3654 ac_config_commands="$ac_config_commands depfiles"
3657 am_make=${MAKE-make}
3658 cat > confinc << 'END'
3659 am__doit:
3660 @echo this is the am__doit target
3661 .PHONY: am__doit
3663 # If we don't find an include directive, just comment out the code.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3666 am__include="#"
3667 am__quote=
3668 _am_result=none
3669 # First try GNU make style include.
3670 echo "include confinc" > confmf
3671 # Ignore all kinds of additional output from 'make'.
3672 case `$am_make -s -f confmf 2> /dev/null` in #(
3673 *the\ am__doit\ target*)
3674 am__include=include
3675 am__quote=
3676 _am_result=GNU
3678 esac
3679 # Now try BSD make style include.
3680 if test "$am__include" = "#"; then
3681 echo '.include "confinc"' > confmf
3682 case `$am_make -s -f confmf 2> /dev/null` in #(
3683 *the\ am__doit\ target*)
3684 am__include=.include
3685 am__quote="\""
3686 _am_result=BSD
3688 esac
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3693 $as_echo "$_am_result" >&6; }
3694 rm -f confinc confmf
3696 # Check whether --enable-dependency-tracking was given.
3697 if test "${enable_dependency_tracking+set}" = set; then :
3698 enableval=$enable_dependency_tracking;
3701 if test "x$enable_dependency_tracking" != xno; then
3702 am_depcomp="$ac_aux_dir/depcomp"
3703 AMDEPBACKSLASH='\'
3704 am__nodep='_no'
3706 if test "x$enable_dependency_tracking" != xno; then
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709 else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_CC+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3744 IFS=$as_save_IFS
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3759 if test -z "$ac_cv_prog_CC"; then
3760 ac_ct_CC=$CC
3761 # Extract the first word of "gcc", so it can be a program name with args.
3762 set dummy gcc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CC"; then
3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="gcc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3784 IFS=$as_save_IFS
3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789 if test -n "$ac_ct_CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791 $as_echo "$ac_ct_CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3797 if test "x$ac_ct_CC" = x; then
3798 CC=""
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801 yes:)
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CC=$ac_ct_CC
3808 else
3809 CC="$ac_cv_prog_CC"
3812 if test -z "$CC"; then
3813 if test -n "$ac_tool_prefix"; then
3814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3815 set dummy ${ac_tool_prefix}cc; ac_word=$2
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 $as_echo_n "checking for $ac_word... " >&6; }
3818 if ${ac_cv_prog_CC+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 if test -n "$CC"; then
3822 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_CC="${ac_tool_prefix}cc"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3835 done
3836 done
3837 IFS=$as_save_IFS
3841 CC=$ac_cv_prog_CC
3842 if test -n "$CC"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3844 $as_echo "$CC" >&6; }
3845 else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3853 if test -z "$CC"; then
3854 # Extract the first word of "cc", so it can be a program name with args.
3855 set dummy cc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_prog_CC+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 ac_prog_rejected=no
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3873 ac_prog_rejected=yes
3874 continue
3876 ac_cv_prog_CC="cc"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3880 done
3881 done
3882 IFS=$as_save_IFS
3884 if test $ac_prog_rejected = yes; then
3885 # We found a bogon in the path, so make sure we never use it.
3886 set dummy $ac_cv_prog_CC
3887 shift
3888 if test $# != 0; then
3889 # We chose a different compiler from the bogus one.
3890 # However, it has the same basename, so the bogon will be chosen
3891 # first if we set CC to just the basename; use the full file name.
3892 shift
3893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3898 CC=$ac_cv_prog_CC
3899 if test -n "$CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3909 if test -z "$CC"; then
3910 if test -n "$ac_tool_prefix"; then
3911 for ac_prog in cl.exe
3913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_CC+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3934 done
3935 done
3936 IFS=$as_save_IFS
3940 CC=$ac_cv_prog_CC
3941 if test -n "$CC"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943 $as_echo "$CC" >&6; }
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3950 test -n "$CC" && break
3951 done
3953 if test -z "$CC"; then
3954 ac_ct_CC=$CC
3955 for ac_prog in cl.exe
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CC="$ac_prog"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3980 IFS=$as_save_IFS
3984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3985 if test -n "$ac_ct_CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3987 $as_echo "$ac_ct_CC" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3994 test -n "$ac_ct_CC" && break
3995 done
3997 if test "x$ac_ct_CC" = x; then
3998 CC=""
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CC=$ac_ct_CC
4013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $? "no acceptable C compiler found in \$PATH
4016 See \`config.log' for more details" "$LINENO" 5; }
4018 # Provide some information about the compiler.
4019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020 set X $ac_compile
4021 ac_compiler=$2
4022 for ac_option in --version -v -V -qversion; do
4023 { { ac_try="$ac_compiler $ac_option >&5"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4031 ac_status=$?
4032 if test -s conftest.err; then
4033 sed '10a\
4034 ... rest of stderr output deleted ...
4035 10q' conftest.err >conftest.er1
4036 cat conftest.er1 >&5
4038 rm -f conftest.er1 conftest.err
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 done
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <stdio.h>
4047 main ()
4049 printf ("hello world\n");
4051 return 0;
4053 _ACEOF
4054 # FIXME: Cleanup?
4055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4056 (eval $ac_link) 2>&5
4057 ac_status=$?
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; then :
4060 gcc_no_link=no
4061 else
4062 gcc_no_link=yes
4064 if test x$gcc_no_link = xyes; then
4065 # Setting cross_compile will disable run tests; it will
4066 # also disable AC_CHECK_FILE but that's generally
4067 # correct if we can't link.
4068 cross_compiling=yes
4069 EXEEXT=
4070 else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 main ()
4079 return 0;
4081 _ACEOF
4082 ac_clean_files_save=$ac_clean_files
4083 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4084 # Try to create an executable without -o first, disregard a.out.
4085 # It will help us diagnose broken compilers, and finding out an intuition
4086 # of exeext.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4088 $as_echo_n "checking whether the C compiler works... " >&6; }
4089 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4091 # The possible output files:
4092 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4094 ac_rmfiles=
4095 for ac_file in $ac_files
4097 case $ac_file in
4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4100 esac
4101 done
4102 rm -f $ac_rmfiles
4104 if { { ac_try="$ac_link_default"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110 $as_echo "$ac_try_echo"; } >&5
4111 (eval "$ac_link_default") 2>&5
4112 ac_status=$?
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }; then :
4115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4118 # so that the user can short-circuit this test for compilers unknown to
4119 # Autoconf.
4120 for ac_file in $ac_files ''
4122 test -f "$ac_file" || continue
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4126 [ab].out )
4127 # We found the default executable, but exeext='' is most
4128 # certainly right.
4129 break;;
4130 *.* )
4131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4132 then :; else
4133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4135 # We set ac_cv_exeext here because the later test for it is not
4136 # safe: cross compilers may not add the suffix if given an `-o'
4137 # argument, so we may need to know it at that point already.
4138 # Even if this section looks crufty: it has the advantage of
4139 # actually working.
4140 break;;
4142 break;;
4143 esac
4144 done
4145 test "$ac_cv_exeext" = no && ac_cv_exeext=
4147 else
4148 ac_file=''
4150 if test -z "$ac_file"; then :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error 77 "C compiler cannot create executables
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 $as_echo "yes" >&6; }
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4165 $as_echo_n "checking for C compiler default output file name... " >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4167 $as_echo "$ac_file" >&6; }
4168 ac_exeext=$ac_cv_exeext
4170 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4171 ac_clean_files=$ac_clean_files_save
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4173 $as_echo_n "checking for suffix of executables... " >&6; }
4174 if { { ac_try="$ac_link"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_link") 2>&5
4182 ac_status=$?
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }; then :
4185 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4186 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4187 # work properly (i.e., refer to `conftest.exe'), while it won't with
4188 # `rm'.
4189 for ac_file in conftest.exe conftest conftest.*; do
4190 test -f "$ac_file" || continue
4191 case $ac_file in
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4194 break;;
4195 * ) break;;
4196 esac
4197 done
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4202 See \`config.log' for more details" "$LINENO" 5; }
4204 rm -f conftest conftest$ac_cv_exeext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4206 $as_echo "$ac_cv_exeext" >&6; }
4208 rm -f conftest.$ac_ext
4209 EXEEXT=$ac_cv_exeext
4210 ac_exeext=$EXEEXT
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <stdio.h>
4215 main ()
4217 FILE *f = fopen ("conftest.out", "w");
4218 return ferror (f) || fclose (f) != 0;
4221 return 0;
4223 _ACEOF
4224 ac_clean_files="$ac_clean_files conftest.out"
4225 # Check that the compiler produces executables we can run. If not, either
4226 # the compiler is broken, or we cross compile.
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4228 $as_echo_n "checking whether we are cross compiling... " >&6; }
4229 if test "$cross_compiling" != yes; then
4230 { { ac_try="$ac_link"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 $as_echo "$ac_try_echo"; } >&5
4237 (eval "$ac_link") 2>&5
4238 ac_status=$?
4239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4240 test $ac_status = 0; }
4241 if { ac_try='./conftest$ac_cv_exeext'
4242 { { case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; }; then
4252 cross_compiling=no
4253 else
4254 if test "$cross_compiling" = maybe; then
4255 cross_compiling=yes
4256 else
4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error $? "cannot run C compiled programs.
4260 If you meant to cross compile, use \`--host'.
4261 See \`config.log' for more details" "$LINENO" 5; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4266 $as_echo "$cross_compiling" >&6; }
4268 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4269 ac_clean_files=$ac_clean_files_save
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4272 $as_echo_n "checking for suffix of object files... " >&6; }
4273 if ${ac_cv_objext+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4280 main ()
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.o conftest.obj
4288 if { { ac_try="$ac_compile"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_compile") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; then :
4299 for ac_file in conftest.o conftest.obj conftest.*; do
4300 test -f "$ac_file" || continue;
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4304 break;;
4305 esac
4306 done
4307 else
4308 $as_echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313 as_fn_error $? "cannot compute suffix of object files: cannot compile
4314 See \`config.log' for more details" "$LINENO" 5; }
4316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4319 $as_echo "$ac_cv_objext" >&6; }
4320 OBJEXT=$ac_cv_objext
4321 ac_objext=$OBJEXT
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4324 if ${ac_cv_c_compiler_gnu+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4331 main ()
4333 #ifndef __GNUC__
4334 choke me
4335 #endif
4338 return 0;
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_compiler_gnu=yes
4343 else
4344 ac_compiler_gnu=no
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4352 if test $ac_compiler_gnu = yes; then
4353 GCC=yes
4354 else
4355 GCC=
4357 ac_test_CFLAGS=${CFLAGS+set}
4358 ac_save_CFLAGS=$CFLAGS
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4361 if ${ac_cv_prog_cc_g+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 ac_save_c_werror_flag=$ac_c_werror_flag
4365 ac_c_werror_flag=yes
4366 ac_cv_prog_cc_g=no
4367 CFLAGS="-g"
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4372 main ()
4376 return 0;
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_prog_cc_g=yes
4381 else
4382 CFLAGS=""
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4387 main ()
4391 return 0;
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4396 else
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4398 CFLAGS="-g"
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_prog_cc_g=yes
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4421 $as_echo "$ac_cv_prog_cc_g" >&6; }
4422 if test "$ac_test_CFLAGS" = set; then
4423 CFLAGS=$ac_save_CFLAGS
4424 elif test $ac_cv_prog_cc_g = yes; then
4425 if test "$GCC" = yes; then
4426 CFLAGS="-g -O2"
4427 else
4428 CFLAGS="-g"
4430 else
4431 if test "$GCC" = yes; then
4432 CFLAGS="-O2"
4433 else
4434 CFLAGS=
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4439 if ${ac_cv_prog_cc_c89+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 ac_cv_prog_cc_c89=no
4443 ac_save_CC=$CC
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdarg.h>
4447 #include <stdio.h>
4448 struct stat;
4449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4450 struct buf { int x; };
4451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4452 static char *e (p, i)
4453 char **p;
4454 int i;
4456 return p[i];
4458 static char *f (char * (*g) (char **, int), char **p, ...)
4460 char *s;
4461 va_list v;
4462 va_start (v,p);
4463 s = g (p, va_arg (v,int));
4464 va_end (v);
4465 return s;
4468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4469 function prototypes and stuff, but not '\xHH' hex character constants.
4470 These don't provoke an error unfortunately, instead are silently treated
4471 as 'x'. The following induces an error, until -std is added to get
4472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4473 array size at least. It's necessary to write '\x00'==0 to get something
4474 that's true only with -std. */
4475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4478 inside strings and character constants. */
4479 #define FOO(x) 'x'
4480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4482 int test (int i, double x);
4483 struct s1 {int (*f) (int a);};
4484 struct s2 {int (*f) (double a);};
4485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 int argc;
4487 char **argv;
4489 main ()
4491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4493 return 0;
4495 _ACEOF
4496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4499 CC="$ac_save_CC $ac_arg"
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_prog_cc_c89=$ac_arg
4503 rm -f core conftest.err conftest.$ac_objext
4504 test "x$ac_cv_prog_cc_c89" != "xno" && break
4505 done
4506 rm -f conftest.$ac_ext
4507 CC=$ac_save_CC
4510 # AC_CACHE_VAL
4511 case "x$ac_cv_prog_cc_c89" in
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4514 $as_echo "none needed" >&6; } ;;
4515 xno)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4517 $as_echo "unsupported" >&6; } ;;
4519 CC="$CC $ac_cv_prog_cc_c89"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4522 esac
4523 if test "x$ac_cv_prog_cc_c89" != xno; then :
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4539 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4540 if ${am_cv_prog_cc_c_o+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 # Make sure it works both with $CC and with simple cc.
4555 # Following AC_PROG_CC_C_O, we do the test twice because some
4556 # compilers refuse to overwrite an existing .o file with -o,
4557 # though they will create one.
4558 am_cv_prog_cc_c_o=yes
4559 for am_i in 1 2; do
4560 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4561 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } \
4565 && test -f conftest2.$ac_objext; then
4566 : OK
4567 else
4568 am_cv_prog_cc_c_o=no
4569 break
4571 done
4572 rm -f core conftest*
4573 unset am_i
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4576 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4577 if test "$am_cv_prog_cc_c_o" != yes; then
4578 # Losing compiler, so override with the script.
4579 # FIXME: It is wrong to rewrite CC.
4580 # But if we don't then we get into trouble of one sort or another.
4581 # A longer-term fix would be to have automake use am__CC in this case,
4582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4583 CC="$am_aux_dir/compile $CC"
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 depcc="$CC" am_compiler_list=
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4595 $as_echo_n "checking dependency style of $depcc... " >&6; }
4596 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4600 # We make a subdir and do the tests there. Otherwise we can end up
4601 # making bogus files that we don't know about and never remove. For
4602 # instance it was reported that on HP-UX the gcc test will end up
4603 # making a dummy file named 'D' -- because '-MD' means "put the output
4604 # in D".
4605 rm -rf conftest.dir
4606 mkdir conftest.dir
4607 # Copy depcomp to subdir because otherwise we won't find it if we're
4608 # using a relative directory.
4609 cp "$am_depcomp" conftest.dir
4610 cd conftest.dir
4611 # We will build objects and dependencies in a subdirectory because
4612 # it helps to detect inapplicable dependency modes. For instance
4613 # both Tru64's cc and ICC support -MD to output dependencies as a
4614 # side effect of compilation, but ICC will put the dependencies in
4615 # the current directory while Tru64 will put them in the object
4616 # directory.
4617 mkdir sub
4619 am_cv_CC_dependencies_compiler_type=none
4620 if test "$am_compiler_list" = ""; then
4621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4623 am__universal=false
4624 case " $depcc " in #(
4625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4626 esac
4628 for depmode in $am_compiler_list; do
4629 # Setup a source with many dependencies, because some compilers
4630 # like to wrap large dependency lists on column 80 (with \), and
4631 # we should not choose a depcomp mode which is confused by this.
4633 # We need to recreate these files for each test, as the compiler may
4634 # overwrite some of them when testing with obscure command lines.
4635 # This happens at least with the AIX C compiler.
4636 : > sub/conftest.c
4637 for i in 1 2 3 4 5 6; do
4638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4639 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4640 # Solaris 10 /bin/sh.
4641 echo '/* dummy */' > sub/conftst$i.h
4642 done
4643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4645 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4646 # mode. It turns out that the SunPro C++ compiler does not properly
4647 # handle '-M -o', and we need to detect this. Also, some Intel
4648 # versions had trouble with output in subdirs.
4649 am__obj=sub/conftest.${OBJEXT-o}
4650 am__minus_obj="-o $am__obj"
4651 case $depmode in
4652 gcc)
4653 # This depmode causes a compiler race in universal mode.
4654 test "$am__universal" = false || continue
4656 nosideeffect)
4657 # After this tag, mechanisms are not by side-effect, so they'll
4658 # only be used when explicitly requested.
4659 if test "x$enable_dependency_tracking" = xyes; then
4660 continue
4661 else
4662 break
4665 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4666 # This compiler won't grok '-c -o', but also, the minuso test has
4667 # not run yet. These depmodes are late enough in the game, and
4668 # so weak that their functioning should not be impacted.
4669 am__obj=conftest.${OBJEXT-o}
4670 am__minus_obj=
4672 none) break ;;
4673 esac
4674 if depmode=$depmode \
4675 source=sub/conftest.c object=$am__obj \
4676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4678 >/dev/null 2>conftest.err &&
4679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4683 # icc doesn't choke on unknown options, it will just issue warnings
4684 # or remarks (even with -Werror). So we grep stderr for any message
4685 # that says an option was ignored or not supported.
4686 # When given -MP, icc 7.0 and 7.1 complain thusly:
4687 # icc: Command line warning: ignoring option '-M'; no argument required
4688 # The diagnosis changed in icc 8.0:
4689 # icc: Command line remark: option '-MP' not supported
4690 if (grep 'ignoring option' conftest.err ||
4691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4692 am_cv_CC_dependencies_compiler_type=$depmode
4693 break
4696 done
4698 cd ..
4699 rm -rf conftest.dir
4700 else
4701 am_cv_CC_dependencies_compiler_type=none
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4706 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4710 test "x$enable_dependency_tracking" != xno \
4711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4712 am__fastdepCC_TRUE=
4713 am__fastdepCC_FALSE='#'
4714 else
4715 am__fastdepCC_TRUE='#'
4716 am__fastdepCC_FALSE=
4721 ac_ext=c
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4728 # On Suns, sometimes $CPP names a directory.
4729 if test -n "$CPP" && test -d "$CPP"; then
4730 CPP=
4732 if test -z "$CPP"; then
4733 if ${ac_cv_prog_CPP+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 # Double quotes because CPP needs to be expanded
4737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739 ac_preproc_ok=false
4740 for ac_c_preproc_warn_flag in '' yes
4742 # Use a header file that comes with gcc, so configuring glibc
4743 # with a fresh cross-compiler works.
4744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4745 # <limits.h> exists even on freestanding compilers.
4746 # On the NeXT, cc -E runs the code through the compiler's parser,
4747 # not just through cpp. "Syntax error" is here to catch this case.
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if ac_fn_c_try_cpp "$LINENO"; then :
4759 else
4760 # Broken: fails on valid input.
4761 continue
4763 rm -f conftest.err conftest.i conftest.$ac_ext
4765 # OK, works on sane cases. Now check whether nonexistent headers
4766 # can be detected and how.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4770 _ACEOF
4771 if ac_fn_c_try_cpp "$LINENO"; then :
4772 # Broken: success on invalid input.
4773 continue
4774 else
4775 # Passes both tests.
4776 ac_preproc_ok=:
4777 break
4779 rm -f conftest.err conftest.i conftest.$ac_ext
4781 done
4782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783 rm -f conftest.i conftest.err conftest.$ac_ext
4784 if $ac_preproc_ok; then :
4785 break
4788 done
4789 ac_cv_prog_CPP=$CPP
4792 CPP=$ac_cv_prog_CPP
4793 else
4794 ac_cv_prog_CPP=$CPP
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4797 $as_echo "$CPP" >&6; }
4798 ac_preproc_ok=false
4799 for ac_c_preproc_warn_flag in '' yes
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #ifdef __STDC__
4810 # include <limits.h>
4811 #else
4812 # include <assert.h>
4813 #endif
4814 Syntax error
4815 _ACEOF
4816 if ac_fn_c_try_cpp "$LINENO"; then :
4818 else
4819 # Broken: fails on valid input.
4820 continue
4822 rm -f conftest.err conftest.i conftest.$ac_ext
4824 # OK, works on sane cases. Now check whether nonexistent headers
4825 # can be detected and how.
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4829 _ACEOF
4830 if ac_fn_c_try_cpp "$LINENO"; then :
4831 # Broken: success on invalid input.
4832 continue
4833 else
4834 # Passes both tests.
4835 ac_preproc_ok=:
4836 break
4838 rm -f conftest.err conftest.i conftest.$ac_ext
4840 done
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.i conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then :
4845 else
4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4848 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4849 See \`config.log' for more details" "$LINENO" 5; }
4852 ac_ext=c
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4861 if ${ac_cv_path_GREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -z "$GREP"; then
4865 ac_path_GREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in grep ggrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_GREP" || continue
4876 # Check for GNU ac_path_GREP and select it if it is found.
4877 # Check for GNU $ac_path_GREP
4878 case `"$ac_path_GREP" --version 2>&1` in
4879 *GNU*)
4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'GREP' >> "conftest.nl"
4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_GREP="$ac_path_GREP"
4896 ac_path_GREP_max=$ac_count
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4904 $ac_path_GREP_found && break 3
4905 done
4906 done
4907 done
4908 IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_GREP"; then
4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912 else
4913 ac_cv_path_GREP=$GREP
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4918 $as_echo "$ac_cv_path_GREP" >&6; }
4919 GREP="$ac_cv_path_GREP"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4923 $as_echo_n "checking for egrep... " >&6; }
4924 if ${ac_cv_path_EGREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928 then ac_cv_path_EGREP="$GREP -E"
4929 else
4930 if test -z "$EGREP"; then
4931 ac_path_EGREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in egrep; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4941 as_fn_executable_p "$ac_path_EGREP" || continue
4942 # Check for GNU ac_path_EGREP and select it if it is found.
4943 # Check for GNU $ac_path_EGREP
4944 case `"$ac_path_EGREP" --version 2>&1` in
4945 *GNU*)
4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4948 ac_count=0
4949 $as_echo_n 0123456789 >"conftest.in"
4950 while :
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo 'EGREP' >> "conftest.nl"
4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_EGREP="$ac_path_EGREP"
4962 ac_path_EGREP_max=$ac_count
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4970 $ac_path_EGREP_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_EGREP"; then
4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 else
4979 ac_cv_path_EGREP=$EGREP
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4985 $as_echo "$ac_cv_path_EGREP" >&6; }
4986 EGREP="$ac_cv_path_EGREP"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4990 $as_echo_n "checking for ANSI C header files... " >&6; }
4991 if ${ac_cv_header_stdc+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <stdlib.h>
4997 #include <stdarg.h>
4998 #include <string.h>
4999 #include <float.h>
5002 main ()
5006 return 0;
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_header_stdc=yes
5011 else
5012 ac_cv_header_stdc=no
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 if test $ac_cv_header_stdc = yes; then
5017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <string.h>
5022 _ACEOF
5023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5024 $EGREP "memchr" >/dev/null 2>&1; then :
5026 else
5027 ac_cv_header_stdc=no
5029 rm -f conftest*
5033 if test $ac_cv_header_stdc = yes; then
5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <stdlib.h>
5039 _ACEOF
5040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "free" >/dev/null 2>&1; then :
5043 else
5044 ac_cv_header_stdc=no
5046 rm -f conftest*
5050 if test $ac_cv_header_stdc = yes; then
5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052 if test "$cross_compiling" = yes; then :
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <ctype.h>
5058 #include <stdlib.h>
5059 #if ((' ' & 0x0FF) == 0x020)
5060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5062 #else
5063 # define ISLOWER(c) \
5064 (('a' <= (c) && (c) <= 'i') \
5065 || ('j' <= (c) && (c) <= 'r') \
5066 || ('s' <= (c) && (c) <= 'z'))
5067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5068 #endif
5070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5072 main ()
5074 int i;
5075 for (i = 0; i < 256; i++)
5076 if (XOR (islower (i), ISLOWER (i))
5077 || toupper (i) != TOUPPER (i))
5078 return 2;
5079 return 0;
5081 _ACEOF
5082 if ac_fn_c_try_run "$LINENO"; then :
5084 else
5085 ac_cv_header_stdc=no
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5088 conftest.$ac_objext conftest.beam conftest.$ac_ext
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5094 $as_echo "$ac_cv_header_stdc" >&6; }
5095 if test $ac_cv_header_stdc = yes; then
5097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5103 inttypes.h stdint.h unistd.h
5104 do :
5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5109 cat >>confdefs.h <<_ACEOF
5110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 _ACEOF
5115 done
5119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5120 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5121 MINIX=yes
5122 else
5123 MINIX=
5127 if test "$MINIX" = yes; then
5129 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5132 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5135 $as_echo "#define _MINIX 1" >>confdefs.h
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5142 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5148 # define __EXTENSIONS__ 1
5149 $ac_includes_default
5151 main ()
5155 return 0;
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_safe_to_define___extensions__=yes
5160 else
5161 ac_cv_safe_to_define___extensions__=no
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5167 test $ac_cv_safe_to_define___extensions__ = yes &&
5168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5181 # Check whether --with-toolexeclibdir was given.
5182 if test "${with_toolexeclibdir+set}" = set; then :
5183 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5187 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5189 esac
5190 else
5191 with_toolexeclibdir=no
5196 # Calculate toolexeclibdir
5197 # Also toolexecdir, though it's only used in toolexeclibdir
5198 case ${version_specific_libs} in
5199 yes)
5200 # Need the gcc compiler version to know where to install libraries
5201 # and header files if --enable-version-specific-runtime-libs option
5202 # is selected.
5203 toolexecdir='$(libdir)/gcc/$(target_alias)'
5204 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5207 if test -n "$with_cross_host" &&
5208 test x"$with_cross_host" != x"no"; then
5209 # Install a library built with a cross compiler in tooldir, not libdir.
5210 toolexecdir='$(exec_prefix)/$(target_alias)'
5211 case ${with_toolexeclibdir} in
5213 toolexeclibdir='$(toolexecdir)/lib'
5216 toolexeclibdir=${with_toolexeclibdir}
5218 esac
5219 else
5220 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5221 toolexeclibdir='$(libdir)'
5223 multi_os_directory=`$CC -print-multi-os-directory`
5224 case $multi_os_directory in
5225 .) ;; # Avoid trailing /.
5226 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5227 esac
5229 esac
5233 # Create a spec file, so that compile/link tests don't fail
5234 test -f libgfortran.spec || touch libgfortran.spec
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242 # Check the compiler.
5243 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5244 # We must force CC to /not/ be precious variables; otherwise
5245 # the wrong, non-multilib-adjusted value will be used in multilibs.
5246 # As a side effect, we have to subst CFLAGS ourselves.
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_CC+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 CC=$ac_cv_prog_CC
5284 if test -n "$CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_CC"; then
5295 ac_ct_CC=$CC
5296 # Extract the first word of "gcc", so it can be a program name with args.
5297 set dummy gcc; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_CC"; then
5304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_CC="gcc"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5324 if test -n "$ac_ct_CC"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5326 $as_echo "$ac_ct_CC" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_CC" = x; then
5333 CC=""
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 CC=$ac_ct_CC
5343 else
5344 CC="$ac_cv_prog_CC"
5347 if test -z "$CC"; then
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}cc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_CC+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_CC="${ac_tool_prefix}cc"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 CC=$ac_cv_prog_CC
5377 if test -n "$CC"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5379 $as_echo "$CC" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5388 if test -z "$CC"; then
5389 # Extract the first word of "cc", so it can be a program name with args.
5390 set dummy cc; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_CC+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$CC"; then
5397 ac_cv_prog_CC="$CC" # Let the user override the test.
5398 else
5399 ac_prog_rejected=no
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5408 ac_prog_rejected=yes
5409 continue
5411 ac_cv_prog_CC="cc"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5419 if test $ac_prog_rejected = yes; then
5420 # We found a bogon in the path, so make sure we never use it.
5421 set dummy $ac_cv_prog_CC
5422 shift
5423 if test $# != 0; then
5424 # We chose a different compiler from the bogus one.
5425 # However, it has the same basename, so the bogon will be chosen
5426 # first if we set CC to just the basename; use the full file name.
5427 shift
5428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5433 CC=$ac_cv_prog_CC
5434 if test -n "$CC"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5436 $as_echo "$CC" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5444 if test -z "$CC"; then
5445 if test -n "$ac_tool_prefix"; then
5446 for ac_prog in cl.exe
5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_prog_CC+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$CC"; then
5456 ac_cv_prog_CC="$CC" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 CC=$ac_cv_prog_CC
5476 if test -n "$CC"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5478 $as_echo "$CC" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5485 test -n "$CC" && break
5486 done
5488 if test -z "$CC"; then
5489 ac_ct_CC=$CC
5490 for ac_prog in cl.exe
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$ac_ct_CC"; then
5500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_CC="$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5520 if test -n "$ac_ct_CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5522 $as_echo "$ac_ct_CC" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5529 test -n "$ac_ct_CC" && break
5530 done
5532 if test "x$ac_ct_CC" = x; then
5533 CC=""
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 CC=$ac_ct_CC
5548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error $? "no acceptable C compiler found in \$PATH
5551 See \`config.log' for more details" "$LINENO" 5; }
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5555 set X $ac_compile
5556 ac_compiler=$2
5557 for ac_option in --version -v -V -qversion; do
5558 { { ac_try="$ac_compiler $ac_option >&5"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5566 ac_status=$?
5567 if test -s conftest.err; then
5568 sed '10a\
5569 ... rest of stderr output deleted ...
5570 10q' conftest.err >conftest.er1
5571 cat conftest.er1 >&5
5573 rm -f conftest.er1 conftest.err
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; }
5576 done
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5580 if ${ac_cv_c_compiler_gnu+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5587 main ()
5589 #ifndef __GNUC__
5590 choke me
5591 #endif
5594 return 0;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 ac_compiler_gnu=yes
5599 else
5600 ac_compiler_gnu=no
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5608 if test $ac_compiler_gnu = yes; then
5609 GCC=yes
5610 else
5611 GCC=
5613 ac_test_CFLAGS=${CFLAGS+set}
5614 ac_save_CFLAGS=$CFLAGS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5617 if ${ac_cv_prog_cc_g+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_save_c_werror_flag=$ac_c_werror_flag
5621 ac_c_werror_flag=yes
5622 ac_cv_prog_cc_g=no
5623 CFLAGS="-g"
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5628 main ()
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_prog_cc_g=yes
5637 else
5638 CFLAGS=""
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5643 main ()
5647 return 0;
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5652 else
5653 ac_c_werror_flag=$ac_save_c_werror_flag
5654 CFLAGS="-g"
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5659 main ()
5663 return 0;
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_prog_cc_g=yes
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_c_werror_flag=$ac_save_c_werror_flag
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5677 $as_echo "$ac_cv_prog_cc_g" >&6; }
5678 if test "$ac_test_CFLAGS" = set; then
5679 CFLAGS=$ac_save_CFLAGS
5680 elif test $ac_cv_prog_cc_g = yes; then
5681 if test "$GCC" = yes; then
5682 CFLAGS="-g -O2"
5683 else
5684 CFLAGS="-g"
5686 else
5687 if test "$GCC" = yes; then
5688 CFLAGS="-O2"
5689 else
5690 CFLAGS=
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5695 if ${ac_cv_prog_cc_c89+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 ac_cv_prog_cc_c89=no
5699 ac_save_CC=$CC
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #include <stdarg.h>
5703 #include <stdio.h>
5704 struct stat;
5705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5706 struct buf { int x; };
5707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5708 static char *e (p, i)
5709 char **p;
5710 int i;
5712 return p[i];
5714 static char *f (char * (*g) (char **, int), char **p, ...)
5716 char *s;
5717 va_list v;
5718 va_start (v,p);
5719 s = g (p, va_arg (v,int));
5720 va_end (v);
5721 return s;
5724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5725 function prototypes and stuff, but not '\xHH' hex character constants.
5726 These don't provoke an error unfortunately, instead are silently treated
5727 as 'x'. The following induces an error, until -std is added to get
5728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5729 array size at least. It's necessary to write '\x00'==0 to get something
5730 that's true only with -std. */
5731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5734 inside strings and character constants. */
5735 #define FOO(x) 'x'
5736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5738 int test (int i, double x);
5739 struct s1 {int (*f) (int a);};
5740 struct s2 {int (*f) (double a);};
5741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5742 int argc;
5743 char **argv;
5745 main ()
5747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5749 return 0;
5751 _ACEOF
5752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5755 CC="$ac_save_CC $ac_arg"
5756 if ac_fn_c_try_compile "$LINENO"; then :
5757 ac_cv_prog_cc_c89=$ac_arg
5759 rm -f core conftest.err conftest.$ac_objext
5760 test "x$ac_cv_prog_cc_c89" != "xno" && break
5761 done
5762 rm -f conftest.$ac_ext
5763 CC=$ac_save_CC
5766 # AC_CACHE_VAL
5767 case "x$ac_cv_prog_cc_c89" in
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5770 $as_echo "none needed" >&6; } ;;
5771 xno)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5773 $as_echo "unsupported" >&6; } ;;
5775 CC="$CC $ac_cv_prog_cc_c89"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5778 esac
5779 if test "x$ac_cv_prog_cc_c89" != xno; then :
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5795 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5796 if ${am_cv_prog_cc_c_o+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5803 main ()
5807 return 0;
5809 _ACEOF
5810 # Make sure it works both with $CC and with simple cc.
5811 # Following AC_PROG_CC_C_O, we do the test twice because some
5812 # compilers refuse to overwrite an existing .o file with -o,
5813 # though they will create one.
5814 am_cv_prog_cc_c_o=yes
5815 for am_i in 1 2; do
5816 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5817 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } \
5821 && test -f conftest2.$ac_objext; then
5822 : OK
5823 else
5824 am_cv_prog_cc_c_o=no
5825 break
5827 done
5828 rm -f core conftest*
5829 unset am_i
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5832 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5833 if test "$am_cv_prog_cc_c_o" != yes; then
5834 # Losing compiler, so override with the script.
5835 # FIXME: It is wrong to rewrite CC.
5836 # But if we don't then we get into trouble of one sort or another.
5837 # A longer-term fix would be to have automake use am__CC in this case,
5838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5839 CC="$am_aux_dir/compile $CC"
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 depcc="$CC" am_compiler_list=
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5851 $as_echo_n "checking dependency style of $depcc... " >&6; }
5852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5856 # We make a subdir and do the tests there. Otherwise we can end up
5857 # making bogus files that we don't know about and never remove. For
5858 # instance it was reported that on HP-UX the gcc test will end up
5859 # making a dummy file named 'D' -- because '-MD' means "put the output
5860 # in D".
5861 rm -rf conftest.dir
5862 mkdir conftest.dir
5863 # Copy depcomp to subdir because otherwise we won't find it if we're
5864 # using a relative directory.
5865 cp "$am_depcomp" conftest.dir
5866 cd conftest.dir
5867 # We will build objects and dependencies in a subdirectory because
5868 # it helps to detect inapplicable dependency modes. For instance
5869 # both Tru64's cc and ICC support -MD to output dependencies as a
5870 # side effect of compilation, but ICC will put the dependencies in
5871 # the current directory while Tru64 will put them in the object
5872 # directory.
5873 mkdir sub
5875 am_cv_CC_dependencies_compiler_type=none
5876 if test "$am_compiler_list" = ""; then
5877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5879 am__universal=false
5880 case " $depcc " in #(
5881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5882 esac
5884 for depmode in $am_compiler_list; do
5885 # Setup a source with many dependencies, because some compilers
5886 # like to wrap large dependency lists on column 80 (with \), and
5887 # we should not choose a depcomp mode which is confused by this.
5889 # We need to recreate these files for each test, as the compiler may
5890 # overwrite some of them when testing with obscure command lines.
5891 # This happens at least with the AIX C compiler.
5892 : > sub/conftest.c
5893 for i in 1 2 3 4 5 6; do
5894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5896 # Solaris 10 /bin/sh.
5897 echo '/* dummy */' > sub/conftst$i.h
5898 done
5899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5902 # mode. It turns out that the SunPro C++ compiler does not properly
5903 # handle '-M -o', and we need to detect this. Also, some Intel
5904 # versions had trouble with output in subdirs.
5905 am__obj=sub/conftest.${OBJEXT-o}
5906 am__minus_obj="-o $am__obj"
5907 case $depmode in
5908 gcc)
5909 # This depmode causes a compiler race in universal mode.
5910 test "$am__universal" = false || continue
5912 nosideeffect)
5913 # After this tag, mechanisms are not by side-effect, so they'll
5914 # only be used when explicitly requested.
5915 if test "x$enable_dependency_tracking" = xyes; then
5916 continue
5917 else
5918 break
5921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5922 # This compiler won't grok '-c -o', but also, the minuso test has
5923 # not run yet. These depmodes are late enough in the game, and
5924 # so weak that their functioning should not be impacted.
5925 am__obj=conftest.${OBJEXT-o}
5926 am__minus_obj=
5928 none) break ;;
5929 esac
5930 if depmode=$depmode \
5931 source=sub/conftest.c object=$am__obj \
5932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5934 >/dev/null 2>conftest.err &&
5935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5939 # icc doesn't choke on unknown options, it will just issue warnings
5940 # or remarks (even with -Werror). So we grep stderr for any message
5941 # that says an option was ignored or not supported.
5942 # When given -MP, icc 7.0 and 7.1 complain thusly:
5943 # icc: Command line warning: ignoring option '-M'; no argument required
5944 # The diagnosis changed in icc 8.0:
5945 # icc: Command line remark: option '-MP' not supported
5946 if (grep 'ignoring option' conftest.err ||
5947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5948 am_cv_CC_dependencies_compiler_type=$depmode
5949 break
5952 done
5954 cd ..
5955 rm -rf conftest.dir
5956 else
5957 am_cv_CC_dependencies_compiler_type=none
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5966 test "x$enable_dependency_tracking" != xno \
5967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5968 am__fastdepCC_TRUE=
5969 am__fastdepCC_FALSE='#'
5970 else
5971 am__fastdepCC_TRUE='#'
5972 am__fastdepCC_FALSE=
5982 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5983 if test "x$GCC" = "xyes"; then
5984 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5985 ## We like to use C11 and C99 routines when available. This makes
5986 ## sure that
5987 ## __STDC_VERSION__ is set such that libc includes make them available.
5988 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5989 ## Compile the following tests with the same system header contents
5990 ## that we'll encounter when compiling our own source files.
5991 CFLAGS="-std=gnu11 $CFLAGS"
5994 # Add CET specific flags if CET is enabled
5995 # Check whether --enable-cet was given.
5996 if test "${enable_cet+set}" = set; then :
5997 enableval=$enable_cet;
5998 case "$enableval" in
5999 yes|no|auto) ;;
6000 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
6001 esac
6003 else
6004 enable_cet=no
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6009 $as_echo_n "checking for CET support... " >&6; }
6011 case "$host" in
6012 i[34567]86-*-linux* | x86_64-*-linux*)
6013 case "$enable_cet" in
6014 auto)
6015 # Check if target supports multi-byte NOPs
6016 # and if assembler supports CET insn.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6021 main ()
6024 #if !defined(__SSE2__)
6025 #error target does not support multi-byte NOPs
6026 #else
6027 asm ("setssbsy");
6028 #endif
6031 return 0;
6033 _ACEOF
6034 if ac_fn_c_try_compile "$LINENO"; then :
6035 enable_cet=yes
6036 else
6037 enable_cet=no
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 yes)
6042 # Check if assembler supports CET.
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6047 main ()
6049 asm ("setssbsy");
6051 return 0;
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"; then :
6056 else
6057 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 esac
6064 enable_cet=no
6066 esac
6067 if test x$enable_cet = xyes; then
6068 CET_FLAGS="-fcf-protection -mshstk"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070 $as_echo "yes" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6076 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6077 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6078 CFLAGS="$CFLAGS $CET_FLAGS"
6084 # Check for symbol versioning (copied from libssp).
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6086 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6087 # Check whether --enable-symvers was given.
6088 if test "${enable_symvers+set}" = set; then :
6089 enableval=$enable_symvers; gfortran_use_symver=$enableval
6090 else
6091 gfortran_use_symver=yes
6094 if test "x$gfortran_use_symver" != xno; then
6095 save_LDFLAGS="$LDFLAGS"
6096 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6097 cat > conftest.map <<EOF
6098 FOO_1.0 {
6099 global: *foo*; bar; local: *;
6102 if test x$gcc_no_link = xyes; then
6103 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 int foo;
6109 main ()
6113 return 0;
6115 _ACEOF
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 gfortran_use_symver=gnu
6118 else
6119 gfortran_use_symver=no
6121 rm -f core conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6123 if test x$gfortran_use_symver = xno; then
6124 case "$target_os" in
6125 solaris2*)
6126 LDFLAGS="$save_LDFLAGS"
6127 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6128 # Sun ld cannot handle wildcards and treats all entries as undefined.
6129 cat > conftest.map <<EOF
6130 FOO_1.0 {
6131 global: foo; local: *;
6134 if test x$gcc_no_link = xyes; then
6135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 int foo;
6141 main ()
6145 return 0;
6147 _ACEOF
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 gfortran_use_symver=sun
6150 else
6151 gfortran_use_symver=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6156 esac
6158 LDFLAGS="$save_LDFLAGS"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6161 $as_echo "$gfortran_use_symver" >&6; }
6162 if test "x$gfortran_use_symver" != xno; then
6163 LIBGFOR_USE_SYMVER_TRUE=
6164 LIBGFOR_USE_SYMVER_FALSE='#'
6165 else
6166 LIBGFOR_USE_SYMVER_TRUE='#'
6167 LIBGFOR_USE_SYMVER_FALSE=
6170 if test "x$gfortran_use_symver" = xgnu; then
6171 LIBGFOR_USE_SYMVER_GNU_TRUE=
6172 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6173 else
6174 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6175 LIBGFOR_USE_SYMVER_GNU_FALSE=
6178 if test "x$gfortran_use_symver" = xsun; then
6179 LIBGFOR_USE_SYMVER_SUN_TRUE=
6180 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6181 else
6182 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6183 LIBGFOR_USE_SYMVER_SUN_FALSE=
6187 # For GPU offloading, not everything in libfortran can be supported.
6188 # Currently, the only target that has this problem is nvptx. The
6189 # following is a (partial) list of features that are unsupportable on
6190 # this particular target:
6191 # * Constructors
6192 # * alloca
6193 # * C library support for I/O, with printf as the one notable exception
6194 # * C library support for other features such as signal, environment
6195 # variables, time functions
6197 if test "x${target_cpu}" = xnvptx; then
6198 LIBGFOR_MINIMAL_TRUE=
6199 LIBGFOR_MINIMAL_FALSE='#'
6200 else
6201 LIBGFOR_MINIMAL_TRUE='#'
6202 LIBGFOR_MINIMAL_FALSE=
6206 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6207 # similarly to how libstdc++ does it
6208 ac_test_CFLAGS="${CFLAGS+set}"
6209 ac_save_CFLAGS="$CFLAGS"
6211 # Check for -ffunction-sections -fdata-sections
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6213 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6214 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6219 main ()
6221 int foo;
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_fdsections=yes
6228 else
6229 ac_fdsections=no
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 if test "$ac_test_CFLAGS" = set; then
6233 CFLAGS="$ac_save_CFLAGS"
6234 else
6235 # this is the suspicious part
6236 CFLAGS=""
6238 if test x"$ac_fdsections" = x"yes"; then
6239 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6242 $as_echo "$ac_fdsections" >&6; }
6245 # Check linker hardware capability support.
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6247 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6248 if ${ac_cv_path_SED+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6252 for ac_i in 1 2 3 4 5 6 7; do
6253 ac_script="$ac_script$as_nl$ac_script"
6254 done
6255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6256 { ac_script=; unset ac_script;}
6257 if test -z "$SED"; then
6258 ac_path_SED_found=false
6259 # Loop through the user's path and test for each of PROGNAME-LIST
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_prog in sed gsed; do
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_SED" || continue
6269 # Check for GNU ac_path_SED and select it if it is found.
6270 # Check for GNU $ac_path_SED
6271 case `"$ac_path_SED" --version 2>&1` in
6272 *GNU*)
6273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6275 ac_count=0
6276 $as_echo_n 0123456789 >"conftest.in"
6277 while :
6279 cat "conftest.in" "conftest.in" >"conftest.tmp"
6280 mv "conftest.tmp" "conftest.in"
6281 cp "conftest.in" "conftest.nl"
6282 $as_echo '' >> "conftest.nl"
6283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285 as_fn_arith $ac_count + 1 && ac_count=$as_val
6286 if test $ac_count -gt ${ac_path_SED_max-0}; then
6287 # Best one so far, save it but keep looking for a better one
6288 ac_cv_path_SED="$ac_path_SED"
6289 ac_path_SED_max=$ac_count
6291 # 10*(2^10) chars as input seems more than enough
6292 test $ac_count -gt 10 && break
6293 done
6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6295 esac
6297 $ac_path_SED_found && break 3
6298 done
6299 done
6300 done
6301 IFS=$as_save_IFS
6302 if test -z "$ac_cv_path_SED"; then
6303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6305 else
6306 ac_cv_path_SED=$SED
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6311 $as_echo "$ac_cv_path_SED" >&6; }
6312 SED="$ac_cv_path_SED"
6313 rm -f conftest.sed
6315 test -z "$SED" && SED=sed
6316 Xsed="$SED -e 1s/^X//"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6329 $as_echo_n "checking for fgrep... " >&6; }
6330 if ${ac_cv_path_FGREP+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6334 then ac_cv_path_FGREP="$GREP -F"
6335 else
6336 if test -z "$FGREP"; then
6337 ac_path_FGREP_found=false
6338 # Loop through the user's path and test for each of PROGNAME-LIST
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_prog in fgrep; do
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6347 as_fn_executable_p "$ac_path_FGREP" || continue
6348 # Check for GNU ac_path_FGREP and select it if it is found.
6349 # Check for GNU $ac_path_FGREP
6350 case `"$ac_path_FGREP" --version 2>&1` in
6351 *GNU*)
6352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6354 ac_count=0
6355 $as_echo_n 0123456789 >"conftest.in"
6356 while :
6358 cat "conftest.in" "conftest.in" >"conftest.tmp"
6359 mv "conftest.tmp" "conftest.in"
6360 cp "conftest.in" "conftest.nl"
6361 $as_echo 'FGREP' >> "conftest.nl"
6362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6364 as_fn_arith $ac_count + 1 && ac_count=$as_val
6365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6366 # Best one so far, save it but keep looking for a better one
6367 ac_cv_path_FGREP="$ac_path_FGREP"
6368 ac_path_FGREP_max=$ac_count
6370 # 10*(2^10) chars as input seems more than enough
6371 test $ac_count -gt 10 && break
6372 done
6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6374 esac
6376 $ac_path_FGREP_found && break 3
6377 done
6378 done
6379 done
6380 IFS=$as_save_IFS
6381 if test -z "$ac_cv_path_FGREP"; then
6382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6384 else
6385 ac_cv_path_FGREP=$FGREP
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6391 $as_echo "$ac_cv_path_FGREP" >&6; }
6392 FGREP="$ac_cv_path_FGREP"
6395 test -z "$GREP" && GREP=grep
6413 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6418 $as_echo_n "checking how to print strings... " >&6; }
6419 # Test print first, because it will be a builtin if present.
6420 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6421 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6422 ECHO='print -r --'
6423 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6424 ECHO='printf %s\n'
6425 else
6426 # Use this function as a fallback that always works.
6427 func_fallback_echo ()
6429 eval 'cat <<_LTECHO_EOF
6431 _LTECHO_EOF'
6433 ECHO='func_fallback_echo'
6436 # func_echo_all arg...
6437 # Invoke $ECHO with all args, space-separated.
6438 func_echo_all ()
6440 $ECHO ""
6443 case "$ECHO" in
6444 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6445 $as_echo "printf" >&6; } ;;
6446 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6447 $as_echo "print -r" >&6; } ;;
6448 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6449 $as_echo "cat" >&6; } ;;
6450 esac
6467 # Check whether --with-gnu-ld was given.
6468 if test "${with_gnu_ld+set}" = set; then :
6469 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6470 else
6471 with_gnu_ld=no
6474 ac_prog=ld
6475 if test "$GCC" = yes; then
6476 # Check if gcc -print-prog-name=ld gives a path.
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6478 $as_echo_n "checking for ld used by $CC... " >&6; }
6479 case $host in
6480 *-*-mingw*)
6481 # gcc leaves a trailing carriage return which upsets mingw
6482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6485 esac
6486 case $ac_prog in
6487 # Accept absolute paths.
6488 [\\/]* | ?:[\\/]*)
6489 re_direlt='/[^/][^/]*/\.\./'
6490 # Canonicalize the pathname of ld
6491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6494 done
6495 test -z "$LD" && LD="$ac_prog"
6498 # If it fails, then pretend we aren't using GCC.
6499 ac_prog=ld
6502 # If it is relative, then search for the first ld in PATH.
6503 with_gnu_ld=unknown
6505 esac
6506 elif test "$with_gnu_ld" = yes; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6508 $as_echo_n "checking for GNU ld... " >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6511 $as_echo_n "checking for non-GNU ld... " >&6; }
6513 if ${lt_cv_path_LD+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -z "$LD"; then
6517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6518 for ac_dir in $PATH; do
6519 IFS="$lt_save_ifs"
6520 test -z "$ac_dir" && ac_dir=.
6521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6522 lt_cv_path_LD="$ac_dir/$ac_prog"
6523 # Check to see if the program is GNU ld. I'd rather use --version,
6524 # but apparently some variants of GNU ld only accept -v.
6525 # Break only if it was the GNU/non-GNU ld that we prefer.
6526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6527 *GNU* | *'with BFD'*)
6528 test "$with_gnu_ld" != no && break
6531 test "$with_gnu_ld" != yes && break
6533 esac
6535 done
6536 IFS="$lt_save_ifs"
6537 else
6538 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6542 LD="$lt_cv_path_LD"
6543 if test -n "$LD"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6545 $as_echo "$LD" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6550 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6552 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6553 if ${lt_cv_prog_gnu_ld+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6557 case `$LD -v 2>&1 </dev/null` in
6558 *GNU* | *'with BFD'*)
6559 lt_cv_prog_gnu_ld=yes
6562 lt_cv_prog_gnu_ld=no
6564 esac
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6567 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6568 with_gnu_ld=$lt_cv_prog_gnu_ld
6579 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6582 ac_save_LDFLAGS="$LDFLAGS"
6583 LDFLAGS="$LFLAGS -mclear-hwcap"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6586 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6587 if test x$gcc_no_link = xyes; then
6588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6594 main ()
6596 return 0;
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602 ac_hwcap_ldflags=yes
6603 else
6604 ac_hwcap_ldflags=no
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 if test "$ac_hwcap_ldflags" = "yes"; then
6609 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6612 $as_echo "$ac_hwcap_ldflags" >&6; }
6614 LDFLAGS="$ac_save_LDFLAGS"
6618 if test $ac_hwcap_ldflags != no; then
6619 HAVE_HWCAP_TRUE=
6620 HAVE_HWCAP_FALSE='#'
6621 else
6622 HAVE_HWCAP_TRUE='#'
6623 HAVE_HWCAP_FALSE=
6628 # Find other programs we need.
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}as; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_AS+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$AS"; then
6638 ac_cv_prog_AS="$AS" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_AS="${ac_tool_prefix}as"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6653 IFS=$as_save_IFS
6657 AS=$ac_cv_prog_AS
6658 if test -n "$AS"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6660 $as_echo "$AS" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_AS"; then
6669 ac_ct_AS=$AS
6670 # Extract the first word of "as", so it can be a program name with args.
6671 set dummy as; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_AS"; then
6678 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_AS="as"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6698 if test -n "$ac_ct_AS"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6700 $as_echo "$ac_ct_AS" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_AS" = x; then
6707 AS=""
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 AS=$ac_ct_AS
6717 else
6718 AS="$ac_cv_prog_AS"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ar; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_AR+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$AR"; then
6730 ac_cv_prog_AR="$AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_AR="${ac_tool_prefix}ar"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 AR=$ac_cv_prog_AR
6750 if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_AR"; then
6761 ac_ct_AR=$AR
6762 # Extract the first word of "ar", so it can be a program name with args.
6763 set dummy ar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_AR"; then
6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_AR="ar"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790 if test -n "$ac_ct_AR"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792 $as_echo "$ac_ct_AR" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_AR" = x; then
6799 AR=""
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 AR=$ac_ct_AR
6809 else
6810 AR="$ac_cv_prog_AR"
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_RANLIB+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$RANLIB"; then
6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6841 RANLIB=$ac_cv_prog_RANLIB
6842 if test -n "$RANLIB"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6844 $as_echo "$RANLIB" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_RANLIB"; then
6853 ac_ct_RANLIB=$RANLIB
6854 # Extract the first word of "ranlib", so it can be a program name with args.
6855 set dummy ranlib; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_RANLIB"; then
6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_ac_ct_RANLIB="ranlib"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6875 done
6876 done
6877 IFS=$as_save_IFS
6881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6884 $as_echo "$ac_ct_RANLIB" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_RANLIB" = x; then
6891 RANLIB="ranlib-not-found-in-path-error"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 RANLIB=$ac_ct_RANLIB
6901 else
6902 RANLIB="$ac_cv_prog_RANLIB"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6906 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6907 set x ${MAKE-make}
6908 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6909 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 cat >conftest.make <<\_ACEOF
6913 SHELL = /bin/sh
6914 all:
6915 @echo '@@@%%%=$(MAKE)=@@@%%%'
6916 _ACEOF
6917 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6918 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6919 *@@@%%%=?*=@@@%%%*)
6920 eval ac_cv_prog_make_${ac_make}_set=yes;;
6922 eval ac_cv_prog_make_${ac_make}_set=no;;
6923 esac
6924 rm -f conftest.make
6926 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6928 $as_echo "yes" >&6; }
6929 SET_MAKE=
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 SET_MAKE="MAKE=${MAKE-make}"
6938 # Configure libtool
6939 #AC_MSG_NOTICE([====== Starting libtool configuration])
6940 enable_dlopen=yes
6944 case `pwd` in
6945 *\ * | *\ *)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6947 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6948 esac
6952 macro_version='2.2.7a'
6953 macro_revision='1.3134'
6967 ltmain="$ac_aux_dir/ltmain.sh"
6969 # Backslashify metacharacters that are still active within
6970 # double-quoted strings.
6971 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980 # Sed substitution to delay expansion of an escaped single quote.
6981 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6983 # Sed substitution to avoid accidental globbing in evaled expressions
6984 no_glob_subst='s/\*/\\\*/g'
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6987 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6988 if ${lt_cv_path_NM+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$NM"; then
6992 # Let the user override the test.
6993 lt_cv_path_NM="$NM"
6994 else
6995 lt_nm_to_check="${ac_tool_prefix}nm"
6996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6997 lt_nm_to_check="$lt_nm_to_check nm"
6999 for lt_tmp_nm in $lt_nm_to_check; do
7000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7002 IFS="$lt_save_ifs"
7003 test -z "$ac_dir" && ac_dir=.
7004 tmp_nm="$ac_dir/$lt_tmp_nm"
7005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7006 # Check to see if the nm accepts a BSD-compat flag.
7007 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7008 # nm: unknown option "B" ignored
7009 # Tru64's nm complains that /dev/null is an invalid object file
7010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7011 */dev/null* | *'Invalid file or object type'*)
7012 lt_cv_path_NM="$tmp_nm -B"
7013 break
7016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7017 */dev/null*)
7018 lt_cv_path_NM="$tmp_nm -p"
7019 break
7022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7023 continue # so that we can try to find one that supports BSD flags
7025 esac
7027 esac
7029 done
7030 IFS="$lt_save_ifs"
7031 done
7032 : ${lt_cv_path_NM=no}
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7036 $as_echo "$lt_cv_path_NM" >&6; }
7037 if test "$lt_cv_path_NM" != "no"; then
7038 NM="$lt_cv_path_NM"
7039 else
7040 # Didn't find any BSD compatible name lister, look for dumpbin.
7041 if test -n "$DUMPBIN"; then :
7042 # Let the user override the test.
7043 else
7044 if test -n "$ac_tool_prefix"; then
7045 for ac_prog in dumpbin "link -dump"
7047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_DUMPBIN+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$DUMPBIN"; then
7055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7068 done
7069 done
7070 IFS=$as_save_IFS
7074 DUMPBIN=$ac_cv_prog_DUMPBIN
7075 if test -n "$DUMPBIN"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7077 $as_echo "$DUMPBIN" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7084 test -n "$DUMPBIN" && break
7085 done
7087 if test -z "$DUMPBIN"; then
7088 ac_ct_DUMPBIN=$DUMPBIN
7089 for ac_prog in dumpbin "link -dump"
7091 # Extract the first word of "$ac_prog", so it can be a program name with args.
7092 set dummy $ac_prog; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 if test -n "$ac_ct_DUMPBIN"; then
7099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7119 if test -n "$ac_ct_DUMPBIN"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7121 $as_echo "$ac_ct_DUMPBIN" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7128 test -n "$ac_ct_DUMPBIN" && break
7129 done
7131 if test "x$ac_ct_DUMPBIN" = x; then
7132 DUMPBIN=":"
7133 else
7134 case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140 DUMPBIN=$ac_ct_DUMPBIN
7144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7145 *COFF*)
7146 DUMPBIN="$DUMPBIN -symbols"
7149 DUMPBIN=:
7151 esac
7154 if test "$DUMPBIN" != ":"; then
7155 NM="$DUMPBIN"
7158 test -z "$NM" && NM=nm
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7166 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7167 if ${lt_cv_nm_interface+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 lt_cv_nm_interface="BSD nm"
7171 echo "int some_variable = 0;" > conftest.$ac_ext
7172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7173 (eval "$ac_compile" 2>conftest.err)
7174 cat conftest.err >&5
7175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7177 cat conftest.err >&5
7178 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7179 cat conftest.out >&5
7180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7181 lt_cv_nm_interface="MS dumpbin"
7183 rm -f conftest*
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7186 $as_echo "$lt_cv_nm_interface" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7189 $as_echo_n "checking whether ln -s works... " >&6; }
7190 LN_S=$as_ln_s
7191 if test "$LN_S" = "ln -s"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7196 $as_echo "no, using $LN_S" >&6; }
7199 # find the maximum length of command line arguments
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7201 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7202 if ${lt_cv_sys_max_cmd_len+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7206 teststring="ABCD"
7208 case $build_os in
7209 msdosdjgpp*)
7210 # On DJGPP, this test can blow up pretty badly due to problems in libc
7211 # (any single argument exceeding 2000 bytes causes a buffer overrun
7212 # during glob expansion). Even if it were fixed, the result of this
7213 # check would be larger than it should be.
7214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7217 gnu*)
7218 # Under GNU Hurd, this test is not required because there is
7219 # no limit to the length of command line arguments.
7220 # Libtool will interpret -1 as no limit whatsoever
7221 lt_cv_sys_max_cmd_len=-1;
7224 cygwin* | mingw* | cegcc*)
7225 # On Win9x/ME, this test blows up -- it succeeds, but takes
7226 # about 5 minutes as the teststring grows exponentially.
7227 # Worse, since 9x/ME are not pre-emptively multitasking,
7228 # you end up with a "frozen" computer, even though with patience
7229 # the test eventually succeeds (with a max line length of 256k).
7230 # Instead, let's just punt: use the minimum linelength reported by
7231 # all of the supported platforms: 8192 (on NT/2K/XP).
7232 lt_cv_sys_max_cmd_len=8192;
7235 mint*)
7236 # On MiNT this can take a long time and run out of memory.
7237 lt_cv_sys_max_cmd_len=8192;
7240 amigaos*)
7241 # On AmigaOS with pdksh, this test takes hours, literally.
7242 # So we just punt and use a minimum line length of 8192.
7243 lt_cv_sys_max_cmd_len=8192;
7246 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7247 # This has been around since 386BSD, at least. Likely further.
7248 if test -x /sbin/sysctl; then
7249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7250 elif test -x /usr/sbin/sysctl; then
7251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7252 else
7253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7255 # And add a safety zone
7256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7260 interix*)
7261 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7262 lt_cv_sys_max_cmd_len=196608
7265 osf*)
7266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7268 # nice to cause kernel panics so lets avoid the loop below.
7269 # First set a reasonable default.
7270 lt_cv_sys_max_cmd_len=16384
7272 if test -x /sbin/sysconfig; then
7273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7274 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7275 esac
7278 sco3.2v5*)
7279 lt_cv_sys_max_cmd_len=102400
7281 sysv5* | sco5v6* | sysv4.2uw2*)
7282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7283 if test -n "$kargmax"; then
7284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7285 else
7286 lt_cv_sys_max_cmd_len=32768
7290 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7291 if test -n "$lt_cv_sys_max_cmd_len"; then
7292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7294 else
7295 # Make teststring a little bigger before we do anything with it.
7296 # a 1K string should be a reasonable start.
7297 for i in 1 2 3 4 5 6 7 8 ; do
7298 teststring=$teststring$teststring
7299 done
7300 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7301 # If test is not a shell built-in, we'll probably end up computing a
7302 # maximum length that is only half of the actual maximum length, but
7303 # we can't tell.
7304 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7305 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7306 test $i != 17 # 1/2 MB should be enough
7308 i=`expr $i + 1`
7309 teststring=$teststring$teststring
7310 done
7311 # Only check the string length outside the loop.
7312 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7313 teststring=
7314 # Add a significant safety factor because C++ compilers can tack on
7315 # massive amounts of additional arguments before passing them to the
7316 # linker. It appears as though 1/2 is a usable value.
7317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7320 esac
7324 if test -n $lt_cv_sys_max_cmd_len ; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7326 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7329 $as_echo "none" >&6; }
7331 max_cmd_len=$lt_cv_sys_max_cmd_len
7338 : ${CP="cp -f"}
7339 : ${MV="mv -f"}
7340 : ${RM="rm -f"}
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7343 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7344 # Try some XSI features
7345 xsi_shell=no
7346 ( _lt_dummy="a/b/c"
7347 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7348 = c,a/b,, \
7349 && eval 'test $(( 1 + 1 )) -eq 2 \
7350 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7351 && xsi_shell=yes
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7353 $as_echo "$xsi_shell" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7357 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7358 lt_shell_append=no
7359 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7360 >/dev/null 2>&1 \
7361 && lt_shell_append=yes
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7363 $as_echo "$lt_shell_append" >&6; }
7366 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7367 lt_unset=unset
7368 else
7369 lt_unset=false
7376 # test EBCDIC or ASCII
7377 case `echo X|tr X '\101'` in
7378 A) # ASCII based system
7379 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7380 lt_SP2NL='tr \040 \012'
7381 lt_NL2SP='tr \015\012 \040\040'
7383 *) # EBCDIC based system
7384 lt_SP2NL='tr \100 \n'
7385 lt_NL2SP='tr \r\n \100\100'
7387 esac
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7398 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7399 if ${lt_cv_ld_reload_flag+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 lt_cv_ld_reload_flag='-r'
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7405 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7406 reload_flag=$lt_cv_ld_reload_flag
7407 case $reload_flag in
7408 "" | " "*) ;;
7409 *) reload_flag=" $reload_flag" ;;
7410 esac
7411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7412 case $host_os in
7413 darwin*)
7414 if test "$GCC" = yes; then
7415 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7416 else
7417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7420 esac
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_OBJDUMP+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$OBJDUMP"; then
7439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7452 done
7453 done
7454 IFS=$as_save_IFS
7458 OBJDUMP=$ac_cv_prog_OBJDUMP
7459 if test -n "$OBJDUMP"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7461 $as_echo "$OBJDUMP" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7469 if test -z "$ac_cv_prog_OBJDUMP"; then
7470 ac_ct_OBJDUMP=$OBJDUMP
7471 # Extract the first word of "objdump", so it can be a program name with args.
7472 set dummy objdump; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$ac_ct_OBJDUMP"; then
7479 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7492 done
7493 done
7494 IFS=$as_save_IFS
7498 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7499 if test -n "$ac_ct_OBJDUMP"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7501 $as_echo "$ac_ct_OBJDUMP" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7507 if test "x$ac_ct_OBJDUMP" = x; then
7508 OBJDUMP="false"
7509 else
7510 case $cross_compiling:$ac_tool_warned in
7511 yes:)
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514 ac_tool_warned=yes ;;
7515 esac
7516 OBJDUMP=$ac_ct_OBJDUMP
7518 else
7519 OBJDUMP="$ac_cv_prog_OBJDUMP"
7522 test -z "$OBJDUMP" && OBJDUMP=objdump
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7533 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7534 if ${lt_cv_deplibs_check_method+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_file_magic_cmd='$MAGIC_CMD'
7538 lt_cv_file_magic_test_file=
7539 lt_cv_deplibs_check_method='unknown'
7540 # Need to set the preceding variable on all platforms that support
7541 # interlibrary dependencies.
7542 # 'none' -- dependencies not supported.
7543 # `unknown' -- same as none, but documents that we really don't know.
7544 # 'pass_all' -- all dependencies passed with no checks.
7545 # 'test_compile' -- check by making test program.
7546 # 'file_magic [[regex]]' -- check by looking for files in library path
7547 # which responds to the $file_magic_cmd with a given extended regex.
7548 # If you have `file' or equivalent on your system and you're not sure
7549 # whether `pass_all' will *always* work, you probably want this one.
7551 case $host_os in
7552 aix[4-9]*)
7553 lt_cv_deplibs_check_method=pass_all
7556 beos*)
7557 lt_cv_deplibs_check_method=pass_all
7560 bsdi[45]*)
7561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7562 lt_cv_file_magic_cmd='/usr/bin/file -L'
7563 lt_cv_file_magic_test_file=/shlib/libc.so
7566 cygwin*)
7567 # func_win32_libid is a shell function defined in ltmain.sh
7568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7569 lt_cv_file_magic_cmd='func_win32_libid'
7572 mingw* | pw32*)
7573 # Base MSYS/MinGW do not provide the 'file' command needed by
7574 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7575 # unless we find 'file', for example because we are cross-compiling.
7576 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7577 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7579 lt_cv_file_magic_cmd='func_win32_libid'
7580 else
7581 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7582 lt_cv_file_magic_cmd='$OBJDUMP -f'
7586 cegcc*)
7587 # use the weaker test based on 'objdump'. See mingw*.
7588 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7589 lt_cv_file_magic_cmd='$OBJDUMP -f'
7592 darwin* | rhapsody*)
7593 lt_cv_deplibs_check_method=pass_all
7596 freebsd* | dragonfly*)
7597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7598 case $host_cpu in
7599 i*86 )
7600 # Not sure whether the presence of OpenBSD here was a mistake.
7601 # Let's accept both of them until this is cleared up.
7602 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7603 lt_cv_file_magic_cmd=/usr/bin/file
7604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7606 esac
7607 else
7608 lt_cv_deplibs_check_method=pass_all
7612 gnu*)
7613 lt_cv_deplibs_check_method=pass_all
7616 haiku*)
7617 lt_cv_deplibs_check_method=pass_all
7620 hpux10.20* | hpux11*)
7621 lt_cv_file_magic_cmd=/usr/bin/file
7622 case $host_cpu in
7623 ia64*)
7624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7627 hppa*64*)
7628 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]'
7629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7635 esac
7638 interix[3-9]*)
7639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7643 irix5* | irix6* | nonstopux*)
7644 case $LD in
7645 *-32|*"-32 ") libmagic=32-bit;;
7646 *-n32|*"-n32 ") libmagic=N32;;
7647 *-64|*"-64 ") libmagic=64-bit;;
7648 *) libmagic=never-match;;
7649 esac
7650 lt_cv_deplibs_check_method=pass_all
7653 # This must be Linux ELF.
7654 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7655 lt_cv_deplibs_check_method=pass_all
7658 netbsd*)
7659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7661 else
7662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7666 newos6*)
7667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7668 lt_cv_file_magic_cmd=/usr/bin/file
7669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7672 *nto* | *qnx*)
7673 lt_cv_deplibs_check_method=pass_all
7676 openbsd*)
7677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7679 else
7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7684 osf3* | osf4* | osf5*)
7685 lt_cv_deplibs_check_method=pass_all
7688 rdos*)
7689 lt_cv_deplibs_check_method=pass_all
7692 solaris*)
7693 lt_cv_deplibs_check_method=pass_all
7696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7697 lt_cv_deplibs_check_method=pass_all
7700 sysv4 | sysv4.3*)
7701 case $host_vendor in
7702 motorola)
7703 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]'
7704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7706 ncr)
7707 lt_cv_deplibs_check_method=pass_all
7709 sequent)
7710 lt_cv_file_magic_cmd='/bin/file'
7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7713 sni)
7714 lt_cv_file_magic_cmd='/bin/file'
7715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7716 lt_cv_file_magic_test_file=/lib/libc.so
7718 siemens)
7719 lt_cv_deplibs_check_method=pass_all
7722 lt_cv_deplibs_check_method=pass_all
7724 esac
7727 tpf*)
7728 lt_cv_deplibs_check_method=pass_all
7730 esac
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7734 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7735 file_magic_cmd=$lt_cv_file_magic_cmd
7736 deplibs_check_method=$lt_cv_deplibs_check_method
7737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}ar; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_AR+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$AR"; then
7759 ac_cv_prog_AR="$AR" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_AR="${ac_tool_prefix}ar"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7774 IFS=$as_save_IFS
7778 AR=$ac_cv_prog_AR
7779 if test -n "$AR"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7781 $as_echo "$AR" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 if test -z "$ac_cv_prog_AR"; then
7790 ac_ct_AR=$AR
7791 # Extract the first word of "ar", so it can be a program name with args.
7792 set dummy ar; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$ac_ct_AR"; then
7799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_AR="ar"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7819 if test -n "$ac_ct_AR"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7821 $as_echo "$ac_ct_AR" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7827 if test "x$ac_ct_AR" = x; then
7828 AR="false"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 AR=$ac_ct_AR
7838 else
7839 AR="$ac_cv_prog_AR"
7842 test -z "$AR" && AR=ar
7843 test -z "$AR_FLAGS" && AR_FLAGS=cru
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}strip; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_STRIP+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$STRIP"; then
7864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7877 done
7878 done
7879 IFS=$as_save_IFS
7883 STRIP=$ac_cv_prog_STRIP
7884 if test -n "$STRIP"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7886 $as_echo "$STRIP" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7894 if test -z "$ac_cv_prog_STRIP"; then
7895 ac_ct_STRIP=$STRIP
7896 # Extract the first word of "strip", so it can be a program name with args.
7897 set dummy strip; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$ac_ct_STRIP"; then
7904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_STRIP="strip"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7917 done
7918 done
7919 IFS=$as_save_IFS
7923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7924 if test -n "$ac_ct_STRIP"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7926 $as_echo "$ac_ct_STRIP" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7932 if test "x$ac_ct_STRIP" = x; then
7933 STRIP=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941 STRIP=$ac_ct_STRIP
7943 else
7944 STRIP="$ac_cv_prog_STRIP"
7947 test -z "$STRIP" && STRIP=:
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_RANLIB+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7976 done
7977 done
7978 IFS=$as_save_IFS
7982 RANLIB=$ac_cv_prog_RANLIB
7983 if test -n "$RANLIB"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7985 $as_echo "$RANLIB" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_RANLIB"; then
7994 ac_ct_RANLIB=$RANLIB
7995 # Extract the first word of "ranlib", so it can be a program name with args.
7996 set dummy ranlib; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$ac_ct_RANLIB"; then
8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_ac_ct_RANLIB="ranlib"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023 if test -n "$ac_ct_RANLIB"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8025 $as_echo "$ac_ct_RANLIB" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_RANLIB" = x; then
8032 RANLIB=":"
8033 else
8034 case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040 RANLIB=$ac_ct_RANLIB
8042 else
8043 RANLIB="$ac_cv_prog_RANLIB"
8046 test -z "$RANLIB" && RANLIB=:
8053 # Determine commands to create old-style static archives.
8054 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8055 old_postinstall_cmds='chmod 644 $oldlib'
8056 old_postuninstall_cmds=
8058 if test -n "$RANLIB"; then
8059 case $host_os in
8060 openbsd*)
8061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8066 esac
8067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8070 case $host_os in
8071 darwin*)
8072 lock_old_archive_extraction=yes ;;
8074 lock_old_archive_extraction=no ;;
8075 esac
8115 # If no C compiler was specified, use CC.
8116 LTCC=${LTCC-"$CC"}
8118 # If no C compiler flags were specified, use CFLAGS.
8119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8121 # Allow CC to be a program name with arguments.
8122 compiler=$CC
8125 # Check for command to grab the raw symbol name followed by C symbol from nm.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8127 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8128 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8132 # These are sane defaults that work on at least a few old systems.
8133 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8135 # Character class describing NM global symbol codes.
8136 symcode='[BCDEGRST]'
8138 # Regexp to match symbols that can be accessed directly from C.
8139 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8141 # Define system-specific variables.
8142 case $host_os in
8143 aix*)
8144 symcode='[BCDT]'
8146 cygwin* | mingw* | pw32* | cegcc*)
8147 symcode='[ABCDGISTW]'
8149 hpux*)
8150 if test "$host_cpu" = ia64; then
8151 symcode='[ABCDEGRST]'
8154 irix* | nonstopux*)
8155 symcode='[BCDEGRST]'
8157 osf*)
8158 symcode='[BCDEGQRST]'
8160 solaris*)
8161 symcode='[BDRT]'
8163 sco3.2v5*)
8164 symcode='[DT]'
8166 sysv4.2uw2*)
8167 symcode='[DT]'
8169 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8170 symcode='[ABDT]'
8172 sysv4)
8173 symcode='[DFNSTU]'
8175 esac
8177 # If we're using GNU nm, then use its standard symbol codes.
8178 case `$NM -V 2>&1` in
8179 *GNU* | *'with BFD'*)
8180 symcode='[ABCDGIRSTW]' ;;
8181 esac
8183 # Transform an extracted symbol line into a proper C declaration.
8184 # Some systems (esp. on ia64) link data and code symbols differently,
8185 # so use this general approach.
8186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8188 # Transform an extracted symbol line into symbol name and symbol address
8189 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8190 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'"
8192 # Handle CRLF in mingw tool chain
8193 opt_cr=
8194 case $build_os in
8195 mingw*)
8196 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8198 esac
8200 # Try without a prefix underscore, then with it.
8201 for ac_symprfx in "" "_"; do
8203 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8204 symxfrm="\\1 $ac_symprfx\\2 \\2"
8206 # Write the raw and C identifiers.
8207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8208 # Fake it for dumpbin and say T for any non-static function
8209 # and D for any global variable.
8210 # Also find C++ and __fastcall symbols from MSVC++,
8211 # which start with @ or ?.
8212 lt_cv_sys_global_symbol_pipe="$AWK '"\
8213 " {last_section=section; section=\$ 3};"\
8214 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8215 " \$ 0!~/External *\|/{next};"\
8216 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8217 " {if(hide[section]) next};"\
8218 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8219 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8220 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8221 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8222 " ' prfx=^$ac_symprfx"
8223 else
8224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8227 # Check to see that the pipe works correctly.
8228 pipe_works=no
8230 rm -f conftest*
8231 cat > conftest.$ac_ext <<_LT_EOF
8232 #ifdef __cplusplus
8233 extern "C" {
8234 #endif
8235 char nm_test_var;
8236 void nm_test_func(void);
8237 void nm_test_func(void){}
8238 #ifdef __cplusplus
8240 #endif
8241 int main(){nm_test_var='a';nm_test_func();return(0);}
8242 _LT_EOF
8244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8245 (eval $ac_compile) 2>&5
8246 ac_status=$?
8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8248 test $ac_status = 0; }; then
8249 # Now try to grab the symbols.
8250 nlist=conftest.nm
8251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8252 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8253 ac_status=$?
8254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8255 test $ac_status = 0; } && test -s "$nlist"; then
8256 # Try sorting and uniquifying the output.
8257 if sort "$nlist" | uniq > "$nlist"T; then
8258 mv -f "$nlist"T "$nlist"
8259 else
8260 rm -f "$nlist"T
8263 # Make sure that we snagged all the symbols we need.
8264 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8265 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8266 cat <<_LT_EOF > conftest.$ac_ext
8267 #ifdef __cplusplus
8268 extern "C" {
8269 #endif
8271 _LT_EOF
8272 # Now generate the symbol file.
8273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8275 cat <<_LT_EOF >> conftest.$ac_ext
8277 /* The mapping between symbol names and symbols. */
8278 const struct {
8279 const char *name;
8280 void *address;
8282 lt__PROGRAM__LTX_preloaded_symbols[] =
8284 { "@PROGRAM@", (void *) 0 },
8285 _LT_EOF
8286 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8287 cat <<\_LT_EOF >> conftest.$ac_ext
8288 {0, (void *) 0}
8291 /* This works around a problem in FreeBSD linker */
8292 #ifdef FREEBSD_WORKAROUND
8293 static const void *lt_preloaded_setup() {
8294 return lt__PROGRAM__LTX_preloaded_symbols;
8296 #endif
8298 #ifdef __cplusplus
8300 #endif
8301 _LT_EOF
8302 # Now try linking the two files.
8303 mv conftest.$ac_objext conftstm.$ac_objext
8304 lt_save_LIBS="$LIBS"
8305 lt_save_CFLAGS="$CFLAGS"
8306 LIBS="conftstm.$ac_objext"
8307 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8309 (eval $ac_link) 2>&5
8310 ac_status=$?
8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8313 pipe_works=yes
8315 LIBS="$lt_save_LIBS"
8316 CFLAGS="$lt_save_CFLAGS"
8317 else
8318 echo "cannot find nm_test_func in $nlist" >&5
8320 else
8321 echo "cannot find nm_test_var in $nlist" >&5
8323 else
8324 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8326 else
8327 echo "$progname: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 rm -rf conftest* conftst*
8332 # Do not use the global_symbol_pipe unless it works.
8333 if test "$pipe_works" = yes; then
8334 break
8335 else
8336 lt_cv_sys_global_symbol_pipe=
8338 done
8342 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8343 lt_cv_sys_global_symbol_to_cdecl=
8345 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8347 $as_echo "failed" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8350 $as_echo "ok" >&6; }
8374 # Check whether --enable-libtool-lock was given.
8375 if test "${enable_libtool_lock+set}" = set; then :
8376 enableval=$enable_libtool_lock;
8379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8381 # Some flags need to be propagated to the compiler or linker for good
8382 # libtool support.
8383 case $host in
8384 ia64-*-hpux*)
8385 # Find out which ABI we are using.
8386 echo 'int i;' > conftest.$ac_ext
8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8388 (eval $ac_compile) 2>&5
8389 ac_status=$?
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; }; then
8392 case `/usr/bin/file conftest.$ac_objext` in
8393 *ELF-32*)
8394 HPUX_IA64_MODE="32"
8396 *ELF-64*)
8397 HPUX_IA64_MODE="64"
8399 esac
8401 rm -rf conftest*
8403 *-*-irix6*)
8404 # Find out which ABI we are using.
8405 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8407 (eval $ac_compile) 2>&5
8408 ac_status=$?
8409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8410 test $ac_status = 0; }; then
8411 if test "$lt_cv_prog_gnu_ld" = yes; then
8412 case `/usr/bin/file conftest.$ac_objext` in
8413 *32-bit*)
8414 LD="${LD-ld} -melf32bsmip"
8416 *N32*)
8417 LD="${LD-ld} -melf32bmipn32"
8419 *64-bit*)
8420 LD="${LD-ld} -melf64bmip"
8422 esac
8423 else
8424 case `/usr/bin/file conftest.$ac_objext` in
8425 *32-bit*)
8426 LD="${LD-ld} -32"
8428 *N32*)
8429 LD="${LD-ld} -n32"
8431 *64-bit*)
8432 LD="${LD-ld} -64"
8434 esac
8437 rm -rf conftest*
8440 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8441 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8442 # Find out which ABI we are using.
8443 echo 'int i;' > conftest.$ac_ext
8444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8445 (eval $ac_compile) 2>&5
8446 ac_status=$?
8447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8448 test $ac_status = 0; }; then
8449 case `/usr/bin/file conftest.o` in
8450 *32-bit*)
8451 case $host in
8452 x86_64-*kfreebsd*-gnu)
8453 LD="${LD-ld} -m elf_i386_fbsd"
8455 x86_64-*linux*)
8456 case `/usr/bin/file conftest.o` in
8457 *x86-64*)
8458 LD="${LD-ld} -m elf32_x86_64"
8461 LD="${LD-ld} -m elf_i386"
8463 esac
8465 powerpc64le-*linux*)
8466 LD="${LD-ld} -m elf32lppclinux"
8468 powerpc64-*linux*)
8469 LD="${LD-ld} -m elf32ppclinux"
8471 s390x-*linux*)
8472 LD="${LD-ld} -m elf_s390"
8474 sparc64-*linux*)
8475 LD="${LD-ld} -m elf32_sparc"
8477 esac
8479 *64-bit*)
8480 case $host in
8481 x86_64-*kfreebsd*-gnu)
8482 LD="${LD-ld} -m elf_x86_64_fbsd"
8484 x86_64-*linux*)
8485 LD="${LD-ld} -m elf_x86_64"
8487 powerpcle-*linux*)
8488 LD="${LD-ld} -m elf64lppc"
8490 powerpc-*linux*)
8491 LD="${LD-ld} -m elf64ppc"
8493 s390*-*linux*|s390*-*tpf*)
8494 LD="${LD-ld} -m elf64_s390"
8496 sparc*-*linux*)
8497 LD="${LD-ld} -m elf64_sparc"
8499 esac
8501 esac
8503 rm -rf conftest*
8506 *-*-sco3.2v5*)
8507 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8508 SAVE_CFLAGS="$CFLAGS"
8509 CFLAGS="$CFLAGS -belf"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8511 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8512 if ${lt_cv_cc_needs_belf+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 ac_ext=c
8516 ac_cpp='$CPP $CPPFLAGS'
8517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8521 if test x$gcc_no_link = xyes; then
8522 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8528 main ()
8532 return 0;
8534 _ACEOF
8535 if ac_fn_c_try_link "$LINENO"; then :
8536 lt_cv_cc_needs_belf=yes
8537 else
8538 lt_cv_cc_needs_belf=no
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542 ac_ext=c
8543 ac_cpp='$CPP $CPPFLAGS'
8544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8550 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8553 CFLAGS="$SAVE_CFLAGS"
8556 sparc*-*solaris*)
8557 # Find out which ABI we are using.
8558 echo 'int i;' > conftest.$ac_ext
8559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8560 (eval $ac_compile) 2>&5
8561 ac_status=$?
8562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8563 test $ac_status = 0; }; then
8564 case `/usr/bin/file conftest.o` in
8565 *64-bit*)
8566 case $lt_cv_prog_gnu_ld in
8567 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8570 LD="${LD-ld} -64"
8573 esac
8575 esac
8577 rm -rf conftest*
8579 esac
8581 need_locks="$enable_libtool_lock"
8584 case $host_os in
8585 rhapsody* | darwin*)
8586 if test -n "$ac_tool_prefix"; then
8587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8588 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 if test -n "$DSYMUTIL"; then
8595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8596 else
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8608 done
8609 done
8610 IFS=$as_save_IFS
8614 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8615 if test -n "$DSYMUTIL"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8617 $as_echo "$DSYMUTIL" >&6; }
8618 else
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8625 if test -z "$ac_cv_prog_DSYMUTIL"; then
8626 ac_ct_DSYMUTIL=$DSYMUTIL
8627 # Extract the first word of "dsymutil", so it can be a program name with args.
8628 set dummy dsymutil; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 if test -n "$ac_ct_DSYMUTIL"; then
8635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8648 done
8649 done
8650 IFS=$as_save_IFS
8654 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8655 if test -n "$ac_ct_DSYMUTIL"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8657 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8658 else
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8663 if test "x$ac_ct_DSYMUTIL" = x; then
8664 DSYMUTIL=":"
8665 else
8666 case $cross_compiling:$ac_tool_warned in
8667 yes:)
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8670 ac_tool_warned=yes ;;
8671 esac
8672 DSYMUTIL=$ac_ct_DSYMUTIL
8674 else
8675 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if ${ac_cv_prog_NMEDIT+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 if test -n "$NMEDIT"; then
8687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8700 done
8701 done
8702 IFS=$as_save_IFS
8706 NMEDIT=$ac_cv_prog_NMEDIT
8707 if test -n "$NMEDIT"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8709 $as_echo "$NMEDIT" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 if test -z "$ac_cv_prog_NMEDIT"; then
8718 ac_ct_NMEDIT=$NMEDIT
8719 # Extract the first word of "nmedit", so it can be a program name with args.
8720 set dummy nmedit; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 if test -n "$ac_ct_NMEDIT"; then
8727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8742 IFS=$as_save_IFS
8746 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8747 if test -n "$ac_ct_NMEDIT"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8749 $as_echo "$ac_ct_NMEDIT" >&6; }
8750 else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8755 if test "x$ac_ct_NMEDIT" = x; then
8756 NMEDIT=":"
8757 else
8758 case $cross_compiling:$ac_tool_warned in
8759 yes:)
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762 ac_tool_warned=yes ;;
8763 esac
8764 NMEDIT=$ac_ct_NMEDIT
8766 else
8767 NMEDIT="$ac_cv_prog_NMEDIT"
8770 if test -n "$ac_tool_prefix"; then
8771 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8772 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if ${ac_cv_prog_LIPO+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 if test -n "$LIPO"; then
8779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8780 else
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in $PATH
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8792 done
8793 done
8794 IFS=$as_save_IFS
8798 LIPO=$ac_cv_prog_LIPO
8799 if test -n "$LIPO"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8801 $as_echo "$LIPO" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8809 if test -z "$ac_cv_prog_LIPO"; then
8810 ac_ct_LIPO=$LIPO
8811 # Extract the first word of "lipo", so it can be a program name with args.
8812 set dummy lipo; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 if test -n "$ac_ct_LIPO"; then
8819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8820 else
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_prog_ac_ct_LIPO="lipo"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8838 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8839 if test -n "$ac_ct_LIPO"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8841 $as_echo "$ac_ct_LIPO" >&6; }
8842 else
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8847 if test "x$ac_ct_LIPO" = x; then
8848 LIPO=":"
8849 else
8850 case $cross_compiling:$ac_tool_warned in
8851 yes:)
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8854 ac_tool_warned=yes ;;
8855 esac
8856 LIPO=$ac_ct_LIPO
8858 else
8859 LIPO="$ac_cv_prog_LIPO"
8862 if test -n "$ac_tool_prefix"; then
8863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8864 set dummy ${ac_tool_prefix}otool; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_OTOOL+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 if test -n "$OTOOL"; then
8871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8884 done
8885 done
8886 IFS=$as_save_IFS
8890 OTOOL=$ac_cv_prog_OTOOL
8891 if test -n "$OTOOL"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8893 $as_echo "$OTOOL" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8901 if test -z "$ac_cv_prog_OTOOL"; then
8902 ac_ct_OTOOL=$OTOOL
8903 # Extract the first word of "otool", so it can be a program name with args.
8904 set dummy otool; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 if test -n "$ac_ct_OTOOL"; then
8911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8912 else
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_ac_ct_OTOOL="otool"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8924 done
8925 done
8926 IFS=$as_save_IFS
8930 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8931 if test -n "$ac_ct_OTOOL"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8933 $as_echo "$ac_ct_OTOOL" >&6; }
8934 else
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8939 if test "x$ac_ct_OTOOL" = x; then
8940 OTOOL=":"
8941 else
8942 case $cross_compiling:$ac_tool_warned in
8943 yes:)
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8946 ac_tool_warned=yes ;;
8947 esac
8948 OTOOL=$ac_ct_OTOOL
8950 else
8951 OTOOL="$ac_cv_prog_OTOOL"
8954 if test -n "$ac_tool_prefix"; then
8955 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8956 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if ${ac_cv_prog_OTOOL64+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$OTOOL64"; then
8963 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8982 OTOOL64=$ac_cv_prog_OTOOL64
8983 if test -n "$OTOOL64"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8985 $as_echo "$OTOOL64" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8993 if test -z "$ac_cv_prog_OTOOL64"; then
8994 ac_ct_OTOOL64=$OTOOL64
8995 # Extract the first word of "otool64", so it can be a program name with args.
8996 set dummy otool64; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 if test -n "$ac_ct_OTOOL64"; then
9003 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9012 ac_cv_prog_ac_ct_OTOOL64="otool64"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9016 done
9017 done
9018 IFS=$as_save_IFS
9022 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9023 if test -n "$ac_ct_OTOOL64"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9025 $as_echo "$ac_ct_OTOOL64" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9031 if test "x$ac_ct_OTOOL64" = x; then
9032 OTOOL64=":"
9033 else
9034 case $cross_compiling:$ac_tool_warned in
9035 yes:)
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9038 ac_tool_warned=yes ;;
9039 esac
9040 OTOOL64=$ac_ct_OTOOL64
9042 else
9043 OTOOL64="$ac_cv_prog_OTOOL64"
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9073 $as_echo_n "checking for -single_module linker flag... " >&6; }
9074 if ${lt_cv_apple_cc_single_mod+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 lt_cv_apple_cc_single_mod=no
9078 if test -z "${LT_MULTI_MODULE}"; then
9079 # By default we will add the -single_module flag. You can override
9080 # by either setting the environment variable LT_MULTI_MODULE
9081 # non-empty at configure time, or by adding -multi_module to the
9082 # link flags.
9083 rm -rf libconftest.dylib*
9084 echo "int foo(void){return 1;}" > conftest.c
9085 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9086 -dynamiclib -Wl,-single_module conftest.c" >&5
9087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9088 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9089 _lt_result=$?
9090 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9091 lt_cv_apple_cc_single_mod=yes
9092 else
9093 cat conftest.err >&5
9095 rm -rf libconftest.dylib*
9096 rm -f conftest.*
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9100 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9102 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9103 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 lt_cv_ld_exported_symbols_list=no
9107 save_LDFLAGS=$LDFLAGS
9108 echo "_main" > conftest.sym
9109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9110 if test x$gcc_no_link = xyes; then
9111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9117 main ()
9121 return 0;
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125 lt_cv_ld_exported_symbols_list=yes
9126 else
9127 lt_cv_ld_exported_symbols_list=no
9129 rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LDFLAGS="$save_LDFLAGS"
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9135 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9137 $as_echo_n "checking for -force_load linker flag... " >&6; }
9138 if ${lt_cv_ld_force_load+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_ld_force_load=no
9142 cat > conftest.c << _LT_EOF
9143 int forced_loaded() { return 2;}
9144 _LT_EOF
9145 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9146 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9147 echo "$AR cru libconftest.a conftest.o" >&5
9148 $AR cru libconftest.a conftest.o 2>&5
9149 cat > conftest.c << _LT_EOF
9150 int main() { return 0;}
9151 _LT_EOF
9152 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9153 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9154 _lt_result=$?
9155 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9156 lt_cv_ld_force_load=yes
9157 else
9158 cat conftest.err >&5
9160 rm -f conftest.err libconftest.a conftest conftest.c
9161 rm -rf conftest.dSYM
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9165 $as_echo "$lt_cv_ld_force_load" >&6; }
9166 case $host_os in
9167 rhapsody* | darwin1.[012])
9168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9169 darwin1.*)
9170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9171 darwin*) # darwin 5.x on
9172 # if running on 10.5 or later, the deployment target defaults
9173 # to the OS version, if on x86, and 10.4, the deployment
9174 # target defaults to 10.4. Don't you love it?
9175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9176 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9178 10.[012][,.]*)
9179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9180 10.*)
9181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9182 esac
9184 esac
9185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9186 _lt_dar_single_mod='$single_module'
9188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9190 else
9191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9193 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9194 _lt_dsymutil='~$DSYMUTIL $lib || :'
9195 else
9196 _lt_dsymutil=
9199 esac
9201 for ac_header in dlfcn.h
9202 do :
9203 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9205 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_DLFCN_H 1
9208 _ACEOF
9212 done
9218 # Set options
9223 enable_win32_dll=no
9226 # Check whether --enable-shared was given.
9227 if test "${enable_shared+set}" = set; then :
9228 enableval=$enable_shared; p=${PACKAGE-default}
9229 case $enableval in
9230 yes) enable_shared=yes ;;
9231 no) enable_shared=no ;;
9233 enable_shared=no
9234 # Look at the argument we got. We use all the common list separators.
9235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9236 for pkg in $enableval; do
9237 IFS="$lt_save_ifs"
9238 if test "X$pkg" = "X$p"; then
9239 enable_shared=yes
9241 done
9242 IFS="$lt_save_ifs"
9244 esac
9245 else
9246 enable_shared=yes
9257 # Check whether --enable-static was given.
9258 if test "${enable_static+set}" = set; then :
9259 enableval=$enable_static; p=${PACKAGE-default}
9260 case $enableval in
9261 yes) enable_static=yes ;;
9262 no) enable_static=no ;;
9264 enable_static=no
9265 # Look at the argument we got. We use all the common list separators.
9266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9267 for pkg in $enableval; do
9268 IFS="$lt_save_ifs"
9269 if test "X$pkg" = "X$p"; then
9270 enable_static=yes
9272 done
9273 IFS="$lt_save_ifs"
9275 esac
9276 else
9277 enable_static=yes
9289 # Check whether --with-pic was given.
9290 if test "${with_pic+set}" = set; then :
9291 withval=$with_pic; pic_mode="$withval"
9292 else
9293 pic_mode=default
9297 test -z "$pic_mode" && pic_mode=default
9305 # Check whether --enable-fast-install was given.
9306 if test "${enable_fast_install+set}" = set; then :
9307 enableval=$enable_fast_install; p=${PACKAGE-default}
9308 case $enableval in
9309 yes) enable_fast_install=yes ;;
9310 no) enable_fast_install=no ;;
9312 enable_fast_install=no
9313 # Look at the argument we got. We use all the common list separators.
9314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9315 for pkg in $enableval; do
9316 IFS="$lt_save_ifs"
9317 if test "X$pkg" = "X$p"; then
9318 enable_fast_install=yes
9320 done
9321 IFS="$lt_save_ifs"
9323 esac
9324 else
9325 enable_fast_install=yes
9338 # This can be used to rebuild libtool when needed
9339 LIBTOOL_DEPS="$ltmain"
9341 # Always use our own libtool.
9342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9369 test -z "$LN_S" && LN_S="ln -s"
9384 if test -n "${ZSH_VERSION+set}" ; then
9385 setopt NO_GLOB_SUBST
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9389 $as_echo_n "checking for objdir... " >&6; }
9390 if ${lt_cv_objdir+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 rm -f .libs 2>/dev/null
9394 mkdir .libs 2>/dev/null
9395 if test -d .libs; then
9396 lt_cv_objdir=.libs
9397 else
9398 # MS-DOS does not allow filenames that begin with a dot.
9399 lt_cv_objdir=_libs
9401 rmdir .libs 2>/dev/null
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9404 $as_echo "$lt_cv_objdir" >&6; }
9405 objdir=$lt_cv_objdir
9411 cat >>confdefs.h <<_ACEOF
9412 #define LT_OBJDIR "$lt_cv_objdir/"
9413 _ACEOF
9418 case $host_os in
9419 aix3*)
9420 # AIX sometimes has problems with the GCC collect2 program. For some
9421 # reason, if we set the COLLECT_NAMES environment variable, the problems
9422 # vanish in a puff of smoke.
9423 if test "X${COLLECT_NAMES+set}" != Xset; then
9424 COLLECT_NAMES=
9425 export COLLECT_NAMES
9428 esac
9430 # Global variables:
9431 ofile=libtool
9432 can_build_shared=yes
9434 # All known linkers require a `.a' archive for static linking (except MSVC,
9435 # which needs '.lib').
9436 libext=a
9438 with_gnu_ld="$lt_cv_prog_gnu_ld"
9440 old_CC="$CC"
9441 old_CFLAGS="$CFLAGS"
9443 # Set sane defaults for various variables
9444 test -z "$CC" && CC=cc
9445 test -z "$LTCC" && LTCC=$CC
9446 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9447 test -z "$LD" && LD=ld
9448 test -z "$ac_objext" && ac_objext=o
9450 for cc_temp in $compiler""; do
9451 case $cc_temp in
9452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9454 \-*) ;;
9455 *) break;;
9456 esac
9457 done
9458 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9461 # Only perform the check for file, if the check method requires it
9462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9463 case $deplibs_check_method in
9464 file_magic*)
9465 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9467 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9468 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 case $MAGIC_CMD in
9472 [\\/*] | ?:[\\/]*)
9473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9476 lt_save_MAGIC_CMD="$MAGIC_CMD"
9477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9479 for ac_dir in $ac_dummy; do
9480 IFS="$lt_save_ifs"
9481 test -z "$ac_dir" && ac_dir=.
9482 if test -f $ac_dir/${ac_tool_prefix}file; then
9483 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9484 if test -n "$file_magic_test_file"; then
9485 case $deplibs_check_method in
9486 "file_magic "*)
9487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9490 $EGREP "$file_magic_regex" > /dev/null; then
9492 else
9493 cat <<_LT_EOF 1>&2
9495 *** Warning: the command libtool uses to detect shared libraries,
9496 *** $file_magic_cmd, produces output that libtool cannot recognize.
9497 *** The result is that libtool may fail to recognize shared libraries
9498 *** as such. This will affect the creation of libtool libraries that
9499 *** depend on shared libraries, but programs linked with such libtool
9500 *** libraries will work regardless of this problem. Nevertheless, you
9501 *** may want to report the problem to your system manager and/or to
9502 *** bug-libtool@gnu.org
9504 _LT_EOF
9505 fi ;;
9506 esac
9508 break
9510 done
9511 IFS="$lt_save_ifs"
9512 MAGIC_CMD="$lt_save_MAGIC_CMD"
9514 esac
9517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9518 if test -n "$MAGIC_CMD"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9520 $as_echo "$MAGIC_CMD" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9530 if test -z "$lt_cv_path_MAGIC_CMD"; then
9531 if test -n "$ac_tool_prefix"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9533 $as_echo_n "checking for file... " >&6; }
9534 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 case $MAGIC_CMD in
9538 [\\/*] | ?:[\\/]*)
9539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9542 lt_save_MAGIC_CMD="$MAGIC_CMD"
9543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9544 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9545 for ac_dir in $ac_dummy; do
9546 IFS="$lt_save_ifs"
9547 test -z "$ac_dir" && ac_dir=.
9548 if test -f $ac_dir/file; then
9549 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9550 if test -n "$file_magic_test_file"; then
9551 case $deplibs_check_method in
9552 "file_magic "*)
9553 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9556 $EGREP "$file_magic_regex" > /dev/null; then
9558 else
9559 cat <<_LT_EOF 1>&2
9561 *** Warning: the command libtool uses to detect shared libraries,
9562 *** $file_magic_cmd, produces output that libtool cannot recognize.
9563 *** The result is that libtool may fail to recognize shared libraries
9564 *** as such. This will affect the creation of libtool libraries that
9565 *** depend on shared libraries, but programs linked with such libtool
9566 *** libraries will work regardless of this problem. Nevertheless, you
9567 *** may want to report the problem to your system manager and/or to
9568 *** bug-libtool@gnu.org
9570 _LT_EOF
9571 fi ;;
9572 esac
9574 break
9576 done
9577 IFS="$lt_save_ifs"
9578 MAGIC_CMD="$lt_save_MAGIC_CMD"
9580 esac
9583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9584 if test -n "$MAGIC_CMD"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9586 $as_echo "$MAGIC_CMD" >&6; }
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9593 else
9594 MAGIC_CMD=:
9600 esac
9602 # Use C for the default configuration in the libtool script
9604 lt_save_CC="$CC"
9605 ac_ext=c
9606 ac_cpp='$CPP $CPPFLAGS'
9607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9612 # Source file extension for C test sources.
9613 ac_ext=c
9615 # Object file extension for compiled C test sources.
9616 objext=o
9617 objext=$objext
9619 # Code to be used in simple compile tests
9620 lt_simple_compile_test_code="int some_variable = 0;"
9622 # Code to be used in simple link tests
9623 lt_simple_link_test_code='int main(){return(0);}'
9631 # If no C compiler was specified, use CC.
9632 LTCC=${LTCC-"$CC"}
9634 # If no C compiler flags were specified, use CFLAGS.
9635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9637 # Allow CC to be a program name with arguments.
9638 compiler=$CC
9640 # Save the default compiler, since it gets overwritten when the other
9641 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9642 compiler_DEFAULT=$CC
9644 # save warnings/boilerplate of simple test code
9645 ac_outfile=conftest.$ac_objext
9646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9648 _lt_compiler_boilerplate=`cat conftest.err`
9649 $RM conftest*
9651 ac_outfile=conftest.$ac_objext
9652 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9654 _lt_linker_boilerplate=`cat conftest.err`
9655 $RM -r conftest*
9658 ## CAVEAT EMPTOR:
9659 ## There is no encapsulation within the following macros, do not change
9660 ## the running order or otherwise move them around unless you know exactly
9661 ## what you are doing...
9662 if test -n "$compiler"; then
9664 lt_prog_compiler_no_builtin_flag=
9666 if test "$GCC" = yes; then
9667 case $cc_basename in
9668 nvcc*)
9669 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9671 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9672 esac
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9675 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9676 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 lt_cv_prog_compiler_rtti_exceptions=no
9680 ac_outfile=conftest.$ac_objext
9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9682 lt_compiler_flag="-fno-rtti -fno-exceptions"
9683 # Insert the option either (1) after the last *FLAGS variable, or
9684 # (2) before a word containing "conftest.", or (3) at the end.
9685 # Note that $ac_compile itself does not contain backslashes and begins
9686 # with a dollar sign (not a hyphen), so the echo should work correctly.
9687 # The option is referenced via a variable to avoid confusing sed.
9688 lt_compile=`echo "$ac_compile" | $SED \
9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9691 -e 's:$: $lt_compiler_flag:'`
9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9693 (eval "$lt_compile" 2>conftest.err)
9694 ac_status=$?
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 if (exit $ac_status) && test -s "$ac_outfile"; then
9698 # The compiler can only warn and ignore the option if not recognized
9699 # So say no if there are warnings other than the usual output.
9700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9703 lt_cv_prog_compiler_rtti_exceptions=yes
9706 $RM conftest*
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9710 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9714 else
9725 lt_prog_compiler_wl=
9726 lt_prog_compiler_pic=
9727 lt_prog_compiler_static=
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9730 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9732 if test "$GCC" = yes; then
9733 lt_prog_compiler_wl='-Wl,'
9734 lt_prog_compiler_static='-static'
9736 case $host_os in
9737 aix*)
9738 # All AIX code is PIC.
9739 if test "$host_cpu" = ia64; then
9740 # AIX 5 now supports IA64 processor
9741 lt_prog_compiler_static='-Bstatic'
9743 lt_prog_compiler_pic='-fPIC'
9746 amigaos*)
9747 case $host_cpu in
9748 powerpc)
9749 # see comment about AmigaOS4 .so support
9750 lt_prog_compiler_pic='-fPIC'
9752 m68k)
9753 # FIXME: we need at least 68020 code to build shared libraries, but
9754 # adding the `-m68020' flag to GCC prevents building anything better,
9755 # like `-m68040'.
9756 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9758 esac
9761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9762 # PIC is the default for these OSes.
9765 mingw* | cygwin* | pw32* | os2* | cegcc*)
9766 # This hack is so that the source file can tell whether it is being
9767 # built for inclusion in a dll (and should export symbols for example).
9768 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9769 # (--disable-auto-import) libraries
9770 lt_prog_compiler_pic='-DDLL_EXPORT'
9773 darwin* | rhapsody*)
9774 # PIC is the default on this platform
9775 # Common symbols not allowed in MH_DYLIB files
9776 lt_prog_compiler_pic='-fno-common'
9779 haiku*)
9780 # PIC is the default for Haiku.
9781 # The "-static" flag exists, but is broken.
9782 lt_prog_compiler_static=
9785 hpux*)
9786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9788 # sets the default TLS model and affects inlining.
9789 case $host_cpu in
9790 hppa*64*)
9791 # +Z the default
9794 lt_prog_compiler_pic='-fPIC'
9796 esac
9799 interix[3-9]*)
9800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9801 # Instead, we relocate shared libraries at runtime.
9804 msdosdjgpp*)
9805 # Just because we use GCC doesn't mean we suddenly get shared libraries
9806 # on systems that don't support them.
9807 lt_prog_compiler_can_build_shared=no
9808 enable_shared=no
9811 *nto* | *qnx*)
9812 # QNX uses GNU C++, but need to define -shared option too, otherwise
9813 # it will coredump.
9814 lt_prog_compiler_pic='-fPIC -shared'
9817 sysv4*MP*)
9818 if test -d /usr/nec; then
9819 lt_prog_compiler_pic=-Kconform_pic
9824 lt_prog_compiler_pic='-fPIC'
9826 esac
9828 case $cc_basename in
9829 nvcc*) # Cuda Compiler Driver 2.2
9830 lt_prog_compiler_wl='-Xlinker '
9831 lt_prog_compiler_pic='-Xcompiler -fPIC'
9833 esac
9834 else
9835 # PORTME Check for flag to pass linker flags through the system compiler.
9836 case $host_os in
9837 aix*)
9838 lt_prog_compiler_wl='-Wl,'
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 now supports IA64 processor
9841 lt_prog_compiler_static='-Bstatic'
9842 else
9843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9847 mingw* | cygwin* | pw32* | os2* | cegcc*)
9848 # This hack is so that the source file can tell whether it is being
9849 # built for inclusion in a dll (and should export symbols for example).
9850 lt_prog_compiler_pic='-DDLL_EXPORT'
9853 hpux9* | hpux10* | hpux11*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856 # not for PA HP-UX.
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 # +Z the default
9862 lt_prog_compiler_pic='+Z'
9864 esac
9865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866 lt_prog_compiler_static='${wl}-a ${wl}archive'
9869 irix5* | irix6* | nonstopux*)
9870 lt_prog_compiler_wl='-Wl,'
9871 # PIC (with -KPIC) is the default.
9872 lt_prog_compiler_static='-non_shared'
9875 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9876 case $cc_basename in
9877 # old Intel for x86_64 which still supported -KPIC.
9878 ecc*)
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-static'
9883 # icc used to be incompatible with GCC.
9884 # ICC 10 doesn't accept -KPIC any more.
9885 icc* | ifort*)
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='-fPIC'
9888 lt_prog_compiler_static='-static'
9890 # Lahey Fortran 8.1.
9891 lf95*)
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='--shared'
9894 lt_prog_compiler_static='--static'
9896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897 # Portland Group compilers (*not* the Pentium gcc compiler,
9898 # which looks to be a dead project)
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_pic='-fpic'
9901 lt_prog_compiler_static='-Bstatic'
9903 ccc*)
9904 lt_prog_compiler_wl='-Wl,'
9905 # All Alpha code is PIC.
9906 lt_prog_compiler_static='-non_shared'
9908 xl* | bgxl* | bgf* | mpixl*)
9909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='-qpic'
9912 lt_prog_compiler_static='-qstaticlink'
9915 case `$CC -V 2>&1 | sed 5q` in
9916 *Sun\ F* | *Sun*Fortran*)
9917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl=''
9922 *Sun\ C*)
9923 # Sun C 5.9
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl='-Wl,'
9928 esac
9930 esac
9933 newsos6)
9934 lt_prog_compiler_pic='-KPIC'
9935 lt_prog_compiler_static='-Bstatic'
9938 *nto* | *qnx*)
9939 # QNX uses GNU C++, but need to define -shared option too, otherwise
9940 # it will coredump.
9941 lt_prog_compiler_pic='-fPIC -shared'
9944 osf3* | osf4* | osf5*)
9945 lt_prog_compiler_wl='-Wl,'
9946 # All OSF/1 code is PIC.
9947 lt_prog_compiler_static='-non_shared'
9950 rdos*)
9951 lt_prog_compiler_static='-non_shared'
9954 solaris*)
9955 lt_prog_compiler_pic='-KPIC'
9956 lt_prog_compiler_static='-Bstatic'
9957 case $cc_basename in
9958 f77* | f90* | f95*)
9959 lt_prog_compiler_wl='-Qoption ld ';;
9961 lt_prog_compiler_wl='-Wl,';;
9962 esac
9965 sunos4*)
9966 lt_prog_compiler_wl='-Qoption ld '
9967 lt_prog_compiler_pic='-PIC'
9968 lt_prog_compiler_static='-Bstatic'
9971 sysv4 | sysv4.2uw2* | sysv4.3*)
9972 lt_prog_compiler_wl='-Wl,'
9973 lt_prog_compiler_pic='-KPIC'
9974 lt_prog_compiler_static='-Bstatic'
9977 sysv4*MP*)
9978 if test -d /usr/nec ;then
9979 lt_prog_compiler_pic='-Kconform_pic'
9980 lt_prog_compiler_static='-Bstatic'
9984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_pic='-KPIC'
9987 lt_prog_compiler_static='-Bstatic'
9990 unicos*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_can_build_shared=no
9995 uts4*)
9996 lt_prog_compiler_pic='-pic'
9997 lt_prog_compiler_static='-Bstatic'
10001 lt_prog_compiler_can_build_shared=no
10003 esac
10006 case $host_os in
10007 # For platforms which do not support PIC, -DPIC is meaningless:
10008 *djgpp*)
10009 lt_prog_compiler_pic=
10012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10014 esac
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10016 $as_echo "$lt_prog_compiler_pic" >&6; }
10024 # Check to make sure the PIC flag actually works.
10026 if test -n "$lt_prog_compiler_pic"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10029 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 lt_cv_prog_compiler_pic_works=no
10033 ac_outfile=conftest.$ac_objext
10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10035 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10036 # Insert the option either (1) after the last *FLAGS variable, or
10037 # (2) before a word containing "conftest.", or (3) at the end.
10038 # Note that $ac_compile itself does not contain backslashes and begins
10039 # with a dollar sign (not a hyphen), so the echo should work correctly.
10040 # The option is referenced via a variable to avoid confusing sed.
10041 lt_compile=`echo "$ac_compile" | $SED \
10042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10044 -e 's:$: $lt_compiler_flag:'`
10045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10046 (eval "$lt_compile" 2>conftest.err)
10047 ac_status=$?
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 if (exit $ac_status) && test -s "$ac_outfile"; then
10051 # The compiler can only warn and ignore the option if not recognized
10052 # So say no if there are warnings other than the usual output.
10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler_pic_works=yes
10059 $RM conftest*
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10063 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10065 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10066 case $lt_prog_compiler_pic in
10067 "" | " "*) ;;
10068 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10069 esac
10070 else
10071 lt_prog_compiler_pic=
10072 lt_prog_compiler_can_build_shared=no
10083 # Check to make sure the static flag actually works.
10085 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10087 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10088 if ${lt_cv_prog_compiler_static_works+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 lt_cv_prog_compiler_static_works=no
10092 save_LDFLAGS="$LDFLAGS"
10093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10096 # The linker can only warn and ignore the option if not recognized
10097 # So say no if there are warnings
10098 if test -s conftest.err; then
10099 # Append any errors to the config.log.
10100 cat conftest.err 1>&5
10101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10103 if diff conftest.exp conftest.er2 >/dev/null; then
10104 lt_cv_prog_compiler_static_works=yes
10106 else
10107 lt_cv_prog_compiler_static_works=yes
10110 $RM -r conftest*
10111 LDFLAGS="$save_LDFLAGS"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10115 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10117 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10119 else
10120 lt_prog_compiler_static=
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10131 if ${lt_cv_prog_compiler_c_o+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 lt_cv_prog_compiler_c_o=no
10135 $RM -r conftest 2>/dev/null
10136 mkdir conftest
10137 cd conftest
10138 mkdir out
10139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10141 lt_compiler_flag="-o out/conftest2.$ac_objext"
10142 # Insert the option either (1) after the last *FLAGS variable, or
10143 # (2) before a word containing "conftest.", or (3) at the end.
10144 # Note that $ac_compile itself does not contain backslashes and begins
10145 # with a dollar sign (not a hyphen), so the echo should work correctly.
10146 lt_compile=`echo "$ac_compile" | $SED \
10147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10149 -e 's:$: $lt_compiler_flag:'`
10150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10151 (eval "$lt_compile" 2>out/conftest.err)
10152 ac_status=$?
10153 cat out/conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10156 then
10157 # The compiler can only warn and ignore the option if not recognized
10158 # So say no if there are warnings
10159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10162 lt_cv_prog_compiler_c_o=yes
10165 chmod u+w . 2>&5
10166 $RM conftest*
10167 # SGI C++ compiler will create directory out/ii_files/ for
10168 # template instantiation
10169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10170 $RM out/* && rmdir out
10171 cd ..
10172 $RM -r conftest
10173 $RM conftest*
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10186 if ${lt_cv_prog_compiler_c_o+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 lt_cv_prog_compiler_c_o=no
10190 $RM -r conftest 2>/dev/null
10191 mkdir conftest
10192 cd conftest
10193 mkdir out
10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196 lt_compiler_flag="-o out/conftest2.$ac_objext"
10197 # Insert the option either (1) after the last *FLAGS variable, or
10198 # (2) before a word containing "conftest.", or (3) at the end.
10199 # Note that $ac_compile itself does not contain backslashes and begins
10200 # with a dollar sign (not a hyphen), so the echo should work correctly.
10201 lt_compile=`echo "$ac_compile" | $SED \
10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204 -e 's:$: $lt_compiler_flag:'`
10205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10206 (eval "$lt_compile" 2>out/conftest.err)
10207 ac_status=$?
10208 cat out/conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10211 then
10212 # The compiler can only warn and ignore the option if not recognized
10213 # So say no if there are warnings
10214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10217 lt_cv_prog_compiler_c_o=yes
10220 chmod u+w . 2>&5
10221 $RM conftest*
10222 # SGI C++ compiler will create directory out/ii_files/ for
10223 # template instantiation
10224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10225 $RM out/* && rmdir out
10226 cd ..
10227 $RM -r conftest
10228 $RM conftest*
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10237 hard_links="nottested"
10238 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10239 # do not overwrite the value of need_locks provided by the user
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10241 $as_echo_n "checking if we can lock with hard links... " >&6; }
10242 hard_links=yes
10243 $RM conftest*
10244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10245 touch conftest.a
10246 ln conftest.a conftest.b 2>&5 || hard_links=no
10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10249 $as_echo "$hard_links" >&6; }
10250 if test "$hard_links" = no; then
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10252 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10253 need_locks=warn
10255 else
10256 need_locks=no
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10265 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10267 runpath_var=
10268 allow_undefined_flag=
10269 always_export_symbols=no
10270 archive_cmds=
10271 archive_expsym_cmds=
10272 compiler_needs_object=no
10273 enable_shared_with_static_runtimes=no
10274 export_dynamic_flag_spec=
10275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10276 hardcode_automatic=no
10277 hardcode_direct=no
10278 hardcode_direct_absolute=no
10279 hardcode_libdir_flag_spec=
10280 hardcode_libdir_flag_spec_ld=
10281 hardcode_libdir_separator=
10282 hardcode_minus_L=no
10283 hardcode_shlibpath_var=unsupported
10284 inherit_rpath=no
10285 link_all_deplibs=unknown
10286 module_cmds=
10287 module_expsym_cmds=
10288 old_archive_from_new_cmds=
10289 old_archive_from_expsyms_cmds=
10290 thread_safe_flag_spec=
10291 whole_archive_flag_spec=
10292 # include_expsyms should be a list of space-separated symbols to be *always*
10293 # included in the symbol list
10294 include_expsyms=
10295 # exclude_expsyms can be an extended regexp of symbols to exclude
10296 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10298 # as well as any symbol that contains `d'.
10299 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10301 # platforms (ab)use it in PIC code, but their linkers get confused if
10302 # the symbol is explicitly referenced. Since portable code cannot
10303 # rely on this symbol name, it's probably fine to never include it in
10304 # preloaded symbol tables.
10305 # Exclude shared library initialization/finalization symbols.
10306 extract_expsyms_cmds=
10308 case $host_os in
10309 cygwin* | mingw* | pw32* | cegcc*)
10310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311 # When not using gcc, we currently assume that we are using
10312 # Microsoft Visual C++.
10313 if test "$GCC" != yes; then
10314 with_gnu_ld=no
10317 interix*)
10318 # we just hope/assume this is gcc and not c89 (= MSVC++)
10319 with_gnu_ld=yes
10321 openbsd*)
10322 with_gnu_ld=no
10324 esac
10326 ld_shlibs=yes
10328 # On some targets, GNU ld is compatible enough with the native linker
10329 # that we're better off using the native interface for both.
10330 lt_use_gnu_ld_interface=no
10331 if test "$with_gnu_ld" = yes; then
10332 case $host_os in
10333 aix*)
10334 # The AIX port of GNU ld has always aspired to compatibility
10335 # with the native linker. However, as the warning in the GNU ld
10336 # block says, versions before 2.19.5* couldn't really create working
10337 # shared libraries, regardless of the interface used.
10338 case `$LD -v 2>&1` in
10339 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10340 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10341 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10343 lt_use_gnu_ld_interface=yes
10345 esac
10348 lt_use_gnu_ld_interface=yes
10350 esac
10353 if test "$lt_use_gnu_ld_interface" = yes; then
10354 # If archive_cmds runs LD, not CC, wlarc should be empty
10355 wlarc='${wl}'
10357 # Set some defaults for GNU ld with shared library support. These
10358 # are reset later if shared libraries are not supported. Putting them
10359 # here allows them to be overridden if necessary.
10360 runpath_var=LD_RUN_PATH
10361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10362 export_dynamic_flag_spec='${wl}--export-dynamic'
10363 # ancient GNU ld didn't support --whole-archive et. al.
10364 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10365 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10366 else
10367 whole_archive_flag_spec=
10369 supports_anon_versioning=no
10370 case `$LD -v 2>&1` in
10371 *GNU\ gold*) supports_anon_versioning=yes ;;
10372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10375 *\ 2.11.*) ;; # other 2.11 versions
10376 *) supports_anon_versioning=yes ;;
10377 esac
10379 # See if GNU ld supports shared libraries.
10380 case $host_os in
10381 aix[3-9]*)
10382 # On AIX/PPC, the GNU linker is very broken
10383 if test "$host_cpu" != ia64; then
10384 ld_shlibs=no
10385 cat <<_LT_EOF 1>&2
10387 *** Warning: the GNU linker, at least up to release 2.19, is reported
10388 *** to be unable to reliably create shared libraries on AIX.
10389 *** Therefore, libtool is disabling shared libraries support. If you
10390 *** really care for shared libraries, you may want to install binutils
10391 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10392 *** You will then need to restart the configuration process.
10394 _LT_EOF
10398 amigaos*)
10399 case $host_cpu in
10400 powerpc)
10401 # see comment about AmigaOS4 .so support
10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 archive_expsym_cmds=''
10405 m68k)
10406 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)'
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_minus_L=yes
10410 esac
10413 beos*)
10414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10415 allow_undefined_flag=unsupported
10416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10417 # support --undefined. This deserves some investigation. FIXME
10418 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10419 else
10420 ld_shlibs=no
10424 cygwin* | mingw* | pw32* | cegcc*)
10425 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10426 # as there is no search path for DLLs.
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 export_dynamic_flag_spec='${wl}--export-all-symbols'
10429 allow_undefined_flag=unsupported
10430 always_export_symbols=no
10431 enable_shared_with_static_runtimes=yes
10432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10434 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10436 # If the export-symbols file already is a .def file (1st line
10437 # is EXPORTS), use it as is; otherwise, prepend...
10438 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10439 cp $export_symbols $output_objdir/$soname.def;
10440 else
10441 echo EXPORTS > $output_objdir/$soname.def;
10442 cat $export_symbols >> $output_objdir/$soname.def;
10444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445 else
10446 ld_shlibs=no
10450 haiku*)
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 link_all_deplibs=yes
10455 interix[3-9]*)
10456 hardcode_direct=no
10457 hardcode_shlibpath_var=no
10458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10459 export_dynamic_flag_spec='${wl}-E'
10460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10461 # Instead, shared libraries are loaded at an image base (0x10000000 by
10462 # default) and relocated if they conflict, which is a slow very memory
10463 # consuming and fragmenting process. To avoid this, we pick a random,
10464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10467 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'
10470 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10471 tmp_diet=no
10472 if test "$host_os" = linux-dietlibc; then
10473 case $cc_basename in
10474 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10475 esac
10477 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10478 && test "$tmp_diet" = no
10479 then
10480 tmp_addflag=' $pic_flag'
10481 tmp_sharedflag='-shared'
10482 case $cc_basename,$host_cpu in
10483 pgcc*) # Portland Group C compiler
10484 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'
10485 tmp_addflag=' $pic_flag'
10487 pgf77* | pgf90* | pgf95* | pgfortran*)
10488 # Portland Group f77 and f90 compilers
10489 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'
10490 tmp_addflag=' $pic_flag -Mnomain' ;;
10491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10492 tmp_addflag=' -i_dynamic' ;;
10493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10494 tmp_addflag=' -i_dynamic -nofor_main' ;;
10495 ifc* | ifort*) # Intel Fortran compiler
10496 tmp_addflag=' -nofor_main' ;;
10497 lf95*) # Lahey Fortran 8.1
10498 whole_archive_flag_spec=
10499 tmp_sharedflag='--shared' ;;
10500 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10501 tmp_sharedflag='-qmkshrobj'
10502 tmp_addflag= ;;
10503 nvcc*) # Cuda Compiler Driver 2.2
10504 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'
10505 compiler_needs_object=yes
10507 esac
10508 case `$CC -V 2>&1 | sed 5q` in
10509 *Sun\ C*) # Sun C 5.9
10510 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'
10511 compiler_needs_object=yes
10512 tmp_sharedflag='-G' ;;
10513 *Sun\ F*) # Sun Fortran 8.3
10514 tmp_sharedflag='-G' ;;
10515 esac
10516 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10518 if test "x$supports_anon_versioning" = xyes; then
10519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521 echo "local: *; };" >> $output_objdir/$libname.ver~
10522 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10525 case $cc_basename in
10526 xlf* | bgf* | bgxlf* | mpixlf*)
10527 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10528 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10529 hardcode_libdir_flag_spec=
10530 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10531 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10532 if test "x$supports_anon_versioning" = xyes; then
10533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10535 echo "local: *; };" >> $output_objdir/$libname.ver~
10536 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10539 esac
10540 else
10541 ld_shlibs=no
10545 netbsd*)
10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10547 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10548 wlarc=
10549 else
10550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555 solaris*)
10556 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10557 ld_shlibs=no
10558 cat <<_LT_EOF 1>&2
10560 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10561 *** create shared libraries on Solaris systems. Therefore, libtool
10562 *** is disabling shared libraries support. We urge you to upgrade GNU
10563 *** binutils to release 2.9.1 or newer. Another option is to modify
10564 *** your PATH or compiler configuration so that the native linker is
10565 *** used, and then restart.
10567 _LT_EOF
10568 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
10571 else
10572 ld_shlibs=no
10576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10577 case `$LD -v 2>&1` in
10578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10579 ld_shlibs=no
10580 cat <<_LT_EOF 1>&2
10582 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10583 *** reliably create shared libraries on SCO systems. Therefore, libtool
10584 *** is disabling shared libraries support. We urge you to upgrade GNU
10585 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10586 *** your PATH or compiler configuration so that the native linker is
10587 *** used, and then restart.
10589 _LT_EOF
10592 # For security reasons, it is highly recommended that you always
10593 # use absolute paths for naming shared libraries, and exclude the
10594 # DT_RUNPATH tag from executables and libraries. But doing so
10595 # requires that you compile everything twice, which is a pain.
10596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10600 else
10601 ld_shlibs=no
10604 esac
10607 sunos4*)
10608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 wlarc=
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618 else
10619 ld_shlibs=no
10622 esac
10624 if test "$ld_shlibs" = no; then
10625 runpath_var=
10626 hardcode_libdir_flag_spec=
10627 export_dynamic_flag_spec=
10628 whole_archive_flag_spec=
10630 else
10631 # PORTME fill in a description of your system's linker (not GNU ld)
10632 case $host_os in
10633 aix3*)
10634 allow_undefined_flag=unsupported
10635 always_export_symbols=yes
10636 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'
10637 # Note: this linker hardcodes the directories in LIBPATH if there
10638 # are no directories specified by -L.
10639 hardcode_minus_L=yes
10640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10641 # Neither direct hardcoding nor static linking is supported with a
10642 # broken collect2.
10643 hardcode_direct=unsupported
10647 aix[4-9]*)
10648 if test "$host_cpu" = ia64; then
10649 # On IA64, the linker does run time linking by default, so we don't
10650 # have to do anything special.
10651 aix_use_runtimelinking=no
10652 exp_sym_flag='-Bexport'
10653 no_entry_flag=""
10654 else
10655 # If we're using GNU nm, then we don't want the "-C" option.
10656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10657 # Also, AIX nm treats weak defined symbols like other global
10658 # defined symbols, whereas GNU nm marks them as "W".
10659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10660 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'
10661 else
10662 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'
10664 aix_use_runtimelinking=no
10666 # Test if we are trying to use run time linking or normal
10667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10668 # need to do runtime linking.
10669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10670 for ld_flag in $LDFLAGS; do
10671 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10672 aix_use_runtimelinking=yes
10673 break
10675 done
10677 esac
10679 exp_sym_flag='-bexport'
10680 no_entry_flag='-bnoentry'
10683 # When large executables or shared objects are built, AIX ld can
10684 # have problems creating the table of contents. If linking a library
10685 # or program results in "error TOC overflow" add -mminimal-toc to
10686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10689 archive_cmds=''
10690 hardcode_direct=yes
10691 hardcode_direct_absolute=yes
10692 hardcode_libdir_separator=':'
10693 link_all_deplibs=yes
10694 file_list_spec='${wl}-f,'
10696 if test "$GCC" = yes; then
10697 case $host_os in aix4.[012]|aix4.[012].*)
10698 # We only want to do this on AIX 4.2 and lower, the check
10699 # below for broken collect2 doesn't work under 4.3+
10700 collect2name=`${CC} -print-prog-name=collect2`
10701 if test -f "$collect2name" &&
10702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10703 then
10704 # We have reworked collect2
10706 else
10707 # We have old collect2
10708 hardcode_direct=unsupported
10709 # It fails to find uninstalled libraries when the uninstalled
10710 # path is not listed in the libpath. Setting hardcode_minus_L
10711 # to unsupported forces relinking
10712 hardcode_minus_L=yes
10713 hardcode_libdir_flag_spec='-L$libdir'
10714 hardcode_libdir_separator=
10717 esac
10718 shared_flag='-shared'
10719 if test "$aix_use_runtimelinking" = yes; then
10720 shared_flag="$shared_flag "'${wl}-G'
10722 else
10723 # not using gcc
10724 if test "$host_cpu" = ia64; then
10725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10726 # chokes on -Wl,-G. The following line is correct:
10727 shared_flag='-G'
10728 else
10729 if test "$aix_use_runtimelinking" = yes; then
10730 shared_flag='${wl}-G'
10731 else
10732 shared_flag='${wl}-bM:SRE'
10737 export_dynamic_flag_spec='${wl}-bexpall'
10738 # It seems that -bexpall does not export symbols beginning with
10739 # underscore (_), so it is better to generate a list of symbols to export.
10740 always_export_symbols=yes
10741 if test "$aix_use_runtimelinking" = yes; then
10742 # Warning - without using the other runtime loading flags (-brtl),
10743 # -berok will link without error, but may produce a broken library.
10744 allow_undefined_flag='-berok'
10745 # Determine the default libpath from the value encoded in an
10746 # empty executable.
10747 if test x$gcc_no_link = xyes; then
10748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10754 main ()
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10763 lt_aix_libpath_sed='
10764 /Import File Strings/,/^$/ {
10765 /^0/ {
10766 s/^0 *\(.*\)$/\1/
10770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10771 # Check for a 64-bit object if we didn't find anything.
10772 if test -z "$aix_libpath"; then
10773 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10780 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10781 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"
10782 else
10783 if test "$host_cpu" = ia64; then
10784 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10785 allow_undefined_flag="-z nodefs"
10786 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"
10787 else
10788 # Determine the default libpath from the value encoded in an
10789 # empty executable.
10790 if test x$gcc_no_link = xyes; then
10791 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10797 main ()
10801 return 0;
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10806 lt_aix_libpath_sed='
10807 /Import File Strings/,/^$/ {
10808 /^0/ {
10809 s/^0 *\(.*\)$/\1/
10813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10814 # Check for a 64-bit object if we didn't find anything.
10815 if test -z "$aix_libpath"; then
10816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10824 # Warning - without using the other run time loading flags,
10825 # -berok will link without error, but may produce a broken library.
10826 no_undefined_flag=' ${wl}-bernotok'
10827 allow_undefined_flag=' ${wl}-berok'
10828 if test "$with_gnu_ld" = yes; then
10829 # We only use this code for GNU lds that support --whole-archive.
10830 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10831 else
10832 # Exported symbols can be pulled into shared objects from archives
10833 whole_archive_flag_spec='$convenience'
10835 archive_cmds_need_lc=yes
10836 # This is similar to how AIX traditionally builds its shared libraries.
10837 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'
10842 amigaos*)
10843 case $host_cpu in
10844 powerpc)
10845 # see comment about AmigaOS4 .so support
10846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10847 archive_expsym_cmds=''
10849 m68k)
10850 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)'
10851 hardcode_libdir_flag_spec='-L$libdir'
10852 hardcode_minus_L=yes
10854 esac
10857 bsdi[45]*)
10858 export_dynamic_flag_spec=-rdynamic
10861 cygwin* | mingw* | pw32* | cegcc*)
10862 # When not using gcc, we currently assume that we are using
10863 # Microsoft Visual C++.
10864 # hardcode_libdir_flag_spec is actually meaningless, as there is
10865 # no search path for DLLs.
10866 hardcode_libdir_flag_spec=' '
10867 allow_undefined_flag=unsupported
10868 # Tell ltmain to make .lib files, not .a files.
10869 libext=lib
10870 # Tell ltmain to make .dll files, not .so files.
10871 shrext_cmds=".dll"
10872 # FIXME: Setting linknames here is a bad hack.
10873 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10874 # The linker will automatically build a .lib file if we build a DLL.
10875 old_archive_from_new_cmds='true'
10876 # FIXME: Should let the user specify the lib program.
10877 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10878 fix_srcfile_path='`cygpath -w "$srcfile"`'
10879 enable_shared_with_static_runtimes=yes
10882 darwin* | rhapsody*)
10885 archive_cmds_need_lc=no
10886 hardcode_direct=no
10887 hardcode_automatic=yes
10888 hardcode_shlibpath_var=unsupported
10889 if test "$lt_cv_ld_force_load" = "yes"; then
10890 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\"`'
10891 else
10892 whole_archive_flag_spec=''
10894 link_all_deplibs=yes
10895 allow_undefined_flag="$_lt_dar_allow_undefined"
10896 case $cc_basename in
10897 ifort*) _lt_dar_can_shared=yes ;;
10898 *) _lt_dar_can_shared=$GCC ;;
10899 esac
10900 if test "$_lt_dar_can_shared" = "yes"; then
10901 output_verbose_link_cmd=func_echo_all
10902 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10903 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10904 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}"
10905 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}"
10907 else
10908 ld_shlibs=no
10913 dgux*)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_libdir_flag_spec='-L$libdir'
10916 hardcode_shlibpath_var=no
10919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10920 # support. Future versions do this automatically, but an explicit c++rt0.o
10921 # does not break anything, and helps significantly (at the cost of a little
10922 # extra space).
10923 freebsd2.2*)
10924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10931 freebsd2.*)
10932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_direct=yes
10934 hardcode_minus_L=yes
10935 hardcode_shlibpath_var=no
10938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10939 freebsd* | dragonfly*)
10940 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10941 hardcode_libdir_flag_spec='-R$libdir'
10942 hardcode_direct=yes
10943 hardcode_shlibpath_var=no
10946 hpux9*)
10947 if test "$GCC" = yes; then
10948 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'
10949 else
10950 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'
10952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10953 hardcode_libdir_separator=:
10954 hardcode_direct=yes
10956 # hardcode_minus_L: Not really in the search PATH,
10957 # but as the default location of the library.
10958 hardcode_minus_L=yes
10959 export_dynamic_flag_spec='${wl}-E'
10962 hpux10*)
10963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965 else
10966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10968 if test "$with_gnu_ld" = no; then
10969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10970 hardcode_libdir_flag_spec_ld='+b $libdir'
10971 hardcode_libdir_separator=:
10972 hardcode_direct=yes
10973 hardcode_direct_absolute=yes
10974 export_dynamic_flag_spec='${wl}-E'
10975 # hardcode_minus_L: Not really in the search PATH,
10976 # but as the default location of the library.
10977 hardcode_minus_L=yes
10981 hpux11*)
10982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10983 case $host_cpu in
10984 hppa*64*)
10985 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 ia64*)
10988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10993 esac
10994 else
10995 case $host_cpu in
10996 hppa*64*)
10997 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 ia64*)
11000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11004 # Older versions of the 11.00 compiler do not understand -b yet
11005 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11007 $as_echo_n "checking if $CC understands -b... " >&6; }
11008 if ${lt_cv_prog_compiler__b+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 lt_cv_prog_compiler__b=no
11012 save_LDFLAGS="$LDFLAGS"
11013 LDFLAGS="$LDFLAGS -b"
11014 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11016 # The linker can only warn and ignore the option if not recognized
11017 # So say no if there are warnings
11018 if test -s conftest.err; then
11019 # Append any errors to the config.log.
11020 cat conftest.err 1>&5
11021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11023 if diff conftest.exp conftest.er2 >/dev/null; then
11024 lt_cv_prog_compiler__b=yes
11026 else
11027 lt_cv_prog_compiler__b=yes
11030 $RM -r conftest*
11031 LDFLAGS="$save_LDFLAGS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11035 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11037 if test x"$lt_cv_prog_compiler__b" = xyes; then
11038 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11039 else
11040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11044 esac
11046 if test "$with_gnu_ld" = no; then
11047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11048 hardcode_libdir_separator=:
11050 case $host_cpu in
11051 hppa*64*|ia64*)
11052 hardcode_direct=no
11053 hardcode_shlibpath_var=no
11056 hardcode_direct=yes
11057 hardcode_direct_absolute=yes
11058 export_dynamic_flag_spec='${wl}-E'
11060 # hardcode_minus_L: Not really in the search PATH,
11061 # but as the default location of the library.
11062 hardcode_minus_L=yes
11064 esac
11068 irix5* | irix6* | nonstopux*)
11069 if test "$GCC" = yes; then
11070 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'
11071 # Try to use the -exported_symbol ld option, if it does not
11072 # work, assume that -exports_file does not work either and
11073 # implicitly export all symbols.
11074 save_LDFLAGS="$LDFLAGS"
11075 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11076 if test x$gcc_no_link = xyes; then
11077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 int foo(void) {}
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 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'
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LDFLAGS="$save_LDFLAGS"
11090 else
11091 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'
11092 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'
11094 archive_cmds_need_lc='no'
11095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11096 hardcode_libdir_separator=:
11097 inherit_rpath=yes
11098 link_all_deplibs=yes
11101 netbsd*)
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11104 else
11105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11107 hardcode_libdir_flag_spec='-R$libdir'
11108 hardcode_direct=yes
11109 hardcode_shlibpath_var=no
11112 newsos6)
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_direct=yes
11115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11116 hardcode_libdir_separator=:
11117 hardcode_shlibpath_var=no
11120 *nto* | *qnx*)
11123 openbsd*)
11124 if test -f /usr/libexec/ld.so; then
11125 hardcode_direct=yes
11126 hardcode_shlibpath_var=no
11127 hardcode_direct_absolute=yes
11128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11132 export_dynamic_flag_spec='${wl}-E'
11133 else
11134 case $host_os in
11135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11137 hardcode_libdir_flag_spec='-R$libdir'
11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11143 esac
11145 else
11146 ld_shlibs=no
11150 os2*)
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 hardcode_minus_L=yes
11153 allow_undefined_flag=unsupported
11154 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'
11155 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11158 osf3*)
11159 if test "$GCC" = yes; then
11160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11161 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'
11162 else
11163 allow_undefined_flag=' -expect_unresolved \*'
11164 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'
11166 archive_cmds_need_lc='no'
11167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11168 hardcode_libdir_separator=:
11171 osf4* | osf5*) # as osf3* with the addition of -msym flag
11172 if test "$GCC" = yes; then
11173 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11174 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'
11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176 else
11177 allow_undefined_flag=' -expect_unresolved \*'
11178 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'
11179 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~
11180 $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'
11182 # Both c and cxx compiler support -rpath directly
11183 hardcode_libdir_flag_spec='-rpath $libdir'
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_separator=:
11189 solaris*)
11190 no_undefined_flag=' -z defs'
11191 if test "$GCC" = yes; then
11192 wlarc='${wl}'
11193 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11195 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11196 else
11197 case `$CC -V 2>&1` in
11198 *"Compilers 5.0"*)
11199 wlarc=''
11200 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11205 wlarc='${wl}'
11206 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11208 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11210 esac
11212 hardcode_libdir_flag_spec='-R$libdir'
11213 hardcode_shlibpath_var=no
11214 case $host_os in
11215 solaris2.[0-5] | solaris2.[0-5].*) ;;
11217 # The compiler driver will combine and reorder linker options,
11218 # but understands `-z linker_flag'. GCC discards it without `$wl',
11219 # but is careful enough not to reorder.
11220 # Supported since Solaris 2.6 (maybe 2.5.1?)
11221 if test "$GCC" = yes; then
11222 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11223 else
11224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11227 esac
11228 link_all_deplibs=yes
11231 sunos4*)
11232 if test "x$host_vendor" = xsequent; then
11233 # Use $CC to link under sequent, because it throws in some extra .o
11234 # files that make .init and .fini sections work.
11235 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11236 else
11237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11239 hardcode_libdir_flag_spec='-L$libdir'
11240 hardcode_direct=yes
11241 hardcode_minus_L=yes
11242 hardcode_shlibpath_var=no
11245 sysv4)
11246 case $host_vendor in
11247 sni)
11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_direct=yes # is this really true???
11251 siemens)
11252 ## LD is ld it makes a PLAMLIB
11253 ## CC just makes a GrossModule.
11254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11255 reload_cmds='$CC -r -o $output$reload_objs'
11256 hardcode_direct=no
11258 motorola)
11259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11262 esac
11263 runpath_var='LD_RUN_PATH'
11264 hardcode_shlibpath_var=no
11267 sysv4.3*)
11268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11269 hardcode_shlibpath_var=no
11270 export_dynamic_flag_spec='-Bexport'
11273 sysv4*MP*)
11274 if test -d /usr/nec; then
11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11276 hardcode_shlibpath_var=no
11277 runpath_var=LD_RUN_PATH
11278 hardcode_runpath_var=yes
11279 ld_shlibs=yes
11283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11284 no_undefined_flag='${wl}-z,text'
11285 archive_cmds_need_lc=no
11286 hardcode_shlibpath_var=no
11287 runpath_var='LD_RUN_PATH'
11289 if test "$GCC" = yes; then
11290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292 else
11293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 sysv5* | sco3.2v5* | sco5v6*)
11299 # Note: We can NOT use -z defs as we might desire, because we do not
11300 # link with -lc, and that would cause any symbols used from libc to
11301 # always be unresolved, which means just about no library would
11302 # ever link correctly. If we're not using GNU ld we use -z text
11303 # though, which does catch some bad symbols but isn't as heavy-handed
11304 # as -z defs.
11305 no_undefined_flag='${wl}-z,text'
11306 allow_undefined_flag='${wl}-z,nodefs'
11307 archive_cmds_need_lc=no
11308 hardcode_shlibpath_var=no
11309 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11310 hardcode_libdir_separator=':'
11311 link_all_deplibs=yes
11312 export_dynamic_flag_spec='${wl}-Bexport'
11313 runpath_var='LD_RUN_PATH'
11315 if test "$GCC" = yes; then
11316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318 else
11319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 uts4*)
11325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11326 hardcode_libdir_flag_spec='-L$libdir'
11327 hardcode_shlibpath_var=no
11331 ld_shlibs=no
11333 esac
11335 if test x$host_vendor = xsni; then
11336 case $host in
11337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11338 export_dynamic_flag_spec='${wl}-Blargedynsym'
11340 esac
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11345 $as_echo "$ld_shlibs" >&6; }
11346 test "$ld_shlibs" = no && can_build_shared=no
11348 with_gnu_ld=$with_gnu_ld
11365 # Do we need to explicitly link libc?
11367 case "x$archive_cmds_need_lc" in
11368 x|xyes)
11369 # Assume -lc should be added
11370 archive_cmds_need_lc=yes
11372 if test "$enable_shared" = yes && test "$GCC" = yes; then
11373 case $archive_cmds in
11374 *'~'*)
11375 # FIXME: we may have to deal with multi-command sequences.
11377 '$CC '*)
11378 # Test whether the compiler implicitly links with -lc since on some
11379 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11380 # to ld, don't add -lc before -lgcc.
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11382 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11383 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 $RM conftest*
11387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11390 (eval $ac_compile) 2>&5
11391 ac_status=$?
11392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393 test $ac_status = 0; } 2>conftest.err; then
11394 soname=conftest
11395 lib=conftest
11396 libobjs=conftest.$ac_objext
11397 deplibs=
11398 wl=$lt_prog_compiler_wl
11399 pic_flag=$lt_prog_compiler_pic
11400 compiler_flags=-v
11401 linker_flags=-v
11402 verstring=
11403 output_objdir=.
11404 libname=conftest
11405 lt_save_allow_undefined_flag=$allow_undefined_flag
11406 allow_undefined_flag=
11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11411 test $ac_status = 0; }
11412 then
11413 lt_cv_archive_cmds_need_lc=no
11414 else
11415 lt_cv_archive_cmds_need_lc=yes
11417 allow_undefined_flag=$lt_save_allow_undefined_flag
11418 else
11419 cat conftest.err 1>&5
11421 $RM conftest*
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11425 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11428 esac
11431 esac
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11592 if test "$GCC" = yes; then
11593 case $host_os in
11594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11595 *) lt_awk_arg="/^libraries:/" ;;
11596 esac
11597 case $host_os in
11598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11599 *) lt_sed_strip_eq="s,=/,/,g" ;;
11600 esac
11601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11602 case $lt_search_path_spec in
11603 *\;*)
11604 # if the path contains ";" then we assume it to be the separator
11605 # otherwise default to the standard path separator (i.e. ":") - it is
11606 # assumed that no part of a normal pathname contains ";" but that should
11607 # okay in the real world where ";" in dirpaths is itself problematic.
11608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11613 esac
11614 # Ok, now we have the path, separated by spaces, we can step through it
11615 # and add multilib dir if necessary.
11616 lt_tmp_lt_search_path_spec=
11617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11618 for lt_sys_path in $lt_search_path_spec; do
11619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11621 else
11622 test -d "$lt_sys_path" && \
11623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11625 done
11626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11627 BEGIN {RS=" "; FS="/|\n";} {
11628 lt_foo="";
11629 lt_count=0;
11630 for (lt_i = NF; lt_i > 0; lt_i--) {
11631 if ($lt_i != "" && $lt_i != ".") {
11632 if ($lt_i == "..") {
11633 lt_count++;
11634 } else {
11635 if (lt_count == 0) {
11636 lt_foo="/" $lt_i lt_foo;
11637 } else {
11638 lt_count--;
11643 if (lt_foo != "") { lt_freq[lt_foo]++; }
11644 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11646 # AWK program above erroneously prepends '/' to C:/dos/paths
11647 # for these hosts.
11648 case $host_os in
11649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11650 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11651 esac
11652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11653 else
11654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11656 library_names_spec=
11657 libname_spec='lib$name'
11658 soname_spec=
11659 shrext_cmds=".so"
11660 postinstall_cmds=
11661 postuninstall_cmds=
11662 finish_cmds=
11663 finish_eval=
11664 shlibpath_var=
11665 shlibpath_overrides_runpath=unknown
11666 version_type=none
11667 dynamic_linker="$host_os ld.so"
11668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11669 need_lib_prefix=unknown
11670 hardcode_into_libs=no
11672 # when you set need_version to no, make sure it does not cause -set_version
11673 # flags to be left without arguments
11674 need_version=unknown
11676 case $host_os in
11677 aix3*)
11678 version_type=linux
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11680 shlibpath_var=LIBPATH
11682 # AIX 3 has no versioning support, so we append a major version to the name.
11683 soname_spec='${libname}${release}${shared_ext}$major'
11686 aix[4-9]*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 hardcode_into_libs=yes
11691 if test "$host_cpu" = ia64; then
11692 # AIX 5 supports IA64
11693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 else
11696 # With GCC up to 2.95.x, collect2 would create an import file
11697 # for dependence libraries. The import file would start with
11698 # the line `#! .'. This would cause the generated library to
11699 # depend on `.', always an invalid library. This was fixed in
11700 # development snapshots of GCC prior to 3.0.
11701 case $host_os in
11702 aix4 | aix4.[01] | aix4.[01].*)
11703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11704 echo ' yes '
11705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11707 else
11708 can_build_shared=no
11711 esac
11712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11713 # soname into executable. Probably we can add versioning support to
11714 # collect2, so additional links can be useful in future.
11715 if test "$aix_use_runtimelinking" = yes; then
11716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11717 # instead of lib<name>.a to let people know that these are not
11718 # typical AIX shared libraries.
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 else
11721 # We preserve .a as extension for shared libraries through AIX4.2
11722 # and later when we are not doing run time linking.
11723 library_names_spec='${libname}${release}.a $libname.a'
11724 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LIBPATH
11730 amigaos*)
11731 case $host_cpu in
11732 powerpc)
11733 # Since July 2007 AmigaOS4 officially supports .so libraries.
11734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 m68k)
11738 library_names_spec='$libname.ixlibrary $libname.a'
11739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11740 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'
11742 esac
11745 beos*)
11746 library_names_spec='${libname}${shared_ext}'
11747 dynamic_linker="$host_os ld.so"
11748 shlibpath_var=LIBRARY_PATH
11751 bsdi[45]*)
11752 version_type=linux
11753 need_version=no
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11760 # the default ld.so.conf also contains /usr/contrib/lib and
11761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11762 # libtool to hard-code these into programs
11765 cygwin* | mingw* | pw32* | cegcc*)
11766 version_type=windows
11767 shrext_cmds=".dll"
11768 need_version=no
11769 need_lib_prefix=no
11771 case $GCC,$host_os in
11772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11773 library_names_spec='$libname.dll.a'
11774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11775 postinstall_cmds='base_file=`basename \${file}`~
11776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11777 dldir=$destdir/`dirname \$dlpath`~
11778 test -d \$dldir || mkdir -p \$dldir~
11779 $install_prog $dir/$dlname \$dldir/$dlname~
11780 chmod a+x \$dldir/$dlname~
11781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11785 dlpath=$dir/\$dldll~
11786 $RM \$dlpath'
11787 shlibpath_overrides_runpath=yes
11789 case $host_os in
11790 cygwin*)
11791 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11796 mingw* | cegcc*)
11797 # MinGW DLLs use traditional 'lib' prefix
11798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11800 pw32*)
11801 # pw32 DLLs use 'pw' prefix rather than 'lib'
11802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11804 esac
11808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11810 esac
11811 dynamic_linker='Win32 ld.exe'
11812 # FIXME: first we should search . and the directory the executable is in
11813 shlibpath_var=PATH
11816 darwin* | rhapsody*)
11817 dynamic_linker="$host_os dyld"
11818 version_type=darwin
11819 need_lib_prefix=no
11820 need_version=no
11821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11822 soname_spec='${libname}${release}${major}$shared_ext'
11823 shlibpath_overrides_runpath=yes
11824 shlibpath_var=DYLD_LIBRARY_PATH
11825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11831 dgux*)
11832 version_type=linux
11833 need_lib_prefix=no
11834 need_version=no
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 shlibpath_var=LD_LIBRARY_PATH
11840 freebsd* | dragonfly*)
11841 # DragonFly does not have aout. When/if they implement a new
11842 # versioning mechanism, adjust this.
11843 if test -x /usr/bin/objformat; then
11844 objformat=`/usr/bin/objformat`
11845 else
11846 case $host_os in
11847 freebsd[23].*) objformat=aout ;;
11848 *) objformat=elf ;;
11849 esac
11851 version_type=freebsd-$objformat
11852 case $version_type in
11853 freebsd-elf*)
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11855 need_version=no
11856 need_lib_prefix=no
11858 freebsd-*)
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11860 need_version=yes
11862 esac
11863 shlibpath_var=LD_LIBRARY_PATH
11864 case $host_os in
11865 freebsd2.*)
11866 shlibpath_overrides_runpath=yes
11868 freebsd3.[01]* | freebsdelf3.[01]*)
11869 shlibpath_overrides_runpath=yes
11870 hardcode_into_libs=yes
11872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11874 shlibpath_overrides_runpath=no
11875 hardcode_into_libs=yes
11877 *) # from 4.6 on, and DragonFly
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11881 esac
11884 gnu*)
11885 version_type=linux
11886 need_lib_prefix=no
11887 need_version=no
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 hardcode_into_libs=yes
11894 haiku*)
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 dynamic_linker="$host_os runtime_loader"
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11900 soname_spec='${libname}${release}${shared_ext}$major'
11901 shlibpath_var=LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11904 hardcode_into_libs=yes
11907 hpux9* | hpux10* | hpux11*)
11908 # Give a soname corresponding to the major version so that dld.sl refuses to
11909 # link against other versions.
11910 version_type=sunos
11911 need_lib_prefix=no
11912 need_version=no
11913 case $host_cpu in
11914 ia64*)
11915 shrext_cmds='.so'
11916 hardcode_into_libs=yes
11917 dynamic_linker="$host_os dld.so"
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 if test "X$HPUX_IA64_MODE" = X32; then
11923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11924 else
11925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11929 hppa*64*)
11930 shrext_cmds='.sl'
11931 hardcode_into_libs=yes
11932 dynamic_linker="$host_os dld.sl"
11933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11941 shrext_cmds='.sl'
11942 dynamic_linker="$host_os dld.sl"
11943 shlibpath_var=SHLIB_PATH
11944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11948 esac
11949 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11950 postinstall_cmds='chmod 555 $lib'
11951 # or fails outright, so override atomically:
11952 install_override_mode=555
11955 interix[3-9]*)
11956 version_type=linux
11957 need_lib_prefix=no
11958 need_version=no
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964 hardcode_into_libs=yes
11967 irix5* | irix6* | nonstopux*)
11968 case $host_os in
11969 nonstopux*) version_type=nonstopux ;;
11971 if test "$lt_cv_prog_gnu_ld" = yes; then
11972 version_type=linux
11973 else
11974 version_type=irix
11975 fi ;;
11976 esac
11977 need_lib_prefix=no
11978 need_version=no
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11981 case $host_os in
11982 irix5* | nonstopux*)
11983 libsuff= shlibsuff=
11986 case $LD in # libtool.m4 will add one of these switches to LD
11987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11988 libsuff= shlibsuff= libmagic=32-bit;;
11989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11990 libsuff=32 shlibsuff=N32 libmagic=N32;;
11991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11993 *) libsuff= shlibsuff= libmagic=never-match;;
11994 esac
11996 esac
11997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11998 shlibpath_overrides_runpath=no
11999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12001 hardcode_into_libs=yes
12004 # No shared lib support for Linux oldld, aout, or coff.
12005 linux*oldld* | linux*aout* | linux*coff*)
12006 dynamic_linker=no
12009 # This must be Linux ELF.
12011 # uclinux* changes (here and below) have been submitted to the libtool
12012 # project, but have not yet been accepted: they are GCC-local changes
12013 # for the time being. (See
12014 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12015 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12016 version_type=linux
12017 need_lib_prefix=no
12018 need_version=no
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=no
12025 # Some binutils ld are patched to set DT_RUNPATH
12026 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 lt_cv_shlibpath_overrides_runpath=no
12030 save_LDFLAGS=$LDFLAGS
12031 save_libdir=$libdir
12032 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12033 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12034 if test x$gcc_no_link = xyes; then
12035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12041 main ()
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12050 lt_cv_shlibpath_overrides_runpath=yes
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LDFLAGS=$save_LDFLAGS
12056 libdir=$save_libdir
12060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12062 # This implies no fast_install, which is unacceptable.
12063 # Some rework will be needed to allow for fast_install
12064 # before this can be enabled.
12065 hardcode_into_libs=yes
12067 # Append ld.so.conf contents to the search path
12068 if test -f /etc/ld.so.conf; then
12069 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' ' '`
12070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12073 # We used to test for /lib/ld.so.1 and disable shared libraries on
12074 # powerpc, because MkLinux only supported shared libraries with the
12075 # GNU dynamic linker. Since this was broken with cross compilers,
12076 # most powerpc-linux boxes support dynamic linking these days and
12077 # people can always --disable-shared, the test was removed, and we
12078 # assume the GNU/Linux dynamic linker is in use.
12079 dynamic_linker='GNU/Linux ld.so'
12082 netbsd*)
12083 version_type=sunos
12084 need_lib_prefix=no
12085 need_version=no
12086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12089 dynamic_linker='NetBSD (a.out) ld.so'
12090 else
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 dynamic_linker='NetBSD ld.elf_so'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12100 newsos6)
12101 version_type=linux
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12107 *nto* | *qnx*)
12108 version_type=qnx
12109 need_lib_prefix=no
12110 need_version=no
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 shlibpath_overrides_runpath=no
12115 hardcode_into_libs=yes
12116 dynamic_linker='ldqnx.so'
12119 openbsd*)
12120 version_type=sunos
12121 sys_lib_dlsearch_path_spec="/usr/lib"
12122 need_lib_prefix=no
12123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12124 case $host_os in
12125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12126 *) need_version=no ;;
12127 esac
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12132 case $host_os in
12133 openbsd2.[89] | openbsd2.[89].*)
12134 shlibpath_overrides_runpath=no
12137 shlibpath_overrides_runpath=yes
12139 esac
12140 else
12141 shlibpath_overrides_runpath=yes
12145 os2*)
12146 libname_spec='$name'
12147 shrext_cmds=".dll"
12148 need_lib_prefix=no
12149 library_names_spec='$libname${shared_ext} $libname.a'
12150 dynamic_linker='OS/2 ld.exe'
12151 shlibpath_var=LIBPATH
12154 osf3* | osf4* | osf5*)
12155 version_type=osf
12156 need_lib_prefix=no
12157 need_version=no
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12165 rdos*)
12166 dynamic_linker=no
12169 solaris*)
12170 version_type=linux
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=yes
12177 hardcode_into_libs=yes
12178 # ldd complains unless libraries are executable
12179 postinstall_cmds='chmod +x $lib'
12182 sunos4*)
12183 version_type=sunos
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes
12188 if test "$with_gnu_ld" = yes; then
12189 need_lib_prefix=no
12191 need_version=yes
12194 sysv4 | sysv4.3*)
12195 version_type=linux
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 case $host_vendor in
12200 sni)
12201 shlibpath_overrides_runpath=no
12202 need_lib_prefix=no
12203 runpath_var=LD_RUN_PATH
12205 siemens)
12206 need_lib_prefix=no
12208 motorola)
12209 need_lib_prefix=no
12210 need_version=no
12211 shlibpath_overrides_runpath=no
12212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12214 esac
12217 sysv4*MP*)
12218 if test -d /usr/nec ;then
12219 version_type=linux
12220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12221 soname_spec='$libname${shared_ext}.$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12227 version_type=freebsd-elf
12228 need_lib_prefix=no
12229 need_version=no
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12235 if test "$with_gnu_ld" = yes; then
12236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12237 else
12238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12239 case $host_os in
12240 sco3.2v5*)
12241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12243 esac
12245 sys_lib_dlsearch_path_spec='/usr/lib'
12248 tpf*)
12249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12250 version_type=linux
12251 need_lib_prefix=no
12252 need_version=no
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12259 uts4*)
12260 version_type=linux
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12267 dynamic_linker=no
12269 esac
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12271 $as_echo "$dynamic_linker" >&6; }
12272 test "$dynamic_linker" = no && can_build_shared=no
12274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12275 if test "$GCC" = yes; then
12276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12282 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12378 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12379 hardcode_action=
12380 if test -n "$hardcode_libdir_flag_spec" ||
12381 test -n "$runpath_var" ||
12382 test "X$hardcode_automatic" = "Xyes" ; then
12384 # We can hardcode non-existent directories.
12385 if test "$hardcode_direct" != no &&
12386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12387 # have to relink, otherwise we might link with an installed library
12388 # when we should be linking with a yet-to-be-installed one
12389 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12390 test "$hardcode_minus_L" != no; then
12391 # Linking always hardcodes the temporary library directory.
12392 hardcode_action=relink
12393 else
12394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12395 hardcode_action=immediate
12397 else
12398 # We cannot hardcode anything, or else we can only hardcode existing
12399 # directories.
12400 hardcode_action=unsupported
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12403 $as_echo "$hardcode_action" >&6; }
12405 if test "$hardcode_action" = relink ||
12406 test "$inherit_rpath" = yes; then
12407 # Fast installation is not supported
12408 enable_fast_install=no
12409 elif test "$shlibpath_overrides_runpath" = yes ||
12410 test "$enable_shared" = no; then
12411 # Fast installation is not necessary
12412 enable_fast_install=needless
12420 if test "x$enable_dlopen" != xyes; then
12421 enable_dlopen=unknown
12422 enable_dlopen_self=unknown
12423 enable_dlopen_self_static=unknown
12424 else
12425 lt_cv_dlopen=no
12426 lt_cv_dlopen_libs=
12428 case $host_os in
12429 beos*)
12430 lt_cv_dlopen="load_add_on"
12431 lt_cv_dlopen_libs=
12432 lt_cv_dlopen_self=yes
12435 mingw* | pw32* | cegcc*)
12436 lt_cv_dlopen="LoadLibrary"
12437 lt_cv_dlopen_libs=
12440 cygwin*)
12441 lt_cv_dlopen="dlopen"
12442 lt_cv_dlopen_libs=
12445 darwin*)
12446 # if libdl is installed we need to link against it
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12448 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12449 if ${ac_cv_lib_dl_dlopen+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-ldl $LIBS"
12454 if test x$gcc_no_link = xyes; then
12455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 char dlopen ();
12468 main ()
12470 return dlopen ();
12472 return 0;
12474 _ACEOF
12475 if ac_fn_c_try_link "$LINENO"; then :
12476 ac_cv_lib_dl_dlopen=yes
12477 else
12478 ac_cv_lib_dl_dlopen=no
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12486 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12488 else
12490 lt_cv_dlopen="dyld"
12491 lt_cv_dlopen_libs=
12492 lt_cv_dlopen_self=yes
12499 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12500 if test "x$ac_cv_func_shl_load" = xyes; then :
12501 lt_cv_dlopen="shl_load"
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12504 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12505 if ${ac_cv_lib_dld_shl_load+:} false; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-ldld $LIBS"
12510 if test x$gcc_no_link = xyes; then
12511 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char shl_load ();
12524 main ()
12526 return shl_load ();
12528 return 0;
12530 _ACEOF
12531 if ac_fn_c_try_link "$LINENO"; then :
12532 ac_cv_lib_dld_shl_load=yes
12533 else
12534 ac_cv_lib_dld_shl_load=no
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 LIBS=$ac_check_lib_save_LIBS
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12541 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12542 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12544 else
12545 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12546 if test "x$ac_cv_func_dlopen" = xyes; then :
12547 lt_cv_dlopen="dlopen"
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12550 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12551 if ${ac_cv_lib_dl_dlopen+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-ldl $LIBS"
12556 if test x$gcc_no_link = xyes; then
12557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char dlopen ();
12570 main ()
12572 return dlopen ();
12574 return 0;
12576 _ACEOF
12577 if ac_fn_c_try_link "$LINENO"; then :
12578 ac_cv_lib_dl_dlopen=yes
12579 else
12580 ac_cv_lib_dl_dlopen=no
12582 rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12593 if ${ac_cv_lib_svld_dlopen+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 ac_check_lib_save_LIBS=$LIBS
12597 LIBS="-lsvld $LIBS"
12598 if test x$gcc_no_link = xyes; then
12599 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char dlopen ();
12612 main ()
12614 return dlopen ();
12616 return 0;
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_lib_svld_dlopen=yes
12621 else
12622 ac_cv_lib_svld_dlopen=no
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12630 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12635 if ${ac_cv_lib_dld_dld_link+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 ac_check_lib_save_LIBS=$LIBS
12639 LIBS="-ldld $LIBS"
12640 if test x$gcc_no_link = xyes; then
12641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char dld_link ();
12654 main ()
12656 return dld_link ();
12658 return 0;
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"; then :
12662 ac_cv_lib_dld_dld_link=yes
12663 else
12664 ac_cv_lib_dld_dld_link=no
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12671 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12672 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12673 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12692 esac
12694 if test "x$lt_cv_dlopen" != xno; then
12695 enable_dlopen=yes
12696 else
12697 enable_dlopen=no
12700 case $lt_cv_dlopen in
12701 dlopen)
12702 save_CPPFLAGS="$CPPFLAGS"
12703 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12705 save_LDFLAGS="$LDFLAGS"
12706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12708 save_LIBS="$LIBS"
12709 LIBS="$lt_cv_dlopen_libs $LIBS"
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12712 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12713 if ${lt_cv_dlopen_self+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 if test "$cross_compiling" = yes; then :
12717 lt_cv_dlopen_self=cross
12718 else
12719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12720 lt_status=$lt_dlunknown
12721 cat > conftest.$ac_ext <<_LT_EOF
12722 #line 12722 "configure"
12723 #include "confdefs.h"
12725 #if HAVE_DLFCN_H
12726 #include <dlfcn.h>
12727 #endif
12729 #include <stdio.h>
12731 #ifdef RTLD_GLOBAL
12732 # define LT_DLGLOBAL RTLD_GLOBAL
12733 #else
12734 # ifdef DL_GLOBAL
12735 # define LT_DLGLOBAL DL_GLOBAL
12736 # else
12737 # define LT_DLGLOBAL 0
12738 # endif
12739 #endif
12741 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12742 find out it does not work in some platform. */
12743 #ifndef LT_DLLAZY_OR_NOW
12744 # ifdef RTLD_LAZY
12745 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12746 # else
12747 # ifdef DL_LAZY
12748 # define LT_DLLAZY_OR_NOW DL_LAZY
12749 # else
12750 # ifdef RTLD_NOW
12751 # define LT_DLLAZY_OR_NOW RTLD_NOW
12752 # else
12753 # ifdef DL_NOW
12754 # define LT_DLLAZY_OR_NOW DL_NOW
12755 # else
12756 # define LT_DLLAZY_OR_NOW 0
12757 # endif
12758 # endif
12759 # endif
12760 # endif
12761 #endif
12763 /* When -fvisbility=hidden is used, assume the code has been annotated
12764 correspondingly for the symbols needed. */
12765 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12766 void fnord () __attribute__((visibility("default")));
12767 #endif
12769 void fnord () { int i=42; }
12770 int main ()
12772 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12773 int status = $lt_dlunknown;
12775 if (self)
12777 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12778 else
12780 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12781 else puts (dlerror ());
12783 /* dlclose (self); */
12785 else
12786 puts (dlerror ());
12788 return status;
12790 _LT_EOF
12791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12792 (eval $ac_link) 2>&5
12793 ac_status=$?
12794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12796 (./conftest; exit; ) >&5 2>/dev/null
12797 lt_status=$?
12798 case x$lt_status in
12799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12801 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12802 esac
12803 else :
12804 # compilation failed
12805 lt_cv_dlopen_self=no
12808 rm -fr conftest*
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12813 $as_echo "$lt_cv_dlopen_self" >&6; }
12815 if test "x$lt_cv_dlopen_self" = xyes; then
12816 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12818 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12819 if ${lt_cv_dlopen_self_static+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test "$cross_compiling" = yes; then :
12823 lt_cv_dlopen_self_static=cross
12824 else
12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12826 lt_status=$lt_dlunknown
12827 cat > conftest.$ac_ext <<_LT_EOF
12828 #line 12828 "configure"
12829 #include "confdefs.h"
12831 #if HAVE_DLFCN_H
12832 #include <dlfcn.h>
12833 #endif
12835 #include <stdio.h>
12837 #ifdef RTLD_GLOBAL
12838 # define LT_DLGLOBAL RTLD_GLOBAL
12839 #else
12840 # ifdef DL_GLOBAL
12841 # define LT_DLGLOBAL DL_GLOBAL
12842 # else
12843 # define LT_DLGLOBAL 0
12844 # endif
12845 #endif
12847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12848 find out it does not work in some platform. */
12849 #ifndef LT_DLLAZY_OR_NOW
12850 # ifdef RTLD_LAZY
12851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12852 # else
12853 # ifdef DL_LAZY
12854 # define LT_DLLAZY_OR_NOW DL_LAZY
12855 # else
12856 # ifdef RTLD_NOW
12857 # define LT_DLLAZY_OR_NOW RTLD_NOW
12858 # else
12859 # ifdef DL_NOW
12860 # define LT_DLLAZY_OR_NOW DL_NOW
12861 # else
12862 # define LT_DLLAZY_OR_NOW 0
12863 # endif
12864 # endif
12865 # endif
12866 # endif
12867 #endif
12869 /* When -fvisbility=hidden is used, assume the code has been annotated
12870 correspondingly for the symbols needed. */
12871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12872 void fnord () __attribute__((visibility("default")));
12873 #endif
12875 void fnord () { int i=42; }
12876 int main ()
12878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12879 int status = $lt_dlunknown;
12881 if (self)
12883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12884 else
12886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887 else puts (dlerror ());
12889 /* dlclose (self); */
12891 else
12892 puts (dlerror ());
12894 return status;
12896 _LT_EOF
12897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12898 (eval $ac_link) 2>&5
12899 ac_status=$?
12900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12902 (./conftest; exit; ) >&5 2>/dev/null
12903 lt_status=$?
12904 case x$lt_status in
12905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12907 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12908 esac
12909 else :
12910 # compilation failed
12911 lt_cv_dlopen_self_static=no
12914 rm -fr conftest*
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12919 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12922 CPPFLAGS="$save_CPPFLAGS"
12923 LDFLAGS="$save_LDFLAGS"
12924 LIBS="$save_LIBS"
12926 esac
12928 case $lt_cv_dlopen_self in
12929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12930 *) enable_dlopen_self=unknown ;;
12931 esac
12933 case $lt_cv_dlopen_self_static in
12934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12935 *) enable_dlopen_self_static=unknown ;;
12936 esac
12955 striplib=
12956 old_striplib=
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12958 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12959 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12960 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12961 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963 $as_echo "yes" >&6; }
12964 else
12965 # FIXME - insert some real tests, host_os isn't really good enough
12966 case $host_os in
12967 darwin*)
12968 if test -n "$STRIP" ; then
12969 striplib="$STRIP -x"
12970 old_striplib="$STRIP -S"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972 $as_echo "yes" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12982 esac
12996 # Report which library types will actually be built
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12998 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13000 $as_echo "$can_build_shared" >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13003 $as_echo_n "checking whether to build shared libraries... " >&6; }
13004 test "$can_build_shared" = "no" && enable_shared=no
13006 # On AIX, shared libraries and static libraries use the same namespace, and
13007 # are all built from PIC.
13008 case $host_os in
13009 aix3*)
13010 test "$enable_shared" = yes && enable_static=no
13011 if test -n "$RANLIB"; then
13012 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13013 postinstall_cmds='$RANLIB $lib'
13017 aix[4-9]*)
13018 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13019 test "$enable_shared" = yes && enable_static=no
13022 esac
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13024 $as_echo "$enable_shared" >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13027 $as_echo_n "checking whether to build static libraries... " >&6; }
13028 # Make sure either enable_shared or enable_static is yes.
13029 test "$enable_shared" = yes || enable_static=yes
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13031 $as_echo "$enable_static" >&6; }
13037 ac_ext=c
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13043 CC="$lt_save_CC"
13057 ac_config_commands="$ac_config_commands libtool"
13062 # Only expand once:
13068 case $host in
13069 *-cygwin* | *-mingw*)
13070 # 'host' will be top-level target in the case of a target lib,
13071 # we must compare to with_cross_host to decide if this is a native
13072 # or cross-compiler and select where to install dlls appropriately.
13073 if test -n "$with_cross_host" &&
13074 test x"$with_cross_host" != x"no"; then
13075 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13076 else
13077 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13081 lt_host_flags=
13083 esac
13089 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13091 # We need gfortran to compile parts of the library
13092 #AC_PROG_FC(gfortran)
13093 FC="$GFORTRAN"
13094 ac_ext=${ac_fc_srcext-f}
13095 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13096 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13097 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13098 if test -n "$ac_tool_prefix"; then
13099 for ac_prog in gfortran
13101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_prog_FC+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 if test -n "$FC"; then
13109 ac_cv_prog_FC="$FC" # Let the user override the test.
13110 else
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 break 2
13122 done
13123 done
13124 IFS=$as_save_IFS
13128 FC=$ac_cv_prog_FC
13129 if test -n "$FC"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13131 $as_echo "$FC" >&6; }
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13138 test -n "$FC" && break
13139 done
13141 if test -z "$FC"; then
13142 ac_ct_FC=$FC
13143 for ac_prog in gfortran
13145 # Extract the first word of "$ac_prog", so it can be a program name with args.
13146 set dummy $ac_prog; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 if test -n "$ac_ct_FC"; then
13153 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13154 else
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_prog_ac_ct_FC="$ac_prog"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13166 done
13167 done
13168 IFS=$as_save_IFS
13172 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13173 if test -n "$ac_ct_FC"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13175 $as_echo "$ac_ct_FC" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13182 test -n "$ac_ct_FC" && break
13183 done
13185 if test "x$ac_ct_FC" = x; then
13186 FC=""
13187 else
13188 case $cross_compiling:$ac_tool_warned in
13189 yes:)
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13192 ac_tool_warned=yes ;;
13193 esac
13194 FC=$ac_ct_FC
13199 # Provide some information about the compiler.
13200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13201 set X $ac_compile
13202 ac_compiler=$2
13203 for ac_option in --version -v -V -qversion; do
13204 { { ac_try="$ac_compiler $ac_option >&5"
13205 case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13208 esac
13209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13210 $as_echo "$ac_try_echo"; } >&5
13211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13212 ac_status=$?
13213 if test -s conftest.err; then
13214 sed '10a\
13215 ... rest of stderr output deleted ...
13216 10q' conftest.err >conftest.er1
13217 cat conftest.er1 >&5
13219 rm -f conftest.er1 conftest.err
13220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221 test $ac_status = 0; }
13222 done
13223 rm -f a.out
13225 # If we don't use `.F' as extension, the preprocessor is not run on the
13226 # input file. (Note that this only needs to work for GNU compilers.)
13227 ac_save_ext=$ac_ext
13228 ac_ext=F
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13230 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13231 if ${ac_cv_fc_compiler_gnu+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 cat > conftest.$ac_ext <<_ACEOF
13235 program main
13236 #ifndef __GNUC__
13237 choke me
13238 #endif
13241 _ACEOF
13242 if ac_fn_fc_try_compile "$LINENO"; then :
13243 ac_compiler_gnu=yes
13244 else
13245 ac_compiler_gnu=no
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13252 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13253 ac_ext=$ac_save_ext
13254 ac_test_FCFLAGS=${FCFLAGS+set}
13255 ac_save_FCFLAGS=$FCFLAGS
13256 FCFLAGS=
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13258 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13259 if ${ac_cv_prog_fc_g+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 FCFLAGS=-g
13263 cat > conftest.$ac_ext <<_ACEOF
13264 program main
13267 _ACEOF
13268 if ac_fn_fc_try_compile "$LINENO"; then :
13269 ac_cv_prog_fc_g=yes
13270 else
13271 ac_cv_prog_fc_g=no
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13277 $as_echo "$ac_cv_prog_fc_g" >&6; }
13278 if test "$ac_test_FCFLAGS" = set; then
13279 FCFLAGS=$ac_save_FCFLAGS
13280 elif test $ac_cv_prog_fc_g = yes; then
13281 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13282 FCFLAGS="-g -O2"
13283 else
13284 FCFLAGS="-g"
13286 else
13287 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13288 FCFLAGS="-O2"
13289 else
13290 FCFLAGS=
13294 if test $ac_compiler_gnu = yes; then
13295 GFC=yes
13296 else
13297 GFC=
13299 ac_ext=c
13300 ac_cpp='$CPP $CPPFLAGS'
13301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13305 ac_ext=${ac_fc_srcext-f}
13306 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13307 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13308 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13311 if test -z "$FC" || test "X$FC" = "Xno"; then
13312 _lt_disable_FC=yes
13315 archive_cmds_need_lc_FC=no
13316 allow_undefined_flag_FC=
13317 always_export_symbols_FC=no
13318 archive_expsym_cmds_FC=
13319 export_dynamic_flag_spec_FC=
13320 hardcode_direct_FC=no
13321 hardcode_direct_absolute_FC=no
13322 hardcode_libdir_flag_spec_FC=
13323 hardcode_libdir_flag_spec_ld_FC=
13324 hardcode_libdir_separator_FC=
13325 hardcode_minus_L_FC=no
13326 hardcode_automatic_FC=no
13327 inherit_rpath_FC=no
13328 module_cmds_FC=
13329 module_expsym_cmds_FC=
13330 link_all_deplibs_FC=unknown
13331 old_archive_cmds_FC=$old_archive_cmds
13332 reload_flag_FC=$reload_flag
13333 reload_cmds_FC=$reload_cmds
13334 no_undefined_flag_FC=
13335 whole_archive_flag_spec_FC=
13336 enable_shared_with_static_runtimes_FC=no
13338 # Source file extension for fc test sources.
13339 ac_ext=${ac_fc_srcext-f}
13341 # Object file extension for compiled fc test sources.
13342 objext=o
13343 objext_FC=$objext
13345 # No sense in running all these tests if we already determined that
13346 # the FC compiler isn't working. Some variables (like enable_shared)
13347 # are currently assumed to apply to all compilers on this platform,
13348 # and will be corrupted by setting them based on a non-working compiler.
13349 if test "$_lt_disable_FC" != yes; then
13350 # Code to be used in simple compile tests
13351 lt_simple_compile_test_code="\
13352 subroutine t
13353 return
13357 # Code to be used in simple link tests
13358 lt_simple_link_test_code="\
13359 program t
13363 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13370 # If no C compiler was specified, use CC.
13371 LTCC=${LTCC-"$CC"}
13373 # If no C compiler flags were specified, use CFLAGS.
13374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13376 # Allow CC to be a program name with arguments.
13377 compiler=$CC
13380 # save warnings/boilerplate of simple test code
13381 ac_outfile=conftest.$ac_objext
13382 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13383 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13384 _lt_compiler_boilerplate=`cat conftest.err`
13385 $RM conftest*
13387 ac_outfile=conftest.$ac_objext
13388 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13389 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13390 _lt_linker_boilerplate=`cat conftest.err`
13391 $RM -r conftest*
13394 # Allow CC to be a program name with arguments.
13395 lt_save_CC="$CC"
13396 lt_save_GCC=$GCC
13397 CC=${FC-"f95"}
13398 compiler=$CC
13399 GCC=$ac_cv_fc_compiler_gnu
13401 compiler_FC=$CC
13402 for cc_temp in $compiler""; do
13403 case $cc_temp in
13404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13406 \-*) ;;
13407 *) break;;
13408 esac
13409 done
13410 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13413 if test -n "$compiler"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13417 $as_echo "$can_build_shared" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13420 $as_echo_n "checking whether to build shared libraries... " >&6; }
13421 test "$can_build_shared" = "no" && enable_shared=no
13423 # On AIX, shared libraries and static libraries use the same namespace, and
13424 # are all built from PIC.
13425 case $host_os in
13426 aix3*)
13427 test "$enable_shared" = yes && enable_static=no
13428 if test -n "$RANLIB"; then
13429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13430 postinstall_cmds='$RANLIB $lib'
13433 aix[4-9]*)
13434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13435 test "$enable_shared" = yes && enable_static=no
13438 esac
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13440 $as_echo "$enable_shared" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13443 $as_echo_n "checking whether to build static libraries... " >&6; }
13444 # Make sure either enable_shared or enable_static is yes.
13445 test "$enable_shared" = yes || enable_static=yes
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13447 $as_echo "$enable_static" >&6; }
13449 GCC_FC="$ac_cv_fc_compiler_gnu"
13450 LD_FC="$LD"
13452 ## CAVEAT EMPTOR:
13453 ## There is no encapsulation within the following macros, do not change
13454 ## the running order or otherwise move them around unless you know exactly
13455 ## what you are doing...
13456 # Dependencies to place before and after the object being linked:
13457 predep_objects_FC=
13458 postdep_objects_FC=
13459 predeps_FC=
13460 postdeps_FC=
13461 compiler_lib_search_path_FC=
13463 cat > conftest.$ac_ext <<_LT_EOF
13464 subroutine foo
13465 implicit none
13466 integer a
13468 return
13470 _LT_EOF
13472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13473 (eval $ac_compile) 2>&5
13474 ac_status=$?
13475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13476 test $ac_status = 0; }; then
13477 # Parse the compiler output and extract the necessary
13478 # objects, libraries and library flags.
13480 # Sentinel used to keep track of whether or not we are before
13481 # the conftest object file.
13482 pre_test_object_deps_done=no
13484 for p in `eval "$output_verbose_link_cmd"`; do
13485 case $p in
13487 -L* | -R* | -l*)
13488 # Some compilers place space between "-{L,R}" and the path.
13489 # Remove the space.
13490 if test $p = "-L" ||
13491 test $p = "-R"; then
13492 prev=$p
13493 continue
13494 else
13495 prev=
13498 if test "$pre_test_object_deps_done" = no; then
13499 case $p in
13500 -L* | -R*)
13501 # Internal compiler library paths should come after those
13502 # provided the user. The postdeps already come after the
13503 # user supplied libs so there is no need to process them.
13504 if test -z "$compiler_lib_search_path_FC"; then
13505 compiler_lib_search_path_FC="${prev}${p}"
13506 else
13507 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13510 # The "-l" case would never come before the object being
13511 # linked, so don't bother handling this case.
13512 esac
13513 else
13514 if test -z "$postdeps_FC"; then
13515 postdeps_FC="${prev}${p}"
13516 else
13517 postdeps_FC="${postdeps_FC} ${prev}${p}"
13522 *.$objext)
13523 # This assumes that the test object file only shows up
13524 # once in the compiler output.
13525 if test "$p" = "conftest.$objext"; then
13526 pre_test_object_deps_done=yes
13527 continue
13530 if test "$pre_test_object_deps_done" = no; then
13531 if test -z "$predep_objects_FC"; then
13532 predep_objects_FC="$p"
13533 else
13534 predep_objects_FC="$predep_objects_FC $p"
13536 else
13537 if test -z "$postdep_objects_FC"; then
13538 postdep_objects_FC="$p"
13539 else
13540 postdep_objects_FC="$postdep_objects_FC $p"
13545 *) ;; # Ignore the rest.
13547 esac
13548 done
13550 # Clean up.
13551 rm -f a.out a.exe
13552 else
13553 echo "libtool.m4: error: problem compiling FC test program"
13556 $RM -f confest.$objext
13558 # PORTME: override above test on systems where it is broken
13561 case " $postdeps_FC " in
13562 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13563 esac
13564 compiler_lib_search_dirs_FC=
13565 if test -n "${compiler_lib_search_path_FC}"; then
13566 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13599 lt_prog_compiler_wl_FC=
13600 lt_prog_compiler_pic_FC=
13601 lt_prog_compiler_static_FC=
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13606 if test "$GCC" = yes; then
13607 lt_prog_compiler_wl_FC='-Wl,'
13608 lt_prog_compiler_static_FC='-static'
13610 case $host_os in
13611 aix*)
13612 # All AIX code is PIC.
13613 if test "$host_cpu" = ia64; then
13614 # AIX 5 now supports IA64 processor
13615 lt_prog_compiler_static_FC='-Bstatic'
13617 lt_prog_compiler_pic_FC='-fPIC'
13620 amigaos*)
13621 case $host_cpu in
13622 powerpc)
13623 # see comment about AmigaOS4 .so support
13624 lt_prog_compiler_pic_FC='-fPIC'
13626 m68k)
13627 # FIXME: we need at least 68020 code to build shared libraries, but
13628 # adding the `-m68020' flag to GCC prevents building anything better,
13629 # like `-m68040'.
13630 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13632 esac
13635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13636 # PIC is the default for these OSes.
13639 mingw* | cygwin* | pw32* | os2* | cegcc*)
13640 # This hack is so that the source file can tell whether it is being
13641 # built for inclusion in a dll (and should export symbols for example).
13642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13643 # (--disable-auto-import) libraries
13644 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13647 darwin* | rhapsody*)
13648 # PIC is the default on this platform
13649 # Common symbols not allowed in MH_DYLIB files
13650 lt_prog_compiler_pic_FC='-fno-common'
13653 haiku*)
13654 # PIC is the default for Haiku.
13655 # The "-static" flag exists, but is broken.
13656 lt_prog_compiler_static_FC=
13659 hpux*)
13660 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13661 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13662 # sets the default TLS model and affects inlining.
13663 case $host_cpu in
13664 hppa*64*)
13665 # +Z the default
13668 lt_prog_compiler_pic_FC='-fPIC'
13670 esac
13673 interix[3-9]*)
13674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13675 # Instead, we relocate shared libraries at runtime.
13678 msdosdjgpp*)
13679 # Just because we use GCC doesn't mean we suddenly get shared libraries
13680 # on systems that don't support them.
13681 lt_prog_compiler_can_build_shared_FC=no
13682 enable_shared=no
13685 *nto* | *qnx*)
13686 # QNX uses GNU C++, but need to define -shared option too, otherwise
13687 # it will coredump.
13688 lt_prog_compiler_pic_FC='-fPIC -shared'
13691 sysv4*MP*)
13692 if test -d /usr/nec; then
13693 lt_prog_compiler_pic_FC=-Kconform_pic
13698 lt_prog_compiler_pic_FC='-fPIC'
13700 esac
13702 case $cc_basename in
13703 nvcc*) # Cuda Compiler Driver 2.2
13704 lt_prog_compiler_wl_FC='-Xlinker '
13705 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13707 esac
13708 else
13709 # PORTME Check for flag to pass linker flags through the system compiler.
13710 case $host_os in
13711 aix*)
13712 lt_prog_compiler_wl_FC='-Wl,'
13713 if test "$host_cpu" = ia64; then
13714 # AIX 5 now supports IA64 processor
13715 lt_prog_compiler_static_FC='-Bstatic'
13716 else
13717 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13721 mingw* | cygwin* | pw32* | os2* | cegcc*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13727 hpux9* | hpux10* | hpux11*)
13728 lt_prog_compiler_wl_FC='-Wl,'
13729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13730 # not for PA HP-UX.
13731 case $host_cpu in
13732 hppa*64*|ia64*)
13733 # +Z the default
13736 lt_prog_compiler_pic_FC='+Z'
13738 esac
13739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13740 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13743 irix5* | irix6* | nonstopux*)
13744 lt_prog_compiler_wl_FC='-Wl,'
13745 # PIC (with -KPIC) is the default.
13746 lt_prog_compiler_static_FC='-non_shared'
13749 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13750 case $cc_basename in
13751 # old Intel for x86_64 which still supported -KPIC.
13752 ecc*)
13753 lt_prog_compiler_wl_FC='-Wl,'
13754 lt_prog_compiler_pic_FC='-KPIC'
13755 lt_prog_compiler_static_FC='-static'
13757 # icc used to be incompatible with GCC.
13758 # ICC 10 doesn't accept -KPIC any more.
13759 icc* | ifort*)
13760 lt_prog_compiler_wl_FC='-Wl,'
13761 lt_prog_compiler_pic_FC='-fPIC'
13762 lt_prog_compiler_static_FC='-static'
13764 # Lahey Fortran 8.1.
13765 lf95*)
13766 lt_prog_compiler_wl_FC='-Wl,'
13767 lt_prog_compiler_pic_FC='--shared'
13768 lt_prog_compiler_static_FC='--static'
13770 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13771 # Portland Group compilers (*not* the Pentium gcc compiler,
13772 # which looks to be a dead project)
13773 lt_prog_compiler_wl_FC='-Wl,'
13774 lt_prog_compiler_pic_FC='-fpic'
13775 lt_prog_compiler_static_FC='-Bstatic'
13777 ccc*)
13778 lt_prog_compiler_wl_FC='-Wl,'
13779 # All Alpha code is PIC.
13780 lt_prog_compiler_static_FC='-non_shared'
13782 xl* | bgxl* | bgf* | mpixl*)
13783 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13784 lt_prog_compiler_wl_FC='-Wl,'
13785 lt_prog_compiler_pic_FC='-qpic'
13786 lt_prog_compiler_static_FC='-qstaticlink'
13789 case `$CC -V 2>&1 | sed 5q` in
13790 *Sun\ F* | *Sun*Fortran*)
13791 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13792 lt_prog_compiler_pic_FC='-KPIC'
13793 lt_prog_compiler_static_FC='-Bstatic'
13794 lt_prog_compiler_wl_FC=''
13796 *Sun\ C*)
13797 # Sun C 5.9
13798 lt_prog_compiler_pic_FC='-KPIC'
13799 lt_prog_compiler_static_FC='-Bstatic'
13800 lt_prog_compiler_wl_FC='-Wl,'
13802 esac
13804 esac
13807 newsos6)
13808 lt_prog_compiler_pic_FC='-KPIC'
13809 lt_prog_compiler_static_FC='-Bstatic'
13812 *nto* | *qnx*)
13813 # QNX uses GNU C++, but need to define -shared option too, otherwise
13814 # it will coredump.
13815 lt_prog_compiler_pic_FC='-fPIC -shared'
13818 osf3* | osf4* | osf5*)
13819 lt_prog_compiler_wl_FC='-Wl,'
13820 # All OSF/1 code is PIC.
13821 lt_prog_compiler_static_FC='-non_shared'
13824 rdos*)
13825 lt_prog_compiler_static_FC='-non_shared'
13828 solaris*)
13829 lt_prog_compiler_pic_FC='-KPIC'
13830 lt_prog_compiler_static_FC='-Bstatic'
13831 case $cc_basename in
13832 f77* | f90* | f95*)
13833 lt_prog_compiler_wl_FC='-Qoption ld ';;
13835 lt_prog_compiler_wl_FC='-Wl,';;
13836 esac
13839 sunos4*)
13840 lt_prog_compiler_wl_FC='-Qoption ld '
13841 lt_prog_compiler_pic_FC='-PIC'
13842 lt_prog_compiler_static_FC='-Bstatic'
13845 sysv4 | sysv4.2uw2* | sysv4.3*)
13846 lt_prog_compiler_wl_FC='-Wl,'
13847 lt_prog_compiler_pic_FC='-KPIC'
13848 lt_prog_compiler_static_FC='-Bstatic'
13851 sysv4*MP*)
13852 if test -d /usr/nec ;then
13853 lt_prog_compiler_pic_FC='-Kconform_pic'
13854 lt_prog_compiler_static_FC='-Bstatic'
13858 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13859 lt_prog_compiler_wl_FC='-Wl,'
13860 lt_prog_compiler_pic_FC='-KPIC'
13861 lt_prog_compiler_static_FC='-Bstatic'
13864 unicos*)
13865 lt_prog_compiler_wl_FC='-Wl,'
13866 lt_prog_compiler_can_build_shared_FC=no
13869 uts4*)
13870 lt_prog_compiler_pic_FC='-pic'
13871 lt_prog_compiler_static_FC='-Bstatic'
13875 lt_prog_compiler_can_build_shared_FC=no
13877 esac
13880 case $host_os in
13881 # For platforms which do not support PIC, -DPIC is meaningless:
13882 *djgpp*)
13883 lt_prog_compiler_pic_FC=
13886 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13888 esac
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13890 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13895 # Check to make sure the PIC flag actually works.
13897 if test -n "$lt_prog_compiler_pic_FC"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13900 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 lt_cv_prog_compiler_pic_works_FC=no
13904 ac_outfile=conftest.$ac_objext
13905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13906 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13907 # Insert the option either (1) after the last *FLAGS variable, or
13908 # (2) before a word containing "conftest.", or (3) at the end.
13909 # Note that $ac_compile itself does not contain backslashes and begins
13910 # with a dollar sign (not a hyphen), so the echo should work correctly.
13911 # The option is referenced via a variable to avoid confusing sed.
13912 lt_compile=`echo "$ac_compile" | $SED \
13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13915 -e 's:$: $lt_compiler_flag:'`
13916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13917 (eval "$lt_compile" 2>conftest.err)
13918 ac_status=$?
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 if (exit $ac_status) && test -s "$ac_outfile"; then
13922 # The compiler can only warn and ignore the option if not recognized
13923 # So say no if there are warnings other than the usual output.
13924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13927 lt_cv_prog_compiler_pic_works_FC=yes
13930 $RM conftest*
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13934 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13936 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13937 case $lt_prog_compiler_pic_FC in
13938 "" | " "*) ;;
13939 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13940 esac
13941 else
13942 lt_prog_compiler_pic_FC=
13943 lt_prog_compiler_can_build_shared_FC=no
13951 # Check to make sure the static flag actually works.
13953 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13955 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13956 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 lt_cv_prog_compiler_static_works_FC=no
13960 save_LDFLAGS="$LDFLAGS"
13961 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13962 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13964 # The linker can only warn and ignore the option if not recognized
13965 # So say no if there are warnings
13966 if test -s conftest.err; then
13967 # Append any errors to the config.log.
13968 cat conftest.err 1>&5
13969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13971 if diff conftest.exp conftest.er2 >/dev/null; then
13972 lt_cv_prog_compiler_static_works_FC=yes
13974 else
13975 lt_cv_prog_compiler_static_works_FC=yes
13978 $RM -r conftest*
13979 LDFLAGS="$save_LDFLAGS"
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13983 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13985 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13987 else
13988 lt_prog_compiler_static_FC=
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13996 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 lt_cv_prog_compiler_c_o_FC=no
14000 $RM -r conftest 2>/dev/null
14001 mkdir conftest
14002 cd conftest
14003 mkdir out
14004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006 lt_compiler_flag="-o out/conftest2.$ac_objext"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 lt_compile=`echo "$ac_compile" | $SED \
14012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14014 -e 's:$: $lt_compiler_flag:'`
14015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14016 (eval "$lt_compile" 2>out/conftest.err)
14017 ac_status=$?
14018 cat out/conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14021 then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings
14024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14027 lt_cv_prog_compiler_c_o_FC=yes
14030 chmod u+w . 2>&5
14031 $RM conftest*
14032 # SGI C++ compiler will create directory out/ii_files/ for
14033 # template instantiation
14034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14035 $RM out/* && rmdir out
14036 cd ..
14037 $RM -r conftest
14038 $RM conftest*
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14042 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14048 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 lt_cv_prog_compiler_c_o_FC=no
14052 $RM -r conftest 2>/dev/null
14053 mkdir conftest
14054 cd conftest
14055 mkdir out
14056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14058 lt_compiler_flag="-o out/conftest2.$ac_objext"
14059 # Insert the option either (1) after the last *FLAGS variable, or
14060 # (2) before a word containing "conftest.", or (3) at the end.
14061 # Note that $ac_compile itself does not contain backslashes and begins
14062 # with a dollar sign (not a hyphen), so the echo should work correctly.
14063 lt_compile=`echo "$ac_compile" | $SED \
14064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14066 -e 's:$: $lt_compiler_flag:'`
14067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14068 (eval "$lt_compile" 2>out/conftest.err)
14069 ac_status=$?
14070 cat out/conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14073 then
14074 # The compiler can only warn and ignore the option if not recognized
14075 # So say no if there are warnings
14076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14079 lt_cv_prog_compiler_c_o_FC=yes
14082 chmod u+w . 2>&5
14083 $RM conftest*
14084 # SGI C++ compiler will create directory out/ii_files/ for
14085 # template instantiation
14086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14087 $RM out/* && rmdir out
14088 cd ..
14089 $RM -r conftest
14090 $RM conftest*
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14094 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14099 hard_links="nottested"
14100 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14101 # do not overwrite the value of need_locks provided by the user
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14103 $as_echo_n "checking if we can lock with hard links... " >&6; }
14104 hard_links=yes
14105 $RM conftest*
14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107 touch conftest.a
14108 ln conftest.a conftest.b 2>&5 || hard_links=no
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14111 $as_echo "$hard_links" >&6; }
14112 if test "$hard_links" = no; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14115 need_locks=warn
14117 else
14118 need_locks=no
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14124 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14126 runpath_var=
14127 allow_undefined_flag_FC=
14128 always_export_symbols_FC=no
14129 archive_cmds_FC=
14130 archive_expsym_cmds_FC=
14131 compiler_needs_object_FC=no
14132 enable_shared_with_static_runtimes_FC=no
14133 export_dynamic_flag_spec_FC=
14134 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14135 hardcode_automatic_FC=no
14136 hardcode_direct_FC=no
14137 hardcode_direct_absolute_FC=no
14138 hardcode_libdir_flag_spec_FC=
14139 hardcode_libdir_flag_spec_ld_FC=
14140 hardcode_libdir_separator_FC=
14141 hardcode_minus_L_FC=no
14142 hardcode_shlibpath_var_FC=unsupported
14143 inherit_rpath_FC=no
14144 link_all_deplibs_FC=unknown
14145 module_cmds_FC=
14146 module_expsym_cmds_FC=
14147 old_archive_from_new_cmds_FC=
14148 old_archive_from_expsyms_cmds_FC=
14149 thread_safe_flag_spec_FC=
14150 whole_archive_flag_spec_FC=
14151 # include_expsyms should be a list of space-separated symbols to be *always*
14152 # included in the symbol list
14153 include_expsyms_FC=
14154 # exclude_expsyms can be an extended regexp of symbols to exclude
14155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14157 # as well as any symbol that contains `d'.
14158 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14160 # platforms (ab)use it in PIC code, but their linkers get confused if
14161 # the symbol is explicitly referenced. Since portable code cannot
14162 # rely on this symbol name, it's probably fine to never include it in
14163 # preloaded symbol tables.
14164 # Exclude shared library initialization/finalization symbols.
14165 extract_expsyms_cmds=
14167 case $host_os in
14168 cygwin* | mingw* | pw32* | cegcc*)
14169 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14170 # When not using gcc, we currently assume that we are using
14171 # Microsoft Visual C++.
14172 if test "$GCC" != yes; then
14173 with_gnu_ld=no
14176 interix*)
14177 # we just hope/assume this is gcc and not c89 (= MSVC++)
14178 with_gnu_ld=yes
14180 openbsd*)
14181 with_gnu_ld=no
14183 esac
14185 ld_shlibs_FC=yes
14187 # On some targets, GNU ld is compatible enough with the native linker
14188 # that we're better off using the native interface for both.
14189 lt_use_gnu_ld_interface=no
14190 if test "$with_gnu_ld" = yes; then
14191 case $host_os in
14192 aix*)
14193 # The AIX port of GNU ld has always aspired to compatibility
14194 # with the native linker. However, as the warning in the GNU ld
14195 # block says, versions before 2.19.5* couldn't really create working
14196 # shared libraries, regardless of the interface used.
14197 case `$LD -v 2>&1` in
14198 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14199 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14200 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14202 lt_use_gnu_ld_interface=yes
14204 esac
14207 lt_use_gnu_ld_interface=yes
14209 esac
14212 if test "$lt_use_gnu_ld_interface" = yes; then
14213 # If archive_cmds runs LD, not CC, wlarc should be empty
14214 wlarc='${wl}'
14216 # Set some defaults for GNU ld with shared library support. These
14217 # are reset later if shared libraries are not supported. Putting them
14218 # here allows them to be overridden if necessary.
14219 runpath_var=LD_RUN_PATH
14220 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14221 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14222 # ancient GNU ld didn't support --whole-archive et. al.
14223 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14224 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14225 else
14226 whole_archive_flag_spec_FC=
14228 supports_anon_versioning=no
14229 case `$LD -v 2>&1` in
14230 *GNU\ gold*) supports_anon_versioning=yes ;;
14231 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14232 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14233 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14234 *\ 2.11.*) ;; # other 2.11 versions
14235 *) supports_anon_versioning=yes ;;
14236 esac
14238 # See if GNU ld supports shared libraries.
14239 case $host_os in
14240 aix[3-9]*)
14241 # On AIX/PPC, the GNU linker is very broken
14242 if test "$host_cpu" != ia64; then
14243 ld_shlibs_FC=no
14244 cat <<_LT_EOF 1>&2
14246 *** Warning: the GNU linker, at least up to release 2.19, is reported
14247 *** to be unable to reliably create shared libraries on AIX.
14248 *** Therefore, libtool is disabling shared libraries support. If you
14249 *** really care for shared libraries, you may want to install binutils
14250 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14251 *** You will then need to restart the configuration process.
14253 _LT_EOF
14257 amigaos*)
14258 case $host_cpu in
14259 powerpc)
14260 # see comment about AmigaOS4 .so support
14261 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14262 archive_expsym_cmds_FC=''
14264 m68k)
14265 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)'
14266 hardcode_libdir_flag_spec_FC='-L$libdir'
14267 hardcode_minus_L_FC=yes
14269 esac
14272 beos*)
14273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14274 allow_undefined_flag_FC=unsupported
14275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14276 # support --undefined. This deserves some investigation. FIXME
14277 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278 else
14279 ld_shlibs_FC=no
14283 cygwin* | mingw* | pw32* | cegcc*)
14284 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14285 # as there is no search path for DLLs.
14286 hardcode_libdir_flag_spec_FC='-L$libdir'
14287 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14288 allow_undefined_flag_FC=unsupported
14289 always_export_symbols_FC=no
14290 enable_shared_with_static_runtimes_FC=yes
14291 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14293 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14294 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14295 # If the export-symbols file already is a .def file (1st line
14296 # is EXPORTS), use it as is; otherwise, prepend...
14297 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14298 cp $export_symbols $output_objdir/$soname.def;
14299 else
14300 echo EXPORTS > $output_objdir/$soname.def;
14301 cat $export_symbols >> $output_objdir/$soname.def;
14303 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14304 else
14305 ld_shlibs_FC=no
14309 haiku*)
14310 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311 link_all_deplibs_FC=yes
14314 interix[3-9]*)
14315 hardcode_direct_FC=no
14316 hardcode_shlibpath_var_FC=no
14317 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14318 export_dynamic_flag_spec_FC='${wl}-E'
14319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14320 # Instead, shared libraries are loaded at an image base (0x10000000 by
14321 # default) and relocated if they conflict, which is a slow very memory
14322 # consuming and fragmenting process. To avoid this, we pick a random,
14323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14325 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'
14326 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'
14329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14330 tmp_diet=no
14331 if test "$host_os" = linux-dietlibc; then
14332 case $cc_basename in
14333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14334 esac
14336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14337 && test "$tmp_diet" = no
14338 then
14339 tmp_addflag=' $pic_flag'
14340 tmp_sharedflag='-shared'
14341 case $cc_basename,$host_cpu in
14342 pgcc*) # Portland Group C compiler
14343 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'
14344 tmp_addflag=' $pic_flag'
14346 pgf77* | pgf90* | pgf95* | pgfortran*)
14347 # Portland Group f77 and f90 compilers
14348 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'
14349 tmp_addflag=' $pic_flag -Mnomain' ;;
14350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14351 tmp_addflag=' -i_dynamic' ;;
14352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14353 tmp_addflag=' -i_dynamic -nofor_main' ;;
14354 ifc* | ifort*) # Intel Fortran compiler
14355 tmp_addflag=' -nofor_main' ;;
14356 lf95*) # Lahey Fortran 8.1
14357 whole_archive_flag_spec_FC=
14358 tmp_sharedflag='--shared' ;;
14359 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14360 tmp_sharedflag='-qmkshrobj'
14361 tmp_addflag= ;;
14362 nvcc*) # Cuda Compiler Driver 2.2
14363 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'
14364 compiler_needs_object_FC=yes
14366 esac
14367 case `$CC -V 2>&1 | sed 5q` in
14368 *Sun\ C*) # Sun C 5.9
14369 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'
14370 compiler_needs_object_FC=yes
14371 tmp_sharedflag='-G' ;;
14372 *Sun\ F*) # Sun Fortran 8.3
14373 tmp_sharedflag='-G' ;;
14374 esac
14375 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14377 if test "x$supports_anon_versioning" = xyes; then
14378 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14380 echo "local: *; };" >> $output_objdir/$libname.ver~
14381 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14384 case $cc_basename in
14385 xlf* | bgf* | bgxlf* | mpixlf*)
14386 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14387 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14388 hardcode_libdir_flag_spec_FC=
14389 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14390 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14391 if test "x$supports_anon_versioning" = xyes; then
14392 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14394 echo "local: *; };" >> $output_objdir/$libname.ver~
14395 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14398 esac
14399 else
14400 ld_shlibs_FC=no
14404 netbsd*)
14405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14406 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14407 wlarc=
14408 else
14409 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14414 solaris*)
14415 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14416 ld_shlibs_FC=no
14417 cat <<_LT_EOF 1>&2
14419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14420 *** create shared libraries on Solaris systems. Therefore, libtool
14421 *** is disabling shared libraries support. We urge you to upgrade GNU
14422 *** binutils to release 2.9.1 or newer. Another option is to modify
14423 *** your PATH or compiler configuration so that the native linker is
14424 *** used, and then restart.
14426 _LT_EOF
14427 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14428 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430 else
14431 ld_shlibs_FC=no
14435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14436 case `$LD -v 2>&1` in
14437 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14438 ld_shlibs_FC=no
14439 cat <<_LT_EOF 1>&2
14441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14442 *** reliably create shared libraries on SCO systems. Therefore, libtool
14443 *** is disabling shared libraries support. We urge you to upgrade GNU
14444 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14445 *** your PATH or compiler configuration so that the native linker is
14446 *** used, and then restart.
14448 _LT_EOF
14451 # For security reasons, it is highly recommended that you always
14452 # use absolute paths for naming shared libraries, and exclude the
14453 # DT_RUNPATH tag from executables and libraries. But doing so
14454 # requires that you compile everything twice, which is a pain.
14455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14456 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14457 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14458 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14459 else
14460 ld_shlibs_FC=no
14463 esac
14466 sunos4*)
14467 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14468 wlarc=
14469 hardcode_direct_FC=yes
14470 hardcode_shlibpath_var_FC=no
14474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14475 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14476 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14477 else
14478 ld_shlibs_FC=no
14481 esac
14483 if test "$ld_shlibs_FC" = no; then
14484 runpath_var=
14485 hardcode_libdir_flag_spec_FC=
14486 export_dynamic_flag_spec_FC=
14487 whole_archive_flag_spec_FC=
14489 else
14490 # PORTME fill in a description of your system's linker (not GNU ld)
14491 case $host_os in
14492 aix3*)
14493 allow_undefined_flag_FC=unsupported
14494 always_export_symbols_FC=yes
14495 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'
14496 # Note: this linker hardcodes the directories in LIBPATH if there
14497 # are no directories specified by -L.
14498 hardcode_minus_L_FC=yes
14499 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14500 # Neither direct hardcoding nor static linking is supported with a
14501 # broken collect2.
14502 hardcode_direct_FC=unsupported
14506 aix[4-9]*)
14507 if test "$host_cpu" = ia64; then
14508 # On IA64, the linker does run time linking by default, so we don't
14509 # have to do anything special.
14510 aix_use_runtimelinking=no
14511 exp_sym_flag='-Bexport'
14512 no_entry_flag=""
14513 else
14514 # If we're using GNU nm, then we don't want the "-C" option.
14515 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14516 # Also, AIX nm treats weak defined symbols like other global
14517 # defined symbols, whereas GNU nm marks them as "W".
14518 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14519 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'
14520 else
14521 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'
14523 aix_use_runtimelinking=no
14525 # Test if we are trying to use run time linking or normal
14526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14527 # need to do runtime linking.
14528 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14529 for ld_flag in $LDFLAGS; do
14530 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14531 aix_use_runtimelinking=yes
14532 break
14534 done
14536 esac
14538 exp_sym_flag='-bexport'
14539 no_entry_flag='-bnoentry'
14542 # When large executables or shared objects are built, AIX ld can
14543 # have problems creating the table of contents. If linking a library
14544 # or program results in "error TOC overflow" add -mminimal-toc to
14545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14548 archive_cmds_FC=''
14549 hardcode_direct_FC=yes
14550 hardcode_direct_absolute_FC=yes
14551 hardcode_libdir_separator_FC=':'
14552 link_all_deplibs_FC=yes
14553 file_list_spec_FC='${wl}-f,'
14555 if test "$GCC" = yes; then
14556 case $host_os in aix4.[012]|aix4.[012].*)
14557 # We only want to do this on AIX 4.2 and lower, the check
14558 # below for broken collect2 doesn't work under 4.3+
14559 collect2name=`${CC} -print-prog-name=collect2`
14560 if test -f "$collect2name" &&
14561 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14562 then
14563 # We have reworked collect2
14565 else
14566 # We have old collect2
14567 hardcode_direct_FC=unsupported
14568 # It fails to find uninstalled libraries when the uninstalled
14569 # path is not listed in the libpath. Setting hardcode_minus_L
14570 # to unsupported forces relinking
14571 hardcode_minus_L_FC=yes
14572 hardcode_libdir_flag_spec_FC='-L$libdir'
14573 hardcode_libdir_separator_FC=
14576 esac
14577 shared_flag='-shared'
14578 if test "$aix_use_runtimelinking" = yes; then
14579 shared_flag="$shared_flag "'${wl}-G'
14581 else
14582 # not using gcc
14583 if test "$host_cpu" = ia64; then
14584 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14585 # chokes on -Wl,-G. The following line is correct:
14586 shared_flag='-G'
14587 else
14588 if test "$aix_use_runtimelinking" = yes; then
14589 shared_flag='${wl}-G'
14590 else
14591 shared_flag='${wl}-bM:SRE'
14596 export_dynamic_flag_spec_FC='${wl}-bexpall'
14597 # It seems that -bexpall does not export symbols beginning with
14598 # underscore (_), so it is better to generate a list of symbols to export.
14599 always_export_symbols_FC=yes
14600 if test "$aix_use_runtimelinking" = yes; then
14601 # Warning - without using the other runtime loading flags (-brtl),
14602 # -berok will link without error, but may produce a broken library.
14603 allow_undefined_flag_FC='-berok'
14604 # Determine the default libpath from the value encoded in an
14605 # empty executable.
14606 if test x$gcc_no_link = xyes; then
14607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14609 cat > conftest.$ac_ext <<_ACEOF
14610 program main
14613 _ACEOF
14614 if ac_fn_fc_try_link "$LINENO"; then :
14616 lt_aix_libpath_sed='
14617 /Import File Strings/,/^$/ {
14618 /^0/ {
14619 s/^0 *\(.*\)$/\1/
14623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14624 # Check for a 64-bit object if we didn't find anything.
14625 if test -z "$aix_libpath"; then
14626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14633 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14634 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"
14635 else
14636 if test "$host_cpu" = ia64; then
14637 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14638 allow_undefined_flag_FC="-z nodefs"
14639 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"
14640 else
14641 # Determine the default libpath from the value encoded in an
14642 # empty executable.
14643 if test x$gcc_no_link = xyes; then
14644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14646 cat > conftest.$ac_ext <<_ACEOF
14647 program main
14650 _ACEOF
14651 if ac_fn_fc_try_link "$LINENO"; then :
14653 lt_aix_libpath_sed='
14654 /Import File Strings/,/^$/ {
14655 /^0/ {
14656 s/^0 *\(.*\)$/\1/
14660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14661 # Check for a 64-bit object if we didn't find anything.
14662 if test -z "$aix_libpath"; then
14663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14666 rm -f core conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14670 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14671 # Warning - without using the other run time loading flags,
14672 # -berok will link without error, but may produce a broken library.
14673 no_undefined_flag_FC=' ${wl}-bernotok'
14674 allow_undefined_flag_FC=' ${wl}-berok'
14675 if test "$with_gnu_ld" = yes; then
14676 # We only use this code for GNU lds that support --whole-archive.
14677 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14678 else
14679 # Exported symbols can be pulled into shared objects from archives
14680 whole_archive_flag_spec_FC='$convenience'
14682 archive_cmds_need_lc_FC=yes
14683 # This is similar to how AIX traditionally builds its shared libraries.
14684 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'
14689 amigaos*)
14690 case $host_cpu in
14691 powerpc)
14692 # see comment about AmigaOS4 .so support
14693 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 archive_expsym_cmds_FC=''
14696 m68k)
14697 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)'
14698 hardcode_libdir_flag_spec_FC='-L$libdir'
14699 hardcode_minus_L_FC=yes
14701 esac
14704 bsdi[45]*)
14705 export_dynamic_flag_spec_FC=-rdynamic
14708 cygwin* | mingw* | pw32* | cegcc*)
14709 # When not using gcc, we currently assume that we are using
14710 # Microsoft Visual C++.
14711 # hardcode_libdir_flag_spec is actually meaningless, as there is
14712 # no search path for DLLs.
14713 hardcode_libdir_flag_spec_FC=' '
14714 allow_undefined_flag_FC=unsupported
14715 # Tell ltmain to make .lib files, not .a files.
14716 libext=lib
14717 # Tell ltmain to make .dll files, not .so files.
14718 shrext_cmds=".dll"
14719 # FIXME: Setting linknames here is a bad hack.
14720 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14721 # The linker will automatically build a .lib file if we build a DLL.
14722 old_archive_from_new_cmds_FC='true'
14723 # FIXME: Should let the user specify the lib program.
14724 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14725 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14726 enable_shared_with_static_runtimes_FC=yes
14729 darwin* | rhapsody*)
14732 archive_cmds_need_lc_FC=no
14733 hardcode_direct_FC=no
14734 hardcode_automatic_FC=yes
14735 hardcode_shlibpath_var_FC=unsupported
14736 if test "$lt_cv_ld_force_load" = "yes"; then
14737 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\"`'
14738 else
14739 whole_archive_flag_spec_FC=''
14741 link_all_deplibs_FC=yes
14742 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14743 case $cc_basename in
14744 ifort*) _lt_dar_can_shared=yes ;;
14745 *) _lt_dar_can_shared=$GCC ;;
14746 esac
14747 if test "$_lt_dar_can_shared" = "yes"; then
14748 output_verbose_link_cmd=func_echo_all
14749 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}"
14750 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14751 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}"
14752 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}"
14754 else
14755 ld_shlibs_FC=no
14760 dgux*)
14761 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14762 hardcode_libdir_flag_spec_FC='-L$libdir'
14763 hardcode_shlibpath_var_FC=no
14766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14767 # support. Future versions do this automatically, but an explicit c++rt0.o
14768 # does not break anything, and helps significantly (at the cost of a little
14769 # extra space).
14770 freebsd2.2*)
14771 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14772 hardcode_libdir_flag_spec_FC='-R$libdir'
14773 hardcode_direct_FC=yes
14774 hardcode_shlibpath_var_FC=no
14777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14778 freebsd2.*)
14779 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_direct_FC=yes
14781 hardcode_minus_L_FC=yes
14782 hardcode_shlibpath_var_FC=no
14785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14786 freebsd* | dragonfly*)
14787 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14788 hardcode_libdir_flag_spec_FC='-R$libdir'
14789 hardcode_direct_FC=yes
14790 hardcode_shlibpath_var_FC=no
14793 hpux9*)
14794 if test "$GCC" = yes; then
14795 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'
14796 else
14797 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'
14799 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14800 hardcode_libdir_separator_FC=:
14801 hardcode_direct_FC=yes
14803 # hardcode_minus_L: Not really in the search PATH,
14804 # but as the default location of the library.
14805 hardcode_minus_L_FC=yes
14806 export_dynamic_flag_spec_FC='${wl}-E'
14809 hpux10*)
14810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14811 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14812 else
14813 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14815 if test "$with_gnu_ld" = no; then
14816 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14817 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14818 hardcode_libdir_separator_FC=:
14819 hardcode_direct_FC=yes
14820 hardcode_direct_absolute_FC=yes
14821 export_dynamic_flag_spec_FC='${wl}-E'
14822 # hardcode_minus_L: Not really in the search PATH,
14823 # but as the default location of the library.
14824 hardcode_minus_L_FC=yes
14828 hpux11*)
14829 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14830 case $host_cpu in
14831 hppa*64*)
14832 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14834 ia64*)
14835 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14838 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14840 esac
14841 else
14842 case $host_cpu in
14843 hppa*64*)
14844 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 ia64*)
14847 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14852 esac
14854 if test "$with_gnu_ld" = no; then
14855 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14856 hardcode_libdir_separator_FC=:
14858 case $host_cpu in
14859 hppa*64*|ia64*)
14860 hardcode_direct_FC=no
14861 hardcode_shlibpath_var_FC=no
14864 hardcode_direct_FC=yes
14865 hardcode_direct_absolute_FC=yes
14866 export_dynamic_flag_spec_FC='${wl}-E'
14868 # hardcode_minus_L: Not really in the search PATH,
14869 # but as the default location of the library.
14870 hardcode_minus_L_FC=yes
14872 esac
14876 irix5* | irix6* | nonstopux*)
14877 if test "$GCC" = yes; then
14878 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'
14879 # Try to use the -exported_symbol ld option, if it does not
14880 # work, assume that -exports_file does not work either and
14881 # implicitly export all symbols.
14882 save_LDFLAGS="$LDFLAGS"
14883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14884 if test x$gcc_no_link = xyes; then
14885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14887 cat > conftest.$ac_ext <<_ACEOF
14888 int foo(void) {}
14889 _ACEOF
14890 if ac_fn_fc_try_link "$LINENO"; then :
14891 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'
14894 rm -f core conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LDFLAGS="$save_LDFLAGS"
14897 else
14898 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'
14899 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'
14901 archive_cmds_need_lc_FC='no'
14902 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14903 hardcode_libdir_separator_FC=:
14904 inherit_rpath_FC=yes
14905 link_all_deplibs_FC=yes
14908 netbsd*)
14909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14910 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14911 else
14912 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14914 hardcode_libdir_flag_spec_FC='-R$libdir'
14915 hardcode_direct_FC=yes
14916 hardcode_shlibpath_var_FC=no
14919 newsos6)
14920 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921 hardcode_direct_FC=yes
14922 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14923 hardcode_libdir_separator_FC=:
14924 hardcode_shlibpath_var_FC=no
14927 *nto* | *qnx*)
14930 openbsd*)
14931 if test -f /usr/libexec/ld.so; then
14932 hardcode_direct_FC=yes
14933 hardcode_shlibpath_var_FC=no
14934 hardcode_direct_absolute_FC=yes
14935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14936 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14938 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14939 export_dynamic_flag_spec_FC='${wl}-E'
14940 else
14941 case $host_os in
14942 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14943 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_libdir_flag_spec_FC='-R$libdir'
14947 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14948 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14950 esac
14952 else
14953 ld_shlibs_FC=no
14957 os2*)
14958 hardcode_libdir_flag_spec_FC='-L$libdir'
14959 hardcode_minus_L_FC=yes
14960 allow_undefined_flag_FC=unsupported
14961 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'
14962 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14965 osf3*)
14966 if test "$GCC" = yes; then
14967 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14968 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'
14969 else
14970 allow_undefined_flag_FC=' -expect_unresolved \*'
14971 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'
14973 archive_cmds_need_lc_FC='no'
14974 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14975 hardcode_libdir_separator_FC=:
14978 osf4* | osf5*) # as osf3* with the addition of -msym flag
14979 if test "$GCC" = yes; then
14980 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14981 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'
14982 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14983 else
14984 allow_undefined_flag_FC=' -expect_unresolved \*'
14985 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'
14986 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~
14987 $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'
14989 # Both c and cxx compiler support -rpath directly
14990 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14992 archive_cmds_need_lc_FC='no'
14993 hardcode_libdir_separator_FC=:
14996 solaris*)
14997 no_undefined_flag_FC=' -z defs'
14998 if test "$GCC" = yes; then
14999 wlarc='${wl}'
15000 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15002 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15003 else
15004 case `$CC -V 2>&1` in
15005 *"Compilers 5.0"*)
15006 wlarc=''
15007 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15012 wlarc='${wl}'
15013 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15015 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15017 esac
15019 hardcode_libdir_flag_spec_FC='-R$libdir'
15020 hardcode_shlibpath_var_FC=no
15021 case $host_os in
15022 solaris2.[0-5] | solaris2.[0-5].*) ;;
15024 # The compiler driver will combine and reorder linker options,
15025 # but understands `-z linker_flag'. GCC discards it without `$wl',
15026 # but is careful enough not to reorder.
15027 # Supported since Solaris 2.6 (maybe 2.5.1?)
15028 if test "$GCC" = yes; then
15029 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15030 else
15031 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15034 esac
15035 link_all_deplibs_FC=yes
15038 sunos4*)
15039 if test "x$host_vendor" = xsequent; then
15040 # Use $CC to link under sequent, because it throws in some extra .o
15041 # files that make .init and .fini sections work.
15042 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15043 else
15044 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_libdir_flag_spec_FC='-L$libdir'
15047 hardcode_direct_FC=yes
15048 hardcode_minus_L_FC=yes
15049 hardcode_shlibpath_var_FC=no
15052 sysv4)
15053 case $host_vendor in
15054 sni)
15055 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_direct_FC=yes # is this really true???
15058 siemens)
15059 ## LD is ld it makes a PLAMLIB
15060 ## CC just makes a GrossModule.
15061 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15062 reload_cmds_FC='$CC -r -o $output$reload_objs'
15063 hardcode_direct_FC=no
15065 motorola)
15066 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15069 esac
15070 runpath_var='LD_RUN_PATH'
15071 hardcode_shlibpath_var_FC=no
15074 sysv4.3*)
15075 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076 hardcode_shlibpath_var_FC=no
15077 export_dynamic_flag_spec_FC='-Bexport'
15080 sysv4*MP*)
15081 if test -d /usr/nec; then
15082 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_shlibpath_var_FC=no
15084 runpath_var=LD_RUN_PATH
15085 hardcode_runpath_var=yes
15086 ld_shlibs_FC=yes
15090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15091 no_undefined_flag_FC='${wl}-z,text'
15092 archive_cmds_need_lc_FC=no
15093 hardcode_shlibpath_var_FC=no
15094 runpath_var='LD_RUN_PATH'
15096 if test "$GCC" = yes; then
15097 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 else
15100 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 sysv5* | sco3.2v5* | sco5v6*)
15106 # Note: We can NOT use -z defs as we might desire, because we do not
15107 # link with -lc, and that would cause any symbols used from libc to
15108 # always be unresolved, which means just about no library would
15109 # ever link correctly. If we're not using GNU ld we use -z text
15110 # though, which does catch some bad symbols but isn't as heavy-handed
15111 # as -z defs.
15112 no_undefined_flag_FC='${wl}-z,text'
15113 allow_undefined_flag_FC='${wl}-z,nodefs'
15114 archive_cmds_need_lc_FC=no
15115 hardcode_shlibpath_var_FC=no
15116 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15117 hardcode_libdir_separator_FC=':'
15118 link_all_deplibs_FC=yes
15119 export_dynamic_flag_spec_FC='${wl}-Bexport'
15120 runpath_var='LD_RUN_PATH'
15122 if test "$GCC" = yes; then
15123 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 else
15126 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131 uts4*)
15132 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133 hardcode_libdir_flag_spec_FC='-L$libdir'
15134 hardcode_shlibpath_var_FC=no
15138 ld_shlibs_FC=no
15140 esac
15142 if test x$host_vendor = xsni; then
15143 case $host in
15144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15145 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15147 esac
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15152 $as_echo "$ld_shlibs_FC" >&6; }
15153 test "$ld_shlibs_FC" = no && can_build_shared=no
15155 with_gnu_ld_FC=$with_gnu_ld
15163 # Do we need to explicitly link libc?
15165 case "x$archive_cmds_need_lc_FC" in
15166 x|xyes)
15167 # Assume -lc should be added
15168 archive_cmds_need_lc_FC=yes
15170 if test "$enable_shared" = yes && test "$GCC" = yes; then
15171 case $archive_cmds_FC in
15172 *'~'*)
15173 # FIXME: we may have to deal with multi-command sequences.
15175 '$CC '*)
15176 # Test whether the compiler implicitly links with -lc since on some
15177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15178 # to ld, don't add -lc before -lgcc.
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15180 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15181 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 $RM conftest*
15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15188 (eval $ac_compile) 2>&5
15189 ac_status=$?
15190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 test $ac_status = 0; } 2>conftest.err; then
15192 soname=conftest
15193 lib=conftest
15194 libobjs=conftest.$ac_objext
15195 deplibs=
15196 wl=$lt_prog_compiler_wl_FC
15197 pic_flag=$lt_prog_compiler_pic_FC
15198 compiler_flags=-v
15199 linker_flags=-v
15200 verstring=
15201 output_objdir=.
15202 libname=conftest
15203 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15204 allow_undefined_flag_FC=
15205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15206 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15207 ac_status=$?
15208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }
15210 then
15211 lt_cv_archive_cmds_need_lc_FC=no
15212 else
15213 lt_cv_archive_cmds_need_lc_FC=yes
15215 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15216 else
15217 cat conftest.err 1>&5
15219 $RM conftest*
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15223 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15224 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15226 esac
15229 esac
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15295 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15297 library_names_spec=
15298 libname_spec='lib$name'
15299 soname_spec=
15300 shrext_cmds=".so"
15301 postinstall_cmds=
15302 postuninstall_cmds=
15303 finish_cmds=
15304 finish_eval=
15305 shlibpath_var=
15306 shlibpath_overrides_runpath=unknown
15307 version_type=none
15308 dynamic_linker="$host_os ld.so"
15309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15310 need_lib_prefix=unknown
15311 hardcode_into_libs=no
15313 # when you set need_version to no, make sure it does not cause -set_version
15314 # flags to be left without arguments
15315 need_version=unknown
15317 case $host_os in
15318 aix3*)
15319 version_type=linux
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15321 shlibpath_var=LIBPATH
15323 # AIX 3 has no versioning support, so we append a major version to the name.
15324 soname_spec='${libname}${release}${shared_ext}$major'
15327 aix[4-9]*)
15328 version_type=linux
15329 need_lib_prefix=no
15330 need_version=no
15331 hardcode_into_libs=yes
15332 if test "$host_cpu" = ia64; then
15333 # AIX 5 supports IA64
15334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 else
15337 # With GCC up to 2.95.x, collect2 would create an import file
15338 # for dependence libraries. The import file would start with
15339 # the line `#! .'. This would cause the generated library to
15340 # depend on `.', always an invalid library. This was fixed in
15341 # development snapshots of GCC prior to 3.0.
15342 case $host_os in
15343 aix4 | aix4.[01] | aix4.[01].*)
15344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15345 echo ' yes '
15346 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15348 else
15349 can_build_shared=no
15352 esac
15353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15354 # soname into executable. Probably we can add versioning support to
15355 # collect2, so additional links can be useful in future.
15356 if test "$aix_use_runtimelinking" = yes; then
15357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15358 # instead of lib<name>.a to let people know that these are not
15359 # typical AIX shared libraries.
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 else
15362 # We preserve .a as extension for shared libraries through AIX4.2
15363 # and later when we are not doing run time linking.
15364 library_names_spec='${libname}${release}.a $libname.a'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LIBPATH
15371 amigaos*)
15372 case $host_cpu in
15373 powerpc)
15374 # Since July 2007 AmigaOS4 officially supports .so libraries.
15375 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 m68k)
15379 library_names_spec='$libname.ixlibrary $libname.a'
15380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15381 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'
15383 esac
15386 beos*)
15387 library_names_spec='${libname}${shared_ext}'
15388 dynamic_linker="$host_os ld.so"
15389 shlibpath_var=LIBRARY_PATH
15392 bsdi[45]*)
15393 version_type=linux
15394 need_version=no
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15401 # the default ld.so.conf also contains /usr/contrib/lib and
15402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15403 # libtool to hard-code these into programs
15406 cygwin* | mingw* | pw32* | cegcc*)
15407 version_type=windows
15408 shrext_cmds=".dll"
15409 need_version=no
15410 need_lib_prefix=no
15412 case $GCC,$host_os in
15413 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15414 library_names_spec='$libname.dll.a'
15415 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15416 postinstall_cmds='base_file=`basename \${file}`~
15417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15418 dldir=$destdir/`dirname \$dlpath`~
15419 test -d \$dldir || mkdir -p \$dldir~
15420 $install_prog $dir/$dlname \$dldir/$dlname~
15421 chmod a+x \$dldir/$dlname~
15422 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15423 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15426 dlpath=$dir/\$dldll~
15427 $RM \$dlpath'
15428 shlibpath_overrides_runpath=yes
15430 case $host_os in
15431 cygwin*)
15432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436 mingw* | cegcc*)
15437 # MinGW DLLs use traditional 'lib' prefix
15438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440 pw32*)
15441 # pw32 DLLs use 'pw' prefix rather than 'lib'
15442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15444 esac
15448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15450 esac
15451 dynamic_linker='Win32 ld.exe'
15452 # FIXME: first we should search . and the directory the executable is in
15453 shlibpath_var=PATH
15456 darwin* | rhapsody*)
15457 dynamic_linker="$host_os dyld"
15458 version_type=darwin
15459 need_lib_prefix=no
15460 need_version=no
15461 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15462 soname_spec='${libname}${release}${major}$shared_ext'
15463 shlibpath_overrides_runpath=yes
15464 shlibpath_var=DYLD_LIBRARY_PATH
15465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15470 dgux*)
15471 version_type=linux
15472 need_lib_prefix=no
15473 need_version=no
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15479 freebsd* | dragonfly*)
15480 # DragonFly does not have aout. When/if they implement a new
15481 # versioning mechanism, adjust this.
15482 if test -x /usr/bin/objformat; then
15483 objformat=`/usr/bin/objformat`
15484 else
15485 case $host_os in
15486 freebsd[23].*) objformat=aout ;;
15487 *) objformat=elf ;;
15488 esac
15490 version_type=freebsd-$objformat
15491 case $version_type in
15492 freebsd-elf*)
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 need_version=no
15495 need_lib_prefix=no
15497 freebsd-*)
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15499 need_version=yes
15501 esac
15502 shlibpath_var=LD_LIBRARY_PATH
15503 case $host_os in
15504 freebsd2.*)
15505 shlibpath_overrides_runpath=yes
15507 freebsd3.[01]* | freebsdelf3.[01]*)
15508 shlibpath_overrides_runpath=yes
15509 hardcode_into_libs=yes
15511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15513 shlibpath_overrides_runpath=no
15514 hardcode_into_libs=yes
15516 *) # from 4.6 on, and DragonFly
15517 shlibpath_overrides_runpath=yes
15518 hardcode_into_libs=yes
15520 esac
15523 gnu*)
15524 version_type=linux
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 hardcode_into_libs=yes
15533 haiku*)
15534 version_type=linux
15535 need_lib_prefix=no
15536 need_version=no
15537 dynamic_linker="$host_os runtime_loader"
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15542 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15543 hardcode_into_libs=yes
15546 hpux9* | hpux10* | hpux11*)
15547 # Give a soname corresponding to the major version so that dld.sl refuses to
15548 # link against other versions.
15549 version_type=sunos
15550 need_lib_prefix=no
15551 need_version=no
15552 case $host_cpu in
15553 ia64*)
15554 shrext_cmds='.so'
15555 hardcode_into_libs=yes
15556 dynamic_linker="$host_os dld.so"
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 if test "X$HPUX_IA64_MODE" = X32; then
15562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15563 else
15564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568 hppa*64*)
15569 shrext_cmds='.sl'
15570 hardcode_into_libs=yes
15571 dynamic_linker="$host_os dld.sl"
15572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15580 shrext_cmds='.sl'
15581 dynamic_linker="$host_os dld.sl"
15582 shlibpath_var=SHLIB_PATH
15583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15587 esac
15588 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15589 postinstall_cmds='chmod 555 $lib'
15590 # or fails outright, so override atomically:
15591 install_override_mode=555
15594 interix[3-9]*)
15595 version_type=linux
15596 need_lib_prefix=no
15597 need_version=no
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=no
15603 hardcode_into_libs=yes
15606 irix5* | irix6* | nonstopux*)
15607 case $host_os in
15608 nonstopux*) version_type=nonstopux ;;
15610 if test "$lt_cv_prog_gnu_ld" = yes; then
15611 version_type=linux
15612 else
15613 version_type=irix
15614 fi ;;
15615 esac
15616 need_lib_prefix=no
15617 need_version=no
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15620 case $host_os in
15621 irix5* | nonstopux*)
15622 libsuff= shlibsuff=
15625 case $LD in # libtool.m4 will add one of these switches to LD
15626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15627 libsuff= shlibsuff= libmagic=32-bit;;
15628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15629 libsuff=32 shlibsuff=N32 libmagic=N32;;
15630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15632 *) libsuff= shlibsuff= libmagic=never-match;;
15633 esac
15635 esac
15636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15637 shlibpath_overrides_runpath=no
15638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15640 hardcode_into_libs=yes
15643 # No shared lib support for Linux oldld, aout, or coff.
15644 linux*oldld* | linux*aout* | linux*coff*)
15645 dynamic_linker=no
15648 # This must be Linux ELF.
15650 # uclinux* changes (here and below) have been submitted to the libtool
15651 # project, but have not yet been accepted: they are GCC-local changes
15652 # for the time being. (See
15653 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15654 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15655 version_type=linux
15656 need_lib_prefix=no
15657 need_version=no
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=no
15664 # Some binutils ld are patched to set DT_RUNPATH
15665 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 lt_cv_shlibpath_overrides_runpath=no
15669 save_LDFLAGS=$LDFLAGS
15670 save_libdir=$libdir
15671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15673 if test x$gcc_no_link = xyes; then
15674 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15676 cat > conftest.$ac_ext <<_ACEOF
15677 program main
15680 _ACEOF
15681 if ac_fn_fc_try_link "$LINENO"; then :
15682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15683 lt_cv_shlibpath_overrides_runpath=yes
15686 rm -f core conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
15688 LDFLAGS=$save_LDFLAGS
15689 libdir=$save_libdir
15693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15695 # This implies no fast_install, which is unacceptable.
15696 # Some rework will be needed to allow for fast_install
15697 # before this can be enabled.
15698 hardcode_into_libs=yes
15700 # Append ld.so.conf contents to the search path
15701 if test -f /etc/ld.so.conf; then
15702 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' ' '`
15703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15706 # We used to test for /lib/ld.so.1 and disable shared libraries on
15707 # powerpc, because MkLinux only supported shared libraries with the
15708 # GNU dynamic linker. Since this was broken with cross compilers,
15709 # most powerpc-linux boxes support dynamic linking these days and
15710 # people can always --disable-shared, the test was removed, and we
15711 # assume the GNU/Linux dynamic linker is in use.
15712 dynamic_linker='GNU/Linux ld.so'
15715 netbsd*)
15716 version_type=sunos
15717 need_lib_prefix=no
15718 need_version=no
15719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15722 dynamic_linker='NetBSD (a.out) ld.so'
15723 else
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'
15726 dynamic_linker='NetBSD ld.elf_so'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15730 hardcode_into_libs=yes
15733 newsos6)
15734 version_type=linux
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes
15740 *nto* | *qnx*)
15741 version_type=qnx
15742 need_lib_prefix=no
15743 need_version=no
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 shlibpath_overrides_runpath=no
15748 hardcode_into_libs=yes
15749 dynamic_linker='ldqnx.so'
15752 openbsd*)
15753 version_type=sunos
15754 sys_lib_dlsearch_path_spec="/usr/lib"
15755 need_lib_prefix=no
15756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15757 case $host_os in
15758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15759 *) need_version=no ;;
15760 esac
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15765 case $host_os in
15766 openbsd2.[89] | openbsd2.[89].*)
15767 shlibpath_overrides_runpath=no
15770 shlibpath_overrides_runpath=yes
15772 esac
15773 else
15774 shlibpath_overrides_runpath=yes
15778 os2*)
15779 libname_spec='$name'
15780 shrext_cmds=".dll"
15781 need_lib_prefix=no
15782 library_names_spec='$libname${shared_ext} $libname.a'
15783 dynamic_linker='OS/2 ld.exe'
15784 shlibpath_var=LIBPATH
15787 osf3* | osf4* | osf5*)
15788 version_type=osf
15789 need_lib_prefix=no
15790 need_version=no
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15798 rdos*)
15799 dynamic_linker=no
15802 solaris*)
15803 version_type=linux
15804 need_lib_prefix=no
15805 need_version=no
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 shlibpath_overrides_runpath=yes
15810 hardcode_into_libs=yes
15811 # ldd complains unless libraries are executable
15812 postinstall_cmds='chmod +x $lib'
15815 sunos4*)
15816 version_type=sunos
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 shlibpath_overrides_runpath=yes
15821 if test "$with_gnu_ld" = yes; then
15822 need_lib_prefix=no
15824 need_version=yes
15827 sysv4 | sysv4.3*)
15828 version_type=linux
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 case $host_vendor in
15833 sni)
15834 shlibpath_overrides_runpath=no
15835 need_lib_prefix=no
15836 runpath_var=LD_RUN_PATH
15838 siemens)
15839 need_lib_prefix=no
15841 motorola)
15842 need_lib_prefix=no
15843 need_version=no
15844 shlibpath_overrides_runpath=no
15845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15847 esac
15850 sysv4*MP*)
15851 if test -d /usr/nec ;then
15852 version_type=linux
15853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15854 soname_spec='$libname${shared_ext}.$major'
15855 shlibpath_var=LD_LIBRARY_PATH
15859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15860 version_type=freebsd-elf
15861 need_lib_prefix=no
15862 need_version=no
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=yes
15867 hardcode_into_libs=yes
15868 if test "$with_gnu_ld" = yes; then
15869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15870 else
15871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15872 case $host_os in
15873 sco3.2v5*)
15874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15876 esac
15878 sys_lib_dlsearch_path_spec='/usr/lib'
15881 tpf*)
15882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15883 version_type=linux
15884 need_lib_prefix=no
15885 need_version=no
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 shlibpath_var=LD_LIBRARY_PATH
15888 shlibpath_overrides_runpath=no
15889 hardcode_into_libs=yes
15892 uts4*)
15893 version_type=linux
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 shlibpath_var=LD_LIBRARY_PATH
15900 dynamic_linker=no
15902 esac
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15904 $as_echo "$dynamic_linker" >&6; }
15905 test "$dynamic_linker" = no && can_build_shared=no
15907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15908 if test "$GCC" = yes; then
15909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15912 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15915 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15957 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15958 hardcode_action_FC=
15959 if test -n "$hardcode_libdir_flag_spec_FC" ||
15960 test -n "$runpath_var_FC" ||
15961 test "X$hardcode_automatic_FC" = "Xyes" ; then
15963 # We can hardcode non-existent directories.
15964 if test "$hardcode_direct_FC" != no &&
15965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15966 # have to relink, otherwise we might link with an installed library
15967 # when we should be linking with a yet-to-be-installed one
15968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15969 test "$hardcode_minus_L_FC" != no; then
15970 # Linking always hardcodes the temporary library directory.
15971 hardcode_action_FC=relink
15972 else
15973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15974 hardcode_action_FC=immediate
15976 else
15977 # We cannot hardcode anything, or else we can only hardcode existing
15978 # directories.
15979 hardcode_action_FC=unsupported
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15982 $as_echo "$hardcode_action_FC" >&6; }
15984 if test "$hardcode_action_FC" = relink ||
15985 test "$inherit_rpath_FC" = yes; then
15986 # Fast installation is not supported
15987 enable_fast_install=no
15988 elif test "$shlibpath_overrides_runpath" = yes ||
15989 test "$enable_shared" = no; then
15990 # Fast installation is not necessary
15991 enable_fast_install=needless
16000 fi # test -n "$compiler"
16002 GCC=$lt_save_GCC
16003 CC="$lt_save_CC"
16004 fi # test "$_lt_disable_FC" != yes
16006 ac_ext=c
16007 ac_cpp='$CPP $CPPFLAGS'
16008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16014 # extra LD Flags which are required for targets
16015 case "${host}" in
16016 *-darwin*)
16017 # Darwin needs -single_module when linking libgfortran
16018 extra_ldflags_libgfortran=-Wl,-single_module
16020 esac
16023 # We need a working compiler at that point, otherwise give a clear
16024 # error message and bail out.
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16027 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16028 ac_ext=${ac_fc_srcext-f}
16029 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16030 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16031 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16033 cat > conftest.$ac_ext <<_ACEOF
16035 program foo
16036 real, parameter :: bar = sin (12.34 / 2.5)
16037 end program foo
16038 _ACEOF
16039 if ac_fn_fc_try_compile "$LINENO"; then :
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16042 else
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16045 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 ac_ext=c
16050 ac_cpp='$CPP $CPPFLAGS'
16051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16057 # Check whether --enable-largefile was given.
16058 if test "${enable_largefile+set}" = set; then :
16059 enableval=$enable_largefile;
16062 if test "$enable_largefile" != no; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16065 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16066 if ${ac_cv_sys_largefile_CC+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 ac_cv_sys_largefile_CC=no
16070 if test "$GCC" != yes; then
16071 ac_save_CC=$CC
16072 while :; do
16073 # IRIX 6.2 and later do not support large files by default,
16074 # so use the C compiler's -n32 option if that helps.
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 #include <sys/types.h>
16078 /* Check that off_t can represent 2**63 - 1 correctly.
16079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16080 since some C++ compilers masquerading as C compilers
16081 incorrectly reject 9223372036854775807. */
16082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16084 && LARGE_OFF_T % 2147483647 == 1)
16085 ? 1 : -1];
16087 main ()
16091 return 0;
16093 _ACEOF
16094 if ac_fn_c_try_compile "$LINENO"; then :
16095 break
16097 rm -f core conftest.err conftest.$ac_objext
16098 CC="$CC -n32"
16099 if ac_fn_c_try_compile "$LINENO"; then :
16100 ac_cv_sys_largefile_CC=' -n32'; break
16102 rm -f core conftest.err conftest.$ac_objext
16103 break
16104 done
16105 CC=$ac_save_CC
16106 rm -f conftest.$ac_ext
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16110 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16111 if test "$ac_cv_sys_largefile_CC" != no; then
16112 CC=$CC$ac_cv_sys_largefile_CC
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16116 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16117 if ${ac_cv_sys_file_offset_bits+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 while :; do
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 #include <sys/types.h>
16124 /* Check that off_t can represent 2**63 - 1 correctly.
16125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16126 since some C++ compilers masquerading as C compilers
16127 incorrectly reject 9223372036854775807. */
16128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16130 && LARGE_OFF_T % 2147483647 == 1)
16131 ? 1 : -1];
16133 main ()
16137 return 0;
16139 _ACEOF
16140 if ac_fn_c_try_compile "$LINENO"; then :
16141 ac_cv_sys_file_offset_bits=no; break
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 #define _FILE_OFFSET_BITS 64
16147 #include <sys/types.h>
16148 /* Check that off_t can represent 2**63 - 1 correctly.
16149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16150 since some C++ compilers masquerading as C compilers
16151 incorrectly reject 9223372036854775807. */
16152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16154 && LARGE_OFF_T % 2147483647 == 1)
16155 ? 1 : -1];
16157 main ()
16161 return 0;
16163 _ACEOF
16164 if ac_fn_c_try_compile "$LINENO"; then :
16165 ac_cv_sys_file_offset_bits=64; break
16167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16168 ac_cv_sys_file_offset_bits=unknown
16169 break
16170 done
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16173 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16174 case $ac_cv_sys_file_offset_bits in #(
16175 no | unknown) ;;
16177 cat >>confdefs.h <<_ACEOF
16178 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16179 _ACEOF
16181 esac
16182 rm -rf conftest*
16183 if test $ac_cv_sys_file_offset_bits = unknown; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16185 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16186 if ${ac_cv_sys_large_files+:} false; then :
16187 $as_echo_n "(cached) " >&6
16188 else
16189 while :; do
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 #include <sys/types.h>
16193 /* Check that off_t can represent 2**63 - 1 correctly.
16194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16195 since some C++ compilers masquerading as C compilers
16196 incorrectly reject 9223372036854775807. */
16197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16199 && LARGE_OFF_T % 2147483647 == 1)
16200 ? 1 : -1];
16202 main ()
16206 return 0;
16208 _ACEOF
16209 if ac_fn_c_try_compile "$LINENO"; then :
16210 ac_cv_sys_large_files=no; break
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 #define _LARGE_FILES 1
16216 #include <sys/types.h>
16217 /* Check that off_t can represent 2**63 - 1 correctly.
16218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16219 since some C++ compilers masquerading as C compilers
16220 incorrectly reject 9223372036854775807. */
16221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16223 && LARGE_OFF_T % 2147483647 == 1)
16224 ? 1 : -1];
16226 main ()
16230 return 0;
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 ac_cv_sys_large_files=1; break
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 ac_cv_sys_large_files=unknown
16238 break
16239 done
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16242 $as_echo "$ac_cv_sys_large_files" >&6; }
16243 case $ac_cv_sys_large_files in #(
16244 no | unknown) ;;
16246 cat >>confdefs.h <<_ACEOF
16247 #define _LARGE_FILES $ac_cv_sys_large_files
16248 _ACEOF
16250 esac
16251 rm -rf conftest*
16258 # Types
16259 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16260 if test "x$ac_cv_type_off_t" = xyes; then :
16262 else
16264 cat >>confdefs.h <<_ACEOF
16265 #define off_t long int
16266 _ACEOF
16271 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16272 if test "x$ac_cv_type_intptr_t" = xyes; then :
16274 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16276 else
16277 for ac_type in 'int' 'long int' 'long long int'; do
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 $ac_includes_default
16282 main ()
16284 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16285 test_array [0] = 0;
16286 return test_array [0];
16289 return 0;
16291 _ACEOF
16292 if ac_fn_c_try_compile "$LINENO"; then :
16294 cat >>confdefs.h <<_ACEOF
16295 #define intptr_t $ac_type
16296 _ACEOF
16298 ac_type=
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 test -z "$ac_type" && break
16302 done
16307 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16308 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16310 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16312 else
16313 for ac_type in 'unsigned int' 'unsigned long int' \
16314 'unsigned long long int'; do
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 $ac_includes_default
16319 main ()
16321 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16322 test_array [0] = 0;
16323 return test_array [0];
16326 return 0;
16328 _ACEOF
16329 if ac_fn_c_try_compile "$LINENO"; then :
16331 cat >>confdefs.h <<_ACEOF
16332 #define uintptr_t $ac_type
16333 _ACEOF
16335 ac_type=
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 test -z "$ac_type" && break
16339 done
16343 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16344 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16346 cat >>confdefs.h <<_ACEOF
16347 #define HAVE_PTRDIFF_T 1
16348 _ACEOF
16354 # check header files (we assume C89 is available, so don't check for that)
16358 for ac_header in $ac_header_list
16359 do :
16360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16364 cat >>confdefs.h <<_ACEOF
16365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16366 _ACEOF
16370 done
16410 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16412 acx_cv_header_stdint=stddef.h
16413 acx_cv_header_stdint_kind="(already complete)"
16414 for i in stdint.h $inttype_headers; do
16415 unset ac_cv_type_uintptr_t
16416 unset ac_cv_type_uintmax_t
16417 unset ac_cv_type_int_least32_t
16418 unset ac_cv_type_int_fast32_t
16419 unset ac_cv_type_uint64_t
16420 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16421 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16422 #include <$i>
16424 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16425 acx_cv_header_stdint=$i
16426 else
16427 continue
16430 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16431 #include <$i>
16433 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16435 else
16436 acx_cv_header_stdint_kind="(mostly complete)"
16439 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16440 #include <$i>
16442 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16444 else
16445 acx_cv_header_stdint_kind="(mostly complete)"
16448 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16449 #include <$i>
16451 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16453 else
16454 acx_cv_header_stdint_kind="(mostly complete)"
16457 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16458 #include <$i>
16460 if test "x$ac_cv_type_uint64_t" = xyes; then :
16462 else
16463 acx_cv_header_stdint_kind="(lacks uint64_t)"
16466 break
16467 done
16468 if test "$acx_cv_header_stdint" = stddef.h; then
16469 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16470 for i in stdint.h $inttype_headers; do
16471 unset ac_cv_type_uintptr_t
16472 unset ac_cv_type_uint32_t
16473 unset ac_cv_type_uint64_t
16474 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16475 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16476 #include <$i>
16478 if test "x$ac_cv_type_uint32_t" = xyes; then :
16479 acx_cv_header_stdint=$i
16480 else
16481 continue
16484 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16485 #include <$i>
16487 if test "x$ac_cv_type_uint64_t" = xyes; then :
16491 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16492 #include <$i>
16494 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16498 break
16499 done
16501 if test "$acx_cv_header_stdint" = stddef.h; then
16502 acx_cv_header_stdint_kind="(u_intXX_t style)"
16503 for i in sys/types.h $inttype_headers; do
16504 unset ac_cv_type_u_int32_t
16505 unset ac_cv_type_u_int64_t
16506 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16507 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16508 #include <$i>
16510 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16511 acx_cv_header_stdint=$i
16512 else
16513 continue
16516 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16517 #include <$i>
16519 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16523 break
16524 done
16526 if test "$acx_cv_header_stdint" = stddef.h; then
16527 acx_cv_header_stdint_kind="(using manual detection)"
16530 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16531 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16532 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16533 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16534 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16536 # ----------------- Summarize what we found so far
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16539 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16541 case `$as_basename -- gstdint.h ||
16542 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16543 Xgstdint.h : 'X\(//\)$' \| \
16544 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16545 $as_echo X/gstdint.h |
16546 sed '/^.*\/\([^/][^/]*\)\/*$/{
16547 s//\1/
16550 /^X\/\(\/\/\)$/{
16551 s//\1/
16554 /^X\/\(\/\).*/{
16555 s//\1/
16558 s/.*/./; q'` in
16559 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16560 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16561 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16562 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16563 *) ;;
16564 esac
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16567 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16569 # ----------------- done included file, check C basic types --------
16571 # Lacking an uintptr_t? Test size of void *
16572 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16573 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16576 # This bug is HP SR number 8606223364.
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16578 $as_echo_n "checking size of void *... " >&6; }
16579 if ${ac_cv_sizeof_void_p+:} false; then :
16580 $as_echo_n "(cached) " >&6
16581 else
16582 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16584 else
16585 if test "$ac_cv_type_void_p" = yes; then
16586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16588 as_fn_error 77 "cannot compute sizeof (void *)
16589 See \`config.log' for more details" "$LINENO" 5; }
16590 else
16591 ac_cv_sizeof_void_p=0
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16597 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16601 cat >>confdefs.h <<_ACEOF
16602 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16603 _ACEOF
16606 esac
16608 # Lacking an uint64_t? Test size of long
16609 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16610 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16613 # This bug is HP SR number 8606223364.
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16615 $as_echo_n "checking size of long... " >&6; }
16616 if ${ac_cv_sizeof_long+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16621 else
16622 if test "$ac_cv_type_long" = yes; then
16623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16625 as_fn_error 77 "cannot compute sizeof (long)
16626 See \`config.log' for more details" "$LINENO" 5; }
16627 else
16628 ac_cv_sizeof_long=0
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16634 $as_echo "$ac_cv_sizeof_long" >&6; }
16638 cat >>confdefs.h <<_ACEOF
16639 #define SIZEOF_LONG $ac_cv_sizeof_long
16640 _ACEOF
16643 esac
16645 if test $acx_cv_header_stdint = stddef.h; then
16646 # Lacking a good header? Test size of everything and deduce all types.
16647 # The cast to long int works around a bug in the HP C Compiler
16648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16650 # This bug is HP SR number 8606223364.
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16652 $as_echo_n "checking size of int... " >&6; }
16653 if ${ac_cv_sizeof_int+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16658 else
16659 if test "$ac_cv_type_int" = yes; then
16660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16662 as_fn_error 77 "cannot compute sizeof (int)
16663 See \`config.log' for more details" "$LINENO" 5; }
16664 else
16665 ac_cv_sizeof_int=0
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16671 $as_echo "$ac_cv_sizeof_int" >&6; }
16675 cat >>confdefs.h <<_ACEOF
16676 #define SIZEOF_INT $ac_cv_sizeof_int
16677 _ACEOF
16680 # The cast to long int works around a bug in the HP C Compiler
16681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16683 # This bug is HP SR number 8606223364.
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16685 $as_echo_n "checking size of short... " >&6; }
16686 if ${ac_cv_sizeof_short+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16691 else
16692 if test "$ac_cv_type_short" = yes; then
16693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16695 as_fn_error 77 "cannot compute sizeof (short)
16696 See \`config.log' for more details" "$LINENO" 5; }
16697 else
16698 ac_cv_sizeof_short=0
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16704 $as_echo "$ac_cv_sizeof_short" >&6; }
16708 cat >>confdefs.h <<_ACEOF
16709 #define SIZEOF_SHORT $ac_cv_sizeof_short
16710 _ACEOF
16713 # 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 char" >&5
16718 $as_echo_n "checking size of char... " >&6; }
16719 if ${ac_cv_sizeof_char+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16724 else
16725 if test "$ac_cv_type_char" = 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 (char)
16729 See \`config.log' for more details" "$LINENO" 5; }
16730 else
16731 ac_cv_sizeof_char=0
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16737 $as_echo "$ac_cv_sizeof_char" >&6; }
16741 cat >>confdefs.h <<_ACEOF
16742 #define SIZEOF_CHAR $ac_cv_sizeof_char
16743 _ACEOF
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16748 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16749 case "$ac_cv_sizeof_char" in
16750 1) acx_cv_type_int8_t=char ;;
16751 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16752 esac
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16754 $as_echo "$acx_cv_type_int8_t" >&6; }
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16757 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16758 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16759 2:*) acx_cv_type_int16_t=int ;;
16760 *:2) acx_cv_type_int16_t=short ;;
16761 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16762 esac
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16764 $as_echo "$acx_cv_type_int16_t" >&6; }
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16767 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16768 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16769 4:*) acx_cv_type_int32_t=int ;;
16770 *:4) acx_cv_type_int32_t=long ;;
16771 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16772 esac
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16774 $as_echo "$acx_cv_type_int32_t" >&6; }
16777 # These tests are here to make the output prettier
16779 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16780 case "$ac_cv_sizeof_long" in
16781 8) acx_cv_type_int64_t=long ;;
16782 esac
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16784 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16786 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16789 # Now we can use the above types
16791 if test "$ac_cv_type_uintptr_t" != yes; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16793 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16794 case $ac_cv_sizeof_void_p in
16795 2) acx_cv_type_intptr_t=int16_t ;;
16796 4) acx_cv_type_intptr_t=int32_t ;;
16797 8) acx_cv_type_intptr_t=int64_t ;;
16798 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16799 esac
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16801 $as_echo "$acx_cv_type_intptr_t" >&6; }
16804 # ----------------- done all checks, emit header -------------
16805 ac_config_commands="$ac_config_commands gstdint.h"
16810 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16811 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16813 cat >>confdefs.h <<_ACEOF
16814 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16815 _ACEOF
16819 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16820 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16822 cat >>confdefs.h <<_ACEOF
16823 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16824 _ACEOF
16828 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16829 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16831 cat >>confdefs.h <<_ACEOF
16832 #define HAVE_STRUCT_STAT_ST_RDEV 1
16833 _ACEOF
16839 case "${host}--x${with_newlib}" in
16840 mips*--xyes)
16841 hardwire_newlib=1;;
16842 nvptx*--xyes)
16843 hardwire_newlib=1;;
16844 esac
16846 # Check for library functions.
16847 if test "${hardwire_newlib:-0}" -eq 1; then
16848 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16849 # may not work correctly, because the compiler may not be able to
16850 # link executables.
16852 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16855 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16858 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16861 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16864 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16867 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16870 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16873 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16876 # At some point, we should differentiate between architectures
16877 # like x86, which have long double versions, and alpha/powerpc/etc.,
16878 # which don't. For the time being, punt.
16879 if test x"long_double_math_on_this_cpu" = x"yes"; then
16881 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16884 else
16888 for ac_func in $ac_func_list
16889 do :
16890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16891 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16892 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16893 cat >>confdefs.h <<_ACEOF
16894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16895 _ACEOF
16898 done
17011 # Check strerror_r, cannot be above as versions with two and three arguments exist
17013 ac_save_CFLAGS="$CFLAGS"
17014 CFLAGS="-Wimplicit-function-declaration -Werror"
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017 #define _GNU_SOURCE 1
17018 #include <string.h>
17019 #include <locale.h>
17021 main ()
17023 char s[128]; strerror_r(5, s, 128);
17025 return 0;
17027 _ACEOF
17028 if ac_fn_c_try_compile "$LINENO"; then :
17030 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 CFLAGS="$ac_save_CFLAGS"
17036 ac_save_CFLAGS="$CFLAGS"
17037 CFLAGS="-Wimplicit-function-declaration -Werror"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17040 #define _GNU_SOURCE 1
17041 #include <string.h>
17042 #include <locale.h>
17044 main ()
17046 char s[128]; strerror_r(5, s);
17048 return 0;
17050 _ACEOF
17051 if ac_fn_c_try_compile "$LINENO"; then :
17053 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 CFLAGS="$ac_save_CFLAGS"
17060 # Check for C99 (and other IEEE) math functions
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17062 $as_echo_n "checking for sin in -lm... " >&6; }
17063 if ${ac_cv_lib_m_sin+:} false; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17066 ac_check_lib_save_LIBS=$LIBS
17067 LIBS="-lm $LIBS"
17068 if test x$gcc_no_link = xyes; then
17069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char sin ();
17082 main ()
17084 return sin ();
17086 return 0;
17088 _ACEOF
17089 if ac_fn_c_try_link "$LINENO"; then :
17090 ac_cv_lib_m_sin=yes
17091 else
17092 ac_cv_lib_m_sin=no
17094 rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17099 $as_echo "$ac_cv_lib_m_sin" >&6; }
17100 if test "x$ac_cv_lib_m_sin" = xyes; then :
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_LIBM 1
17103 _ACEOF
17105 LIBS="-lm $LIBS"
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17116 $as_echo_n "checking for acosf... " >&6; }
17117 if ${gcc_cv_math_func_acosf+:} false; then :
17118 $as_echo_n "(cached) " >&6
17119 else
17120 if test x$gcc_no_link = xyes; then
17121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17126 #ifdef HAVE_COMPLEX_H
17127 #include <complex.h>
17128 #endif
17129 #ifdef HAVE_MATH_H
17130 #include <math.h>
17131 #endif
17133 int (*ptr)() = (int (*)())acosf;
17136 main ()
17138 return 0;
17141 _ACEOF
17142 if ac_fn_c_try_link "$LINENO"; then :
17143 gcc_cv_math_func_acosf=yes
17144 else
17145 gcc_cv_math_func_acosf=no
17147 rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17151 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17152 if test $gcc_cv_math_func_acosf = yes; then
17154 cat >>confdefs.h <<_ACEOF
17155 #define HAVE_ACOSF 1
17156 _ACEOF
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17164 $as_echo_n "checking for acos... " >&6; }
17165 if ${gcc_cv_math_func_acos+:} false; then :
17166 $as_echo_n "(cached) " >&6
17167 else
17168 if test x$gcc_no_link = xyes; then
17169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17174 #ifdef HAVE_COMPLEX_H
17175 #include <complex.h>
17176 #endif
17177 #ifdef HAVE_MATH_H
17178 #include <math.h>
17179 #endif
17181 int (*ptr)() = (int (*)())acos;
17184 main ()
17186 return 0;
17189 _ACEOF
17190 if ac_fn_c_try_link "$LINENO"; then :
17191 gcc_cv_math_func_acos=yes
17192 else
17193 gcc_cv_math_func_acos=no
17195 rm -f core conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17199 $as_echo "$gcc_cv_math_func_acos" >&6; }
17200 if test $gcc_cv_math_func_acos = yes; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE_ACOS 1
17204 _ACEOF
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17212 $as_echo_n "checking for acosl... " >&6; }
17213 if ${gcc_cv_math_func_acosl+:} false; then :
17214 $as_echo_n "(cached) " >&6
17215 else
17216 if test x$gcc_no_link = xyes; then
17217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17222 #ifdef HAVE_COMPLEX_H
17223 #include <complex.h>
17224 #endif
17225 #ifdef HAVE_MATH_H
17226 #include <math.h>
17227 #endif
17229 int (*ptr)() = (int (*)())acosl;
17232 main ()
17234 return 0;
17237 _ACEOF
17238 if ac_fn_c_try_link "$LINENO"; then :
17239 gcc_cv_math_func_acosl=yes
17240 else
17241 gcc_cv_math_func_acosl=no
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17247 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17248 if test $gcc_cv_math_func_acosl = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define HAVE_ACOSL 1
17252 _ACEOF
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17260 $as_echo_n "checking for acoshf... " >&6; }
17261 if ${gcc_cv_math_func_acoshf+:} false; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 if test x$gcc_no_link = xyes; then
17265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17270 #ifdef HAVE_COMPLEX_H
17271 #include <complex.h>
17272 #endif
17273 #ifdef HAVE_MATH_H
17274 #include <math.h>
17275 #endif
17277 int (*ptr)() = (int (*)())acoshf;
17280 main ()
17282 return 0;
17285 _ACEOF
17286 if ac_fn_c_try_link "$LINENO"; then :
17287 gcc_cv_math_func_acoshf=yes
17288 else
17289 gcc_cv_math_func_acoshf=no
17291 rm -f core conftest.err conftest.$ac_objext \
17292 conftest$ac_exeext conftest.$ac_ext
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17295 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17296 if test $gcc_cv_math_func_acoshf = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define HAVE_ACOSHF 1
17300 _ACEOF
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17308 $as_echo_n "checking for acosh... " >&6; }
17309 if ${gcc_cv_math_func_acosh+:} false; then :
17310 $as_echo_n "(cached) " >&6
17311 else
17312 if test x$gcc_no_link = xyes; then
17313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17318 #ifdef HAVE_COMPLEX_H
17319 #include <complex.h>
17320 #endif
17321 #ifdef HAVE_MATH_H
17322 #include <math.h>
17323 #endif
17325 int (*ptr)() = (int (*)())acosh;
17328 main ()
17330 return 0;
17333 _ACEOF
17334 if ac_fn_c_try_link "$LINENO"; then :
17335 gcc_cv_math_func_acosh=yes
17336 else
17337 gcc_cv_math_func_acosh=no
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17343 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17344 if test $gcc_cv_math_func_acosh = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define HAVE_ACOSH 1
17348 _ACEOF
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17356 $as_echo_n "checking for acoshl... " >&6; }
17357 if ${gcc_cv_math_func_acoshl+:} false; then :
17358 $as_echo_n "(cached) " >&6
17359 else
17360 if test x$gcc_no_link = xyes; then
17361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17366 #ifdef HAVE_COMPLEX_H
17367 #include <complex.h>
17368 #endif
17369 #ifdef HAVE_MATH_H
17370 #include <math.h>
17371 #endif
17373 int (*ptr)() = (int (*)())acoshl;
17376 main ()
17378 return 0;
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383 gcc_cv_math_func_acoshl=yes
17384 else
17385 gcc_cv_math_func_acoshl=no
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17391 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17392 if test $gcc_cv_math_func_acoshl = yes; then
17394 cat >>confdefs.h <<_ACEOF
17395 #define HAVE_ACOSHL 1
17396 _ACEOF
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17404 $as_echo_n "checking for asinf... " >&6; }
17405 if ${gcc_cv_math_func_asinf+:} false; then :
17406 $as_echo_n "(cached) " >&6
17407 else
17408 if test x$gcc_no_link = xyes; then
17409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17414 #ifdef HAVE_COMPLEX_H
17415 #include <complex.h>
17416 #endif
17417 #ifdef HAVE_MATH_H
17418 #include <math.h>
17419 #endif
17421 int (*ptr)() = (int (*)())asinf;
17424 main ()
17426 return 0;
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"; then :
17431 gcc_cv_math_func_asinf=yes
17432 else
17433 gcc_cv_math_func_asinf=no
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17439 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17440 if test $gcc_cv_math_func_asinf = yes; then
17442 cat >>confdefs.h <<_ACEOF
17443 #define HAVE_ASINF 1
17444 _ACEOF
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17452 $as_echo_n "checking for asin... " >&6; }
17453 if ${gcc_cv_math_func_asin+:} false; then :
17454 $as_echo_n "(cached) " >&6
17455 else
17456 if test x$gcc_no_link = xyes; then
17457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17462 #ifdef HAVE_COMPLEX_H
17463 #include <complex.h>
17464 #endif
17465 #ifdef HAVE_MATH_H
17466 #include <math.h>
17467 #endif
17469 int (*ptr)() = (int (*)())asin;
17472 main ()
17474 return 0;
17477 _ACEOF
17478 if ac_fn_c_try_link "$LINENO"; then :
17479 gcc_cv_math_func_asin=yes
17480 else
17481 gcc_cv_math_func_asin=no
17483 rm -f core conftest.err conftest.$ac_objext \
17484 conftest$ac_exeext conftest.$ac_ext
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17487 $as_echo "$gcc_cv_math_func_asin" >&6; }
17488 if test $gcc_cv_math_func_asin = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define HAVE_ASIN 1
17492 _ACEOF
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17500 $as_echo_n "checking for asinl... " >&6; }
17501 if ${gcc_cv_math_func_asinl+:} false; then :
17502 $as_echo_n "(cached) " >&6
17503 else
17504 if test x$gcc_no_link = xyes; then
17505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17510 #ifdef HAVE_COMPLEX_H
17511 #include <complex.h>
17512 #endif
17513 #ifdef HAVE_MATH_H
17514 #include <math.h>
17515 #endif
17517 int (*ptr)() = (int (*)())asinl;
17520 main ()
17522 return 0;
17525 _ACEOF
17526 if ac_fn_c_try_link "$LINENO"; then :
17527 gcc_cv_math_func_asinl=yes
17528 else
17529 gcc_cv_math_func_asinl=no
17531 rm -f core conftest.err conftest.$ac_objext \
17532 conftest$ac_exeext conftest.$ac_ext
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17535 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17536 if test $gcc_cv_math_func_asinl = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define HAVE_ASINL 1
17540 _ACEOF
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17548 $as_echo_n "checking for asinhf... " >&6; }
17549 if ${gcc_cv_math_func_asinhf+:} false; then :
17550 $as_echo_n "(cached) " >&6
17551 else
17552 if test x$gcc_no_link = xyes; then
17553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17558 #ifdef HAVE_COMPLEX_H
17559 #include <complex.h>
17560 #endif
17561 #ifdef HAVE_MATH_H
17562 #include <math.h>
17563 #endif
17565 int (*ptr)() = (int (*)())asinhf;
17568 main ()
17570 return 0;
17573 _ACEOF
17574 if ac_fn_c_try_link "$LINENO"; then :
17575 gcc_cv_math_func_asinhf=yes
17576 else
17577 gcc_cv_math_func_asinhf=no
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17583 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17584 if test $gcc_cv_math_func_asinhf = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_ASINHF 1
17588 _ACEOF
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17596 $as_echo_n "checking for asinh... " >&6; }
17597 if ${gcc_cv_math_func_asinh+:} false; then :
17598 $as_echo_n "(cached) " >&6
17599 else
17600 if test x$gcc_no_link = xyes; then
17601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 #ifdef HAVE_COMPLEX_H
17607 #include <complex.h>
17608 #endif
17609 #ifdef HAVE_MATH_H
17610 #include <math.h>
17611 #endif
17613 int (*ptr)() = (int (*)())asinh;
17616 main ()
17618 return 0;
17621 _ACEOF
17622 if ac_fn_c_try_link "$LINENO"; then :
17623 gcc_cv_math_func_asinh=yes
17624 else
17625 gcc_cv_math_func_asinh=no
17627 rm -f core conftest.err conftest.$ac_objext \
17628 conftest$ac_exeext conftest.$ac_ext
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17631 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17632 if test $gcc_cv_math_func_asinh = yes; then
17634 cat >>confdefs.h <<_ACEOF
17635 #define HAVE_ASINH 1
17636 _ACEOF
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17644 $as_echo_n "checking for asinhl... " >&6; }
17645 if ${gcc_cv_math_func_asinhl+:} false; then :
17646 $as_echo_n "(cached) " >&6
17647 else
17648 if test x$gcc_no_link = xyes; then
17649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17654 #ifdef HAVE_COMPLEX_H
17655 #include <complex.h>
17656 #endif
17657 #ifdef HAVE_MATH_H
17658 #include <math.h>
17659 #endif
17661 int (*ptr)() = (int (*)())asinhl;
17664 main ()
17666 return 0;
17669 _ACEOF
17670 if ac_fn_c_try_link "$LINENO"; then :
17671 gcc_cv_math_func_asinhl=yes
17672 else
17673 gcc_cv_math_func_asinhl=no
17675 rm -f core conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17679 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17680 if test $gcc_cv_math_func_asinhl = yes; then
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_ASINHL 1
17684 _ACEOF
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17692 $as_echo_n "checking for atan2f... " >&6; }
17693 if ${gcc_cv_math_func_atan2f+:} false; then :
17694 $as_echo_n "(cached) " >&6
17695 else
17696 if test x$gcc_no_link = xyes; then
17697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17702 #ifdef HAVE_COMPLEX_H
17703 #include <complex.h>
17704 #endif
17705 #ifdef HAVE_MATH_H
17706 #include <math.h>
17707 #endif
17709 int (*ptr)() = (int (*)())atan2f;
17712 main ()
17714 return 0;
17717 _ACEOF
17718 if ac_fn_c_try_link "$LINENO"; then :
17719 gcc_cv_math_func_atan2f=yes
17720 else
17721 gcc_cv_math_func_atan2f=no
17723 rm -f core conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17727 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17728 if test $gcc_cv_math_func_atan2f = yes; then
17730 cat >>confdefs.h <<_ACEOF
17731 #define HAVE_ATAN2F 1
17732 _ACEOF
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17740 $as_echo_n "checking for atan2... " >&6; }
17741 if ${gcc_cv_math_func_atan2+:} false; then :
17742 $as_echo_n "(cached) " >&6
17743 else
17744 if test x$gcc_no_link = xyes; then
17745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17750 #ifdef HAVE_COMPLEX_H
17751 #include <complex.h>
17752 #endif
17753 #ifdef HAVE_MATH_H
17754 #include <math.h>
17755 #endif
17757 int (*ptr)() = (int (*)())atan2;
17760 main ()
17762 return 0;
17765 _ACEOF
17766 if ac_fn_c_try_link "$LINENO"; then :
17767 gcc_cv_math_func_atan2=yes
17768 else
17769 gcc_cv_math_func_atan2=no
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17775 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17776 if test $gcc_cv_math_func_atan2 = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define HAVE_ATAN2 1
17780 _ACEOF
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17788 $as_echo_n "checking for atan2l... " >&6; }
17789 if ${gcc_cv_math_func_atan2l+:} false; then :
17790 $as_echo_n "(cached) " >&6
17791 else
17792 if test x$gcc_no_link = xyes; then
17793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17798 #ifdef HAVE_COMPLEX_H
17799 #include <complex.h>
17800 #endif
17801 #ifdef HAVE_MATH_H
17802 #include <math.h>
17803 #endif
17805 int (*ptr)() = (int (*)())atan2l;
17808 main ()
17810 return 0;
17813 _ACEOF
17814 if ac_fn_c_try_link "$LINENO"; then :
17815 gcc_cv_math_func_atan2l=yes
17816 else
17817 gcc_cv_math_func_atan2l=no
17819 rm -f core conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17823 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17824 if test $gcc_cv_math_func_atan2l = yes; then
17826 cat >>confdefs.h <<_ACEOF
17827 #define HAVE_ATAN2L 1
17828 _ACEOF
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17836 $as_echo_n "checking for atanf... " >&6; }
17837 if ${gcc_cv_math_func_atanf+:} false; then :
17838 $as_echo_n "(cached) " >&6
17839 else
17840 if test x$gcc_no_link = xyes; then
17841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 #ifdef HAVE_COMPLEX_H
17847 #include <complex.h>
17848 #endif
17849 #ifdef HAVE_MATH_H
17850 #include <math.h>
17851 #endif
17853 int (*ptr)() = (int (*)())atanf;
17856 main ()
17858 return 0;
17861 _ACEOF
17862 if ac_fn_c_try_link "$LINENO"; then :
17863 gcc_cv_math_func_atanf=yes
17864 else
17865 gcc_cv_math_func_atanf=no
17867 rm -f core conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17871 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17872 if test $gcc_cv_math_func_atanf = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define HAVE_ATANF 1
17876 _ACEOF
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17884 $as_echo_n "checking for atan... " >&6; }
17885 if ${gcc_cv_math_func_atan+:} false; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 if test x$gcc_no_link = xyes; then
17889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 #ifdef HAVE_COMPLEX_H
17895 #include <complex.h>
17896 #endif
17897 #ifdef HAVE_MATH_H
17898 #include <math.h>
17899 #endif
17901 int (*ptr)() = (int (*)())atan;
17904 main ()
17906 return 0;
17909 _ACEOF
17910 if ac_fn_c_try_link "$LINENO"; then :
17911 gcc_cv_math_func_atan=yes
17912 else
17913 gcc_cv_math_func_atan=no
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17919 $as_echo "$gcc_cv_math_func_atan" >&6; }
17920 if test $gcc_cv_math_func_atan = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_ATAN 1
17924 _ACEOF
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17932 $as_echo_n "checking for atanl... " >&6; }
17933 if ${gcc_cv_math_func_atanl+:} false; then :
17934 $as_echo_n "(cached) " >&6
17935 else
17936 if test x$gcc_no_link = xyes; then
17937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 #ifdef HAVE_COMPLEX_H
17943 #include <complex.h>
17944 #endif
17945 #ifdef HAVE_MATH_H
17946 #include <math.h>
17947 #endif
17949 int (*ptr)() = (int (*)())atanl;
17952 main ()
17954 return 0;
17957 _ACEOF
17958 if ac_fn_c_try_link "$LINENO"; then :
17959 gcc_cv_math_func_atanl=yes
17960 else
17961 gcc_cv_math_func_atanl=no
17963 rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17967 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17968 if test $gcc_cv_math_func_atanl = yes; then
17970 cat >>confdefs.h <<_ACEOF
17971 #define HAVE_ATANL 1
17972 _ACEOF
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17980 $as_echo_n "checking for atanhf... " >&6; }
17981 if ${gcc_cv_math_func_atanhf+:} false; then :
17982 $as_echo_n "(cached) " >&6
17983 else
17984 if test x$gcc_no_link = xyes; then
17985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17990 #ifdef HAVE_COMPLEX_H
17991 #include <complex.h>
17992 #endif
17993 #ifdef HAVE_MATH_H
17994 #include <math.h>
17995 #endif
17997 int (*ptr)() = (int (*)())atanhf;
18000 main ()
18002 return 0;
18005 _ACEOF
18006 if ac_fn_c_try_link "$LINENO"; then :
18007 gcc_cv_math_func_atanhf=yes
18008 else
18009 gcc_cv_math_func_atanhf=no
18011 rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18015 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
18016 if test $gcc_cv_math_func_atanhf = yes; then
18018 cat >>confdefs.h <<_ACEOF
18019 #define HAVE_ATANHF 1
18020 _ACEOF
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18028 $as_echo_n "checking for atanh... " >&6; }
18029 if ${gcc_cv_math_func_atanh+:} false; then :
18030 $as_echo_n "(cached) " >&6
18031 else
18032 if test x$gcc_no_link = xyes; then
18033 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18038 #ifdef HAVE_COMPLEX_H
18039 #include <complex.h>
18040 #endif
18041 #ifdef HAVE_MATH_H
18042 #include <math.h>
18043 #endif
18045 int (*ptr)() = (int (*)())atanh;
18048 main ()
18050 return 0;
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"; then :
18055 gcc_cv_math_func_atanh=yes
18056 else
18057 gcc_cv_math_func_atanh=no
18059 rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18063 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18064 if test $gcc_cv_math_func_atanh = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define HAVE_ATANH 1
18068 _ACEOF
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18076 $as_echo_n "checking for atanhl... " >&6; }
18077 if ${gcc_cv_math_func_atanhl+:} false; then :
18078 $as_echo_n "(cached) " >&6
18079 else
18080 if test x$gcc_no_link = xyes; then
18081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 #ifdef HAVE_COMPLEX_H
18087 #include <complex.h>
18088 #endif
18089 #ifdef HAVE_MATH_H
18090 #include <math.h>
18091 #endif
18093 int (*ptr)() = (int (*)())atanhl;
18096 main ()
18098 return 0;
18101 _ACEOF
18102 if ac_fn_c_try_link "$LINENO"; then :
18103 gcc_cv_math_func_atanhl=yes
18104 else
18105 gcc_cv_math_func_atanhl=no
18107 rm -f core conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18111 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18112 if test $gcc_cv_math_func_atanhl = yes; then
18114 cat >>confdefs.h <<_ACEOF
18115 #define HAVE_ATANHL 1
18116 _ACEOF
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18124 $as_echo_n "checking for cargf... " >&6; }
18125 if ${gcc_cv_math_func_cargf+:} false; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 if test x$gcc_no_link = xyes; then
18129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18134 #ifdef HAVE_COMPLEX_H
18135 #include <complex.h>
18136 #endif
18137 #ifdef HAVE_MATH_H
18138 #include <math.h>
18139 #endif
18141 int (*ptr)() = (int (*)())cargf;
18144 main ()
18146 return 0;
18149 _ACEOF
18150 if ac_fn_c_try_link "$LINENO"; then :
18151 gcc_cv_math_func_cargf=yes
18152 else
18153 gcc_cv_math_func_cargf=no
18155 rm -f core conftest.err conftest.$ac_objext \
18156 conftest$ac_exeext conftest.$ac_ext
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18159 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18160 if test $gcc_cv_math_func_cargf = yes; then
18162 cat >>confdefs.h <<_ACEOF
18163 #define HAVE_CARGF 1
18164 _ACEOF
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18172 $as_echo_n "checking for carg... " >&6; }
18173 if ${gcc_cv_math_func_carg+:} false; then :
18174 $as_echo_n "(cached) " >&6
18175 else
18176 if test x$gcc_no_link = xyes; then
18177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18182 #ifdef HAVE_COMPLEX_H
18183 #include <complex.h>
18184 #endif
18185 #ifdef HAVE_MATH_H
18186 #include <math.h>
18187 #endif
18189 int (*ptr)() = (int (*)())carg;
18192 main ()
18194 return 0;
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"; then :
18199 gcc_cv_math_func_carg=yes
18200 else
18201 gcc_cv_math_func_carg=no
18203 rm -f core conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18207 $as_echo "$gcc_cv_math_func_carg" >&6; }
18208 if test $gcc_cv_math_func_carg = yes; then
18210 cat >>confdefs.h <<_ACEOF
18211 #define HAVE_CARG 1
18212 _ACEOF
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18220 $as_echo_n "checking for cargl... " >&6; }
18221 if ${gcc_cv_math_func_cargl+:} false; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 if test x$gcc_no_link = xyes; then
18225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h. */
18230 #ifdef HAVE_COMPLEX_H
18231 #include <complex.h>
18232 #endif
18233 #ifdef HAVE_MATH_H
18234 #include <math.h>
18235 #endif
18237 int (*ptr)() = (int (*)())cargl;
18240 main ()
18242 return 0;
18245 _ACEOF
18246 if ac_fn_c_try_link "$LINENO"; then :
18247 gcc_cv_math_func_cargl=yes
18248 else
18249 gcc_cv_math_func_cargl=no
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18255 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18256 if test $gcc_cv_math_func_cargl = yes; then
18258 cat >>confdefs.h <<_ACEOF
18259 #define HAVE_CARGL 1
18260 _ACEOF
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18268 $as_echo_n "checking for ceilf... " >&6; }
18269 if ${gcc_cv_math_func_ceilf+:} false; then :
18270 $as_echo_n "(cached) " >&6
18271 else
18272 if test x$gcc_no_link = xyes; then
18273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 #ifdef HAVE_COMPLEX_H
18279 #include <complex.h>
18280 #endif
18281 #ifdef HAVE_MATH_H
18282 #include <math.h>
18283 #endif
18285 int (*ptr)() = (int (*)())ceilf;
18288 main ()
18290 return 0;
18293 _ACEOF
18294 if ac_fn_c_try_link "$LINENO"; then :
18295 gcc_cv_math_func_ceilf=yes
18296 else
18297 gcc_cv_math_func_ceilf=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18303 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18304 if test $gcc_cv_math_func_ceilf = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define HAVE_CEILF 1
18308 _ACEOF
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18316 $as_echo_n "checking for ceil... " >&6; }
18317 if ${gcc_cv_math_func_ceil+:} false; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18320 if test x$gcc_no_link = xyes; then
18321 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18326 #ifdef HAVE_COMPLEX_H
18327 #include <complex.h>
18328 #endif
18329 #ifdef HAVE_MATH_H
18330 #include <math.h>
18331 #endif
18333 int (*ptr)() = (int (*)())ceil;
18336 main ()
18338 return 0;
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"; then :
18343 gcc_cv_math_func_ceil=yes
18344 else
18345 gcc_cv_math_func_ceil=no
18347 rm -f core conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18351 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18352 if test $gcc_cv_math_func_ceil = yes; then
18354 cat >>confdefs.h <<_ACEOF
18355 #define HAVE_CEIL 1
18356 _ACEOF
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18364 $as_echo_n "checking for ceill... " >&6; }
18365 if ${gcc_cv_math_func_ceill+:} false; then :
18366 $as_echo_n "(cached) " >&6
18367 else
18368 if test x$gcc_no_link = xyes; then
18369 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 #ifdef HAVE_COMPLEX_H
18375 #include <complex.h>
18376 #endif
18377 #ifdef HAVE_MATH_H
18378 #include <math.h>
18379 #endif
18381 int (*ptr)() = (int (*)())ceill;
18384 main ()
18386 return 0;
18389 _ACEOF
18390 if ac_fn_c_try_link "$LINENO"; then :
18391 gcc_cv_math_func_ceill=yes
18392 else
18393 gcc_cv_math_func_ceill=no
18395 rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18399 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18400 if test $gcc_cv_math_func_ceill = yes; then
18402 cat >>confdefs.h <<_ACEOF
18403 #define HAVE_CEILL 1
18404 _ACEOF
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18412 $as_echo_n "checking for copysignf... " >&6; }
18413 if ${gcc_cv_math_func_copysignf+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 if test x$gcc_no_link = xyes; then
18417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18422 #ifdef HAVE_COMPLEX_H
18423 #include <complex.h>
18424 #endif
18425 #ifdef HAVE_MATH_H
18426 #include <math.h>
18427 #endif
18429 int (*ptr)() = (int (*)())copysignf;
18432 main ()
18434 return 0;
18437 _ACEOF
18438 if ac_fn_c_try_link "$LINENO"; then :
18439 gcc_cv_math_func_copysignf=yes
18440 else
18441 gcc_cv_math_func_copysignf=no
18443 rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18447 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18448 if test $gcc_cv_math_func_copysignf = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_COPYSIGNF 1
18452 _ACEOF
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18460 $as_echo_n "checking for copysign... " >&6; }
18461 if ${gcc_cv_math_func_copysign+:} false; then :
18462 $as_echo_n "(cached) " >&6
18463 else
18464 if test x$gcc_no_link = xyes; then
18465 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18470 #ifdef HAVE_COMPLEX_H
18471 #include <complex.h>
18472 #endif
18473 #ifdef HAVE_MATH_H
18474 #include <math.h>
18475 #endif
18477 int (*ptr)() = (int (*)())copysign;
18480 main ()
18482 return 0;
18485 _ACEOF
18486 if ac_fn_c_try_link "$LINENO"; then :
18487 gcc_cv_math_func_copysign=yes
18488 else
18489 gcc_cv_math_func_copysign=no
18491 rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18495 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18496 if test $gcc_cv_math_func_copysign = yes; then
18498 cat >>confdefs.h <<_ACEOF
18499 #define HAVE_COPYSIGN 1
18500 _ACEOF
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18508 $as_echo_n "checking for copysignl... " >&6; }
18509 if ${gcc_cv_math_func_copysignl+:} false; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 if test x$gcc_no_link = xyes; then
18513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516 /* end confdefs.h. */
18518 #ifdef HAVE_COMPLEX_H
18519 #include <complex.h>
18520 #endif
18521 #ifdef HAVE_MATH_H
18522 #include <math.h>
18523 #endif
18525 int (*ptr)() = (int (*)())copysignl;
18528 main ()
18530 return 0;
18533 _ACEOF
18534 if ac_fn_c_try_link "$LINENO"; then :
18535 gcc_cv_math_func_copysignl=yes
18536 else
18537 gcc_cv_math_func_copysignl=no
18539 rm -f core conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18543 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18544 if test $gcc_cv_math_func_copysignl = yes; then
18546 cat >>confdefs.h <<_ACEOF
18547 #define HAVE_COPYSIGNL 1
18548 _ACEOF
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18556 $as_echo_n "checking for cosf... " >&6; }
18557 if ${gcc_cv_math_func_cosf+:} false; then :
18558 $as_echo_n "(cached) " >&6
18559 else
18560 if test x$gcc_no_link = xyes; then
18561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18566 #ifdef HAVE_COMPLEX_H
18567 #include <complex.h>
18568 #endif
18569 #ifdef HAVE_MATH_H
18570 #include <math.h>
18571 #endif
18573 int (*ptr)() = (int (*)())cosf;
18576 main ()
18578 return 0;
18581 _ACEOF
18582 if ac_fn_c_try_link "$LINENO"; then :
18583 gcc_cv_math_func_cosf=yes
18584 else
18585 gcc_cv_math_func_cosf=no
18587 rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18591 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18592 if test $gcc_cv_math_func_cosf = yes; then
18594 cat >>confdefs.h <<_ACEOF
18595 #define HAVE_COSF 1
18596 _ACEOF
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18604 $as_echo_n "checking for cos... " >&6; }
18605 if ${gcc_cv_math_func_cos+:} false; then :
18606 $as_echo_n "(cached) " >&6
18607 else
18608 if test x$gcc_no_link = xyes; then
18609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18614 #ifdef HAVE_COMPLEX_H
18615 #include <complex.h>
18616 #endif
18617 #ifdef HAVE_MATH_H
18618 #include <math.h>
18619 #endif
18621 int (*ptr)() = (int (*)())cos;
18624 main ()
18626 return 0;
18629 _ACEOF
18630 if ac_fn_c_try_link "$LINENO"; then :
18631 gcc_cv_math_func_cos=yes
18632 else
18633 gcc_cv_math_func_cos=no
18635 rm -f core conftest.err conftest.$ac_objext \
18636 conftest$ac_exeext conftest.$ac_ext
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18639 $as_echo "$gcc_cv_math_func_cos" >&6; }
18640 if test $gcc_cv_math_func_cos = yes; then
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_COS 1
18644 _ACEOF
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18652 $as_echo_n "checking for cosl... " >&6; }
18653 if ${gcc_cv_math_func_cosl+:} false; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 if test x$gcc_no_link = xyes; then
18657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 #ifdef HAVE_COMPLEX_H
18663 #include <complex.h>
18664 #endif
18665 #ifdef HAVE_MATH_H
18666 #include <math.h>
18667 #endif
18669 int (*ptr)() = (int (*)())cosl;
18672 main ()
18674 return 0;
18677 _ACEOF
18678 if ac_fn_c_try_link "$LINENO"; then :
18679 gcc_cv_math_func_cosl=yes
18680 else
18681 gcc_cv_math_func_cosl=no
18683 rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18687 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18688 if test $gcc_cv_math_func_cosl = yes; then
18690 cat >>confdefs.h <<_ACEOF
18691 #define HAVE_COSL 1
18692 _ACEOF
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18700 $as_echo_n "checking for ccosf... " >&6; }
18701 if ${gcc_cv_math_func_ccosf+:} false; then :
18702 $as_echo_n "(cached) " >&6
18703 else
18704 if test x$gcc_no_link = xyes; then
18705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 #ifdef HAVE_COMPLEX_H
18711 #include <complex.h>
18712 #endif
18713 #ifdef HAVE_MATH_H
18714 #include <math.h>
18715 #endif
18717 int (*ptr)() = (int (*)())ccosf;
18720 main ()
18722 return 0;
18725 _ACEOF
18726 if ac_fn_c_try_link "$LINENO"; then :
18727 gcc_cv_math_func_ccosf=yes
18728 else
18729 gcc_cv_math_func_ccosf=no
18731 rm -f core conftest.err conftest.$ac_objext \
18732 conftest$ac_exeext conftest.$ac_ext
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18735 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18736 if test $gcc_cv_math_func_ccosf = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define HAVE_CCOSF 1
18740 _ACEOF
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18748 $as_echo_n "checking for ccos... " >&6; }
18749 if ${gcc_cv_math_func_ccos+:} false; then :
18750 $as_echo_n "(cached) " >&6
18751 else
18752 if test x$gcc_no_link = xyes; then
18753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18758 #ifdef HAVE_COMPLEX_H
18759 #include <complex.h>
18760 #endif
18761 #ifdef HAVE_MATH_H
18762 #include <math.h>
18763 #endif
18765 int (*ptr)() = (int (*)())ccos;
18768 main ()
18770 return 0;
18773 _ACEOF
18774 if ac_fn_c_try_link "$LINENO"; then :
18775 gcc_cv_math_func_ccos=yes
18776 else
18777 gcc_cv_math_func_ccos=no
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18783 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18784 if test $gcc_cv_math_func_ccos = yes; then
18786 cat >>confdefs.h <<_ACEOF
18787 #define HAVE_CCOS 1
18788 _ACEOF
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18796 $as_echo_n "checking for ccosl... " >&6; }
18797 if ${gcc_cv_math_func_ccosl+:} false; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 if test x$gcc_no_link = xyes; then
18801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 #ifdef HAVE_COMPLEX_H
18807 #include <complex.h>
18808 #endif
18809 #ifdef HAVE_MATH_H
18810 #include <math.h>
18811 #endif
18813 int (*ptr)() = (int (*)())ccosl;
18816 main ()
18818 return 0;
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 gcc_cv_math_func_ccosl=yes
18824 else
18825 gcc_cv_math_func_ccosl=no
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18831 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18832 if test $gcc_cv_math_func_ccosl = yes; then
18834 cat >>confdefs.h <<_ACEOF
18835 #define HAVE_CCOSL 1
18836 _ACEOF
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18844 $as_echo_n "checking for coshf... " >&6; }
18845 if ${gcc_cv_math_func_coshf+:} false; then :
18846 $as_echo_n "(cached) " >&6
18847 else
18848 if test x$gcc_no_link = xyes; then
18849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18854 #ifdef HAVE_COMPLEX_H
18855 #include <complex.h>
18856 #endif
18857 #ifdef HAVE_MATH_H
18858 #include <math.h>
18859 #endif
18861 int (*ptr)() = (int (*)())coshf;
18864 main ()
18866 return 0;
18869 _ACEOF
18870 if ac_fn_c_try_link "$LINENO"; then :
18871 gcc_cv_math_func_coshf=yes
18872 else
18873 gcc_cv_math_func_coshf=no
18875 rm -f core conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext conftest.$ac_ext
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18879 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18880 if test $gcc_cv_math_func_coshf = yes; then
18882 cat >>confdefs.h <<_ACEOF
18883 #define HAVE_COSHF 1
18884 _ACEOF
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18892 $as_echo_n "checking for cosh... " >&6; }
18893 if ${gcc_cv_math_func_cosh+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18896 if test x$gcc_no_link = xyes; then
18897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18902 #ifdef HAVE_COMPLEX_H
18903 #include <complex.h>
18904 #endif
18905 #ifdef HAVE_MATH_H
18906 #include <math.h>
18907 #endif
18909 int (*ptr)() = (int (*)())cosh;
18912 main ()
18914 return 0;
18917 _ACEOF
18918 if ac_fn_c_try_link "$LINENO"; then :
18919 gcc_cv_math_func_cosh=yes
18920 else
18921 gcc_cv_math_func_cosh=no
18923 rm -f core conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18927 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18928 if test $gcc_cv_math_func_cosh = yes; then
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_COSH 1
18932 _ACEOF
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18940 $as_echo_n "checking for coshl... " >&6; }
18941 if ${gcc_cv_math_func_coshl+:} false; then :
18942 $as_echo_n "(cached) " >&6
18943 else
18944 if test x$gcc_no_link = xyes; then
18945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18950 #ifdef HAVE_COMPLEX_H
18951 #include <complex.h>
18952 #endif
18953 #ifdef HAVE_MATH_H
18954 #include <math.h>
18955 #endif
18957 int (*ptr)() = (int (*)())coshl;
18960 main ()
18962 return 0;
18965 _ACEOF
18966 if ac_fn_c_try_link "$LINENO"; then :
18967 gcc_cv_math_func_coshl=yes
18968 else
18969 gcc_cv_math_func_coshl=no
18971 rm -f core conftest.err conftest.$ac_objext \
18972 conftest$ac_exeext conftest.$ac_ext
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18975 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18976 if test $gcc_cv_math_func_coshl = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_COSHL 1
18980 _ACEOF
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18988 $as_echo_n "checking for ccoshf... " >&6; }
18989 if ${gcc_cv_math_func_ccoshf+:} false; then :
18990 $as_echo_n "(cached) " >&6
18991 else
18992 if test x$gcc_no_link = xyes; then
18993 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18998 #ifdef HAVE_COMPLEX_H
18999 #include <complex.h>
19000 #endif
19001 #ifdef HAVE_MATH_H
19002 #include <math.h>
19003 #endif
19005 int (*ptr)() = (int (*)())ccoshf;
19008 main ()
19010 return 0;
19013 _ACEOF
19014 if ac_fn_c_try_link "$LINENO"; then :
19015 gcc_cv_math_func_ccoshf=yes
19016 else
19017 gcc_cv_math_func_ccoshf=no
19019 rm -f core conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19023 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19024 if test $gcc_cv_math_func_ccoshf = yes; then
19026 cat >>confdefs.h <<_ACEOF
19027 #define HAVE_CCOSHF 1
19028 _ACEOF
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19036 $as_echo_n "checking for ccosh... " >&6; }
19037 if ${gcc_cv_math_func_ccosh+:} false; then :
19038 $as_echo_n "(cached) " >&6
19039 else
19040 if test x$gcc_no_link = xyes; then
19041 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19046 #ifdef HAVE_COMPLEX_H
19047 #include <complex.h>
19048 #endif
19049 #ifdef HAVE_MATH_H
19050 #include <math.h>
19051 #endif
19053 int (*ptr)() = (int (*)())ccosh;
19056 main ()
19058 return 0;
19061 _ACEOF
19062 if ac_fn_c_try_link "$LINENO"; then :
19063 gcc_cv_math_func_ccosh=yes
19064 else
19065 gcc_cv_math_func_ccosh=no
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19071 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19072 if test $gcc_cv_math_func_ccosh = yes; then
19074 cat >>confdefs.h <<_ACEOF
19075 #define HAVE_CCOSH 1
19076 _ACEOF
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19084 $as_echo_n "checking for ccoshl... " >&6; }
19085 if ${gcc_cv_math_func_ccoshl+:} false; then :
19086 $as_echo_n "(cached) " >&6
19087 else
19088 if test x$gcc_no_link = xyes; then
19089 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19094 #ifdef HAVE_COMPLEX_H
19095 #include <complex.h>
19096 #endif
19097 #ifdef HAVE_MATH_H
19098 #include <math.h>
19099 #endif
19101 int (*ptr)() = (int (*)())ccoshl;
19104 main ()
19106 return 0;
19109 _ACEOF
19110 if ac_fn_c_try_link "$LINENO"; then :
19111 gcc_cv_math_func_ccoshl=yes
19112 else
19113 gcc_cv_math_func_ccoshl=no
19115 rm -f core conftest.err conftest.$ac_objext \
19116 conftest$ac_exeext conftest.$ac_ext
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19119 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19120 if test $gcc_cv_math_func_ccoshl = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define HAVE_CCOSHL 1
19124 _ACEOF
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19132 $as_echo_n "checking for expf... " >&6; }
19133 if ${gcc_cv_math_func_expf+:} false; then :
19134 $as_echo_n "(cached) " >&6
19135 else
19136 if test x$gcc_no_link = xyes; then
19137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19142 #ifdef HAVE_COMPLEX_H
19143 #include <complex.h>
19144 #endif
19145 #ifdef HAVE_MATH_H
19146 #include <math.h>
19147 #endif
19149 int (*ptr)() = (int (*)())expf;
19152 main ()
19154 return 0;
19157 _ACEOF
19158 if ac_fn_c_try_link "$LINENO"; then :
19159 gcc_cv_math_func_expf=yes
19160 else
19161 gcc_cv_math_func_expf=no
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19167 $as_echo "$gcc_cv_math_func_expf" >&6; }
19168 if test $gcc_cv_math_func_expf = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define HAVE_EXPF 1
19172 _ACEOF
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19180 $as_echo_n "checking for exp... " >&6; }
19181 if ${gcc_cv_math_func_exp+:} false; then :
19182 $as_echo_n "(cached) " >&6
19183 else
19184 if test x$gcc_no_link = xyes; then
19185 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19190 #ifdef HAVE_COMPLEX_H
19191 #include <complex.h>
19192 #endif
19193 #ifdef HAVE_MATH_H
19194 #include <math.h>
19195 #endif
19197 int (*ptr)() = (int (*)())exp;
19200 main ()
19202 return 0;
19205 _ACEOF
19206 if ac_fn_c_try_link "$LINENO"; then :
19207 gcc_cv_math_func_exp=yes
19208 else
19209 gcc_cv_math_func_exp=no
19211 rm -f core conftest.err conftest.$ac_objext \
19212 conftest$ac_exeext conftest.$ac_ext
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19215 $as_echo "$gcc_cv_math_func_exp" >&6; }
19216 if test $gcc_cv_math_func_exp = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define HAVE_EXP 1
19220 _ACEOF
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19228 $as_echo_n "checking for expl... " >&6; }
19229 if ${gcc_cv_math_func_expl+:} false; then :
19230 $as_echo_n "(cached) " >&6
19231 else
19232 if test x$gcc_no_link = xyes; then
19233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19238 #ifdef HAVE_COMPLEX_H
19239 #include <complex.h>
19240 #endif
19241 #ifdef HAVE_MATH_H
19242 #include <math.h>
19243 #endif
19245 int (*ptr)() = (int (*)())expl;
19248 main ()
19250 return 0;
19253 _ACEOF
19254 if ac_fn_c_try_link "$LINENO"; then :
19255 gcc_cv_math_func_expl=yes
19256 else
19257 gcc_cv_math_func_expl=no
19259 rm -f core conftest.err conftest.$ac_objext \
19260 conftest$ac_exeext conftest.$ac_ext
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19263 $as_echo "$gcc_cv_math_func_expl" >&6; }
19264 if test $gcc_cv_math_func_expl = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267 #define HAVE_EXPL 1
19268 _ACEOF
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19276 $as_echo_n "checking for cexpf... " >&6; }
19277 if ${gcc_cv_math_func_cexpf+:} false; then :
19278 $as_echo_n "(cached) " >&6
19279 else
19280 if test x$gcc_no_link = xyes; then
19281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19286 #ifdef HAVE_COMPLEX_H
19287 #include <complex.h>
19288 #endif
19289 #ifdef HAVE_MATH_H
19290 #include <math.h>
19291 #endif
19293 int (*ptr)() = (int (*)())cexpf;
19296 main ()
19298 return 0;
19301 _ACEOF
19302 if ac_fn_c_try_link "$LINENO"; then :
19303 gcc_cv_math_func_cexpf=yes
19304 else
19305 gcc_cv_math_func_cexpf=no
19307 rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19311 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19312 if test $gcc_cv_math_func_cexpf = yes; then
19314 cat >>confdefs.h <<_ACEOF
19315 #define HAVE_CEXPF 1
19316 _ACEOF
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19324 $as_echo_n "checking for cexp... " >&6; }
19325 if ${gcc_cv_math_func_cexp+:} false; then :
19326 $as_echo_n "(cached) " >&6
19327 else
19328 if test x$gcc_no_link = xyes; then
19329 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19334 #ifdef HAVE_COMPLEX_H
19335 #include <complex.h>
19336 #endif
19337 #ifdef HAVE_MATH_H
19338 #include <math.h>
19339 #endif
19341 int (*ptr)() = (int (*)())cexp;
19344 main ()
19346 return 0;
19349 _ACEOF
19350 if ac_fn_c_try_link "$LINENO"; then :
19351 gcc_cv_math_func_cexp=yes
19352 else
19353 gcc_cv_math_func_cexp=no
19355 rm -f core conftest.err conftest.$ac_objext \
19356 conftest$ac_exeext conftest.$ac_ext
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19359 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19360 if test $gcc_cv_math_func_cexp = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_CEXP 1
19364 _ACEOF
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19372 $as_echo_n "checking for cexpl... " >&6; }
19373 if ${gcc_cv_math_func_cexpl+:} false; then :
19374 $as_echo_n "(cached) " >&6
19375 else
19376 if test x$gcc_no_link = xyes; then
19377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 #ifdef HAVE_COMPLEX_H
19383 #include <complex.h>
19384 #endif
19385 #ifdef HAVE_MATH_H
19386 #include <math.h>
19387 #endif
19389 int (*ptr)() = (int (*)())cexpl;
19392 main ()
19394 return 0;
19397 _ACEOF
19398 if ac_fn_c_try_link "$LINENO"; then :
19399 gcc_cv_math_func_cexpl=yes
19400 else
19401 gcc_cv_math_func_cexpl=no
19403 rm -f core conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19407 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19408 if test $gcc_cv_math_func_cexpl = yes; then
19410 cat >>confdefs.h <<_ACEOF
19411 #define HAVE_CEXPL 1
19412 _ACEOF
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19420 $as_echo_n "checking for fabsf... " >&6; }
19421 if ${gcc_cv_math_func_fabsf+:} false; then :
19422 $as_echo_n "(cached) " >&6
19423 else
19424 if test x$gcc_no_link = xyes; then
19425 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19430 #ifdef HAVE_COMPLEX_H
19431 #include <complex.h>
19432 #endif
19433 #ifdef HAVE_MATH_H
19434 #include <math.h>
19435 #endif
19437 int (*ptr)() = (int (*)())fabsf;
19440 main ()
19442 return 0;
19445 _ACEOF
19446 if ac_fn_c_try_link "$LINENO"; then :
19447 gcc_cv_math_func_fabsf=yes
19448 else
19449 gcc_cv_math_func_fabsf=no
19451 rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19455 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19456 if test $gcc_cv_math_func_fabsf = yes; then
19458 cat >>confdefs.h <<_ACEOF
19459 #define HAVE_FABSF 1
19460 _ACEOF
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19468 $as_echo_n "checking for fabs... " >&6; }
19469 if ${gcc_cv_math_func_fabs+:} false; then :
19470 $as_echo_n "(cached) " >&6
19471 else
19472 if test x$gcc_no_link = xyes; then
19473 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h. */
19478 #ifdef HAVE_COMPLEX_H
19479 #include <complex.h>
19480 #endif
19481 #ifdef HAVE_MATH_H
19482 #include <math.h>
19483 #endif
19485 int (*ptr)() = (int (*)())fabs;
19488 main ()
19490 return 0;
19493 _ACEOF
19494 if ac_fn_c_try_link "$LINENO"; then :
19495 gcc_cv_math_func_fabs=yes
19496 else
19497 gcc_cv_math_func_fabs=no
19499 rm -f core conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19503 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19504 if test $gcc_cv_math_func_fabs = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_FABS 1
19508 _ACEOF
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19516 $as_echo_n "checking for fabsl... " >&6; }
19517 if ${gcc_cv_math_func_fabsl+:} false; then :
19518 $as_echo_n "(cached) " >&6
19519 else
19520 if test x$gcc_no_link = xyes; then
19521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524 /* end confdefs.h. */
19526 #ifdef HAVE_COMPLEX_H
19527 #include <complex.h>
19528 #endif
19529 #ifdef HAVE_MATH_H
19530 #include <math.h>
19531 #endif
19533 int (*ptr)() = (int (*)())fabsl;
19536 main ()
19538 return 0;
19541 _ACEOF
19542 if ac_fn_c_try_link "$LINENO"; then :
19543 gcc_cv_math_func_fabsl=yes
19544 else
19545 gcc_cv_math_func_fabsl=no
19547 rm -f core conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19551 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19552 if test $gcc_cv_math_func_fabsl = yes; then
19554 cat >>confdefs.h <<_ACEOF
19555 #define HAVE_FABSL 1
19556 _ACEOF
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19564 $as_echo_n "checking for cabsf... " >&6; }
19565 if ${gcc_cv_math_func_cabsf+:} false; then :
19566 $as_echo_n "(cached) " >&6
19567 else
19568 if test x$gcc_no_link = xyes; then
19569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19574 #ifdef HAVE_COMPLEX_H
19575 #include <complex.h>
19576 #endif
19577 #ifdef HAVE_MATH_H
19578 #include <math.h>
19579 #endif
19581 int (*ptr)() = (int (*)())cabsf;
19584 main ()
19586 return 0;
19589 _ACEOF
19590 if ac_fn_c_try_link "$LINENO"; then :
19591 gcc_cv_math_func_cabsf=yes
19592 else
19593 gcc_cv_math_func_cabsf=no
19595 rm -f core conftest.err conftest.$ac_objext \
19596 conftest$ac_exeext conftest.$ac_ext
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19599 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19600 if test $gcc_cv_math_func_cabsf = yes; then
19602 cat >>confdefs.h <<_ACEOF
19603 #define HAVE_CABSF 1
19604 _ACEOF
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19612 $as_echo_n "checking for cabs... " >&6; }
19613 if ${gcc_cv_math_func_cabs+:} false; then :
19614 $as_echo_n "(cached) " >&6
19615 else
19616 if test x$gcc_no_link = xyes; then
19617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19622 #ifdef HAVE_COMPLEX_H
19623 #include <complex.h>
19624 #endif
19625 #ifdef HAVE_MATH_H
19626 #include <math.h>
19627 #endif
19629 int (*ptr)() = (int (*)())cabs;
19632 main ()
19634 return 0;
19637 _ACEOF
19638 if ac_fn_c_try_link "$LINENO"; then :
19639 gcc_cv_math_func_cabs=yes
19640 else
19641 gcc_cv_math_func_cabs=no
19643 rm -f core conftest.err conftest.$ac_objext \
19644 conftest$ac_exeext conftest.$ac_ext
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19647 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19648 if test $gcc_cv_math_func_cabs = yes; then
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_CABS 1
19652 _ACEOF
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19660 $as_echo_n "checking for cabsl... " >&6; }
19661 if ${gcc_cv_math_func_cabsl+:} false; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 if test x$gcc_no_link = xyes; then
19665 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19670 #ifdef HAVE_COMPLEX_H
19671 #include <complex.h>
19672 #endif
19673 #ifdef HAVE_MATH_H
19674 #include <math.h>
19675 #endif
19677 int (*ptr)() = (int (*)())cabsl;
19680 main ()
19682 return 0;
19685 _ACEOF
19686 if ac_fn_c_try_link "$LINENO"; then :
19687 gcc_cv_math_func_cabsl=yes
19688 else
19689 gcc_cv_math_func_cabsl=no
19691 rm -f core conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19695 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19696 if test $gcc_cv_math_func_cabsl = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699 #define HAVE_CABSL 1
19700 _ACEOF
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19708 $as_echo_n "checking for floorf... " >&6; }
19709 if ${gcc_cv_math_func_floorf+:} false; then :
19710 $as_echo_n "(cached) " >&6
19711 else
19712 if test x$gcc_no_link = xyes; then
19713 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19716 /* end confdefs.h. */
19718 #ifdef HAVE_COMPLEX_H
19719 #include <complex.h>
19720 #endif
19721 #ifdef HAVE_MATH_H
19722 #include <math.h>
19723 #endif
19725 int (*ptr)() = (int (*)())floorf;
19728 main ()
19730 return 0;
19733 _ACEOF
19734 if ac_fn_c_try_link "$LINENO"; then :
19735 gcc_cv_math_func_floorf=yes
19736 else
19737 gcc_cv_math_func_floorf=no
19739 rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19743 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19744 if test $gcc_cv_math_func_floorf = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_FLOORF 1
19748 _ACEOF
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19756 $as_echo_n "checking for floor... " >&6; }
19757 if ${gcc_cv_math_func_floor+:} false; then :
19758 $as_echo_n "(cached) " >&6
19759 else
19760 if test x$gcc_no_link = xyes; then
19761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19766 #ifdef HAVE_COMPLEX_H
19767 #include <complex.h>
19768 #endif
19769 #ifdef HAVE_MATH_H
19770 #include <math.h>
19771 #endif
19773 int (*ptr)() = (int (*)())floor;
19776 main ()
19778 return 0;
19781 _ACEOF
19782 if ac_fn_c_try_link "$LINENO"; then :
19783 gcc_cv_math_func_floor=yes
19784 else
19785 gcc_cv_math_func_floor=no
19787 rm -f core conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19791 $as_echo "$gcc_cv_math_func_floor" >&6; }
19792 if test $gcc_cv_math_func_floor = yes; then
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_FLOOR 1
19796 _ACEOF
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19804 $as_echo_n "checking for floorl... " >&6; }
19805 if ${gcc_cv_math_func_floorl+:} false; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 if test x$gcc_no_link = xyes; then
19809 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h. */
19814 #ifdef HAVE_COMPLEX_H
19815 #include <complex.h>
19816 #endif
19817 #ifdef HAVE_MATH_H
19818 #include <math.h>
19819 #endif
19821 int (*ptr)() = (int (*)())floorl;
19824 main ()
19826 return 0;
19829 _ACEOF
19830 if ac_fn_c_try_link "$LINENO"; then :
19831 gcc_cv_math_func_floorl=yes
19832 else
19833 gcc_cv_math_func_floorl=no
19835 rm -f core conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19839 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19840 if test $gcc_cv_math_func_floorl = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_FLOORL 1
19844 _ACEOF
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19852 $as_echo_n "checking for fmaf... " >&6; }
19853 if ${gcc_cv_math_func_fmaf+:} false; then :
19854 $as_echo_n "(cached) " >&6
19855 else
19856 if test x$gcc_no_link = xyes; then
19857 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860 /* end confdefs.h. */
19862 #ifdef HAVE_COMPLEX_H
19863 #include <complex.h>
19864 #endif
19865 #ifdef HAVE_MATH_H
19866 #include <math.h>
19867 #endif
19869 int (*ptr)() = (int (*)())fmaf;
19872 main ()
19874 return 0;
19877 _ACEOF
19878 if ac_fn_c_try_link "$LINENO"; then :
19879 gcc_cv_math_func_fmaf=yes
19880 else
19881 gcc_cv_math_func_fmaf=no
19883 rm -f core conftest.err conftest.$ac_objext \
19884 conftest$ac_exeext conftest.$ac_ext
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
19887 $as_echo "$gcc_cv_math_func_fmaf" >&6; }
19888 if test $gcc_cv_math_func_fmaf = yes; then
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_FMAF 1
19892 _ACEOF
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
19900 $as_echo_n "checking for fma... " >&6; }
19901 if ${gcc_cv_math_func_fma+:} false; then :
19902 $as_echo_n "(cached) " >&6
19903 else
19904 if test x$gcc_no_link = xyes; then
19905 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19910 #ifdef HAVE_COMPLEX_H
19911 #include <complex.h>
19912 #endif
19913 #ifdef HAVE_MATH_H
19914 #include <math.h>
19915 #endif
19917 int (*ptr)() = (int (*)())fma;
19920 main ()
19922 return 0;
19925 _ACEOF
19926 if ac_fn_c_try_link "$LINENO"; then :
19927 gcc_cv_math_func_fma=yes
19928 else
19929 gcc_cv_math_func_fma=no
19931 rm -f core conftest.err conftest.$ac_objext \
19932 conftest$ac_exeext conftest.$ac_ext
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
19935 $as_echo "$gcc_cv_math_func_fma" >&6; }
19936 if test $gcc_cv_math_func_fma = yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define HAVE_FMA 1
19940 _ACEOF
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
19948 $as_echo_n "checking for fmal... " >&6; }
19949 if ${gcc_cv_math_func_fmal+:} false; then :
19950 $as_echo_n "(cached) " >&6
19951 else
19952 if test x$gcc_no_link = xyes; then
19953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h. */
19958 #ifdef HAVE_COMPLEX_H
19959 #include <complex.h>
19960 #endif
19961 #ifdef HAVE_MATH_H
19962 #include <math.h>
19963 #endif
19965 int (*ptr)() = (int (*)())fmal;
19968 main ()
19970 return 0;
19973 _ACEOF
19974 if ac_fn_c_try_link "$LINENO"; then :
19975 gcc_cv_math_func_fmal=yes
19976 else
19977 gcc_cv_math_func_fmal=no
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
19983 $as_echo "$gcc_cv_math_func_fmal" >&6; }
19984 if test $gcc_cv_math_func_fmal = yes; then
19986 cat >>confdefs.h <<_ACEOF
19987 #define HAVE_FMAL 1
19988 _ACEOF
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19996 $as_echo_n "checking for fmodf... " >&6; }
19997 if ${gcc_cv_math_func_fmodf+:} false; then :
19998 $as_echo_n "(cached) " >&6
19999 else
20000 if test x$gcc_no_link = xyes; then
20001 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20006 #ifdef HAVE_COMPLEX_H
20007 #include <complex.h>
20008 #endif
20009 #ifdef HAVE_MATH_H
20010 #include <math.h>
20011 #endif
20013 int (*ptr)() = (int (*)())fmodf;
20016 main ()
20018 return 0;
20021 _ACEOF
20022 if ac_fn_c_try_link "$LINENO"; then :
20023 gcc_cv_math_func_fmodf=yes
20024 else
20025 gcc_cv_math_func_fmodf=no
20027 rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20031 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
20032 if test $gcc_cv_math_func_fmodf = yes; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define HAVE_FMODF 1
20036 _ACEOF
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20044 $as_echo_n "checking for fmod... " >&6; }
20045 if ${gcc_cv_math_func_fmod+:} false; then :
20046 $as_echo_n "(cached) " >&6
20047 else
20048 if test x$gcc_no_link = xyes; then
20049 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20054 #ifdef HAVE_COMPLEX_H
20055 #include <complex.h>
20056 #endif
20057 #ifdef HAVE_MATH_H
20058 #include <math.h>
20059 #endif
20061 int (*ptr)() = (int (*)())fmod;
20064 main ()
20066 return 0;
20069 _ACEOF
20070 if ac_fn_c_try_link "$LINENO"; then :
20071 gcc_cv_math_func_fmod=yes
20072 else
20073 gcc_cv_math_func_fmod=no
20075 rm -f core conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20079 $as_echo "$gcc_cv_math_func_fmod" >&6; }
20080 if test $gcc_cv_math_func_fmod = yes; then
20082 cat >>confdefs.h <<_ACEOF
20083 #define HAVE_FMOD 1
20084 _ACEOF
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20092 $as_echo_n "checking for fmodl... " >&6; }
20093 if ${gcc_cv_math_func_fmodl+:} false; then :
20094 $as_echo_n "(cached) " >&6
20095 else
20096 if test x$gcc_no_link = xyes; then
20097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100 /* end confdefs.h. */
20102 #ifdef HAVE_COMPLEX_H
20103 #include <complex.h>
20104 #endif
20105 #ifdef HAVE_MATH_H
20106 #include <math.h>
20107 #endif
20109 int (*ptr)() = (int (*)())fmodl;
20112 main ()
20114 return 0;
20117 _ACEOF
20118 if ac_fn_c_try_link "$LINENO"; then :
20119 gcc_cv_math_func_fmodl=yes
20120 else
20121 gcc_cv_math_func_fmodl=no
20123 rm -f core conftest.err conftest.$ac_objext \
20124 conftest$ac_exeext conftest.$ac_ext
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20127 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
20128 if test $gcc_cv_math_func_fmodl = yes; then
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_FMODL 1
20132 _ACEOF
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20140 $as_echo_n "checking for frexpf... " >&6; }
20141 if ${gcc_cv_math_func_frexpf+:} false; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 if test x$gcc_no_link = xyes; then
20145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20150 #ifdef HAVE_COMPLEX_H
20151 #include <complex.h>
20152 #endif
20153 #ifdef HAVE_MATH_H
20154 #include <math.h>
20155 #endif
20157 int (*ptr)() = (int (*)())frexpf;
20160 main ()
20162 return 0;
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167 gcc_cv_math_func_frexpf=yes
20168 else
20169 gcc_cv_math_func_frexpf=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20175 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20176 if test $gcc_cv_math_func_frexpf = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179 #define HAVE_FREXPF 1
20180 _ACEOF
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20188 $as_echo_n "checking for frexp... " >&6; }
20189 if ${gcc_cv_math_func_frexp+:} false; then :
20190 $as_echo_n "(cached) " >&6
20191 else
20192 if test x$gcc_no_link = xyes; then
20193 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20198 #ifdef HAVE_COMPLEX_H
20199 #include <complex.h>
20200 #endif
20201 #ifdef HAVE_MATH_H
20202 #include <math.h>
20203 #endif
20205 int (*ptr)() = (int (*)())frexp;
20208 main ()
20210 return 0;
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215 gcc_cv_math_func_frexp=yes
20216 else
20217 gcc_cv_math_func_frexp=no
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20223 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20224 if test $gcc_cv_math_func_frexp = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define HAVE_FREXP 1
20228 _ACEOF
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20236 $as_echo_n "checking for frexpl... " >&6; }
20237 if ${gcc_cv_math_func_frexpl+:} false; then :
20238 $as_echo_n "(cached) " >&6
20239 else
20240 if test x$gcc_no_link = xyes; then
20241 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20244 /* end confdefs.h. */
20246 #ifdef HAVE_COMPLEX_H
20247 #include <complex.h>
20248 #endif
20249 #ifdef HAVE_MATH_H
20250 #include <math.h>
20251 #endif
20253 int (*ptr)() = (int (*)())frexpl;
20256 main ()
20258 return 0;
20261 _ACEOF
20262 if ac_fn_c_try_link "$LINENO"; then :
20263 gcc_cv_math_func_frexpl=yes
20264 else
20265 gcc_cv_math_func_frexpl=no
20267 rm -f core conftest.err conftest.$ac_objext \
20268 conftest$ac_exeext conftest.$ac_ext
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20271 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20272 if test $gcc_cv_math_func_frexpl = yes; then
20274 cat >>confdefs.h <<_ACEOF
20275 #define HAVE_FREXPL 1
20276 _ACEOF
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20284 $as_echo_n "checking for hypotf... " >&6; }
20285 if ${gcc_cv_math_func_hypotf+:} false; then :
20286 $as_echo_n "(cached) " >&6
20287 else
20288 if test x$gcc_no_link = xyes; then
20289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h. */
20294 #ifdef HAVE_COMPLEX_H
20295 #include <complex.h>
20296 #endif
20297 #ifdef HAVE_MATH_H
20298 #include <math.h>
20299 #endif
20301 int (*ptr)() = (int (*)())hypotf;
20304 main ()
20306 return 0;
20309 _ACEOF
20310 if ac_fn_c_try_link "$LINENO"; then :
20311 gcc_cv_math_func_hypotf=yes
20312 else
20313 gcc_cv_math_func_hypotf=no
20315 rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20319 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20320 if test $gcc_cv_math_func_hypotf = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_HYPOTF 1
20324 _ACEOF
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20332 $as_echo_n "checking for hypot... " >&6; }
20333 if ${gcc_cv_math_func_hypot+:} false; then :
20334 $as_echo_n "(cached) " >&6
20335 else
20336 if test x$gcc_no_link = xyes; then
20337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20342 #ifdef HAVE_COMPLEX_H
20343 #include <complex.h>
20344 #endif
20345 #ifdef HAVE_MATH_H
20346 #include <math.h>
20347 #endif
20349 int (*ptr)() = (int (*)())hypot;
20352 main ()
20354 return 0;
20357 _ACEOF
20358 if ac_fn_c_try_link "$LINENO"; then :
20359 gcc_cv_math_func_hypot=yes
20360 else
20361 gcc_cv_math_func_hypot=no
20363 rm -f core conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20367 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20368 if test $gcc_cv_math_func_hypot = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371 #define HAVE_HYPOT 1
20372 _ACEOF
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20380 $as_echo_n "checking for hypotl... " >&6; }
20381 if ${gcc_cv_math_func_hypotl+:} false; then :
20382 $as_echo_n "(cached) " >&6
20383 else
20384 if test x$gcc_no_link = xyes; then
20385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20390 #ifdef HAVE_COMPLEX_H
20391 #include <complex.h>
20392 #endif
20393 #ifdef HAVE_MATH_H
20394 #include <math.h>
20395 #endif
20397 int (*ptr)() = (int (*)())hypotl;
20400 main ()
20402 return 0;
20405 _ACEOF
20406 if ac_fn_c_try_link "$LINENO"; then :
20407 gcc_cv_math_func_hypotl=yes
20408 else
20409 gcc_cv_math_func_hypotl=no
20411 rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20415 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20416 if test $gcc_cv_math_func_hypotl = yes; then
20418 cat >>confdefs.h <<_ACEOF
20419 #define HAVE_HYPOTL 1
20420 _ACEOF
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20428 $as_echo_n "checking for ldexpf... " >&6; }
20429 if ${gcc_cv_math_func_ldexpf+:} false; then :
20430 $as_echo_n "(cached) " >&6
20431 else
20432 if test x$gcc_no_link = xyes; then
20433 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20438 #ifdef HAVE_COMPLEX_H
20439 #include <complex.h>
20440 #endif
20441 #ifdef HAVE_MATH_H
20442 #include <math.h>
20443 #endif
20445 int (*ptr)() = (int (*)())ldexpf;
20448 main ()
20450 return 0;
20453 _ACEOF
20454 if ac_fn_c_try_link "$LINENO"; then :
20455 gcc_cv_math_func_ldexpf=yes
20456 else
20457 gcc_cv_math_func_ldexpf=no
20459 rm -f core conftest.err conftest.$ac_objext \
20460 conftest$ac_exeext conftest.$ac_ext
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20463 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20464 if test $gcc_cv_math_func_ldexpf = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_LDEXPF 1
20468 _ACEOF
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20476 $as_echo_n "checking for ldexp... " >&6; }
20477 if ${gcc_cv_math_func_ldexp+:} false; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 if test x$gcc_no_link = xyes; then
20481 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20486 #ifdef HAVE_COMPLEX_H
20487 #include <complex.h>
20488 #endif
20489 #ifdef HAVE_MATH_H
20490 #include <math.h>
20491 #endif
20493 int (*ptr)() = (int (*)())ldexp;
20496 main ()
20498 return 0;
20501 _ACEOF
20502 if ac_fn_c_try_link "$LINENO"; then :
20503 gcc_cv_math_func_ldexp=yes
20504 else
20505 gcc_cv_math_func_ldexp=no
20507 rm -f core conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20511 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20512 if test $gcc_cv_math_func_ldexp = yes; then
20514 cat >>confdefs.h <<_ACEOF
20515 #define HAVE_LDEXP 1
20516 _ACEOF
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20524 $as_echo_n "checking for ldexpl... " >&6; }
20525 if ${gcc_cv_math_func_ldexpl+:} false; then :
20526 $as_echo_n "(cached) " >&6
20527 else
20528 if test x$gcc_no_link = xyes; then
20529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20534 #ifdef HAVE_COMPLEX_H
20535 #include <complex.h>
20536 #endif
20537 #ifdef HAVE_MATH_H
20538 #include <math.h>
20539 #endif
20541 int (*ptr)() = (int (*)())ldexpl;
20544 main ()
20546 return 0;
20549 _ACEOF
20550 if ac_fn_c_try_link "$LINENO"; then :
20551 gcc_cv_math_func_ldexpl=yes
20552 else
20553 gcc_cv_math_func_ldexpl=no
20555 rm -f core conftest.err conftest.$ac_objext \
20556 conftest$ac_exeext conftest.$ac_ext
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20559 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20560 if test $gcc_cv_math_func_ldexpl = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LDEXPL 1
20564 _ACEOF
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20572 $as_echo_n "checking for logf... " >&6; }
20573 if ${gcc_cv_math_func_logf+:} false; then :
20574 $as_echo_n "(cached) " >&6
20575 else
20576 if test x$gcc_no_link = xyes; then
20577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20582 #ifdef HAVE_COMPLEX_H
20583 #include <complex.h>
20584 #endif
20585 #ifdef HAVE_MATH_H
20586 #include <math.h>
20587 #endif
20589 int (*ptr)() = (int (*)())logf;
20592 main ()
20594 return 0;
20597 _ACEOF
20598 if ac_fn_c_try_link "$LINENO"; then :
20599 gcc_cv_math_func_logf=yes
20600 else
20601 gcc_cv_math_func_logf=no
20603 rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20607 $as_echo "$gcc_cv_math_func_logf" >&6; }
20608 if test $gcc_cv_math_func_logf = yes; then
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_LOGF 1
20612 _ACEOF
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20620 $as_echo_n "checking for log... " >&6; }
20621 if ${gcc_cv_math_func_log+:} false; then :
20622 $as_echo_n "(cached) " >&6
20623 else
20624 if test x$gcc_no_link = xyes; then
20625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h. */
20630 #ifdef HAVE_COMPLEX_H
20631 #include <complex.h>
20632 #endif
20633 #ifdef HAVE_MATH_H
20634 #include <math.h>
20635 #endif
20637 int (*ptr)() = (int (*)())log;
20640 main ()
20642 return 0;
20645 _ACEOF
20646 if ac_fn_c_try_link "$LINENO"; then :
20647 gcc_cv_math_func_log=yes
20648 else
20649 gcc_cv_math_func_log=no
20651 rm -f core conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20655 $as_echo "$gcc_cv_math_func_log" >&6; }
20656 if test $gcc_cv_math_func_log = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LOG 1
20660 _ACEOF
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20668 $as_echo_n "checking for logl... " >&6; }
20669 if ${gcc_cv_math_func_logl+:} false; then :
20670 $as_echo_n "(cached) " >&6
20671 else
20672 if test x$gcc_no_link = xyes; then
20673 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20676 /* end confdefs.h. */
20678 #ifdef HAVE_COMPLEX_H
20679 #include <complex.h>
20680 #endif
20681 #ifdef HAVE_MATH_H
20682 #include <math.h>
20683 #endif
20685 int (*ptr)() = (int (*)())logl;
20688 main ()
20690 return 0;
20693 _ACEOF
20694 if ac_fn_c_try_link "$LINENO"; then :
20695 gcc_cv_math_func_logl=yes
20696 else
20697 gcc_cv_math_func_logl=no
20699 rm -f core conftest.err conftest.$ac_objext \
20700 conftest$ac_exeext conftest.$ac_ext
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20703 $as_echo "$gcc_cv_math_func_logl" >&6; }
20704 if test $gcc_cv_math_func_logl = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define HAVE_LOGL 1
20708 _ACEOF
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20716 $as_echo_n "checking for clogf... " >&6; }
20717 if ${gcc_cv_math_func_clogf+:} false; then :
20718 $as_echo_n "(cached) " >&6
20719 else
20720 if test x$gcc_no_link = xyes; then
20721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h. */
20726 #ifdef HAVE_COMPLEX_H
20727 #include <complex.h>
20728 #endif
20729 #ifdef HAVE_MATH_H
20730 #include <math.h>
20731 #endif
20733 int (*ptr)() = (int (*)())clogf;
20736 main ()
20738 return 0;
20741 _ACEOF
20742 if ac_fn_c_try_link "$LINENO"; then :
20743 gcc_cv_math_func_clogf=yes
20744 else
20745 gcc_cv_math_func_clogf=no
20747 rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20751 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20752 if test $gcc_cv_math_func_clogf = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define HAVE_CLOGF 1
20756 _ACEOF
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20764 $as_echo_n "checking for clog... " >&6; }
20765 if ${gcc_cv_math_func_clog+:} false; then :
20766 $as_echo_n "(cached) " >&6
20767 else
20768 if test x$gcc_no_link = xyes; then
20769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20772 /* end confdefs.h. */
20774 #ifdef HAVE_COMPLEX_H
20775 #include <complex.h>
20776 #endif
20777 #ifdef HAVE_MATH_H
20778 #include <math.h>
20779 #endif
20781 int (*ptr)() = (int (*)())clog;
20784 main ()
20786 return 0;
20789 _ACEOF
20790 if ac_fn_c_try_link "$LINENO"; then :
20791 gcc_cv_math_func_clog=yes
20792 else
20793 gcc_cv_math_func_clog=no
20795 rm -f core conftest.err conftest.$ac_objext \
20796 conftest$ac_exeext conftest.$ac_ext
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20799 $as_echo "$gcc_cv_math_func_clog" >&6; }
20800 if test $gcc_cv_math_func_clog = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_CLOG 1
20804 _ACEOF
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20812 $as_echo_n "checking for clogl... " >&6; }
20813 if ${gcc_cv_math_func_clogl+:} false; then :
20814 $as_echo_n "(cached) " >&6
20815 else
20816 if test x$gcc_no_link = xyes; then
20817 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20822 #ifdef HAVE_COMPLEX_H
20823 #include <complex.h>
20824 #endif
20825 #ifdef HAVE_MATH_H
20826 #include <math.h>
20827 #endif
20829 int (*ptr)() = (int (*)())clogl;
20832 main ()
20834 return 0;
20837 _ACEOF
20838 if ac_fn_c_try_link "$LINENO"; then :
20839 gcc_cv_math_func_clogl=yes
20840 else
20841 gcc_cv_math_func_clogl=no
20843 rm -f core conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20847 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20848 if test $gcc_cv_math_func_clogl = yes; then
20850 cat >>confdefs.h <<_ACEOF
20851 #define HAVE_CLOGL 1
20852 _ACEOF
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20860 $as_echo_n "checking for log10f... " >&6; }
20861 if ${gcc_cv_math_func_log10f+:} false; then :
20862 $as_echo_n "(cached) " >&6
20863 else
20864 if test x$gcc_no_link = xyes; then
20865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20870 #ifdef HAVE_COMPLEX_H
20871 #include <complex.h>
20872 #endif
20873 #ifdef HAVE_MATH_H
20874 #include <math.h>
20875 #endif
20877 int (*ptr)() = (int (*)())log10f;
20880 main ()
20882 return 0;
20885 _ACEOF
20886 if ac_fn_c_try_link "$LINENO"; then :
20887 gcc_cv_math_func_log10f=yes
20888 else
20889 gcc_cv_math_func_log10f=no
20891 rm -f core conftest.err conftest.$ac_objext \
20892 conftest$ac_exeext conftest.$ac_ext
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20895 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20896 if test $gcc_cv_math_func_log10f = yes; then
20898 cat >>confdefs.h <<_ACEOF
20899 #define HAVE_LOG10F 1
20900 _ACEOF
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20908 $as_echo_n "checking for log10... " >&6; }
20909 if ${gcc_cv_math_func_log10+:} false; then :
20910 $as_echo_n "(cached) " >&6
20911 else
20912 if test x$gcc_no_link = xyes; then
20913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20916 /* end confdefs.h. */
20918 #ifdef HAVE_COMPLEX_H
20919 #include <complex.h>
20920 #endif
20921 #ifdef HAVE_MATH_H
20922 #include <math.h>
20923 #endif
20925 int (*ptr)() = (int (*)())log10;
20928 main ()
20930 return 0;
20933 _ACEOF
20934 if ac_fn_c_try_link "$LINENO"; then :
20935 gcc_cv_math_func_log10=yes
20936 else
20937 gcc_cv_math_func_log10=no
20939 rm -f core conftest.err conftest.$ac_objext \
20940 conftest$ac_exeext conftest.$ac_ext
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20943 $as_echo "$gcc_cv_math_func_log10" >&6; }
20944 if test $gcc_cv_math_func_log10 = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_LOG10 1
20948 _ACEOF
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20956 $as_echo_n "checking for log10l... " >&6; }
20957 if ${gcc_cv_math_func_log10l+:} false; then :
20958 $as_echo_n "(cached) " >&6
20959 else
20960 if test x$gcc_no_link = xyes; then
20961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20966 #ifdef HAVE_COMPLEX_H
20967 #include <complex.h>
20968 #endif
20969 #ifdef HAVE_MATH_H
20970 #include <math.h>
20971 #endif
20973 int (*ptr)() = (int (*)())log10l;
20976 main ()
20978 return 0;
20981 _ACEOF
20982 if ac_fn_c_try_link "$LINENO"; then :
20983 gcc_cv_math_func_log10l=yes
20984 else
20985 gcc_cv_math_func_log10l=no
20987 rm -f core conftest.err conftest.$ac_objext \
20988 conftest$ac_exeext conftest.$ac_ext
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20991 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20992 if test $gcc_cv_math_func_log10l = yes; then
20994 cat >>confdefs.h <<_ACEOF
20995 #define HAVE_LOG10L 1
20996 _ACEOF
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21004 $as_echo_n "checking for clog10f... " >&6; }
21005 if ${gcc_cv_math_func_clog10f+:} false; then :
21006 $as_echo_n "(cached) " >&6
21007 else
21008 if test x$gcc_no_link = xyes; then
21009 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012 /* end confdefs.h. */
21014 #ifdef HAVE_COMPLEX_H
21015 #include <complex.h>
21016 #endif
21017 #ifdef HAVE_MATH_H
21018 #include <math.h>
21019 #endif
21021 int (*ptr)() = (int (*)())clog10f;
21024 main ()
21026 return 0;
21029 _ACEOF
21030 if ac_fn_c_try_link "$LINENO"; then :
21031 gcc_cv_math_func_clog10f=yes
21032 else
21033 gcc_cv_math_func_clog10f=no
21035 rm -f core conftest.err conftest.$ac_objext \
21036 conftest$ac_exeext conftest.$ac_ext
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21039 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
21040 if test $gcc_cv_math_func_clog10f = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define HAVE_CLOG10F 1
21044 _ACEOF
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21052 $as_echo_n "checking for clog10... " >&6; }
21053 if ${gcc_cv_math_func_clog10+:} false; then :
21054 $as_echo_n "(cached) " >&6
21055 else
21056 if test x$gcc_no_link = xyes; then
21057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21060 /* end confdefs.h. */
21062 #ifdef HAVE_COMPLEX_H
21063 #include <complex.h>
21064 #endif
21065 #ifdef HAVE_MATH_H
21066 #include <math.h>
21067 #endif
21069 int (*ptr)() = (int (*)())clog10;
21072 main ()
21074 return 0;
21077 _ACEOF
21078 if ac_fn_c_try_link "$LINENO"; then :
21079 gcc_cv_math_func_clog10=yes
21080 else
21081 gcc_cv_math_func_clog10=no
21083 rm -f core conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21087 $as_echo "$gcc_cv_math_func_clog10" >&6; }
21088 if test $gcc_cv_math_func_clog10 = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define HAVE_CLOG10 1
21092 _ACEOF
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21100 $as_echo_n "checking for clog10l... " >&6; }
21101 if ${gcc_cv_math_func_clog10l+:} false; then :
21102 $as_echo_n "(cached) " >&6
21103 else
21104 if test x$gcc_no_link = xyes; then
21105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21110 #ifdef HAVE_COMPLEX_H
21111 #include <complex.h>
21112 #endif
21113 #ifdef HAVE_MATH_H
21114 #include <math.h>
21115 #endif
21117 int (*ptr)() = (int (*)())clog10l;
21120 main ()
21122 return 0;
21125 _ACEOF
21126 if ac_fn_c_try_link "$LINENO"; then :
21127 gcc_cv_math_func_clog10l=yes
21128 else
21129 gcc_cv_math_func_clog10l=no
21131 rm -f core conftest.err conftest.$ac_objext \
21132 conftest$ac_exeext conftest.$ac_ext
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21135 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
21136 if test $gcc_cv_math_func_clog10l = yes; then
21138 cat >>confdefs.h <<_ACEOF
21139 #define HAVE_CLOG10L 1
21140 _ACEOF
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21148 $as_echo_n "checking for nextafterf... " >&6; }
21149 if ${gcc_cv_math_func_nextafterf+:} false; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 if test x$gcc_no_link = xyes; then
21153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21158 #ifdef HAVE_COMPLEX_H
21159 #include <complex.h>
21160 #endif
21161 #ifdef HAVE_MATH_H
21162 #include <math.h>
21163 #endif
21165 int (*ptr)() = (int (*)())nextafterf;
21168 main ()
21170 return 0;
21173 _ACEOF
21174 if ac_fn_c_try_link "$LINENO"; then :
21175 gcc_cv_math_func_nextafterf=yes
21176 else
21177 gcc_cv_math_func_nextafterf=no
21179 rm -f core conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21183 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21184 if test $gcc_cv_math_func_nextafterf = yes; then
21186 cat >>confdefs.h <<_ACEOF
21187 #define HAVE_NEXTAFTERF 1
21188 _ACEOF
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21196 $as_echo_n "checking for nextafter... " >&6; }
21197 if ${gcc_cv_math_func_nextafter+:} false; then :
21198 $as_echo_n "(cached) " >&6
21199 else
21200 if test x$gcc_no_link = xyes; then
21201 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204 /* end confdefs.h. */
21206 #ifdef HAVE_COMPLEX_H
21207 #include <complex.h>
21208 #endif
21209 #ifdef HAVE_MATH_H
21210 #include <math.h>
21211 #endif
21213 int (*ptr)() = (int (*)())nextafter;
21216 main ()
21218 return 0;
21221 _ACEOF
21222 if ac_fn_c_try_link "$LINENO"; then :
21223 gcc_cv_math_func_nextafter=yes
21224 else
21225 gcc_cv_math_func_nextafter=no
21227 rm -f core conftest.err conftest.$ac_objext \
21228 conftest$ac_exeext conftest.$ac_ext
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21231 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21232 if test $gcc_cv_math_func_nextafter = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define HAVE_NEXTAFTER 1
21236 _ACEOF
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21244 $as_echo_n "checking for nextafterl... " >&6; }
21245 if ${gcc_cv_math_func_nextafterl+:} false; then :
21246 $as_echo_n "(cached) " >&6
21247 else
21248 if test x$gcc_no_link = xyes; then
21249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21252 /* end confdefs.h. */
21254 #ifdef HAVE_COMPLEX_H
21255 #include <complex.h>
21256 #endif
21257 #ifdef HAVE_MATH_H
21258 #include <math.h>
21259 #endif
21261 int (*ptr)() = (int (*)())nextafterl;
21264 main ()
21266 return 0;
21269 _ACEOF
21270 if ac_fn_c_try_link "$LINENO"; then :
21271 gcc_cv_math_func_nextafterl=yes
21272 else
21273 gcc_cv_math_func_nextafterl=no
21275 rm -f core conftest.err conftest.$ac_objext \
21276 conftest$ac_exeext conftest.$ac_ext
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21279 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21280 if test $gcc_cv_math_func_nextafterl = yes; then
21282 cat >>confdefs.h <<_ACEOF
21283 #define HAVE_NEXTAFTERL 1
21284 _ACEOF
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21292 $as_echo_n "checking for powf... " >&6; }
21293 if ${gcc_cv_math_func_powf+:} false; then :
21294 $as_echo_n "(cached) " >&6
21295 else
21296 if test x$gcc_no_link = xyes; then
21297 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21302 #ifdef HAVE_COMPLEX_H
21303 #include <complex.h>
21304 #endif
21305 #ifdef HAVE_MATH_H
21306 #include <math.h>
21307 #endif
21309 int (*ptr)() = (int (*)())powf;
21312 main ()
21314 return 0;
21317 _ACEOF
21318 if ac_fn_c_try_link "$LINENO"; then :
21319 gcc_cv_math_func_powf=yes
21320 else
21321 gcc_cv_math_func_powf=no
21323 rm -f core conftest.err conftest.$ac_objext \
21324 conftest$ac_exeext conftest.$ac_ext
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21327 $as_echo "$gcc_cv_math_func_powf" >&6; }
21328 if test $gcc_cv_math_func_powf = yes; then
21330 cat >>confdefs.h <<_ACEOF
21331 #define HAVE_POWF 1
21332 _ACEOF
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21340 $as_echo_n "checking for pow... " >&6; }
21341 if ${gcc_cv_math_func_pow+:} false; then :
21342 $as_echo_n "(cached) " >&6
21343 else
21344 if test x$gcc_no_link = xyes; then
21345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21350 #ifdef HAVE_COMPLEX_H
21351 #include <complex.h>
21352 #endif
21353 #ifdef HAVE_MATH_H
21354 #include <math.h>
21355 #endif
21357 int (*ptr)() = (int (*)())pow;
21360 main ()
21362 return 0;
21365 _ACEOF
21366 if ac_fn_c_try_link "$LINENO"; then :
21367 gcc_cv_math_func_pow=yes
21368 else
21369 gcc_cv_math_func_pow=no
21371 rm -f core conftest.err conftest.$ac_objext \
21372 conftest$ac_exeext conftest.$ac_ext
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21375 $as_echo "$gcc_cv_math_func_pow" >&6; }
21376 if test $gcc_cv_math_func_pow = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define HAVE_POW 1
21380 _ACEOF
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21388 $as_echo_n "checking for cpowf... " >&6; }
21389 if ${gcc_cv_math_func_cpowf+:} false; then :
21390 $as_echo_n "(cached) " >&6
21391 else
21392 if test x$gcc_no_link = xyes; then
21393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21398 #ifdef HAVE_COMPLEX_H
21399 #include <complex.h>
21400 #endif
21401 #ifdef HAVE_MATH_H
21402 #include <math.h>
21403 #endif
21405 int (*ptr)() = (int (*)())cpowf;
21408 main ()
21410 return 0;
21413 _ACEOF
21414 if ac_fn_c_try_link "$LINENO"; then :
21415 gcc_cv_math_func_cpowf=yes
21416 else
21417 gcc_cv_math_func_cpowf=no
21419 rm -f core conftest.err conftest.$ac_objext \
21420 conftest$ac_exeext conftest.$ac_ext
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21423 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21424 if test $gcc_cv_math_func_cpowf = yes; then
21426 cat >>confdefs.h <<_ACEOF
21427 #define HAVE_CPOWF 1
21428 _ACEOF
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21436 $as_echo_n "checking for cpow... " >&6; }
21437 if ${gcc_cv_math_func_cpow+:} false; then :
21438 $as_echo_n "(cached) " >&6
21439 else
21440 if test x$gcc_no_link = xyes; then
21441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21446 #ifdef HAVE_COMPLEX_H
21447 #include <complex.h>
21448 #endif
21449 #ifdef HAVE_MATH_H
21450 #include <math.h>
21451 #endif
21453 int (*ptr)() = (int (*)())cpow;
21456 main ()
21458 return 0;
21461 _ACEOF
21462 if ac_fn_c_try_link "$LINENO"; then :
21463 gcc_cv_math_func_cpow=yes
21464 else
21465 gcc_cv_math_func_cpow=no
21467 rm -f core conftest.err conftest.$ac_objext \
21468 conftest$ac_exeext conftest.$ac_ext
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21471 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21472 if test $gcc_cv_math_func_cpow = yes; then
21474 cat >>confdefs.h <<_ACEOF
21475 #define HAVE_CPOW 1
21476 _ACEOF
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21484 $as_echo_n "checking for cpowl... " >&6; }
21485 if ${gcc_cv_math_func_cpowl+:} false; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 if test x$gcc_no_link = xyes; then
21489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492 /* end confdefs.h. */
21494 #ifdef HAVE_COMPLEX_H
21495 #include <complex.h>
21496 #endif
21497 #ifdef HAVE_MATH_H
21498 #include <math.h>
21499 #endif
21501 int (*ptr)() = (int (*)())cpowl;
21504 main ()
21506 return 0;
21509 _ACEOF
21510 if ac_fn_c_try_link "$LINENO"; then :
21511 gcc_cv_math_func_cpowl=yes
21512 else
21513 gcc_cv_math_func_cpowl=no
21515 rm -f core conftest.err conftest.$ac_objext \
21516 conftest$ac_exeext conftest.$ac_ext
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21519 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21520 if test $gcc_cv_math_func_cpowl = yes; then
21522 cat >>confdefs.h <<_ACEOF
21523 #define HAVE_CPOWL 1
21524 _ACEOF
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21532 $as_echo_n "checking for roundf... " >&6; }
21533 if ${gcc_cv_math_func_roundf+:} false; then :
21534 $as_echo_n "(cached) " >&6
21535 else
21536 if test x$gcc_no_link = xyes; then
21537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21542 #ifdef HAVE_COMPLEX_H
21543 #include <complex.h>
21544 #endif
21545 #ifdef HAVE_MATH_H
21546 #include <math.h>
21547 #endif
21549 int (*ptr)() = (int (*)())roundf;
21552 main ()
21554 return 0;
21557 _ACEOF
21558 if ac_fn_c_try_link "$LINENO"; then :
21559 gcc_cv_math_func_roundf=yes
21560 else
21561 gcc_cv_math_func_roundf=no
21563 rm -f core conftest.err conftest.$ac_objext \
21564 conftest$ac_exeext conftest.$ac_ext
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21567 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21568 if test $gcc_cv_math_func_roundf = yes; then
21570 cat >>confdefs.h <<_ACEOF
21571 #define HAVE_ROUNDF 1
21572 _ACEOF
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21580 $as_echo_n "checking for round... " >&6; }
21581 if ${gcc_cv_math_func_round+:} false; then :
21582 $as_echo_n "(cached) " >&6
21583 else
21584 if test x$gcc_no_link = xyes; then
21585 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 #ifdef HAVE_COMPLEX_H
21591 #include <complex.h>
21592 #endif
21593 #ifdef HAVE_MATH_H
21594 #include <math.h>
21595 #endif
21597 int (*ptr)() = (int (*)())round;
21600 main ()
21602 return 0;
21605 _ACEOF
21606 if ac_fn_c_try_link "$LINENO"; then :
21607 gcc_cv_math_func_round=yes
21608 else
21609 gcc_cv_math_func_round=no
21611 rm -f core conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext conftest.$ac_ext
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21615 $as_echo "$gcc_cv_math_func_round" >&6; }
21616 if test $gcc_cv_math_func_round = yes; then
21618 cat >>confdefs.h <<_ACEOF
21619 #define HAVE_ROUND 1
21620 _ACEOF
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21628 $as_echo_n "checking for roundl... " >&6; }
21629 if ${gcc_cv_math_func_roundl+:} false; then :
21630 $as_echo_n "(cached) " >&6
21631 else
21632 if test x$gcc_no_link = xyes; then
21633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21638 #ifdef HAVE_COMPLEX_H
21639 #include <complex.h>
21640 #endif
21641 #ifdef HAVE_MATH_H
21642 #include <math.h>
21643 #endif
21645 int (*ptr)() = (int (*)())roundl;
21648 main ()
21650 return 0;
21653 _ACEOF
21654 if ac_fn_c_try_link "$LINENO"; then :
21655 gcc_cv_math_func_roundl=yes
21656 else
21657 gcc_cv_math_func_roundl=no
21659 rm -f core conftest.err conftest.$ac_objext \
21660 conftest$ac_exeext conftest.$ac_ext
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21663 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21664 if test $gcc_cv_math_func_roundl = yes; then
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_ROUNDL 1
21668 _ACEOF
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21676 $as_echo_n "checking for lroundf... " >&6; }
21677 if ${gcc_cv_math_func_lroundf+:} false; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 if test x$gcc_no_link = xyes; then
21681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21686 #ifdef HAVE_COMPLEX_H
21687 #include <complex.h>
21688 #endif
21689 #ifdef HAVE_MATH_H
21690 #include <math.h>
21691 #endif
21693 int (*ptr)() = (int (*)())lroundf;
21696 main ()
21698 return 0;
21701 _ACEOF
21702 if ac_fn_c_try_link "$LINENO"; then :
21703 gcc_cv_math_func_lroundf=yes
21704 else
21705 gcc_cv_math_func_lroundf=no
21707 rm -f core conftest.err conftest.$ac_objext \
21708 conftest$ac_exeext conftest.$ac_ext
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21711 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21712 if test $gcc_cv_math_func_lroundf = yes; then
21714 cat >>confdefs.h <<_ACEOF
21715 #define HAVE_LROUNDF 1
21716 _ACEOF
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21724 $as_echo_n "checking for lround... " >&6; }
21725 if ${gcc_cv_math_func_lround+:} false; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 if test x$gcc_no_link = xyes; then
21729 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h. */
21734 #ifdef HAVE_COMPLEX_H
21735 #include <complex.h>
21736 #endif
21737 #ifdef HAVE_MATH_H
21738 #include <math.h>
21739 #endif
21741 int (*ptr)() = (int (*)())lround;
21744 main ()
21746 return 0;
21749 _ACEOF
21750 if ac_fn_c_try_link "$LINENO"; then :
21751 gcc_cv_math_func_lround=yes
21752 else
21753 gcc_cv_math_func_lround=no
21755 rm -f core conftest.err conftest.$ac_objext \
21756 conftest$ac_exeext conftest.$ac_ext
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21759 $as_echo "$gcc_cv_math_func_lround" >&6; }
21760 if test $gcc_cv_math_func_lround = yes; then
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_LROUND 1
21764 _ACEOF
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21772 $as_echo_n "checking for lroundl... " >&6; }
21773 if ${gcc_cv_math_func_lroundl+:} false; then :
21774 $as_echo_n "(cached) " >&6
21775 else
21776 if test x$gcc_no_link = xyes; then
21777 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21782 #ifdef HAVE_COMPLEX_H
21783 #include <complex.h>
21784 #endif
21785 #ifdef HAVE_MATH_H
21786 #include <math.h>
21787 #endif
21789 int (*ptr)() = (int (*)())lroundl;
21792 main ()
21794 return 0;
21797 _ACEOF
21798 if ac_fn_c_try_link "$LINENO"; then :
21799 gcc_cv_math_func_lroundl=yes
21800 else
21801 gcc_cv_math_func_lroundl=no
21803 rm -f core conftest.err conftest.$ac_objext \
21804 conftest$ac_exeext conftest.$ac_ext
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21807 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21808 if test $gcc_cv_math_func_lroundl = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_LROUNDL 1
21812 _ACEOF
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21820 $as_echo_n "checking for llroundf... " >&6; }
21821 if ${gcc_cv_math_func_llroundf+:} false; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 if test x$gcc_no_link = xyes; then
21825 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h. */
21830 #ifdef HAVE_COMPLEX_H
21831 #include <complex.h>
21832 #endif
21833 #ifdef HAVE_MATH_H
21834 #include <math.h>
21835 #endif
21837 int (*ptr)() = (int (*)())llroundf;
21840 main ()
21842 return 0;
21845 _ACEOF
21846 if ac_fn_c_try_link "$LINENO"; then :
21847 gcc_cv_math_func_llroundf=yes
21848 else
21849 gcc_cv_math_func_llroundf=no
21851 rm -f core conftest.err conftest.$ac_objext \
21852 conftest$ac_exeext conftest.$ac_ext
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21855 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21856 if test $gcc_cv_math_func_llroundf = yes; then
21858 cat >>confdefs.h <<_ACEOF
21859 #define HAVE_LLROUNDF 1
21860 _ACEOF
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21868 $as_echo_n "checking for llround... " >&6; }
21869 if ${gcc_cv_math_func_llround+:} false; then :
21870 $as_echo_n "(cached) " >&6
21871 else
21872 if test x$gcc_no_link = xyes; then
21873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876 /* end confdefs.h. */
21878 #ifdef HAVE_COMPLEX_H
21879 #include <complex.h>
21880 #endif
21881 #ifdef HAVE_MATH_H
21882 #include <math.h>
21883 #endif
21885 int (*ptr)() = (int (*)())llround;
21888 main ()
21890 return 0;
21893 _ACEOF
21894 if ac_fn_c_try_link "$LINENO"; then :
21895 gcc_cv_math_func_llround=yes
21896 else
21897 gcc_cv_math_func_llround=no
21899 rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21903 $as_echo "$gcc_cv_math_func_llround" >&6; }
21904 if test $gcc_cv_math_func_llround = yes; then
21906 cat >>confdefs.h <<_ACEOF
21907 #define HAVE_LLROUND 1
21908 _ACEOF
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21916 $as_echo_n "checking for llroundl... " >&6; }
21917 if ${gcc_cv_math_func_llroundl+:} false; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920 if test x$gcc_no_link = xyes; then
21921 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h. */
21926 #ifdef HAVE_COMPLEX_H
21927 #include <complex.h>
21928 #endif
21929 #ifdef HAVE_MATH_H
21930 #include <math.h>
21931 #endif
21933 int (*ptr)() = (int (*)())llroundl;
21936 main ()
21938 return 0;
21941 _ACEOF
21942 if ac_fn_c_try_link "$LINENO"; then :
21943 gcc_cv_math_func_llroundl=yes
21944 else
21945 gcc_cv_math_func_llroundl=no
21947 rm -f core conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21951 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21952 if test $gcc_cv_math_func_llroundl = yes; then
21954 cat >>confdefs.h <<_ACEOF
21955 #define HAVE_LLROUNDL 1
21956 _ACEOF
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21964 $as_echo_n "checking for scalbnf... " >&6; }
21965 if ${gcc_cv_math_func_scalbnf+:} false; then :
21966 $as_echo_n "(cached) " >&6
21967 else
21968 if test x$gcc_no_link = xyes; then
21969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21972 /* end confdefs.h. */
21974 #ifdef HAVE_COMPLEX_H
21975 #include <complex.h>
21976 #endif
21977 #ifdef HAVE_MATH_H
21978 #include <math.h>
21979 #endif
21981 int (*ptr)() = (int (*)())scalbnf;
21984 main ()
21986 return 0;
21989 _ACEOF
21990 if ac_fn_c_try_link "$LINENO"; then :
21991 gcc_cv_math_func_scalbnf=yes
21992 else
21993 gcc_cv_math_func_scalbnf=no
21995 rm -f core conftest.err conftest.$ac_objext \
21996 conftest$ac_exeext conftest.$ac_ext
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21999 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22000 if test $gcc_cv_math_func_scalbnf = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_SCALBNF 1
22004 _ACEOF
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22012 $as_echo_n "checking for scalbn... " >&6; }
22013 if ${gcc_cv_math_func_scalbn+:} false; then :
22014 $as_echo_n "(cached) " >&6
22015 else
22016 if test x$gcc_no_link = xyes; then
22017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22022 #ifdef HAVE_COMPLEX_H
22023 #include <complex.h>
22024 #endif
22025 #ifdef HAVE_MATH_H
22026 #include <math.h>
22027 #endif
22029 int (*ptr)() = (int (*)())scalbn;
22032 main ()
22034 return 0;
22037 _ACEOF
22038 if ac_fn_c_try_link "$LINENO"; then :
22039 gcc_cv_math_func_scalbn=yes
22040 else
22041 gcc_cv_math_func_scalbn=no
22043 rm -f core conftest.err conftest.$ac_objext \
22044 conftest$ac_exeext conftest.$ac_ext
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22047 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
22048 if test $gcc_cv_math_func_scalbn = yes; then
22050 cat >>confdefs.h <<_ACEOF
22051 #define HAVE_SCALBN 1
22052 _ACEOF
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22060 $as_echo_n "checking for scalbnl... " >&6; }
22061 if ${gcc_cv_math_func_scalbnl+:} false; then :
22062 $as_echo_n "(cached) " >&6
22063 else
22064 if test x$gcc_no_link = xyes; then
22065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22068 /* end confdefs.h. */
22070 #ifdef HAVE_COMPLEX_H
22071 #include <complex.h>
22072 #endif
22073 #ifdef HAVE_MATH_H
22074 #include <math.h>
22075 #endif
22077 int (*ptr)() = (int (*)())scalbnl;
22080 main ()
22082 return 0;
22085 _ACEOF
22086 if ac_fn_c_try_link "$LINENO"; then :
22087 gcc_cv_math_func_scalbnl=yes
22088 else
22089 gcc_cv_math_func_scalbnl=no
22091 rm -f core conftest.err conftest.$ac_objext \
22092 conftest$ac_exeext conftest.$ac_ext
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22095 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22096 if test $gcc_cv_math_func_scalbnl = yes; then
22098 cat >>confdefs.h <<_ACEOF
22099 #define HAVE_SCALBNL 1
22100 _ACEOF
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22108 $as_echo_n "checking for sinf... " >&6; }
22109 if ${gcc_cv_math_func_sinf+:} false; then :
22110 $as_echo_n "(cached) " >&6
22111 else
22112 if test x$gcc_no_link = xyes; then
22113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22116 /* end confdefs.h. */
22118 #ifdef HAVE_COMPLEX_H
22119 #include <complex.h>
22120 #endif
22121 #ifdef HAVE_MATH_H
22122 #include <math.h>
22123 #endif
22125 int (*ptr)() = (int (*)())sinf;
22128 main ()
22130 return 0;
22133 _ACEOF
22134 if ac_fn_c_try_link "$LINENO"; then :
22135 gcc_cv_math_func_sinf=yes
22136 else
22137 gcc_cv_math_func_sinf=no
22139 rm -f core conftest.err conftest.$ac_objext \
22140 conftest$ac_exeext conftest.$ac_ext
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22143 $as_echo "$gcc_cv_math_func_sinf" >&6; }
22144 if test $gcc_cv_math_func_sinf = yes; then
22146 cat >>confdefs.h <<_ACEOF
22147 #define HAVE_SINF 1
22148 _ACEOF
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22156 $as_echo_n "checking for sin... " >&6; }
22157 if ${gcc_cv_math_func_sin+:} false; then :
22158 $as_echo_n "(cached) " >&6
22159 else
22160 if test x$gcc_no_link = xyes; then
22161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h. */
22166 #ifdef HAVE_COMPLEX_H
22167 #include <complex.h>
22168 #endif
22169 #ifdef HAVE_MATH_H
22170 #include <math.h>
22171 #endif
22173 int (*ptr)() = (int (*)())sin;
22176 main ()
22178 return 0;
22181 _ACEOF
22182 if ac_fn_c_try_link "$LINENO"; then :
22183 gcc_cv_math_func_sin=yes
22184 else
22185 gcc_cv_math_func_sin=no
22187 rm -f core conftest.err conftest.$ac_objext \
22188 conftest$ac_exeext conftest.$ac_ext
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22191 $as_echo "$gcc_cv_math_func_sin" >&6; }
22192 if test $gcc_cv_math_func_sin = yes; then
22194 cat >>confdefs.h <<_ACEOF
22195 #define HAVE_SIN 1
22196 _ACEOF
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22204 $as_echo_n "checking for sinl... " >&6; }
22205 if ${gcc_cv_math_func_sinl+:} false; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 if test x$gcc_no_link = xyes; then
22209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22214 #ifdef HAVE_COMPLEX_H
22215 #include <complex.h>
22216 #endif
22217 #ifdef HAVE_MATH_H
22218 #include <math.h>
22219 #endif
22221 int (*ptr)() = (int (*)())sinl;
22224 main ()
22226 return 0;
22229 _ACEOF
22230 if ac_fn_c_try_link "$LINENO"; then :
22231 gcc_cv_math_func_sinl=yes
22232 else
22233 gcc_cv_math_func_sinl=no
22235 rm -f core conftest.err conftest.$ac_objext \
22236 conftest$ac_exeext conftest.$ac_ext
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22239 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22240 if test $gcc_cv_math_func_sinl = yes; then
22242 cat >>confdefs.h <<_ACEOF
22243 #define HAVE_SINL 1
22244 _ACEOF
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22252 $as_echo_n "checking for csinf... " >&6; }
22253 if ${gcc_cv_math_func_csinf+:} false; then :
22254 $as_echo_n "(cached) " >&6
22255 else
22256 if test x$gcc_no_link = xyes; then
22257 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h. */
22262 #ifdef HAVE_COMPLEX_H
22263 #include <complex.h>
22264 #endif
22265 #ifdef HAVE_MATH_H
22266 #include <math.h>
22267 #endif
22269 int (*ptr)() = (int (*)())csinf;
22272 main ()
22274 return 0;
22277 _ACEOF
22278 if ac_fn_c_try_link "$LINENO"; then :
22279 gcc_cv_math_func_csinf=yes
22280 else
22281 gcc_cv_math_func_csinf=no
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22287 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22288 if test $gcc_cv_math_func_csinf = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE_CSINF 1
22292 _ACEOF
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22300 $as_echo_n "checking for csin... " >&6; }
22301 if ${gcc_cv_math_func_csin+:} false; then :
22302 $as_echo_n "(cached) " >&6
22303 else
22304 if test x$gcc_no_link = xyes; then
22305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22310 #ifdef HAVE_COMPLEX_H
22311 #include <complex.h>
22312 #endif
22313 #ifdef HAVE_MATH_H
22314 #include <math.h>
22315 #endif
22317 int (*ptr)() = (int (*)())csin;
22320 main ()
22322 return 0;
22325 _ACEOF
22326 if ac_fn_c_try_link "$LINENO"; then :
22327 gcc_cv_math_func_csin=yes
22328 else
22329 gcc_cv_math_func_csin=no
22331 rm -f core conftest.err conftest.$ac_objext \
22332 conftest$ac_exeext conftest.$ac_ext
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22335 $as_echo "$gcc_cv_math_func_csin" >&6; }
22336 if test $gcc_cv_math_func_csin = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339 #define HAVE_CSIN 1
22340 _ACEOF
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22348 $as_echo_n "checking for csinl... " >&6; }
22349 if ${gcc_cv_math_func_csinl+:} false; then :
22350 $as_echo_n "(cached) " >&6
22351 else
22352 if test x$gcc_no_link = xyes; then
22353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22358 #ifdef HAVE_COMPLEX_H
22359 #include <complex.h>
22360 #endif
22361 #ifdef HAVE_MATH_H
22362 #include <math.h>
22363 #endif
22365 int (*ptr)() = (int (*)())csinl;
22368 main ()
22370 return 0;
22373 _ACEOF
22374 if ac_fn_c_try_link "$LINENO"; then :
22375 gcc_cv_math_func_csinl=yes
22376 else
22377 gcc_cv_math_func_csinl=no
22379 rm -f core conftest.err conftest.$ac_objext \
22380 conftest$ac_exeext conftest.$ac_ext
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22383 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22384 if test $gcc_cv_math_func_csinl = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define HAVE_CSINL 1
22388 _ACEOF
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22396 $as_echo_n "checking for sinhf... " >&6; }
22397 if ${gcc_cv_math_func_sinhf+:} false; then :
22398 $as_echo_n "(cached) " >&6
22399 else
22400 if test x$gcc_no_link = xyes; then
22401 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22404 /* end confdefs.h. */
22406 #ifdef HAVE_COMPLEX_H
22407 #include <complex.h>
22408 #endif
22409 #ifdef HAVE_MATH_H
22410 #include <math.h>
22411 #endif
22413 int (*ptr)() = (int (*)())sinhf;
22416 main ()
22418 return 0;
22421 _ACEOF
22422 if ac_fn_c_try_link "$LINENO"; then :
22423 gcc_cv_math_func_sinhf=yes
22424 else
22425 gcc_cv_math_func_sinhf=no
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22431 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22432 if test $gcc_cv_math_func_sinhf = yes; then
22434 cat >>confdefs.h <<_ACEOF
22435 #define HAVE_SINHF 1
22436 _ACEOF
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22444 $as_echo_n "checking for sinh... " >&6; }
22445 if ${gcc_cv_math_func_sinh+:} false; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 if test x$gcc_no_link = xyes; then
22449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22452 /* end confdefs.h. */
22454 #ifdef HAVE_COMPLEX_H
22455 #include <complex.h>
22456 #endif
22457 #ifdef HAVE_MATH_H
22458 #include <math.h>
22459 #endif
22461 int (*ptr)() = (int (*)())sinh;
22464 main ()
22466 return 0;
22469 _ACEOF
22470 if ac_fn_c_try_link "$LINENO"; then :
22471 gcc_cv_math_func_sinh=yes
22472 else
22473 gcc_cv_math_func_sinh=no
22475 rm -f core conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22479 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22480 if test $gcc_cv_math_func_sinh = yes; then
22482 cat >>confdefs.h <<_ACEOF
22483 #define HAVE_SINH 1
22484 _ACEOF
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22492 $as_echo_n "checking for sinhl... " >&6; }
22493 if ${gcc_cv_math_func_sinhl+:} false; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 if test x$gcc_no_link = xyes; then
22497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22502 #ifdef HAVE_COMPLEX_H
22503 #include <complex.h>
22504 #endif
22505 #ifdef HAVE_MATH_H
22506 #include <math.h>
22507 #endif
22509 int (*ptr)() = (int (*)())sinhl;
22512 main ()
22514 return 0;
22517 _ACEOF
22518 if ac_fn_c_try_link "$LINENO"; then :
22519 gcc_cv_math_func_sinhl=yes
22520 else
22521 gcc_cv_math_func_sinhl=no
22523 rm -f core conftest.err conftest.$ac_objext \
22524 conftest$ac_exeext conftest.$ac_ext
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22527 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22528 if test $gcc_cv_math_func_sinhl = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531 #define HAVE_SINHL 1
22532 _ACEOF
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22540 $as_echo_n "checking for csinhf... " >&6; }
22541 if ${gcc_cv_math_func_csinhf+:} false; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 if test x$gcc_no_link = xyes; then
22545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22550 #ifdef HAVE_COMPLEX_H
22551 #include <complex.h>
22552 #endif
22553 #ifdef HAVE_MATH_H
22554 #include <math.h>
22555 #endif
22557 int (*ptr)() = (int (*)())csinhf;
22560 main ()
22562 return 0;
22565 _ACEOF
22566 if ac_fn_c_try_link "$LINENO"; then :
22567 gcc_cv_math_func_csinhf=yes
22568 else
22569 gcc_cv_math_func_csinhf=no
22571 rm -f core conftest.err conftest.$ac_objext \
22572 conftest$ac_exeext conftest.$ac_ext
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22575 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22576 if test $gcc_cv_math_func_csinhf = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define HAVE_CSINHF 1
22580 _ACEOF
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22588 $as_echo_n "checking for csinh... " >&6; }
22589 if ${gcc_cv_math_func_csinh+:} false; then :
22590 $as_echo_n "(cached) " >&6
22591 else
22592 if test x$gcc_no_link = xyes; then
22593 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22598 #ifdef HAVE_COMPLEX_H
22599 #include <complex.h>
22600 #endif
22601 #ifdef HAVE_MATH_H
22602 #include <math.h>
22603 #endif
22605 int (*ptr)() = (int (*)())csinh;
22608 main ()
22610 return 0;
22613 _ACEOF
22614 if ac_fn_c_try_link "$LINENO"; then :
22615 gcc_cv_math_func_csinh=yes
22616 else
22617 gcc_cv_math_func_csinh=no
22619 rm -f core conftest.err conftest.$ac_objext \
22620 conftest$ac_exeext conftest.$ac_ext
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22623 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22624 if test $gcc_cv_math_func_csinh = yes; then
22626 cat >>confdefs.h <<_ACEOF
22627 #define HAVE_CSINH 1
22628 _ACEOF
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22636 $as_echo_n "checking for csinhl... " >&6; }
22637 if ${gcc_cv_math_func_csinhl+:} false; then :
22638 $as_echo_n "(cached) " >&6
22639 else
22640 if test x$gcc_no_link = xyes; then
22641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22646 #ifdef HAVE_COMPLEX_H
22647 #include <complex.h>
22648 #endif
22649 #ifdef HAVE_MATH_H
22650 #include <math.h>
22651 #endif
22653 int (*ptr)() = (int (*)())csinhl;
22656 main ()
22658 return 0;
22661 _ACEOF
22662 if ac_fn_c_try_link "$LINENO"; then :
22663 gcc_cv_math_func_csinhl=yes
22664 else
22665 gcc_cv_math_func_csinhl=no
22667 rm -f core conftest.err conftest.$ac_objext \
22668 conftest$ac_exeext conftest.$ac_ext
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22671 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22672 if test $gcc_cv_math_func_csinhl = yes; then
22674 cat >>confdefs.h <<_ACEOF
22675 #define HAVE_CSINHL 1
22676 _ACEOF
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22684 $as_echo_n "checking for sqrtf... " >&6; }
22685 if ${gcc_cv_math_func_sqrtf+:} false; then :
22686 $as_echo_n "(cached) " >&6
22687 else
22688 if test x$gcc_no_link = xyes; then
22689 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h. */
22694 #ifdef HAVE_COMPLEX_H
22695 #include <complex.h>
22696 #endif
22697 #ifdef HAVE_MATH_H
22698 #include <math.h>
22699 #endif
22701 int (*ptr)() = (int (*)())sqrtf;
22704 main ()
22706 return 0;
22709 _ACEOF
22710 if ac_fn_c_try_link "$LINENO"; then :
22711 gcc_cv_math_func_sqrtf=yes
22712 else
22713 gcc_cv_math_func_sqrtf=no
22715 rm -f core conftest.err conftest.$ac_objext \
22716 conftest$ac_exeext conftest.$ac_ext
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22719 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22720 if test $gcc_cv_math_func_sqrtf = yes; then
22722 cat >>confdefs.h <<_ACEOF
22723 #define HAVE_SQRTF 1
22724 _ACEOF
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22732 $as_echo_n "checking for sqrt... " >&6; }
22733 if ${gcc_cv_math_func_sqrt+:} false; then :
22734 $as_echo_n "(cached) " >&6
22735 else
22736 if test x$gcc_no_link = xyes; then
22737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h. */
22742 #ifdef HAVE_COMPLEX_H
22743 #include <complex.h>
22744 #endif
22745 #ifdef HAVE_MATH_H
22746 #include <math.h>
22747 #endif
22749 int (*ptr)() = (int (*)())sqrt;
22752 main ()
22754 return 0;
22757 _ACEOF
22758 if ac_fn_c_try_link "$LINENO"; then :
22759 gcc_cv_math_func_sqrt=yes
22760 else
22761 gcc_cv_math_func_sqrt=no
22763 rm -f core conftest.err conftest.$ac_objext \
22764 conftest$ac_exeext conftest.$ac_ext
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22767 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22768 if test $gcc_cv_math_func_sqrt = yes; then
22770 cat >>confdefs.h <<_ACEOF
22771 #define HAVE_SQRT 1
22772 _ACEOF
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22780 $as_echo_n "checking for sqrtl... " >&6; }
22781 if ${gcc_cv_math_func_sqrtl+:} false; then :
22782 $as_echo_n "(cached) " >&6
22783 else
22784 if test x$gcc_no_link = xyes; then
22785 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22790 #ifdef HAVE_COMPLEX_H
22791 #include <complex.h>
22792 #endif
22793 #ifdef HAVE_MATH_H
22794 #include <math.h>
22795 #endif
22797 int (*ptr)() = (int (*)())sqrtl;
22800 main ()
22802 return 0;
22805 _ACEOF
22806 if ac_fn_c_try_link "$LINENO"; then :
22807 gcc_cv_math_func_sqrtl=yes
22808 else
22809 gcc_cv_math_func_sqrtl=no
22811 rm -f core conftest.err conftest.$ac_objext \
22812 conftest$ac_exeext conftest.$ac_ext
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22815 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22816 if test $gcc_cv_math_func_sqrtl = yes; then
22818 cat >>confdefs.h <<_ACEOF
22819 #define HAVE_SQRTL 1
22820 _ACEOF
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22828 $as_echo_n "checking for csqrtf... " >&6; }
22829 if ${gcc_cv_math_func_csqrtf+:} false; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 if test x$gcc_no_link = xyes; then
22833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836 /* end confdefs.h. */
22838 #ifdef HAVE_COMPLEX_H
22839 #include <complex.h>
22840 #endif
22841 #ifdef HAVE_MATH_H
22842 #include <math.h>
22843 #endif
22845 int (*ptr)() = (int (*)())csqrtf;
22848 main ()
22850 return 0;
22853 _ACEOF
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 gcc_cv_math_func_csqrtf=yes
22856 else
22857 gcc_cv_math_func_csqrtf=no
22859 rm -f core conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22863 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22864 if test $gcc_cv_math_func_csqrtf = yes; then
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE_CSQRTF 1
22868 _ACEOF
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22876 $as_echo_n "checking for csqrt... " >&6; }
22877 if ${gcc_cv_math_func_csqrt+:} false; then :
22878 $as_echo_n "(cached) " >&6
22879 else
22880 if test x$gcc_no_link = xyes; then
22881 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h. */
22886 #ifdef HAVE_COMPLEX_H
22887 #include <complex.h>
22888 #endif
22889 #ifdef HAVE_MATH_H
22890 #include <math.h>
22891 #endif
22893 int (*ptr)() = (int (*)())csqrt;
22896 main ()
22898 return 0;
22901 _ACEOF
22902 if ac_fn_c_try_link "$LINENO"; then :
22903 gcc_cv_math_func_csqrt=yes
22904 else
22905 gcc_cv_math_func_csqrt=no
22907 rm -f core conftest.err conftest.$ac_objext \
22908 conftest$ac_exeext conftest.$ac_ext
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22911 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22912 if test $gcc_cv_math_func_csqrt = yes; then
22914 cat >>confdefs.h <<_ACEOF
22915 #define HAVE_CSQRT 1
22916 _ACEOF
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22924 $as_echo_n "checking for csqrtl... " >&6; }
22925 if ${gcc_cv_math_func_csqrtl+:} false; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 if test x$gcc_no_link = xyes; then
22929 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22932 /* end confdefs.h. */
22934 #ifdef HAVE_COMPLEX_H
22935 #include <complex.h>
22936 #endif
22937 #ifdef HAVE_MATH_H
22938 #include <math.h>
22939 #endif
22941 int (*ptr)() = (int (*)())csqrtl;
22944 main ()
22946 return 0;
22949 _ACEOF
22950 if ac_fn_c_try_link "$LINENO"; then :
22951 gcc_cv_math_func_csqrtl=yes
22952 else
22953 gcc_cv_math_func_csqrtl=no
22955 rm -f core conftest.err conftest.$ac_objext \
22956 conftest$ac_exeext conftest.$ac_ext
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22959 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22960 if test $gcc_cv_math_func_csqrtl = yes; then
22962 cat >>confdefs.h <<_ACEOF
22963 #define HAVE_CSQRTL 1
22964 _ACEOF
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22972 $as_echo_n "checking for tanf... " >&6; }
22973 if ${gcc_cv_math_func_tanf+:} false; then :
22974 $as_echo_n "(cached) " >&6
22975 else
22976 if test x$gcc_no_link = xyes; then
22977 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h. */
22982 #ifdef HAVE_COMPLEX_H
22983 #include <complex.h>
22984 #endif
22985 #ifdef HAVE_MATH_H
22986 #include <math.h>
22987 #endif
22989 int (*ptr)() = (int (*)())tanf;
22992 main ()
22994 return 0;
22997 _ACEOF
22998 if ac_fn_c_try_link "$LINENO"; then :
22999 gcc_cv_math_func_tanf=yes
23000 else
23001 gcc_cv_math_func_tanf=no
23003 rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23007 $as_echo "$gcc_cv_math_func_tanf" >&6; }
23008 if test $gcc_cv_math_func_tanf = yes; then
23010 cat >>confdefs.h <<_ACEOF
23011 #define HAVE_TANF 1
23012 _ACEOF
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23020 $as_echo_n "checking for tan... " >&6; }
23021 if ${gcc_cv_math_func_tan+:} false; then :
23022 $as_echo_n "(cached) " >&6
23023 else
23024 if test x$gcc_no_link = xyes; then
23025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 #ifdef HAVE_COMPLEX_H
23031 #include <complex.h>
23032 #endif
23033 #ifdef HAVE_MATH_H
23034 #include <math.h>
23035 #endif
23037 int (*ptr)() = (int (*)())tan;
23040 main ()
23042 return 0;
23045 _ACEOF
23046 if ac_fn_c_try_link "$LINENO"; then :
23047 gcc_cv_math_func_tan=yes
23048 else
23049 gcc_cv_math_func_tan=no
23051 rm -f core conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23055 $as_echo "$gcc_cv_math_func_tan" >&6; }
23056 if test $gcc_cv_math_func_tan = yes; then
23058 cat >>confdefs.h <<_ACEOF
23059 #define HAVE_TAN 1
23060 _ACEOF
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23068 $as_echo_n "checking for tanl... " >&6; }
23069 if ${gcc_cv_math_func_tanl+:} false; then :
23070 $as_echo_n "(cached) " >&6
23071 else
23072 if test x$gcc_no_link = xyes; then
23073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23078 #ifdef HAVE_COMPLEX_H
23079 #include <complex.h>
23080 #endif
23081 #ifdef HAVE_MATH_H
23082 #include <math.h>
23083 #endif
23085 int (*ptr)() = (int (*)())tanl;
23088 main ()
23090 return 0;
23093 _ACEOF
23094 if ac_fn_c_try_link "$LINENO"; then :
23095 gcc_cv_math_func_tanl=yes
23096 else
23097 gcc_cv_math_func_tanl=no
23099 rm -f core conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23103 $as_echo "$gcc_cv_math_func_tanl" >&6; }
23104 if test $gcc_cv_math_func_tanl = yes; then
23106 cat >>confdefs.h <<_ACEOF
23107 #define HAVE_TANL 1
23108 _ACEOF
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23116 $as_echo_n "checking for ctanf... " >&6; }
23117 if ${gcc_cv_math_func_ctanf+:} false; then :
23118 $as_echo_n "(cached) " >&6
23119 else
23120 if test x$gcc_no_link = xyes; then
23121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h. */
23126 #ifdef HAVE_COMPLEX_H
23127 #include <complex.h>
23128 #endif
23129 #ifdef HAVE_MATH_H
23130 #include <math.h>
23131 #endif
23133 int (*ptr)() = (int (*)())ctanf;
23136 main ()
23138 return 0;
23141 _ACEOF
23142 if ac_fn_c_try_link "$LINENO"; then :
23143 gcc_cv_math_func_ctanf=yes
23144 else
23145 gcc_cv_math_func_ctanf=no
23147 rm -f core conftest.err conftest.$ac_objext \
23148 conftest$ac_exeext conftest.$ac_ext
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23151 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
23152 if test $gcc_cv_math_func_ctanf = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define HAVE_CTANF 1
23156 _ACEOF
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23164 $as_echo_n "checking for ctan... " >&6; }
23165 if ${gcc_cv_math_func_ctan+:} false; then :
23166 $as_echo_n "(cached) " >&6
23167 else
23168 if test x$gcc_no_link = xyes; then
23169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23174 #ifdef HAVE_COMPLEX_H
23175 #include <complex.h>
23176 #endif
23177 #ifdef HAVE_MATH_H
23178 #include <math.h>
23179 #endif
23181 int (*ptr)() = (int (*)())ctan;
23184 main ()
23186 return 0;
23189 _ACEOF
23190 if ac_fn_c_try_link "$LINENO"; then :
23191 gcc_cv_math_func_ctan=yes
23192 else
23193 gcc_cv_math_func_ctan=no
23195 rm -f core conftest.err conftest.$ac_objext \
23196 conftest$ac_exeext conftest.$ac_ext
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23199 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23200 if test $gcc_cv_math_func_ctan = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define HAVE_CTAN 1
23204 _ACEOF
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23212 $as_echo_n "checking for ctanl... " >&6; }
23213 if ${gcc_cv_math_func_ctanl+:} false; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 if test x$gcc_no_link = xyes; then
23217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23220 /* end confdefs.h. */
23222 #ifdef HAVE_COMPLEX_H
23223 #include <complex.h>
23224 #endif
23225 #ifdef HAVE_MATH_H
23226 #include <math.h>
23227 #endif
23229 int (*ptr)() = (int (*)())ctanl;
23232 main ()
23234 return 0;
23237 _ACEOF
23238 if ac_fn_c_try_link "$LINENO"; then :
23239 gcc_cv_math_func_ctanl=yes
23240 else
23241 gcc_cv_math_func_ctanl=no
23243 rm -f core conftest.err conftest.$ac_objext \
23244 conftest$ac_exeext conftest.$ac_ext
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23247 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23248 if test $gcc_cv_math_func_ctanl = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_CTANL 1
23252 _ACEOF
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23260 $as_echo_n "checking for tanhf... " >&6; }
23261 if ${gcc_cv_math_func_tanhf+:} false; then :
23262 $as_echo_n "(cached) " >&6
23263 else
23264 if test x$gcc_no_link = xyes; then
23265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23268 /* end confdefs.h. */
23270 #ifdef HAVE_COMPLEX_H
23271 #include <complex.h>
23272 #endif
23273 #ifdef HAVE_MATH_H
23274 #include <math.h>
23275 #endif
23277 int (*ptr)() = (int (*)())tanhf;
23280 main ()
23282 return 0;
23285 _ACEOF
23286 if ac_fn_c_try_link "$LINENO"; then :
23287 gcc_cv_math_func_tanhf=yes
23288 else
23289 gcc_cv_math_func_tanhf=no
23291 rm -f core conftest.err conftest.$ac_objext \
23292 conftest$ac_exeext conftest.$ac_ext
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23295 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23296 if test $gcc_cv_math_func_tanhf = yes; then
23298 cat >>confdefs.h <<_ACEOF
23299 #define HAVE_TANHF 1
23300 _ACEOF
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23308 $as_echo_n "checking for tanh... " >&6; }
23309 if ${gcc_cv_math_func_tanh+:} false; then :
23310 $as_echo_n "(cached) " >&6
23311 else
23312 if test x$gcc_no_link = xyes; then
23313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316 /* end confdefs.h. */
23318 #ifdef HAVE_COMPLEX_H
23319 #include <complex.h>
23320 #endif
23321 #ifdef HAVE_MATH_H
23322 #include <math.h>
23323 #endif
23325 int (*ptr)() = (int (*)())tanh;
23328 main ()
23330 return 0;
23333 _ACEOF
23334 if ac_fn_c_try_link "$LINENO"; then :
23335 gcc_cv_math_func_tanh=yes
23336 else
23337 gcc_cv_math_func_tanh=no
23339 rm -f core conftest.err conftest.$ac_objext \
23340 conftest$ac_exeext conftest.$ac_ext
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23343 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23344 if test $gcc_cv_math_func_tanh = yes; then
23346 cat >>confdefs.h <<_ACEOF
23347 #define HAVE_TANH 1
23348 _ACEOF
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23356 $as_echo_n "checking for tanhl... " >&6; }
23357 if ${gcc_cv_math_func_tanhl+:} false; then :
23358 $as_echo_n "(cached) " >&6
23359 else
23360 if test x$gcc_no_link = xyes; then
23361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23364 /* end confdefs.h. */
23366 #ifdef HAVE_COMPLEX_H
23367 #include <complex.h>
23368 #endif
23369 #ifdef HAVE_MATH_H
23370 #include <math.h>
23371 #endif
23373 int (*ptr)() = (int (*)())tanhl;
23376 main ()
23378 return 0;
23381 _ACEOF
23382 if ac_fn_c_try_link "$LINENO"; then :
23383 gcc_cv_math_func_tanhl=yes
23384 else
23385 gcc_cv_math_func_tanhl=no
23387 rm -f core conftest.err conftest.$ac_objext \
23388 conftest$ac_exeext conftest.$ac_ext
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23391 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23392 if test $gcc_cv_math_func_tanhl = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define HAVE_TANHL 1
23396 _ACEOF
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23404 $as_echo_n "checking for ctanhf... " >&6; }
23405 if ${gcc_cv_math_func_ctanhf+:} false; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 if test x$gcc_no_link = xyes; then
23409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23412 /* end confdefs.h. */
23414 #ifdef HAVE_COMPLEX_H
23415 #include <complex.h>
23416 #endif
23417 #ifdef HAVE_MATH_H
23418 #include <math.h>
23419 #endif
23421 int (*ptr)() = (int (*)())ctanhf;
23424 main ()
23426 return 0;
23429 _ACEOF
23430 if ac_fn_c_try_link "$LINENO"; then :
23431 gcc_cv_math_func_ctanhf=yes
23432 else
23433 gcc_cv_math_func_ctanhf=no
23435 rm -f core conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23439 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23440 if test $gcc_cv_math_func_ctanhf = yes; then
23442 cat >>confdefs.h <<_ACEOF
23443 #define HAVE_CTANHF 1
23444 _ACEOF
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23452 $as_echo_n "checking for ctanh... " >&6; }
23453 if ${gcc_cv_math_func_ctanh+:} false; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 if test x$gcc_no_link = xyes; then
23457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23460 /* end confdefs.h. */
23462 #ifdef HAVE_COMPLEX_H
23463 #include <complex.h>
23464 #endif
23465 #ifdef HAVE_MATH_H
23466 #include <math.h>
23467 #endif
23469 int (*ptr)() = (int (*)())ctanh;
23472 main ()
23474 return 0;
23477 _ACEOF
23478 if ac_fn_c_try_link "$LINENO"; then :
23479 gcc_cv_math_func_ctanh=yes
23480 else
23481 gcc_cv_math_func_ctanh=no
23483 rm -f core conftest.err conftest.$ac_objext \
23484 conftest$ac_exeext conftest.$ac_ext
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23487 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23488 if test $gcc_cv_math_func_ctanh = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491 #define HAVE_CTANH 1
23492 _ACEOF
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23500 $as_echo_n "checking for ctanhl... " >&6; }
23501 if ${gcc_cv_math_func_ctanhl+:} false; then :
23502 $as_echo_n "(cached) " >&6
23503 else
23504 if test x$gcc_no_link = xyes; then
23505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h. */
23510 #ifdef HAVE_COMPLEX_H
23511 #include <complex.h>
23512 #endif
23513 #ifdef HAVE_MATH_H
23514 #include <math.h>
23515 #endif
23517 int (*ptr)() = (int (*)())ctanhl;
23520 main ()
23522 return 0;
23525 _ACEOF
23526 if ac_fn_c_try_link "$LINENO"; then :
23527 gcc_cv_math_func_ctanhl=yes
23528 else
23529 gcc_cv_math_func_ctanhl=no
23531 rm -f core conftest.err conftest.$ac_objext \
23532 conftest$ac_exeext conftest.$ac_ext
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23535 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23536 if test $gcc_cv_math_func_ctanhl = yes; then
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_CTANHL 1
23540 _ACEOF
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23548 $as_echo_n "checking for truncf... " >&6; }
23549 if ${gcc_cv_math_func_truncf+:} false; then :
23550 $as_echo_n "(cached) " >&6
23551 else
23552 if test x$gcc_no_link = xyes; then
23553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h. */
23558 #ifdef HAVE_COMPLEX_H
23559 #include <complex.h>
23560 #endif
23561 #ifdef HAVE_MATH_H
23562 #include <math.h>
23563 #endif
23565 int (*ptr)() = (int (*)())truncf;
23568 main ()
23570 return 0;
23573 _ACEOF
23574 if ac_fn_c_try_link "$LINENO"; then :
23575 gcc_cv_math_func_truncf=yes
23576 else
23577 gcc_cv_math_func_truncf=no
23579 rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23583 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23584 if test $gcc_cv_math_func_truncf = yes; then
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_TRUNCF 1
23588 _ACEOF
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23596 $as_echo_n "checking for trunc... " >&6; }
23597 if ${gcc_cv_math_func_trunc+:} false; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 if test x$gcc_no_link = xyes; then
23601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604 /* end confdefs.h. */
23606 #ifdef HAVE_COMPLEX_H
23607 #include <complex.h>
23608 #endif
23609 #ifdef HAVE_MATH_H
23610 #include <math.h>
23611 #endif
23613 int (*ptr)() = (int (*)())trunc;
23616 main ()
23618 return 0;
23621 _ACEOF
23622 if ac_fn_c_try_link "$LINENO"; then :
23623 gcc_cv_math_func_trunc=yes
23624 else
23625 gcc_cv_math_func_trunc=no
23627 rm -f core conftest.err conftest.$ac_objext \
23628 conftest$ac_exeext conftest.$ac_ext
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23631 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23632 if test $gcc_cv_math_func_trunc = yes; then
23634 cat >>confdefs.h <<_ACEOF
23635 #define HAVE_TRUNC 1
23636 _ACEOF
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23644 $as_echo_n "checking for truncl... " >&6; }
23645 if ${gcc_cv_math_func_truncl+:} false; then :
23646 $as_echo_n "(cached) " >&6
23647 else
23648 if test x$gcc_no_link = xyes; then
23649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23652 /* end confdefs.h. */
23654 #ifdef HAVE_COMPLEX_H
23655 #include <complex.h>
23656 #endif
23657 #ifdef HAVE_MATH_H
23658 #include <math.h>
23659 #endif
23661 int (*ptr)() = (int (*)())truncl;
23664 main ()
23666 return 0;
23669 _ACEOF
23670 if ac_fn_c_try_link "$LINENO"; then :
23671 gcc_cv_math_func_truncl=yes
23672 else
23673 gcc_cv_math_func_truncl=no
23675 rm -f core conftest.err conftest.$ac_objext \
23676 conftest$ac_exeext conftest.$ac_ext
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23679 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23680 if test $gcc_cv_math_func_truncl = yes; then
23682 cat >>confdefs.h <<_ACEOF
23683 #define HAVE_TRUNCL 1
23684 _ACEOF
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23692 $as_echo_n "checking for erff... " >&6; }
23693 if ${gcc_cv_math_func_erff+:} false; then :
23694 $as_echo_n "(cached) " >&6
23695 else
23696 if test x$gcc_no_link = xyes; then
23697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23700 /* end confdefs.h. */
23702 #ifdef HAVE_COMPLEX_H
23703 #include <complex.h>
23704 #endif
23705 #ifdef HAVE_MATH_H
23706 #include <math.h>
23707 #endif
23709 int (*ptr)() = (int (*)())erff;
23712 main ()
23714 return 0;
23717 _ACEOF
23718 if ac_fn_c_try_link "$LINENO"; then :
23719 gcc_cv_math_func_erff=yes
23720 else
23721 gcc_cv_math_func_erff=no
23723 rm -f core conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23727 $as_echo "$gcc_cv_math_func_erff" >&6; }
23728 if test $gcc_cv_math_func_erff = yes; then
23730 cat >>confdefs.h <<_ACEOF
23731 #define HAVE_ERFF 1
23732 _ACEOF
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23740 $as_echo_n "checking for erf... " >&6; }
23741 if ${gcc_cv_math_func_erf+:} false; then :
23742 $as_echo_n "(cached) " >&6
23743 else
23744 if test x$gcc_no_link = xyes; then
23745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h. */
23750 #ifdef HAVE_COMPLEX_H
23751 #include <complex.h>
23752 #endif
23753 #ifdef HAVE_MATH_H
23754 #include <math.h>
23755 #endif
23757 int (*ptr)() = (int (*)())erf;
23760 main ()
23762 return 0;
23765 _ACEOF
23766 if ac_fn_c_try_link "$LINENO"; then :
23767 gcc_cv_math_func_erf=yes
23768 else
23769 gcc_cv_math_func_erf=no
23771 rm -f core conftest.err conftest.$ac_objext \
23772 conftest$ac_exeext conftest.$ac_ext
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23775 $as_echo "$gcc_cv_math_func_erf" >&6; }
23776 if test $gcc_cv_math_func_erf = yes; then
23778 cat >>confdefs.h <<_ACEOF
23779 #define HAVE_ERF 1
23780 _ACEOF
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23788 $as_echo_n "checking for erfcf... " >&6; }
23789 if ${gcc_cv_math_func_erfcf+:} false; then :
23790 $as_echo_n "(cached) " >&6
23791 else
23792 if test x$gcc_no_link = xyes; then
23793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h. */
23798 #ifdef HAVE_COMPLEX_H
23799 #include <complex.h>
23800 #endif
23801 #ifdef HAVE_MATH_H
23802 #include <math.h>
23803 #endif
23805 int (*ptr)() = (int (*)())erfcf;
23808 main ()
23810 return 0;
23813 _ACEOF
23814 if ac_fn_c_try_link "$LINENO"; then :
23815 gcc_cv_math_func_erfcf=yes
23816 else
23817 gcc_cv_math_func_erfcf=no
23819 rm -f core conftest.err conftest.$ac_objext \
23820 conftest$ac_exeext conftest.$ac_ext
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23823 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23824 if test $gcc_cv_math_func_erfcf = yes; then
23826 cat >>confdefs.h <<_ACEOF
23827 #define HAVE_ERFCF 1
23828 _ACEOF
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23836 $as_echo_n "checking for erfc... " >&6; }
23837 if ${gcc_cv_math_func_erfc+:} false; then :
23838 $as_echo_n "(cached) " >&6
23839 else
23840 if test x$gcc_no_link = xyes; then
23841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23844 /* end confdefs.h. */
23846 #ifdef HAVE_COMPLEX_H
23847 #include <complex.h>
23848 #endif
23849 #ifdef HAVE_MATH_H
23850 #include <math.h>
23851 #endif
23853 int (*ptr)() = (int (*)())erfc;
23856 main ()
23858 return 0;
23861 _ACEOF
23862 if ac_fn_c_try_link "$LINENO"; then :
23863 gcc_cv_math_func_erfc=yes
23864 else
23865 gcc_cv_math_func_erfc=no
23867 rm -f core conftest.err conftest.$ac_objext \
23868 conftest$ac_exeext conftest.$ac_ext
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23871 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23872 if test $gcc_cv_math_func_erfc = yes; then
23874 cat >>confdefs.h <<_ACEOF
23875 #define HAVE_ERFC 1
23876 _ACEOF
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23884 $as_echo_n "checking for erfcl... " >&6; }
23885 if ${gcc_cv_math_func_erfcl+:} false; then :
23886 $as_echo_n "(cached) " >&6
23887 else
23888 if test x$gcc_no_link = xyes; then
23889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h. */
23894 #ifdef HAVE_COMPLEX_H
23895 #include <complex.h>
23896 #endif
23897 #ifdef HAVE_MATH_H
23898 #include <math.h>
23899 #endif
23901 int (*ptr)() = (int (*)())erfcl;
23904 main ()
23906 return 0;
23909 _ACEOF
23910 if ac_fn_c_try_link "$LINENO"; then :
23911 gcc_cv_math_func_erfcl=yes
23912 else
23913 gcc_cv_math_func_erfcl=no
23915 rm -f core conftest.err conftest.$ac_objext \
23916 conftest$ac_exeext conftest.$ac_ext
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23919 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23920 if test $gcc_cv_math_func_erfcl = yes; then
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_ERFCL 1
23924 _ACEOF
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23932 $as_echo_n "checking for j0f... " >&6; }
23933 if ${gcc_cv_math_func_j0f+:} false; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23936 if test x$gcc_no_link = xyes; then
23937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23940 /* end confdefs.h. */
23942 #ifdef HAVE_COMPLEX_H
23943 #include <complex.h>
23944 #endif
23945 #ifdef HAVE_MATH_H
23946 #include <math.h>
23947 #endif
23949 int (*ptr)() = (int (*)())j0f;
23952 main ()
23954 return 0;
23957 _ACEOF
23958 if ac_fn_c_try_link "$LINENO"; then :
23959 gcc_cv_math_func_j0f=yes
23960 else
23961 gcc_cv_math_func_j0f=no
23963 rm -f core conftest.err conftest.$ac_objext \
23964 conftest$ac_exeext conftest.$ac_ext
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23967 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23968 if test $gcc_cv_math_func_j0f = yes; then
23970 cat >>confdefs.h <<_ACEOF
23971 #define HAVE_J0F 1
23972 _ACEOF
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23980 $as_echo_n "checking for j0... " >&6; }
23981 if ${gcc_cv_math_func_j0+:} false; then :
23982 $as_echo_n "(cached) " >&6
23983 else
23984 if test x$gcc_no_link = xyes; then
23985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23990 #ifdef HAVE_COMPLEX_H
23991 #include <complex.h>
23992 #endif
23993 #ifdef HAVE_MATH_H
23994 #include <math.h>
23995 #endif
23997 int (*ptr)() = (int (*)())j0;
24000 main ()
24002 return 0;
24005 _ACEOF
24006 if ac_fn_c_try_link "$LINENO"; then :
24007 gcc_cv_math_func_j0=yes
24008 else
24009 gcc_cv_math_func_j0=no
24011 rm -f core conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24015 $as_echo "$gcc_cv_math_func_j0" >&6; }
24016 if test $gcc_cv_math_func_j0 = yes; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define HAVE_J0 1
24020 _ACEOF
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24028 $as_echo_n "checking for j1f... " >&6; }
24029 if ${gcc_cv_math_func_j1f+:} false; then :
24030 $as_echo_n "(cached) " >&6
24031 else
24032 if test x$gcc_no_link = xyes; then
24033 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24036 /* end confdefs.h. */
24038 #ifdef HAVE_COMPLEX_H
24039 #include <complex.h>
24040 #endif
24041 #ifdef HAVE_MATH_H
24042 #include <math.h>
24043 #endif
24045 int (*ptr)() = (int (*)())j1f;
24048 main ()
24050 return 0;
24053 _ACEOF
24054 if ac_fn_c_try_link "$LINENO"; then :
24055 gcc_cv_math_func_j1f=yes
24056 else
24057 gcc_cv_math_func_j1f=no
24059 rm -f core conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24063 $as_echo "$gcc_cv_math_func_j1f" >&6; }
24064 if test $gcc_cv_math_func_j1f = yes; then
24066 cat >>confdefs.h <<_ACEOF
24067 #define HAVE_J1F 1
24068 _ACEOF
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24076 $as_echo_n "checking for j1... " >&6; }
24077 if ${gcc_cv_math_func_j1+:} false; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 if test x$gcc_no_link = xyes; then
24081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084 /* end confdefs.h. */
24086 #ifdef HAVE_COMPLEX_H
24087 #include <complex.h>
24088 #endif
24089 #ifdef HAVE_MATH_H
24090 #include <math.h>
24091 #endif
24093 int (*ptr)() = (int (*)())j1;
24096 main ()
24098 return 0;
24101 _ACEOF
24102 if ac_fn_c_try_link "$LINENO"; then :
24103 gcc_cv_math_func_j1=yes
24104 else
24105 gcc_cv_math_func_j1=no
24107 rm -f core conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24111 $as_echo "$gcc_cv_math_func_j1" >&6; }
24112 if test $gcc_cv_math_func_j1 = yes; then
24114 cat >>confdefs.h <<_ACEOF
24115 #define HAVE_J1 1
24116 _ACEOF
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24124 $as_echo_n "checking for jnf... " >&6; }
24125 if ${gcc_cv_math_func_jnf+:} false; then :
24126 $as_echo_n "(cached) " >&6
24127 else
24128 if test x$gcc_no_link = xyes; then
24129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24132 /* end confdefs.h. */
24134 #ifdef HAVE_COMPLEX_H
24135 #include <complex.h>
24136 #endif
24137 #ifdef HAVE_MATH_H
24138 #include <math.h>
24139 #endif
24141 int (*ptr)() = (int (*)())jnf;
24144 main ()
24146 return 0;
24149 _ACEOF
24150 if ac_fn_c_try_link "$LINENO"; then :
24151 gcc_cv_math_func_jnf=yes
24152 else
24153 gcc_cv_math_func_jnf=no
24155 rm -f core conftest.err conftest.$ac_objext \
24156 conftest$ac_exeext conftest.$ac_ext
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24159 $as_echo "$gcc_cv_math_func_jnf" >&6; }
24160 if test $gcc_cv_math_func_jnf = yes; then
24162 cat >>confdefs.h <<_ACEOF
24163 #define HAVE_JNF 1
24164 _ACEOF
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24172 $as_echo_n "checking for jn... " >&6; }
24173 if ${gcc_cv_math_func_jn+:} false; then :
24174 $as_echo_n "(cached) " >&6
24175 else
24176 if test x$gcc_no_link = xyes; then
24177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24180 /* end confdefs.h. */
24182 #ifdef HAVE_COMPLEX_H
24183 #include <complex.h>
24184 #endif
24185 #ifdef HAVE_MATH_H
24186 #include <math.h>
24187 #endif
24189 int (*ptr)() = (int (*)())jn;
24192 main ()
24194 return 0;
24197 _ACEOF
24198 if ac_fn_c_try_link "$LINENO"; then :
24199 gcc_cv_math_func_jn=yes
24200 else
24201 gcc_cv_math_func_jn=no
24203 rm -f core conftest.err conftest.$ac_objext \
24204 conftest$ac_exeext conftest.$ac_ext
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24207 $as_echo "$gcc_cv_math_func_jn" >&6; }
24208 if test $gcc_cv_math_func_jn = yes; then
24210 cat >>confdefs.h <<_ACEOF
24211 #define HAVE_JN 1
24212 _ACEOF
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24220 $as_echo_n "checking for jnl... " >&6; }
24221 if ${gcc_cv_math_func_jnl+:} false; then :
24222 $as_echo_n "(cached) " >&6
24223 else
24224 if test x$gcc_no_link = xyes; then
24225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24228 /* end confdefs.h. */
24230 #ifdef HAVE_COMPLEX_H
24231 #include <complex.h>
24232 #endif
24233 #ifdef HAVE_MATH_H
24234 #include <math.h>
24235 #endif
24237 int (*ptr)() = (int (*)())jnl;
24240 main ()
24242 return 0;
24245 _ACEOF
24246 if ac_fn_c_try_link "$LINENO"; then :
24247 gcc_cv_math_func_jnl=yes
24248 else
24249 gcc_cv_math_func_jnl=no
24251 rm -f core conftest.err conftest.$ac_objext \
24252 conftest$ac_exeext conftest.$ac_ext
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24255 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24256 if test $gcc_cv_math_func_jnl = yes; then
24258 cat >>confdefs.h <<_ACEOF
24259 #define HAVE_JNL 1
24260 _ACEOF
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24268 $as_echo_n "checking for y0f... " >&6; }
24269 if ${gcc_cv_math_func_y0f+:} false; then :
24270 $as_echo_n "(cached) " >&6
24271 else
24272 if test x$gcc_no_link = xyes; then
24273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24276 /* end confdefs.h. */
24278 #ifdef HAVE_COMPLEX_H
24279 #include <complex.h>
24280 #endif
24281 #ifdef HAVE_MATH_H
24282 #include <math.h>
24283 #endif
24285 int (*ptr)() = (int (*)())y0f;
24288 main ()
24290 return 0;
24293 _ACEOF
24294 if ac_fn_c_try_link "$LINENO"; then :
24295 gcc_cv_math_func_y0f=yes
24296 else
24297 gcc_cv_math_func_y0f=no
24299 rm -f core conftest.err conftest.$ac_objext \
24300 conftest$ac_exeext conftest.$ac_ext
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24303 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24304 if test $gcc_cv_math_func_y0f = yes; then
24306 cat >>confdefs.h <<_ACEOF
24307 #define HAVE_Y0F 1
24308 _ACEOF
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24316 $as_echo_n "checking for y0... " >&6; }
24317 if ${gcc_cv_math_func_y0+:} false; then :
24318 $as_echo_n "(cached) " >&6
24319 else
24320 if test x$gcc_no_link = xyes; then
24321 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24324 /* end confdefs.h. */
24326 #ifdef HAVE_COMPLEX_H
24327 #include <complex.h>
24328 #endif
24329 #ifdef HAVE_MATH_H
24330 #include <math.h>
24331 #endif
24333 int (*ptr)() = (int (*)())y0;
24336 main ()
24338 return 0;
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 gcc_cv_math_func_y0=yes
24344 else
24345 gcc_cv_math_func_y0=no
24347 rm -f core conftest.err conftest.$ac_objext \
24348 conftest$ac_exeext conftest.$ac_ext
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24351 $as_echo "$gcc_cv_math_func_y0" >&6; }
24352 if test $gcc_cv_math_func_y0 = yes; then
24354 cat >>confdefs.h <<_ACEOF
24355 #define HAVE_Y0 1
24356 _ACEOF
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24364 $as_echo_n "checking for y1f... " >&6; }
24365 if ${gcc_cv_math_func_y1f+:} false; then :
24366 $as_echo_n "(cached) " >&6
24367 else
24368 if test x$gcc_no_link = xyes; then
24369 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24372 /* end confdefs.h. */
24374 #ifdef HAVE_COMPLEX_H
24375 #include <complex.h>
24376 #endif
24377 #ifdef HAVE_MATH_H
24378 #include <math.h>
24379 #endif
24381 int (*ptr)() = (int (*)())y1f;
24384 main ()
24386 return 0;
24389 _ACEOF
24390 if ac_fn_c_try_link "$LINENO"; then :
24391 gcc_cv_math_func_y1f=yes
24392 else
24393 gcc_cv_math_func_y1f=no
24395 rm -f core conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24399 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24400 if test $gcc_cv_math_func_y1f = yes; then
24402 cat >>confdefs.h <<_ACEOF
24403 #define HAVE_Y1F 1
24404 _ACEOF
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24412 $as_echo_n "checking for y1... " >&6; }
24413 if ${gcc_cv_math_func_y1+:} false; then :
24414 $as_echo_n "(cached) " >&6
24415 else
24416 if test x$gcc_no_link = xyes; then
24417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420 /* end confdefs.h. */
24422 #ifdef HAVE_COMPLEX_H
24423 #include <complex.h>
24424 #endif
24425 #ifdef HAVE_MATH_H
24426 #include <math.h>
24427 #endif
24429 int (*ptr)() = (int (*)())y1;
24432 main ()
24434 return 0;
24437 _ACEOF
24438 if ac_fn_c_try_link "$LINENO"; then :
24439 gcc_cv_math_func_y1=yes
24440 else
24441 gcc_cv_math_func_y1=no
24443 rm -f core conftest.err conftest.$ac_objext \
24444 conftest$ac_exeext conftest.$ac_ext
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24447 $as_echo "$gcc_cv_math_func_y1" >&6; }
24448 if test $gcc_cv_math_func_y1 = yes; then
24450 cat >>confdefs.h <<_ACEOF
24451 #define HAVE_Y1 1
24452 _ACEOF
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24460 $as_echo_n "checking for ynf... " >&6; }
24461 if ${gcc_cv_math_func_ynf+:} false; then :
24462 $as_echo_n "(cached) " >&6
24463 else
24464 if test x$gcc_no_link = xyes; then
24465 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24468 /* end confdefs.h. */
24470 #ifdef HAVE_COMPLEX_H
24471 #include <complex.h>
24472 #endif
24473 #ifdef HAVE_MATH_H
24474 #include <math.h>
24475 #endif
24477 int (*ptr)() = (int (*)())ynf;
24480 main ()
24482 return 0;
24485 _ACEOF
24486 if ac_fn_c_try_link "$LINENO"; then :
24487 gcc_cv_math_func_ynf=yes
24488 else
24489 gcc_cv_math_func_ynf=no
24491 rm -f core conftest.err conftest.$ac_objext \
24492 conftest$ac_exeext conftest.$ac_ext
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24495 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24496 if test $gcc_cv_math_func_ynf = yes; then
24498 cat >>confdefs.h <<_ACEOF
24499 #define HAVE_YNF 1
24500 _ACEOF
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24508 $as_echo_n "checking for yn... " >&6; }
24509 if ${gcc_cv_math_func_yn+:} false; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24512 if test x$gcc_no_link = xyes; then
24513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24516 /* end confdefs.h. */
24518 #ifdef HAVE_COMPLEX_H
24519 #include <complex.h>
24520 #endif
24521 #ifdef HAVE_MATH_H
24522 #include <math.h>
24523 #endif
24525 int (*ptr)() = (int (*)())yn;
24528 main ()
24530 return 0;
24533 _ACEOF
24534 if ac_fn_c_try_link "$LINENO"; then :
24535 gcc_cv_math_func_yn=yes
24536 else
24537 gcc_cv_math_func_yn=no
24539 rm -f core conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24543 $as_echo "$gcc_cv_math_func_yn" >&6; }
24544 if test $gcc_cv_math_func_yn = yes; then
24546 cat >>confdefs.h <<_ACEOF
24547 #define HAVE_YN 1
24548 _ACEOF
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24556 $as_echo_n "checking for ynl... " >&6; }
24557 if ${gcc_cv_math_func_ynl+:} false; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 if test x$gcc_no_link = xyes; then
24561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564 /* end confdefs.h. */
24566 #ifdef HAVE_COMPLEX_H
24567 #include <complex.h>
24568 #endif
24569 #ifdef HAVE_MATH_H
24570 #include <math.h>
24571 #endif
24573 int (*ptr)() = (int (*)())ynl;
24576 main ()
24578 return 0;
24581 _ACEOF
24582 if ac_fn_c_try_link "$LINENO"; then :
24583 gcc_cv_math_func_ynl=yes
24584 else
24585 gcc_cv_math_func_ynl=no
24587 rm -f core conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24591 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24592 if test $gcc_cv_math_func_ynl = yes; then
24594 cat >>confdefs.h <<_ACEOF
24595 #define HAVE_YNL 1
24596 _ACEOF
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24604 $as_echo_n "checking for tgamma... " >&6; }
24605 if ${gcc_cv_math_func_tgamma+:} false; then :
24606 $as_echo_n "(cached) " >&6
24607 else
24608 if test x$gcc_no_link = xyes; then
24609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24612 /* end confdefs.h. */
24614 #ifdef HAVE_COMPLEX_H
24615 #include <complex.h>
24616 #endif
24617 #ifdef HAVE_MATH_H
24618 #include <math.h>
24619 #endif
24621 int (*ptr)() = (int (*)())tgamma;
24624 main ()
24626 return 0;
24629 _ACEOF
24630 if ac_fn_c_try_link "$LINENO"; then :
24631 gcc_cv_math_func_tgamma=yes
24632 else
24633 gcc_cv_math_func_tgamma=no
24635 rm -f core conftest.err conftest.$ac_objext \
24636 conftest$ac_exeext conftest.$ac_ext
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24639 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24640 if test $gcc_cv_math_func_tgamma = yes; then
24642 cat >>confdefs.h <<_ACEOF
24643 #define HAVE_TGAMMA 1
24644 _ACEOF
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24652 $as_echo_n "checking for tgammaf... " >&6; }
24653 if ${gcc_cv_math_func_tgammaf+:} false; then :
24654 $as_echo_n "(cached) " >&6
24655 else
24656 if test x$gcc_no_link = xyes; then
24657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24660 /* end confdefs.h. */
24662 #ifdef HAVE_COMPLEX_H
24663 #include <complex.h>
24664 #endif
24665 #ifdef HAVE_MATH_H
24666 #include <math.h>
24667 #endif
24669 int (*ptr)() = (int (*)())tgammaf;
24672 main ()
24674 return 0;
24677 _ACEOF
24678 if ac_fn_c_try_link "$LINENO"; then :
24679 gcc_cv_math_func_tgammaf=yes
24680 else
24681 gcc_cv_math_func_tgammaf=no
24683 rm -f core conftest.err conftest.$ac_objext \
24684 conftest$ac_exeext conftest.$ac_ext
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24687 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24688 if test $gcc_cv_math_func_tgammaf = yes; then
24690 cat >>confdefs.h <<_ACEOF
24691 #define HAVE_TGAMMAF 1
24692 _ACEOF
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24700 $as_echo_n "checking for lgamma... " >&6; }
24701 if ${gcc_cv_math_func_lgamma+:} false; then :
24702 $as_echo_n "(cached) " >&6
24703 else
24704 if test x$gcc_no_link = xyes; then
24705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708 /* end confdefs.h. */
24710 #ifdef HAVE_COMPLEX_H
24711 #include <complex.h>
24712 #endif
24713 #ifdef HAVE_MATH_H
24714 #include <math.h>
24715 #endif
24717 int (*ptr)() = (int (*)())lgamma;
24720 main ()
24722 return 0;
24725 _ACEOF
24726 if ac_fn_c_try_link "$LINENO"; then :
24727 gcc_cv_math_func_lgamma=yes
24728 else
24729 gcc_cv_math_func_lgamma=no
24731 rm -f core conftest.err conftest.$ac_objext \
24732 conftest$ac_exeext conftest.$ac_ext
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24735 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24736 if test $gcc_cv_math_func_lgamma = yes; then
24738 cat >>confdefs.h <<_ACEOF
24739 #define HAVE_LGAMMA 1
24740 _ACEOF
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24748 $as_echo_n "checking for lgammaf... " >&6; }
24749 if ${gcc_cv_math_func_lgammaf+:} false; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 if test x$gcc_no_link = xyes; then
24753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24756 /* end confdefs.h. */
24758 #ifdef HAVE_COMPLEX_H
24759 #include <complex.h>
24760 #endif
24761 #ifdef HAVE_MATH_H
24762 #include <math.h>
24763 #endif
24765 int (*ptr)() = (int (*)())lgammaf;
24768 main ()
24770 return 0;
24773 _ACEOF
24774 if ac_fn_c_try_link "$LINENO"; then :
24775 gcc_cv_math_func_lgammaf=yes
24776 else
24777 gcc_cv_math_func_lgammaf=no
24779 rm -f core conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24783 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24784 if test $gcc_cv_math_func_lgammaf = yes; then
24786 cat >>confdefs.h <<_ACEOF
24787 #define HAVE_LGAMMAF 1
24788 _ACEOF
24793 # Check for GFORTRAN_C99_1.1 funcs
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24798 $as_echo_n "checking for cacos... " >&6; }
24799 if ${gcc_cv_math_func_cacos+:} false; then :
24800 $as_echo_n "(cached) " >&6
24801 else
24802 if test x$gcc_no_link = xyes; then
24803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24808 #ifdef HAVE_COMPLEX_H
24809 #include <complex.h>
24810 #endif
24811 #ifdef HAVE_MATH_H
24812 #include <math.h>
24813 #endif
24815 int (*ptr)() = (int (*)())cacos;
24818 main ()
24820 return 0;
24823 _ACEOF
24824 if ac_fn_c_try_link "$LINENO"; then :
24825 gcc_cv_math_func_cacos=yes
24826 else
24827 gcc_cv_math_func_cacos=no
24829 rm -f core conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24833 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24834 if test $gcc_cv_math_func_cacos = yes; then
24836 cat >>confdefs.h <<_ACEOF
24837 #define HAVE_CACOS 1
24838 _ACEOF
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24846 $as_echo_n "checking for cacosf... " >&6; }
24847 if ${gcc_cv_math_func_cacosf+:} false; then :
24848 $as_echo_n "(cached) " >&6
24849 else
24850 if test x$gcc_no_link = xyes; then
24851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h. */
24856 #ifdef HAVE_COMPLEX_H
24857 #include <complex.h>
24858 #endif
24859 #ifdef HAVE_MATH_H
24860 #include <math.h>
24861 #endif
24863 int (*ptr)() = (int (*)())cacosf;
24866 main ()
24868 return 0;
24871 _ACEOF
24872 if ac_fn_c_try_link "$LINENO"; then :
24873 gcc_cv_math_func_cacosf=yes
24874 else
24875 gcc_cv_math_func_cacosf=no
24877 rm -f core conftest.err conftest.$ac_objext \
24878 conftest$ac_exeext conftest.$ac_ext
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24881 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24882 if test $gcc_cv_math_func_cacosf = yes; then
24884 cat >>confdefs.h <<_ACEOF
24885 #define HAVE_CACOSF 1
24886 _ACEOF
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24894 $as_echo_n "checking for cacosh... " >&6; }
24895 if ${gcc_cv_math_func_cacosh+:} false; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24898 if test x$gcc_no_link = xyes; then
24899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24902 /* end confdefs.h. */
24904 #ifdef HAVE_COMPLEX_H
24905 #include <complex.h>
24906 #endif
24907 #ifdef HAVE_MATH_H
24908 #include <math.h>
24909 #endif
24911 int (*ptr)() = (int (*)())cacosh;
24914 main ()
24916 return 0;
24919 _ACEOF
24920 if ac_fn_c_try_link "$LINENO"; then :
24921 gcc_cv_math_func_cacosh=yes
24922 else
24923 gcc_cv_math_func_cacosh=no
24925 rm -f core conftest.err conftest.$ac_objext \
24926 conftest$ac_exeext conftest.$ac_ext
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24929 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24930 if test $gcc_cv_math_func_cacosh = yes; then
24932 cat >>confdefs.h <<_ACEOF
24933 #define HAVE_CACOSH 1
24934 _ACEOF
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24942 $as_echo_n "checking for cacoshf... " >&6; }
24943 if ${gcc_cv_math_func_cacoshf+:} false; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 if test x$gcc_no_link = xyes; then
24947 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24950 /* end confdefs.h. */
24952 #ifdef HAVE_COMPLEX_H
24953 #include <complex.h>
24954 #endif
24955 #ifdef HAVE_MATH_H
24956 #include <math.h>
24957 #endif
24959 int (*ptr)() = (int (*)())cacoshf;
24962 main ()
24964 return 0;
24967 _ACEOF
24968 if ac_fn_c_try_link "$LINENO"; then :
24969 gcc_cv_math_func_cacoshf=yes
24970 else
24971 gcc_cv_math_func_cacoshf=no
24973 rm -f core conftest.err conftest.$ac_objext \
24974 conftest$ac_exeext conftest.$ac_ext
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24977 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24978 if test $gcc_cv_math_func_cacoshf = yes; then
24980 cat >>confdefs.h <<_ACEOF
24981 #define HAVE_CACOSHF 1
24982 _ACEOF
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24990 $as_echo_n "checking for cacoshl... " >&6; }
24991 if ${gcc_cv_math_func_cacoshl+:} false; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994 if test x$gcc_no_link = xyes; then
24995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h. */
25000 #ifdef HAVE_COMPLEX_H
25001 #include <complex.h>
25002 #endif
25003 #ifdef HAVE_MATH_H
25004 #include <math.h>
25005 #endif
25007 int (*ptr)() = (int (*)())cacoshl;
25010 main ()
25012 return 0;
25015 _ACEOF
25016 if ac_fn_c_try_link "$LINENO"; then :
25017 gcc_cv_math_func_cacoshl=yes
25018 else
25019 gcc_cv_math_func_cacoshl=no
25021 rm -f core conftest.err conftest.$ac_objext \
25022 conftest$ac_exeext conftest.$ac_ext
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25025 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25026 if test $gcc_cv_math_func_cacoshl = yes; then
25028 cat >>confdefs.h <<_ACEOF
25029 #define HAVE_CACOSHL 1
25030 _ACEOF
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25038 $as_echo_n "checking for cacosl... " >&6; }
25039 if ${gcc_cv_math_func_cacosl+:} false; then :
25040 $as_echo_n "(cached) " >&6
25041 else
25042 if test x$gcc_no_link = xyes; then
25043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25048 #ifdef HAVE_COMPLEX_H
25049 #include <complex.h>
25050 #endif
25051 #ifdef HAVE_MATH_H
25052 #include <math.h>
25053 #endif
25055 int (*ptr)() = (int (*)())cacosl;
25058 main ()
25060 return 0;
25063 _ACEOF
25064 if ac_fn_c_try_link "$LINENO"; then :
25065 gcc_cv_math_func_cacosl=yes
25066 else
25067 gcc_cv_math_func_cacosl=no
25069 rm -f core conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25073 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
25074 if test $gcc_cv_math_func_cacosl = yes; then
25076 cat >>confdefs.h <<_ACEOF
25077 #define HAVE_CACOSL 1
25078 _ACEOF
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25086 $as_echo_n "checking for casin... " >&6; }
25087 if ${gcc_cv_math_func_casin+:} false; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 if test x$gcc_no_link = xyes; then
25091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25094 /* end confdefs.h. */
25096 #ifdef HAVE_COMPLEX_H
25097 #include <complex.h>
25098 #endif
25099 #ifdef HAVE_MATH_H
25100 #include <math.h>
25101 #endif
25103 int (*ptr)() = (int (*)())casin;
25106 main ()
25108 return 0;
25111 _ACEOF
25112 if ac_fn_c_try_link "$LINENO"; then :
25113 gcc_cv_math_func_casin=yes
25114 else
25115 gcc_cv_math_func_casin=no
25117 rm -f core conftest.err conftest.$ac_objext \
25118 conftest$ac_exeext conftest.$ac_ext
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25121 $as_echo "$gcc_cv_math_func_casin" >&6; }
25122 if test $gcc_cv_math_func_casin = yes; then
25124 cat >>confdefs.h <<_ACEOF
25125 #define HAVE_CASIN 1
25126 _ACEOF
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25134 $as_echo_n "checking for casinf... " >&6; }
25135 if ${gcc_cv_math_func_casinf+:} false; then :
25136 $as_echo_n "(cached) " >&6
25137 else
25138 if test x$gcc_no_link = xyes; then
25139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25142 /* end confdefs.h. */
25144 #ifdef HAVE_COMPLEX_H
25145 #include <complex.h>
25146 #endif
25147 #ifdef HAVE_MATH_H
25148 #include <math.h>
25149 #endif
25151 int (*ptr)() = (int (*)())casinf;
25154 main ()
25156 return 0;
25159 _ACEOF
25160 if ac_fn_c_try_link "$LINENO"; then :
25161 gcc_cv_math_func_casinf=yes
25162 else
25163 gcc_cv_math_func_casinf=no
25165 rm -f core conftest.err conftest.$ac_objext \
25166 conftest$ac_exeext conftest.$ac_ext
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25169 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25170 if test $gcc_cv_math_func_casinf = yes; then
25172 cat >>confdefs.h <<_ACEOF
25173 #define HAVE_CASINF 1
25174 _ACEOF
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25182 $as_echo_n "checking for casinh... " >&6; }
25183 if ${gcc_cv_math_func_casinh+:} false; then :
25184 $as_echo_n "(cached) " >&6
25185 else
25186 if test x$gcc_no_link = xyes; then
25187 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25190 /* end confdefs.h. */
25192 #ifdef HAVE_COMPLEX_H
25193 #include <complex.h>
25194 #endif
25195 #ifdef HAVE_MATH_H
25196 #include <math.h>
25197 #endif
25199 int (*ptr)() = (int (*)())casinh;
25202 main ()
25204 return 0;
25207 _ACEOF
25208 if ac_fn_c_try_link "$LINENO"; then :
25209 gcc_cv_math_func_casinh=yes
25210 else
25211 gcc_cv_math_func_casinh=no
25213 rm -f core conftest.err conftest.$ac_objext \
25214 conftest$ac_exeext conftest.$ac_ext
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25217 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25218 if test $gcc_cv_math_func_casinh = yes; then
25220 cat >>confdefs.h <<_ACEOF
25221 #define HAVE_CASINH 1
25222 _ACEOF
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25230 $as_echo_n "checking for casinhf... " >&6; }
25231 if ${gcc_cv_math_func_casinhf+:} false; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 if test x$gcc_no_link = xyes; then
25235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25240 #ifdef HAVE_COMPLEX_H
25241 #include <complex.h>
25242 #endif
25243 #ifdef HAVE_MATH_H
25244 #include <math.h>
25245 #endif
25247 int (*ptr)() = (int (*)())casinhf;
25250 main ()
25252 return 0;
25255 _ACEOF
25256 if ac_fn_c_try_link "$LINENO"; then :
25257 gcc_cv_math_func_casinhf=yes
25258 else
25259 gcc_cv_math_func_casinhf=no
25261 rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25265 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25266 if test $gcc_cv_math_func_casinhf = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_CASINHF 1
25270 _ACEOF
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25278 $as_echo_n "checking for casinhl... " >&6; }
25279 if ${gcc_cv_math_func_casinhl+:} false; then :
25280 $as_echo_n "(cached) " >&6
25281 else
25282 if test x$gcc_no_link = xyes; then
25283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25286 /* end confdefs.h. */
25288 #ifdef HAVE_COMPLEX_H
25289 #include <complex.h>
25290 #endif
25291 #ifdef HAVE_MATH_H
25292 #include <math.h>
25293 #endif
25295 int (*ptr)() = (int (*)())casinhl;
25298 main ()
25300 return 0;
25303 _ACEOF
25304 if ac_fn_c_try_link "$LINENO"; then :
25305 gcc_cv_math_func_casinhl=yes
25306 else
25307 gcc_cv_math_func_casinhl=no
25309 rm -f core conftest.err conftest.$ac_objext \
25310 conftest$ac_exeext conftest.$ac_ext
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25313 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25314 if test $gcc_cv_math_func_casinhl = yes; then
25316 cat >>confdefs.h <<_ACEOF
25317 #define HAVE_CASINHL 1
25318 _ACEOF
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25326 $as_echo_n "checking for casinl... " >&6; }
25327 if ${gcc_cv_math_func_casinl+:} false; then :
25328 $as_echo_n "(cached) " >&6
25329 else
25330 if test x$gcc_no_link = xyes; then
25331 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h. */
25336 #ifdef HAVE_COMPLEX_H
25337 #include <complex.h>
25338 #endif
25339 #ifdef HAVE_MATH_H
25340 #include <math.h>
25341 #endif
25343 int (*ptr)() = (int (*)())casinl;
25346 main ()
25348 return 0;
25351 _ACEOF
25352 if ac_fn_c_try_link "$LINENO"; then :
25353 gcc_cv_math_func_casinl=yes
25354 else
25355 gcc_cv_math_func_casinl=no
25357 rm -f core conftest.err conftest.$ac_objext \
25358 conftest$ac_exeext conftest.$ac_ext
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25361 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25362 if test $gcc_cv_math_func_casinl = yes; then
25364 cat >>confdefs.h <<_ACEOF
25365 #define HAVE_CASINL 1
25366 _ACEOF
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25374 $as_echo_n "checking for catan... " >&6; }
25375 if ${gcc_cv_math_func_catan+:} false; then :
25376 $as_echo_n "(cached) " >&6
25377 else
25378 if test x$gcc_no_link = xyes; then
25379 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25382 /* end confdefs.h. */
25384 #ifdef HAVE_COMPLEX_H
25385 #include <complex.h>
25386 #endif
25387 #ifdef HAVE_MATH_H
25388 #include <math.h>
25389 #endif
25391 int (*ptr)() = (int (*)())catan;
25394 main ()
25396 return 0;
25399 _ACEOF
25400 if ac_fn_c_try_link "$LINENO"; then :
25401 gcc_cv_math_func_catan=yes
25402 else
25403 gcc_cv_math_func_catan=no
25405 rm -f core conftest.err conftest.$ac_objext \
25406 conftest$ac_exeext conftest.$ac_ext
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25409 $as_echo "$gcc_cv_math_func_catan" >&6; }
25410 if test $gcc_cv_math_func_catan = yes; then
25412 cat >>confdefs.h <<_ACEOF
25413 #define HAVE_CATAN 1
25414 _ACEOF
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25422 $as_echo_n "checking for catanf... " >&6; }
25423 if ${gcc_cv_math_func_catanf+:} false; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 if test x$gcc_no_link = xyes; then
25427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h. */
25432 #ifdef HAVE_COMPLEX_H
25433 #include <complex.h>
25434 #endif
25435 #ifdef HAVE_MATH_H
25436 #include <math.h>
25437 #endif
25439 int (*ptr)() = (int (*)())catanf;
25442 main ()
25444 return 0;
25447 _ACEOF
25448 if ac_fn_c_try_link "$LINENO"; then :
25449 gcc_cv_math_func_catanf=yes
25450 else
25451 gcc_cv_math_func_catanf=no
25453 rm -f core conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25457 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25458 if test $gcc_cv_math_func_catanf = yes; then
25460 cat >>confdefs.h <<_ACEOF
25461 #define HAVE_CATANF 1
25462 _ACEOF
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25470 $as_echo_n "checking for catanh... " >&6; }
25471 if ${gcc_cv_math_func_catanh+:} false; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 if test x$gcc_no_link = xyes; then
25475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25480 #ifdef HAVE_COMPLEX_H
25481 #include <complex.h>
25482 #endif
25483 #ifdef HAVE_MATH_H
25484 #include <math.h>
25485 #endif
25487 int (*ptr)() = (int (*)())catanh;
25490 main ()
25492 return 0;
25495 _ACEOF
25496 if ac_fn_c_try_link "$LINENO"; then :
25497 gcc_cv_math_func_catanh=yes
25498 else
25499 gcc_cv_math_func_catanh=no
25501 rm -f core conftest.err conftest.$ac_objext \
25502 conftest$ac_exeext conftest.$ac_ext
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25505 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25506 if test $gcc_cv_math_func_catanh = yes; then
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_CATANH 1
25510 _ACEOF
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25518 $as_echo_n "checking for catanhf... " >&6; }
25519 if ${gcc_cv_math_func_catanhf+:} false; then :
25520 $as_echo_n "(cached) " >&6
25521 else
25522 if test x$gcc_no_link = xyes; then
25523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 #ifdef HAVE_COMPLEX_H
25529 #include <complex.h>
25530 #endif
25531 #ifdef HAVE_MATH_H
25532 #include <math.h>
25533 #endif
25535 int (*ptr)() = (int (*)())catanhf;
25538 main ()
25540 return 0;
25543 _ACEOF
25544 if ac_fn_c_try_link "$LINENO"; then :
25545 gcc_cv_math_func_catanhf=yes
25546 else
25547 gcc_cv_math_func_catanhf=no
25549 rm -f core conftest.err conftest.$ac_objext \
25550 conftest$ac_exeext conftest.$ac_ext
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25553 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25554 if test $gcc_cv_math_func_catanhf = yes; then
25556 cat >>confdefs.h <<_ACEOF
25557 #define HAVE_CATANHF 1
25558 _ACEOF
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25566 $as_echo_n "checking for catanhl... " >&6; }
25567 if ${gcc_cv_math_func_catanhl+:} false; then :
25568 $as_echo_n "(cached) " >&6
25569 else
25570 if test x$gcc_no_link = xyes; then
25571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25576 #ifdef HAVE_COMPLEX_H
25577 #include <complex.h>
25578 #endif
25579 #ifdef HAVE_MATH_H
25580 #include <math.h>
25581 #endif
25583 int (*ptr)() = (int (*)())catanhl;
25586 main ()
25588 return 0;
25591 _ACEOF
25592 if ac_fn_c_try_link "$LINENO"; then :
25593 gcc_cv_math_func_catanhl=yes
25594 else
25595 gcc_cv_math_func_catanhl=no
25597 rm -f core conftest.err conftest.$ac_objext \
25598 conftest$ac_exeext conftest.$ac_ext
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25601 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25602 if test $gcc_cv_math_func_catanhl = yes; then
25604 cat >>confdefs.h <<_ACEOF
25605 #define HAVE_CATANHL 1
25606 _ACEOF
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25614 $as_echo_n "checking for catanl... " >&6; }
25615 if ${gcc_cv_math_func_catanl+:} false; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618 if test x$gcc_no_link = xyes; then
25619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622 /* end confdefs.h. */
25624 #ifdef HAVE_COMPLEX_H
25625 #include <complex.h>
25626 #endif
25627 #ifdef HAVE_MATH_H
25628 #include <math.h>
25629 #endif
25631 int (*ptr)() = (int (*)())catanl;
25634 main ()
25636 return 0;
25639 _ACEOF
25640 if ac_fn_c_try_link "$LINENO"; then :
25641 gcc_cv_math_func_catanl=yes
25642 else
25643 gcc_cv_math_func_catanl=no
25645 rm -f core conftest.err conftest.$ac_objext \
25646 conftest$ac_exeext conftest.$ac_ext
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25649 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25650 if test $gcc_cv_math_func_catanl = yes; then
25652 cat >>confdefs.h <<_ACEOF
25653 #define HAVE_CATANL 1
25654 _ACEOF
25659 # On AIX, clog is present in libm as __clog
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25661 $as_echo_n "checking for __clog in -lm... " >&6; }
25662 if ${ac_cv_lib_m___clog+:} false; then :
25663 $as_echo_n "(cached) " >&6
25664 else
25665 ac_check_lib_save_LIBS=$LIBS
25666 LIBS="-lm $LIBS"
25667 if test x$gcc_no_link = xyes; then
25668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25671 /* end confdefs.h. */
25673 /* Override any GCC internal prototype to avoid an error.
25674 Use char because int might match the return type of a GCC
25675 builtin and then its argument prototype would still apply. */
25676 #ifdef __cplusplus
25677 extern "C"
25678 #endif
25679 char __clog ();
25681 main ()
25683 return __clog ();
25685 return 0;
25687 _ACEOF
25688 if ac_fn_c_try_link "$LINENO"; then :
25689 ac_cv_lib_m___clog=yes
25690 else
25691 ac_cv_lib_m___clog=no
25693 rm -f core conftest.err conftest.$ac_objext \
25694 conftest$ac_exeext conftest.$ac_ext
25695 LIBS=$ac_check_lib_save_LIBS
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25698 $as_echo "$ac_cv_lib_m___clog" >&6; }
25699 if test "x$ac_cv_lib_m___clog" = xyes; then :
25701 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25708 if test $gcc_cv_math_func_copysign = no; then
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25710 $as_echo_n "checking for inline __builtin_copysign... " >&6; }
25711 if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
25712 $as_echo_n "(cached) " >&6
25713 else
25714 if test x$gcc_no_link = xyes; then
25715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h. */
25720 double
25721 copysign_fallback (double x, double y)
25723 return __builtin_copysign (x, y);
25727 main ()
25729 return 0;
25732 _ACEOF
25733 if ac_fn_c_try_link "$LINENO"; then :
25734 gcc_cv_math_inline_builtin_copysign=yes
25735 else
25736 gcc_cv_math_inline_builtin_copysign=no
25738 rm -f core conftest.err conftest.$ac_objext \
25739 conftest$ac_exeext conftest.$ac_ext
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25742 $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25743 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25745 cat >>confdefs.h <<_ACEOF
25746 #define HAVE_INLINE_BUILTIN_COPYSIGN 1
25747 _ACEOF
25753 if test $gcc_cv_math_func_copysignl = no; then
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25755 $as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25756 if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25757 $as_echo_n "(cached) " >&6
25758 else
25759 if test x$gcc_no_link = xyes; then
25760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25765 long double
25766 copysignl_fallback (long double x, long double y)
25768 return __builtin_copysignl (x, y);
25772 main ()
25774 return 0;
25777 _ACEOF
25778 if ac_fn_c_try_link "$LINENO"; then :
25779 gcc_cv_math_inline_builtin_copysignl=yes
25780 else
25781 gcc_cv_math_inline_builtin_copysignl=no
25783 rm -f core conftest.err conftest.$ac_objext \
25784 conftest$ac_exeext conftest.$ac_ext
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25787 $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25788 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25790 cat >>confdefs.h <<_ACEOF
25791 #define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25792 _ACEOF
25798 if test $gcc_cv_math_func_fabs = no; then
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25800 $as_echo_n "checking for inline __builtin_fabs... " >&6; }
25801 if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25802 $as_echo_n "(cached) " >&6
25803 else
25804 if test x$gcc_no_link = xyes; then
25805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25808 /* end confdefs.h. */
25810 double
25811 fabs_fallback (double x)
25813 return __builtin_fabs (x);
25817 main ()
25819 return 0;
25822 _ACEOF
25823 if ac_fn_c_try_link "$LINENO"; then :
25824 gcc_cv_math_inline_builtin_fabs=yes
25825 else
25826 gcc_cv_math_inline_builtin_fabs=no
25828 rm -f core conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25832 $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25833 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25835 cat >>confdefs.h <<_ACEOF
25836 #define HAVE_INLINE_BUILTIN_FABS 1
25837 _ACEOF
25843 if test $gcc_cv_math_func_fabsl = no; then
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25845 $as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25846 if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 if test x$gcc_no_link = xyes; then
25850 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25855 long double
25856 fabsl_fallback (long double x)
25858 return __builtin_fabsl (x);
25862 main ()
25864 return 0;
25867 _ACEOF
25868 if ac_fn_c_try_link "$LINENO"; then :
25869 gcc_cv_math_inline_builtin_fabsl=yes
25870 else
25871 gcc_cv_math_inline_builtin_fabsl=no
25873 rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
25877 $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
25878 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
25880 cat >>confdefs.h <<_ACEOF
25881 #define HAVE_INLINE_BUILTIN_FABSL 1
25882 _ACEOF
25887 # Check whether the system has a working stat()
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25890 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25891 if ${libgfor_cv_have_working_stat+:} false; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25895 if test "$cross_compiling" = yes; then :
25897 case "${target}" in
25898 *mingw*) libgfor_cv_have_working_stat=no ;;
25899 *) libgfor_cv_have_working_stat=yes;;
25900 esac
25901 else
25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h. */
25905 #include <stdio.h>
25906 #include <sys/types.h>
25907 #include <sys/stat.h>
25908 #include <unistd.h>
25910 int main ()
25912 FILE *f, *g;
25913 struct stat st1, st2;
25915 f = fopen ("foo", "w");
25916 g = fopen ("bar", "w");
25917 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25918 return 1;
25919 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25920 return 1;
25921 fclose(f);
25922 fclose(g);
25923 return 0;
25925 _ACEOF
25926 if ac_fn_c_try_run "$LINENO"; then :
25927 libgfor_cv_have_working_stat=yes
25928 else
25929 libgfor_cv_have_working_stat=no
25931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25932 conftest.$ac_objext conftest.beam conftest.$ac_ext
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25937 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25938 if test x"$libgfor_cv_have_working_stat" = xyes; then
25940 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25944 # Check whether __mingw_snprintf() is present
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25947 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25948 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25949 $as_echo_n "(cached) " >&6
25950 else
25952 if test x$gcc_no_link = xyes; then
25953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h. */
25958 #include <stdio.h>
25959 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25962 main ()
25965 __mingw_snprintf (NULL, 0, "%d\n", 1);
25968 return 0;
25970 _ACEOF
25971 if ac_fn_c_try_link "$LINENO"; then :
25972 eval "libgfor_cv_have_mingw_snprintf=yes"
25973 else
25974 eval "libgfor_cv_have_mingw_snprintf=no"
25976 rm -f core conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25981 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25982 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25984 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25989 # Check whether libquadmath should be used
25990 # Check whether --enable-libquadmath-support was given.
25991 if test "${enable_libquadmath_support+set}" = set; then :
25992 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25993 else
25994 ENABLE_LIBQUADMATH_SUPPORT=yes
25997 enable_libquadmath_support=
25998 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25999 enable_libquadmath_support=no
26002 # Check whether we have a __float128 type, depends on enable_libquadmath_support
26004 LIBQUADSPEC=
26006 if test "x$enable_libquadmath_support" != xno; then
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26009 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
26010 if ${libgfor_cv_have_float128+:} false; then :
26011 $as_echo_n "(cached) " >&6
26012 else
26014 if test x$gcc_no_link = xyes; then
26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016 /* end confdefs.h. */
26018 typedef _Complex float __attribute__((mode(TC))) __complex128;
26020 __float128 foo (__float128 x)
26023 __complex128 z1, z2;
26025 z1 = x;
26026 z2 = x / 7.Q;
26027 z2 /= z1;
26029 return (__float128) z2;
26032 __float128 bar (__float128 x)
26034 return x * __builtin_huge_valq ();
26038 main ()
26041 foo (1.2Q);
26042 bar (1.2Q);
26045 return 0;
26047 _ACEOF
26048 if ac_fn_c_try_compile "$LINENO"; then :
26050 libgfor_cv_have_float128=yes
26052 else
26054 libgfor_cv_have_float128=no
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26058 else
26059 if test x$gcc_no_link = xyes; then
26060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26063 /* end confdefs.h. */
26065 typedef _Complex float __attribute__((mode(TC))) __complex128;
26067 __float128 foo (__float128 x)
26070 __complex128 z1, z2;
26072 z1 = x;
26073 z2 = x / 7.Q;
26074 z2 /= z1;
26076 return (__float128) z2;
26079 __float128 bar (__float128 x)
26081 return x * __builtin_huge_valq ();
26085 main ()
26088 foo (1.2Q);
26089 bar (1.2Q);
26092 return 0;
26094 _ACEOF
26095 if ac_fn_c_try_link "$LINENO"; then :
26097 libgfor_cv_have_float128=yes
26099 else
26101 libgfor_cv_have_float128=no
26104 rm -f core conftest.err conftest.$ac_objext \
26105 conftest$ac_exeext conftest.$ac_ext
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26109 $as_echo "$libgfor_cv_have_float128" >&6; }
26111 if test "x$libgfor_cv_have_float128" = xyes; then
26113 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26116 ac_xsave_c_werror_flag=$ac_c_werror_flag
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26118 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
26119 if ${libgfor_cv_have_as_needed+:} false; then :
26120 $as_echo_n "(cached) " >&6
26121 else
26123 # Test for native Solaris options first.
26124 # No whitespace after -z to pass it through -Wl.
26125 libgfor_cv_as_needed_option="-zignore"
26126 libgfor_cv_no_as_needed_option="-zrecord"
26127 save_LDFLAGS="$LDFLAGS"
26128 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26129 libgfor_cv_have_as_needed=no
26131 ac_c_werror_flag=yes
26132 if test x$gcc_no_link = xyes; then
26133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26136 /* end confdefs.h. */
26139 main ()
26143 return 0;
26145 _ACEOF
26146 if ac_fn_c_try_link "$LINENO"; then :
26147 libgfor_cv_have_as_needed=yes
26148 else
26149 libgfor_cv_have_as_needed=no
26151 rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
26153 LDFLAGS="$save_LDFLAGS"
26154 if test "x$libgfor_cv_have_as_needed" = xno; then
26155 libgfor_cv_as_needed_option="--as-needed"
26156 libgfor_cv_no_as_needed_option="--no-as-needed"
26157 save_LDFLAGS="$LDFLAGS"
26158 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26159 libgfor_cv_have_as_needed=no
26161 ac_c_werror_flag=yes
26162 if test x$gcc_no_link = xyes; then
26163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26166 /* end confdefs.h. */
26169 main ()
26173 return 0;
26175 _ACEOF
26176 if ac_fn_c_try_link "$LINENO"; then :
26177 libgfor_cv_have_as_needed=yes
26178 else
26179 libgfor_cv_have_as_needed=no
26181 rm -f core conftest.err conftest.$ac_objext \
26182 conftest$ac_exeext conftest.$ac_ext
26183 LDFLAGS="$save_LDFLAGS"
26185 ac_c_werror_flag=$ac_xsave_c_werror_flag
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26189 $as_echo "$libgfor_cv_have_as_needed" >&6; }
26191 if test "x$libgfor_cv_have_as_needed" = xyes; then
26192 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
26193 else
26194 LIBQUADSPEC="-lquadmath"
26196 if test -f ../libquadmath/libquadmath.la; then
26197 LIBQUADLIB=../libquadmath/libquadmath.la
26198 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26199 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26200 else
26201 LIBQUADLIB="-lquadmath"
26202 LIBQUADLIB_DEP=
26203 LIBQUADINCLUDE=
26206 else
26207 # for --disable-quadmath
26208 LIBQUADLIB=
26209 LIBQUADLIB_DEP=
26210 LIBQUADINCLUDE=
26218 if test "x$libgfor_cv_have_float128" = xyes; then
26219 LIBGFOR_BUILD_QUAD_TRUE=
26220 LIBGFOR_BUILD_QUAD_FALSE='#'
26221 else
26222 LIBGFOR_BUILD_QUAD_TRUE='#'
26223 LIBGFOR_BUILD_QUAD_FALSE=
26228 # Check for GNU libc feenableexcept
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26230 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
26231 if ${ac_cv_lib_m_feenableexcept+:} false; then :
26232 $as_echo_n "(cached) " >&6
26233 else
26234 ac_check_lib_save_LIBS=$LIBS
26235 LIBS="-lm $LIBS"
26236 if test x$gcc_no_link = xyes; then
26237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26242 /* Override any GCC internal prototype to avoid an error.
26243 Use char because int might match the return type of a GCC
26244 builtin and then its argument prototype would still apply. */
26245 #ifdef __cplusplus
26246 extern "C"
26247 #endif
26248 char feenableexcept ();
26250 main ()
26252 return feenableexcept ();
26254 return 0;
26256 _ACEOF
26257 if ac_fn_c_try_link "$LINENO"; then :
26258 ac_cv_lib_m_feenableexcept=yes
26259 else
26260 ac_cv_lib_m_feenableexcept=no
26262 rm -f core conftest.err conftest.$ac_objext \
26263 conftest$ac_exeext conftest.$ac_ext
26264 LIBS=$ac_check_lib_save_LIBS
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26267 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
26268 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
26269 have_feenableexcept=yes
26270 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
26275 # At least for glibc, clock_gettime is in librt. But don't
26276 # pull that in if it still doesn't give us the function we want. This
26277 # test is copied from libgomp, and modified to not link in -lrt as
26278 # libgfortran calls clock_gettime via a weak reference if it's found
26279 # in librt.
26280 if test "$ac_cv_func_clock_gettime" = no; then
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26282 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26283 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 ac_check_lib_save_LIBS=$LIBS
26287 LIBS="-lrt $LIBS"
26288 if test x$gcc_no_link = xyes; then
26289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26294 /* Override any GCC internal prototype to avoid an error.
26295 Use char because int might match the return type of a GCC
26296 builtin and then its argument prototype would still apply. */
26297 #ifdef __cplusplus
26298 extern "C"
26299 #endif
26300 char clock_gettime ();
26302 main ()
26304 return clock_gettime ();
26306 return 0;
26308 _ACEOF
26309 if ac_fn_c_try_link "$LINENO"; then :
26310 ac_cv_lib_rt_clock_gettime=yes
26311 else
26312 ac_cv_lib_rt_clock_gettime=no
26314 rm -f core conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
26316 LIBS=$ac_check_lib_save_LIBS
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26319 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26320 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26322 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26328 # Check for SysV fpsetmask
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26331 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26332 if ${libgfor_cv_have_fpsetmask+:} false; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26336 if test x$gcc_no_link = xyes; then
26337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26340 /* end confdefs.h. */
26342 #if HAVE_FLOATINGPOINT_H
26343 # include <floatingpoint.h>
26344 #endif /* HAVE_FLOATINGPOINT_H */
26345 #if HAVE_IEEEFP_H
26346 # include <ieeefp.h>
26347 #endif /* HAVE_IEEEFP_H */
26349 main ()
26351 fpsetmask(0);
26353 return 0;
26355 _ACEOF
26356 if ac_fn_c_try_link "$LINENO"; then :
26357 eval "libgfor_cv_have_fpsetmask=yes"
26358 else
26359 eval "libgfor_cv_have_fpsetmask=no"
26361 rm -f core conftest.err conftest.$ac_objext \
26362 conftest$ac_exeext conftest.$ac_ext
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26366 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26367 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26368 have_fpsetmask=yes
26370 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26374 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26375 #ifdef HAVE_IEEEFP_H
26376 #include <ieeefp.h>
26377 #endif
26378 #include <math.h>
26381 if test "x$ac_cv_type_fp_except" = xyes; then :
26383 cat >>confdefs.h <<_ACEOF
26384 #define HAVE_FP_EXCEPT 1
26385 _ACEOF
26389 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26390 #ifdef HAVE_IEEEFP_H
26391 #include <ieeefp.h>
26392 #endif
26393 #include <math.h>
26396 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_FP_EXCEPT_T 1
26400 _ACEOF
26405 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26406 #ifdef HAVE_IEEEFP_H
26407 #include <ieeefp.h>
26408 #endif
26409 #include <math.h>
26412 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26414 cat >>confdefs.h <<_ACEOF
26415 #define HAVE_FP_RND 1
26416 _ACEOF
26420 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26421 #ifdef HAVE_IEEEFP_H
26422 #include <ieeefp.h>
26423 #endif
26424 #include <math.h>
26427 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26429 cat >>confdefs.h <<_ACEOF
26430 #define HAVE_FP_RND_T 1
26431 _ACEOF
26437 # Check whether we have fpsetsticky or fpresetsticky
26438 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26439 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26440 have_fpsetsticky=yes
26441 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26445 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26446 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26447 have_fpresetsticky=yes
26448 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26453 # Check for AIX fp_trap and fp_enable
26454 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26455 if test "x$ac_cv_func_fp_trap" = xyes; then :
26456 have_fp_trap=yes
26457 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26461 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26462 if test "x$ac_cv_func_fp_enable" = xyes; then :
26463 have_fp_enable=yes
26464 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26469 # Check if _SOFT_FLOAT is defined
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26472 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26473 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26477 /* end confdefs.h. */
26480 main ()
26483 #ifdef _SOFT_FLOAT
26484 int ok;
26485 #else
26486 choke me
26487 #endif
26490 return 0;
26492 _ACEOF
26493 if ac_fn_c_try_compile "$LINENO"; then :
26494 ac_cv_defined__SOFT_FLOAT=yes
26495 else
26496 ac_cv_defined__SOFT_FLOAT=no
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26501 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26502 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26503 have_soft_float=yes
26506 # Runs configure.host to set up necessary host-dependent shell variables.
26507 # We then display a message about it, and propagate them through the
26508 # build chain.
26509 . ${srcdir}/configure.host
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26511 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26513 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26514 FPU_HOST_HEADER=config/${fpu_host}.h
26517 # Whether we will build the IEEE modules
26518 if test x${ieee_support} = xyes; then
26519 IEEE_SUPPORT_TRUE=
26520 IEEE_SUPPORT_FALSE='#'
26521 else
26522 IEEE_SUPPORT_TRUE='#'
26523 IEEE_SUPPORT_FALSE=
26528 # Some targets require additional compiler options for IEEE compatibility.
26529 IEEE_FLAGS="${ieee_flags}"
26533 # Check for POSIX getpwuid_r
26535 # There are two versions of getpwuid_r, the POSIX one with 5
26536 # arguments, and another one with 4 arguments used by at least HP-UX
26537 # 10.2.
26538 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26540 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26541 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26545 if test x$gcc_no_link = xyes; then
26546 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26549 /* end confdefs.h. */
26551 #include <stdio.h>
26552 #include <sys/types.h>
26553 #include <pwd.h>
26555 main ()
26558 getpwuid_r(0, NULL, NULL, 0, NULL);
26561 return 0;
26563 _ACEOF
26564 if ac_fn_c_try_link "$LINENO"; then :
26565 libgfor_cv_posix_getpwuid_r="yes"
26566 else
26567 libgfor_cv_posix_getpwuid_r="no"
26569 rm -f core conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26573 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26575 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26577 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26582 # Check out attribute support.
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26585 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26586 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26587 $as_echo_n "(cached) " >&6
26588 else
26590 save_CFLAGS="$CFLAGS"
26591 CFLAGS="$CFLAGS -Werror"
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26594 void __attribute__((visibility("hidden"))) foo(void) { }
26596 main ()
26600 return 0;
26602 _ACEOF
26603 if ac_fn_c_try_compile "$LINENO"; then :
26604 libgfor_cv_have_attribute_visibility=yes
26605 else
26606 libgfor_cv_have_attribute_visibility=no
26608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 CFLAGS="$save_CFLAGS"
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26612 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26613 if test $libgfor_cv_have_attribute_visibility = yes; then
26615 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26620 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26621 if ${libgfor_cv_have_attribute_alias+:} false; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26625 if test x$gcc_no_link = xyes; then
26626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26629 /* end confdefs.h. */
26631 void foo(void) { }
26632 extern void bar(void) __attribute__((alias("foo")));
26634 main ()
26636 bar();
26638 return 0;
26640 _ACEOF
26641 if ac_fn_c_try_link "$LINENO"; then :
26642 libgfor_cv_have_attribute_alias=yes
26643 else
26644 libgfor_cv_have_attribute_alias=no
26646 rm -f core conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26650 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26651 if test $libgfor_cv_have_attribute_alias = yes; then
26653 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26657 # Check out atomic builtins support.
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26660 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26661 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26662 $as_echo_n "(cached) " >&6
26663 else
26665 if test x$gcc_no_link = xyes; then
26666 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h. */
26670 int foovar = 0;
26672 main ()
26675 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26676 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26678 return 0;
26680 _ACEOF
26681 if ac_fn_c_try_link "$LINENO"; then :
26682 libgfor_cv_have_atomic_fetch_add=yes
26683 else
26684 libgfor_cv_have_atomic_fetch_add=no
26686 rm -f core conftest.err conftest.$ac_objext \
26687 conftest$ac_exeext conftest.$ac_ext
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26690 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26691 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26693 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26697 # Check out #pragma weak.
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26700 $as_echo_n "checking whether pragma weak works... " >&6; }
26701 if ${libgfor_cv_have_pragma_weak+:} false; then :
26702 $as_echo_n "(cached) " >&6
26703 else
26705 gfor_save_CFLAGS="$CFLAGS"
26706 CFLAGS="$CFLAGS -Wunknown-pragmas"
26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h. */
26710 void foo (void);
26711 #pragma weak foo
26714 main ()
26716 if (foo) foo ();
26718 return 0;
26720 _ACEOF
26721 if ac_fn_c_try_compile "$LINENO"; then :
26722 libgfor_cv_have_pragma_weak=yes
26723 else
26724 libgfor_cv_have_pragma_weak=no
26726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26729 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26730 if test $libgfor_cv_have_pragma_weak = yes; then
26732 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26735 case "$host" in
26736 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26738 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26741 esac
26743 # Check out weakref support.
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26746 $as_echo_n "checking whether the target supports weakref... " >&6; }
26747 if ${libgfor_cv_have_weakref+:} false; then :
26748 $as_echo_n "(cached) " >&6
26749 else
26751 save_CFLAGS="$CFLAGS"
26752 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26753 if test x$gcc_no_link = xyes; then
26754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26757 /* end confdefs.h. */
26759 static int mytoto (int) __attribute__((__weakref__("toto")));
26762 main ()
26764 return (mytoto != 0);
26766 return 0;
26768 _ACEOF
26769 if ac_fn_c_try_link "$LINENO"; then :
26770 libgfor_cv_have_weakref=yes
26771 else
26772 libgfor_cv_have_weakref=no
26774 rm -f core conftest.err conftest.$ac_objext \
26775 conftest$ac_exeext conftest.$ac_ext
26776 CFLAGS="$save_CFLAGS"
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26779 $as_echo "$libgfor_cv_have_weakref" >&6; }
26780 if test $libgfor_cv_have_weakref = yes; then
26782 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26786 # Various other checks on target
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26789 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26790 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26791 $as_echo_n "(cached) " >&6
26792 else
26794 if test "$cross_compiling" = yes; then :
26796 case "${target}" in
26797 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26798 *) libgfor_cv_have_unlink_open_file=yes;;
26799 esac
26800 else
26801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802 /* end confdefs.h. */
26804 #include <errno.h>
26805 #include <fcntl.h>
26806 #include <unistd.h>
26807 #include <sys/stat.h>
26809 int main ()
26811 int fd;
26813 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26814 if (fd <= 0)
26815 return 0;
26816 if (unlink ("testfile") == -1)
26817 return 1;
26818 write (fd, "This is a test\n", 15);
26819 close (fd);
26821 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26822 return 0;
26823 else
26824 return 1;
26826 _ACEOF
26827 if ac_fn_c_try_run "$LINENO"; then :
26828 libgfor_cv_have_unlink_open_file=yes
26829 else
26830 libgfor_cv_have_unlink_open_file=no
26832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26833 conftest.$ac_objext conftest.beam conftest.$ac_ext
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26838 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26839 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26841 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26845 # Check whether line terminator is LF or CRLF
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26848 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26849 if ${libgfor_cv_have_crlf+:} false; then :
26850 $as_echo_n "(cached) " >&6
26851 else
26853 if test "$cross_compiling" = yes; then :
26855 case "${target}" in
26856 *mingw*) libgfor_cv_have_crlf=yes ;;
26857 *) libgfor_cv_have_crlf=no;;
26858 esac
26859 else
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26863 /* This test program should exit with status 0 if system uses a CRLF as
26864 line terminator, and status 1 otherwise.
26865 Since it is used to check for mingw systems, and should return 0 in any
26866 other case, in case of a failure we will not use CRLF. */
26867 #include <sys/stat.h>
26868 #include <stdlib.h>
26869 #include <fcntl.h>
26870 #include <stdio.h>
26872 int main ()
26874 #ifndef O_BINARY
26875 exit(1);
26876 #else
26877 int fd, bytes;
26878 char buff[5];
26880 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26881 if (fd < 0)
26882 exit(1);
26883 if (write (fd, "\n", 1) < 0)
26884 perror ("write");
26886 close (fd);
26888 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26889 exit(1);
26890 bytes = read (fd, buff, 5);
26891 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26892 exit(0);
26893 else
26894 exit(1);
26895 #endif
26897 _ACEOF
26898 if ac_fn_c_try_run "$LINENO"; then :
26899 libgfor_cv_have_crlf=yes
26900 else
26901 libgfor_cv_have_crlf=no
26903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26904 conftest.$ac_objext conftest.beam conftest.$ac_ext
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26909 $as_echo "$libgfor_cv_have_crlf" >&6; }
26910 if test x"$libgfor_cv_have_crlf" = xyes; then
26912 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26916 # Check whether we support AVX extensions
26918 ac_save_CFLAGS="$CFLAGS"
26919 CFLAGS="-O2 -mavx"
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26923 void _mm256_zeroall (void)
26925 __builtin_ia32_vzeroall ();
26928 main ()
26932 return 0;
26934 _ACEOF
26935 if ac_fn_c_try_compile "$LINENO"; then :
26937 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26941 CFLAGS="$ac_save_CFLAGS"
26944 # Check wether we support AVX2 extensions
26946 ac_save_CFLAGS="$CFLAGS"
26947 CFLAGS="-O2 -mavx2"
26948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26949 /* end confdefs.h. */
26951 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26952 __v4di
26953 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26955 return __builtin_ia32_andnotsi256 (__X, __Y);
26958 main ()
26962 return 0;
26964 _ACEOF
26965 if ac_fn_c_try_compile "$LINENO"; then :
26967 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971 CFLAGS="$ac_save_CFLAGS"
26974 # Check wether we support AVX512f extensions
26976 ac_save_CFLAGS="$CFLAGS"
26977 CFLAGS="-O2 -mavx512f"
26978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26979 /* end confdefs.h. */
26981 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26982 __m512d _mm512_add (__m512d a)
26984 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26985 /* For -m64/-mx32 also verify that code will work even if
26986 the target uses call saved zmm16+ and needs to emit
26987 unwind info for them (e.g. on mingw). See PR79127. */
26988 #ifdef __x86_64__
26989 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26990 #endif
26991 return b;
26994 main ()
26998 return 0;
27000 _ACEOF
27001 if ac_fn_c_try_compile "$LINENO"; then :
27003 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27007 CFLAGS="$ac_save_CFLAGS"
27010 # Check for FMA3 extensions
27012 ac_save_CFLAGS="$CFLAGS"
27013 CFLAGS="-O2 -mfma -mno-fma4"
27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27015 /* end confdefs.h. */
27017 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27018 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27019 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27021 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27022 (__v4sf)__B,
27023 (__v4sf)__C);
27026 main ()
27030 return 0;
27032 _ACEOF
27033 if ac_fn_c_try_compile "$LINENO"; then :
27035 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
27038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27039 CFLAGS="$ac_save_CFLAGS"
27042 # Check for FMA4 extensions
27044 ac_save_CFLAGS="$CFLAGS"
27045 CFLAGS="-O2 -mfma4 -mno-fma"
27046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27047 /* end confdefs.h. */
27049 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27050 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27051 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27053 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27054 (__v4sf)__B,
27055 (__v4sf)__C);
27058 main ()
27062 return 0;
27064 _ACEOF
27065 if ac_fn_c_try_compile "$LINENO"; then :
27067 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
27070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27071 CFLAGS="$ac_save_CFLAGS"
27074 # Check if AVX128 works
27076 ac_save_CFLAGS="$CFLAGS"
27077 CFLAGS="-O2 -mavx -mprefer-avx128"
27078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079 /* end confdefs.h. */
27081 void foo()
27085 main ()
27089 return 0;
27091 _ACEOF
27092 if ac_fn_c_try_compile "$LINENO"; then :
27094 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
27096 if true; then
27097 HAVE_AVX128_TRUE=
27098 HAVE_AVX128_FALSE='#'
27099 else
27100 HAVE_AVX128_TRUE='#'
27101 HAVE_AVX128_FALSE=
27104 else
27105 if false; then
27106 HAVE_AVX128_TRUE=
27107 HAVE_AVX128_FALSE='#'
27108 else
27109 HAVE_AVX128_TRUE='#'
27110 HAVE_AVX128_FALSE=
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 CFLAGS="$ac_save_CFLAGS"
27118 # Determine what GCC version number to use in filesystem paths.
27120 get_gcc_base_ver="cat"
27122 # Check whether --with-gcc-major-version-only was given.
27123 if test "${with_gcc_major_version_only+set}" = set; then :
27124 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
27125 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
27133 cat >confcache <<\_ACEOF
27134 # This file is a shell script that caches the results of configure
27135 # tests run on this system so they can be shared between configure
27136 # scripts and configure runs, see configure's option --config-cache.
27137 # It is not useful on other systems. If it contains results you don't
27138 # want to keep, you may remove or edit it.
27140 # config.status only pays attention to the cache file if you give it
27141 # the --recheck option to rerun configure.
27143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27145 # following values.
27147 _ACEOF
27149 # The following way of writing the cache mishandles newlines in values,
27150 # but we know of no workaround that is simple, portable, and efficient.
27151 # So, we kill variables containing newlines.
27152 # Ultrix sh set writes to stderr and can't be redirected directly,
27153 # and sets the high bit in the cache file unless we assign to the vars.
27155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27156 eval ac_val=\$$ac_var
27157 case $ac_val in #(
27158 *${as_nl}*)
27159 case $ac_var in #(
27160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27162 esac
27163 case $ac_var in #(
27164 _ | IFS | as_nl) ;; #(
27165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27166 *) { eval $ac_var=; unset $ac_var;} ;;
27167 esac ;;
27168 esac
27169 done
27171 (set) 2>&1 |
27172 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27173 *${as_nl}ac_space=\ *)
27174 # `set' does not quote correctly, so add quotes: double-quote
27175 # substitution turns \\\\ into \\, and sed turns \\ into \.
27176 sed -n \
27177 "s/'/'\\\\''/g;
27178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27179 ;; #(
27181 # `set' quotes correctly as required by POSIX, so do not add quotes.
27182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27184 esac |
27185 sort
27187 sed '
27188 /^ac_cv_env_/b end
27189 t clear
27190 :clear
27191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27192 t end
27193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27194 :end' >>confcache
27195 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27196 if test -w "$cache_file"; then
27197 if test "x$cache_file" != "x/dev/null"; then
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27199 $as_echo "$as_me: updating cache $cache_file" >&6;}
27200 if test ! -f "$cache_file" || test -h "$cache_file"; then
27201 cat confcache >"$cache_file"
27202 else
27203 case $cache_file in #(
27204 */* | ?:*)
27205 mv -f confcache "$cache_file"$$ &&
27206 mv -f "$cache_file"$$ "$cache_file" ;; #(
27208 mv -f confcache "$cache_file" ;;
27209 esac
27212 else
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27214 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27217 rm -f confcache
27219 if test ${multilib} = yes; then
27220 multilib_arg="--enable-multilib"
27221 else
27222 multilib_arg=
27225 # Write our Makefile and spec file.
27226 ac_config_files="$ac_config_files Makefile libgfortran.spec"
27228 cat >confcache <<\_ACEOF
27229 # This file is a shell script that caches the results of configure
27230 # tests run on this system so they can be shared between configure
27231 # scripts and configure runs, see configure's option --config-cache.
27232 # It is not useful on other systems. If it contains results you don't
27233 # want to keep, you may remove or edit it.
27235 # config.status only pays attention to the cache file if you give it
27236 # the --recheck option to rerun configure.
27238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27240 # following values.
27242 _ACEOF
27244 # The following way of writing the cache mishandles newlines in values,
27245 # but we know of no workaround that is simple, portable, and efficient.
27246 # So, we kill variables containing newlines.
27247 # Ultrix sh set writes to stderr and can't be redirected directly,
27248 # and sets the high bit in the cache file unless we assign to the vars.
27250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27251 eval ac_val=\$$ac_var
27252 case $ac_val in #(
27253 *${as_nl}*)
27254 case $ac_var in #(
27255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27257 esac
27258 case $ac_var in #(
27259 _ | IFS | as_nl) ;; #(
27260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27261 *) { eval $ac_var=; unset $ac_var;} ;;
27262 esac ;;
27263 esac
27264 done
27266 (set) 2>&1 |
27267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27268 *${as_nl}ac_space=\ *)
27269 # `set' does not quote correctly, so add quotes: double-quote
27270 # substitution turns \\\\ into \\, and sed turns \\ into \.
27271 sed -n \
27272 "s/'/'\\\\''/g;
27273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27274 ;; #(
27276 # `set' quotes correctly as required by POSIX, so do not add quotes.
27277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27279 esac |
27280 sort
27282 sed '
27283 /^ac_cv_env_/b end
27284 t clear
27285 :clear
27286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27287 t end
27288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27289 :end' >>confcache
27290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27291 if test -w "$cache_file"; then
27292 if test "x$cache_file" != "x/dev/null"; then
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27294 $as_echo "$as_me: updating cache $cache_file" >&6;}
27295 if test ! -f "$cache_file" || test -h "$cache_file"; then
27296 cat confcache >"$cache_file"
27297 else
27298 case $cache_file in #(
27299 */* | ?:*)
27300 mv -f confcache "$cache_file"$$ &&
27301 mv -f "$cache_file"$$ "$cache_file" ;; #(
27303 mv -f confcache "$cache_file" ;;
27304 esac
27307 else
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27312 rm -f confcache
27314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27315 # Let make expand exec_prefix.
27316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27318 DEFS=-DHAVE_CONFIG_H
27320 ac_libobjs=
27321 ac_ltlibobjs=
27323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27324 # 1. Remove the extension, and $U if already installed.
27325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27328 # will be set to the directory where LIBOBJS objects are built.
27329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27331 done
27332 LIBOBJS=$ac_libobjs
27334 LTLIBOBJS=$ac_ltlibobjs
27337 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
27338 as_fn_error $? "conditional \"onestep\" was never defined.
27339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27342 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27343 if test -n "$am_sleep_pid"; then
27344 # Hide warnings about reused PIDs.
27345 wait $am_sleep_pid 2>/dev/null
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27348 $as_echo "done" >&6; }
27349 if test -n "$EXEEXT"; then
27350 am__EXEEXT_TRUE=
27351 am__EXEEXT_FALSE='#'
27352 else
27353 am__EXEEXT_TRUE='#'
27354 am__EXEEXT_FALSE=
27357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27358 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27362 as_fn_error $? "conditional \"AMDEP\" was never defined.
27363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27365 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27370 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27373 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27374 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27377 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27378 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27381 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27382 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27385 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27386 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27389 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27390 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27393 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27394 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27397 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27398 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27401 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27402 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27405 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27406 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27410 : "${CONFIG_STATUS=./config.status}"
27411 ac_write_fail=0
27412 ac_clean_files_save=$ac_clean_files
27413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27416 as_write_fail=0
27417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27418 #! $SHELL
27419 # Generated by $as_me.
27420 # Run this file to recreate the current configuration.
27421 # Compiler output produced by configure, useful for debugging
27422 # configure, is in config.log if it exists.
27424 debug=false
27425 ac_cs_recheck=false
27426 ac_cs_silent=false
27428 SHELL=\${CONFIG_SHELL-$SHELL}
27429 export SHELL
27430 _ASEOF
27431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27432 ## -------------------- ##
27433 ## M4sh Initialization. ##
27434 ## -------------------- ##
27436 # Be more Bourne compatible
27437 DUALCASE=1; export DUALCASE # for MKS sh
27438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27439 emulate sh
27440 NULLCMD=:
27441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27442 # is contrary to our usage. Disable this feature.
27443 alias -g '${1+"$@"}'='"$@"'
27444 setopt NO_GLOB_SUBST
27445 else
27446 case `(set -o) 2>/dev/null` in #(
27447 *posix*) :
27448 set -o posix ;; #(
27449 *) :
27451 esac
27455 as_nl='
27457 export as_nl
27458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27462 # Prefer a ksh shell builtin over an external printf program on Solaris,
27463 # but without wasting forks for bash or zsh.
27464 if test -z "$BASH_VERSION$ZSH_VERSION" \
27465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27466 as_echo='print -r --'
27467 as_echo_n='print -rn --'
27468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27469 as_echo='printf %s\n'
27470 as_echo_n='printf %s'
27471 else
27472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27474 as_echo_n='/usr/ucb/echo -n'
27475 else
27476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27477 as_echo_n_body='eval
27478 arg=$1;
27479 case $arg in #(
27480 *"$as_nl"*)
27481 expr "X$arg" : "X\\(.*\\)$as_nl";
27482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27483 esac;
27484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27486 export as_echo_n_body
27487 as_echo_n='sh -c $as_echo_n_body as_echo'
27489 export as_echo_body
27490 as_echo='sh -c $as_echo_body as_echo'
27493 # The user is always right.
27494 if test "${PATH_SEPARATOR+set}" != set; then
27495 PATH_SEPARATOR=:
27496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27498 PATH_SEPARATOR=';'
27503 # IFS
27504 # We need space, tab and new line, in precisely that order. Quoting is
27505 # there to prevent editors from complaining about space-tab.
27506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27507 # splitting by setting IFS to empty value.)
27508 IFS=" "" $as_nl"
27510 # Find who we are. Look in the path if we contain no directory separator.
27511 as_myself=
27512 case $0 in #((
27513 *[\\/]* ) as_myself=$0 ;;
27514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27515 for as_dir in $PATH
27517 IFS=$as_save_IFS
27518 test -z "$as_dir" && as_dir=.
27519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27520 done
27521 IFS=$as_save_IFS
27524 esac
27525 # We did not find ourselves, most probably we were run as `sh COMMAND'
27526 # in which case we are not to be found in the path.
27527 if test "x$as_myself" = x; then
27528 as_myself=$0
27530 if test ! -f "$as_myself"; then
27531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27532 exit 1
27535 # Unset variables that we do not need and which cause bugs (e.g. in
27536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27537 # suppresses any "Segmentation fault" message there. '((' could
27538 # trigger a bug in pdksh 5.2.14.
27539 for as_var in BASH_ENV ENV MAIL MAILPATH
27540 do eval test x\${$as_var+set} = xset \
27541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27542 done
27543 PS1='$ '
27544 PS2='> '
27545 PS4='+ '
27547 # NLS nuisances.
27548 LC_ALL=C
27549 export LC_ALL
27550 LANGUAGE=C
27551 export LANGUAGE
27553 # CDPATH.
27554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27558 # ----------------------------------------
27559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27561 # script with STATUS, using 1 if that was 0.
27562 as_fn_error ()
27564 as_status=$1; test $as_status -eq 0 && as_status=1
27565 if test "$4"; then
27566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27569 $as_echo "$as_me: error: $2" >&2
27570 as_fn_exit $as_status
27571 } # as_fn_error
27574 # as_fn_set_status STATUS
27575 # -----------------------
27576 # Set $? to STATUS, without forking.
27577 as_fn_set_status ()
27579 return $1
27580 } # as_fn_set_status
27582 # as_fn_exit STATUS
27583 # -----------------
27584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27585 as_fn_exit ()
27587 set +e
27588 as_fn_set_status $1
27589 exit $1
27590 } # as_fn_exit
27592 # as_fn_unset VAR
27593 # ---------------
27594 # Portably unset VAR.
27595 as_fn_unset ()
27597 { eval $1=; unset $1;}
27599 as_unset=as_fn_unset
27600 # as_fn_append VAR VALUE
27601 # ----------------------
27602 # Append the text in VALUE to the end of the definition contained in VAR. Take
27603 # advantage of any shell optimizations that allow amortized linear growth over
27604 # repeated appends, instead of the typical quadratic growth present in naive
27605 # implementations.
27606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27607 eval 'as_fn_append ()
27609 eval $1+=\$2
27611 else
27612 as_fn_append ()
27614 eval $1=\$$1\$2
27616 fi # as_fn_append
27618 # as_fn_arith ARG...
27619 # ------------------
27620 # Perform arithmetic evaluation on the ARGs, and store the result in the
27621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27622 # must be portable across $(()) and expr.
27623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27624 eval 'as_fn_arith ()
27626 as_val=$(( $* ))
27628 else
27629 as_fn_arith ()
27631 as_val=`expr "$@" || test $? -eq 1`
27633 fi # as_fn_arith
27636 if expr a : '\(a\)' >/dev/null 2>&1 &&
27637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27638 as_expr=expr
27639 else
27640 as_expr=false
27643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27644 as_basename=basename
27645 else
27646 as_basename=false
27649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27650 as_dirname=dirname
27651 else
27652 as_dirname=false
27655 as_me=`$as_basename -- "$0" ||
27656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27657 X"$0" : 'X\(//\)$' \| \
27658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27659 $as_echo X/"$0" |
27660 sed '/^.*\/\([^/][^/]*\)\/*$/{
27661 s//\1/
27664 /^X\/\(\/\/\)$/{
27665 s//\1/
27668 /^X\/\(\/\).*/{
27669 s//\1/
27672 s/.*/./; q'`
27674 # Avoid depending upon Character Ranges.
27675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27678 as_cr_digits='0123456789'
27679 as_cr_alnum=$as_cr_Letters$as_cr_digits
27681 ECHO_C= ECHO_N= ECHO_T=
27682 case `echo -n x` in #(((((
27683 -n*)
27684 case `echo 'xy\c'` in
27685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27686 xy) ECHO_C='\c';;
27687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27688 ECHO_T=' ';;
27689 esac;;
27691 ECHO_N='-n';;
27692 esac
27694 rm -f conf$$ conf$$.exe conf$$.file
27695 if test -d conf$$.dir; then
27696 rm -f conf$$.dir/conf$$.file
27697 else
27698 rm -f conf$$.dir
27699 mkdir conf$$.dir 2>/dev/null
27701 if (echo >conf$$.file) 2>/dev/null; then
27702 if ln -s conf$$.file conf$$ 2>/dev/null; then
27703 as_ln_s='ln -s'
27704 # ... but there are two gotchas:
27705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27707 # In both cases, we have to default to `cp -pR'.
27708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27709 as_ln_s='cp -pR'
27710 elif ln conf$$.file conf$$ 2>/dev/null; then
27711 as_ln_s=ln
27712 else
27713 as_ln_s='cp -pR'
27715 else
27716 as_ln_s='cp -pR'
27718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27719 rmdir conf$$.dir 2>/dev/null
27722 # as_fn_mkdir_p
27723 # -------------
27724 # Create "$as_dir" as a directory, including parents if necessary.
27725 as_fn_mkdir_p ()
27728 case $as_dir in #(
27729 -*) as_dir=./$as_dir;;
27730 esac
27731 test -d "$as_dir" || eval $as_mkdir_p || {
27732 as_dirs=
27733 while :; do
27734 case $as_dir in #(
27735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27736 *) as_qdir=$as_dir;;
27737 esac
27738 as_dirs="'$as_qdir' $as_dirs"
27739 as_dir=`$as_dirname -- "$as_dir" ||
27740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27741 X"$as_dir" : 'X\(//\)[^/]' \| \
27742 X"$as_dir" : 'X\(//\)$' \| \
27743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27744 $as_echo X"$as_dir" |
27745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27746 s//\1/
27749 /^X\(\/\/\)[^/].*/{
27750 s//\1/
27753 /^X\(\/\/\)$/{
27754 s//\1/
27757 /^X\(\/\).*/{
27758 s//\1/
27761 s/.*/./; q'`
27762 test -d "$as_dir" && break
27763 done
27764 test -z "$as_dirs" || eval "mkdir $as_dirs"
27765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27768 } # as_fn_mkdir_p
27769 if mkdir -p . 2>/dev/null; then
27770 as_mkdir_p='mkdir -p "$as_dir"'
27771 else
27772 test -d ./-p && rmdir ./-p
27773 as_mkdir_p=false
27777 # as_fn_executable_p FILE
27778 # -----------------------
27779 # Test if FILE is an executable regular file.
27780 as_fn_executable_p ()
27782 test -f "$1" && test -x "$1"
27783 } # as_fn_executable_p
27784 as_test_x='test -x'
27785 as_executable_p=as_fn_executable_p
27787 # Sed expression to map a string onto a valid CPP name.
27788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27790 # Sed expression to map a string onto a valid variable name.
27791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27794 exec 6>&1
27795 ## ----------------------------------- ##
27796 ## Main body of $CONFIG_STATUS script. ##
27797 ## ----------------------------------- ##
27798 _ASEOF
27799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27802 # Save the log message, to keep $0 and so on meaningful, and to
27803 # report actual input values of CONFIG_FILES etc. instead of their
27804 # values after options handling.
27805 ac_log="
27806 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27807 generated by GNU Autoconf 2.69. Invocation command line was
27809 CONFIG_FILES = $CONFIG_FILES
27810 CONFIG_HEADERS = $CONFIG_HEADERS
27811 CONFIG_LINKS = $CONFIG_LINKS
27812 CONFIG_COMMANDS = $CONFIG_COMMANDS
27813 $ $0 $@
27815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27818 _ACEOF
27820 case $ac_config_files in *"
27821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27822 esac
27824 case $ac_config_headers in *"
27825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27826 esac
27829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27830 # Files that config.status was made for.
27831 config_files="$ac_config_files"
27832 config_headers="$ac_config_headers"
27833 config_commands="$ac_config_commands"
27835 _ACEOF
27837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27838 ac_cs_usage="\
27839 \`$as_me' instantiates files and other configuration actions
27840 from templates according to the current configuration. Unless the files
27841 and actions are specified as TAGs, all are instantiated by default.
27843 Usage: $0 [OPTION]... [TAG]...
27845 -h, --help print this help, then exit
27846 -V, --version print version number and configuration settings, then exit
27847 --config print configuration, then exit
27848 -q, --quiet, --silent
27849 do not print progress messages
27850 -d, --debug don't remove temporary files
27851 --recheck update $as_me by reconfiguring in the same conditions
27852 --file=FILE[:TEMPLATE]
27853 instantiate the configuration file FILE
27854 --header=FILE[:TEMPLATE]
27855 instantiate the configuration header FILE
27857 Configuration files:
27858 $config_files
27860 Configuration headers:
27861 $config_headers
27863 Configuration commands:
27864 $config_commands
27866 Report bugs to the package provider.
27867 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27868 General help using GNU software: <http://www.gnu.org/gethelp/>."
27870 _ACEOF
27871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27873 ac_cs_version="\\
27874 GNU Fortran Runtime Library config.status 0.3
27875 configured by $0, generated by GNU Autoconf 2.69,
27876 with options \\"\$ac_cs_config\\"
27878 Copyright (C) 2012 Free Software Foundation, Inc.
27879 This config.status script is free software; the Free Software Foundation
27880 gives unlimited permission to copy, distribute and modify it."
27882 ac_pwd='$ac_pwd'
27883 srcdir='$srcdir'
27884 INSTALL='$INSTALL'
27885 MKDIR_P='$MKDIR_P'
27886 AWK='$AWK'
27887 test -n "\$AWK" || AWK=awk
27888 _ACEOF
27890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27891 # The default lists apply if the user does not specify any file.
27892 ac_need_defaults=:
27893 while test $# != 0
27895 case $1 in
27896 --*=?*)
27897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27899 ac_shift=:
27901 --*=)
27902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27903 ac_optarg=
27904 ac_shift=:
27907 ac_option=$1
27908 ac_optarg=$2
27909 ac_shift=shift
27911 esac
27913 case $ac_option in
27914 # Handling of the options.
27915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27916 ac_cs_recheck=: ;;
27917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27918 $as_echo "$ac_cs_version"; exit ;;
27919 --config | --confi | --conf | --con | --co | --c )
27920 $as_echo "$ac_cs_config"; exit ;;
27921 --debug | --debu | --deb | --de | --d | -d )
27922 debug=: ;;
27923 --file | --fil | --fi | --f )
27924 $ac_shift
27925 case $ac_optarg in
27926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27927 '') as_fn_error $? "missing file argument" ;;
27928 esac
27929 as_fn_append CONFIG_FILES " '$ac_optarg'"
27930 ac_need_defaults=false;;
27931 --header | --heade | --head | --hea )
27932 $ac_shift
27933 case $ac_optarg in
27934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27935 esac
27936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27937 ac_need_defaults=false;;
27938 --he | --h)
27939 # Conflict between --help and --header
27940 as_fn_error $? "ambiguous option: \`$1'
27941 Try \`$0 --help' for more information.";;
27942 --help | --hel | -h )
27943 $as_echo "$ac_cs_usage"; exit ;;
27944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27946 ac_cs_silent=: ;;
27948 # This is an error.
27949 -*) as_fn_error $? "unrecognized option: \`$1'
27950 Try \`$0 --help' for more information." ;;
27952 *) as_fn_append ac_config_targets " $1"
27953 ac_need_defaults=false ;;
27955 esac
27956 shift
27957 done
27959 ac_configure_extra_args=
27961 if $ac_cs_silent; then
27962 exec 6>/dev/null
27963 ac_configure_extra_args="$ac_configure_extra_args --silent"
27966 _ACEOF
27967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27968 if \$ac_cs_recheck; then
27969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27970 shift
27971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27972 CONFIG_SHELL='$SHELL'
27973 export CONFIG_SHELL
27974 exec "\$@"
27977 _ACEOF
27978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27979 exec 5>>config.log
27981 echo
27982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27983 ## Running $as_me. ##
27984 _ASBOX
27985 $as_echo "$ac_log"
27986 } >&5
27988 _ACEOF
27989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27991 # INIT-COMMANDS
27994 srcdir="$srcdir"
27995 host="$host"
27996 target="$target"
27997 with_multisubdir="$with_multisubdir"
27998 with_multisrctop="$with_multisrctop"
27999 with_target_subdir="$with_target_subdir"
28000 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28001 multi_basedir="$multi_basedir"
28002 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28003 CC="$CC"
28004 CXX="$CXX"
28005 GFORTRAN="$GFORTRAN"
28006 GDC="$GDC"
28007 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28010 # The HP-UX ksh and POSIX shell print the target directory to stdout
28011 # if CDPATH is set.
28012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28014 sed_quote_subst='$sed_quote_subst'
28015 double_quote_subst='$double_quote_subst'
28016 delay_variable_subst='$delay_variable_subst'
28017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28022 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28023 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28024 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28025 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28026 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28027 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28028 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28029 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28030 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28031 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28032 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28033 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28034 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28035 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28036 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28037 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28038 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28039 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28040 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28041 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28042 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28043 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28044 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28045 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28046 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28047 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28048 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28049 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28050 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28051 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28052 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28053 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28054 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28055 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28056 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28057 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28058 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28059 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28060 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28061 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28062 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28063 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28064 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28065 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"`'
28066 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28067 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28068 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28069 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28070 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28071 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28072 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28073 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28074 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28075 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28076 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28077 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28078 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28079 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28080 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28081 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28082 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28083 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28084 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28085 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28086 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28087 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28088 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28089 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28090 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28091 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28092 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28093 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28094 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28095 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28096 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28097 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28098 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28099 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28100 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28101 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28102 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28103 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28104 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28105 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28106 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28107 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28108 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28109 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28110 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28111 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28112 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28113 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28114 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28115 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28116 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28117 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28118 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28119 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28120 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28121 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28122 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28123 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28124 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28125 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28126 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28127 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28128 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28129 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28130 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28131 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28132 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28133 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28134 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28135 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28136 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28137 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28138 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28139 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28140 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28141 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28142 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28143 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28144 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28145 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28146 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28147 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28148 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28149 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28150 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28151 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28152 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28153 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28154 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28155 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28156 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28157 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28158 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28159 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28160 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28161 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28162 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28163 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28164 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28165 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28166 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28167 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28168 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28169 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28170 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28171 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28172 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28173 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28174 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28175 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28176 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28177 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28178 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28179 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28180 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28181 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28182 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28183 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28184 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28185 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28186 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28187 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28188 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28189 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28190 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28191 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28193 LTCC='$LTCC'
28194 LTCFLAGS='$LTCFLAGS'
28195 compiler='$compiler_DEFAULT'
28197 # A function that is used when there is no print builtin or printf.
28198 func_fallback_echo ()
28200 eval 'cat <<_LTECHO_EOF
28202 _LTECHO_EOF'
28205 # Quote evaled strings.
28206 for var in SED \
28207 GREP \
28208 EGREP \
28209 FGREP \
28210 SHELL \
28211 ECHO \
28212 LD \
28213 NM \
28214 LN_S \
28215 lt_SP2NL \
28216 lt_NL2SP \
28217 reload_flag \
28218 OBJDUMP \
28219 deplibs_check_method \
28220 file_magic_cmd \
28221 AR \
28222 AR_FLAGS \
28223 STRIP \
28224 RANLIB \
28225 CC \
28226 CFLAGS \
28227 compiler \
28228 lt_cv_sys_global_symbol_pipe \
28229 lt_cv_sys_global_symbol_to_cdecl \
28230 lt_cv_sys_global_symbol_to_c_name_address \
28231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28232 lt_prog_compiler_no_builtin_flag \
28233 lt_prog_compiler_wl \
28234 lt_prog_compiler_pic \
28235 lt_prog_compiler_static \
28236 lt_cv_prog_compiler_c_o \
28237 need_locks \
28238 DSYMUTIL \
28239 NMEDIT \
28240 LIPO \
28241 OTOOL \
28242 OTOOL64 \
28243 shrext_cmds \
28244 export_dynamic_flag_spec \
28245 whole_archive_flag_spec \
28246 compiler_needs_object \
28247 with_gnu_ld \
28248 allow_undefined_flag \
28249 no_undefined_flag \
28250 hardcode_libdir_flag_spec \
28251 hardcode_libdir_flag_spec_ld \
28252 hardcode_libdir_separator \
28253 fix_srcfile_path \
28254 exclude_expsyms \
28255 include_expsyms \
28256 file_list_spec \
28257 variables_saved_for_relink \
28258 libname_spec \
28259 library_names_spec \
28260 soname_spec \
28261 install_override_mode \
28262 finish_eval \
28263 old_striplib \
28264 striplib \
28265 compiler_lib_search_dirs \
28266 predep_objects \
28267 postdep_objects \
28268 predeps \
28269 postdeps \
28270 compiler_lib_search_path \
28271 LD_FC \
28272 reload_flag_FC \
28273 compiler_FC \
28274 lt_prog_compiler_no_builtin_flag_FC \
28275 lt_prog_compiler_wl_FC \
28276 lt_prog_compiler_pic_FC \
28277 lt_prog_compiler_static_FC \
28278 lt_cv_prog_compiler_c_o_FC \
28279 export_dynamic_flag_spec_FC \
28280 whole_archive_flag_spec_FC \
28281 compiler_needs_object_FC \
28282 with_gnu_ld_FC \
28283 allow_undefined_flag_FC \
28284 no_undefined_flag_FC \
28285 hardcode_libdir_flag_spec_FC \
28286 hardcode_libdir_flag_spec_ld_FC \
28287 hardcode_libdir_separator_FC \
28288 fix_srcfile_path_FC \
28289 exclude_expsyms_FC \
28290 include_expsyms_FC \
28291 file_list_spec_FC \
28292 compiler_lib_search_dirs_FC \
28293 predep_objects_FC \
28294 postdep_objects_FC \
28295 predeps_FC \
28296 postdeps_FC \
28297 compiler_lib_search_path_FC; do
28298 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28299 *[\\\\\\\`\\"\\\$]*)
28300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28305 esac
28306 done
28308 # Double-quote double-evaled strings.
28309 for var in reload_cmds \
28310 old_postinstall_cmds \
28311 old_postuninstall_cmds \
28312 old_archive_cmds \
28313 extract_expsyms_cmds \
28314 old_archive_from_new_cmds \
28315 old_archive_from_expsyms_cmds \
28316 archive_cmds \
28317 archive_expsym_cmds \
28318 module_cmds \
28319 module_expsym_cmds \
28320 export_symbols_cmds \
28321 prelink_cmds \
28322 postinstall_cmds \
28323 postuninstall_cmds \
28324 finish_cmds \
28325 sys_lib_search_path_spec \
28326 sys_lib_dlsearch_path_spec \
28327 reload_cmds_FC \
28328 old_archive_cmds_FC \
28329 old_archive_from_new_cmds_FC \
28330 old_archive_from_expsyms_cmds_FC \
28331 archive_cmds_FC \
28332 archive_expsym_cmds_FC \
28333 module_cmds_FC \
28334 module_expsym_cmds_FC \
28335 export_symbols_cmds_FC \
28336 prelink_cmds_FC; do
28337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28338 *[\\\\\\\`\\"\\\$]*)
28339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28344 esac
28345 done
28347 ac_aux_dir='$ac_aux_dir'
28348 xsi_shell='$xsi_shell'
28349 lt_shell_append='$lt_shell_append'
28351 # See if we are running on zsh, and set the options which allow our
28352 # commands through without removal of \ escapes INIT.
28353 if test -n "\${ZSH_VERSION+set}" ; then
28354 setopt NO_GLOB_SUBST
28358 PACKAGE='$PACKAGE'
28359 VERSION='$VERSION'
28360 TIMESTAMP='$TIMESTAMP'
28361 RM='$RM'
28362 ofile='$ofile'
28369 GCC="$GCC"
28370 CC="$CC"
28371 acx_cv_header_stdint="$acx_cv_header_stdint"
28372 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28373 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28374 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28375 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28376 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28377 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28378 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28379 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28380 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28381 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28382 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28383 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28384 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28387 _ACEOF
28389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28391 # Handling of arguments.
28392 for ac_config_target in $ac_config_targets
28394 case $ac_config_target in
28395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28396 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28397 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28398 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28399 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28401 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28403 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28404 esac
28405 done
28408 # If the user did not use the arguments to specify the items to instantiate,
28409 # then the envvar interface is used. Set only those that are not.
28410 # We use the long form for the default assignment because of an extremely
28411 # bizarre bug on SunOS 4.1.3.
28412 if $ac_need_defaults; then
28413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28418 # Have a temporary directory for convenience. Make it in the build tree
28419 # simply because there is no reason against having it here, and in addition,
28420 # creating and moving files from /tmp can sometimes cause problems.
28421 # Hook for its removal unless debugging.
28422 # Note that there is a small window in which the directory will not be cleaned:
28423 # after its creation but before its name has been assigned to `$tmp'.
28424 $debug ||
28426 tmp= ac_tmp=
28427 trap 'exit_status=$?
28428 : "${ac_tmp:=$tmp}"
28429 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28431 trap 'as_fn_exit 1' 1 2 13 15
28433 # Create a (secure) tmp directory for tmp files.
28436 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28437 test -d "$tmp"
28438 } ||
28440 tmp=./conf$$-$RANDOM
28441 (umask 077 && mkdir "$tmp")
28442 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28443 ac_tmp=$tmp
28445 # Set up the scripts for CONFIG_FILES section.
28446 # No need to generate them if there are no CONFIG_FILES.
28447 # This happens for instance with `./config.status config.h'.
28448 if test -n "$CONFIG_FILES"; then
28451 ac_cr=`echo X | tr X '\015'`
28452 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28453 # But we know of no other shell where ac_cr would be empty at this
28454 # point, so we can use a bashism as a fallback.
28455 if test "x$ac_cr" = x; then
28456 eval ac_cr=\$\'\\r\'
28458 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28459 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28460 ac_cs_awk_cr='\\r'
28461 else
28462 ac_cs_awk_cr=$ac_cr
28465 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28466 _ACEOF
28470 echo "cat >conf$$subs.awk <<_ACEOF" &&
28471 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28472 echo "_ACEOF"
28473 } >conf$$subs.sh ||
28474 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28475 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28476 ac_delim='%!_!# '
28477 for ac_last_try in false false false false false :; do
28478 . ./conf$$subs.sh ||
28479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28481 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28482 if test $ac_delim_n = $ac_delim_num; then
28483 break
28484 elif $ac_last_try; then
28485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28486 else
28487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28489 done
28490 rm -f conf$$subs.sh
28492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28493 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28494 _ACEOF
28495 sed -n '
28497 s/^/S["/; s/!.*/"]=/
28500 s/^[^!]*!//
28501 :repl
28502 t repl
28503 s/'"$ac_delim"'$//
28504 t delim
28507 s/\(.\{148\}\)..*/\1/
28508 t more1
28509 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28512 b repl
28513 :more1
28514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28517 s/.\{148\}//
28518 t nl
28519 :delim
28521 s/\(.\{148\}\)..*/\1/
28522 t more2
28523 s/["\\]/\\&/g; s/^/"/; s/$/"/
28526 :more2
28527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28530 s/.\{148\}//
28531 t delim
28532 ' <conf$$subs.awk | sed '
28533 /^[^""]/{
28535 s/\n//
28537 ' >>$CONFIG_STATUS || ac_write_fail=1
28538 rm -f conf$$subs.awk
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 _ACAWK
28541 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28542 for (key in S) S_is_set[key] = 1
28543 FS = "\a"
28547 line = $ 0
28548 nfields = split(line, field, "@")
28549 substed = 0
28550 len = length(field[1])
28551 for (i = 2; i < nfields; i++) {
28552 key = field[i]
28553 keylen = length(key)
28554 if (S_is_set[key]) {
28555 value = S[key]
28556 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28557 len += length(value) + length(field[++i])
28558 substed = 1
28559 } else
28560 len += 1 + keylen
28563 print line
28566 _ACAWK
28567 _ACEOF
28568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28569 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28570 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28571 else
28573 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28574 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28575 _ACEOF
28577 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28578 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28579 # trailing colons and then remove the whole line if VPATH becomes empty
28580 # (actually we leave an empty line to preserve line numbers).
28581 if test "x$srcdir" = x.; then
28582 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28584 s///
28585 s/^/:/
28586 s/[ ]*$/:/
28587 s/:\$(srcdir):/:/g
28588 s/:\${srcdir}:/:/g
28589 s/:@srcdir@:/:/g
28590 s/^:*//
28591 s/:*$//
28593 s/\(=[ ]*\).*/\1/
28595 s/\n//
28596 s/^[^=]*=[ ]*$//
28600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28601 fi # test -n "$CONFIG_FILES"
28603 # Set up the scripts for CONFIG_HEADERS section.
28604 # No need to generate them if there are no CONFIG_HEADERS.
28605 # This happens for instance with `./config.status Makefile'.
28606 if test -n "$CONFIG_HEADERS"; then
28607 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28608 BEGIN {
28609 _ACEOF
28611 # Transform confdefs.h into an awk script `defines.awk', embedded as
28612 # here-document in config.status, that substitutes the proper values into
28613 # config.h.in to produce config.h.
28615 # Create a delimiter string that does not exist in confdefs.h, to ease
28616 # handling of long lines.
28617 ac_delim='%!_!# '
28618 for ac_last_try in false false :; do
28619 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28620 if test -z "$ac_tt"; then
28621 break
28622 elif $ac_last_try; then
28623 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28624 else
28625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28627 done
28629 # For the awk script, D is an array of macro values keyed by name,
28630 # likewise P contains macro parameters if any. Preserve backslash
28631 # newline sequences.
28633 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28634 sed -n '
28635 s/.\{148\}/&'"$ac_delim"'/g
28636 t rset
28637 :rset
28638 s/^[ ]*#[ ]*define[ ][ ]*/ /
28639 t def
28641 :def
28642 s/\\$//
28643 t bsnl
28644 s/["\\]/\\&/g
28645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28646 D["\1"]=" \3"/p
28647 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28649 :bsnl
28650 s/["\\]/\\&/g
28651 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28652 D["\1"]=" \3\\\\\\n"\\/p
28653 t cont
28654 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28655 t cont
28657 :cont
28659 s/.\{148\}/&'"$ac_delim"'/g
28660 t clear
28661 :clear
28662 s/\\$//
28663 t bsnlc
28664 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28666 :bsnlc
28667 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28668 b cont
28669 ' <confdefs.h | sed '
28670 s/'"$ac_delim"'/"\\\
28671 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28674 for (key in D) D_is_set[key] = 1
28675 FS = "\a"
28677 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28678 line = \$ 0
28679 split(line, arg, " ")
28680 if (arg[1] == "#") {
28681 defundef = arg[2]
28682 mac1 = arg[3]
28683 } else {
28684 defundef = substr(arg[1], 2)
28685 mac1 = arg[2]
28687 split(mac1, mac2, "(") #)
28688 macro = mac2[1]
28689 prefix = substr(line, 1, index(line, defundef) - 1)
28690 if (D_is_set[macro]) {
28691 # Preserve the white space surrounding the "#".
28692 print prefix "define", macro P[macro] D[macro]
28693 next
28694 } else {
28695 # Replace #undef with comments. This is necessary, for example,
28696 # in the case of _POSIX_SOURCE, which is predefined and required
28697 # on some systems where configure will not decide to define it.
28698 if (defundef == "undef") {
28699 print "/*", prefix defundef, macro, "*/"
28700 next
28704 { print }
28705 _ACAWK
28706 _ACEOF
28707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28708 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28709 fi # test -n "$CONFIG_HEADERS"
28712 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28713 shift
28714 for ac_tag
28716 case $ac_tag in
28717 :[FHLC]) ac_mode=$ac_tag; continue;;
28718 esac
28719 case $ac_mode$ac_tag in
28720 :[FHL]*:*);;
28721 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28722 :[FH]-) ac_tag=-:-;;
28723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28724 esac
28725 ac_save_IFS=$IFS
28726 IFS=:
28727 set x $ac_tag
28728 IFS=$ac_save_IFS
28729 shift
28730 ac_file=$1
28731 shift
28733 case $ac_mode in
28734 :L) ac_source=$1;;
28735 :[FH])
28736 ac_file_inputs=
28737 for ac_f
28739 case $ac_f in
28740 -) ac_f="$ac_tmp/stdin";;
28741 *) # Look for the file first in the build tree, then in the source tree
28742 # (if the path is not absolute). The absolute path cannot be DOS-style,
28743 # because $ac_f cannot contain `:'.
28744 test -f "$ac_f" ||
28745 case $ac_f in
28746 [\\/$]*) false;;
28747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28748 esac ||
28749 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28750 esac
28751 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28752 as_fn_append ac_file_inputs " '$ac_f'"
28753 done
28755 # Let's still pretend it is `configure' which instantiates (i.e., don't
28756 # use $as_me), people would be surprised to read:
28757 # /* config.h. Generated by config.status. */
28758 configure_input='Generated from '`
28759 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28760 `' by configure.'
28761 if test x"$ac_file" != x-; then
28762 configure_input="$ac_file. $configure_input"
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28764 $as_echo "$as_me: creating $ac_file" >&6;}
28766 # Neutralize special characters interpreted by sed in replacement strings.
28767 case $configure_input in #(
28768 *\&* | *\|* | *\\* )
28769 ac_sed_conf_input=`$as_echo "$configure_input" |
28770 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28771 *) ac_sed_conf_input=$configure_input;;
28772 esac
28774 case $ac_tag in
28775 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28777 esac
28779 esac
28781 ac_dir=`$as_dirname -- "$ac_file" ||
28782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28783 X"$ac_file" : 'X\(//\)[^/]' \| \
28784 X"$ac_file" : 'X\(//\)$' \| \
28785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28786 $as_echo X"$ac_file" |
28787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28788 s//\1/
28791 /^X\(\/\/\)[^/].*/{
28792 s//\1/
28795 /^X\(\/\/\)$/{
28796 s//\1/
28799 /^X\(\/\).*/{
28800 s//\1/
28803 s/.*/./; q'`
28804 as_dir="$ac_dir"; as_fn_mkdir_p
28805 ac_builddir=.
28807 case "$ac_dir" in
28808 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28811 # A ".." for each directory in $ac_dir_suffix.
28812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28813 case $ac_top_builddir_sub in
28814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28816 esac ;;
28817 esac
28818 ac_abs_top_builddir=$ac_pwd
28819 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28820 # for backward compatibility:
28821 ac_top_builddir=$ac_top_build_prefix
28823 case $srcdir in
28824 .) # We are building in place.
28825 ac_srcdir=.
28826 ac_top_srcdir=$ac_top_builddir_sub
28827 ac_abs_top_srcdir=$ac_pwd ;;
28828 [\\/]* | ?:[\\/]* ) # Absolute name.
28829 ac_srcdir=$srcdir$ac_dir_suffix;
28830 ac_top_srcdir=$srcdir
28831 ac_abs_top_srcdir=$srcdir ;;
28832 *) # Relative name.
28833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28834 ac_top_srcdir=$ac_top_build_prefix$srcdir
28835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28836 esac
28837 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28840 case $ac_mode in
28843 # CONFIG_FILE
28846 case $INSTALL in
28847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28849 esac
28850 ac_MKDIR_P=$MKDIR_P
28851 case $MKDIR_P in
28852 [\\/$]* | ?:[\\/]* ) ;;
28853 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28854 esac
28855 _ACEOF
28857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28858 # If the template does not know about datarootdir, expand it.
28859 # FIXME: This hack should be removed a few years after 2.60.
28860 ac_datarootdir_hack=; ac_datarootdir_seen=
28861 ac_sed_dataroot='
28862 /datarootdir/ {
28866 /@datadir@/p
28867 /@docdir@/p
28868 /@infodir@/p
28869 /@localedir@/p
28870 /@mandir@/p'
28871 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28872 *datarootdir*) ac_datarootdir_seen=yes;;
28873 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28875 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28876 _ACEOF
28877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28878 ac_datarootdir_hack='
28879 s&@datadir@&$datadir&g
28880 s&@docdir@&$docdir&g
28881 s&@infodir@&$infodir&g
28882 s&@localedir@&$localedir&g
28883 s&@mandir@&$mandir&g
28884 s&\\\${datarootdir}&$datarootdir&g' ;;
28885 esac
28886 _ACEOF
28888 # Neutralize VPATH when `$srcdir' = `.'.
28889 # Shell code in configure.ac might set extrasub.
28890 # FIXME: do we really want to maintain this feature?
28891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28892 ac_sed_extra="$ac_vpsub
28893 $extrasub
28894 _ACEOF
28895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28898 s|@configure_input@|$ac_sed_conf_input|;t t
28899 s&@top_builddir@&$ac_top_builddir_sub&;t t
28900 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28901 s&@srcdir@&$ac_srcdir&;t t
28902 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28903 s&@top_srcdir@&$ac_top_srcdir&;t t
28904 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28905 s&@builddir@&$ac_builddir&;t t
28906 s&@abs_builddir@&$ac_abs_builddir&;t t
28907 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28908 s&@INSTALL@&$ac_INSTALL&;t t
28909 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28910 $ac_datarootdir_hack
28912 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28913 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28915 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28916 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28918 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28920 which seems to be undefined. Please make sure it is defined" >&5
28921 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28922 which seems to be undefined. Please make sure it is defined" >&2;}
28924 rm -f "$ac_tmp/stdin"
28925 case $ac_file in
28926 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28927 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28928 esac \
28929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28933 # CONFIG_HEADER
28935 if test x"$ac_file" != x-; then
28937 $as_echo "/* $configure_input */" \
28938 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28939 } >"$ac_tmp/config.h" \
28940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28941 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28943 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28944 else
28945 rm -f "$ac_file"
28946 mv "$ac_tmp/config.h" "$ac_file" \
28947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28949 else
28950 $as_echo "/* $configure_input */" \
28951 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28952 || as_fn_error $? "could not create -" "$LINENO" 5
28954 # Compute "$ac_file"'s index in $config_headers.
28955 _am_arg="$ac_file"
28956 _am_stamp_count=1
28957 for _am_header in $config_headers :; do
28958 case $_am_header in
28959 $_am_arg | $_am_arg:* )
28960 break ;;
28962 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28963 esac
28964 done
28965 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28966 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28967 X"$_am_arg" : 'X\(//\)[^/]' \| \
28968 X"$_am_arg" : 'X\(//\)$' \| \
28969 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28970 $as_echo X"$_am_arg" |
28971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28972 s//\1/
28975 /^X\(\/\/\)[^/].*/{
28976 s//\1/
28979 /^X\(\/\/\)$/{
28980 s//\1/
28983 /^X\(\/\).*/{
28984 s//\1/
28987 s/.*/./; q'`/stamp-h$_am_stamp_count
28990 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28991 $as_echo "$as_me: executing $ac_file commands" >&6;}
28993 esac
28996 case $ac_file$ac_mode in
28997 "default-1":C)
28998 # Only add multilib support code if we just rebuilt the top-level
28999 # Makefile.
29000 case " $CONFIG_FILES " in
29001 *" Makefile "*)
29002 ac_file=Makefile . ${multi_basedir}/config-ml.in
29004 esac ;;
29005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29006 # Older Autoconf quotes --file arguments for eval, but not when files
29007 # are listed without --file. Let's play safe and only enable the eval
29008 # if we detect the quoting.
29009 case $CONFIG_FILES in
29010 *\'*) eval set x "$CONFIG_FILES" ;;
29011 *) set x $CONFIG_FILES ;;
29012 esac
29013 shift
29014 for mf
29016 # Strip MF so we end up with the name of the file.
29017 mf=`echo "$mf" | sed -e 's/:.*$//'`
29018 # Check whether this is an Automake generated Makefile or not.
29019 # We used to match only the files named 'Makefile.in', but
29020 # some people rename them; so instead we look at the file content.
29021 # Grep'ing the first line is not enough: some people post-process
29022 # each Makefile.in and add a new line on top of each file to say so.
29023 # Grep'ing the whole file is not good either: AIX grep has a line
29024 # limit of 2048, but all sed's we know have understand at least 4000.
29025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29026 dirpart=`$as_dirname -- "$mf" ||
29027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29028 X"$mf" : 'X\(//\)[^/]' \| \
29029 X"$mf" : 'X\(//\)$' \| \
29030 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29031 $as_echo X"$mf" |
29032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29033 s//\1/
29036 /^X\(\/\/\)[^/].*/{
29037 s//\1/
29040 /^X\(\/\/\)$/{
29041 s//\1/
29044 /^X\(\/\).*/{
29045 s//\1/
29048 s/.*/./; q'`
29049 else
29050 continue
29052 # Extract the definition of DEPDIR, am__include, and am__quote
29053 # from the Makefile without running 'make'.
29054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29055 test -z "$DEPDIR" && continue
29056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29057 test -z "$am__include" && continue
29058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29059 # Find all dependency output files, they are included files with
29060 # $(DEPDIR) in their names. We invoke sed twice because it is the
29061 # simplest approach to changing $(DEPDIR) to its actual value in the
29062 # expansion.
29063 for file in `sed -n "
29064 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29066 # Make sure the directory exists.
29067 test -f "$dirpart/$file" && continue
29068 fdir=`$as_dirname -- "$file" ||
29069 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29070 X"$file" : 'X\(//\)[^/]' \| \
29071 X"$file" : 'X\(//\)$' \| \
29072 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29073 $as_echo X"$file" |
29074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29075 s//\1/
29078 /^X\(\/\/\)[^/].*/{
29079 s//\1/
29082 /^X\(\/\/\)$/{
29083 s//\1/
29086 /^X\(\/\).*/{
29087 s//\1/
29090 s/.*/./; q'`
29091 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29092 # echo "creating $dirpart/$file"
29093 echo '# dummy' > "$dirpart/$file"
29094 done
29095 done
29098 "libtool":C)
29100 # See if we are running on zsh, and set the options which allow our
29101 # commands through without removal of \ escapes.
29102 if test -n "${ZSH_VERSION+set}" ; then
29103 setopt NO_GLOB_SUBST
29106 cfgfile="${ofile}T"
29107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29108 $RM "$cfgfile"
29110 cat <<_LT_EOF >> "$cfgfile"
29111 #! $SHELL
29113 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29114 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29116 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29118 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29119 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
29120 # Written by Gordon Matzigkeit, 1996
29122 # This file is part of GNU Libtool.
29124 # GNU Libtool is free software; you can redistribute it and/or
29125 # modify it under the terms of the GNU General Public License as
29126 # published by the Free Software Foundation; either version 2 of
29127 # the License, or (at your option) any later version.
29129 # As a special exception to the GNU General Public License,
29130 # if you distribute this file as part of a program or library that
29131 # is built using GNU Libtool, you may include this file under the
29132 # same distribution terms that you use for the rest of that program.
29134 # GNU Libtool is distributed in the hope that it will be useful,
29135 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29136 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29137 # GNU General Public License for more details.
29139 # You should have received a copy of the GNU General Public License
29140 # along with GNU Libtool; see the file COPYING. If not, a copy
29141 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29142 # obtained by writing to the Free Software Foundation, Inc.,
29143 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29146 # The names of the tagged configurations supported by this script.
29147 available_tags="FC "
29149 # ### BEGIN LIBTOOL CONFIG
29151 # A sed program that does not truncate output.
29152 SED=$lt_SED
29154 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29155 Xsed="\$SED -e 1s/^X//"
29157 # A grep program that handles long lines.
29158 GREP=$lt_GREP
29160 # An ERE matcher.
29161 EGREP=$lt_EGREP
29163 # A literal string matcher.
29164 FGREP=$lt_FGREP
29166 # Shell to use when invoking shell scripts.
29167 SHELL=$lt_SHELL
29169 # An echo program that protects backslashes.
29170 ECHO=$lt_ECHO
29172 # Which release of libtool.m4 was used?
29173 macro_version=$macro_version
29174 macro_revision=$macro_revision
29176 # Whether or not to build shared libraries.
29177 build_libtool_libs=$enable_shared
29179 # Whether or not to build static libraries.
29180 build_old_libs=$enable_static
29182 # What type of objects to build.
29183 pic_mode=$pic_mode
29185 # Whether or not to optimize for fast installation.
29186 fast_install=$enable_fast_install
29188 # The host system.
29189 host_alias=$host_alias
29190 host=$host
29191 host_os=$host_os
29193 # The build system.
29194 build_alias=$build_alias
29195 build=$build
29196 build_os=$build_os
29198 # A BSD- or MS-compatible name lister.
29199 NM=$lt_NM
29201 # Whether we need soft or hard links.
29202 LN_S=$lt_LN_S
29204 # What is the maximum length of a command?
29205 max_cmd_len=$max_cmd_len
29207 # Object file suffix (normally "o").
29208 objext=$ac_objext
29210 # Executable file suffix (normally "").
29211 exeext=$exeext
29213 # whether the shell understands "unset".
29214 lt_unset=$lt_unset
29216 # turn spaces into newlines.
29217 SP2NL=$lt_lt_SP2NL
29219 # turn newlines into spaces.
29220 NL2SP=$lt_lt_NL2SP
29222 # An object symbol dumper.
29223 OBJDUMP=$lt_OBJDUMP
29225 # Method to check whether dependent libraries are shared objects.
29226 deplibs_check_method=$lt_deplibs_check_method
29228 # Command to use when deplibs_check_method == "file_magic".
29229 file_magic_cmd=$lt_file_magic_cmd
29231 # The archiver.
29232 AR=$lt_AR
29233 AR_FLAGS=$lt_AR_FLAGS
29235 # A symbol stripping program.
29236 STRIP=$lt_STRIP
29238 # Commands used to install an old-style archive.
29239 RANLIB=$lt_RANLIB
29240 old_postinstall_cmds=$lt_old_postinstall_cmds
29241 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29243 # Whether to use a lock for old archive extraction.
29244 lock_old_archive_extraction=$lock_old_archive_extraction
29246 # A C compiler.
29247 LTCC=$lt_CC
29249 # LTCC compiler flags.
29250 LTCFLAGS=$lt_CFLAGS
29252 # Take the output of nm and produce a listing of raw symbols and C names.
29253 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29255 # Transform the output of nm in a proper C declaration.
29256 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29258 # Transform the output of nm in a C name address pair.
29259 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29261 # Transform the output of nm in a C name address pair when lib prefix is needed.
29262 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29264 # The name of the directory that contains temporary libtool files.
29265 objdir=$objdir
29267 # Used to examine libraries when file_magic_cmd begins with "file".
29268 MAGIC_CMD=$MAGIC_CMD
29270 # Must we lock files when doing compilation?
29271 need_locks=$lt_need_locks
29273 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29274 DSYMUTIL=$lt_DSYMUTIL
29276 # Tool to change global to local symbols on Mac OS X.
29277 NMEDIT=$lt_NMEDIT
29279 # Tool to manipulate fat objects and archives on Mac OS X.
29280 LIPO=$lt_LIPO
29282 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29283 OTOOL=$lt_OTOOL
29285 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29286 OTOOL64=$lt_OTOOL64
29288 # Old archive suffix (normally "a").
29289 libext=$libext
29291 # Shared library suffix (normally ".so").
29292 shrext_cmds=$lt_shrext_cmds
29294 # The commands to extract the exported symbol list from a shared archive.
29295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29297 # Variables whose values should be saved in libtool wrapper scripts and
29298 # restored at link time.
29299 variables_saved_for_relink=$lt_variables_saved_for_relink
29301 # Do we need the "lib" prefix for modules?
29302 need_lib_prefix=$need_lib_prefix
29304 # Do we need a version for libraries?
29305 need_version=$need_version
29307 # Library versioning type.
29308 version_type=$version_type
29310 # Shared library runtime path variable.
29311 runpath_var=$runpath_var
29313 # Shared library path variable.
29314 shlibpath_var=$shlibpath_var
29316 # Is shlibpath searched before the hard-coded library search path?
29317 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29319 # Format of library name prefix.
29320 libname_spec=$lt_libname_spec
29322 # List of archive names. First name is the real one, the rest are links.
29323 # The last name is the one that the linker finds with -lNAME
29324 library_names_spec=$lt_library_names_spec
29326 # The coded name of the library, if different from the real name.
29327 soname_spec=$lt_soname_spec
29329 # Permission mode override for installation of shared libraries.
29330 install_override_mode=$lt_install_override_mode
29332 # Command to use after installation of a shared archive.
29333 postinstall_cmds=$lt_postinstall_cmds
29335 # Command to use after uninstallation of a shared archive.
29336 postuninstall_cmds=$lt_postuninstall_cmds
29338 # Commands used to finish a libtool library installation in a directory.
29339 finish_cmds=$lt_finish_cmds
29341 # As "finish_cmds", except a single script fragment to be evaled but
29342 # not shown.
29343 finish_eval=$lt_finish_eval
29345 # Whether we should hardcode library paths into libraries.
29346 hardcode_into_libs=$hardcode_into_libs
29348 # Compile-time system search path for libraries.
29349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29351 # Run-time system search path for libraries.
29352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29354 # Whether dlopen is supported.
29355 dlopen_support=$enable_dlopen
29357 # Whether dlopen of programs is supported.
29358 dlopen_self=$enable_dlopen_self
29360 # Whether dlopen of statically linked programs is supported.
29361 dlopen_self_static=$enable_dlopen_self_static
29363 # Commands to strip libraries.
29364 old_striplib=$lt_old_striplib
29365 striplib=$lt_striplib
29368 # The linker used to build libraries.
29369 LD=$lt_LD
29371 # How to create reloadable object files.
29372 reload_flag=$lt_reload_flag
29373 reload_cmds=$lt_reload_cmds
29375 # Commands used to build an old-style archive.
29376 old_archive_cmds=$lt_old_archive_cmds
29378 # A language specific compiler.
29379 CC=$lt_compiler
29381 # Is the compiler the GNU compiler?
29382 with_gcc=$GCC
29384 # Compiler flag to turn off builtin functions.
29385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29387 # How to pass a linker flag through the compiler.
29388 wl=$lt_lt_prog_compiler_wl
29390 # Additional compiler flags for building library objects.
29391 pic_flag=$lt_lt_prog_compiler_pic
29393 # Compiler flag to prevent dynamic linking.
29394 link_static_flag=$lt_lt_prog_compiler_static
29396 # Does compiler simultaneously support -c and -o options?
29397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29399 # Whether or not to add -lc for building shared libraries.
29400 build_libtool_need_lc=$archive_cmds_need_lc
29402 # Whether or not to disallow shared libs when runtime libs are static.
29403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29405 # Compiler flag to allow reflexive dlopens.
29406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29408 # Compiler flag to generate shared objects directly from archives.
29409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29411 # Whether the compiler copes with passing no objects directly.
29412 compiler_needs_object=$lt_compiler_needs_object
29414 # Create an old-style archive from a shared archive.
29415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29417 # Create a temporary old-style archive to link instead of a shared archive.
29418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29420 # Commands used to build a shared archive.
29421 archive_cmds=$lt_archive_cmds
29422 archive_expsym_cmds=$lt_archive_expsym_cmds
29424 # Commands used to build a loadable module if different from building
29425 # a shared archive.
29426 module_cmds=$lt_module_cmds
29427 module_expsym_cmds=$lt_module_expsym_cmds
29429 # Whether we are building with GNU ld or not.
29430 with_gnu_ld=$lt_with_gnu_ld
29432 # Flag that allows shared libraries with undefined symbols to be built.
29433 allow_undefined_flag=$lt_allow_undefined_flag
29435 # Flag that enforces no undefined symbols.
29436 no_undefined_flag=$lt_no_undefined_flag
29438 # Flag to hardcode \$libdir into a binary during linking.
29439 # This must work even if \$libdir does not exist
29440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29442 # If ld is used when linking, flag to hardcode \$libdir into a binary
29443 # during linking. This must work even if \$libdir does not exist.
29444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29446 # Whether we need a single "-rpath" flag with a separated argument.
29447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29450 # DIR into the resulting binary.
29451 hardcode_direct=$hardcode_direct
29453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29454 # DIR into the resulting binary and the resulting library dependency is
29455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29456 # library is relocated.
29457 hardcode_direct_absolute=$hardcode_direct_absolute
29459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29460 # into the resulting binary.
29461 hardcode_minus_L=$hardcode_minus_L
29463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29464 # into the resulting binary.
29465 hardcode_shlibpath_var=$hardcode_shlibpath_var
29467 # Set to "yes" if building a shared library automatically hardcodes DIR
29468 # into the library and all subsequent libraries and executables linked
29469 # against it.
29470 hardcode_automatic=$hardcode_automatic
29472 # Set to yes if linker adds runtime paths of dependent libraries
29473 # to runtime path list.
29474 inherit_rpath=$inherit_rpath
29476 # Whether libtool must link a program against all its dependency libraries.
29477 link_all_deplibs=$link_all_deplibs
29479 # Fix the shell variable \$srcfile for the compiler.
29480 fix_srcfile_path=$lt_fix_srcfile_path
29482 # Set to "yes" if exported symbols are required.
29483 always_export_symbols=$always_export_symbols
29485 # The commands to list exported symbols.
29486 export_symbols_cmds=$lt_export_symbols_cmds
29488 # Symbols that should not be listed in the preloaded symbols.
29489 exclude_expsyms=$lt_exclude_expsyms
29491 # Symbols that must always be exported.
29492 include_expsyms=$lt_include_expsyms
29494 # Commands necessary for linking programs (against libraries) with templates.
29495 prelink_cmds=$lt_prelink_cmds
29497 # Specify filename containing input files.
29498 file_list_spec=$lt_file_list_spec
29500 # How to hardcode a shared library path into an executable.
29501 hardcode_action=$hardcode_action
29503 # The directories searched by this compiler when creating a shared library.
29504 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29506 # Dependencies to place before and after the objects being linked to
29507 # create a shared library.
29508 predep_objects=$lt_predep_objects
29509 postdep_objects=$lt_postdep_objects
29510 predeps=$lt_predeps
29511 postdeps=$lt_postdeps
29513 # The library search path used internally by the compiler when linking
29514 # a shared library.
29515 compiler_lib_search_path=$lt_compiler_lib_search_path
29517 # ### END LIBTOOL CONFIG
29519 _LT_EOF
29521 case $host_os in
29522 aix3*)
29523 cat <<\_LT_EOF >> "$cfgfile"
29524 # AIX sometimes has problems with the GCC collect2 program. For some
29525 # reason, if we set the COLLECT_NAMES environment variable, the problems
29526 # vanish in a puff of smoke.
29527 if test "X${COLLECT_NAMES+set}" != Xset; then
29528 COLLECT_NAMES=
29529 export COLLECT_NAMES
29531 _LT_EOF
29533 esac
29536 ltmain="$ac_aux_dir/ltmain.sh"
29539 # We use sed instead of cat because bash on DJGPP gets confused if
29540 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29541 # text mode, it properly converts lines to CR/LF. This bash problem
29542 # is reportedly fixed, but why not run on old versions too?
29543 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29544 || (rm -f "$cfgfile"; exit 1)
29546 case $xsi_shell in
29547 yes)
29548 cat << \_LT_EOF >> "$cfgfile"
29550 # func_dirname file append nondir_replacement
29551 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29552 # otherwise set result to NONDIR_REPLACEMENT.
29553 func_dirname ()
29555 case ${1} in
29556 */*) func_dirname_result="${1%/*}${2}" ;;
29557 * ) func_dirname_result="${3}" ;;
29558 esac
29561 # func_basename file
29562 func_basename ()
29564 func_basename_result="${1##*/}"
29567 # func_dirname_and_basename file append nondir_replacement
29568 # perform func_basename and func_dirname in a single function
29569 # call:
29570 # dirname: Compute the dirname of FILE. If nonempty,
29571 # add APPEND to the result, otherwise set result
29572 # to NONDIR_REPLACEMENT.
29573 # value returned in "$func_dirname_result"
29574 # basename: Compute filename of FILE.
29575 # value retuned in "$func_basename_result"
29576 # Implementation must be kept synchronized with func_dirname
29577 # and func_basename. For efficiency, we do not delegate to
29578 # those functions but instead duplicate the functionality here.
29579 func_dirname_and_basename ()
29581 case ${1} in
29582 */*) func_dirname_result="${1%/*}${2}" ;;
29583 * ) func_dirname_result="${3}" ;;
29584 esac
29585 func_basename_result="${1##*/}"
29588 # func_stripname prefix suffix name
29589 # strip PREFIX and SUFFIX off of NAME.
29590 # PREFIX and SUFFIX must not contain globbing or regex special
29591 # characters, hashes, percent signs, but SUFFIX may contain a leading
29592 # dot (in which case that matches only a dot).
29593 func_stripname ()
29595 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29596 # positional parameters, so assign one to ordinary parameter first.
29597 func_stripname_result=${3}
29598 func_stripname_result=${func_stripname_result#"${1}"}
29599 func_stripname_result=${func_stripname_result%"${2}"}
29602 # func_opt_split
29603 func_opt_split ()
29605 func_opt_split_opt=${1%%=*}
29606 func_opt_split_arg=${1#*=}
29609 # func_lo2o object
29610 func_lo2o ()
29612 case ${1} in
29613 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29614 *) func_lo2o_result=${1} ;;
29615 esac
29618 # func_xform libobj-or-source
29619 func_xform ()
29621 func_xform_result=${1%.*}.lo
29624 # func_arith arithmetic-term...
29625 func_arith ()
29627 func_arith_result=$(( $* ))
29630 # func_len string
29631 # STRING may not start with a hyphen.
29632 func_len ()
29634 func_len_result=${#1}
29637 _LT_EOF
29639 *) # Bourne compatible functions.
29640 cat << \_LT_EOF >> "$cfgfile"
29642 # func_dirname file append nondir_replacement
29643 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29644 # otherwise set result to NONDIR_REPLACEMENT.
29645 func_dirname ()
29647 # Extract subdirectory from the argument.
29648 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29649 if test "X$func_dirname_result" = "X${1}"; then
29650 func_dirname_result="${3}"
29651 else
29652 func_dirname_result="$func_dirname_result${2}"
29656 # func_basename file
29657 func_basename ()
29659 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29663 # func_stripname prefix suffix name
29664 # strip PREFIX and SUFFIX off of NAME.
29665 # PREFIX and SUFFIX must not contain globbing or regex special
29666 # characters, hashes, percent signs, but SUFFIX may contain a leading
29667 # dot (in which case that matches only a dot).
29668 # func_strip_suffix prefix name
29669 func_stripname ()
29671 case ${2} in
29672 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29673 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29674 esac
29677 # sed scripts:
29678 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29679 my_sed_long_arg='1s/^-[^=]*=//'
29681 # func_opt_split
29682 func_opt_split ()
29684 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29685 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29688 # func_lo2o object
29689 func_lo2o ()
29691 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29694 # func_xform libobj-or-source
29695 func_xform ()
29697 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29700 # func_arith arithmetic-term...
29701 func_arith ()
29703 func_arith_result=`expr "$@"`
29706 # func_len string
29707 # STRING may not start with a hyphen.
29708 func_len ()
29710 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29713 _LT_EOF
29714 esac
29716 case $lt_shell_append in
29717 yes)
29718 cat << \_LT_EOF >> "$cfgfile"
29720 # func_append var value
29721 # Append VALUE to the end of shell variable VAR.
29722 func_append ()
29724 eval "$1+=\$2"
29726 _LT_EOF
29729 cat << \_LT_EOF >> "$cfgfile"
29731 # func_append var value
29732 # Append VALUE to the end of shell variable VAR.
29733 func_append ()
29735 eval "$1=\$$1\$2"
29738 _LT_EOF
29740 esac
29743 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29744 || (rm -f "$cfgfile"; exit 1)
29746 mv -f "$cfgfile" "$ofile" ||
29747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29748 chmod +x "$ofile"
29751 cat <<_LT_EOF >> "$ofile"
29753 # ### BEGIN LIBTOOL TAG CONFIG: FC
29755 # The linker used to build libraries.
29756 LD=$lt_LD_FC
29758 # How to create reloadable object files.
29759 reload_flag=$lt_reload_flag_FC
29760 reload_cmds=$lt_reload_cmds_FC
29762 # Commands used to build an old-style archive.
29763 old_archive_cmds=$lt_old_archive_cmds_FC
29765 # A language specific compiler.
29766 CC=$lt_compiler_FC
29768 # Is the compiler the GNU compiler?
29769 with_gcc=$GCC_FC
29771 # Compiler flag to turn off builtin functions.
29772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29774 # How to pass a linker flag through the compiler.
29775 wl=$lt_lt_prog_compiler_wl_FC
29777 # Additional compiler flags for building library objects.
29778 pic_flag=$lt_lt_prog_compiler_pic_FC
29780 # Compiler flag to prevent dynamic linking.
29781 link_static_flag=$lt_lt_prog_compiler_static_FC
29783 # Does compiler simultaneously support -c and -o options?
29784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29786 # Whether or not to add -lc for building shared libraries.
29787 build_libtool_need_lc=$archive_cmds_need_lc_FC
29789 # Whether or not to disallow shared libs when runtime libs are static.
29790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29792 # Compiler flag to allow reflexive dlopens.
29793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29795 # Compiler flag to generate shared objects directly from archives.
29796 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29798 # Whether the compiler copes with passing no objects directly.
29799 compiler_needs_object=$lt_compiler_needs_object_FC
29801 # Create an old-style archive from a shared archive.
29802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29804 # Create a temporary old-style archive to link instead of a shared archive.
29805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29807 # Commands used to build a shared archive.
29808 archive_cmds=$lt_archive_cmds_FC
29809 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29811 # Commands used to build a loadable module if different from building
29812 # a shared archive.
29813 module_cmds=$lt_module_cmds_FC
29814 module_expsym_cmds=$lt_module_expsym_cmds_FC
29816 # Whether we are building with GNU ld or not.
29817 with_gnu_ld=$lt_with_gnu_ld_FC
29819 # Flag that allows shared libraries with undefined symbols to be built.
29820 allow_undefined_flag=$lt_allow_undefined_flag_FC
29822 # Flag that enforces no undefined symbols.
29823 no_undefined_flag=$lt_no_undefined_flag_FC
29825 # Flag to hardcode \$libdir into a binary during linking.
29826 # This must work even if \$libdir does not exist
29827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29829 # If ld is used when linking, flag to hardcode \$libdir into a binary
29830 # during linking. This must work even if \$libdir does not exist.
29831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29833 # Whether we need a single "-rpath" flag with a separated argument.
29834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29837 # DIR into the resulting binary.
29838 hardcode_direct=$hardcode_direct_FC
29840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29841 # DIR into the resulting binary and the resulting library dependency is
29842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29843 # library is relocated.
29844 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29847 # into the resulting binary.
29848 hardcode_minus_L=$hardcode_minus_L_FC
29850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29851 # into the resulting binary.
29852 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29854 # Set to "yes" if building a shared library automatically hardcodes DIR
29855 # into the library and all subsequent libraries and executables linked
29856 # against it.
29857 hardcode_automatic=$hardcode_automatic_FC
29859 # Set to yes if linker adds runtime paths of dependent libraries
29860 # to runtime path list.
29861 inherit_rpath=$inherit_rpath_FC
29863 # Whether libtool must link a program against all its dependency libraries.
29864 link_all_deplibs=$link_all_deplibs_FC
29866 # Fix the shell variable \$srcfile for the compiler.
29867 fix_srcfile_path=$lt_fix_srcfile_path_FC
29869 # Set to "yes" if exported symbols are required.
29870 always_export_symbols=$always_export_symbols_FC
29872 # The commands to list exported symbols.
29873 export_symbols_cmds=$lt_export_symbols_cmds_FC
29875 # Symbols that should not be listed in the preloaded symbols.
29876 exclude_expsyms=$lt_exclude_expsyms_FC
29878 # Symbols that must always be exported.
29879 include_expsyms=$lt_include_expsyms_FC
29881 # Commands necessary for linking programs (against libraries) with templates.
29882 prelink_cmds=$lt_prelink_cmds_FC
29884 # Specify filename containing input files.
29885 file_list_spec=$lt_file_list_spec_FC
29887 # How to hardcode a shared library path into an executable.
29888 hardcode_action=$hardcode_action_FC
29890 # The directories searched by this compiler when creating a shared library.
29891 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29893 # Dependencies to place before and after the objects being linked to
29894 # create a shared library.
29895 predep_objects=$lt_predep_objects_FC
29896 postdep_objects=$lt_postdep_objects_FC
29897 predeps=$lt_predeps_FC
29898 postdeps=$lt_postdeps_FC
29900 # The library search path used internally by the compiler when linking
29901 # a shared library.
29902 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29904 # ### END LIBTOOL TAG CONFIG: FC
29905 _LT_EOF
29908 "gstdint.h":C)
29909 if test "$GCC" = yes; then
29910 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29911 else
29912 echo "/* generated for $CC */" > tmp-stdint.h
29915 sed 's/^ *//' >> tmp-stdint.h <<EOF
29917 #ifndef GCC_GENERATED_STDINT_H
29918 #define GCC_GENERATED_STDINT_H 1
29920 #include <sys/types.h>
29923 if test "$acx_cv_header_stdint" != stdint.h; then
29924 echo "#include <stddef.h>" >> tmp-stdint.h
29926 if test "$acx_cv_header_stdint" != stddef.h; then
29927 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29930 sed 's/^ *//' >> tmp-stdint.h <<EOF
29931 /* glibc uses these symbols as guards to prevent redefinitions. */
29932 #ifdef __int8_t_defined
29933 #define _INT8_T
29934 #define _INT16_T
29935 #define _INT32_T
29936 #endif
29937 #ifdef __uint32_t_defined
29938 #define _UINT32_T
29939 #endif
29943 # ----------------- done header, emit basic int types -------------
29944 if test "$acx_cv_header_stdint" = stddef.h; then
29945 sed 's/^ *//' >> tmp-stdint.h <<EOF
29947 #ifndef _UINT8_T
29948 #define _UINT8_T
29949 #ifndef __uint8_t_defined
29950 #define __uint8_t_defined
29951 #ifndef uint8_t
29952 typedef unsigned $acx_cv_type_int8_t uint8_t;
29953 #endif
29954 #endif
29955 #endif
29957 #ifndef _UINT16_T
29958 #define _UINT16_T
29959 #ifndef __uint16_t_defined
29960 #define __uint16_t_defined
29961 #ifndef uint16_t
29962 typedef unsigned $acx_cv_type_int16_t uint16_t;
29963 #endif
29964 #endif
29965 #endif
29967 #ifndef _UINT32_T
29968 #define _UINT32_T
29969 #ifndef __uint32_t_defined
29970 #define __uint32_t_defined
29971 #ifndef uint32_t
29972 typedef unsigned $acx_cv_type_int32_t uint32_t;
29973 #endif
29974 #endif
29975 #endif
29977 #ifndef _INT8_T
29978 #define _INT8_T
29979 #ifndef __int8_t_defined
29980 #define __int8_t_defined
29981 #ifndef int8_t
29982 typedef $acx_cv_type_int8_t int8_t;
29983 #endif
29984 #endif
29985 #endif
29987 #ifndef _INT16_T
29988 #define _INT16_T
29989 #ifndef __int16_t_defined
29990 #define __int16_t_defined
29991 #ifndef int16_t
29992 typedef $acx_cv_type_int16_t int16_t;
29993 #endif
29994 #endif
29995 #endif
29997 #ifndef _INT32_T
29998 #define _INT32_T
29999 #ifndef __int32_t_defined
30000 #define __int32_t_defined
30001 #ifndef int32_t
30002 typedef $acx_cv_type_int32_t int32_t;
30003 #endif
30004 #endif
30005 #endif
30007 elif test "$ac_cv_type_u_int32_t" = yes; then
30008 sed 's/^ *//' >> tmp-stdint.h <<EOF
30010 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30011 #ifndef _INT8_T
30012 #define _INT8_T
30013 #endif
30014 #ifndef _INT16_T
30015 #define _INT16_T
30016 #endif
30017 #ifndef _INT32_T
30018 #define _INT32_T
30019 #endif
30021 #ifndef _UINT8_T
30022 #define _UINT8_T
30023 #ifndef __uint8_t_defined
30024 #define __uint8_t_defined
30025 #ifndef uint8_t
30026 typedef u_int8_t uint8_t;
30027 #endif
30028 #endif
30029 #endif
30031 #ifndef _UINT16_T
30032 #define _UINT16_T
30033 #ifndef __uint16_t_defined
30034 #define __uint16_t_defined
30035 #ifndef uint16_t
30036 typedef u_int16_t uint16_t;
30037 #endif
30038 #endif
30039 #endif
30041 #ifndef _UINT32_T
30042 #define _UINT32_T
30043 #ifndef __uint32_t_defined
30044 #define __uint32_t_defined
30045 #ifndef uint32_t
30046 typedef u_int32_t uint32_t;
30047 #endif
30048 #endif
30049 #endif
30051 else
30052 sed 's/^ *//' >> tmp-stdint.h <<EOF
30054 /* Some systems have guard macros to prevent redefinitions, define them. */
30055 #ifndef _INT8_T
30056 #define _INT8_T
30057 #endif
30058 #ifndef _INT16_T
30059 #define _INT16_T
30060 #endif
30061 #ifndef _INT32_T
30062 #define _INT32_T
30063 #endif
30064 #ifndef _UINT8_T
30065 #define _UINT8_T
30066 #endif
30067 #ifndef _UINT16_T
30068 #define _UINT16_T
30069 #endif
30070 #ifndef _UINT32_T
30071 #define _UINT32_T
30072 #endif
30076 # ------------- done basic int types, emit int64_t types ------------
30077 if test "$ac_cv_type_uint64_t" = yes; then
30078 sed 's/^ *//' >> tmp-stdint.h <<EOF
30080 /* system headers have good uint64_t and int64_t */
30081 #ifndef _INT64_T
30082 #define _INT64_T
30083 #endif
30084 #ifndef _UINT64_T
30085 #define _UINT64_T
30086 #endif
30088 elif test "$ac_cv_type_u_int64_t" = yes; then
30089 sed 's/^ *//' >> tmp-stdint.h <<EOF
30091 /* system headers have an u_int64_t (and int64_t) */
30092 #ifndef _INT64_T
30093 #define _INT64_T
30094 #endif
30095 #ifndef _UINT64_T
30096 #define _UINT64_T
30097 #ifndef __uint64_t_defined
30098 #define __uint64_t_defined
30099 #ifndef uint64_t
30100 typedef u_int64_t uint64_t;
30101 #endif
30102 #endif
30103 #endif
30105 elif test -n "$acx_cv_type_int64_t"; then
30106 sed 's/^ *//' >> tmp-stdint.h <<EOF
30108 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30109 #ifndef _INT64_T
30110 #define _INT64_T
30111 #ifndef int64_t
30112 typedef $acx_cv_type_int64_t int64_t;
30113 #endif
30114 #endif
30115 #ifndef _UINT64_T
30116 #define _UINT64_T
30117 #ifndef __uint64_t_defined
30118 #define __uint64_t_defined
30119 #ifndef uint64_t
30120 typedef unsigned $acx_cv_type_int64_t uint64_t;
30121 #endif
30122 #endif
30123 #endif
30125 else
30126 sed 's/^ *//' >> tmp-stdint.h <<EOF
30128 /* some common heuristics for int64_t, using compiler-specific tests */
30129 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30130 #ifndef _INT64_T
30131 #define _INT64_T
30132 #ifndef __int64_t_defined
30133 #ifndef int64_t
30134 typedef long long int64_t;
30135 #endif
30136 #endif
30137 #endif
30138 #ifndef _UINT64_T
30139 #define _UINT64_T
30140 #ifndef uint64_t
30141 typedef unsigned long long uint64_t;
30142 #endif
30143 #endif
30145 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30146 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30147 does not implement __extension__. But that compiler doesn't define
30148 __GNUC_MINOR__. */
30149 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30150 # define __extension__
30151 # endif
30153 # ifndef _INT64_T
30154 # define _INT64_T
30155 # ifndef int64_t
30156 __extension__ typedef long long int64_t;
30157 # endif
30158 # endif
30159 # ifndef _UINT64_T
30160 # define _UINT64_T
30161 # ifndef uint64_t
30162 __extension__ typedef unsigned long long uint64_t;
30163 # endif
30164 # endif
30166 #elif !defined __STRICT_ANSI__
30167 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30169 # ifndef _INT64_T
30170 # define _INT64_T
30171 # ifndef int64_t
30172 typedef __int64 int64_t;
30173 # endif
30174 # endif
30175 # ifndef _UINT64_T
30176 # define _UINT64_T
30177 # ifndef uint64_t
30178 typedef unsigned __int64 uint64_t;
30179 # endif
30180 # endif
30181 # endif /* compiler */
30183 #endif /* ANSI version */
30187 # ------------- done int64_t types, emit intptr types ------------
30188 if test "$ac_cv_type_uintptr_t" != yes; then
30189 sed 's/^ *//' >> tmp-stdint.h <<EOF
30191 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30192 #ifndef __uintptr_t_defined
30193 #ifndef uintptr_t
30194 typedef u$acx_cv_type_intptr_t uintptr_t;
30195 #endif
30196 #endif
30197 #ifndef __intptr_t_defined
30198 #ifndef intptr_t
30199 typedef $acx_cv_type_intptr_t intptr_t;
30200 #endif
30201 #endif
30205 # ------------- done intptr types, emit int_least types ------------
30206 if test "$ac_cv_type_int_least32_t" != yes; then
30207 sed 's/^ *//' >> tmp-stdint.h <<EOF
30209 /* Define int_least types */
30210 typedef int8_t int_least8_t;
30211 typedef int16_t int_least16_t;
30212 typedef int32_t int_least32_t;
30213 #ifdef _INT64_T
30214 typedef int64_t int_least64_t;
30215 #endif
30217 typedef uint8_t uint_least8_t;
30218 typedef uint16_t uint_least16_t;
30219 typedef uint32_t uint_least32_t;
30220 #ifdef _UINT64_T
30221 typedef uint64_t uint_least64_t;
30222 #endif
30226 # ------------- done intptr types, emit int_fast types ------------
30227 if test "$ac_cv_type_int_fast32_t" != yes; then
30228 sed 's/^ *//' >> tmp-stdint.h <<EOF
30230 /* Define int_fast types. short is often slow */
30231 typedef int8_t int_fast8_t;
30232 typedef int int_fast16_t;
30233 typedef int32_t int_fast32_t;
30234 #ifdef _INT64_T
30235 typedef int64_t int_fast64_t;
30236 #endif
30238 typedef uint8_t uint_fast8_t;
30239 typedef unsigned int uint_fast16_t;
30240 typedef uint32_t uint_fast32_t;
30241 #ifdef _UINT64_T
30242 typedef uint64_t uint_fast64_t;
30243 #endif
30247 if test "$ac_cv_type_uintmax_t" != yes; then
30248 sed 's/^ *//' >> tmp-stdint.h <<EOF
30250 /* Define intmax based on what we found */
30251 #ifndef intmax_t
30252 #ifdef _INT64_T
30253 typedef int64_t intmax_t;
30254 #else
30255 typedef long intmax_t;
30256 #endif
30257 #endif
30258 #ifndef uintmax_t
30259 #ifdef _UINT64_T
30260 typedef uint64_t uintmax_t;
30261 #else
30262 typedef unsigned long uintmax_t;
30263 #endif
30264 #endif
30268 sed 's/^ *//' >> tmp-stdint.h <<EOF
30270 #endif /* GCC_GENERATED_STDINT_H */
30273 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30274 rm -f tmp-stdint.h
30275 else
30276 mv -f tmp-stdint.h gstdint.h
30281 esac
30282 done # for ac_tag
30285 as_fn_exit 0
30286 _ACEOF
30287 ac_clean_files=$ac_clean_files_save
30289 test $ac_write_fail = 0 ||
30290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30293 # configure is writing to config.log, and then calls config.status.
30294 # config.status does its own redirection, appending to config.log.
30295 # Unfortunately, on DOS this fails, as config.log is still kept open
30296 # by configure, so config.status won't be able to write to it; its
30297 # output is simply discarded. So we exec the FD to /dev/null,
30298 # effectively closing config.log, so it can be properly (re)opened and
30299 # appended to by config.status. When coming back to configure, we
30300 # need to make the FD available again.
30301 if test "$no_create" != yes; then
30302 ac_cs_success=:
30303 ac_config_status_args=
30304 test "$silent" = yes &&
30305 ac_config_status_args="$ac_config_status_args --quiet"
30306 exec 5>/dev/null
30307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30308 exec 5>>config.log
30309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30310 # would make configure fail if this is the last instruction.
30311 $ac_cs_success || as_fn_exit 1
30313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}