]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
fortran, libgfortran: Avoid using libquadmath for glibc 2.26+
[gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
6de9cd9a 8#
6de9cd9a
DN
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6de9cd9a 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6de9cd9a 31fi
6de9cd9a 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
6de9cd9a
DN
79fi
80
81
5213506e
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
6de9cd9a
DN
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
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
21be0a5a 199test \$(( 1 + 1 )) = 2 || exit 1
43e02a8a
RW
200
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\" \\
21be0a5a 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
5213506e
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6de9cd9a 219do
5213506e
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
5213506e
RW
266fi
267
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."
6de9cd9a 274 else
5213506e
RW
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."
6de9cd9a 279 fi
5213506e
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5213506e
RW
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.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5213506e
RW
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
22e05272 415# script with STATUS, using 1 if that was 0.
5213506e
RW
416as_fn_error ()
417{
22e05272
JM
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
5213506e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5213506e
RW
424 as_fn_exit $as_status
425} # as_fn_error
6de9cd9a 426
5213506e
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
429 as_expr=expr
430else
431 as_expr=false
432fi
433
5213506e 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
435 as_basename=basename
436else
437 as_basename=false
438fi
439
5213506e
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
6de9cd9a 445
5213506e 446as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
5213506e
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
c0e7e2bf 464
38d24731
RW
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
f489fba1 471
6de9cd9a 472
5213506e
RW
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
6de9cd9a 482 sed '
5213506e
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
6de9cd9a 487 N
5213506e
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6de9cd9a 490 t loop
5213506e 491 s/-\n.*//
6de9cd9a 492 ' >$as_me.lineno &&
5213506e
RW
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; }
6de9cd9a 495
22e05272
JM
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
6de9cd9a
DN
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
5213506e
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
6de9cd9a
DN
504 # Exit status is that of the last command.
505 exit
506}
507
5213506e
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `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;;
517*)
518 ECHO_N='-n';;
6de9cd9a
DN
519esac
520
5213506e
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
6de9cd9a 524else
5213506e
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
6de9cd9a 527fi
5213506e
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 530 as_ln_s='ln -s'
5213506e
RW
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.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5213506e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5213506e
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
38d24731 541 fi
6de9cd9a 542else
22e05272 543 as_ln_s='cp -pR'
6de9cd9a 544fi
5213506e
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
6de9cd9a
DN
547
548if mkdir -p . 2>/dev/null; then
5213506e 549 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
6de9cd9a
DN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
1cf3d07d
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
1cf3d07d 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5213506e 569
6de9cd9a 570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
6de9cd9a
DN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
6de9cd9a
DN
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
5213506e 579ac_clean_files=
6de9cd9a 580ac_config_libobj_dir=.
5213506e 581LIBOBJS=
6de9cd9a
DN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
38d24731 586
6de9cd9a
DN
587# Identity of this package.
588PACKAGE_NAME='GNU Fortran Runtime Library'
589PACKAGE_TARNAME='libgfortran'
0dce3ca1
FXC
590PACKAGE_VERSION='0.3'
591PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
6de9cd9a 592PACKAGE_BUGREPORT=''
5213506e 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
6de9cd9a
DN
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
5213506e 598#ifdef HAVE_SYS_TYPES_H
6de9cd9a
DN
599# include <sys/types.h>
600#endif
5213506e 601#ifdef HAVE_SYS_STAT_H
6de9cd9a
DN
602# include <sys/stat.h>
603#endif
5213506e 604#ifdef STDC_HEADERS
6de9cd9a
DN
605# include <stdlib.h>
606# include <stddef.h>
607#else
5213506e 608# ifdef HAVE_STDLIB_H
6de9cd9a
DN
609# include <stdlib.h>
610# endif
611#endif
5213506e
RW
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6de9cd9a
DN
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
5213506e 618#ifdef HAVE_STRINGS_H
6de9cd9a
DN
619# include <strings.h>
620#endif
5213506e 621#ifdef HAVE_INTTYPES_H
6de9cd9a 622# include <inttypes.h>
6de9cd9a 623#endif
5213506e
RW
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
6de9cd9a
DN
628# include <unistd.h>
629#endif"
630
74544378
JB
631ac_header_list=
632ac_func_list=
1ec601bf 633ac_c_werror_flag=
828012a5 634ac_c_werror_flag=
5213506e
RW
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
3c36aa6b 639get_gcc_base_ver
1d5cf7fc
TK
640HAVE_AVX128_FALSE
641HAVE_AVX128_TRUE
47ddb895 642tmake_file
5213506e 643IEEE_FLAGS
8b198102
FXC
644IEEE_SUPPORT
645IEEE_SUPPORT_FALSE
646IEEE_SUPPORT_TRUE
5213506e 647FPU_HOST_HEADER
133d0d42 648USE_IEC_60559
1ec601bf
FXC
649LIBQUADINCLUDE
650LIBQUADLIB_DEP
651LIBQUADLIB
652LIBQUADSPEC
5213506e
RW
653extra_ldflags_libgfortran
654ac_ct_FC
655FCFLAGS
656FC
657enable_static
658enable_shared
7de6ba7a 659lt_host_flags
9b025925 660LIBM
5213506e
RW
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
5213506e
RW
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
5213506e
RW
671LIBTOOL
672RANLIB
673AR
674AS
66dbcf2d
RO
675HAVE_HWCAP_FALSE
676HAVE_HWCAP_TRUE
677HWCAP_LDFLAGS
678LD
679FGREP
680SED
5213506e 681SECTION_FLAGS
2e764ae1
TB
682LIBGOMP_CHECKED_REAL_KINDS
683LIBGOMP_CHECKED_INT_KINDS
ee95f928
BS
684LIBGFOR_MINIMAL_FALSE
685LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
686LIBGFOR_USE_SYMVER_SUN_FALSE
687LIBGFOR_USE_SYMVER_SUN_TRUE
688LIBGFOR_USE_SYMVER_GNU_FALSE
689LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
690LIBGFOR_USE_SYMVER_FALSE
691LIBGFOR_USE_SYMVER_TRUE
692AM_CFLAGS
693AM_FCFLAGS
49ad4d2c
TK
694HAVE_REAL_17_FALSE
695HAVE_REAL_17_TRUE
21be0a5a
JB
696toolexeclibdir
697toolexecdir
698EGREP
699GREP
700CPP
5213506e
RW
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
c20fdb91 704am__nodep
5213506e
RW
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__quote
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
5213506e
RW
718multi_basedir
719MAINT
720MAINTAINER_MODE_FALSE
721MAINTAINER_MODE_TRUE
22e05272
JM
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
5213506e
RW
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
60858d8a 749target_noncanonical
5213506e
RW
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758onestep
759onestep_FALSE
760onestep_TRUE
761target_subdir
762host_subdir
763build_subdir
764build_libsubdir
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
6de9cd9a 807ac_subst_files=''
5213506e
RW
808ac_user_opts='
809enable_option_checking
810with_build_libsubdir
811enable_version_specific_runtime_libs
812enable_intermodule
22e05272 813enable_silent_rules
5213506e
RW
814enable_maintainer_mode
815enable_multilib
816enable_dependency_tracking
e8e66971 817with_toolexeclibdir
26724ef9 818enable_cet
bf382f5f 819enable_symvers
66dbcf2d 820with_gnu_ld
5213506e
RW
821enable_shared
822enable_static
823with_pic
824enable_fast_install
5213506e
RW
825enable_libtool_lock
826enable_largefile
87e6d9dc 827enable_libquadmath_support
3c36aa6b 828with_gcc_major_version_only
5213506e
RW
829'
830 ac_precious_vars='build_alias
831host_alias
832target_alias
21be0a5a
JB
833CC
834CFLAGS
835LDFLAGS
836LIBS
5213506e 837CPPFLAGS
21be0a5a 838CPP
5213506e 839FC
21be0a5a 840FCFLAGS'
5213506e 841
6de9cd9a
DN
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
5213506e
RW
846ac_unrecognized_opts=
847ac_unrecognized_sep=
6de9cd9a
DN
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 870# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
5213506e
RW
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
6de9cd9a
DN
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
6de9cd9a
DN
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
5213506e
RW
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
6de9cd9a
DN
890
891ac_prev=
5213506e 892ac_dashdash=
6de9cd9a
DN
893for ac_option
894do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
5213506e 897 eval $ac_prev=\$ac_option
6de9cd9a
DN
898 ac_prev=
899 continue
900 fi
901
5213506e 902 case $ac_option in
22e05272
JM
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
5213506e 906 esac
6de9cd9a
DN
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
5213506e
RW
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
6de9cd9a
DN
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
5213506e 934 -datadir | --datadir | --datadi | --datad)
6de9cd9a 935 ac_prev=datadir ;;
5213506e 936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
937 datadir=$ac_optarg ;;
938
5213506e
RW
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
6de9cd9a 946 -disable-* | --disable-*)
5213506e 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 948 # Reject names that are not valid shell variable names.
5213506e 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 950 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
6de9cd9a
DN
971
972 -enable-* | --enable-*)
5213506e 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 974 # Reject names that are not valid shell variable names.
5213506e 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 976 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
38d24731 985 esac
5213506e 986 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
5213506e
RW
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
6de9cd9a
DN
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
5213506e
RW
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
6de9cd9a 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1049 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
5213506e
RW
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
6de9cd9a
DN
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
5213506e 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1178 # Reject names that are not valid shell variable names.
5213506e 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1180 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
38d24731 1189 esac
5213506e 1190 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1191
1192 -without-* | --without-*)
5213506e 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1194 # Reject names that are not valid shell variable names.
5213506e 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1196 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
22e05272
JM
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
6de9cd9a
DN
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
5213506e
RW
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1236 esac
1237 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
5213506e 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
6de9cd9a
DN
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1253 as_fn_error $? "missing argument to $ac_option"
6de9cd9a
DN
1254fi
1255
5213506e
RW
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
22e05272 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1261 esac
5213506e 1262fi
38d24731 1263
5213506e
RW
1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e9085da5 1268 libdir localedir mandir
38d24731 1269do
5213506e
RW
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
38d24731 1278 case $ac_val in
5213506e
RW
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1281 esac
22e05272 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
6de9cd9a
DN
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
5213506e
RW
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1310 as_fn_error $? "working directory cannot be determined"
5213506e 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1312 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1313
1314
6de9cd9a
DN
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
5213506e
RW
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
6de9cd9a 1342 srcdir=$ac_confdir
5213506e 1343 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
5213506e
RW
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
22e05272 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1356 pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
6de9cd9a
DN
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
0dce3ca1 1381\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
22e05272 1395 -q, --quiet, --silent do not print \`checking ...' messages
6de9cd9a
DN
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
6de9cd9a
DN
1401Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1403 [$ac_default_prefix]
6de9cd9a 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1405 [PREFIX]
6de9cd9a
DN
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
5213506e
RW
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1434_ACEOF
1435
1436 cat <<\_ACEOF
1437
1438Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1446 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451 case $ac_init_help in
0dce3ca1 1452 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1453 esac
1454 cat <<\_ACEOF
1455
1456Optional Features:
5213506e 1457 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1460 --enable-version-specific-runtime-libs
1461 specify that runtime libraries should be installed
1462 in a compiler-specific directory
b808ac33 1463 --enable-intermodule build the library in one step
22e05272
JM
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
96b8a615 1469 --enable-multilib build many library versions (default)
22e05272
JM
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
8d286dd1 1474 --enable-cet enable Intel CET in target libraries [default=auto]
bf382f5f 1475 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
6de9cd9a 1480 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1481 --disable-largefile omit support for large files
87e6d9dc
TB
1482 --disable-libquadmath-support
1483 disable libquadmath support for Fortran
6de9cd9a
DN
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1488 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8e66971
MR
1489 --with-toolexeclibdir=DIR
1490 install libraries built with a cross compiler within
1491 DIR
66dbcf2d 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
3c36aa6b
JJ
1495 --with-gcc-major-version-only
1496 use only GCC major number in filesystem paths
6de9cd9a
DN
1497
1498Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
5213506e 1503 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1505 you have headers in a nonstandard directory <include dir>
1cf3d07d 1506 CPP C preprocessor
c7a35fe9
AS
1507 FC Fortran compiler command
1508 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
5213506e
RW
1513Report bugs to the package provider.
1514GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1515General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1516_ACEOF
5213506e 1517ac_status=$?
6de9cd9a
DN
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
6de9cd9a 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
6de9cd9a
DN
1526 ac_builddir=.
1527
5213506e
RW
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1543
1544case $srcdir in
5213506e 1545 .) # We are building in place.
6de9cd9a 1546 ac_srcdir=.
5213506e
RW
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1550 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1557esac
5213506e
RW
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1568 else
5213506e
RW
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1572 done
1573fi
1574
5213506e 1575test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1576if $ac_init_version; then
1577 cat <<\_ACEOF
0dce3ca1 1578GNU Fortran Runtime Library configure 0.3
22e05272 1579generated by GNU Autoconf 2.69
6de9cd9a 1580
22e05272 1581Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
5213506e 1585 exit
6de9cd9a 1586fi
6de9cd9a 1587
5213506e
RW
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
6de9cd9a 1591
5213506e
RW
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1622
5213506e
RW
1623 ac_retval=1
1624fi
22e05272
JM
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
5213506e
RW
1627
1628} # ac_fn_c_try_compile
1629
21be0a5a
JB
1630# ac_fn_c_try_cpp LINENO
1631# ----------------------
1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_cpp ()
6de9cd9a 1634{
5213506e 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
21be0a5a 1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1651 test $ac_status = 0; } > conftest.i && {
21be0a5a 1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1653 test ! -s conftest.err
5213506e
RW
1654 }; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1659
21be0a5a 1660 ac_retval=1
5213506e 1661fi
22e05272
JM
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
6de9cd9a 1664
21be0a5a 1665} # ac_fn_c_try_cpp
6de9cd9a 1666
21be0a5a 1667# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1668# -------------------------------------------------------
21be0a5a
JB
1669# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670# the include files in INCLUDES and setting the cache variable VAR
1671# accordingly.
1672ac_fn_c_check_header_mongrel ()
5213506e
RW
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1675 if eval \${$3+:} false; then :
5213506e
RW
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
22e05272 1678if eval \${$3+:} false; then :
5213506e 1679 $as_echo_n "(cached) " >&6
21be0a5a
JB
1680fi
1681eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
5213506e 1684else
21be0a5a
JB
1685 # Is the header compilable?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687$as_echo_n "checking $2 usability... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1694 ac_header_compiler=yes
5213506e 1695else
21be0a5a 1696 ac_header_compiler=no
5213506e
RW
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1701
21be0a5a
JB
1702# Is the header present?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704$as_echo_n "checking $2 presence... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1711else
1712 ac_header_preproc=no
1713fi
22e05272 1714rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1717
21be0a5a
JB
1718# So? What about this header?
1719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720 yes:no: )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 ;;
1726 no:yes:* )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
5213506e 1738esac
21be0a5a
JB
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
22e05272 1741if eval \${$3+:} false; then :
21be0a5a 1742 $as_echo_n "(cached) " >&6
5213506e 1743else
21be0a5a
JB
1744 eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
5213506e 1749fi
22e05272 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1751
21be0a5a 1752} # ac_fn_c_check_header_mongrel
6de9cd9a 1753
5213506e
RW
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1787
5213506e
RW
1788 ac_retval=$ac_status
1789fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
6de9cd9a 1793
5213506e 1794} # ac_fn_c_try_run
6de9cd9a 1795
21be0a5a
JB
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
22e05272 1805if eval \${$3+:} false; then :
21be0a5a
JB
1806 $as_echo_n "(cached) " >&6
1807else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815else
1816 eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
22e05272 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21be0a5a
JB
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_try_link LINENO
1828# -----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_link ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
22e05272 1854 test -x conftest$ac_exeext
21be0a5a
JB
1855 }; then :
1856 ac_retval=0
1857else
1858 $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861 ac_retval=1
1862fi
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
21be0a5a
JB
1870
1871} # ac_fn_c_try_link
1872
5213506e
RW
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
22e05272 1881if eval \${$3+:} false; then :
5213506e
RW
1882 $as_echo_n "(cached) " >&6
1883else
1884 if test x$gcc_no_link = xyes; then
22e05272 1885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1886fi
1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891#define $2 innocuous_$2
6de9cd9a 1892
5213506e
RW
1893/* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1897
5213506e
RW
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
6de9cd9a 1903
5213506e
RW
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
38d24731 1922{
5213506e
RW
1923return $2 ();
1924 ;
1925 return 0;
38d24731 1926}
5213506e
RW
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
22e05272 1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1940
5213506e 1941} # ac_fn_c_check_func
6de9cd9a 1942
5213506e
RW
1943# ac_fn_fc_try_compile LINENO
1944# ---------------------------
1945# Try to compile conftest.$ac_ext, and return whether this succeeded.
1946ac_fn_fc_try_compile ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_fc_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.$ac_objext; then :
1969 ac_retval=0
1970else
1971 $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1973
5213506e
RW
1974 ac_retval=1
1975fi
22e05272
JM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
6de9cd9a 1978
5213506e 1979} # ac_fn_fc_try_compile
6de9cd9a 1980
5213506e
RW
1981# ac_fn_fc_try_link LINENO
1982# ------------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_fc_try_link ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_fc_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
22e05272 2008 test -x conftest$ac_exeext
5213506e
RW
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 2014
5213506e
RW
2015 ac_retval=1
2016fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
6de9cd9a 2024
5213506e 2025} # ac_fn_fc_try_link
6de9cd9a 2026
5213506e
RW
2027# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028# -------------------------------------------
2029# Tests whether TYPE exists after having included INCLUDES, setting cache
2030# variable VAR accordingly.
2031ac_fn_c_check_type ()
2032{
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
22e05272 2036if eval \${$3+:} false; then :
5213506e
RW
2037 $as_echo_n "(cached) " >&6
2038else
2039 eval "$3=no"
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
2046if (sizeof ($2))
2047 return 0;
2048 ;
2049 return 0;
2050}
6de9cd9a 2051_ACEOF
5213506e
RW
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h. */
2055$4
2056int
2057main ()
2058{
2059if (sizeof (($2)))
2060 return 0;
2061 ;
2062 return 0;
2063}
6de9cd9a 2064_ACEOF
5213506e 2065if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2066
5213506e
RW
2067else
2068 eval "$3=yes"
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
22e05272 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2078
5213506e 2079} # ac_fn_c_check_type
6de9cd9a 2080
21be0a5a
JB
2081# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082# --------------------------------------------
2083# Tries to find the compile-time value of EXPR in a program that includes
2084# INCLUDES, setting VAR accordingly. Returns whether the value could be
2085# computed
2086ac_fn_c_compute_int ()
5213506e
RW
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2089 if test "$cross_compiling" = yes; then
2090 # Depending upon the size, compute the lo and hi bounds.
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2092/* end confdefs.h. */
c13e029b 2093$4
5213506e
RW
2094int
2095main ()
2096{
c13e029b 2097static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2098test_array [0] = 0;
2099return test_array [0];
6de9cd9a 2100
5213506e
RW
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2106 ac_lo=0 ac_mid=0
2107 while :; do
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2109/* end confdefs.h. */
c13e029b 2110$4
5213506e
RW
2111int
2112main ()
2113{
c13e029b 2114static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2115test_array [0] = 0;
2116return test_array [0];
6de9cd9a 2117
5213506e
RW
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2123 ac_hi=$ac_mid; break
5213506e 2124else
c13e029b
PB
2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126 if test $ac_lo -le $ac_mid; then
2127 ac_lo= ac_hi=
2128 break
2129 fi
2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2133 done
2134else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2142test_array [0] = 0;
2143return test_array [0];
c13e029b
PB
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=-1 ac_mid=-1
2151 while :; do
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2159test_array [0] = 0;
2160return test_array [0];
c13e029b
PB
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2168else
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2171 ac_lo= ac_hi=
2172 break
2173 fi
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2177 done
d72a3ac1 2178else
c13e029b 2179 ac_lo= ac_hi=
5213506e 2180fi
c13e029b 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2182fi
c13e029b
PB
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184# Binary search between lo and hi bounds.
2185while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2188/* end confdefs.h. */
c13e029b 2189$4
5213506e
RW
2190int
2191main ()
2192{
c13e029b 2193static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2194test_array [0] = 0;
2195return test_array [0];
6de9cd9a 2196
5213506e
RW
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2202 ac_hi=$ac_mid
2203else
2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2207done
2208case $ac_lo in #((
2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210'') ac_retval=1 ;;
2211esac
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215$4
2216static long int longval () { return $2; }
2217static unsigned long int ulongval () { return $2; }
2218#include <stdio.h>
2219#include <stdlib.h>
2220int
2221main ()
2222{
6de9cd9a 2223
c13e029b
PB
2224 FILE *f = fopen ("conftest.val", "w");
2225 if (! f)
2226 return 1;
2227 if (($2) < 0)
2228 {
2229 long int i = longval ();
2230 if (i != ($2))
2231 return 1;
2232 fprintf (f, "%ld", i);
2233 }
2234 else
2235 {
2236 unsigned long int i = ulongval ();
2237 if (i != ($2))
2238 return 1;
2239 fprintf (f, "%lu", i);
2240 }
2241 /* Do not output a trailing newline, as this causes \r\n confusion
2242 on some platforms. */
2243 return ferror (f) || fclose (f) != 0;
2244
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_run "$LINENO"; then :
2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2251else
c13e029b 2252 ac_retval=1
d72a3ac1 2253fi
c13e029b
PB
2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2256rm -f conftest.val
2257
2258 fi
22e05272
JM
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
6de9cd9a 2261
c13e029b 2262} # ac_fn_c_compute_int
6de9cd9a 2263
5213506e
RW
2264# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2265# ----------------------------------------------------
2266# Tries to find if the field MEMBER exists in type AGGR, after including
2267# INCLUDES, setting cache variable VAR accordingly.
2268ac_fn_c_check_member ()
2269{
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2272$as_echo_n "checking for $2.$3... " >&6; }
22e05272 2273if eval \${$4+:} false; then :
5213506e
RW
2274 $as_echo_n "(cached) " >&6
2275else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$5
2279int
2280main ()
2281{
2282static $2 ac_aggr;
2283if (ac_aggr.$3)
2284return 0;
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290 eval "$4=yes"
2291else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h. */
2294$5
2295int
2296main ()
2297{
2298static $2 ac_aggr;
2299if (sizeof ac_aggr.$3)
2300return 0;
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$4=yes"
2307else
2308 eval "$4=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314eval ac_res=\$$4
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316$as_echo "$ac_res" >&6; }
22e05272 2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2318
5213506e
RW
2319} # ac_fn_c_check_member
2320cat >config.log <<_ACEOF
2321This file contains any messages produced by compilers while
2322running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2323
5213506e 2324It was created by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 2325generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a 2326
5213506e 2327 $ $0 $@
6de9cd9a 2328
5213506e
RW
2329_ACEOF
2330exec 5>>config.log
2331{
2332cat <<_ASUNAME
2333## --------- ##
2334## Platform. ##
2335## --------- ##
6de9cd9a 2336
5213506e
RW
2337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2338uname -m = `(uname -m) 2>/dev/null || echo unknown`
2339uname -r = `(uname -r) 2>/dev/null || echo unknown`
2340uname -s = `(uname -s) 2>/dev/null || echo unknown`
2341uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2342
5213506e
RW
2343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2344/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2345
5213506e
RW
2346/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2347/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2349/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2350/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2351/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2352/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2353
5213506e 2354_ASUNAME
18c04407 2355
5213506e
RW
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2362 done
2363IFS=$as_save_IFS
18c04407 2364
5213506e 2365} >&5
18c04407 2366
5213506e 2367cat >&5 <<_ACEOF
6de9cd9a
DN
2368
2369
5213506e
RW
2370## ----------- ##
2371## Core tests. ##
2372## ----------- ##
78511f8b 2373
5213506e 2374_ACEOF
38d24731 2375
96b8a615 2376
5213506e
RW
2377# Keep a trace of the command line.
2378# Strip out --no-create and --no-recursion so they do not pile up.
2379# Strip out --silent because we don't want to record it for future runs.
2380# Also quote any args containing shell meta-characters.
2381# Make two passes to allow for proper duplicate-argument suppression.
2382ac_configure_args=
2383ac_configure_args0=
2384ac_configure_args1=
2385ac_must_keep_next=false
2386for ac_pass in 1 2
2387do
2388 for ac_arg
2389 do
2390 case $ac_arg in
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2394 continue ;;
2395 *\'*)
2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 esac
2398 case $ac_pass in
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2400 2)
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2404 else
2405 case $ac_arg in
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 esac
2413 ;;
2414 -* ) ac_must_keep_next=true ;;
2415 esac
2416 fi
2417 as_fn_append ac_configure_args " '$ac_arg'"
2418 ;;
2419 esac
2420 done
6de9cd9a 2421done
5213506e
RW
2422{ ac_configure_args0=; unset ac_configure_args0;}
2423{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2424
5213506e
RW
2425# When interrupted or exit'd, cleanup temporary files, and complete
2426# config.log. We remove comments because anyway the quotes in there
2427# would cause problems or look ugly.
2428# WARNING: Use '\'' to represent an apostrophe within the trap.
2429# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2432 {
2433 echo
96b8a615 2434
22e05272 2435 $as_echo "## ---------------- ##
5213506e 2436## Cache variables. ##
22e05272 2437## ---------------- ##"
5213506e
RW
2438 echo
2439 # The following way of writing the cache mishandles newlines in values,
2440(
2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2442 eval ac_val=\$$ac_var
2443 case $ac_val in #(
2444 *${as_nl}*)
2445 case $ac_var in #(
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 esac
2449 case $ac_var in #(
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2453 esac ;;
2454 esac
2455 done
2456 (set) 2>&1 |
2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2459 sed -n \
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 ;; #(
2463 *)
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 ;;
2466 esac |
2467 sort
2468)
2469 echo
2470
22e05272 2471 $as_echo "## ----------------- ##
5213506e 2472## Output variables. ##
22e05272 2473## ----------------- ##"
5213506e
RW
2474 echo
2475 for ac_var in $ac_subst_vars
2476 do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 esac
2481 $as_echo "$ac_var='\''$ac_val'\''"
2482 done | sort
2483 echo
2484
2485 if test -n "$ac_subst_files"; then
22e05272 2486 $as_echo "## ------------------- ##
5213506e 2487## File substitutions. ##
22e05272 2488## ------------------- ##"
5213506e
RW
2489 echo
2490 for ac_var in $ac_subst_files
2491 do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2499 fi
2500
2501 if test -s confdefs.h; then
22e05272 2502 $as_echo "## ----------- ##
5213506e 2503## confdefs.h. ##
22e05272 2504## ----------- ##"
5213506e
RW
2505 echo
2506 cat confdefs.h
2507 echo
2508 fi
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2512 } >&5
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 exit $exit_status
2516' 0
2517for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519done
2520ac_signal=0
2521
2522# confdefs.h avoids OS command line length limits that DEFS can exceed.
2523rm -f -r conftest* confdefs.h
2524
2525$as_echo "/* confdefs.h */" > confdefs.h
2526
2527# Predefined preprocessor variables.
2528
2529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_NAME "$PACKAGE_NAME"
2531_ACEOF
2532
2533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535_ACEOF
2536
2537cat >>confdefs.h <<_ACEOF
2538#define PACKAGE_VERSION "$PACKAGE_VERSION"
2539_ACEOF
2540
2541cat >>confdefs.h <<_ACEOF
2542#define PACKAGE_STRING "$PACKAGE_STRING"
2543_ACEOF
2544
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547_ACEOF
2548
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_URL "$PACKAGE_URL"
2551_ACEOF
2552
2553
2554# Let the site file select an alternate cache file if it wants to.
2555# Prefer an explicitly selected file to automatically selected ones.
2556ac_site_file1=NONE
2557ac_site_file2=NONE
2558if test -n "$CONFIG_SITE"; then
22e05272
JM
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2564 esac
5213506e
RW
2565elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2568else
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2571fi
2572for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573do
2574 test "x$ac_site_file" = xNONE && continue
22e05272 2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2579 . "$ac_site_file" \
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582as_fn_error $? "failed to load site script $ac_site_file
2583See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
2584 fi
2585done
2586
2587if test -r "$cache_file"; then
22e05272
JM
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592$as_echo "$as_me: loading cache $cache_file" >&6;}
2593 case $cache_file in
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2596 esac
2597 fi
2598else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600$as_echo "$as_me: creating cache $cache_file" >&6;}
2601 >$cache_file
2602fi
2603
74544378 2604as_fn_append ac_header_list " unistd.h"
864c28e1 2605as_fn_append ac_header_list " sys/random.h"
74544378
JB
2606as_fn_append ac_header_list " sys/time.h"
2607as_fn_append ac_header_list " sys/times.h"
2608as_fn_append ac_header_list " sys/resource.h"
2609as_fn_append ac_header_list " sys/types.h"
2610as_fn_append ac_header_list " sys/stat.h"
edaaef60 2611as_fn_append ac_header_list " sys/uio.h"
74544378
JB
2612as_fn_append ac_header_list " sys/wait.h"
2613as_fn_append ac_header_list " floatingpoint.h"
2614as_fn_append ac_header_list " ieeefp.h"
2615as_fn_append ac_header_list " fenv.h"
2616as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2617as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2618as_fn_append ac_header_list " pwd.h"
2619as_fn_append ac_header_list " complex.h"
9cbecd06 2620as_fn_append ac_header_list " xlocale.h"
74544378
JB
2621as_fn_append ac_func_list " getrusage"
2622as_fn_append ac_func_list " times"
2623as_fn_append ac_func_list " mkstemp"
2624as_fn_append ac_func_list " strtof"
2625as_fn_append ac_func_list " strtold"
2626as_fn_append ac_func_list " snprintf"
2627as_fn_append ac_func_list " ftruncate"
2628as_fn_append ac_func_list " chsize"
2629as_fn_append ac_func_list " chdir"
d66d6d15 2630as_fn_append ac_func_list " getentropy"
74544378
JB
2631as_fn_append ac_func_list " getlogin"
2632as_fn_append ac_func_list " gethostname"
2633as_fn_append ac_func_list " kill"
2634as_fn_append ac_func_list " link"
2635as_fn_append ac_func_list " symlink"
2636as_fn_append ac_func_list " sleep"
2637as_fn_append ac_func_list " ttyname"
ef536b41
JB
2638as_fn_append ac_func_list " sigaction"
2639as_fn_append ac_func_list " waitpid"
74544378
JB
2640as_fn_append ac_func_list " alarm"
2641as_fn_append ac_func_list " access"
2642as_fn_append ac_func_list " fork"
f8886038 2643as_fn_append ac_func_list " posix_spawn"
74544378 2644as_fn_append ac_func_list " setmode"
b5b58343 2645as_fn_append ac_func_list " fcntl"
edaaef60 2646as_fn_append ac_func_list " writev"
74544378
JB
2647as_fn_append ac_func_list " gettimeofday"
2648as_fn_append ac_func_list " stat"
2649as_fn_append ac_func_list " fstat"
2650as_fn_append ac_func_list " lstat"
2651as_fn_append ac_func_list " getpwuid"
2652as_fn_append ac_func_list " vsnprintf"
2653as_fn_append ac_func_list " dup"
2654as_fn_append ac_func_list " getcwd"
2655as_fn_append ac_func_list " localtime_r"
2656as_fn_append ac_func_list " gmtime_r"
74544378
JB
2657as_fn_append ac_func_list " getpwuid_r"
2658as_fn_append ac_func_list " ttyname_r"
2659as_fn_append ac_func_list " clock_gettime"
74544378
JB
2660as_fn_append ac_func_list " getgid"
2661as_fn_append ac_func_list " getpid"
74544378
JB
2662as_fn_append ac_func_list " getuid"
2663as_fn_append ac_func_list " geteuid"
8ecd1c0d 2664as_fn_append ac_func_list " umask"
68ee9c08 2665as_fn_append ac_func_list " getegid"
227e441f 2666as_fn_append ac_func_list " secure_getenv"
68ee9c08 2667as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2668as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2669as_fn_append ac_func_list " strnlen"
2670as_fn_append ac_func_list " strndup"
9cbecd06
JB
2671as_fn_append ac_func_list " newlocale"
2672as_fn_append ac_func_list " freelocale"
2673as_fn_append ac_func_list " uselocale"
2674as_fn_append ac_func_list " strerror_l"
133d0d42
JJ
2675as_fn_append ac_func_list " strtof128"
2676as_fn_append ac_func_list " strfromf128"
db9f46a9 2677as_fn_append ac_header_list " math.h"
5213506e
RW
2678# Check that the precious variables saved in the cache have kept the same
2679# value.
2680ac_cache_corrupted=false
2681for ac_var in $ac_precious_vars; do
2682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683 eval ac_new_set=\$ac_env_${ac_var}_set
2684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685 eval ac_new_val=\$ac_env_${ac_var}_value
2686 case $ac_old_set,$ac_new_set in
2687 set,)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,set)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,);;
2696 *)
2697 if test "x$ac_old_val" != "x$ac_new_val"; then
2698 # differences in whitespace do not lead to failure.
2699 ac_old_val_w=`echo x $ac_old_val`
2700 ac_new_val_w=`echo x $ac_new_val`
2701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704 ac_cache_corrupted=:
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708 eval $ac_var=\$ac_old_val
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2711$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2713$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2714 fi;;
2715 esac
2716 # Pass precious variables to config.status.
2717 if test "$ac_new_set" = set; then
2718 case $ac_new_val in
2719 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 *) ac_arg=$ac_var=$ac_new_val ;;
2721 esac
2722 case " $ac_configure_args " in
2723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2725 esac
2726 fi
2727done
2728if $ac_cache_corrupted; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2733 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5213506e
RW
2734fi
2735## -------------------- ##
2736## Main body of script. ##
2737## -------------------- ##
2738
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746
2747
2748
2749ac_config_headers="$ac_config_headers config.h"
2750
2751ac_aux_dir=
2752for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2753 if test -f "$ac_dir/install-sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install-sh -c"
2756 break
2757 elif test -f "$ac_dir/install.sh"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/install.sh -c"
2760 break
2761 elif test -f "$ac_dir/shtool"; then
2762 ac_aux_dir=$ac_dir
2763 ac_install_sh="$ac_aux_dir/shtool install -c"
2764 break
2765 fi
5213506e
RW
2766done
2767if test -z "$ac_aux_dir"; then
22e05272 2768 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5213506e
RW
2769fi
2770
2771# These three variables are undocumented and unsupported,
2772# and are intended to be withdrawn in a future Autoconf release.
2773# They can cause serious problems if a builder's source tree is in a directory
2774# whose full name contains unusual characters.
2775ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2776ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2777ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2778
2779
2780# Make sure we can run config.sub.
2781$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2782 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2783
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2785$as_echo_n "checking build system type... " >&6; }
22e05272 2786if ${ac_cv_build+:} false; then :
5213506e
RW
2787 $as_echo_n "(cached) " >&6
2788else
2789 ac_build_alias=$build_alias
2790test "x$ac_build_alias" = x &&
2791 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2792test "x$ac_build_alias" = x &&
22e05272 2793 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2796
2797fi
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2799$as_echo "$ac_cv_build" >&6; }
2800case $ac_cv_build in
2801*-*-*) ;;
22e05272 2802*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e
RW
2803esac
2804build=$ac_cv_build
2805ac_save_IFS=$IFS; IFS='-'
2806set x $ac_cv_build
2807shift
2808build_cpu=$1
2809build_vendor=$2
2810shift; shift
2811# Remember, the first character of IFS is used to create $*,
2812# except with old shells:
2813build_os=$*
2814IFS=$ac_save_IFS
2815case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 case ${build_alias} in
2819 "") build_noncanonical=${build} ;;
2820 *) build_noncanonical=${build_alias} ;;
2821esac
891c05b1
JJ
2822
2823 case ${host_alias} in
2824 "") host_noncanonical=${build_noncanonical} ;;
2825 *) host_noncanonical=${host_alias} ;;
2826esac
2827
2828 case ${target_alias} in
2829 "") target_noncanonical=${host_noncanonical} ;;
2830 *) target_noncanonical=${target_alias} ;;
2831esac
2832
57255173
PB
2833
2834# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835# have matching libraries, they should use host libraries: Makefile.tpl
2836# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837# However, they still use the build modules, because the corresponding
2838# host modules (e.g. bison) are only built for the host when bootstrap
2839# finishes. So:
2840# - build_subdir is where we find build modules, and never changes.
2841# - build_libsubdir is where we find build libraries, and can be overridden.
2842
2843# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2844build_subdir="build-${build_noncanonical}"
57255173 2845
5213506e
RW
2846# Check whether --with-build-libsubdir was given.
2847if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2849else
2850 build_libsubdir="$build_subdir"
5213506e
RW
2851fi
2852
891c05b1
JJ
2853# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2857else
2858 host_subdir=.
2859fi
2860# No prefix.
2861target_subdir=${target_noncanonical}
2862
2863
2864# -------
2865# Options
2866# -------
2867
5213506e
RW
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2869$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2870# Check whether --enable-version-specific-runtime-libs was given.
2871if test "${enable_version_specific_runtime_libs+set}" = set; then :
2872 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2873 yes) version_specific_libs=yes ;;
2874 no) version_specific_libs=no ;;
22e05272 2875 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2876 esac
2877else
2878 version_specific_libs=no
5213506e
RW
2879fi
2880
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2882$as_echo "$version_specific_libs" >&6; }
891c05b1 2883
b808ac33 2884# Build with intermodule optimisations
5213506e
RW
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2886$as_echo_n "checking for --enable-intermodule... " >&6; }
2887# Check whether --enable-intermodule was given.
2888if test "${enable_intermodule+set}" = set; then :
2889 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2890 yes) onestep="-onestep";;
2891 *) onestep="";;
2892esac
2893else
2894 onestep=""
5213506e 2895fi
b808ac33 2896
5213506e
RW
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2898$as_echo "$enable_intermodule" >&6; }
2899 if test x$onestep = x-onestep; then
b808ac33
BF
2900 onestep_TRUE=
2901 onestep_FALSE='#'
2902else
2903 onestep_TRUE='#'
2904 onestep_FALSE=
2905fi
2906
2907
891c05b1
JJ
2908
2909# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2910#
2911# You will slowly go insane if you do not grok the following fact: when
2912# building this library, the top-level /target/ becomes the library's /host/.
2913#
2914# configure then causes --target to default to --host, exactly like any
2915# other package using autoconf. Therefore, 'target' and 'host' will
2916# always be the same. This makes sense both for native and cross compilers
2917# just think about it for a little while. :-)
2918#
2919# Also, if this library is being configured as part of a cross compiler, the
2920# top-level configure script will pass the "real" host as $with_cross_host.
2921#
2922# Do not delete or change the following two lines. For why, see
2923# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925$as_echo_n "checking host system type... " >&6; }
22e05272 2926if ${ac_cv_host+:} false; then :
5213506e
RW
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test "x$host_alias" = x; then
2930 ac_cv_host=$ac_cv_build
2931else
2932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e
RW
2934fi
2935
2936fi
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938$as_echo "$ac_cv_host" >&6; }
2939case $ac_cv_host in
2940*-*-*) ;;
22e05272 2941*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2942esac
96b8a615 2943host=$ac_cv_host
5213506e
RW
2944ac_save_IFS=$IFS; IFS='-'
2945set x $ac_cv_host
2946shift
2947host_cpu=$1
2948host_vendor=$2
2949shift; shift
2950# Remember, the first character of IFS is used to create $*,
2951# except with old shells:
2952host_os=$*
2953IFS=$ac_save_IFS
2954case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2955
2956
5213506e
RW
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2958$as_echo_n "checking target system type... " >&6; }
22e05272 2959if ${ac_cv_target+:} false; then :
5213506e 2960 $as_echo_n "(cached) " >&6
96b8a615 2961else
5213506e
RW
2962 if test "x$target_alias" = x; then
2963 ac_cv_target=$ac_cv_host
2964else
2965 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2967fi
96b8a615
AJ
2968
2969fi
5213506e
RW
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2971$as_echo "$ac_cv_target" >&6; }
2972case $ac_cv_target in
2973*-*-*) ;;
22e05272 2974*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2975esac
96b8a615 2976target=$ac_cv_target
5213506e
RW
2977ac_save_IFS=$IFS; IFS='-'
2978set x $ac_cv_target
2979shift
2980target_cpu=$1
2981target_vendor=$2
2982shift; shift
2983# Remember, the first character of IFS is used to create $*,
2984# except with old shells:
2985target_os=$*
2986IFS=$ac_save_IFS
2987case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2988
2989
2990# The aliases save the names the user supplied, while $host etc.
2991# will get canonicalized.
2992test -n "$target_alias" &&
2993 test "$program_prefix$program_suffix$program_transform_name" = \
2994 NONENONEs,x,x, &&
2995 program_prefix=${target_alias}-
5213506e 2996
60858d8a
TB
2997
2998
2999
96b8a615
AJ
3000target_alias=${target_alias-$host_alias}
3001
60858d8a 3002
96b8a615
AJ
3003# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3004# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 3005# 1.9.6: minimum required version
96b8a615
AJ
3006# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3007# of other PACKAGE_* variables will, however, and there's nothing
3008# we can do about that; they come from AC_INIT).
3009# foreign: we don't follow the normal rules for GNU packages (no COPYING
3010# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 3011# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
3012# -Wall: turns on all automake warnings...
3013# -Wno-portability: ...except this one, since GNU make is required.
22e05272 3014am__api_version='1.15'
5213506e 3015
6de9cd9a
DN
3016# Find a good install program. We prefer a C program (faster),
3017# so one script is as good as another. But avoid the broken or
3018# incompatible versions:
3019# SysV /etc/install, /usr/sbin/install
3020# SunOS /usr/etc/install
3021# IRIX /sbin/install
3022# AIX /bin/install
3023# AmigaOS /C/install, which installs bootblocks on floppy discs
3024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027# OS/2's system install, which has a completely different semantic
3028# ./install, which can be erroneously created by make from ./install.sh.
38d24731 3029# Reject install programs that cannot install multiple files.
5213506e
RW
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3031$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 3032if test -z "$INSTALL"; then
22e05272 3033if ${ac_cv_path_install+:} false; then :
5213506e 3034 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3035else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
5213506e
RW
3041 # Account for people who put trailing slashes in PATH elements.
3042case $as_dir/ in #((
3043 ./ | .// | /[cC]/* | \
6de9cd9a 3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3045 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
3046 /usr/ucb/* ) ;;
3047 *)
3048 # OSF1 and SCO ODT 3.0 have their own names for install.
3049 # Don't use installbsd from OSF since it installs stuff as root
3050 # by default.
3051 for ac_prog in ginstall scoinst install; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3053 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6de9cd9a
DN
3054 if test $ac_prog = install &&
3055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3057 :
3058 elif test $ac_prog = install &&
3059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3061 :
3062 else
38d24731
RW
3063 rm -rf conftest.one conftest.two conftest.dir
3064 echo one > conftest.one
3065 echo two > conftest.two
3066 mkdir conftest.dir
3067 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3068 test -s conftest.one && test -s conftest.two &&
3069 test -s conftest.dir/conftest.one &&
3070 test -s conftest.dir/conftest.two
3071 then
3072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3073 break 3
3074 fi
6de9cd9a
DN
3075 fi
3076 fi
3077 done
3078 done
3079 ;;
3080esac
5213506e
RW
3081
3082 done
3083IFS=$as_save_IFS
6de9cd9a 3084
38d24731 3085rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3086
3087fi
3088 if test "${ac_cv_path_install+set}" = set; then
3089 INSTALL=$ac_cv_path_install
3090 else
f489fba1
FXC
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for INSTALL within a source directory, because that will
6de9cd9a 3093 # break other packages using the cache if that directory is
f489fba1 3094 # removed, or if the value is a relative name.
6de9cd9a
DN
3095 INSTALL=$ac_install_sh
3096 fi
3097fi
5213506e
RW
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3099$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3100
3101# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102# It thinks the first close brace ends the variable substitution.
3103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3104
3105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3106
3107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3108
5213506e
RW
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3110$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
3111# Reject unsafe characters in $srcdir or the absolute working directory
3112# name. Accept space and tab only in the latter.
3113am_lf='
3114'
3115case `pwd` in
3116 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 3117 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
3118esac
3119case $srcdir in
3120 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 3121 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
3122esac
3123
22e05272 3124# Do 'set' in a subshell so we don't clobber the current shell's
6de9cd9a
DN
3125# arguments. Must try -L first in case configure is actually a
3126# symlink; some systems play weird games with the mod time of symlinks
3127# (eg FreeBSD returns the mod time of the symlink's containing
3128# directory).
3129if (
22e05272
JM
3130 am_has_slept=no
3131 for am_try in 1 2; do
3132 echo "timestamp, slept: $am_has_slept" > conftest.file
3133 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3134 if test "$*" = "X"; then
3135 # -L didn't work.
3136 set X `ls -t "$srcdir/configure" conftest.file`
3137 fi
3138 if test "$*" != "X $srcdir/configure conftest.file" \
3139 && test "$*" != "X conftest.file $srcdir/configure"; then
3140
3141 # If neither matched, then we have a broken ls. This can happen
3142 # if, for instance, CONFIG_SHELL is bash and it inherits a
3143 # broken ls alias from the environment. This has actually
3144 # happened. Such a system could not be considered "sane".
3145 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3146 alias in your environment" "$LINENO" 5
3147 fi
3148 if test "$2" = conftest.file || test $am_try -eq 2; then
3149 break
3150 fi
3151 # Just in case.
3152 sleep 1
3153 am_has_slept=yes
3154 done
6de9cd9a
DN
3155 test "$2" = conftest.file
3156 )
3157then
3158 # Ok.
3159 :
3160else
22e05272 3161 as_fn_error $? "newly created file is older than distributed files!
5213506e 3162Check your system clock" "$LINENO" 5
6de9cd9a 3163fi
5213506e
RW
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
22e05272
JM
3166# If we didn't sleep, we still need to ensure time stamps of config.status and
3167# generated files are strictly newer.
3168am_sleep_pid=
3169if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3170 ( sleep 1 ) &
3171 am_sleep_pid=$!
3172fi
3173
3174rm -f conftest.file
3175
6de9cd9a 3176test "$program_prefix" != NONE &&
5213506e 3177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3178# Use a double $ so make ignores it.
3179test "$program_suffix" != NONE &&
5213506e
RW
3180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3181# Double any \ or $.
6de9cd9a 3182# By default was `s,x,x', remove it if useless.
5213506e
RW
3183ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3184program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a 3185
22e05272
JM
3186# Expand $ac_aux_dir to an absolute path.
3187am_aux_dir=`cd "$ac_aux_dir" && pwd`
6de9cd9a 3188
5213506e
RW
3189if test x"${MISSING+set}" != xset; then
3190 case $am_aux_dir in
3191 *\ * | *\ *)
3192 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3193 *)
3194 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3195 esac
3196fi
6de9cd9a 3197# Use eval to expand $SHELL
22e05272
JM
3198if eval "$MISSING --is-lightweight"; then
3199 am_missing_run="$MISSING "
6de9cd9a
DN
3200else
3201 am_missing_run=
22e05272
JM
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3203$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6de9cd9a
DN
3204fi
3205
22e05272 3206if test x"${install_sh+set}" != xset; then
5213506e
RW
3207 case $am_aux_dir in
3208 *\ * | *\ *)
3209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3210 *)
3211 install_sh="\${SHELL} $am_aux_dir/install-sh"
3212 esac
3213fi
3214
22e05272
JM
3215# Installed binaries are usually stripped using 'strip' when the user
3216# run "make install-strip". However 'strip' might not be the right
5213506e 3217# tool to use in cross-compilation environments, therefore Automake
22e05272 3218# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
3219if test "$cross_compiling" != no; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222set dummy ${ac_tool_prefix}strip; ac_word=$2
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3225if ${ac_cv_prog_STRIP+:} false; then :
5213506e 3226 $as_echo_n "(cached) " >&6
6de9cd9a 3227else
5213506e
RW
3228 if test -n "$STRIP"; then
3229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
5213506e 3236 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3240 break 2
3241 fi
3242done
5213506e
RW
3243 done
3244IFS=$as_save_IFS
6de9cd9a
DN
3245
3246fi
3247fi
5213506e
RW
3248STRIP=$ac_cv_prog_STRIP
3249if test -n "$STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251$as_echo "$STRIP" >&6; }
6de9cd9a 3252else
5213506e
RW
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
6de9cd9a
DN
3255fi
3256
6de9cd9a 3257
5213506e
RW
3258fi
3259if test -z "$ac_cv_prog_STRIP"; then
3260 ac_ct_STRIP=$STRIP
3261 # Extract the first word of "strip", so it can be a program name with args.
3262set dummy strip; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3265if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 3266 $as_echo_n "(cached) " >&6
6de9cd9a 3267else
5213506e
RW
3268 if test -n "$ac_ct_STRIP"; then
3269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3270else
5213506e
RW
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3278 ac_cv_prog_ac_ct_STRIP="strip"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283 done
3284IFS=$as_save_IFS
3285
38d24731 3286fi
6de9cd9a 3287fi
5213506e
RW
3288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289if test -n "$ac_ct_STRIP"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291$as_echo "$ac_ct_STRIP" >&6; }
3292else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297 if test "x$ac_ct_STRIP" = x; then
3298 STRIP=":"
3299 else
3300 case $cross_compiling:$ac_tool_warned in
3301yes:)
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304ac_tool_warned=yes ;;
3305esac
3306 STRIP=$ac_ct_STRIP
3307 fi
3308else
3309 STRIP="$ac_cv_prog_STRIP"
3310fi
3311
3312fi
3313INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3314
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3316$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3317if test -z "$MKDIR_P"; then
22e05272 3318 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
3319 $as_echo_n "(cached) " >&6
3320else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_prog in mkdir gmkdir; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3328 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
3329 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3330 'mkdir (GNU coreutils) '* | \
3331 'mkdir (coreutils) '* | \
3332 'mkdir (fileutils) '4.1*)
3333 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3334 break 3;;
3335 esac
3336 done
3337 done
3338 done
3339IFS=$as_save_IFS
3340
3341fi
3342
22e05272 3343 test -d ./--version && rmdir ./--version
5213506e
RW
3344 if test "${ac_cv_path_mkdir+set}" = set; then
3345 MKDIR_P="$ac_cv_path_mkdir -p"
3346 else
3347 # As a last resort, use the slow shell script. Don't cache a
3348 # value for MKDIR_P within a source directory, because that will
3349 # break other packages using the cache if that directory is
3350 # removed, or if the value is a relative name.
5213506e
RW
3351 MKDIR_P="$ac_install_sh -d"
3352 fi
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3355$as_echo "$MKDIR_P" >&6; }
3356
5213506e
RW
3357for ac_prog in gawk mawk nawk awk
3358do
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3363if ${ac_cv_prog_AWK+:} false; then :
5213506e
RW
3364 $as_echo_n "(cached) " >&6
3365else
3366 if test -n "$AWK"; then
3367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3376 ac_cv_prog_AWK="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380done
3381 done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386AWK=$ac_cv_prog_AWK
3387if test -n "$AWK"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389$as_echo "$AWK" >&6; }
3390else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395
3396 test -n "$AWK" && break
3397done
3398
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401set x ${MAKE-make}
3402ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3403if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
3404 $as_echo_n "(cached) " >&6
3405else
3406 cat >conftest.make <<\_ACEOF
3407SHELL = /bin/sh
3408all:
3409 @echo '@@@%%%=$(MAKE)=@@@%%%'
3410_ACEOF
22e05272 3411# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
3412case `${MAKE-make} -f conftest.make 2>/dev/null` in
3413 *@@@%%%=?*=@@@%%%*)
3414 eval ac_cv_prog_make_${ac_make}_set=yes;;
3415 *)
3416 eval ac_cv_prog_make_${ac_make}_set=no;;
3417esac
3418rm -f conftest.make
3419fi
3420if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422$as_echo "yes" >&6; }
6de9cd9a
DN
3423 SET_MAKE=
3424else
5213506e
RW
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
6de9cd9a
DN
3427 SET_MAKE="MAKE=${MAKE-make}"
3428fi
3429
3430rm -rf .tst 2>/dev/null
3431mkdir .tst 2>/dev/null
3432if test -d .tst; then
3433 am__leading_dot=.
3434else
3435 am__leading_dot=_
3436fi
3437rmdir .tst 2>/dev/null
3438
22e05272
JM
3439# Check whether --enable-silent-rules was given.
3440if test "${enable_silent_rules+set}" = set; then :
3441 enableval=$enable_silent_rules;
3442fi
3443
3444case $enable_silent_rules in # (((
3445 yes) AM_DEFAULT_VERBOSITY=0;;
3446 no) AM_DEFAULT_VERBOSITY=1;;
3447 *) AM_DEFAULT_VERBOSITY=1;;
3448esac
3449am_make=${MAKE-make}
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3451$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3452if ${am_cv_make_support_nested_variables+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454else
3455 if $as_echo 'TRUE=$(BAR$(V))
3456BAR0=false
3457BAR1=true
3458V=1
3459am__doit:
3460 @$(TRUE)
3461.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3462 am_cv_make_support_nested_variables=yes
3463else
3464 am_cv_make_support_nested_variables=no
3465fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3468$as_echo "$am_cv_make_support_nested_variables" >&6; }
3469if test $am_cv_make_support_nested_variables = yes; then
3470 AM_V='$(V)'
3471 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3472else
3473 AM_V=$AM_DEFAULT_VERBOSITY
3474 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3475fi
3476AM_BACKSLASH='\'
3477
5213506e
RW
3478if test "`cd $srcdir && pwd`" != "`pwd`"; then
3479 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3480 # is not polluted with repeated "-I."
3481 am__isrc=' -I$(srcdir)'
3482 # test to see if srcdir already configured
3483 if test -f $srcdir/config.status; then
22e05272 3484 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 3485 fi
6de9cd9a
DN
3486fi
3487
3488# test whether we have cygpath
3489if test -z "$CYGPATH_W"; then
3490 if (cygpath --version) >/dev/null 2>/dev/null; then
3491 CYGPATH_W='cygpath -w'
3492 else
3493 CYGPATH_W=echo
3494 fi
3495fi
3496
3497
3498# Define the identity of the package.
3499 PACKAGE='libgfortran'
0dce3ca1 3500 VERSION='0.3'
6de9cd9a
DN
3501
3502
6de9cd9a
DN
3503# Some tools Automake needs.
3504
3505ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3506
3507
3508AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3509
3510
3511AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3512
3513
3514AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3515
3516
3517MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3518
22e05272
JM
3519# For better backward compatibility. To be removed once Automake 1.9.x
3520# dies out for good. For more background, see:
3521# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3522# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3523mkdir_p='$(MKDIR_P)'
3524
3525# We need awk for the "check" target (and possibly the TAP driver). The
3526# system "awk" is bad on some platforms.
c20fdb91
JB
3527# Always define AMTAR for backward compatibility. Yes, it's still used
3528# in the wild :-( We should find a proper way to deprecate it ...
3529AMTAR='$${TAR-tar}'
d49ec2d1 3530
22e05272
JM
3531
3532# We'll loop over all known methods to create a tar archive until one works.
3533_am_tools='gnutar pax cpio none'
3534
c20fdb91 3535am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3536
3537
6de9cd9a
DN
3538
3539
3540
6de9cd9a 3541
22e05272
JM
3542# POSIX will say in a future version that running "rm -f" with no argument
3543# is OK; and we want to be able to make that assumption in our Makefile
3544# recipes. So use an aggressive probe to check that the usage we want is
3545# actually supported "in the wild" to an acceptable degree.
3546# See automake bug#10828.
3547# To make any issue more visible, cause the running configure to be aborted
3548# by default if the 'rm' program in use doesn't match our expectations; the
3549# user can still override this though.
3550if rm -f && rm -fr && rm -rf; then : OK; else
3551 cat >&2 <<'END'
3552Oops!
3553
3554Your 'rm' program seems unable to run without file operands specified
3555on the command line, even when the '-f' option is present. This is contrary
3556to the behaviour of most rm programs out there, and not conforming with
3557the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3558
3559Please tell bug-automake@gnu.org about your system, including the value
3560of your $PATH and any error possibly output before this message. This
3561can help us improve future automake versions.
3562
3563END
3564 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3565 echo 'Configuration will proceed anyway, since you have set the' >&2
3566 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3567 echo >&2
3568 else
3569 cat >&2 <<'END'
3570Aborting the configuration process, to ensure you take notice of the issue.
3571
3572You can download and install GNU coreutils to get an 'rm' implementation
3573that behaves properly: <http://www.gnu.org/software/coreutils/>.
3574
3575If you want to complete the configuration process using your problematic
3576'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3577to "yes", and re-run configure.
3578
3579END
3580 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3581 fi
3582fi
3583
3584
5213506e
RW
3585
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3587$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3588 # Check whether --enable-maintainer-mode was given.
3589if test "${enable_maintainer_mode+set}" = set; then :
3590 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3591else
3592 USE_MAINTAINER_MODE=no
5213506e 3593fi
6de9cd9a 3594
5213506e
RW
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3596$as_echo "$USE_MAINTAINER_MODE" >&6; }
3597 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3598 MAINTAINER_MODE_TRUE=
3599 MAINTAINER_MODE_FALSE='#'
3600else
3601 MAINTAINER_MODE_TRUE='#'
3602 MAINTAINER_MODE_FALSE=
3603fi
3604
3605 MAINT=$MAINTAINER_MODE_TRUE
3606
3607
96b8a615 3608# Default to --enable-multilib
5213506e
RW
3609# Check whether --enable-multilib was given.
3610if test "${enable_multilib+set}" = set; then :
3611 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3612 yes) multilib=yes ;;
3613 no) multilib=no ;;
22e05272 3614 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3615 esac
3616else
3617 multilib=yes
5213506e
RW
3618fi
3619
96b8a615
AJ
3620
3621# We may get other options which we leave undocumented:
3622# --with-target-subdir, --with-multisrctop, --with-multisubdir
3623# See config-ml.in if you want the gory details.
3624
3625if test "$srcdir" = "."; then
3626 if test "$with_target_subdir" != "."; then
3627 multi_basedir="$srcdir/$with_multisrctop../.."
3628 else
3629 multi_basedir="$srcdir/$with_multisrctop.."
3630 fi
3631else
3632 multi_basedir="$srcdir/.."
3633fi
3634
3635
9f9ef303
FXC
3636# Even if the default multilib is not a cross compilation,
3637# it may be that some of the other multilibs are.
3638if test $cross_compiling = no && test $multilib = yes \
3639 && test "x${with_multisubdir}" != x ; then
3640 cross_compiling=maybe
3641fi
3642
5213506e 3643ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3644
3645
3646# Handy for debugging:
3647#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3648
3649# Are we being configured with some form of cross compiler?
3650# NB: We don't actually need to know this just now, but when, say, a test
3651# suite is included, we'll have to know.
3652if test "$build" != "$host"; then
3653 LIBGFOR_IS_NATIVE=false
f02d008e 3654
96b8a615
AJ
3655else
3656 LIBGFOR_IS_NATIVE=true
3657fi
3658
21be0a5a 3659DEPDIR="${am__leading_dot}deps"
96b8a615 3660
21be0a5a 3661ac_config_commands="$ac_config_commands depfiles"
96b8a615 3662
6de9cd9a 3663
21be0a5a
JB
3664am_make=${MAKE-make}
3665cat > confinc << 'END'
3666am__doit:
3667 @echo this is the am__doit target
3668.PHONY: am__doit
3669END
3670# If we don't find an include directive, just comment out the code.
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3672$as_echo_n "checking for style of include used by $am_make... " >&6; }
3673am__include="#"
3674am__quote=
3675_am_result=none
3676# First try GNU make style include.
3677echo "include confinc" > confmf
22e05272 3678# Ignore all kinds of additional output from 'make'.
21be0a5a
JB
3679case `$am_make -s -f confmf 2> /dev/null` in #(
3680*the\ am__doit\ target*)
3681 am__include=include
3682 am__quote=
3683 _am_result=GNU
3684 ;;
3685esac
3686# Now try BSD make style include.
3687if test "$am__include" = "#"; then
3688 echo '.include "confinc"' > confmf
3689 case `$am_make -s -f confmf 2> /dev/null` in #(
3690 *the\ am__doit\ target*)
3691 am__include=.include
3692 am__quote="\""
3693 _am_result=BSD
3694 ;;
3695 esac
3696fi
1ec601bf 3697
6de9cd9a 3698
21be0a5a
JB
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3700$as_echo "$_am_result" >&6; }
3701rm -f confinc confmf
3702
3703# Check whether --enable-dependency-tracking was given.
3704if test "${enable_dependency_tracking+set}" = set; then :
3705 enableval=$enable_dependency_tracking;
3706fi
3707
3708if test "x$enable_dependency_tracking" != xno; then
3709 am_depcomp="$ac_aux_dir/depcomp"
3710 AMDEPBACKSLASH='\'
c20fdb91 3711 am__nodep='_no'
21be0a5a
JB
3712fi
3713 if test "x$enable_dependency_tracking" != xno; then
3714 AMDEP_TRUE=
3715 AMDEP_FALSE='#'
3716else
3717 AMDEP_TRUE='#'
3718 AMDEP_FALSE=
3719fi
6de9cd9a
DN
3720
3721
6de9cd9a
DN
3722ac_ext=c
3723ac_cpp='$CPP $CPPFLAGS'
3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3729set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3732if ${ac_cv_prog_CC+:} false; then :
5213506e 3733 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3734else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
5213506e 3743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3747 break 2
3748 fi
3749done
5213506e
RW
3750 done
3751IFS=$as_save_IFS
6de9cd9a
DN
3752
3753fi
3754fi
3755CC=$ac_cv_prog_CC
3756if test -n "$CC"; then
5213506e
RW
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758$as_echo "$CC" >&6; }
6de9cd9a 3759else
5213506e
RW
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761$as_echo "no" >&6; }
6de9cd9a
DN
3762fi
3763
5213506e 3764
6de9cd9a
DN
3765fi
3766if test -z "$ac_cv_prog_CC"; then
3767 ac_ct_CC=$CC
3768 # Extract the first word of "gcc", so it can be a program name with args.
3769set dummy gcc; ac_word=$2
5213506e
RW
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3772if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3773 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3774else
3775 if test -n "$ac_ct_CC"; then
3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
5213506e 3783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3785 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3787 break 2
3788 fi
3789done
5213506e
RW
3790 done
3791IFS=$as_save_IFS
6de9cd9a
DN
3792
3793fi
3794fi
3795ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796if test -n "$ac_ct_CC"; then
5213506e
RW
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3799else
5213506e
RW
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801$as_echo "no" >&6; }
6de9cd9a
DN
3802fi
3803
5213506e
RW
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808yes:)
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811ac_tool_warned=yes ;;
3812esac
3813 CC=$ac_ct_CC
3814 fi
6de9cd9a
DN
3815else
3816 CC="$ac_cv_prog_CC"
3817fi
3818
3819if test -z "$CC"; then
5213506e
RW
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3822set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3825if ${ac_cv_prog_CC+:} false; then :
5213506e 3826 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3827else
3828 if test -n "$CC"; then
3829 ac_cv_prog_CC="$CC" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
5213506e 3836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3838 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3840 break 2
3841 fi
3842done
5213506e
RW
3843 done
3844IFS=$as_save_IFS
6de9cd9a
DN
3845
3846fi
3847fi
3848CC=$ac_cv_prog_CC
3849if test -n "$CC"; then
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851$as_echo "$CC" >&6; }
38d24731 3852else
5213506e
RW
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854$as_echo "no" >&6; }
38d24731
RW
3855fi
3856
38d24731 3857
5213506e 3858 fi
6de9cd9a
DN
3859fi
3860if test -z "$CC"; then
3861 # Extract the first word of "cc", so it can be a program name with args.
3862set dummy cc; ac_word=$2
5213506e
RW
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3865if ${ac_cv_prog_CC+:} false; then :
5213506e 3866 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3867else
3868 if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3870else
3871 ac_prog_rejected=no
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
5213506e 3877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
3879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3880 ac_prog_rejected=yes
3881 continue
3882 fi
3883 ac_cv_prog_CC="cc"
5213506e 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3885 break 2
3886 fi
3887done
5213506e
RW
3888 done
3889IFS=$as_save_IFS
6de9cd9a
DN
3890
3891if test $ac_prog_rejected = yes; then
3892 # We found a bogon in the path, so make sure we never use it.
3893 set dummy $ac_cv_prog_CC
3894 shift
3895 if test $# != 0; then
3896 # We chose a different compiler from the bogus one.
3897 # However, it has the same basename, so the bogon will be chosen
3898 # first if we set CC to just the basename; use the full file name.
3899 shift
3900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3901 fi
3902fi
3903fi
3904fi
3905CC=$ac_cv_prog_CC
3906if test -n "$CC"; then
5213506e
RW
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908$as_echo "$CC" >&6; }
6de9cd9a 3909else
5213506e
RW
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
6de9cd9a
DN
3912fi
3913
5213506e 3914
6de9cd9a
DN
3915fi
3916if test -z "$CC"; then
3917 if test -n "$ac_tool_prefix"; then
5213506e 3918 for ac_prog in cl.exe
6de9cd9a
DN
3919 do
3920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3924if ${ac_cv_prog_CC+:} false; then :
5213506e 3925 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3926else
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
5213506e 3935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3939 break 2
3940 fi
3941done
5213506e
RW
3942 done
3943IFS=$as_save_IFS
6de9cd9a
DN
3944
3945fi
3946fi
3947CC=$ac_cv_prog_CC
3948if test -n "$CC"; then
5213506e
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950$as_echo "$CC" >&6; }
6de9cd9a 3951else
5213506e
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
6de9cd9a
DN
3954fi
3955
5213506e 3956
6de9cd9a
DN
3957 test -n "$CC" && break
3958 done
3959fi
3960if test -z "$CC"; then
3961 ac_ct_CC=$CC
5213506e 3962 for ac_prog in cl.exe
6de9cd9a
DN
3963do
3964 # Extract the first word of "$ac_prog", so it can be a program name with args.
3965set dummy $ac_prog; ac_word=$2
5213506e
RW
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3968if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3969 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3970else
3971 if test -n "$ac_ct_CC"; then
3972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
5213506e 3979 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3981 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3983 break 2
3984 fi
3985done
5213506e
RW
3986 done
3987IFS=$as_save_IFS
6de9cd9a
DN
3988
3989fi
3990fi
3991ac_ct_CC=$ac_cv_prog_ac_ct_CC
3992if test -n "$ac_ct_CC"; then
5213506e
RW
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3994$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3995else
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
6de9cd9a
DN
3998fi
3999
5213506e 4000
6de9cd9a
DN
4001 test -n "$ac_ct_CC" && break
4002done
4003
5213506e
RW
4004 if test "x$ac_ct_CC" = x; then
4005 CC=""
4006 else
4007 case $cross_compiling:$ac_tool_warned in
4008yes:)
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4011ac_tool_warned=yes ;;
4012esac
4013 CC=$ac_ct_CC
4014 fi
6de9cd9a
DN
4015fi
4016
4017fi
4018
4019
5213506e
RW
4020test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4022as_fn_error $? "no acceptable C compiler found in \$PATH
4023See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a
DN
4024
4025# Provide some information about the compiler.
5213506e
RW
4026$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4027set X $ac_compile
4028ac_compiler=$2
4029for ac_option in --version -v -V -qversion; do
4030 { { ac_try="$ac_compiler $ac_option >&5"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 4038 ac_status=$?
5213506e
RW
4039 if test -s conftest.err; then
4040 sed '10a\
4041... rest of stderr output deleted ...
4042 10q' conftest.err >conftest.er1
4043 cat conftest.er1 >&5
5213506e 4044 fi
22e05272 4045 rm -f conftest.er1 conftest.err
5213506e
RW
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048done
6de9cd9a 4049
5213506e 4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4051/* end confdefs.h. */
02ce382c 4052#include <stdio.h>
f02d008e
JD
4053int
4054main ()
4055{
02ce382c 4056printf ("hello world\n");
f02d008e
JD
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061# FIXME: Cleanup?
5213506e 4062if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
4063 (eval $ac_link) 2>&5
4064 ac_status=$?
5213506e
RW
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; then :
f02d008e
JD
4067 gcc_no_link=no
4068else
4069 gcc_no_link=yes
4070fi
f02d008e
JD
4071if test x$gcc_no_link = xyes; then
4072 # Setting cross_compile will disable run tests; it will
4073 # also disable AC_CHECK_FILE but that's generally
4074 # correct if we can't link.
4075 cross_compiling=yes
4076 EXEEXT=
4077else
5213506e 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
4079/* end confdefs.h. */
4080
6de9cd9a
DN
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089ac_clean_files_save=$ac_clean_files
22e05272 4090ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6de9cd9a
DN
4091# Try to create an executable without -o first, disregard a.out.
4092# It will help us diagnose broken compilers, and finding out an intuition
4093# of exeext.
22e05272
JM
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4095$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4096ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4097
4098# The possible output files:
4099ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4100
4101ac_rmfiles=
4102for ac_file in $ac_files
4103do
4104 case $ac_file in
4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4107 esac
4108done
4109rm -f $ac_rmfiles
4110
4111if { { ac_try="$ac_link_default"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117$as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_link_default") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; then :
4122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4123# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4124# in a Makefile. We should not override ac_cv_exeext if it was cached,
4125# so that the user can short-circuit this test for compilers unknown to
4126# Autoconf.
4127for ac_file in $ac_files ''
6de9cd9a
DN
4128do
4129 test -f "$ac_file" || continue
4130 case $ac_file in
5213506e 4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
4132 ;;
4133 [ab].out )
4134 # We found the default executable, but exeext='' is most
4135 # certainly right.
4136 break;;
4137 *.* )
5213506e
RW
4138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4139 then :; else
4140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 fi
4142 # We set ac_cv_exeext here because the later test for it is not
4143 # safe: cross compilers may not add the suffix if given an `-o'
4144 # argument, so we may need to know it at that point already.
4145 # Even if this section looks crufty: it has the advantage of
4146 # actually working.
6de9cd9a
DN
4147 break;;
4148 * )
4149 break;;
4150 esac
4151done
5213506e
RW
4152test "$ac_cv_exeext" = no && ac_cv_exeext=
4153
6de9cd9a 4154else
5213506e
RW
4155 ac_file=''
4156fi
5213506e 4157if test -z "$ac_file"; then :
22e05272
JM
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
4160$as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
5213506e
RW
4163{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4165as_fn_error 77 "C compiler cannot create executables
4166See \`config.log' for more details" "$LINENO" 5; }
4167else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; }
6de9cd9a 4170fi
22e05272
JM
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4172$as_echo_n "checking for C compiler default output file name... " >&6; }
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4174$as_echo "$ac_file" >&6; }
6de9cd9a 4175ac_exeext=$ac_cv_exeext
6de9cd9a 4176
22e05272 4177rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6de9cd9a 4178ac_clean_files=$ac_clean_files_save
5213506e
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4180$as_echo_n "checking for suffix of executables... " >&6; }
4181if { { ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187$as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_link") 2>&5
6de9cd9a 4189 ac_status=$?
5213506e
RW
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }; then :
6de9cd9a
DN
4192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4194# work properly (i.e., refer to `conftest.exe'), while it won't with
4195# `rm'.
4196for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
5213506e 4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4201 break;;
4202 * ) break;;
4203 esac
4204done
4205else
5213506e
RW
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4208as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4209See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a 4210fi
22e05272 4211rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4213$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4214
4215rm -f conftest.$ac_ext
4216EXEEXT=$ac_cv_exeext
4217ac_exeext=$EXEEXT
22e05272
JM
4218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h. */
4220#include <stdio.h>
4221int
4222main ()
4223{
4224FILE *f = fopen ("conftest.out", "w");
4225 return ferror (f) || fclose (f) != 0;
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231ac_clean_files="$ac_clean_files conftest.out"
4232# Check that the compiler produces executables we can run. If not, either
4233# the compiler is broken, or we cross compile.
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235$as_echo_n "checking whether we are cross compiling... " >&6; }
4236if test "$cross_compiling" != yes; then
4237 { { ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
4245 ac_status=$?
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }
4248 if { ac_try='./conftest$ac_cv_exeext'
4249 { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254$as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; }; then
4259 cross_compiling=no
4260 else
4261 if test "$cross_compiling" = maybe; then
4262 cross_compiling=yes
4263 else
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error $? "cannot run C compiled programs.
4267If you meant to cross compile, use \`--host'.
4268See \`config.log' for more details" "$LINENO" 5; }
4269 fi
4270 fi
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4273$as_echo "$cross_compiling" >&6; }
4274
4275rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4276ac_clean_files=$ac_clean_files_save
f02d008e 4277fi
5213506e
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4280if ${ac_cv_objext+:} false; then :
5213506e 4281 $as_echo_n "(cached) " >&6
6de9cd9a 4282else
5213506e 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4284/* end confdefs.h. */
4285
4286int
4287main ()
4288{
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294rm -f conftest.o conftest.obj
5213506e
RW
4295if { { ac_try="$ac_compile"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301$as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
4303 ac_status=$?
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
6de9cd9a 4308 case $ac_file in
5213506e 4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311 break;;
4312 esac
4313done
4314else
5213506e 4315 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
5213506e
RW
4318{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4320as_fn_error $? "cannot compute suffix of object files: cannot compile
4321See \`config.log' for more details" "$LINENO" 5; }
78511f8b 4322fi
78511f8b
JB
4323rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324fi
5213506e
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4327OBJEXT=$ac_cv_objext
4328ac_objext=$OBJEXT
5213506e
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4331if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4332 $as_echo_n "(cached) " >&6
78511f8b 4333else
5213506e 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4335/* end confdefs.h. */
6de9cd9a 4336
6de9cd9a
DN
4337int
4338main ()
4339{
78511f8b
JB
4340#ifndef __GNUC__
4341 choke me
4342#endif
c0e7e2bf 4343
6de9cd9a
DN
4344 ;
4345 return 0;
4346}
4347_ACEOF
5213506e 4348if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4349 ac_compiler_gnu=yes
6de9cd9a 4350else
5213506e 4351 ac_compiler_gnu=no
78511f8b 4352fi
5213506e 4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4354ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356fi
5213506e
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361else
4362 GCC=
4363fi
78511f8b
JB
4364ac_test_CFLAGS=${CFLAGS+set}
4365ac_save_CFLAGS=$CFLAGS
5213506e
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4368if ${ac_cv_prog_cc_g+:} false; then :
5213506e 4369 $as_echo_n "(cached) " >&6
78511f8b 4370else
5213506e
RW
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4373 ac_cv_prog_cc_g=no
4374 CFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4376/* end confdefs.h. */
c0e7e2bf 4377
6de9cd9a
DN
4378int
4379main ()
4380{
c0e7e2bf 4381
6de9cd9a
DN
4382 ;
4383 return 0;
4384}
4385_ACEOF
5213506e 4386if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4387 ac_cv_prog_cc_g=yes
4388else
5213506e
RW
4389 CFLAGS=""
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h. */
4392
4393int
4394main ()
4395{
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"; then :
4402
4403else
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4405 CFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h. */
f489fba1 4408
5213506e
RW
4409int
4410main ()
4411{
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_prog_cc_g=yes
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4421fi
5213506e 4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4423fi
5213506e
RW
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4429if test "$ac_test_CFLAGS" = set; then
4430 CFLAGS=$ac_save_CFLAGS
4431elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4433 CFLAGS="-g -O2"
4434 else
4435 CFLAGS="-g"
4436 fi
4437else
4438 if test "$GCC" = yes; then
4439 CFLAGS="-O2"
4440 else
4441 CFLAGS=
4442 fi
4443fi
5213506e
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4446if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4447 $as_echo_n "(cached) " >&6
38d24731 4448else
5213506e 4449 ac_cv_prog_cc_c89=no
38d24731 4450ac_save_CC=$CC
5213506e 4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4452/* end confdefs.h. */
38d24731
RW
4453#include <stdarg.h>
4454#include <stdio.h>
22e05272 4455struct stat;
38d24731
RW
4456/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4457struct buf { int x; };
4458FILE * (*rcsopen) (struct buf *, struct stat *, int);
4459static char *e (p, i)
4460 char **p;
4461 int i;
4462{
4463 return p[i];
4464}
4465static char *f (char * (*g) (char **, int), char **p, ...)
4466{
4467 char *s;
4468 va_list v;
4469 va_start (v,p);
4470 s = g (p, va_arg (v,int));
4471 va_end (v);
4472 return s;
4473}
f489fba1 4474
38d24731
RW
4475/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4476 function prototypes and stuff, but not '\xHH' hex character constants.
4477 These don't provoke an error unfortunately, instead are silently treated
5213506e 4478 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4480 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4481 that's true only with -std. */
38d24731
RW
4482int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4483
5213506e
RW
4484/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4485 inside strings and character constants. */
4486#define FOO(x) 'x'
4487int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4488
38d24731
RW
4489int test (int i, double x);
4490struct s1 {int (*f) (int a);};
4491struct s2 {int (*f) (double a);};
4492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493int argc;
4494char **argv;
f489fba1
FXC
4495int
4496main ()
4497{
38d24731 4498return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4499 ;
4500 return 0;
4501}
4502_ACEOF
5213506e
RW
4503for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4505do
4506 CC="$ac_save_CC $ac_arg"
5213506e
RW
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_prog_cc_c89=$ac_arg
38d24731 4509fi
5213506e
RW
4510rm -f core conftest.err conftest.$ac_objext
4511 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4512done
5213506e 4513rm -f conftest.$ac_ext
38d24731
RW
4514CC=$ac_save_CC
4515
4516fi
5213506e
RW
4517# AC_CACHE_VAL
4518case "x$ac_cv_prog_cc_c89" in
4519 x)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4521$as_echo "none needed" >&6; } ;;
4522 xno)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4524$as_echo "unsupported" >&6; } ;;
38d24731 4525 *)
5213506e
RW
4526 CC="$CC $ac_cv_prog_cc_c89"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4529esac
5213506e 4530if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4531
4532fi
6de9cd9a 4533
6de9cd9a
DN
4534ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4539
22e05272
JM
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4546$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4547if ${am_cv_prog_cc_c_o+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549else
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561 # Make sure it works both with $CC and with simple cc.
4562 # Following AC_PROG_CC_C_O, we do the test twice because some
4563 # compilers refuse to overwrite an existing .o file with -o,
4564 # though they will create one.
4565 am_cv_prog_cc_c_o=yes
4566 for am_i in 1 2; do
4567 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4568 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } \
4572 && test -f conftest2.$ac_objext; then
4573 : OK
4574 else
4575 am_cv_prog_cc_c_o=no
4576 break
4577 fi
4578 done
4579 rm -f core conftest*
4580 unset am_i
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4583$as_echo "$am_cv_prog_cc_c_o" >&6; }
4584if test "$am_cv_prog_cc_c_o" != yes; then
4585 # Losing compiler, so override with the script.
4586 # FIXME: It is wrong to rewrite CC.
4587 # But if we don't then we get into trouble of one sort or another.
4588 # A longer-term fix would be to have automake use am__CC in this case,
4589 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4590 CC="$am_aux_dir/compile $CC"
4591fi
4592ac_ext=c
4593ac_cpp='$CPP $CPPFLAGS'
4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
679c0f9a
TT
4599depcc="$CC" am_compiler_list=
4600
5213506e
RW
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4602$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4603if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4604 $as_echo_n "(cached) " >&6
679c0f9a
TT
4605else
4606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4607 # We make a subdir and do the tests there. Otherwise we can end up
4608 # making bogus files that we don't know about and never remove. For
4609 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4610 # making a dummy file named 'D' -- because '-MD' means "put the output
4611 # in D".
c20fdb91 4612 rm -rf conftest.dir
679c0f9a
TT
4613 mkdir conftest.dir
4614 # Copy depcomp to subdir because otherwise we won't find it if we're
4615 # using a relative directory.
4616 cp "$am_depcomp" conftest.dir
4617 cd conftest.dir
4618 # We will build objects and dependencies in a subdirectory because
4619 # it helps to detect inapplicable dependency modes. For instance
4620 # both Tru64's cc and ICC support -MD to output dependencies as a
4621 # side effect of compilation, but ICC will put the dependencies in
4622 # the current directory while Tru64 will put them in the object
4623 # directory.
4624 mkdir sub
4625
4626 am_cv_CC_dependencies_compiler_type=none
4627 if test "$am_compiler_list" = ""; then
4628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4629 fi
5213506e
RW
4630 am__universal=false
4631 case " $depcc " in #(
4632 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4633 esac
4634
679c0f9a
TT
4635 for depmode in $am_compiler_list; do
4636 # Setup a source with many dependencies, because some compilers
4637 # like to wrap large dependency lists on column 80 (with \), and
4638 # we should not choose a depcomp mode which is confused by this.
4639 #
4640 # We need to recreate these files for each test, as the compiler may
4641 # overwrite some of them when testing with obscure command lines.
4642 # This happens at least with the AIX C compiler.
4643 : > sub/conftest.c
4644 for i in 1 2 3 4 5 6; do
4645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4646 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4647 # Solaris 10 /bin/sh.
4648 echo '/* dummy */' > sub/conftst$i.h
679c0f9a
TT
4649 done
4650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4651
22e05272 4652 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4653 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4654 # handle '-M -o', and we need to detect this. Also, some Intel
4655 # versions had trouble with output in subdirs.
5213506e
RW
4656 am__obj=sub/conftest.${OBJEXT-o}
4657 am__minus_obj="-o $am__obj"
679c0f9a 4658 case $depmode in
5213506e
RW
4659 gcc)
4660 # This depmode causes a compiler race in universal mode.
4661 test "$am__universal" = false || continue
4662 ;;
679c0f9a 4663 nosideeffect)
22e05272
JM
4664 # After this tag, mechanisms are not by side-effect, so they'll
4665 # only be used when explicitly requested.
679c0f9a
TT
4666 if test "x$enable_dependency_tracking" = xyes; then
4667 continue
4668 else
4669 break
4670 fi
4671 ;;
c20fdb91 4672 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4673 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4674 # not run yet. These depmodes are late enough in the game, and
4675 # so weak that their functioning should not be impacted.
4676 am__obj=conftest.${OBJEXT-o}
4677 am__minus_obj=
4678 ;;
679c0f9a
TT
4679 none) break ;;
4680 esac
679c0f9a 4681 if depmode=$depmode \
5213506e 4682 source=sub/conftest.c object=$am__obj \
679c0f9a 4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4684 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4685 >/dev/null 2>conftest.err &&
5213506e 4686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4688 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4690 # icc doesn't choke on unknown options, it will just issue warnings
4691 # or remarks (even with -Werror). So we grep stderr for any message
4692 # that says an option was ignored or not supported.
4693 # When given -MP, icc 7.0 and 7.1 complain thusly:
4694 # icc: Command line warning: ignoring option '-M'; no argument required
4695 # The diagnosis changed in icc 8.0:
4696 # icc: Command line remark: option '-MP' not supported
4697 if (grep 'ignoring option' conftest.err ||
4698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4699 am_cv_CC_dependencies_compiler_type=$depmode
4700 break
4701 fi
4702 fi
4703 done
4704
4705 cd ..
4706 rm -rf conftest.dir
4707else
4708 am_cv_CC_dependencies_compiler_type=none
4709fi
4710
4711fi
5213506e
RW
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4713$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4714CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4715
5213506e 4716 if
679c0f9a
TT
4717 test "x$enable_dependency_tracking" != xno \
4718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4719 am__fastdepCC_TRUE=
4720 am__fastdepCC_FALSE='#'
4721else
4722 am__fastdepCC_TRUE='#'
4723 am__fastdepCC_FALSE=
4724fi
4725
6de9cd9a 4726
6de9cd9a 4727
21be0a5a
JB
4728ac_ext=c
4729ac_cpp='$CPP $CPPFLAGS'
4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4734$as_echo_n "checking how to run the C preprocessor... " >&6; }
4735# On Suns, sometimes $CPP names a directory.
4736if test -n "$CPP" && test -d "$CPP"; then
4737 CPP=
6de9cd9a 4738fi
21be0a5a 4739if test -z "$CPP"; then
22e05272 4740 if ${ac_cv_prog_CPP+:} false; then :
21be0a5a
JB
4741 $as_echo_n "(cached) " >&6
4742else
4743 # Double quotes because CPP needs to be expanded
4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745 do
4746 ac_preproc_ok=false
4747for ac_c_preproc_warn_flag in '' yes
4748do
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4756/* end confdefs.h. */
21be0a5a
JB
4757#ifdef __STDC__
4758# include <limits.h>
4759#else
4760# include <assert.h>
4761#endif
4762 Syntax error
c0e7e2bf 4763_ACEOF
21be0a5a
JB
4764if ac_fn_c_try_cpp "$LINENO"; then :
4765
49ea7a0e 4766else
21be0a5a
JB
4767 # Broken: fails on valid input.
4768continue
49ea7a0e 4769fi
22e05272 4770rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4771
21be0a5a
JB
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776#include <ac_nonexistent.h>
49ea7a0e 4777_ACEOF
21be0a5a
JB
4778if ac_fn_c_try_cpp "$LINENO"; then :
4779 # Broken: success on invalid input.
4780continue
c0e7e2bf 4781else
21be0a5a
JB
4782 # Passes both tests.
4783ac_preproc_ok=:
4784break
49ea7a0e 4785fi
22e05272 4786rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4787
4788done
4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4790rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4791if $ac_preproc_ok; then :
4792 break
c0e7e2bf
JB
4793fi
4794
21be0a5a
JB
4795 done
4796 ac_cv_prog_CPP=$CPP
4797
4798fi
4799 CPP=$ac_cv_prog_CPP
49ea7a0e 4800else
21be0a5a 4801 ac_cv_prog_CPP=$CPP
49ea7a0e 4802fi
21be0a5a
JB
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804$as_echo "$CPP" >&6; }
4805ac_preproc_ok=false
4806for ac_c_preproc_warn_flag in '' yes
4807do
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h. */
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821 Syntax error
4822_ACEOF
4823if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4824
49ea7a0e 4825else
21be0a5a
JB
4826 # Broken: fails on valid input.
4827continue
49ea7a0e 4828fi
22e05272 4829rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4830
21be0a5a
JB
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4834/* end confdefs.h. */
21be0a5a 4835#include <ac_nonexistent.h>
c049309d 4836_ACEOF
21be0a5a
JB
4837if ac_fn_c_try_cpp "$LINENO"; then :
4838 # Broken: success on invalid input.
4839continue
c049309d 4840else
21be0a5a
JB
4841 # Passes both tests.
4842ac_preproc_ok=:
4843break
c049309d 4844fi
22e05272 4845rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4849rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4850if $ac_preproc_ok; then :
4851
c049309d 4852else
21be0a5a
JB
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4856See \`config.log' for more details" "$LINENO" 5; }
c049309d 4857fi
c049309d 4858
21be0a5a
JB
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4864
21be0a5a
JB
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4867$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4868if ${ac_cv_path_GREP+:} false; then :
5213506e 4869 $as_echo_n "(cached) " >&6
6de9cd9a 4870else
21be0a5a
JB
4871 if test -z "$GREP"; then
4872 ac_path_GREP_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
21be0a5a 4879 for ac_prog in grep ggrep; do
5213506e 4880 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4881 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4882 as_fn_executable_p "$ac_path_GREP" || continue
21be0a5a
JB
4883# Check for GNU ac_path_GREP and select it if it is found.
4884 # Check for GNU $ac_path_GREP
4885case `"$ac_path_GREP" --version 2>&1` in
4886*GNU*)
4887 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4888*)
4889 ac_count=0
4890 $as_echo_n 0123456789 >"conftest.in"
4891 while :
4892 do
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 $as_echo 'GREP' >> "conftest.nl"
4897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_GREP="$ac_path_GREP"
4903 ac_path_GREP_max=$ac_count
4904 fi
4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
5213506e 4907 done
21be0a5a
JB
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
6de9cd9a 4910
21be0a5a
JB
4911 $ac_path_GREP_found && break 3
4912 done
4913 done
4914 done
4915IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_GREP"; then
22e05272 4917 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4918 fi
6de9cd9a 4919else
21be0a5a 4920 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4921fi
4922
6de9cd9a 4923fi
21be0a5a
JB
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4925$as_echo "$ac_cv_path_GREP" >&6; }
4926 GREP="$ac_cv_path_GREP"
6de9cd9a 4927
21be0a5a
JB
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4930$as_echo_n "checking for egrep... " >&6; }
22e05272 4931if ${ac_cv_path_EGREP+:} false; then :
5213506e 4932 $as_echo_n "(cached) " >&6
6de9cd9a 4933else
21be0a5a
JB
4934 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4935 then ac_cv_path_EGREP="$GREP -E"
4936 else
4937 if test -z "$EGREP"; then
4938 ac_path_EGREP_found=false
4939 # Loop through the user's path and test for each of PROGNAME-LIST
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
21be0a5a 4945 for ac_prog in egrep; do
5213506e 4946 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4948 as_fn_executable_p "$ac_path_EGREP" || continue
21be0a5a
JB
4949# Check for GNU ac_path_EGREP and select it if it is found.
4950 # Check for GNU $ac_path_EGREP
4951case `"$ac_path_EGREP" --version 2>&1` in
4952*GNU*)
4953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4954*)
4955 ac_count=0
4956 $as_echo_n 0123456789 >"conftest.in"
4957 while :
4958 do
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 $as_echo 'EGREP' >> "conftest.nl"
4963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_EGREP="$ac_path_EGREP"
4969 ac_path_EGREP_max=$ac_count
4970 fi
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
5213506e 4973 done
21be0a5a
JB
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975esac
6de9cd9a 4976
21be0a5a
JB
4977 $ac_path_EGREP_found && break 3
4978 done
4979 done
4980 done
4981IFS=$as_save_IFS
4982 if test -z "$ac_cv_path_EGREP"; then
22e05272 4983 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4984 fi
6de9cd9a 4985else
21be0a5a 4986 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4987fi
4988
21be0a5a 4989 fi
6de9cd9a 4990fi
21be0a5a
JB
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4992$as_echo "$ac_cv_path_EGREP" >&6; }
4993 EGREP="$ac_cv_path_EGREP"
4994
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4997$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4998if ${ac_cv_header_stdc+:} false; then :
5213506e 4999 $as_echo_n "(cached) " >&6
6de9cd9a 5000else
21be0a5a
JB
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h. */
5003#include <stdlib.h>
5004#include <stdarg.h>
5005#include <string.h>
5006#include <float.h>
5007
5008int
5009main ()
5010{
5011
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017 ac_cv_header_stdc=yes
6de9cd9a 5018else
21be0a5a
JB
5019 ac_cv_header_stdc=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5022
21be0a5a
JB
5023if test $ac_cv_header_stdc = yes; then
5024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h. */
5027#include <string.h>
5028
5029_ACEOF
5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then :
5032
5033else
5034 ac_cv_header_stdc=no
6de9cd9a 5035fi
21be0a5a
JB
5036rm -f conftest*
5037
6de9cd9a 5038fi
21be0a5a
JB
5039
5040if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h. */
5044#include <stdlib.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "free" >/dev/null 2>&1; then :
5049
6de9cd9a 5050else
21be0a5a 5051 ac_cv_header_stdc=no
6de9cd9a 5052fi
21be0a5a 5053rm -f conftest*
6de9cd9a 5054
6de9cd9a
DN
5055fi
5056
21be0a5a
JB
5057if test $ac_cv_header_stdc = yes; then
5058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5059 if test "$cross_compiling" = yes; then :
5060 :
5061else
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h. */
5064#include <ctype.h>
5065#include <stdlib.h>
5066#if ((' ' & 0x0FF) == 0x020)
5067# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5068# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5069#else
5070# define ISLOWER(c) \
5071 (('a' <= (c) && (c) <= 'i') \
5072 || ('j' <= (c) && (c) <= 'r') \
5073 || ('s' <= (c) && (c) <= 'z'))
5074# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075#endif
5076
5077#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5078int
5079main ()
5080{
5081 int i;
5082 for (i = 0; i < 256; i++)
5083 if (XOR (islower (i), ISLOWER (i))
5084 || toupper (i) != TOUPPER (i))
5085 return 2;
5086 return 0;
5087}
5088_ACEOF
5089if ac_fn_c_try_run "$LINENO"; then :
5090
5091else
5092 ac_cv_header_stdc=no
5093fi
5094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5095 conftest.$ac_objext conftest.beam conftest.$ac_ext
5096fi
5097
5098fi
5099fi
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5101$as_echo "$ac_cv_header_stdc" >&6; }
5102if test $ac_cv_header_stdc = yes; then
5103
5104$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5105
5106fi
5107
5108# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5109for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5110 inttypes.h stdint.h unistd.h
5111do :
5112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5114"
22e05272 5115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21be0a5a
JB
5116 cat >>confdefs.h <<_ACEOF
5117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5118_ACEOF
5119
5120fi
5121
5122done
5123
5124
5125
5126 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 5127if test "x$ac_cv_header_minix_config_h" = xyes; then :
21be0a5a
JB
5128 MINIX=yes
5129else
5130 MINIX=
5131fi
5132
5133
5134 if test "$MINIX" = yes; then
5135
5136$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5137
5138
5139$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5140
5141
5142$as_echo "#define _MINIX 1" >>confdefs.h
5143
5144 fi
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5148$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 5149if ${ac_cv_safe_to_define___extensions__+:} false; then :
21be0a5a
JB
5150 $as_echo_n "(cached) " >&6
5151else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154
22e05272
JM
5155# define __EXTENSIONS__ 1
5156 $ac_includes_default
21be0a5a
JB
5157int
5158main ()
5159{
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_safe_to_define___extensions__=yes
5167else
5168 ac_cv_safe_to_define___extensions__=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5173$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5174 test $ac_cv_safe_to_define___extensions__ = yes &&
5175 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5176
5177 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5178
5179 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5180
5181 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5182
5183 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5184
5185
5186
e8e66971
MR
5187
5188# Check whether --with-toolexeclibdir was given.
5189if test "${with_toolexeclibdir+set}" = set; then :
5190 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5191 /)
5192 ;;
5193 */)
5194 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5195 ;;
5196esac
5197else
5198 with_toolexeclibdir=no
5199fi
5200
5201
5202
21be0a5a
JB
5203# Calculate toolexeclibdir
5204# Also toolexecdir, though it's only used in toolexeclibdir
5205case ${version_specific_libs} in
5206 yes)
5207 # Need the gcc compiler version to know where to install libraries
5208 # and header files if --enable-version-specific-runtime-libs option
5209 # is selected.
5210 toolexecdir='$(libdir)/gcc/$(target_alias)'
5211 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5212 ;;
5213 no)
5214 if test -n "$with_cross_host" &&
5215 test x"$with_cross_host" != x"no"; then
5216 # Install a library built with a cross compiler in tooldir, not libdir.
5217 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5218 case ${with_toolexeclibdir} in
5219 no)
5220 toolexeclibdir='$(toolexecdir)/lib'
5221 ;;
5222 *)
5223 toolexeclibdir=${with_toolexeclibdir}
5224 ;;
5225 esac
21be0a5a
JB
5226 else
5227 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5228 toolexeclibdir='$(libdir)'
5229 fi
5230 multi_os_directory=`$CC -print-multi-os-directory`
5231 case $multi_os_directory in
5232 .) ;; # Avoid trailing /.
5233 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5234 esac
5235 ;;
5236esac
5237
5238
5239
5240# Create a spec file, so that compile/link tests don't fail
5241test -f libgfortran.spec || touch libgfortran.spec
5242
60858d8a
TB
5243ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
21be0a5a
JB
5249# Check the compiler.
5250# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5251# We must force CC to /not/ be precious variables; otherwise
5252# the wrong, non-multilib-adjusted value will be used in multilibs.
5253# As a side effect, we have to subst CFLAGS ourselves.
5254
5255
5256
5257ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5267if ${ac_cv_prog_CC+:} false; then :
5213506e 5268 $as_echo_n "(cached) " >&6
6de9cd9a 5269else
21be0a5a
JB
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5272else
96b8a615
AJ
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5213506e 5278 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5282 break 2
5283 fi
5284done
5213506e
RW
5285 done
5286IFS=$as_save_IFS
6de9cd9a 5287
6de9cd9a 5288fi
96b8a615 5289fi
21be0a5a
JB
5290CC=$ac_cv_prog_CC
5291if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293$as_echo "$CC" >&6; }
96b8a615 5294else
5213506e
RW
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
96b8a615 5297fi
6de9cd9a 5298
5213506e 5299
6de9cd9a 5300fi
21be0a5a
JB
5301if test -z "$ac_cv_prog_CC"; then
5302 ac_ct_CC=$CC
5303 # Extract the first word of "gcc", so it can be a program name with args.
5304set dummy gcc; ac_word=$2
5213506e
RW
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5307if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 5308 $as_echo_n "(cached) " >&6
6de9cd9a 5309else
21be0a5a
JB
5310 if test -n "$ac_ct_CC"; then
5311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5312else
96b8a615
AJ
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5213506e 5318 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5320 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5322 break 2
5323 fi
5324done
5213506e
RW
5325 done
5326IFS=$as_save_IFS
6de9cd9a 5327
6de9cd9a 5328fi
6de9cd9a 5329fi
21be0a5a
JB
5330ac_ct_CC=$ac_cv_prog_ac_ct_CC
5331if test -n "$ac_ct_CC"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5333$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5334else
5213506e
RW
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
6de9cd9a
DN
5337fi
5338
21be0a5a
JB
5339 if test "x$ac_ct_CC" = x; then
5340 CC=""
5213506e
RW
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343yes:)
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346ac_tool_warned=yes ;;
5347esac
21be0a5a 5348 CC=$ac_ct_CC
5213506e 5349 fi
96b8a615 5350else
21be0a5a 5351 CC="$ac_cv_prog_CC"
6de9cd9a 5352fi
96b8a615 5353
21be0a5a
JB
5354if test -z "$CC"; then
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5357set dummy ${ac_tool_prefix}cc; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5360if ${ac_cv_prog_CC+:} false; then :
5213506e 5361 $as_echo_n "(cached) " >&6
6de9cd9a 5362else
21be0a5a
JB
5363 if test -n "$CC"; then
5364 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5365else
21be0a5a
JB
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5373 ac_cv_prog_CC="${ac_tool_prefix}cc"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378 done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383CC=$ac_cv_prog_CC
5384if test -n "$CC"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5386$as_echo "$CC" >&6; }
5387else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393 fi
5394fi
5395if test -z "$CC"; then
5396 # Extract the first word of "cc", so it can be a program name with args.
5397set dummy cc; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5400if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5401 $as_echo_n "(cached) " >&6
5402else
5403 if test -n "$CC"; then
5404 ac_cv_prog_CC="$CC" # Let the user override the test.
5405else
5406 ac_prog_rejected=no
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5415 ac_prog_rejected=yes
5416 continue
5417 fi
5418 ac_cv_prog_CC="cc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426if test $ac_prog_rejected = yes; then
5427 # We found a bogon in the path, so make sure we never use it.
5428 set dummy $ac_cv_prog_CC
5429 shift
5430 if test $# != 0; then
5431 # We chose a different compiler from the bogus one.
5432 # However, it has the same basename, so the bogon will be chosen
5433 # first if we set CC to just the basename; use the full file name.
5434 shift
5435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5436 fi
5437fi
5438fi
5439fi
5440CC=$ac_cv_prog_CC
5441if test -n "$CC"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5443$as_echo "$CC" >&6; }
5444else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450fi
5451if test -z "$CC"; then
5452 if test -n "$ac_tool_prefix"; then
5453 for ac_prog in cl.exe
5454 do
5455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5459if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5460 $as_echo_n "(cached) " >&6
5461else
5462 if test -n "$CC"; then
5463 ac_cv_prog_CC="$CC" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476done
5477 done
5478IFS=$as_save_IFS
5479
5480fi
5481fi
5482CC=$ac_cv_prog_CC
5483if test -n "$CC"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5485$as_echo "$CC" >&6; }
5486else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489fi
5490
5491
5492 test -n "$CC" && break
5493 done
5494fi
5495if test -z "$CC"; then
5496 ac_ct_CC=$CC
5497 for ac_prog in cl.exe
5498do
5499 # Extract the first word of "$ac_prog", so it can be a program name with args.
5500set dummy $ac_prog; ac_word=$2
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5503if ${ac_cv_prog_ac_ct_CC+:} false; then :
21be0a5a
JB
5504 $as_echo_n "(cached) " >&6
5505else
5506 if test -n "$ac_ct_CC"; then
5507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5508else
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5516 ac_cv_prog_ac_ct_CC="$ac_prog"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520done
5521 done
5522IFS=$as_save_IFS
5523
5524fi
5525fi
5526ac_ct_CC=$ac_cv_prog_ac_ct_CC
5527if test -n "$ac_ct_CC"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5529$as_echo "$ac_ct_CC" >&6; }
5530else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534
5535
5536 test -n "$ac_ct_CC" && break
5537done
5538
5539 if test "x$ac_ct_CC" = x; then
5540 CC=""
5541 else
5542 case $cross_compiling:$ac_tool_warned in
5543yes:)
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546ac_tool_warned=yes ;;
5547esac
5548 CC=$ac_ct_CC
5549 fi
5550fi
5551
5552fi
5553
5554
5555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5557as_fn_error $? "no acceptable C compiler found in \$PATH
5558See \`config.log' for more details" "$LINENO" 5; }
21be0a5a
JB
5559
5560# Provide some information about the compiler.
5561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5562set X $ac_compile
5563ac_compiler=$2
5564for ac_option in --version -v -V -qversion; do
5565 { { ac_try="$ac_compiler $ac_option >&5"
5566case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571$as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5573 ac_status=$?
5574 if test -s conftest.err; then
5575 sed '10a\
5576... rest of stderr output deleted ...
5577 10q' conftest.err >conftest.er1
5578 cat conftest.er1 >&5
21be0a5a 5579 fi
22e05272 5580 rm -f conftest.er1 conftest.err
21be0a5a
JB
5581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582 test $ac_status = 0; }
5583done
5584
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5587if ${ac_cv_c_compiler_gnu+:} false; then :
21be0a5a
JB
5588 $as_echo_n "(cached) " >&6
5589else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h. */
5592
5593int
5594main ()
5595{
5596#ifndef __GNUC__
5597 choke me
5598#endif
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_compiler_gnu=yes
5606else
5607 ac_compiler_gnu=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610ac_cv_c_compiler_gnu=$ac_compiler_gnu
5611
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5615if test $ac_compiler_gnu = yes; then
5616 GCC=yes
5617else
5618 GCC=
5619fi
5620ac_test_CFLAGS=${CFLAGS+set}
5621ac_save_CFLAGS=$CFLAGS
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5623$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5624if ${ac_cv_prog_cc_g+:} false; then :
21be0a5a
JB
5625 $as_echo_n "(cached) " >&6
5626else
5627 ac_save_c_werror_flag=$ac_c_werror_flag
5628 ac_c_werror_flag=yes
5629 ac_cv_prog_cc_g=no
5630 CFLAGS="-g"
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h. */
5633
5634int
5635main ()
5636{
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_prog_cc_g=yes
5644else
5645 CFLAGS=""
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658
5659else
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5661 CFLAGS="-g"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674 ac_cv_prog_cc_g=yes
5675fi
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_c_werror_flag=$ac_save_c_werror_flag
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5684$as_echo "$ac_cv_prog_cc_g" >&6; }
5685if test "$ac_test_CFLAGS" = set; then
5686 CFLAGS=$ac_save_CFLAGS
5687elif test $ac_cv_prog_cc_g = yes; then
5688 if test "$GCC" = yes; then
5689 CFLAGS="-g -O2"
5690 else
5691 CFLAGS="-g"
5692 fi
5693else
5694 if test "$GCC" = yes; then
5695 CFLAGS="-O2"
5696 else
5697 CFLAGS=
5698 fi
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5702if ${ac_cv_prog_cc_c89+:} false; then :
21be0a5a
JB
5703 $as_echo_n "(cached) " >&6
5704else
5705 ac_cv_prog_cc_c89=no
5706ac_save_CC=$CC
5707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709#include <stdarg.h>
5710#include <stdio.h>
22e05272 5711struct stat;
21be0a5a
JB
5712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5713struct buf { int x; };
5714FILE * (*rcsopen) (struct buf *, struct stat *, int);
5715static char *e (p, i)
5716 char **p;
5717 int i;
5718{
5719 return p[i];
5720}
5721static char *f (char * (*g) (char **, int), char **p, ...)
5722{
5723 char *s;
5724 va_list v;
5725 va_start (v,p);
5726 s = g (p, va_arg (v,int));
5727 va_end (v);
5728 return s;
5729}
5730
5731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5732 function prototypes and stuff, but not '\xHH' hex character constants.
5733 These don't provoke an error unfortunately, instead are silently treated
5734 as 'x'. The following induces an error, until -std is added to get
5735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5736 array size at least. It's necessary to write '\x00'==0 to get something
5737 that's true only with -std. */
5738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5739
5740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5741 inside strings and character constants. */
5742#define FOO(x) 'x'
5743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5744
5745int test (int i, double x);
5746struct s1 {int (*f) (int a);};
5747struct s2 {int (*f) (double a);};
5748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5749int argc;
5750char **argv;
5751int
5752main ()
5753{
5754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5755 ;
5756 return 0;
5757}
5758_ACEOF
5759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5761do
5762 CC="$ac_save_CC $ac_arg"
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 ac_cv_prog_cc_c89=$ac_arg
5765fi
5766rm -f core conftest.err conftest.$ac_objext
5767 test "x$ac_cv_prog_cc_c89" != "xno" && break
5768done
5769rm -f conftest.$ac_ext
5770CC=$ac_save_CC
5771
5772fi
5773# AC_CACHE_VAL
5774case "x$ac_cv_prog_cc_c89" in
5775 x)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5777$as_echo "none needed" >&6; } ;;
5778 xno)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5780$as_echo "unsupported" >&6; } ;;
5781 *)
5782 CC="$CC $ac_cv_prog_cc_c89"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5785esac
5786if test "x$ac_cv_prog_cc_c89" != xno; then :
5787
5788fi
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
22e05272
JM
5796ac_ext=c
5797ac_cpp='$CPP $CPPFLAGS'
5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5802$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5803if ${am_cv_prog_cc_c_o+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h. */
5808
5809int
5810main ()
5811{
5812
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817 # Make sure it works both with $CC and with simple cc.
5818 # Following AC_PROG_CC_C_O, we do the test twice because some
5819 # compilers refuse to overwrite an existing .o file with -o,
5820 # though they will create one.
5821 am_cv_prog_cc_c_o=yes
5822 for am_i in 1 2; do
5823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } \
5828 && test -f conftest2.$ac_objext; then
5829 : OK
5830 else
5831 am_cv_prog_cc_c_o=no
5832 break
5833 fi
5834 done
5835 rm -f core conftest*
5836 unset am_i
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5839$as_echo "$am_cv_prog_cc_c_o" >&6; }
5840if test "$am_cv_prog_cc_c_o" != yes; then
5841 # Losing compiler, so override with the script.
5842 # FIXME: It is wrong to rewrite CC.
5843 # But if we don't then we get into trouble of one sort or another.
5844 # A longer-term fix would be to have automake use am__CC in this case,
5845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5846 CC="$am_aux_dir/compile $CC"
5847fi
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
21be0a5a
JB
5855depcc="$CC" am_compiler_list=
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5858$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5859if ${am_cv_CC_dependencies_compiler_type+:} false; then :
21be0a5a
JB
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863 # We make a subdir and do the tests there. Otherwise we can end up
5864 # making bogus files that we don't know about and never remove. For
5865 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5866 # making a dummy file named 'D' -- because '-MD' means "put the output
5867 # in D".
c20fdb91 5868 rm -rf conftest.dir
21be0a5a
JB
5869 mkdir conftest.dir
5870 # Copy depcomp to subdir because otherwise we won't find it if we're
5871 # using a relative directory.
5872 cp "$am_depcomp" conftest.dir
5873 cd conftest.dir
5874 # We will build objects and dependencies in a subdirectory because
5875 # it helps to detect inapplicable dependency modes. For instance
5876 # both Tru64's cc and ICC support -MD to output dependencies as a
5877 # side effect of compilation, but ICC will put the dependencies in
5878 # the current directory while Tru64 will put them in the object
5879 # directory.
5880 mkdir sub
5881
5882 am_cv_CC_dependencies_compiler_type=none
5883 if test "$am_compiler_list" = ""; then
5884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5885 fi
5886 am__universal=false
5887 case " $depcc " in #(
5888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5889 esac
5890
5891 for depmode in $am_compiler_list; do
5892 # Setup a source with many dependencies, because some compilers
5893 # like to wrap large dependency lists on column 80 (with \), and
5894 # we should not choose a depcomp mode which is confused by this.
5895 #
5896 # We need to recreate these files for each test, as the compiler may
5897 # overwrite some of them when testing with obscure command lines.
5898 # This happens at least with the AIX C compiler.
5899 : > sub/conftest.c
5900 for i in 1 2 3 4 5 6; do
5901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5902 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5903 # Solaris 10 /bin/sh.
5904 echo '/* dummy */' > sub/conftst$i.h
21be0a5a
JB
5905 done
5906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5907
22e05272 5908 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21be0a5a 5909 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5910 # handle '-M -o', and we need to detect this. Also, some Intel
5911 # versions had trouble with output in subdirs.
21be0a5a
JB
5912 am__obj=sub/conftest.${OBJEXT-o}
5913 am__minus_obj="-o $am__obj"
5914 case $depmode in
5915 gcc)
5916 # This depmode causes a compiler race in universal mode.
5917 test "$am__universal" = false || continue
5918 ;;
5919 nosideeffect)
22e05272
JM
5920 # After this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested.
21be0a5a
JB
5922 if test "x$enable_dependency_tracking" = xyes; then
5923 continue
5924 else
5925 break
5926 fi
5927 ;;
c20fdb91 5928 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5929 # This compiler won't grok '-c -o', but also, the minuso test has
21be0a5a
JB
5930 # not run yet. These depmodes are late enough in the game, and
5931 # so weak that their functioning should not be impacted.
5932 am__obj=conftest.${OBJEXT-o}
5933 am__minus_obj=
5934 ;;
5935 none) break ;;
5936 esac
5937 if depmode=$depmode \
5938 source=sub/conftest.c object=$am__obj \
5939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5941 >/dev/null 2>conftest.err &&
5942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5946 # icc doesn't choke on unknown options, it will just issue warnings
5947 # or remarks (even with -Werror). So we grep stderr for any message
5948 # that says an option was ignored or not supported.
5949 # When given -MP, icc 7.0 and 7.1 complain thusly:
5950 # icc: Command line warning: ignoring option '-M'; no argument required
5951 # The diagnosis changed in icc 8.0:
5952 # icc: Command line remark: option '-MP' not supported
5953 if (grep 'ignoring option' conftest.err ||
5954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5955 am_cv_CC_dependencies_compiler_type=$depmode
5956 break
5957 fi
5958 fi
5959 done
5960
5961 cd ..
5962 rm -rf conftest.dir
5963else
5964 am_cv_CC_dependencies_compiler_type=none
5965fi
5966
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5969$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5970CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5971
5972 if
5973 test "x$enable_dependency_tracking" != xno \
5974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5975 am__fastdepCC_TRUE=
5976 am__fastdepCC_FALSE='#'
5977else
5978 am__fastdepCC_TRUE='#'
5979 am__fastdepCC_FALSE=
5980fi
5981
5982
5983
5984
60858d8a
TB
5985
5986
60858d8a
TB
5987
5988
21be0a5a 5989# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
49ad4d2c 5990have_real_17=no
21be0a5a 5991if test "x$GCC" = "xyes"; then
83aac698 5992 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5993 ## We like to use C11 and C99 routines when available. This makes
5994 ## sure that
21be0a5a 5995 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5996 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5997 ## Compile the following tests with the same system header contents
5998 ## that we'll encounter when compiling our own source files.
f7b6856f 5999 CFLAGS="-std=gnu11 $CFLAGS"
49ad4d2c
TK
6000
6001 case x$target in
6002 xpowerpc64le*-linux*)
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h. */
6005#if __SIZEOF_LONG_DOUBLE__ != 16
6006 #error long double is double
6007 #endif
6008int
6009main ()
6010{
6011(void) 0;
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_cpp "$LINENO"; then :
a8fea8cd
TK
6017 AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6018 AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6019 CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
49ad4d2c
TK
6020 have_real_17=yes
6021fi
6022rm -f conftest.err conftest.i conftest.$ac_ext
6023 ;;
6024 *)
6025 ;;
6026 esac
6027fi
6028 if test "x$have_real_17" != xno; then
6029 HAVE_REAL_17_TRUE=
6030 HAVE_REAL_17_FALSE='#'
6031else
6032 HAVE_REAL_17_TRUE='#'
6033 HAVE_REAL_17_FALSE=
21be0a5a
JB
6034fi
6035
6f4977fc 6036
26724ef9
IT
6037# Add CET specific flags if CET is enabled
6038 # Check whether --enable-cet was given.
6039if test "${enable_cet+set}" = set; then :
6040 enableval=$enable_cet;
6041 case "$enableval" in
a0e1df88 6042 yes|no|auto) ;;
22e05272 6043 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
26724ef9
IT
6044 esac
6045
6046else
8d286dd1 6047 enable_cet=auto
26724ef9
IT
6048fi
6049
6050
14e335ed
IT
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6052$as_echo_n "checking for CET support... " >&6; }
6053
9051b548 6054# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
26724ef9
IT
6055case "$host" in
6056 i[34567]86-*-linux* | x86_64-*-linux*)
6057 case "$enable_cet" in
a0e1df88 6058 auto)
14e335ed 6059 # Check if target supports multi-byte NOPs
c0f8c22a 6060 # and if compiler and assembler support CET insn.
9051b548 6061 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 6062 CFLAGS="$CFLAGS -fcf-protection"
26724ef9
IT
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
14e335ed
IT
6069
6070#if !defined(__SSE2__)
6071#error target does not support multi-byte NOPs
6072#else
26724ef9 6073asm ("setssbsy");
14e335ed
IT
6074#endif
6075
26724ef9
IT
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081 enable_cet=yes
6082else
6083 enable_cet=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 6086 CFLAGS="$cet_save_CFLAGS"
26724ef9
IT
6087 ;;
6088 yes)
6089 # Check if assembler supports CET.
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h. */
6092
6093int
6094main ()
6095{
6096asm ("setssbsy");
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"; then :
6102
6103else
22e05272 6104 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
26724ef9
IT
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ;;
6108 esac
6109 ;;
6110 *)
6111 enable_cet=no
6112 ;;
6113esac
6114if test x$enable_cet = xyes; then
7b47ecf2 6115 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117$as_echo "yes" >&6; }
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
26724ef9
IT
6121fi
6122
6123AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6124AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6125CFLAGS="$CFLAGS $CET_FLAGS"
6126
6127
21be0a5a
JB
6128
6129
6130
6131# Check for symbol versioning (copied from libssp).
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6133$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
6134# Check whether --enable-symvers was given.
6135if test "${enable_symvers+set}" = set; then :
6136 enableval=$enable_symvers; gfortran_use_symver=$enableval
6137else
6138 gfortran_use_symver=yes
6139fi
6140
19af62db 6141if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
6142 save_LDFLAGS="$LDFLAGS"
6143 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6144 cat > conftest.map <<EOF
21be0a5a
JB
6145FOO_1.0 {
6146 global: *foo*; bar; local: *;
6147};
6148EOF
bf382f5f 6149 if test x$gcc_no_link = xyes; then
22e05272 6150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6151fi
6152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154int foo;
6155int
6156main ()
6157{
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164 gfortran_use_symver=gnu
6165else
6166 gfortran_use_symver=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6170 if test x$gfortran_use_symver = xno; then
6171 case "$target_os" in
6172 solaris2*)
6173 LDFLAGS="$save_LDFLAGS"
6174 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6175 # Sun ld cannot handle wildcards and treats all entries as undefined.
6176 cat > conftest.map <<EOF
21be0a5a
JB
6177FOO_1.0 {
6178 global: foo; local: *;
6179};
6180EOF
bf382f5f 6181 if test x$gcc_no_link = xyes; then
22e05272 6182 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6183fi
6184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186int foo;
6187int
6188main ()
6189{
6190
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195if ac_fn_c_try_link "$LINENO"; then :
6196 gfortran_use_symver=sun
6197else
6198 gfortran_use_symver=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6202 ;;
6203 esac
6204 fi
6205 LDFLAGS="$save_LDFLAGS"
21be0a5a 6206fi
21be0a5a
JB
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6208$as_echo "$gfortran_use_symver" >&6; }
6209 if test "x$gfortran_use_symver" != xno; then
6210 LIBGFOR_USE_SYMVER_TRUE=
6211 LIBGFOR_USE_SYMVER_FALSE='#'
6212else
6213 LIBGFOR_USE_SYMVER_TRUE='#'
6214 LIBGFOR_USE_SYMVER_FALSE=
6215fi
6216
6217 if test "x$gfortran_use_symver" = xgnu; then
6218 LIBGFOR_USE_SYMVER_GNU_TRUE=
6219 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6220else
6221 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6222 LIBGFOR_USE_SYMVER_GNU_FALSE=
6223fi
6224
6225 if test "x$gfortran_use_symver" = xsun; then
6226 LIBGFOR_USE_SYMVER_SUN_TRUE=
6227 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6228else
6229 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6230 LIBGFOR_USE_SYMVER_SUN_FALSE=
6231fi
6232
6233
ee95f928
BS
6234# For GPU offloading, not everything in libfortran can be supported.
6235# Currently, the only target that has this problem is nvptx. The
6236# following is a (partial) list of features that are unsupportable on
6237# this particular target:
6238# * Constructors
6239# * alloca
6240# * C library support for I/O, with printf as the one notable exception
6241# * C library support for other features such as signal, environment
6242# variables, time functions
6243
b1e86e33 6244 if test "x${target_cpu}" = xnvptx; then
ee95f928
BS
6245 LIBGFOR_MINIMAL_TRUE=
6246 LIBGFOR_MINIMAL_FALSE='#'
6247else
6248 LIBGFOR_MINIMAL_TRUE='#'
6249 LIBGFOR_MINIMAL_FALSE=
6250fi
6251
6252
2e764ae1
TB
6253# Some compiler target support may have limited support for integer
6254# or floating point numbers – or may want to reduce the libgfortran size
6255# although they do have the support.
6256LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6257LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6258
2e764ae1
TB
6259
6260
6261
21be0a5a
JB
6262# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6263# similarly to how libstdc++ does it
6264ac_test_CFLAGS="${CFLAGS+set}"
6265ac_save_CFLAGS="$CFLAGS"
6266
6267# Check for -ffunction-sections -fdata-sections
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6269$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6270CFLAGS='-Werror -ffunction-sections -fdata-sections'
6271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h. */
6273
6274int
6275main ()
6276{
6277int foo;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_compile "$LINENO"; then :
6283 ac_fdsections=yes
6284else
6285 ac_fdsections=no
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288if test "$ac_test_CFLAGS" = set; then
6289 CFLAGS="$ac_save_CFLAGS"
6290else
6291 # this is the suspicious part
6292 CFLAGS=""
6293fi
6294if test x"$ac_fdsections" = x"yes"; then
6295 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6298$as_echo "$ac_fdsections" >&6; }
6299
6300
66dbcf2d
RO
6301# Check linker hardware capability support.
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6303$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6304if ${ac_cv_path_SED+:} false; then :
21be0a5a
JB
6305 $as_echo_n "(cached) " >&6
6306else
66dbcf2d
RO
6307 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6308 for ac_i in 1 2 3 4 5 6 7; do
6309 ac_script="$ac_script$as_nl$ac_script"
6310 done
6311 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6312 { ac_script=; unset ac_script;}
6313 if test -z "$SED"; then
6314 ac_path_SED_found=false
6315 # Loop through the user's path and test for each of PROGNAME-LIST
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
66dbcf2d 6321 for ac_prog in sed gsed; do
21be0a5a 6322 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6323 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6324 as_fn_executable_p "$ac_path_SED" || continue
66dbcf2d
RO
6325# Check for GNU ac_path_SED and select it if it is found.
6326 # Check for GNU $ac_path_SED
6327case `"$ac_path_SED" --version 2>&1` in
6328*GNU*)
6329 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6330*)
6331 ac_count=0
6332 $as_echo_n 0123456789 >"conftest.in"
6333 while :
6334 do
6335 cat "conftest.in" "conftest.in" >"conftest.tmp"
6336 mv "conftest.tmp" "conftest.in"
6337 cp "conftest.in" "conftest.nl"
6338 $as_echo '' >> "conftest.nl"
6339 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341 as_fn_arith $ac_count + 1 && ac_count=$as_val
6342 if test $ac_count -gt ${ac_path_SED_max-0}; then
6343 # Best one so far, save it but keep looking for a better one
6344 ac_cv_path_SED="$ac_path_SED"
6345 ac_path_SED_max=$ac_count
6346 fi
6347 # 10*(2^10) chars as input seems more than enough
6348 test $ac_count -gt 10 && break
21be0a5a 6349 done
66dbcf2d
RO
6350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6351esac
21be0a5a 6352
66dbcf2d
RO
6353 $ac_path_SED_found && break 3
6354 done
6355 done
21be0a5a
JB
6356 done
6357IFS=$as_save_IFS
66dbcf2d 6358 if test -z "$ac_cv_path_SED"; then
22e05272 6359 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
66dbcf2d 6360 fi
21be0a5a 6361else
66dbcf2d 6362 ac_cv_path_SED=$SED
21be0a5a
JB
6363fi
6364
21be0a5a 6365fi
66dbcf2d
RO
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6367$as_echo "$ac_cv_path_SED" >&6; }
6368 SED="$ac_cv_path_SED"
6369 rm -f conftest.sed
21be0a5a 6370
66dbcf2d
RO
6371test -z "$SED" && SED=sed
6372Xsed="$SED -e 1s/^X//"
21be0a5a 6373
21be0a5a
JB
6374
6375
66dbcf2d
RO
6376
6377
6378
6379
6380
6381
6382
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6385$as_echo_n "checking for fgrep... " >&6; }
22e05272 6386if ${ac_cv_path_FGREP+:} false; then :
21be0a5a
JB
6387 $as_echo_n "(cached) " >&6
6388else
66dbcf2d
RO
6389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6390 then ac_cv_path_FGREP="$GREP -F"
6391 else
6392 if test -z "$FGREP"; then
6393 ac_path_FGREP_found=false
6394 # Loop through the user's path and test for each of PROGNAME-LIST
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
66dbcf2d 6400 for ac_prog in fgrep; do
21be0a5a 6401 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6403 as_fn_executable_p "$ac_path_FGREP" || continue
66dbcf2d
RO
6404# Check for GNU ac_path_FGREP and select it if it is found.
6405 # Check for GNU $ac_path_FGREP
6406case `"$ac_path_FGREP" --version 2>&1` in
6407*GNU*)
6408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6409*)
6410 ac_count=0
6411 $as_echo_n 0123456789 >"conftest.in"
6412 while :
6413 do
6414 cat "conftest.in" "conftest.in" >"conftest.tmp"
6415 mv "conftest.tmp" "conftest.in"
6416 cp "conftest.in" "conftest.nl"
6417 $as_echo 'FGREP' >> "conftest.nl"
6418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6420 as_fn_arith $ac_count + 1 && ac_count=$as_val
6421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6422 # Best one so far, save it but keep looking for a better one
6423 ac_cv_path_FGREP="$ac_path_FGREP"
6424 ac_path_FGREP_max=$ac_count
6425 fi
6426 # 10*(2^10) chars as input seems more than enough
6427 test $ac_count -gt 10 && break
6428 done
6429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6430esac
6431
6432 $ac_path_FGREP_found && break 3
6433 done
6434 done
21be0a5a
JB
6435 done
6436IFS=$as_save_IFS
66dbcf2d 6437 if test -z "$ac_cv_path_FGREP"; then
22e05272 6438 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
66dbcf2d
RO
6439 fi
6440else
6441 ac_cv_path_FGREP=$FGREP
6442fi
21be0a5a 6443
66dbcf2d 6444 fi
21be0a5a 6445fi
66dbcf2d
RO
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6447$as_echo "$ac_cv_path_FGREP" >&6; }
6448 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6449
6450
66dbcf2d 6451test -z "$GREP" && GREP=grep
1cf3d07d
SE
6452
6453
6454
6455
6de9cd9a 6456
1cf3d07d
SE
6457
6458
6459
6460
6461
6462
6463
43e02a8a 6464
43e02a8a 6465
43e02a8a 6466
43e02a8a 6467
43e02a8a
RW
6468
6469ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6471ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6474$as_echo_n "checking how to print strings... " >&6; }
6475# Test print first, because it will be a builtin if present.
6476if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6477 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6478 ECHO='print -r --'
6479elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6480 ECHO='printf %s\n'
6481else
6482 # Use this function as a fallback that always works.
6483 func_fallback_echo ()
6484 {
6485 eval 'cat <<_LTECHO_EOF
6486$1
6487_LTECHO_EOF'
6488 }
6489 ECHO='func_fallback_echo'
6490fi
6491
6492# func_echo_all arg...
6493# Invoke $ECHO with all args, space-separated.
6494func_echo_all ()
6495{
6496 $ECHO ""
6497}
6498
6499case "$ECHO" in
6500 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6501$as_echo "printf" >&6; } ;;
6502 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6503$as_echo "print -r" >&6; } ;;
6504 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6505$as_echo "cat" >&6; } ;;
6506esac
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
21be0a5a
JB
6519
6520
5213506e 6521
5213506e 6522
66dbcf2d
RO
6523# Check whether --with-gnu-ld was given.
6524if test "${with_gnu_ld+set}" = set; then :
6525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6526else
6527 with_gnu_ld=no
1cf3d07d 6528fi
21be0a5a 6529
66dbcf2d
RO
6530ac_prog=ld
6531if test "$GCC" = yes; then
6532 # Check if gcc -print-prog-name=ld gives a path.
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6534$as_echo_n "checking for ld used by $CC... " >&6; }
6535 case $host in
6536 *-*-mingw*)
6537 # gcc leaves a trailing carriage return which upsets mingw
6538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6539 *)
6540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6541 esac
6542 case $ac_prog in
6543 # Accept absolute paths.
6544 [\\/]* | ?:[\\/]*)
6545 re_direlt='/[^/][^/]*/\.\./'
6546 # Canonicalize the pathname of ld
6547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6550 done
6551 test -z "$LD" && LD="$ac_prog"
6552 ;;
6553 "")
6554 # If it fails, then pretend we aren't using GCC.
6555 ac_prog=ld
6556 ;;
6557 *)
6558 # If it is relative, then search for the first ld in PATH.
6559 with_gnu_ld=unknown
6560 ;;
6561 esac
6562elif test "$with_gnu_ld" = yes; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6564$as_echo_n "checking for GNU ld... " >&6; }
6565else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6567$as_echo_n "checking for non-GNU ld... " >&6; }
6568fi
22e05272 6569if ${lt_cv_path_LD+:} false; then :
66dbcf2d
RO
6570 $as_echo_n "(cached) " >&6
6571else
6572 if test -z "$LD"; then
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 for ac_dir in $PATH; do
6575 IFS="$lt_save_ifs"
6576 test -z "$ac_dir" && ac_dir=.
6577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6578 lt_cv_path_LD="$ac_dir/$ac_prog"
6579 # Check to see if the program is GNU ld. I'd rather use --version,
6580 # but apparently some variants of GNU ld only accept -v.
6581 # Break only if it was the GNU/non-GNU ld that we prefer.
6582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6583 *GNU* | *'with BFD'*)
6584 test "$with_gnu_ld" != no && break
6585 ;;
6586 *)
6587 test "$with_gnu_ld" != yes && break
6588 ;;
6589 esac
6590 fi
6591 done
6592 IFS="$lt_save_ifs"
6593else
6594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6595fi
6596fi
6597
6598LD="$lt_cv_path_LD"
6599if test -n "$LD"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6601$as_echo "$LD" >&6; }
6602else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
22e05272 6606test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
66dbcf2d
RO
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6608$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6609if ${lt_cv_prog_gnu_ld+:} false; then :
66dbcf2d
RO
6610 $as_echo_n "(cached) " >&6
6611else
6612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6613case `$LD -v 2>&1 </dev/null` in
6614*GNU* | *'with BFD'*)
6615 lt_cv_prog_gnu_ld=yes
6616 ;;
6617*)
6618 lt_cv_prog_gnu_ld=no
6619 ;;
6620esac
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6623$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6624with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6625
6626
6627
6628
6629
6630
6631
6632
1cf3d07d
SE
6633
6634
66dbcf2d
RO
6635 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6636
6637
6638 ac_save_LDFLAGS="$LDFLAGS"
6639 LDFLAGS="$LFLAGS -mclear-hwcap"
6640
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6642$as_echo_n "checking for -mclear-hwcap... " >&6; }
6643 if test x$gcc_no_link = xyes; then
22e05272 6644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
66dbcf2d
RO
6645fi
6646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h. */
6648
6649int
6650main ()
6651{
6652return 0;
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658 ac_hwcap_ldflags=yes
6659else
6660 ac_hwcap_ldflags=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 if test "$ac_hwcap_ldflags" = "yes"; then
6665 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6668$as_echo "$ac_hwcap_ldflags" >&6; }
6669
6670 LDFLAGS="$ac_save_LDFLAGS"
6671
6672
6673
6674 if test $ac_hwcap_ldflags != no; then
6675 HAVE_HWCAP_TRUE=
6676 HAVE_HWCAP_FALSE='#'
6677else
6678 HAVE_HWCAP_TRUE='#'
6679 HAVE_HWCAP_FALSE=
6680fi
6681
6682
6683
6684# Find other programs we need.
6685if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6687set dummy ${ac_tool_prefix}as; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6690if ${ac_cv_prog_AS+:} false; then :
5213506e 6691 $as_echo_n "(cached) " >&6
38d24731 6692else
66dbcf2d
RO
6693 if test -n "$AS"; then
6694 ac_cv_prog_AS="$AS" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
5213506e
RW
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
5213506e 6701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6703 ac_cv_prog_AS="${ac_tool_prefix}as"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707done
5213506e 6708 done
66dbcf2d
RO
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713AS=$ac_cv_prog_AS
6714if test -n "$AS"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6716$as_echo "$AS" >&6; }
6717else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722
6723fi
6724if test -z "$ac_cv_prog_AS"; then
6725 ac_ct_AS=$AS
6726 # Extract the first word of "as", so it can be a program name with args.
6727set dummy as; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6730if ${ac_cv_prog_ac_ct_AS+:} false; then :
66dbcf2d
RO
6731 $as_echo_n "(cached) " >&6
6732else
6733 if test -n "$ac_ct_AS"; then
6734 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6743 ac_cv_prog_ac_ct_AS="as"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748 done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753ac_ct_AS=$ac_cv_prog_ac_ct_AS
6754if test -n "$ac_ct_AS"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6756$as_echo "$ac_ct_AS" >&6; }
6757else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762 if test "x$ac_ct_AS" = x; then
6763 AS=""
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766yes:)
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769ac_tool_warned=yes ;;
5213506e 6770esac
66dbcf2d
RO
6771 AS=$ac_ct_AS
6772 fi
6773else
6774 AS="$ac_cv_prog_AS"
6775fi
5213506e 6776
66dbcf2d
RO
6777if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}ar; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6782if ${ac_cv_prog_AR+:} false; then :
66dbcf2d
RO
6783 $as_echo_n "(cached) " >&6
6784else
6785 if test -n "$AR"; then
6786 ac_cv_prog_AR="$AR" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6795 ac_cv_prog_AR="${ac_tool_prefix}ar"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
5213506e 6800 done
66dbcf2d
RO
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805AR=$ac_cv_prog_AR
6806if test -n "$AR"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6808$as_echo "$AR" >&6; }
6809else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_AR"; then
6817 ac_ct_AR=$AR
6818 # Extract the first word of "ar", so it can be a program name with args.
6819set dummy ar; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6822if ${ac_cv_prog_ac_ct_AR+:} false; then :
66dbcf2d
RO
6823 $as_echo_n "(cached) " >&6
6824else
6825 if test -n "$ac_ct_AR"; then
6826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6835 ac_cv_prog_ac_ct_AR="ar"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_AR=$ac_cv_prog_ac_ct_AR
6846if test -n "$ac_ct_AR"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6848$as_echo "$ac_ct_AR" >&6; }
6849else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854 if test "x$ac_ct_AR" = x; then
6855 AR=""
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863 AR=$ac_ct_AR
6864 fi
6865else
6866 AR="$ac_cv_prog_AR"
6867fi
6868
6869if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6874if ${ac_cv_prog_RANLIB+:} false; then :
66dbcf2d
RO
6875 $as_echo_n "(cached) " >&6
6876else
6877 if test -n "$RANLIB"; then
6878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892 done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897RANLIB=$ac_cv_prog_RANLIB
6898if test -n "$RANLIB"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6900$as_echo "$RANLIB" >&6; }
6901else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_RANLIB"; then
6909 ac_ct_RANLIB=$RANLIB
6910 # Extract the first word of "ranlib", so it can be a program name with args.
6911set dummy ranlib; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6914if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
66dbcf2d
RO
6915 $as_echo_n "(cached) " >&6
6916else
6917 if test -n "$ac_ct_RANLIB"; then
6918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6927 ac_cv_prog_ac_ct_RANLIB="ranlib"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
5213506e
RW
6932 done
6933IFS=$as_save_IFS
66dbcf2d
RO
6934
6935fi
6936fi
6937ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6938if test -n "$ac_ct_RANLIB"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6940$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6941else
66dbcf2d
RO
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
1cf3d07d 6944fi
5213506e 6945
66dbcf2d
RO
6946 if test "x$ac_ct_RANLIB" = x; then
6947 RANLIB="ranlib-not-found-in-path-error"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955 RANLIB=$ac_ct_RANLIB
6956 fi
6957else
6958 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6959fi
1cf3d07d 6960
66dbcf2d
RO
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6962$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6963set x ${MAKE-make}
6964ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 6965if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
66dbcf2d
RO
6966 $as_echo_n "(cached) " >&6
6967else
6968 cat >conftest.make <<\_ACEOF
6969SHELL = /bin/sh
6970all:
6971 @echo '@@@%%%=$(MAKE)=@@@%%%'
6972_ACEOF
22e05272 6973# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
66dbcf2d
RO
6974case `${MAKE-make} -f conftest.make 2>/dev/null` in
6975 *@@@%%%=?*=@@@%%%*)
6976 eval ac_cv_prog_make_${ac_make}_set=yes;;
6977 *)
6978 eval ac_cv_prog_make_${ac_make}_set=no;;
6979esac
6980rm -f conftest.make
6981fi
6982if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984$as_echo "yes" >&6; }
6985 SET_MAKE=
6986else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988$as_echo "no" >&6; }
6989 SET_MAKE="MAKE=${MAKE-make}"
6990fi
1cf3d07d
SE
6991
6992
6993
66dbcf2d
RO
6994# Configure libtool
6995#AC_MSG_NOTICE([====== Starting libtool configuration])
6996enable_dlopen=yes
1cf3d07d
SE
6997
6998
6999
66dbcf2d
RO
7000case `pwd` in
7001 *\ * | *\ *)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7003$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7004esac
1cf3d07d
SE
7005
7006
7007
66dbcf2d
RO
7008macro_version='2.2.7a'
7009macro_revision='1.3134'
1cf3d07d
SE
7010
7011
7012
7013
7014
7015
7016
7017
5213506e 7018
96b8a615 7019
96b8a615
AJ
7020
7021
96b8a615 7022
66dbcf2d 7023ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 7024
66dbcf2d
RO
7025# Backslashify metacharacters that are still active within
7026# double-quoted strings.
7027sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 7028
66dbcf2d
RO
7029# Same as above, but do not quote variable references.
7030double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 7031
66dbcf2d
RO
7032# Sed substitution to delay expansion of an escaped shell variable in a
7033# double_quote_subst'ed string.
7034delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 7035
66dbcf2d
RO
7036# Sed substitution to delay expansion of an escaped single quote.
7037delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 7038
66dbcf2d
RO
7039# Sed substitution to avoid accidental globbing in evaled expressions
7040no_glob_subst='s/\*/\\\*/g'
1cf3d07d 7041
5213506e
RW
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7043$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 7044if ${lt_cv_path_NM+:} false; then :
5213506e 7045 $as_echo_n "(cached) " >&6
96b8a615
AJ
7046else
7047 if test -n "$NM"; then
7048 # Let the user override the test.
7049 lt_cv_path_NM="$NM"
7050else
1cf3d07d
SE
7051 lt_nm_to_check="${ac_tool_prefix}nm"
7052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7053 lt_nm_to_check="$lt_nm_to_check nm"
7054 fi
7055 for lt_tmp_nm in $lt_nm_to_check; do
7056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7057 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7058 IFS="$lt_save_ifs"
7059 test -z "$ac_dir" && ac_dir=.
7060 tmp_nm="$ac_dir/$lt_tmp_nm"
7061 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7062 # Check to see if the nm accepts a BSD-compat flag.
7063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7064 # nm: unknown option "B" ignored
7065 # Tru64's nm complains that /dev/null is an invalid object file
7066 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7067 */dev/null* | *'Invalid file or object type'*)
7068 lt_cv_path_NM="$tmp_nm -B"
7069 break
7070 ;;
7071 *)
7072 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7073 */dev/null*)
7074 lt_cv_path_NM="$tmp_nm -p"
7075 break
7076 ;;
7077 *)
7078 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7079 continue # so that we can try to find one that supports BSD flags
7080 ;;
7081 esac
7082 ;;
7083 esac
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 done
7088 : ${lt_cv_path_NM=no}
7089fi
7090fi
5213506e
RW
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7092$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7093if test "$lt_cv_path_NM" != "no"; then
7094 NM="$lt_cv_path_NM"
7095else
7096 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7097 if test -n "$DUMPBIN"; then :
7098 # Let the user override the test.
7099 else
7100 if test -n "$ac_tool_prefix"; then
7101 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7102 do
7103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7107if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 7108 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7109else
7110 if test -n "$DUMPBIN"; then
7111 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
5213506e 7118 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7120 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7122 break 2
7123 fi
7124done
5213506e
RW
7125 done
7126IFS=$as_save_IFS
1cf3d07d
SE
7127
7128fi
7129fi
7130DUMPBIN=$ac_cv_prog_DUMPBIN
7131if test -n "$DUMPBIN"; then
5213506e
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7133$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7134else
5213506e
RW
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
1cf3d07d
SE
7137fi
7138
5213506e 7139
1cf3d07d
SE
7140 test -n "$DUMPBIN" && break
7141 done
7142fi
7143if test -z "$DUMPBIN"; then
7144 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7145 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7146do
7147 # Extract the first word of "$ac_prog", so it can be a program name with args.
7148set dummy $ac_prog; ac_word=$2
5213506e
RW
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7151if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 7152 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7153else
7154 if test -n "$ac_ct_DUMPBIN"; then
7155 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
5213506e 7162 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7164 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7166 break 2
7167 fi
7168done
5213506e
RW
7169 done
7170IFS=$as_save_IFS
1cf3d07d
SE
7171
7172fi
7173fi
7174ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7175if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7177$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7178else
5213506e
RW
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
1cf3d07d
SE
7181fi
7182
5213506e 7183
1cf3d07d
SE
7184 test -n "$ac_ct_DUMPBIN" && break
7185done
1cf3d07d 7186
5213506e
RW
7187 if test "x$ac_ct_DUMPBIN" = x; then
7188 DUMPBIN=":"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191yes:)
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194ac_tool_warned=yes ;;
7195esac
7196 DUMPBIN=$ac_ct_DUMPBIN
7197 fi
96b8a615 7198fi
1cf3d07d 7199
43e02a8a
RW
7200 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7201 *COFF*)
7202 DUMPBIN="$DUMPBIN -symbols"
7203 ;;
7204 *)
7205 DUMPBIN=:
7206 ;;
7207 esac
7208 fi
1cf3d07d
SE
7209
7210 if test "$DUMPBIN" != ":"; then
7211 NM="$DUMPBIN"
7212 fi
96b8a615 7213fi
1cf3d07d
SE
7214test -z "$NM" && NM=nm
7215
7216
96b8a615 7217
1cf3d07d
SE
7218
7219
7220
5213506e
RW
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7222$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 7223if ${lt_cv_nm_interface+:} false; then :
5213506e 7224 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7225else
7226 lt_cv_nm_interface="BSD nm"
7227 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7228 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7229 (eval "$ac_compile" 2>conftest.err)
7230 cat conftest.err >&5
43e02a8a 7231 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7232 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7233 cat conftest.err >&5
43e02a8a 7234 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7235 cat conftest.out >&5
7236 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7237 lt_cv_nm_interface="MS dumpbin"
7238 fi
7239 rm -f conftest*
7240fi
5213506e
RW
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7242$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 7243
5213506e
RW
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7245$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
7246LN_S=$as_ln_s
7247if test "$LN_S" = "ln -s"; then
5213506e
RW
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249$as_echo "yes" >&6; }
96b8a615 7250else
5213506e
RW
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7252$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
7253fi
7254
1cf3d07d 7255# find the maximum length of command line arguments
5213506e
RW
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7257$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 7258if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 7259 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7260else
7261 i=0
7262 teststring="ABCD"
7263
7264 case $build_os in
7265 msdosdjgpp*)
7266 # On DJGPP, this test can blow up pretty badly due to problems in libc
7267 # (any single argument exceeding 2000 bytes causes a buffer overrun
7268 # during glob expansion). Even if it were fixed, the result of this
7269 # check would be larger than it should be.
7270 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7271 ;;
7272
7273 gnu*)
7274 # Under GNU Hurd, this test is not required because there is
7275 # no limit to the length of command line arguments.
7276 # Libtool will interpret -1 as no limit whatsoever
7277 lt_cv_sys_max_cmd_len=-1;
7278 ;;
7279
d58dead8 7280 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
7281 # On Win9x/ME, this test blows up -- it succeeds, but takes
7282 # about 5 minutes as the teststring grows exponentially.
7283 # Worse, since 9x/ME are not pre-emptively multitasking,
7284 # you end up with a "frozen" computer, even though with patience
7285 # the test eventually succeeds (with a max line length of 256k).
7286 # Instead, let's just punt: use the minimum linelength reported by
7287 # all of the supported platforms: 8192 (on NT/2K/XP).
7288 lt_cv_sys_max_cmd_len=8192;
7289 ;;
7290
43e02a8a
RW
7291 mint*)
7292 # On MiNT this can take a long time and run out of memory.
7293 lt_cv_sys_max_cmd_len=8192;
7294 ;;
7295
1cf3d07d
SE
7296 amigaos*)
7297 # On AmigaOS with pdksh, this test takes hours, literally.
7298 # So we just punt and use a minimum line length of 8192.
7299 lt_cv_sys_max_cmd_len=8192;
7300 ;;
7301
7302 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7303 # This has been around since 386BSD, at least. Likely further.
7304 if test -x /sbin/sysctl; then
7305 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7306 elif test -x /usr/sbin/sysctl; then
7307 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7308 else
7309 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7310 fi
7311 # And add a safety zone
7312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7314 ;;
7315
7316 interix*)
7317 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7318 lt_cv_sys_max_cmd_len=196608
7319 ;;
7320
7321 osf*)
7322 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7323 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7324 # nice to cause kernel panics so lets avoid the loop below.
7325 # First set a reasonable default.
7326 lt_cv_sys_max_cmd_len=16384
7327 #
7328 if test -x /sbin/sysconfig; then
7329 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7330 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7331 esac
7332 fi
7333 ;;
7334 sco3.2v5*)
7335 lt_cv_sys_max_cmd_len=102400
7336 ;;
7337 sysv5* | sco5v6* | sysv4.2uw2*)
7338 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7339 if test -n "$kargmax"; then
7340 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7341 else
7342 lt_cv_sys_max_cmd_len=32768
7343 fi
7344 ;;
7345 *)
d58dead8
PG
7346 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7347 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7350 else
7351 # Make teststring a little bigger before we do anything with it.
7352 # a 1K string should be a reasonable start.
7353 for i in 1 2 3 4 5 6 7 8 ; do
7354 teststring=$teststring$teststring
7355 done
7356 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7357 # If test is not a shell built-in, we'll probably end up computing a
7358 # maximum length that is only half of the actual maximum length, but
7359 # we can't tell.
43e02a8a
RW
7360 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7361 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7362 test $i != 17 # 1/2 MB should be enough
7363 do
7364 i=`expr $i + 1`
7365 teststring=$teststring$teststring
7366 done
7367 # Only check the string length outside the loop.
7368 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7369 teststring=
7370 # Add a significant safety factor because C++ compilers can tack on
7371 # massive amounts of additional arguments before passing them to the
7372 # linker. It appears as though 1/2 is a usable value.
7373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7374 fi
1cf3d07d
SE
7375 ;;
7376 esac
7377
7378fi
7379
7380if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7382$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7383else
5213506e
RW
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7385$as_echo "none" >&6; }
1cf3d07d
SE
7386fi
7387max_cmd_len=$lt_cv_sys_max_cmd_len
7388
7389
7390
7391
7392
7393
1cf3d07d
SE
7394: ${CP="cp -f"}
7395: ${MV="mv -f"}
7396: ${RM="rm -f"}
7397
5213506e
RW
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7399$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7400# Try some XSI features
7401xsi_shell=no
7402( _lt_dummy="a/b/c"
7403 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7404 = c,a/b,, \
7405 && eval 'test $(( 1 + 1 )) -eq 2 \
7406 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7407 && xsi_shell=yes
5213506e
RW
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7409$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7410
7411
5213506e
RW
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7413$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7414lt_shell_append=no
7415( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7416 >/dev/null 2>&1 \
7417 && lt_shell_append=yes
5213506e
RW
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7419$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7420
7421
7422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7423 lt_unset=unset
7424else
7425 lt_unset=false
7426fi
7427
7428
7429
7430
7431
7432# test EBCDIC or ASCII
7433case `echo X|tr X '\101'` in
7434 A) # ASCII based system
7435 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7436 lt_SP2NL='tr \040 \012'
7437 lt_NL2SP='tr \015\012 \040\040'
7438 ;;
7439 *) # EBCDIC based system
7440 lt_SP2NL='tr \100 \n'
7441 lt_NL2SP='tr \r\n \100\100'
7442 ;;
7443esac
7444
7445
7446
7447
7448
7449
7450
7451
7452
5213506e
RW
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7454$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7455if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 7456 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7457else
7458 lt_cv_ld_reload_flag='-r'
7459fi
5213506e
RW
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7461$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7462reload_flag=$lt_cv_ld_reload_flag
7463case $reload_flag in
7464"" | " "*) ;;
7465*) reload_flag=" $reload_flag" ;;
7466esac
7467reload_cmds='$LD$reload_flag -o $output$reload_objs'
7468case $host_os in
7469 darwin*)
7470 if test "$GCC" = yes; then
7471 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7472 else
7473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7474 fi
7475 ;;
7476esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
d58dead8
PG
7486if test -n "$ac_tool_prefix"; then
7487 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7491if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 7492 $as_echo_n "(cached) " >&6
d58dead8
PG
7493else
7494 if test -n "$OBJDUMP"; then
7495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
5213506e 7502 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7504 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7506 break 2
7507 fi
7508done
5213506e
RW
7509 done
7510IFS=$as_save_IFS
d58dead8
PG
7511
7512fi
7513fi
7514OBJDUMP=$ac_cv_prog_OBJDUMP
7515if test -n "$OBJDUMP"; then
5213506e
RW
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7517$as_echo "$OBJDUMP" >&6; }
d58dead8 7518else
5213506e
RW
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
d58dead8
PG
7521fi
7522
5213506e 7523
d58dead8
PG
7524fi
7525if test -z "$ac_cv_prog_OBJDUMP"; then
7526 ac_ct_OBJDUMP=$OBJDUMP
7527 # Extract the first word of "objdump", so it can be a program name with args.
7528set dummy objdump; ac_word=$2
5213506e
RW
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7531if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 7532 $as_echo_n "(cached) " >&6
d58dead8
PG
7533else
7534 if test -n "$ac_ct_OBJDUMP"; then
7535 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
5213506e 7542 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7544 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7546 break 2
7547 fi
7548done
5213506e
RW
7549 done
7550IFS=$as_save_IFS
d58dead8 7551
d58dead8
PG
7552fi
7553fi
7554ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7555if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7557$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7558else
5213506e
RW
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
d58dead8
PG
7561fi
7562
5213506e
RW
7563 if test "x$ac_ct_OBJDUMP" = x; then
7564 OBJDUMP="false"
7565 else
7566 case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570ac_tool_warned=yes ;;
7571esac
7572 OBJDUMP=$ac_ct_OBJDUMP
7573 fi
d58dead8
PG
7574else
7575 OBJDUMP="$ac_cv_prog_OBJDUMP"
7576fi
7577
7578test -z "$OBJDUMP" && OBJDUMP=objdump
7579
7580
7581
7582
7583
7584
7585
7586
1cf3d07d 7587
5213506e
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7589$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7590if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 7591 $as_echo_n "(cached) " >&6
96b8a615
AJ
7592else
7593 lt_cv_file_magic_cmd='$MAGIC_CMD'
7594lt_cv_file_magic_test_file=
7595lt_cv_deplibs_check_method='unknown'
7596# Need to set the preceding variable on all platforms that support
7597# interlibrary dependencies.
7598# 'none' -- dependencies not supported.
7599# `unknown' -- same as none, but documents that we really don't know.
7600# 'pass_all' -- all dependencies passed with no checks.
7601# 'test_compile' -- check by making test program.
1cf3d07d
SE
7602# 'file_magic [[regex]]' -- check by looking for files in library path
7603# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7604# If you have `file' or equivalent on your system and you're not sure
7605# whether `pass_all' will *always* work, you probably want this one.
7606
7607case $host_os in
4f6bebc3 7608aix[4-9]*)
96b8a615
AJ
7609 lt_cv_deplibs_check_method=pass_all
7610 ;;
7611
7612beos*)
7613 lt_cv_deplibs_check_method=pass_all
7614 ;;
7615
1cf3d07d 7616bsdi[45]*)
96b8a615
AJ
7617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7618 lt_cv_file_magic_cmd='/usr/bin/file -L'
7619 lt_cv_file_magic_test_file=/shlib/libc.so
7620 ;;
7621
1cf3d07d
SE
7622cygwin*)
7623 # func_win32_libid is a shell function defined in ltmain.sh
7624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7625 lt_cv_file_magic_cmd='func_win32_libid'
7626 ;;
7627
7628mingw* | pw32*)
7629 # Base MSYS/MinGW do not provide the 'file' command needed by
7630 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7631 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7632 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7633 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7635 lt_cv_file_magic_cmd='func_win32_libid'
7636 else
7637 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7638 lt_cv_file_magic_cmd='$OBJDUMP -f'
7639 fi
96b8a615
AJ
7640 ;;
7641
43e02a8a 7642cegcc*)
d58dead8
PG
7643 # use the weaker test based on 'objdump'. See mingw*.
7644 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7645 lt_cv_file_magic_cmd='$OBJDUMP -f'
7646 ;;
7647
96b8a615 7648darwin* | rhapsody*)
96b8a615
AJ
7649 lt_cv_deplibs_check_method=pass_all
7650 ;;
7651
1cf3d07d
SE
7652freebsd* | dragonfly*)
7653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7654 case $host_cpu in
7655 i*86 )
7656 # Not sure whether the presence of OpenBSD here was a mistake.
7657 # Let's accept both of them until this is cleared up.
1cf3d07d 7658 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7659 lt_cv_file_magic_cmd=/usr/bin/file
7660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7661 ;;
7662 esac
7663 else
7664 lt_cv_deplibs_check_method=pass_all
7665 fi
7666 ;;
7667
7668gnu*)
7669 lt_cv_deplibs_check_method=pass_all
7670 ;;
7671
43e02a8a
RW
7672haiku*)
7673 lt_cv_deplibs_check_method=pass_all
7674 ;;
7675
1cf3d07d
SE
7676hpux10.20* | hpux11*)
7677 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7678 case $host_cpu in
96b8a615
AJ
7679 ia64*)
7680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
96b8a615
AJ
7681 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7682 ;;
1cf3d07d 7683 hppa*64*)
43e02a8a 7684 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]'
1cf3d07d 7685 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7686 ;;
7687 *)
43e02a8a 7688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7689 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7690 ;;
7691 esac
1cf3d07d
SE
7692 ;;
7693
7694interix[3-9]*)
7695 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7697 ;;
7698
7699irix5* | irix6* | nonstopux*)
7700 case $LD in
7701 *-32|*"-32 ") libmagic=32-bit;;
7702 *-n32|*"-n32 ") libmagic=N32;;
7703 *-64|*"-64 ") libmagic=64-bit;;
7704 *) libmagic=never-match;;
7705 esac
96b8a615
AJ
7706 lt_cv_deplibs_check_method=pass_all
7707 ;;
7708
7709# This must be Linux ELF.
e9085da5 7710linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2c92e90f 7711 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7712 ;;
7713
1cf3d07d
SE
7714netbsd*)
7715 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7717 else
1cf3d07d 7718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7719 fi
7720 ;;
7721
1cf3d07d 7722newos6*)
96b8a615
AJ
7723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7724 lt_cv_file_magic_cmd=/usr/bin/file
7725 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7726 ;;
7727
1cf3d07d
SE
7728*nto* | *qnx*)
7729 lt_cv_deplibs_check_method=pass_all
7730 ;;
7731
7732openbsd*)
7733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7735 else
7736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7737 fi
7738 ;;
7739
96b8a615 7740osf3* | osf4* | osf5*)
96b8a615
AJ
7741 lt_cv_deplibs_check_method=pass_all
7742 ;;
7743
1cf3d07d 7744rdos*)
96b8a615
AJ
7745 lt_cv_deplibs_check_method=pass_all
7746 ;;
7747
7748solaris*)
7749 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7750 ;;
7751
1cf3d07d 7752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7753 lt_cv_deplibs_check_method=pass_all
7754 ;;
7755
1cf3d07d 7756sysv4 | sysv4.3*)
96b8a615 7757 case $host_vendor in
96b8a615
AJ
7758 motorola)
7759 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]'
7760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7761 ;;
1cf3d07d
SE
7762 ncr)
7763 lt_cv_deplibs_check_method=pass_all
7764 ;;
7765 sequent)
7766 lt_cv_file_magic_cmd='/bin/file'
7767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7768 ;;
7769 sni)
7770 lt_cv_file_magic_cmd='/bin/file'
7771 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7772 lt_cv_file_magic_test_file=/lib/libc.so
7773 ;;
7774 siemens)
7775 lt_cv_deplibs_check_method=pass_all
7776 ;;
7777 pc)
7778 lt_cv_deplibs_check_method=pass_all
7779 ;;
96b8a615
AJ
7780 esac
7781 ;;
1cf3d07d
SE
7782
7783tpf*)
7784 lt_cv_deplibs_check_method=pass_all
7785 ;;
96b8a615
AJ
7786esac
7787
7788fi
5213506e
RW
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7790$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7791file_magic_cmd=$lt_cv_file_magic_cmd
7792deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7793test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7794
7795
7796
7797
96b8a615 7798
96b8a615 7799
96b8a615 7800
96b8a615 7801
6de9cd9a 7802
6de9cd9a 7803
6de9cd9a 7804
6de9cd9a 7805
96b8a615 7806if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7808set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7811if ${ac_cv_prog_AR+:} false; then :
5213506e 7812 $as_echo_n "(cached) " >&6
6de9cd9a 7813else
1cf3d07d
SE
7814 if test -n "$AR"; then
7815 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
5213506e 7822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7824 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7826 break 2
7827 fi
7828done
5213506e
RW
7829 done
7830IFS=$as_save_IFS
6de9cd9a 7831
96b8a615
AJ
7832fi
7833fi
1cf3d07d
SE
7834AR=$ac_cv_prog_AR
7835if test -n "$AR"; then
5213506e
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7837$as_echo "$AR" >&6; }
96b8a615 7838else
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
6de9cd9a
DN
7841fi
7842
5213506e 7843
96b8a615 7844fi
1cf3d07d
SE
7845if test -z "$ac_cv_prog_AR"; then
7846 ac_ct_AR=$AR
7847 # Extract the first word of "ar", so it can be a program name with args.
7848set dummy ar; ac_word=$2
5213506e
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7851if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 7852 $as_echo_n "(cached) " >&6
96b8a615 7853else
1cf3d07d
SE
7854 if test -n "$ac_ct_AR"; then
7855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
5213506e 7862 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7864 ac_cv_prog_ac_ct_AR="ar"
5213506e 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7866 break 2
7867 fi
7868done
5213506e
RW
7869 done
7870IFS=$as_save_IFS
6de9cd9a 7871
96b8a615
AJ
7872fi
7873fi
1cf3d07d
SE
7874ac_ct_AR=$ac_cv_prog_ac_ct_AR
7875if test -n "$ac_ct_AR"; then
5213506e
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7877$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7878else
5213506e
RW
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
6de9cd9a 7881fi
6de9cd9a 7882
5213506e
RW
7883 if test "x$ac_ct_AR" = x; then
7884 AR="false"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887yes:)
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890ac_tool_warned=yes ;;
7891esac
7892 AR=$ac_ct_AR
7893 fi
96b8a615 7894else
1cf3d07d 7895 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7896fi
7897
1cf3d07d
SE
7898test -z "$AR" && AR=ar
7899test -z "$AR_FLAGS" && AR_FLAGS=cru
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
96b8a615
AJ
7911if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7916if ${ac_cv_prog_STRIP+:} false; then :
5213506e 7917 $as_echo_n "(cached) " >&6
6de9cd9a 7918else
96b8a615
AJ
7919 if test -n "$STRIP"; then
7920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
5213506e 7927 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7931 break 2
7932 fi
7933done
5213506e
RW
7934 done
7935IFS=$as_save_IFS
6de9cd9a 7936
96b8a615
AJ
7937fi
7938fi
7939STRIP=$ac_cv_prog_STRIP
7940if test -n "$STRIP"; then
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7942$as_echo "$STRIP" >&6; }
6de9cd9a 7943else
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
96b8a615 7946fi
6de9cd9a 7947
5213506e 7948
6de9cd9a 7949fi
96b8a615
AJ
7950if test -z "$ac_cv_prog_STRIP"; then
7951 ac_ct_STRIP=$STRIP
7952 # Extract the first word of "strip", so it can be a program name with args.
7953set dummy strip; ac_word=$2
5213506e
RW
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7956if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 7957 $as_echo_n "(cached) " >&6
96b8a615
AJ
7958else
7959 if test -n "$ac_ct_STRIP"; then
7960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
5213506e 7967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7969 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7971 break 2
7972 fi
7973done
5213506e
RW
7974 done
7975IFS=$as_save_IFS
96b8a615 7976
6de9cd9a
DN
7977fi
7978fi
96b8a615
AJ
7979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7980if test -n "$ac_ct_STRIP"; then
5213506e
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7982$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7983else
5213506e
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
6de9cd9a 7986fi
6de9cd9a 7987
5213506e
RW
7988 if test "x$ac_ct_STRIP" = x; then
7989 STRIP=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997 STRIP=$ac_ct_STRIP
7998 fi
96b8a615
AJ
7999else
8000 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
8001fi
8002
1cf3d07d 8003test -z "$STRIP" && STRIP=:
6de9cd9a
DN
8004
8005
8006
8007
8008
8009
1cf3d07d
SE
8010if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8012set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8015if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 8016 $as_echo_n "(cached) " >&6
6de9cd9a 8017else
1cf3d07d
SE
8018 if test -n "$RANLIB"; then
8019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
5213506e 8026 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8030 break 2
8031 fi
8032done
5213506e
RW
8033 done
8034IFS=$as_save_IFS
1cf3d07d
SE
8035
8036fi
8037fi
8038RANLIB=$ac_cv_prog_RANLIB
8039if test -n "$RANLIB"; then
5213506e
RW
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8041$as_echo "$RANLIB" >&6; }
1cf3d07d 8042else
5213506e
RW
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044$as_echo "no" >&6; }
1cf3d07d
SE
8045fi
8046
5213506e 8047
1cf3d07d
SE
8048fi
8049if test -z "$ac_cv_prog_RANLIB"; then
8050 ac_ct_RANLIB=$RANLIB
8051 # Extract the first word of "ranlib", so it can be a program name with args.
8052set dummy ranlib; ac_word=$2
5213506e
RW
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8055if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 8056 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8057else
8058 if test -n "$ac_ct_RANLIB"; then
8059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8060else
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
5213506e 8066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8068 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8070 break 2
8071 fi
8072done
5213506e
RW
8073 done
8074IFS=$as_save_IFS
1cf3d07d 8075
1cf3d07d
SE
8076fi
8077fi
8078ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8079if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8081$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 8082else
5213506e
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
1cf3d07d
SE
8085fi
8086
5213506e
RW
8087 if test "x$ac_ct_RANLIB" = x; then
8088 RANLIB=":"
8089 else
8090 case $cross_compiling:$ac_tool_warned in
8091yes:)
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094ac_tool_warned=yes ;;
8095esac
8096 RANLIB=$ac_ct_RANLIB
8097 fi
1cf3d07d
SE
8098else
8099 RANLIB="$ac_cv_prog_RANLIB"
8100fi
8101
8102test -z "$RANLIB" && RANLIB=:
8103
8104
8105
8106
8107
8108
8109# Determine commands to create old-style static archives.
d58dead8 8110old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8111old_postinstall_cmds='chmod 644 $oldlib'
8112old_postuninstall_cmds=
8113
8114if test -n "$RANLIB"; then
8115 case $host_os in
8116 openbsd*)
8117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8118 ;;
8119 *)
8120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8121 ;;
8122 esac
8123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8124fi
8125
43e02a8a
RW
8126case $host_os in
8127 darwin*)
8128 lock_old_archive_extraction=yes ;;
8129 *)
8130 lock_old_archive_extraction=no ;;
8131esac
8132
8133
8134
8135
8136
8137
1cf3d07d
SE
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171# If no C compiler was specified, use CC.
8172LTCC=${LTCC-"$CC"}
8173
8174# If no C compiler flags were specified, use CFLAGS.
8175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8176
8177# Allow CC to be a program name with arguments.
8178compiler=$CC
8179
8180
8181# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8183$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 8184if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 8185 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8186else
8187
8188# These are sane defaults that work on at least a few old systems.
8189# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8190
8191# Character class describing NM global symbol codes.
8192symcode='[BCDEGRST]'
8193
8194# Regexp to match symbols that can be accessed directly from C.
8195sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8196
8197# Define system-specific variables.
8198case $host_os in
8199aix*)
8200 symcode='[BCDT]'
8201 ;;
d58dead8 8202cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8203 symcode='[ABCDGISTW]'
8204 ;;
8205hpux*)
8206 if test "$host_cpu" = ia64; then
8207 symcode='[ABCDEGRST]'
8208 fi
8209 ;;
8210irix* | nonstopux*)
8211 symcode='[BCDEGRST]'
8212 ;;
8213osf*)
8214 symcode='[BCDEGQRST]'
8215 ;;
8216solaris*)
8217 symcode='[BDRT]'
8218 ;;
8219sco3.2v5*)
8220 symcode='[DT]'
8221 ;;
8222sysv4.2uw2*)
8223 symcode='[DT]'
8224 ;;
8225sysv5* | sco5v6* | unixware* | OpenUNIX*)
8226 symcode='[ABDT]'
8227 ;;
8228sysv4)
8229 symcode='[DFNSTU]'
8230 ;;
8231esac
8232
8233# If we're using GNU nm, then use its standard symbol codes.
8234case `$NM -V 2>&1` in
8235*GNU* | *'with BFD'*)
8236 symcode='[ABCDGIRSTW]' ;;
8237esac
8238
8239# Transform an extracted symbol line into a proper C declaration.
8240# Some systems (esp. on ia64) link data and code symbols differently,
8241# so use this general approach.
8242lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8243
8244# Transform an extracted symbol line into symbol name and symbol address
8245lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 8246lt_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'"
1cf3d07d
SE
8247
8248# Handle CRLF in mingw tool chain
8249opt_cr=
8250case $build_os in
8251mingw*)
8252 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8253 ;;
8254esac
8255
8256# Try without a prefix underscore, then with it.
8257for ac_symprfx in "" "_"; do
8258
8259 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8260 symxfrm="\\1 $ac_symprfx\\2 \\2"
8261
8262 # Write the raw and C identifiers.
8263 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8264 # Fake it for dumpbin and say T for any non-static function
8265 # and D for any global variable.
8266 # Also find C++ and __fastcall symbols from MSVC++,
8267 # which start with @ or ?.
8268 lt_cv_sys_global_symbol_pipe="$AWK '"\
8269" {last_section=section; section=\$ 3};"\
8270" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8271" \$ 0!~/External *\|/{next};"\
8272" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8273" {if(hide[section]) next};"\
8274" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8275" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8276" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8277" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8278" ' prfx=^$ac_symprfx"
8279 else
8280 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8281 fi
8282
8283 # Check to see that the pipe works correctly.
8284 pipe_works=no
8285
8286 rm -f conftest*
8287 cat > conftest.$ac_ext <<_LT_EOF
8288#ifdef __cplusplus
8289extern "C" {
8290#endif
8291char nm_test_var;
8292void nm_test_func(void);
8293void nm_test_func(void){}
8294#ifdef __cplusplus
8295}
8296#endif
8297int main(){nm_test_var='a';nm_test_func();return(0);}
8298_LT_EOF
8299
5213506e 8300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8301 (eval $ac_compile) 2>&5
8302 ac_status=$?
5213506e
RW
8303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304 test $ac_status = 0; }; then
1cf3d07d
SE
8305 # Now try to grab the symbols.
8306 nlist=conftest.nm
43e02a8a
RW
8307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8308 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8309 ac_status=$?
5213506e
RW
8310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8312 # Try sorting and uniquifying the output.
8313 if sort "$nlist" | uniq > "$nlist"T; then
8314 mv -f "$nlist"T "$nlist"
8315 else
8316 rm -f "$nlist"T
8317 fi
8318
8319 # Make sure that we snagged all the symbols we need.
8320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8322 cat <<_LT_EOF > conftest.$ac_ext
8323#ifdef __cplusplus
8324extern "C" {
8325#endif
8326
8327_LT_EOF
8328 # Now generate the symbol file.
8329 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8330
8331 cat <<_LT_EOF >> conftest.$ac_ext
8332
8333/* The mapping between symbol names and symbols. */
8334const struct {
8335 const char *name;
8336 void *address;
8337}
8338lt__PROGRAM__LTX_preloaded_symbols[] =
8339{
8340 { "@PROGRAM@", (void *) 0 },
8341_LT_EOF
8342 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8343 cat <<\_LT_EOF >> conftest.$ac_ext
8344 {0, (void *) 0}
8345};
8346
8347/* This works around a problem in FreeBSD linker */
8348#ifdef FREEBSD_WORKAROUND
8349static const void *lt_preloaded_setup() {
8350 return lt__PROGRAM__LTX_preloaded_symbols;
8351}
8352#endif
8353
8354#ifdef __cplusplus
8355}
8356#endif
8357_LT_EOF
8358 # Now try linking the two files.
8359 mv conftest.$ac_objext conftstm.$ac_objext
8360 lt_save_LIBS="$LIBS"
8361 lt_save_CFLAGS="$CFLAGS"
8362 LIBS="conftstm.$ac_objext"
8363 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8365 (eval $ac_link) 2>&5
8366 ac_status=$?
5213506e
RW
8367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8368 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8369 pipe_works=yes
8370 fi
8371 LIBS="$lt_save_LIBS"
8372 CFLAGS="$lt_save_CFLAGS"
8373 else
8374 echo "cannot find nm_test_func in $nlist" >&5
8375 fi
8376 else
8377 echo "cannot find nm_test_var in $nlist" >&5
8378 fi
8379 else
8380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8381 fi
8382 else
8383 echo "$progname: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 fi
d58dead8 8386 rm -rf conftest* conftst*
1cf3d07d
SE
8387
8388 # Do not use the global_symbol_pipe unless it works.
8389 if test "$pipe_works" = yes; then
8390 break
8391 else
8392 lt_cv_sys_global_symbol_pipe=
8393 fi
8394done
8395
8396fi
8397
8398if test -z "$lt_cv_sys_global_symbol_pipe"; then
8399 lt_cv_sys_global_symbol_to_cdecl=
8400fi
8401if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8403$as_echo "failed" >&6; }
1cf3d07d 8404else
5213506e
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8406$as_echo "ok" >&6; }
1cf3d07d
SE
8407fi
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
d58dead8
PG
8423
8424
8425
8426
8427
1cf3d07d
SE
8428
8429
5213506e
RW
8430# Check whether --enable-libtool-lock was given.
8431if test "${enable_libtool_lock+set}" = set; then :
8432 enableval=$enable_libtool_lock;
8433fi
1cf3d07d 8434
1cf3d07d 8435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8436
96b8a615
AJ
8437# Some flags need to be propagated to the compiler or linker for good
8438# libtool support.
8439case $host in
1cf3d07d 8440ia64-*-hpux*)
96b8a615 8441 # Find out which ABI we are using.
1cf3d07d 8442 echo 'int i;' > conftest.$ac_ext
5213506e 8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8444 (eval $ac_compile) 2>&5
6de9cd9a 8445 ac_status=$?
5213506e
RW
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; }; then
96b8a615 8448 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8449 *ELF-32*)
8450 HPUX_IA64_MODE="32"
8451 ;;
8452 *ELF-64*)
8453 HPUX_IA64_MODE="64"
8454 ;;
96b8a615 8455 esac
96b8a615
AJ
8456 fi
8457 rm -rf conftest*
8458 ;;
1cf3d07d 8459*-*-irix6*)
96b8a615 8460 # Find out which ABI we are using.
43e02a8a 8461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8463 (eval $ac_compile) 2>&5
6de9cd9a 8464 ac_status=$?
5213506e
RW
8465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8466 test $ac_status = 0; }; then
1cf3d07d
SE
8467 if test "$lt_cv_prog_gnu_ld" = yes; then
8468 case `/usr/bin/file conftest.$ac_objext` in
8469 *32-bit*)
8470 LD="${LD-ld} -melf32bsmip"
8471 ;;
8472 *N32*)
8473 LD="${LD-ld} -melf32bmipn32"
8474 ;;
8475 *64-bit*)
8476 LD="${LD-ld} -melf64bmip"
8477 ;;
8478 esac
8479 else
8480 case `/usr/bin/file conftest.$ac_objext` in
8481 *32-bit*)
8482 LD="${LD-ld} -32"
8483 ;;
8484 *N32*)
8485 LD="${LD-ld} -n32"
8486 ;;
8487 *64-bit*)
8488 LD="${LD-ld} -64"
8489 ;;
8490 esac
8491 fi
96b8a615
AJ
8492 fi
8493 rm -rf conftest*
8494 ;;
6de9cd9a 8495
3cbe17f7 8496x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8497s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8498 # Find out which ABI we are using.
8499 echo 'int i;' > conftest.$ac_ext
5213506e 8500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8501 (eval $ac_compile) 2>&5
6de9cd9a 8502 ac_status=$?
5213506e
RW
8503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8504 test $ac_status = 0; }; then
1cf3d07d
SE
8505 case `/usr/bin/file conftest.o` in
8506 *32-bit*)
8507 case $host in
8508 x86_64-*kfreebsd*-gnu)
8509 LD="${LD-ld} -m elf_i386_fbsd"
8510 ;;
8511 x86_64-*linux*)
e6d5f8c9
L
8512 case `/usr/bin/file conftest.o` in
8513 *x86-64*)
8514 LD="${LD-ld} -m elf32_x86_64"
8515 ;;
8516 *)
8517 LD="${LD-ld} -m elf_i386"
8518 ;;
8519 esac
1cf3d07d 8520 ;;
3cbe17f7
AM
8521 powerpc64le-*linux*)
8522 LD="${LD-ld} -m elf32lppclinux"
8523 ;;
8524 powerpc64-*linux*)
1cf3d07d
SE
8525 LD="${LD-ld} -m elf32ppclinux"
8526 ;;
8527 s390x-*linux*)
8528 LD="${LD-ld} -m elf_s390"
8529 ;;
8530 sparc64-*linux*)
8531 LD="${LD-ld} -m elf32_sparc"
8532 ;;
8533 esac
8534 ;;
8535 *64-bit*)
8536 case $host in
8537 x86_64-*kfreebsd*-gnu)
8538 LD="${LD-ld} -m elf_x86_64_fbsd"
8539 ;;
8540 x86_64-*linux*)
8541 LD="${LD-ld} -m elf_x86_64"
8542 ;;
3cbe17f7
AM
8543 powerpcle-*linux*)
8544 LD="${LD-ld} -m elf64lppc"
8545 ;;
8546 powerpc-*linux*)
1cf3d07d
SE
8547 LD="${LD-ld} -m elf64ppc"
8548 ;;
8549 s390*-*linux*|s390*-*tpf*)
8550 LD="${LD-ld} -m elf64_s390"
8551 ;;
8552 sparc*-*linux*)
8553 LD="${LD-ld} -m elf64_sparc"
8554 ;;
8555 esac
8556 ;;
96b8a615 8557 esac
6de9cd9a 8558 fi
96b8a615
AJ
8559 rm -rf conftest*
8560 ;;
6de9cd9a 8561
96b8a615
AJ
8562*-*-sco3.2v5*)
8563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8564 SAVE_CFLAGS="$CFLAGS"
8565 CFLAGS="$CFLAGS -belf"
5213506e
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8567$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8568if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 8569 $as_echo_n "(cached) " >&6
6de9cd9a 8570else
1cf3d07d 8571 ac_ext=c
96b8a615
AJ
8572ac_cpp='$CPP $CPPFLAGS'
8573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8576
f02d008e 8577 if test x$gcc_no_link = xyes; then
22e05272 8578 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8579fi
5213506e 8580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8581/* end confdefs.h. */
6de9cd9a
DN
8582
8583int
8584main ()
8585{
96b8a615 8586
6de9cd9a
DN
8587 ;
8588 return 0;
8589}
8590_ACEOF
5213506e 8591if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8592 lt_cv_cc_needs_belf=yes
6de9cd9a 8593else
5213506e 8594 lt_cv_cc_needs_belf=no
6de9cd9a 8595fi
5213506e
RW
8596rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8598 ac_ext=c
8599ac_cpp='$CPP $CPPFLAGS'
8600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602ac_compiler_gnu=$ac_cv_c_compiler_gnu
8603
6de9cd9a 8604fi
5213506e
RW
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8606$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8609 CFLAGS="$SAVE_CFLAGS"
8610 fi
8611 ;;
1cf3d07d
SE
8612sparc*-*solaris*)
8613 # Find out which ABI we are using.
8614 echo 'int i;' > conftest.$ac_ext
5213506e 8615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8616 (eval $ac_compile) 2>&5
8617 ac_status=$?
5213506e
RW
8618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619 test $ac_status = 0; }; then
1cf3d07d
SE
8620 case `/usr/bin/file conftest.o` in
8621 *64-bit*)
8622 case $lt_cv_prog_gnu_ld in
8623 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8624 *)
8625 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8626 LD="${LD-ld} -64"
8627 fi
8628 ;;
1cf3d07d
SE
8629 esac
8630 ;;
8631 esac
8632 fi
8633 rm -rf conftest*
8634 ;;
96b8a615
AJ
8635esac
8636
1cf3d07d 8637need_locks="$enable_libtool_lock"
96b8a615 8638
d58dead8
PG
8639
8640 case $host_os in
8641 rhapsody* | darwin*)
8642 if test -n "$ac_tool_prefix"; then
8643 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8644set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8647if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 8648 $as_echo_n "(cached) " >&6
d58dead8
PG
8649else
8650 if test -n "$DSYMUTIL"; then
8651 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
5213506e 8658 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 8660 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8662 break 2
8663 fi
8664done
5213506e
RW
8665 done
8666IFS=$as_save_IFS
d58dead8
PG
8667
8668fi
8669fi
8670DSYMUTIL=$ac_cv_prog_DSYMUTIL
8671if test -n "$DSYMUTIL"; then
5213506e
RW
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8673$as_echo "$DSYMUTIL" >&6; }
d58dead8 8674else
5213506e
RW
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
d58dead8
PG
8677fi
8678
5213506e 8679
d58dead8
PG
8680fi
8681if test -z "$ac_cv_prog_DSYMUTIL"; then
8682 ac_ct_DSYMUTIL=$DSYMUTIL
8683 # Extract the first word of "dsymutil", so it can be a program name with args.
8684set dummy dsymutil; ac_word=$2
5213506e
RW
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8687if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 8688 $as_echo_n "(cached) " >&6
d58dead8 8689else
21be0a5a
JB
8690 if test -n "$ac_ct_DSYMUTIL"; then
8691 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
5213506e 8698 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8700 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8702 break 2
8703 fi
8704done
5213506e
RW
8705 done
8706IFS=$as_save_IFS
d58dead8 8707
d58dead8
PG
8708fi
8709fi
21be0a5a
JB
8710ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8711if test -n "$ac_ct_DSYMUTIL"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8713$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8714else
5213506e
RW
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
d58dead8
PG
8717fi
8718
21be0a5a
JB
8719 if test "x$ac_ct_DSYMUTIL" = x; then
8720 DSYMUTIL=":"
5213506e
RW
8721 else
8722 case $cross_compiling:$ac_tool_warned in
8723yes:)
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8726ac_tool_warned=yes ;;
8727esac
21be0a5a 8728 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8729 fi
d58dead8 8730else
21be0a5a 8731 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8732fi
8733
8734 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8735 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8736set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8739if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 8740 $as_echo_n "(cached) " >&6
d58dead8 8741else
21be0a5a
JB
8742 if test -n "$NMEDIT"; then
8743 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
5213506e 8750 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8752 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8754 break 2
8755 fi
8756done
5213506e
RW
8757 done
8758IFS=$as_save_IFS
d58dead8
PG
8759
8760fi
8761fi
21be0a5a
JB
8762NMEDIT=$ac_cv_prog_NMEDIT
8763if test -n "$NMEDIT"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8765$as_echo "$NMEDIT" >&6; }
d58dead8 8766else
5213506e
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
d58dead8
PG
8769fi
8770
5213506e 8771
d58dead8 8772fi
21be0a5a
JB
8773if test -z "$ac_cv_prog_NMEDIT"; then
8774 ac_ct_NMEDIT=$NMEDIT
8775 # Extract the first word of "nmedit", so it can be a program name with args.
8776set dummy nmedit; ac_word=$2
5213506e
RW
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8779if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 8780 $as_echo_n "(cached) " >&6
d58dead8 8781else
21be0a5a
JB
8782 if test -n "$ac_ct_NMEDIT"; then
8783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8784else
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
5213506e 8790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8792 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8794 break 2
8795 fi
8796done
5213506e
RW
8797 done
8798IFS=$as_save_IFS
d58dead8 8799
d58dead8
PG
8800fi
8801fi
21be0a5a
JB
8802ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8803if test -n "$ac_ct_NMEDIT"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8805$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8806else
5213506e
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
d58dead8
PG
8809fi
8810
21be0a5a
JB
8811 if test "x$ac_ct_NMEDIT" = x; then
8812 NMEDIT=":"
5213506e
RW
8813 else
8814 case $cross_compiling:$ac_tool_warned in
8815yes:)
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8818ac_tool_warned=yes ;;
8819esac
21be0a5a 8820 NMEDIT=$ac_ct_NMEDIT
5213506e 8821 fi
d58dead8 8822else
21be0a5a 8823 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8824fi
8825
8826 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8827 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8828set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8831if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8832 $as_echo_n "(cached) " >&6
d58dead8 8833else
21be0a5a
JB
8834 if test -n "$LIPO"; then
8835 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8836else
8837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
5213506e 8842 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8844 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8846 break 2
8847 fi
8848done
5213506e
RW
8849 done
8850IFS=$as_save_IFS
d58dead8
PG
8851
8852fi
8853fi
21be0a5a
JB
8854LIPO=$ac_cv_prog_LIPO
8855if test -n "$LIPO"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8857$as_echo "$LIPO" >&6; }
d58dead8 8858else
5213506e
RW
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
d58dead8
PG
8861fi
8862
5213506e 8863
d58dead8 8864fi
21be0a5a
JB
8865if test -z "$ac_cv_prog_LIPO"; then
8866 ac_ct_LIPO=$LIPO
8867 # Extract the first word of "lipo", so it can be a program name with args.
8868set dummy lipo; ac_word=$2
5213506e
RW
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8871if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 8872 $as_echo_n "(cached) " >&6
d58dead8 8873else
21be0a5a
JB
8874 if test -n "$ac_ct_LIPO"; then
8875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8876else
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
5213506e 8882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8884 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8886 break 2
8887 fi
8888done
5213506e
RW
8889 done
8890IFS=$as_save_IFS
d58dead8 8891
d58dead8
PG
8892fi
8893fi
21be0a5a
JB
8894ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8895if test -n "$ac_ct_LIPO"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8897$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8898else
5213506e
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
d58dead8
PG
8901fi
8902
21be0a5a
JB
8903 if test "x$ac_ct_LIPO" = x; then
8904 LIPO=":"
5213506e
RW
8905 else
8906 case $cross_compiling:$ac_tool_warned in
8907yes:)
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8910ac_tool_warned=yes ;;
8911esac
21be0a5a 8912 LIPO=$ac_ct_LIPO
5213506e 8913 fi
d58dead8 8914else
21be0a5a 8915 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8916fi
8917
21be0a5a
JB
8918 if test -n "$ac_tool_prefix"; then
8919 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8920set dummy ${ac_tool_prefix}otool; ac_word=$2
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8923if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 8924 $as_echo_n "(cached) " >&6
d58dead8 8925else
21be0a5a
JB
8926 if test -n "$OTOOL"; then
8927 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8928else
21be0a5a
JB
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8936 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8939 fi
8940done
8941 done
8942IFS=$as_save_IFS
43e02a8a
RW
8943
8944fi
21be0a5a
JB
8945fi
8946OTOOL=$ac_cv_prog_OTOOL
8947if test -n "$OTOOL"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8949$as_echo "$OTOOL" >&6; }
8950else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
d58dead8 8955
1cf3d07d 8956fi
21be0a5a
JB
8957if test -z "$ac_cv_prog_OTOOL"; then
8958 ac_ct_OTOOL=$OTOOL
8959 # Extract the first word of "otool", so it can be a program name with args.
8960set dummy otool; ac_word=$2
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8963if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 8964 $as_echo_n "(cached) " >&6
1cf3d07d 8965else
21be0a5a
JB
8966 if test -n "$ac_ct_OTOOL"; then
8967 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
1cf3d07d 8971do
21be0a5a
JB
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8976 ac_cv_prog_ac_ct_OTOOL="otool"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980done
8981 done
8982IFS=$as_save_IFS
6de9cd9a 8983
21be0a5a
JB
8984fi
8985fi
8986ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8987if test -n "$ac_ct_OTOOL"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8989$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8990else
21be0a5a
JB
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
1cf3d07d 8993fi
96b8a615 8994
21be0a5a
JB
8995 if test "x$ac_ct_OTOOL" = x; then
8996 OTOOL=":"
8997 else
8998 case $cross_compiling:$ac_tool_warned in
8999yes:)
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9002ac_tool_warned=yes ;;
9003esac
9004 OTOOL=$ac_ct_OTOOL
9005 fi
1cf3d07d 9006else
21be0a5a 9007 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 9008fi
6de9cd9a 9009
21be0a5a
JB
9010 if test -n "$ac_tool_prefix"; then
9011 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9012set dummy ${ac_tool_prefix}otool64; ac_word=$2
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9015if ${ac_cv_prog_OTOOL64+:} false; then :
21be0a5a
JB
9016 $as_echo_n "(cached) " >&6
9017else
9018 if test -n "$OTOOL64"; then
9019 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9020else
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9028 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9031 fi
1cf3d07d 9032done
21be0a5a
JB
9033 done
9034IFS=$as_save_IFS
9035
9036fi
9037fi
9038OTOOL64=$ac_cv_prog_OTOOL64
9039if test -n "$OTOOL64"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9041$as_echo "$OTOOL64" >&6; }
9042else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
1cf3d07d 9045fi
6de9cd9a 9046
96b8a615 9047
1cf3d07d 9048fi
21be0a5a
JB
9049if test -z "$ac_cv_prog_OTOOL64"; then
9050 ac_ct_OTOOL64=$OTOOL64
9051 # Extract the first word of "otool64", so it can be a program name with args.
9052set dummy otool64; ac_word=$2
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9055if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
21be0a5a 9056 $as_echo_n "(cached) " >&6
96b8a615 9057else
21be0a5a
JB
9058 if test -n "$ac_ct_OTOOL64"; then
9059 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
96b8a615 9063do
21be0a5a
JB
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9068 ac_cv_prog_ac_ct_OTOOL64="otool64"
9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072done
9073 done
9074IFS=$as_save_IFS
96b8a615 9075
21be0a5a
JB
9076fi
9077fi
9078ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9079if test -n "$ac_ct_OTOOL64"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9081$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 9082else
21be0a5a
JB
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
96b8a615
AJ
9085fi
9086
21be0a5a
JB
9087 if test "x$ac_ct_OTOOL64" = x; then
9088 OTOOL64=":"
9089 else
9090 case $cross_compiling:$ac_tool_warned in
9091yes:)
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9094ac_tool_warned=yes ;;
9095esac
9096 OTOOL64=$ac_ct_OTOOL64
9097 fi
6de9cd9a 9098else
21be0a5a 9099 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 9100fi
6de9cd9a 9101
5213506e 9102
1cf3d07d 9103
1cf3d07d
SE
9104
9105
6de9cd9a 9106
1cf3d07d 9107
6de9cd9a 9108
1cf3d07d 9109
5213506e 9110
6de9cd9a 9111
e87045f3 9112
15e92535 9113
5213506e 9114
15e92535 9115
15e92535 9116
21be0a5a
JB
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9129$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 9130if ${lt_cv_apple_cc_single_mod+:} false; then :
21be0a5a 9131 $as_echo_n "(cached) " >&6
1cf3d07d 9132else
21be0a5a
JB
9133 lt_cv_apple_cc_single_mod=no
9134 if test -z "${LT_MULTI_MODULE}"; then
9135 # By default we will add the -single_module flag. You can override
9136 # by either setting the environment variable LT_MULTI_MODULE
9137 # non-empty at configure time, or by adding -multi_module to the
9138 # link flags.
9139 rm -rf libconftest.dylib*
9140 echo "int foo(void){return 1;}" > conftest.c
9141 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9142-dynamiclib -Wl,-single_module conftest.c" >&5
9143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9144 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9145 _lt_result=$?
9146 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9147 lt_cv_apple_cc_single_mod=yes
9148 else
9149 cat conftest.err >&5
9150 fi
9151 rm -rf libconftest.dylib*
9152 rm -f conftest.*
9153 fi
9154fi
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9156$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9158$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 9159if ${lt_cv_ld_exported_symbols_list+:} false; then :
21be0a5a
JB
9160 $as_echo_n "(cached) " >&6
9161else
9162 lt_cv_ld_exported_symbols_list=no
9163 save_LDFLAGS=$LDFLAGS
9164 echo "_main" > conftest.sym
9165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9166 if test x$gcc_no_link = xyes; then
22e05272 9167 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
9168fi
9169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9170/* end confdefs.h. */
15e92535 9171
1cf3d07d
SE
9172int
9173main ()
9174{
21be0a5a
JB
9175
9176 ;
5213506e 9177 return 0;
1cf3d07d 9178}
15e92535 9179_ACEOF
21be0a5a
JB
9180if ac_fn_c_try_link "$LINENO"; then :
9181 lt_cv_ld_exported_symbols_list=yes
5213506e 9182else
21be0a5a 9183 lt_cv_ld_exported_symbols_list=no
1cf3d07d 9184fi
21be0a5a
JB
9185rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
9188
9189fi
21be0a5a
JB
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9191$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9193$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 9194if ${lt_cv_ld_force_load+:} false; then :
21be0a5a
JB
9195 $as_echo_n "(cached) " >&6
9196else
9197 lt_cv_ld_force_load=no
9198 cat > conftest.c << _LT_EOF
9199int forced_loaded() { return 2;}
9200_LT_EOF
9201 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9202 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9203 echo "$AR cru libconftest.a conftest.o" >&5
9204 $AR cru libconftest.a conftest.o 2>&5
9205 cat > conftest.c << _LT_EOF
9206int main() { return 0;}
9207_LT_EOF
9208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9210 _lt_result=$?
9211 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9212 lt_cv_ld_force_load=yes
9213 else
9214 cat conftest.err >&5
9215 fi
9216 rm -f conftest.err libconftest.a conftest conftest.c
9217 rm -rf conftest.dSYM
1cf3d07d
SE
9218
9219fi
21be0a5a
JB
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9221$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
9222 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9223 # build without first building modern cctools / linker.
9224 case $host_cpu-$host_os in
9225 *-rhapsody* | *-darwin1.[012])
21be0a5a 9226 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 9227 *-darwin1.*)
21be0a5a 9228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
9229 *-darwin*)
9230 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9231 # deployment target is forced to an earlier version.
9232 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9233 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9234 ;;
ebf6d33b 9235 10.[012][,.]*)
1352bc88
IS
9236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9237 ;;
9238 *)
9239 ;;
9240 esac
21be0a5a
JB
9241 ;;
9242 esac
9243 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9244 _lt_dar_single_mod='$single_module'
9245 fi
9246 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9247 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9248 else
9249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9250 fi
9251 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9252 _lt_dsymutil='~$DSYMUTIL $lib || :'
9253 else
9254 _lt_dsymutil=
9255 fi
9256 ;;
9257 esac
1cf3d07d 9258
1cf3d07d 9259for ac_header in dlfcn.h
5213506e
RW
9260do :
9261 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9262"
22e05272 9263if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1cf3d07d 9264 cat >>confdefs.h <<_ACEOF
5213506e 9265#define HAVE_DLFCN_H 1
9cdc381b 9266_ACEOF
9cdc381b 9267
1cf3d07d
SE
9268fi
9269
9270done
9271
9272
9273
43e02a8a
RW
9274
9275
d58dead8
PG
9276# Set options
9277
9278
9279
9280
9281 enable_win32_dll=no
9282
9283
5213506e
RW
9284 # Check whether --enable-shared was given.
9285if test "${enable_shared+set}" = set; then :
9286 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
9287 case $enableval in
9288 yes) enable_shared=yes ;;
9289 no) enable_shared=no ;;
9290 *)
9291 enable_shared=no
9292 # Look at the argument we got. We use all the common list separators.
9293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9294 for pkg in $enableval; do
9295 IFS="$lt_save_ifs"
9296 if test "X$pkg" = "X$p"; then
9297 enable_shared=yes
9298 fi
9299 done
9300 IFS="$lt_save_ifs"
9301 ;;
9302 esac
9303else
9304 enable_shared=yes
5213506e
RW
9305fi
9306
d58dead8
PG
9307
9308
9309
9310
9311
9312
9313
9314
5213506e
RW
9315 # Check whether --enable-static was given.
9316if test "${enable_static+set}" = set; then :
9317 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
9318 case $enableval in
9319 yes) enable_static=yes ;;
9320 no) enable_static=no ;;
9321 *)
9322 enable_static=no
9323 # Look at the argument we got. We use all the common list separators.
9324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9325 for pkg in $enableval; do
9326 IFS="$lt_save_ifs"
9327 if test "X$pkg" = "X$p"; then
9328 enable_static=yes
9329 fi
9330 done
9331 IFS="$lt_save_ifs"
9332 ;;
9333 esac
9334else
9335 enable_static=yes
5213506e
RW
9336fi
9337
d58dead8
PG
9338
9339
9340
9341
9342
9343
9344
9345
9346
5213506e
RW
9347# Check whether --with-pic was given.
9348if test "${with_pic+set}" = set; then :
9349 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
9350else
9351 pic_mode=default
5213506e
RW
9352fi
9353
d58dead8
PG
9354
9355test -z "$pic_mode" && pic_mode=default
9356
9357
9358
9359
9360
9361
9362
5213506e
RW
9363 # Check whether --enable-fast-install was given.
9364if test "${enable_fast_install+set}" = set; then :
9365 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9366 case $enableval in
9367 yes) enable_fast_install=yes ;;
9368 no) enable_fast_install=no ;;
9369 *)
9370 enable_fast_install=no
9371 # Look at the argument we got. We use all the common list separators.
9372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9373 for pkg in $enableval; do
9374 IFS="$lt_save_ifs"
9375 if test "X$pkg" = "X$p"; then
9376 enable_fast_install=yes
9377 fi
9378 done
9379 IFS="$lt_save_ifs"
9380 ;;
9381 esac
9382else
9383 enable_fast_install=yes
5213506e
RW
9384fi
9385
d58dead8
PG
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
1cf3d07d
SE
9396# This can be used to rebuild libtool when needed
9397LIBTOOL_DEPS="$ltmain"
9398
9399# Always use our own libtool.
9400LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
43e02a8a 9424
1cf3d07d
SE
9425
9426
9427test -z "$LN_S" && LN_S="ln -s"
9428
9429
9430
9431
9432
9cdc381b 9433
1cf3d07d
SE
9434
9435
9436
9437
9438
9439
9440
9441
9442if test -n "${ZSH_VERSION+set}" ; then
9443 setopt NO_GLOB_SUBST
9cdc381b 9444fi
9cdc381b 9445
5213506e
RW
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9447$as_echo_n "checking for objdir... " >&6; }
22e05272 9448if ${lt_cv_objdir+:} false; then :
5213506e 9449 $as_echo_n "(cached) " >&6
9cdc381b 9450else
1cf3d07d
SE
9451 rm -f .libs 2>/dev/null
9452mkdir .libs 2>/dev/null
9453if test -d .libs; then
9454 lt_cv_objdir=.libs
9455else
9456 # MS-DOS does not allow filenames that begin with a dot.
9457 lt_cv_objdir=_libs
9cdc381b 9458fi
1cf3d07d 9459rmdir .libs 2>/dev/null
9cdc381b 9460fi
5213506e
RW
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9462$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9463objdir=$lt_cv_objdir
9464
9465
9466
9467
9cdc381b
BD
9468
9469cat >>confdefs.h <<_ACEOF
1cf3d07d 9470#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9471_ACEOF
9472
1cf3d07d
SE
9473
9474
9475
1cf3d07d
SE
9476case $host_os in
9477aix3*)
9478 # AIX sometimes has problems with the GCC collect2 program. For some
9479 # reason, if we set the COLLECT_NAMES environment variable, the problems
9480 # vanish in a puff of smoke.
9481 if test "X${COLLECT_NAMES+set}" != Xset; then
9482 COLLECT_NAMES=
9483 export COLLECT_NAMES
9484 fi
9485 ;;
9486esac
9487
1cf3d07d
SE
9488# Global variables:
9489ofile=libtool
9490can_build_shared=yes
9491
9492# All known linkers require a `.a' archive for static linking (except MSVC,
9493# which needs '.lib').
9494libext=a
9495
9496with_gnu_ld="$lt_cv_prog_gnu_ld"
9497
9498old_CC="$CC"
9499old_CFLAGS="$CFLAGS"
9500
9501# Set sane defaults for various variables
9502test -z "$CC" && CC=cc
9503test -z "$LTCC" && LTCC=$CC
9504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9505test -z "$LD" && LD=ld
9506test -z "$ac_objext" && ac_objext=o
9507
9508for cc_temp in $compiler""; do
9509 case $cc_temp in
9510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9512 \-*) ;;
9513 *) break;;
9514 esac
9515done
43e02a8a 9516cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9517
9518
9519# Only perform the check for file, if the check method requires it
9520test -z "$MAGIC_CMD" && MAGIC_CMD=file
9521case $deplibs_check_method in
9522file_magic*)
9523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9525$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9526if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9527 $as_echo_n "(cached) " >&6
9cdc381b 9528else
1cf3d07d
SE
9529 case $MAGIC_CMD in
9530[\\/*] | ?:[\\/]*)
9531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9532 ;;
9533*)
9534 lt_save_MAGIC_CMD="$MAGIC_CMD"
9535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9537 for ac_dir in $ac_dummy; do
9538 IFS="$lt_save_ifs"
9539 test -z "$ac_dir" && ac_dir=.
9540 if test -f $ac_dir/${ac_tool_prefix}file; then
9541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9542 if test -n "$file_magic_test_file"; then
9543 case $deplibs_check_method in
9544 "file_magic "*)
9545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9548 $EGREP "$file_magic_regex" > /dev/null; then
9549 :
9550 else
9551 cat <<_LT_EOF 1>&2
9cdc381b 9552
1cf3d07d
SE
9553*** Warning: the command libtool uses to detect shared libraries,
9554*** $file_magic_cmd, produces output that libtool cannot recognize.
9555*** The result is that libtool may fail to recognize shared libraries
9556*** as such. This will affect the creation of libtool libraries that
9557*** depend on shared libraries, but programs linked with such libtool
9558*** libraries will work regardless of this problem. Nevertheless, you
9559*** may want to report the problem to your system manager and/or to
9560*** bug-libtool@gnu.org
9561
9562_LT_EOF
9563 fi ;;
9564 esac
9565 fi
9566 break
9567 fi
9568 done
9569 IFS="$lt_save_ifs"
9570 MAGIC_CMD="$lt_save_MAGIC_CMD"
9571 ;;
9572esac
9573fi
9574
9575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9576if test -n "$MAGIC_CMD"; then
5213506e
RW
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9578$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9579else
5213506e
RW
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581$as_echo "no" >&6; }
1cf3d07d
SE
9582fi
9583
9584
9585
9586
9587
9588if test -z "$lt_cv_path_MAGIC_CMD"; then
9589 if test -n "$ac_tool_prefix"; then
5213506e
RW
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9591$as_echo_n "checking for file... " >&6; }
22e05272 9592if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9593 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9594else
9595 case $MAGIC_CMD in
9596[\\/*] | ?:[\\/]*)
9597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9598 ;;
9599*)
9600 lt_save_MAGIC_CMD="$MAGIC_CMD"
9601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9603 for ac_dir in $ac_dummy; do
9604 IFS="$lt_save_ifs"
9605 test -z "$ac_dir" && ac_dir=.
9606 if test -f $ac_dir/file; then
9607 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9608 if test -n "$file_magic_test_file"; then
9609 case $deplibs_check_method in
9610 "file_magic "*)
9611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9614 $EGREP "$file_magic_regex" > /dev/null; then
9615 :
9616 else
9617 cat <<_LT_EOF 1>&2
9618
9619*** Warning: the command libtool uses to detect shared libraries,
9620*** $file_magic_cmd, produces output that libtool cannot recognize.
9621*** The result is that libtool may fail to recognize shared libraries
9622*** as such. This will affect the creation of libtool libraries that
9623*** depend on shared libraries, but programs linked with such libtool
9624*** libraries will work regardless of this problem. Nevertheless, you
9625*** may want to report the problem to your system manager and/or to
9626*** bug-libtool@gnu.org
9627
9628_LT_EOF
9629 fi ;;
9630 esac
9631 fi
9632 break
9633 fi
9634 done
9635 IFS="$lt_save_ifs"
9636 MAGIC_CMD="$lt_save_MAGIC_CMD"
9637 ;;
9638esac
9639fi
9640
9641MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9642if test -n "$MAGIC_CMD"; then
5213506e
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9644$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9645else
5213506e
RW
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647$as_echo "no" >&6; }
1cf3d07d
SE
9648fi
9649
9650
9651 else
9652 MAGIC_CMD=:
9653 fi
9654fi
9655
9656 fi
9657 ;;
9658esac
9659
9660# Use C for the default configuration in the libtool script
9661
9662lt_save_CC="$CC"
9663ac_ext=c
9664ac_cpp='$CPP $CPPFLAGS'
9665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9667ac_compiler_gnu=$ac_cv_c_compiler_gnu
9668
9669
9670# Source file extension for C test sources.
9671ac_ext=c
9672
9673# Object file extension for compiled C test sources.
9674objext=o
9675objext=$objext
9676
9677# Code to be used in simple compile tests
9678lt_simple_compile_test_code="int some_variable = 0;"
9679
9680# Code to be used in simple link tests
9681lt_simple_link_test_code='int main(){return(0);}'
9682
9683
9684
9685
9686
9687
9688
9689# If no C compiler was specified, use CC.
9690LTCC=${LTCC-"$CC"}
9691
9692# If no C compiler flags were specified, use CFLAGS.
9693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9694
9695# Allow CC to be a program name with arguments.
9696compiler=$CC
9697
9698# Save the default compiler, since it gets overwritten when the other
9699# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9700compiler_DEFAULT=$CC
9701
9702# save warnings/boilerplate of simple test code
9703ac_outfile=conftest.$ac_objext
9704echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9705eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9706_lt_compiler_boilerplate=`cat conftest.err`
9707$RM conftest*
9708
9709ac_outfile=conftest.$ac_objext
9710echo "$lt_simple_link_test_code" >conftest.$ac_ext
9711eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9712_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9713$RM -r conftest*
1cf3d07d
SE
9714
9715
9716## CAVEAT EMPTOR:
9717## There is no encapsulation within the following macros, do not change
9718## the running order or otherwise move them around unless you know exactly
9719## what you are doing...
9720if test -n "$compiler"; then
9721
9722lt_prog_compiler_no_builtin_flag=
9723
9724if test "$GCC" = yes; then
43e02a8a
RW
9725 case $cc_basename in
9726 nvcc*)
9727 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9728 *)
9729 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9730 esac
1cf3d07d 9731
5213506e
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9733$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9734if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 9735 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9736else
9737 lt_cv_prog_compiler_rtti_exceptions=no
9738 ac_outfile=conftest.$ac_objext
9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9740 lt_compiler_flag="-fno-rtti -fno-exceptions"
9741 # Insert the option either (1) after the last *FLAGS variable, or
9742 # (2) before a word containing "conftest.", or (3) at the end.
9743 # Note that $ac_compile itself does not contain backslashes and begins
9744 # with a dollar sign (not a hyphen), so the echo should work correctly.
9745 # The option is referenced via a variable to avoid confusing sed.
9746 lt_compile=`echo "$ac_compile" | $SED \
9747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9749 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9751 (eval "$lt_compile" 2>conftest.err)
9752 ac_status=$?
9753 cat conftest.err >&5
43e02a8a 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9755 if (exit $ac_status) && test -s "$ac_outfile"; then
9756 # The compiler can only warn and ignore the option if not recognized
9757 # So say no if there are warnings other than the usual output.
43e02a8a 9758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler_rtti_exceptions=yes
9762 fi
9763 fi
9764 $RM conftest*
9765
9766fi
5213506e
RW
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9768$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9769
9770if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9772else
9773 :
9774fi
9775
9776fi
9777
9778
9779
9780
9781
9782
9783 lt_prog_compiler_wl=
9784lt_prog_compiler_pic=
9785lt_prog_compiler_static=
9786
5213506e
RW
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9788$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9789
9790 if test "$GCC" = yes; then
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_static='-static'
9793
9794 case $host_os in
9795 aix*)
9796 # All AIX code is PIC.
9797 if test "$host_cpu" = ia64; then
9798 # AIX 5 now supports IA64 processor
9799 lt_prog_compiler_static='-Bstatic'
9800 fi
bad8a4a7 9801 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9802 ;;
9803
9804 amigaos*)
d58dead8
PG
9805 case $host_cpu in
9806 powerpc)
9807 # see comment about AmigaOS4 .so support
9808 lt_prog_compiler_pic='-fPIC'
9809 ;;
9810 m68k)
9811 # FIXME: we need at least 68020 code to build shared libraries, but
9812 # adding the `-m68020' flag to GCC prevents building anything better,
9813 # like `-m68040'.
9814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9815 ;;
9816 esac
1cf3d07d
SE
9817 ;;
9818
9819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9820 # PIC is the default for these OSes.
9821 ;;
9822
d58dead8 9823 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9824 # This hack is so that the source file can tell whether it is being
9825 # built for inclusion in a dll (and should export symbols for example).
9826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9827 # (--disable-auto-import) libraries
9828 lt_prog_compiler_pic='-DDLL_EXPORT'
9829 ;;
9830
9831 darwin* | rhapsody*)
9832 # PIC is the default on this platform
9833 # Common symbols not allowed in MH_DYLIB files
9834 lt_prog_compiler_pic='-fno-common'
9835 ;;
9836
43e02a8a
RW
9837 haiku*)
9838 # PIC is the default for Haiku.
9839 # The "-static" flag exists, but is broken.
9840 lt_prog_compiler_static=
9841 ;;
9842
1cf3d07d 9843 hpux*)
d58dead8
PG
9844 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9845 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9846 # sets the default TLS model and affects inlining.
1cf3d07d 9847 case $host_cpu in
d58dead8 9848 hppa*64*)
1cf3d07d
SE
9849 # +Z the default
9850 ;;
9851 *)
9852 lt_prog_compiler_pic='-fPIC'
9853 ;;
9854 esac
9855 ;;
9856
9857 interix[3-9]*)
9858 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9859 # Instead, we relocate shared libraries at runtime.
9860 ;;
9861
9862 msdosdjgpp*)
9863 # Just because we use GCC doesn't mean we suddenly get shared libraries
9864 # on systems that don't support them.
9865 lt_prog_compiler_can_build_shared=no
9866 enable_shared=no
9867 ;;
9868
9869 *nto* | *qnx*)
9870 # QNX uses GNU C++, but need to define -shared option too, otherwise
9871 # it will coredump.
9872 lt_prog_compiler_pic='-fPIC -shared'
9873 ;;
9874
9875 sysv4*MP*)
9876 if test -d /usr/nec; then
9877 lt_prog_compiler_pic=-Kconform_pic
9878 fi
9879 ;;
9880
9881 *)
9882 lt_prog_compiler_pic='-fPIC'
9883 ;;
9884 esac
43e02a8a
RW
9885
9886 case $cc_basename in
9887 nvcc*) # Cuda Compiler Driver 2.2
9888 lt_prog_compiler_wl='-Xlinker '
9889 lt_prog_compiler_pic='-Xcompiler -fPIC'
9890 ;;
9891 esac
1cf3d07d
SE
9892 else
9893 # PORTME Check for flag to pass linker flags through the system compiler.
9894 case $host_os in
9895 aix*)
9896 lt_prog_compiler_wl='-Wl,'
9897 if test "$host_cpu" = ia64; then
9898 # AIX 5 now supports IA64 processor
9899 lt_prog_compiler_static='-Bstatic'
9900 else
9901 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9902 fi
9903 ;;
1cf3d07d 9904
d58dead8 9905 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9906 # This hack is so that the source file can tell whether it is being
9907 # built for inclusion in a dll (and should export symbols for example).
9908 lt_prog_compiler_pic='-DDLL_EXPORT'
9909 ;;
9910
9911 hpux9* | hpux10* | hpux11*)
9912 lt_prog_compiler_wl='-Wl,'
9913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9914 # not for PA HP-UX.
9915 case $host_cpu in
9916 hppa*64*|ia64*)
9917 # +Z the default
9918 ;;
9919 *)
9920 lt_prog_compiler_pic='+Z'
9921 ;;
9922 esac
9923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9924 lt_prog_compiler_static='${wl}-a ${wl}archive'
9925 ;;
9926
9927 irix5* | irix6* | nonstopux*)
9928 lt_prog_compiler_wl='-Wl,'
9929 # PIC (with -KPIC) is the default.
9930 lt_prog_compiler_static='-non_shared'
9931 ;;
9932
7a9d3fe8 9933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9934 case $cc_basename in
d58dead8
PG
9935 # old Intel for x86_64 which still supported -KPIC.
9936 ecc*)
1cf3d07d
SE
9937 lt_prog_compiler_wl='-Wl,'
9938 lt_prog_compiler_pic='-KPIC'
9939 lt_prog_compiler_static='-static'
9940 ;;
d58dead8
PG
9941 # icc used to be incompatible with GCC.
9942 # ICC 10 doesn't accept -KPIC any more.
9943 icc* | ifort*)
9944 lt_prog_compiler_wl='-Wl,'
9945 lt_prog_compiler_pic='-fPIC'
9946 lt_prog_compiler_static='-static'
9947 ;;
9948 # Lahey Fortran 8.1.
9949 lf95*)
9950 lt_prog_compiler_wl='-Wl,'
9951 lt_prog_compiler_pic='--shared'
9952 lt_prog_compiler_static='--static'
9953 ;;
43e02a8a 9954 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9955 # Portland Group compilers (*not* the Pentium gcc compiler,
9956 # which looks to be a dead project)
9957 lt_prog_compiler_wl='-Wl,'
9958 lt_prog_compiler_pic='-fpic'
9959 lt_prog_compiler_static='-Bstatic'
9960 ;;
9961 ccc*)
9962 lt_prog_compiler_wl='-Wl,'
9963 # All Alpha code is PIC.
9964 lt_prog_compiler_static='-non_shared'
9965 ;;
43e02a8a
RW
9966 xl* | bgxl* | bgf* | mpixl*)
9967 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9968 lt_prog_compiler_wl='-Wl,'
9969 lt_prog_compiler_pic='-qpic'
9970 lt_prog_compiler_static='-qstaticlink'
9971 ;;
1cf3d07d
SE
9972 *)
9973 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9974 *Sun\ F* | *Sun*Fortran*)
9975 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
43e02a8a 9978 lt_prog_compiler_wl=''
1cf3d07d 9979 ;;
43e02a8a
RW
9980 *Sun\ C*)
9981 # Sun C 5.9
1cf3d07d
SE
9982 lt_prog_compiler_pic='-KPIC'
9983 lt_prog_compiler_static='-Bstatic'
43e02a8a 9984 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9985 ;;
9986 esac
9987 ;;
9988 esac
9989 ;;
9990
9991 newsos6)
9992 lt_prog_compiler_pic='-KPIC'
9993 lt_prog_compiler_static='-Bstatic'
9994 ;;
9995
9996 *nto* | *qnx*)
9997 # QNX uses GNU C++, but need to define -shared option too, otherwise
9998 # it will coredump.
9999 lt_prog_compiler_pic='-fPIC -shared'
10000 ;;
10001
10002 osf3* | osf4* | osf5*)
10003 lt_prog_compiler_wl='-Wl,'
10004 # All OSF/1 code is PIC.
10005 lt_prog_compiler_static='-non_shared'
10006 ;;
10007
10008 rdos*)
10009 lt_prog_compiler_static='-non_shared'
10010 ;;
10011
10012 solaris*)
10013 lt_prog_compiler_pic='-KPIC'
10014 lt_prog_compiler_static='-Bstatic'
10015 case $cc_basename in
10016 f77* | f90* | f95*)
10017 lt_prog_compiler_wl='-Qoption ld ';;
10018 *)
10019 lt_prog_compiler_wl='-Wl,';;
10020 esac
10021 ;;
10022
10023 sunos4*)
10024 lt_prog_compiler_wl='-Qoption ld '
10025 lt_prog_compiler_pic='-PIC'
10026 lt_prog_compiler_static='-Bstatic'
10027 ;;
10028
10029 sysv4 | sysv4.2uw2* | sysv4.3*)
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_pic='-KPIC'
10032 lt_prog_compiler_static='-Bstatic'
10033 ;;
10034
10035 sysv4*MP*)
10036 if test -d /usr/nec ;then
10037 lt_prog_compiler_pic='-Kconform_pic'
10038 lt_prog_compiler_static='-Bstatic'
10039 fi
10040 ;;
10041
10042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10043 lt_prog_compiler_wl='-Wl,'
10044 lt_prog_compiler_pic='-KPIC'
10045 lt_prog_compiler_static='-Bstatic'
10046 ;;
10047
10048 unicos*)
10049 lt_prog_compiler_wl='-Wl,'
10050 lt_prog_compiler_can_build_shared=no
10051 ;;
10052
10053 uts4*)
10054 lt_prog_compiler_pic='-pic'
10055 lt_prog_compiler_static='-Bstatic'
10056 ;;
10057
10058 *)
10059 lt_prog_compiler_can_build_shared=no
10060 ;;
10061 esac
10062 fi
10063
10064case $host_os in
10065 # For platforms which do not support PIC, -DPIC is meaningless:
10066 *djgpp*)
10067 lt_prog_compiler_pic=
10068 ;;
10069 *)
10070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10071 ;;
10072esac
5213506e
RW
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10074$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10075
10076
10077
10078
10079
10080
10081#
10082# Check to make sure the PIC flag actually works.
10083#
10084if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10086$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 10087if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 10088 $as_echo_n "(cached) " >&6
1cf3d07d 10089else
d58dead8 10090 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10091 ac_outfile=conftest.$ac_objext
10092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10093 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10094 # Insert the option either (1) after the last *FLAGS variable, or
10095 # (2) before a word containing "conftest.", or (3) at the end.
10096 # Note that $ac_compile itself does not contain backslashes and begins
10097 # with a dollar sign (not a hyphen), so the echo should work correctly.
10098 # The option is referenced via a variable to avoid confusing sed.
10099 lt_compile=`echo "$ac_compile" | $SED \
10100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10102 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10104 (eval "$lt_compile" 2>conftest.err)
10105 ac_status=$?
10106 cat conftest.err >&5
43e02a8a 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10108 if (exit $ac_status) && test -s "$ac_outfile"; then
10109 # The compiler can only warn and ignore the option if not recognized
10110 # So say no if there are warnings other than the usual output.
43e02a8a 10111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10114 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10115 fi
10116 fi
10117 $RM conftest*
10118
10119fi
5213506e
RW
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10121$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 10122
d58dead8 10123if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10124 case $lt_prog_compiler_pic in
10125 "" | " "*) ;;
10126 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10127 esac
10128else
10129 lt_prog_compiler_pic=
10130 lt_prog_compiler_can_build_shared=no
10131fi
10132
10133fi
10134
10135
10136
10137
10138
10139
10140#
10141# Check to make sure the static flag actually works.
10142#
10143wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10145$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 10146if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 10147 $as_echo_n "(cached) " >&6
1cf3d07d 10148else
d58dead8 10149 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10150 save_LDFLAGS="$LDFLAGS"
10151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10154 # The linker can only warn and ignore the option if not recognized
10155 # So say no if there are warnings
10156 if test -s conftest.err; then
10157 # Append any errors to the config.log.
10158 cat conftest.err 1>&5
43e02a8a 10159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10162 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10163 fi
10164 else
d58dead8 10165 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10166 fi
10167 fi
d58dead8 10168 $RM -r conftest*
1cf3d07d
SE
10169 LDFLAGS="$save_LDFLAGS"
10170
10171fi
5213506e
RW
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10173$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10174
d58dead8 10175if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10176 :
10177else
10178 lt_prog_compiler_static=
10179fi
10180
10181
10182
10183
10184
10185
10186
5213506e
RW
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10189if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10190 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10191else
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10194 mkdir conftest
10195 cd conftest
10196 mkdir out
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10209 (eval "$lt_compile" 2>out/conftest.err)
10210 ac_status=$?
10211 cat out/conftest.err >&5
43e02a8a 10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214 then
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
43e02a8a 10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10221 fi
10222 fi
10223 chmod u+w . 2>&5
10224 $RM conftest*
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10229 cd ..
10230 $RM -r conftest
10231 $RM conftest*
10232
10233fi
5213506e
RW
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10236
10237
10238
10239
10240
10241
5213506e
RW
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10243$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10244if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10245 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10246else
10247 lt_cv_prog_compiler_c_o=no
10248 $RM -r conftest 2>/dev/null
10249 mkdir conftest
10250 cd conftest
10251 mkdir out
10252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10253
10254 lt_compiler_flag="-o out/conftest2.$ac_objext"
10255 # Insert the option either (1) after the last *FLAGS variable, or
10256 # (2) before a word containing "conftest.", or (3) at the end.
10257 # Note that $ac_compile itself does not contain backslashes and begins
10258 # with a dollar sign (not a hyphen), so the echo should work correctly.
10259 lt_compile=`echo "$ac_compile" | $SED \
10260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10264 (eval "$lt_compile" 2>out/conftest.err)
10265 ac_status=$?
10266 cat out/conftest.err >&5
43e02a8a 10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10269 then
10270 # The compiler can only warn and ignore the option if not recognized
10271 # So say no if there are warnings
43e02a8a 10272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10275 lt_cv_prog_compiler_c_o=yes
10276 fi
10277 fi
10278 chmod u+w . 2>&5
10279 $RM conftest*
10280 # SGI C++ compiler will create directory out/ii_files/ for
10281 # template instantiation
10282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10283 $RM out/* && rmdir out
10284 cd ..
10285 $RM -r conftest
10286 $RM conftest*
10287
10288fi
5213506e
RW
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10291
10292
10293
10294
10295hard_links="nottested"
10296if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10297 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10299$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10300 hard_links=yes
10301 $RM conftest*
10302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10303 touch conftest.a
10304 ln conftest.a conftest.b 2>&5 || hard_links=no
10305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10307$as_echo "$hard_links" >&6; }
1cf3d07d 10308 if test "$hard_links" = no; then
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10310$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10311 need_locks=warn
10312 fi
10313else
10314 need_locks=no
10315fi
10316
10317
10318
10319
10320
10321
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10323$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10324
10325 runpath_var=
10326 allow_undefined_flag=
10327 always_export_symbols=no
10328 archive_cmds=
10329 archive_expsym_cmds=
10330 compiler_needs_object=no
10331 enable_shared_with_static_runtimes=no
10332 export_dynamic_flag_spec=
10333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10334 hardcode_automatic=no
10335 hardcode_direct=no
10336 hardcode_direct_absolute=no
10337 hardcode_libdir_flag_spec=
10338 hardcode_libdir_flag_spec_ld=
10339 hardcode_libdir_separator=
10340 hardcode_minus_L=no
10341 hardcode_shlibpath_var=unsupported
10342 inherit_rpath=no
10343 link_all_deplibs=unknown
10344 module_cmds=
10345 module_expsym_cmds=
10346 old_archive_from_new_cmds=
10347 old_archive_from_expsyms_cmds=
10348 thread_safe_flag_spec=
10349 whole_archive_flag_spec=
10350 # include_expsyms should be a list of space-separated symbols to be *always*
10351 # included in the symbol list
10352 include_expsyms=
10353 # exclude_expsyms can be an extended regexp of symbols to exclude
10354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10356 # as well as any symbol that contains `d'.
d58dead8 10357 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10359 # platforms (ab)use it in PIC code, but their linkers get confused if
10360 # the symbol is explicitly referenced. Since portable code cannot
10361 # rely on this symbol name, it's probably fine to never include it in
10362 # preloaded symbol tables.
d58dead8 10363 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10364 extract_expsyms_cmds=
10365
10366 case $host_os in
d58dead8 10367 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10368 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10369 # When not using gcc, we currently assume that we are using
10370 # Microsoft Visual C++.
10371 if test "$GCC" != yes; then
10372 with_gnu_ld=no
10373 fi
10374 ;;
10375 interix*)
10376 # we just hope/assume this is gcc and not c89 (= MSVC++)
10377 with_gnu_ld=yes
10378 ;;
10379 openbsd*)
10380 with_gnu_ld=no
10381 ;;
10382 esac
10383
10384 ld_shlibs=yes
43e02a8a
RW
10385
10386 # On some targets, GNU ld is compatible enough with the native linker
10387 # that we're better off using the native interface for both.
10388 lt_use_gnu_ld_interface=no
1cf3d07d 10389 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10390 case $host_os in
10391 aix*)
10392 # The AIX port of GNU ld has always aspired to compatibility
10393 # with the native linker. However, as the warning in the GNU ld
10394 # block says, versions before 2.19.5* couldn't really create working
10395 # shared libraries, regardless of the interface used.
10396 case `$LD -v 2>&1` in
10397 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10398 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10399 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10400 *)
10401 lt_use_gnu_ld_interface=yes
10402 ;;
10403 esac
10404 ;;
10405 *)
10406 lt_use_gnu_ld_interface=yes
10407 ;;
10408 esac
10409 fi
10410
10411 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10412 # If archive_cmds runs LD, not CC, wlarc should be empty
10413 wlarc='${wl}'
10414
10415 # Set some defaults for GNU ld with shared library support. These
10416 # are reset later if shared libraries are not supported. Putting them
10417 # here allows them to be overridden if necessary.
10418 runpath_var=LD_RUN_PATH
10419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 export_dynamic_flag_spec='${wl}--export-dynamic'
10421 # ancient GNU ld didn't support --whole-archive et. al.
10422 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10423 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10424 else
10425 whole_archive_flag_spec=
10426 fi
10427 supports_anon_versioning=no
10428 case `$LD -v 2>&1` in
43e02a8a 10429 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10430 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10431 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10432 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10433 *\ 2.11.*) ;; # other 2.11 versions
10434 *) supports_anon_versioning=yes ;;
10435 esac
10436
10437 # See if GNU ld supports shared libraries.
10438 case $host_os in
4f6bebc3 10439 aix[3-9]*)
1cf3d07d
SE
10440 # On AIX/PPC, the GNU linker is very broken
10441 if test "$host_cpu" != ia64; then
10442 ld_shlibs=no
10443 cat <<_LT_EOF 1>&2
10444
43e02a8a 10445*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10446*** to be unable to reliably create shared libraries on AIX.
10447*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10448*** really care for shared libraries, you may want to install binutils
10449*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10450*** You will then need to restart the configuration process.
1cf3d07d
SE
10451
10452_LT_EOF
10453 fi
10454 ;;
10455
10456 amigaos*)
d58dead8
PG
10457 case $host_cpu in
10458 powerpc)
10459 # see comment about AmigaOS4 .so support
10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461 archive_expsym_cmds=''
10462 ;;
10463 m68k)
10464 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)'
10465 hardcode_libdir_flag_spec='-L$libdir'
10466 hardcode_minus_L=yes
10467 ;;
10468 esac
1cf3d07d
SE
10469 ;;
10470
10471 beos*)
10472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10473 allow_undefined_flag=unsupported
10474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10475 # support --undefined. This deserves some investigation. FIXME
10476 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10477 else
10478 ld_shlibs=no
10479 fi
10480 ;;
10481
d58dead8 10482 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10483 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10484 # as there is no search path for DLLs.
10485 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10486 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10487 allow_undefined_flag=unsupported
10488 always_export_symbols=no
10489 enable_shared_with_static_runtimes=yes
10490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10491
10492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494 # If the export-symbols file already is a .def file (1st line
10495 # is EXPORTS), use it as is; otherwise, prepend...
10496 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10497 cp $export_symbols $output_objdir/$soname.def;
10498 else
10499 echo EXPORTS > $output_objdir/$soname.def;
10500 cat $export_symbols >> $output_objdir/$soname.def;
10501 fi~
10502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10503 else
10504 ld_shlibs=no
10505 fi
10506 ;;
10507
43e02a8a
RW
10508 haiku*)
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10510 link_all_deplibs=yes
10511 ;;
10512
1cf3d07d
SE
10513 interix[3-9]*)
10514 hardcode_direct=no
10515 hardcode_shlibpath_var=no
10516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10517 export_dynamic_flag_spec='${wl}-E'
10518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10519 # Instead, shared libraries are loaded at an image base (0x10000000 by
10520 # default) and relocated if they conflict, which is a slow very memory
10521 # consuming and fragmenting process. To avoid this, we pick a random,
10522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10525 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'
10526 ;;
10527
e9085da5 10528 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
10529 tmp_diet=no
10530 if test "$host_os" = linux-dietlibc; then
10531 case $cc_basename in
10532 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10533 esac
10534 fi
10535 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10536 && test "$tmp_diet" = no
10537 then
a699d672 10538 tmp_addflag=' $pic_flag'
d58dead8 10539 tmp_sharedflag='-shared'
1cf3d07d
SE
10540 case $cc_basename,$host_cpu in
10541 pgcc*) # Portland Group C compiler
43e02a8a 10542 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'
1cf3d07d
SE
10543 tmp_addflag=' $pic_flag'
10544 ;;
43e02a8a
RW
10545 pgf77* | pgf90* | pgf95* | pgfortran*)
10546 # Portland Group f77 and f90 compilers
10547 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'
1cf3d07d
SE
10548 tmp_addflag=' $pic_flag -Mnomain' ;;
10549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10550 tmp_addflag=' -i_dynamic' ;;
10551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10552 tmp_addflag=' -i_dynamic -nofor_main' ;;
10553 ifc* | ifort*) # Intel Fortran compiler
10554 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10555 lf95*) # Lahey Fortran 8.1
10556 whole_archive_flag_spec=
10557 tmp_sharedflag='--shared' ;;
43e02a8a 10558 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10559 tmp_sharedflag='-qmkshrobj'
10560 tmp_addflag= ;;
43e02a8a
RW
10561 nvcc*) # Cuda Compiler Driver 2.2
10562 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'
10563 compiler_needs_object=yes
10564 ;;
1cf3d07d
SE
10565 esac
10566 case `$CC -V 2>&1 | sed 5q` in
10567 *Sun\ C*) # Sun C 5.9
43e02a8a 10568 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'
1cf3d07d
SE
10569 compiler_needs_object=yes
10570 tmp_sharedflag='-G' ;;
10571 *Sun\ F*) # Sun Fortran 8.3
10572 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10573 esac
10574 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10575
10576 if test "x$supports_anon_versioning" = xyes; then
10577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10579 echo "local: *; };" >> $output_objdir/$libname.ver~
10580 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10581 fi
d58dead8
PG
10582
10583 case $cc_basename in
43e02a8a 10584 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10585 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10586 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10587 hardcode_libdir_flag_spec=
10588 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10589 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10590 if test "x$supports_anon_versioning" = xyes; then
10591 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10593 echo "local: *; };" >> $output_objdir/$libname.ver~
10594 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10595 fi
10596 ;;
10597 esac
1cf3d07d
SE
10598 else
10599 ld_shlibs=no
10600 fi
10601 ;;
10602
10603 netbsd*)
10604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10605 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10606 wlarc=
10607 else
10608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10610 fi
10611 ;;
10612
10613 solaris*)
10614 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10615 ld_shlibs=no
10616 cat <<_LT_EOF 1>&2
10617
10618*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10619*** create shared libraries on Solaris systems. Therefore, libtool
10620*** is disabling shared libraries support. We urge you to upgrade GNU
10621*** binutils to release 2.9.1 or newer. Another option is to modify
10622*** your PATH or compiler configuration so that the native linker is
10623*** used, and then restart.
10624
10625_LT_EOF
10626 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10629 else
10630 ld_shlibs=no
10631 fi
10632 ;;
10633
10634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10635 case `$LD -v 2>&1` in
10636 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10637 ld_shlibs=no
10638 cat <<_LT_EOF 1>&2
10639
10640*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10641*** reliably create shared libraries on SCO systems. Therefore, libtool
10642*** is disabling shared libraries support. We urge you to upgrade GNU
10643*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10644*** your PATH or compiler configuration so that the native linker is
10645*** used, and then restart.
10646
10647_LT_EOF
10648 ;;
10649 *)
10650 # For security reasons, it is highly recommended that you always
10651 # use absolute paths for naming shared libraries, and exclude the
10652 # DT_RUNPATH tag from executables and libraries. But doing so
10653 # requires that you compile everything twice, which is a pain.
10654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10658 else
10659 ld_shlibs=no
10660 fi
10661 ;;
10662 esac
10663 ;;
10664
10665 sunos4*)
10666 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10667 wlarc=
10668 hardcode_direct=yes
10669 hardcode_shlibpath_var=no
10670 ;;
10671
10672 *)
10673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10676 else
10677 ld_shlibs=no
10678 fi
10679 ;;
10680 esac
10681
10682 if test "$ld_shlibs" = no; then
10683 runpath_var=
10684 hardcode_libdir_flag_spec=
10685 export_dynamic_flag_spec=
10686 whole_archive_flag_spec=
10687 fi
10688 else
10689 # PORTME fill in a description of your system's linker (not GNU ld)
10690 case $host_os in
10691 aix3*)
10692 allow_undefined_flag=unsupported
10693 always_export_symbols=yes
10694 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'
10695 # Note: this linker hardcodes the directories in LIBPATH if there
10696 # are no directories specified by -L.
10697 hardcode_minus_L=yes
10698 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10699 # Neither direct hardcoding nor static linking is supported with a
10700 # broken collect2.
10701 hardcode_direct=unsupported
10702 fi
10703 ;;
10704
4f6bebc3 10705 aix[4-9]*)
1cf3d07d
SE
10706 if test "$host_cpu" = ia64; then
10707 # On IA64, the linker does run time linking by default, so we don't
10708 # have to do anything special.
10709 aix_use_runtimelinking=no
10710 exp_sym_flag='-Bexport'
10711 no_entry_flag=""
10712 else
10713 # If we're using GNU nm, then we don't want the "-C" option.
10714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10715 # Also, AIX nm treats weak defined symbols like other global
10716 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10718 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'
1cf3d07d 10719 else
d3ca2257 10720 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'
1cf3d07d
SE
10721 fi
10722 aix_use_runtimelinking=no
10723
10724 # Test if we are trying to use run time linking or normal
10725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10726 # need to do runtime linking.
4f6bebc3 10727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10728 for ld_flag in $LDFLAGS; do
10729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10730 aix_use_runtimelinking=yes
10731 break
10732 fi
10733 done
10734 ;;
10735 esac
10736
10737 exp_sym_flag='-bexport'
10738 no_entry_flag='-bnoentry'
10739 fi
10740
10741 # When large executables or shared objects are built, AIX ld can
10742 # have problems creating the table of contents. If linking a library
10743 # or program results in "error TOC overflow" add -mminimal-toc to
10744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10746
10747 archive_cmds=''
10748 hardcode_direct=yes
10749 hardcode_direct_absolute=yes
10750 hardcode_libdir_separator=':'
10751 link_all_deplibs=yes
10752 file_list_spec='${wl}-f,'
10753
10754 if test "$GCC" = yes; then
10755 case $host_os in aix4.[012]|aix4.[012].*)
10756 # We only want to do this on AIX 4.2 and lower, the check
10757 # below for broken collect2 doesn't work under 4.3+
10758 collect2name=`${CC} -print-prog-name=collect2`
10759 if test -f "$collect2name" &&
10760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10761 then
10762 # We have reworked collect2
10763 :
10764 else
10765 # We have old collect2
10766 hardcode_direct=unsupported
10767 # It fails to find uninstalled libraries when the uninstalled
10768 # path is not listed in the libpath. Setting hardcode_minus_L
10769 # to unsupported forces relinking
10770 hardcode_minus_L=yes
10771 hardcode_libdir_flag_spec='-L$libdir'
10772 hardcode_libdir_separator=
10773 fi
10774 ;;
10775 esac
10776 shared_flag='-shared'
10777 if test "$aix_use_runtimelinking" = yes; then
10778 shared_flag="$shared_flag "'${wl}-G'
10779 fi
10780 else
10781 # not using gcc
10782 if test "$host_cpu" = ia64; then
10783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10784 # chokes on -Wl,-G. The following line is correct:
10785 shared_flag='-G'
10786 else
10787 if test "$aix_use_runtimelinking" = yes; then
10788 shared_flag='${wl}-G'
10789 else
10790 shared_flag='${wl}-bM:SRE'
10791 fi
10792 fi
10793 fi
10794
d58dead8 10795 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10796 # It seems that -bexpall does not export symbols beginning with
10797 # underscore (_), so it is better to generate a list of symbols to export.
10798 always_export_symbols=yes
10799 if test "$aix_use_runtimelinking" = yes; then
10800 # Warning - without using the other runtime loading flags (-brtl),
10801 # -berok will link without error, but may produce a broken library.
10802 allow_undefined_flag='-berok'
10803 # Determine the default libpath from the value encoded in an
10804 # empty executable.
10805 if test x$gcc_no_link = xyes; then
22e05272 10806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10807fi
5213506e 10808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10809/* end confdefs.h. */
10810
10811int
10812main ()
10813{
10814
10815 ;
10816 return 0;
10817}
10818_ACEOF
5213506e 10819if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10820
10821lt_aix_libpath_sed='
10822 /Import File Strings/,/^$/ {
10823 /^0/ {
10824 s/^0 *\(.*\)$/\1/
10825 p
10826 }
10827 }'
10828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10829# Check for a 64-bit object if we didn't find anything.
10830if test -z "$aix_libpath"; then
10831 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10832fi
1cf3d07d 10833fi
5213506e
RW
10834rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10837
10838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10839 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"
1cf3d07d
SE
10840 else
10841 if test "$host_cpu" = ia64; then
10842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10843 allow_undefined_flag="-z nodefs"
10844 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"
10845 else
10846 # Determine the default libpath from the value encoded in an
10847 # empty executable.
10848 if test x$gcc_no_link = xyes; then
22e05272 10849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10850fi
5213506e 10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10852/* end confdefs.h. */
10853
10854int
10855main ()
10856{
10857
10858 ;
10859 return 0;
10860}
10861_ACEOF
5213506e 10862if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10863
10864lt_aix_libpath_sed='
10865 /Import File Strings/,/^$/ {
10866 /^0/ {
10867 s/^0 *\(.*\)$/\1/
10868 p
10869 }
10870 }'
10871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10872# Check for a 64-bit object if we didn't find anything.
10873if test -z "$aix_libpath"; then
10874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10875fi
1cf3d07d 10876fi
5213506e
RW
10877rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10880
10881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10882 # Warning - without using the other run time loading flags,
10883 # -berok will link without error, but may produce a broken library.
10884 no_undefined_flag=' ${wl}-bernotok'
10885 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10886 if test "$with_gnu_ld" = yes; then
10887 # We only use this code for GNU lds that support --whole-archive.
10888 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10889 else
10890 # Exported symbols can be pulled into shared objects from archives
10891 whole_archive_flag_spec='$convenience'
10892 fi
1cf3d07d
SE
10893 archive_cmds_need_lc=yes
10894 # This is similar to how AIX traditionally builds its shared libraries.
10895 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'
10896 fi
10897 fi
10898 ;;
10899
10900 amigaos*)
d58dead8
PG
10901 case $host_cpu in
10902 powerpc)
10903 # see comment about AmigaOS4 .so support
10904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10905 archive_expsym_cmds=''
10906 ;;
10907 m68k)
10908 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)'
10909 hardcode_libdir_flag_spec='-L$libdir'
10910 hardcode_minus_L=yes
10911 ;;
10912 esac
1cf3d07d
SE
10913 ;;
10914
10915 bsdi[45]*)
10916 export_dynamic_flag_spec=-rdynamic
10917 ;;
10918
d58dead8 10919 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10920 # When not using gcc, we currently assume that we are using
10921 # Microsoft Visual C++.
10922 # hardcode_libdir_flag_spec is actually meaningless, as there is
10923 # no search path for DLLs.
10924 hardcode_libdir_flag_spec=' '
10925 allow_undefined_flag=unsupported
10926 # Tell ltmain to make .lib files, not .a files.
10927 libext=lib
10928 # Tell ltmain to make .dll files, not .so files.
10929 shrext_cmds=".dll"
10930 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10932 # The linker will automatically build a .lib file if we build a DLL.
10933 old_archive_from_new_cmds='true'
10934 # FIXME: Should let the user specify the lib program.
10935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10936 fix_srcfile_path='`cygpath -w "$srcfile"`'
10937 enable_shared_with_static_runtimes=yes
10938 ;;
10939
10940 darwin* | rhapsody*)
1cf3d07d 10941
d58dead8
PG
10942
10943 archive_cmds_need_lc=no
10944 hardcode_direct=no
10945 hardcode_automatic=yes
10946 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10947 if test "$lt_cv_ld_force_load" = "yes"; then
10948 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\"`'
10949 else
10950 whole_archive_flag_spec=''
10951 fi
d58dead8
PG
10952 link_all_deplibs=yes
10953 allow_undefined_flag="$_lt_dar_allow_undefined"
10954 case $cc_basename in
10955 ifort*) _lt_dar_can_shared=yes ;;
10956 *) _lt_dar_can_shared=$GCC ;;
10957 esac
10958 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10959 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10960 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10961 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10962 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}"
10963 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}"
10964
10965 else
10966 ld_shlibs=no
10967 fi
10968
1cf3d07d
SE
10969 ;;
10970
10971 dgux*)
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_libdir_flag_spec='-L$libdir'
10974 hardcode_shlibpath_var=no
10975 ;;
10976
1cf3d07d
SE
10977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10978 # support. Future versions do this automatically, but an explicit c++rt0.o
10979 # does not break anything, and helps significantly (at the cost of a little
10980 # extra space).
10981 freebsd2.2*)
10982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10983 hardcode_libdir_flag_spec='-R$libdir'
10984 hardcode_direct=yes
10985 hardcode_shlibpath_var=no
10986 ;;
10987
10988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10989 freebsd2.*)
1cf3d07d
SE
10990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_direct=yes
10992 hardcode_minus_L=yes
10993 hardcode_shlibpath_var=no
10994 ;;
10995
10996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10997 freebsd* | dragonfly*)
10998 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10999 hardcode_libdir_flag_spec='-R$libdir'
11000 hardcode_direct=yes
11001 hardcode_shlibpath_var=no
11002 ;;
11003
11004 hpux9*)
11005 if test "$GCC" = yes; then
11006 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'
11007 else
11008 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'
11009 fi
11010 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11011 hardcode_libdir_separator=:
11012 hardcode_direct=yes
11013
11014 # hardcode_minus_L: Not really in the search PATH,
11015 # but as the default location of the library.
11016 hardcode_minus_L=yes
11017 export_dynamic_flag_spec='${wl}-E'
11018 ;;
11019
11020 hpux10*)
43e02a8a 11021 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023 else
11024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11025 fi
11026 if test "$with_gnu_ld" = no; then
11027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11028 hardcode_libdir_flag_spec_ld='+b $libdir'
11029 hardcode_libdir_separator=:
11030 hardcode_direct=yes
11031 hardcode_direct_absolute=yes
11032 export_dynamic_flag_spec='${wl}-E'
11033 # hardcode_minus_L: Not really in the search PATH,
11034 # but as the default location of the library.
11035 hardcode_minus_L=yes
11036 fi
11037 ;;
11038
11039 hpux11*)
43e02a8a 11040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11041 case $host_cpu in
11042 hppa*64*)
4e4ba647 11043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11044 ;;
11045 ia64*)
d58dead8 11046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11047 ;;
11048 *)
11049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11050 ;;
11051 esac
11052 else
11053 case $host_cpu in
11054 hppa*64*)
4e4ba647 11055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11056 ;;
11057 ia64*)
11058 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11059 ;;
11060 *)
43e02a8a
RW
11061
11062 # Older versions of the 11.00 compiler do not understand -b yet
11063 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11065$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 11066if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
11067 $as_echo_n "(cached) " >&6
11068else
11069 lt_cv_prog_compiler__b=no
11070 save_LDFLAGS="$LDFLAGS"
11071 LDFLAGS="$LDFLAGS -b"
11072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11074 # The linker can only warn and ignore the option if not recognized
11075 # So say no if there are warnings
11076 if test -s conftest.err; then
11077 # Append any errors to the config.log.
11078 cat conftest.err 1>&5
11079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11081 if diff conftest.exp conftest.er2 >/dev/null; then
11082 lt_cv_prog_compiler__b=yes
11083 fi
11084 else
11085 lt_cv_prog_compiler__b=yes
11086 fi
11087 fi
11088 $RM -r conftest*
11089 LDFLAGS="$save_LDFLAGS"
11090
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11093$as_echo "$lt_cv_prog_compiler__b" >&6; }
11094
11095if test x"$lt_cv_prog_compiler__b" = xyes; then
11096 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11097else
11098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11099fi
11100
1cf3d07d
SE
11101 ;;
11102 esac
11103 fi
11104 if test "$with_gnu_ld" = no; then
11105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11106 hardcode_libdir_separator=:
11107
11108 case $host_cpu in
11109 hppa*64*|ia64*)
11110 hardcode_direct=no
11111 hardcode_shlibpath_var=no
11112 ;;
11113 *)
11114 hardcode_direct=yes
11115 hardcode_direct_absolute=yes
11116 export_dynamic_flag_spec='${wl}-E'
11117
11118 # hardcode_minus_L: Not really in the search PATH,
11119 # but as the default location of the library.
11120 hardcode_minus_L=yes
11121 ;;
11122 esac
11123 fi
11124 ;;
11125
11126 irix5* | irix6* | nonstopux*)
11127 if test "$GCC" = yes; then
43e02a8a 11128 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'
1cf3d07d
SE
11129 # Try to use the -exported_symbol ld option, if it does not
11130 # work, assume that -exports_file does not work either and
11131 # implicitly export all symbols.
11132 save_LDFLAGS="$LDFLAGS"
11133 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11134 if test x$gcc_no_link = xyes; then
22e05272 11135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11136fi
5213506e
RW
11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138/* end confdefs.h. */
1cf3d07d
SE
11139int foo(void) {}
11140_ACEOF
5213506e 11141if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11142 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'
1cf3d07d 11143
1cf3d07d 11144fi
5213506e
RW
11145rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11147 LDFLAGS="$save_LDFLAGS"
11148 else
43e02a8a
RW
11149 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'
11150 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'
1cf3d07d
SE
11151 fi
11152 archive_cmds_need_lc='no'
11153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11154 hardcode_libdir_separator=:
11155 inherit_rpath=yes
11156 link_all_deplibs=yes
11157 ;;
11158
11159 netbsd*)
11160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11162 else
11163 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11164 fi
11165 hardcode_libdir_flag_spec='-R$libdir'
11166 hardcode_direct=yes
11167 hardcode_shlibpath_var=no
11168 ;;
11169
11170 newsos6)
11171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11172 hardcode_direct=yes
11173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11174 hardcode_libdir_separator=:
11175 hardcode_shlibpath_var=no
11176 ;;
11177
11178 *nto* | *qnx*)
11179 ;;
11180
11181 openbsd*)
d58dead8
PG
11182 if test -f /usr/libexec/ld.so; then
11183 hardcode_direct=yes
11184 hardcode_shlibpath_var=no
11185 hardcode_direct_absolute=yes
11186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 11188 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
11190 export_dynamic_flag_spec='${wl}-E'
11191 else
11192 case $host_os in
11193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11195 hardcode_libdir_flag_spec='-R$libdir'
11196 ;;
11197 *)
11198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11200 ;;
11201 esac
11202 fi
11203 else
11204 ld_shlibs=no
1cf3d07d
SE
11205 fi
11206 ;;
11207
11208 os2*)
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 hardcode_minus_L=yes
11211 allow_undefined_flag=unsupported
43e02a8a 11212 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'
1cf3d07d
SE
11213 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11214 ;;
11215
11216 osf3*)
11217 if test "$GCC" = yes; then
11218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11219 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'
1cf3d07d
SE
11220 else
11221 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11222 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'
1cf3d07d
SE
11223 fi
11224 archive_cmds_need_lc='no'
11225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11226 hardcode_libdir_separator=:
11227 ;;
11228
11229 osf4* | osf5*) # as osf3* with the addition of -msym flag
11230 if test "$GCC" = yes; then
11231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11232 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'
1cf3d07d
SE
11233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11234 else
11235 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11236 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'
1cf3d07d 11237 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~
43e02a8a 11238 $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'
1cf3d07d
SE
11239
11240 # Both c and cxx compiler support -rpath directly
11241 hardcode_libdir_flag_spec='-rpath $libdir'
11242 fi
11243 archive_cmds_need_lc='no'
11244 hardcode_libdir_separator=:
11245 ;;
11246
11247 solaris*)
11248 no_undefined_flag=' -z defs'
11249 if test "$GCC" = yes; then
11250 wlarc='${wl}'
11251 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11253 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11254 else
11255 case `$CC -V 2>&1` in
11256 *"Compilers 5.0"*)
11257 wlarc=''
11258 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11261 ;;
11262 *)
11263 wlarc='${wl}'
11264 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11266 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11267 ;;
11268 esac
11269 fi
11270 hardcode_libdir_flag_spec='-R$libdir'
11271 hardcode_shlibpath_var=no
11272 case $host_os in
11273 solaris2.[0-5] | solaris2.[0-5].*) ;;
11274 *)
11275 # The compiler driver will combine and reorder linker options,
11276 # but understands `-z linker_flag'. GCC discards it without `$wl',
11277 # but is careful enough not to reorder.
11278 # Supported since Solaris 2.6 (maybe 2.5.1?)
11279 if test "$GCC" = yes; then
11280 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11281 else
11282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11283 fi
11284 ;;
11285 esac
11286 link_all_deplibs=yes
11287 ;;
11288
11289 sunos4*)
11290 if test "x$host_vendor" = xsequent; then
11291 # Use $CC to link under sequent, because it throws in some extra .o
11292 # files that make .init and .fini sections work.
11293 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11294 else
11295 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11296 fi
11297 hardcode_libdir_flag_spec='-L$libdir'
11298 hardcode_direct=yes
11299 hardcode_minus_L=yes
11300 hardcode_shlibpath_var=no
11301 ;;
11302
11303 sysv4)
11304 case $host_vendor in
11305 sni)
11306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11307 hardcode_direct=yes # is this really true???
11308 ;;
11309 siemens)
11310 ## LD is ld it makes a PLAMLIB
11311 ## CC just makes a GrossModule.
11312 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11313 reload_cmds='$CC -r -o $output$reload_objs'
11314 hardcode_direct=no
11315 ;;
11316 motorola)
11317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11319 ;;
11320 esac
11321 runpath_var='LD_RUN_PATH'
11322 hardcode_shlibpath_var=no
11323 ;;
11324
11325 sysv4.3*)
11326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11327 hardcode_shlibpath_var=no
11328 export_dynamic_flag_spec='-Bexport'
11329 ;;
11330
11331 sysv4*MP*)
11332 if test -d /usr/nec; then
11333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_shlibpath_var=no
11335 runpath_var=LD_RUN_PATH
11336 hardcode_runpath_var=yes
11337 ld_shlibs=yes
11338 fi
11339 ;;
11340
11341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11342 no_undefined_flag='${wl}-z,text'
11343 archive_cmds_need_lc=no
11344 hardcode_shlibpath_var=no
11345 runpath_var='LD_RUN_PATH'
11346
11347 if test "$GCC" = yes; then
11348 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350 else
11351 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 fi
11354 ;;
11355
11356 sysv5* | sco3.2v5* | sco5v6*)
11357 # Note: We can NOT use -z defs as we might desire, because we do not
11358 # link with -lc, and that would cause any symbols used from libc to
11359 # always be unresolved, which means just about no library would
11360 # ever link correctly. If we're not using GNU ld we use -z text
11361 # though, which does catch some bad symbols but isn't as heavy-handed
11362 # as -z defs.
11363 no_undefined_flag='${wl}-z,text'
11364 allow_undefined_flag='${wl}-z,nodefs'
11365 archive_cmds_need_lc=no
11366 hardcode_shlibpath_var=no
11367 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11368 hardcode_libdir_separator=':'
11369 link_all_deplibs=yes
11370 export_dynamic_flag_spec='${wl}-Bexport'
11371 runpath_var='LD_RUN_PATH'
11372
11373 if test "$GCC" = yes; then
11374 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 else
11377 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 fi
11380 ;;
11381
11382 uts4*)
11383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384 hardcode_libdir_flag_spec='-L$libdir'
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 *)
11389 ld_shlibs=no
11390 ;;
11391 esac
11392
11393 if test x$host_vendor = xsni; then
11394 case $host in
11395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11396 export_dynamic_flag_spec='${wl}-Blargedynsym'
11397 ;;
11398 esac
11399 fi
11400 fi
11401
5213506e
RW
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11403$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11404test "$ld_shlibs" = no && can_build_shared=no
11405
11406with_gnu_ld=$with_gnu_ld
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422#
11423# Do we need to explicitly link libc?
11424#
11425case "x$archive_cmds_need_lc" in
11426x|xyes)
11427 # Assume -lc should be added
11428 archive_cmds_need_lc=yes
11429
11430 if test "$enable_shared" = yes && test "$GCC" = yes; then
11431 case $archive_cmds in
11432 *'~'*)
11433 # FIXME: we may have to deal with multi-command sequences.
11434 ;;
11435 '$CC '*)
11436 # Test whether the compiler implicitly links with -lc since on some
11437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11438 # to ld, don't add -lc before -lgcc.
5213506e
RW
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11440$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11441if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 11442 $as_echo_n "(cached) " >&6
baafc534
RW
11443else
11444 $RM conftest*
11445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11446
5213506e 11447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11448 (eval $ac_compile) 2>&5
11449 ac_status=$?
5213506e
RW
11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11452 soname=conftest
11453 lib=conftest
11454 libobjs=conftest.$ac_objext
11455 deplibs=
11456 wl=$lt_prog_compiler_wl
11457 pic_flag=$lt_prog_compiler_pic
11458 compiler_flags=-v
11459 linker_flags=-v
11460 verstring=
11461 output_objdir=.
11462 libname=conftest
11463 lt_save_allow_undefined_flag=$allow_undefined_flag
11464 allow_undefined_flag=
5213506e 11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11467 ac_status=$?
5213506e
RW
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; }
baafc534
RW
11470 then
11471 lt_cv_archive_cmds_need_lc=no
11472 else
11473 lt_cv_archive_cmds_need_lc=yes
11474 fi
11475 allow_undefined_flag=$lt_save_allow_undefined_flag
11476 else
11477 cat conftest.err 1>&5
11478 fi
11479 $RM conftest*
11480
11481fi
5213506e
RW
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11483$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11485 ;;
11486 esac
11487 fi
11488 ;;
11489esac
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11648$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11649
11650if test "$GCC" = yes; then
1cf3d07d
SE
11651 case $host_os in
11652 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11653 *) lt_awk_arg="/^libraries:/" ;;
11654 esac
43e02a8a
RW
11655 case $host_os in
11656 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11657 *) lt_sed_strip_eq="s,=/,/,g" ;;
11658 esac
11659 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11660 case $lt_search_path_spec in
11661 *\;*)
1cf3d07d
SE
11662 # if the path contains ";" then we assume it to be the separator
11663 # otherwise default to the standard path separator (i.e. ":") - it is
11664 # assumed that no part of a normal pathname contains ";" but that should
11665 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11667 ;;
11668 *)
11669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11670 ;;
11671 esac
1cf3d07d
SE
11672 # Ok, now we have the path, separated by spaces, we can step through it
11673 # and add multilib dir if necessary.
11674 lt_tmp_lt_search_path_spec=
11675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11676 for lt_sys_path in $lt_search_path_spec; do
11677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11679 else
11680 test -d "$lt_sys_path" && \
11681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11682 fi
11683 done
43e02a8a 11684 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11685BEGIN {RS=" "; FS="/|\n";} {
11686 lt_foo="";
11687 lt_count=0;
11688 for (lt_i = NF; lt_i > 0; lt_i--) {
11689 if ($lt_i != "" && $lt_i != ".") {
11690 if ($lt_i == "..") {
11691 lt_count++;
11692 } else {
11693 if (lt_count == 0) {
11694 lt_foo="/" $lt_i lt_foo;
11695 } else {
11696 lt_count--;
11697 }
11698 }
11699 }
11700 }
11701 if (lt_foo != "") { lt_freq[lt_foo]++; }
11702 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11703}'`
43e02a8a
RW
11704 # AWK program above erroneously prepends '/' to C:/dos/paths
11705 # for these hosts.
11706 case $host_os in
11707 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11708 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11709 esac
11710 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11711else
11712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11713fi
11714library_names_spec=
11715libname_spec='lib$name'
11716soname_spec=
11717shrext_cmds=".so"
11718postinstall_cmds=
11719postuninstall_cmds=
11720finish_cmds=
11721finish_eval=
11722shlibpath_var=
11723shlibpath_overrides_runpath=unknown
11724version_type=none
11725dynamic_linker="$host_os ld.so"
11726sys_lib_dlsearch_path_spec="/lib /usr/lib"
11727need_lib_prefix=unknown
11728hardcode_into_libs=no
11729
11730# when you set need_version to no, make sure it does not cause -set_version
11731# flags to be left without arguments
11732need_version=unknown
11733
11734case $host_os in
11735aix3*)
11736 version_type=linux
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11738 shlibpath_var=LIBPATH
11739
11740 # AIX 3 has no versioning support, so we append a major version to the name.
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 ;;
11743
4f6bebc3 11744aix[4-9]*)
1cf3d07d
SE
11745 version_type=linux
11746 need_lib_prefix=no
11747 need_version=no
11748 hardcode_into_libs=yes
11749 if test "$host_cpu" = ia64; then
11750 # AIX 5 supports IA64
11751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 else
11754 # With GCC up to 2.95.x, collect2 would create an import file
11755 # for dependence libraries. The import file would start with
11756 # the line `#! .'. This would cause the generated library to
11757 # depend on `.', always an invalid library. This was fixed in
11758 # development snapshots of GCC prior to 3.0.
11759 case $host_os in
11760 aix4 | aix4.[01] | aix4.[01].*)
11761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11762 echo ' yes '
11763 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11764 :
11765 else
11766 can_build_shared=no
11767 fi
11768 ;;
11769 esac
11770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11771 # soname into executable. Probably we can add versioning support to
11772 # collect2, so additional links can be useful in future.
11773 if test "$aix_use_runtimelinking" = yes; then
11774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11775 # instead of lib<name>.a to let people know that these are not
11776 # typical AIX shared libraries.
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 else
11779 # We preserve .a as extension for shared libraries through AIX4.2
11780 # and later when we are not doing run time linking.
11781 library_names_spec='${libname}${release}.a $libname.a'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 fi
11784 shlibpath_var=LIBPATH
11785 fi
11786 ;;
11787
11788amigaos*)
d58dead8
PG
11789 case $host_cpu in
11790 powerpc)
11791 # Since July 2007 AmigaOS4 officially supports .so libraries.
11792 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 ;;
11795 m68k)
1cf3d07d
SE
11796 library_names_spec='$libname.ixlibrary $libname.a'
11797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11798 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'
d58dead8
PG
11799 ;;
11800 esac
1cf3d07d
SE
11801 ;;
11802
11803beos*)
11804 library_names_spec='${libname}${shared_ext}'
11805 dynamic_linker="$host_os ld.so"
11806 shlibpath_var=LIBRARY_PATH
11807 ;;
11808
11809bsdi[45]*)
11810 version_type=linux
11811 need_version=no
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11818 # the default ld.so.conf also contains /usr/contrib/lib and
11819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11820 # libtool to hard-code these into programs
11821 ;;
11822
d58dead8 11823cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11824 version_type=windows
11825 shrext_cmds=".dll"
11826 need_version=no
11827 need_lib_prefix=no
11828
d58dead8
PG
11829 case $GCC,$host_os in
11830 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11831 library_names_spec='$libname.dll.a'
11832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11833 postinstall_cmds='base_file=`basename \${file}`~
11834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11835 dldir=$destdir/`dirname \$dlpath`~
11836 test -d \$dldir || mkdir -p \$dldir~
11837 $install_prog $dir/$dlname \$dldir/$dlname~
11838 chmod a+x \$dldir/$dlname~
11839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11841 fi'
11842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11843 dlpath=$dir/\$dldll~
11844 $RM \$dlpath'
11845 shlibpath_overrides_runpath=yes
11846
11847 case $host_os in
11848 cygwin*)
11849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11851
11852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11853 ;;
d58dead8 11854 mingw* | cegcc*)
1cf3d07d
SE
11855 # MinGW DLLs use traditional 'lib' prefix
11856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11857 ;;
11858 pw32*)
11859 # pw32 DLLs use 'pw' prefix rather than 'lib'
11860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11861 ;;
11862 esac
11863 ;;
11864
11865 *)
11866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11867 ;;
11868 esac
11869 dynamic_linker='Win32 ld.exe'
11870 # FIXME: first we should search . and the directory the executable is in
11871 shlibpath_var=PATH
11872 ;;
11873
11874darwin* | rhapsody*)
11875 dynamic_linker="$host_os dyld"
11876 version_type=darwin
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11880 soname_spec='${libname}${release}${major}$shared_ext'
11881 shlibpath_overrides_runpath=yes
11882 shlibpath_var=DYLD_LIBRARY_PATH
11883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11884
11885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11887 ;;
11888
11889dgux*)
11890 version_type=linux
11891 need_lib_prefix=no
11892 need_version=no
11893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11894 soname_spec='${libname}${release}${shared_ext}$major'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 ;;
11897
1cf3d07d
SE
11898freebsd* | dragonfly*)
11899 # DragonFly does not have aout. When/if they implement a new
11900 # versioning mechanism, adjust this.
11901 if test -x /usr/bin/objformat; then
11902 objformat=`/usr/bin/objformat`
11903 else
11904 case $host_os in
c6084f68 11905 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11906 *) objformat=elf ;;
11907 esac
11908 fi
11909 version_type=freebsd-$objformat
11910 case $version_type in
11911 freebsd-elf*)
11912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11913 need_version=no
11914 need_lib_prefix=no
11915 ;;
11916 freebsd-*)
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11918 need_version=yes
11919 ;;
11920 esac
11921 shlibpath_var=LD_LIBRARY_PATH
11922 case $host_os in
c6084f68 11923 freebsd2.*)
1cf3d07d
SE
11924 shlibpath_overrides_runpath=yes
11925 ;;
11926 freebsd3.[01]* | freebsdelf3.[01]*)
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 ;;
11930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11932 shlibpath_overrides_runpath=no
11933 hardcode_into_libs=yes
11934 ;;
11935 *) # from 4.6 on, and DragonFly
11936 shlibpath_overrides_runpath=yes
11937 hardcode_into_libs=yes
11938 ;;
11939 esac
11940 ;;
11941
43e02a8a
RW
11942haiku*)
11943 version_type=linux
11944 need_lib_prefix=no
11945 need_version=no
11946 dynamic_linker="$host_os runtime_loader"
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11951 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11952 hardcode_into_libs=yes
11953 ;;
11954
1cf3d07d
SE
11955hpux9* | hpux10* | hpux11*)
11956 # Give a soname corresponding to the major version so that dld.sl refuses to
11957 # link against other versions.
11958 version_type=sunos
11959 need_lib_prefix=no
11960 need_version=no
11961 case $host_cpu in
11962 ia64*)
11963 shrext_cmds='.so'
11964 hardcode_into_libs=yes
11965 dynamic_linker="$host_os dld.so"
11966 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 if test "X$HPUX_IA64_MODE" = X32; then
11971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11972 else
11973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11974 fi
11975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11976 ;;
11977 hppa*64*)
11978 shrext_cmds='.sl'
11979 hardcode_into_libs=yes
11980 dynamic_linker="$host_os dld.sl"
11981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11987 ;;
11988 *)
11989 shrext_cmds='.sl'
11990 dynamic_linker="$host_os dld.sl"
11991 shlibpath_var=SHLIB_PATH
11992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994 soname_spec='${libname}${release}${shared_ext}$major'
11995 ;;
11996 esac
43e02a8a 11997 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11998 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11999 # or fails outright, so override atomically:
12000 install_override_mode=555
1cf3d07d
SE
12001 ;;
12002
12003interix[3-9]*)
12004 version_type=linux
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=no
12012 hardcode_into_libs=yes
12013 ;;
12014
12015irix5* | irix6* | nonstopux*)
12016 case $host_os in
12017 nonstopux*) version_type=nonstopux ;;
12018 *)
12019 if test "$lt_cv_prog_gnu_ld" = yes; then
12020 version_type=linux
12021 else
12022 version_type=irix
12023 fi ;;
12024 esac
12025 need_lib_prefix=no
12026 need_version=no
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12029 case $host_os in
12030 irix5* | nonstopux*)
12031 libsuff= shlibsuff=
12032 ;;
12033 *)
12034 case $LD in # libtool.m4 will add one of these switches to LD
12035 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12036 libsuff= shlibsuff= libmagic=32-bit;;
12037 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12038 libsuff=32 shlibsuff=N32 libmagic=N32;;
12039 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12040 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12041 *) libsuff= shlibsuff= libmagic=never-match;;
12042 esac
12043 ;;
12044 esac
12045 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12046 shlibpath_overrides_runpath=no
12047 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12048 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12049 hardcode_into_libs=yes
12050 ;;
12051
12052# No shared lib support for Linux oldld, aout, or coff.
12053linux*oldld* | linux*aout* | linux*coff*)
12054 dynamic_linker=no
12055 ;;
12056
12057# This must be Linux ELF.
e9085da5
MR
12058
12059# uclinux* changes (here and below) have been submitted to the libtool
12060# project, but have not yet been accepted: they are GCC-local changes
12061# for the time being. (See
12062# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 12063linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
12064 version_type=linux
12065 need_lib_prefix=no
12066 need_version=no
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=no
baafc534 12072
1cf3d07d 12073 # Some binutils ld are patched to set DT_RUNPATH
22e05272 12074 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 12075 $as_echo_n "(cached) " >&6
baafc534
RW
12076else
12077 lt_cv_shlibpath_overrides_runpath=no
12078 save_LDFLAGS=$LDFLAGS
12079 save_libdir=$libdir
12080 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12081 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12082 if test x$gcc_no_link = xyes; then
22e05272 12083 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12084fi
5213506e 12085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12086/* end confdefs.h. */
12087
12088int
12089main ()
12090{
12091
12092 ;
12093 return 0;
12094}
12095_ACEOF
5213506e
RW
12096if ac_fn_c_try_link "$LINENO"; then :
12097 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12098 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 12099fi
1cf3d07d 12100fi
5213506e
RW
12101rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12103 LDFLAGS=$save_LDFLAGS
12104 libdir=$save_libdir
12105
12106fi
12107
12108 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
12109
12110 # This implies no fast_install, which is unacceptable.
12111 # Some rework will be needed to allow for fast_install
12112 # before this can be enabled.
12113 hardcode_into_libs=yes
12114
12115 # Append ld.so.conf contents to the search path
12116 if test -f /etc/ld.so.conf; then
43e02a8a 12117 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' ' '`
1cf3d07d
SE
12118 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12119 fi
12120
12121 # We used to test for /lib/ld.so.1 and disable shared libraries on
12122 # powerpc, because MkLinux only supported shared libraries with the
12123 # GNU dynamic linker. Since this was broken with cross compilers,
12124 # most powerpc-linux boxes support dynamic linking these days and
12125 # people can always --disable-shared, the test was removed, and we
12126 # assume the GNU/Linux dynamic linker is in use.
12127 dynamic_linker='GNU/Linux ld.so'
12128 ;;
12129
12130netbsd*)
12131 version_type=sunos
12132 need_lib_prefix=no
12133 need_version=no
12134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12137 dynamic_linker='NetBSD (a.out) ld.so'
12138 else
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 dynamic_linker='NetBSD ld.elf_so'
12142 fi
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12146 ;;
12147
12148newsos6)
12149 version_type=linux
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153 ;;
12154
12155*nto* | *qnx*)
12156 version_type=qnx
12157 need_lib_prefix=no
12158 need_version=no
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=no
12163 hardcode_into_libs=yes
12164 dynamic_linker='ldqnx.so'
12165 ;;
12166
12167openbsd*)
12168 version_type=sunos
12169 sys_lib_dlsearch_path_spec="/usr/lib"
12170 need_lib_prefix=no
12171 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12172 case $host_os in
12173 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12174 *) need_version=no ;;
12175 esac
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12180 case $host_os in
12181 openbsd2.[89] | openbsd2.[89].*)
12182 shlibpath_overrides_runpath=no
12183 ;;
12184 *)
12185 shlibpath_overrides_runpath=yes
12186 ;;
12187 esac
12188 else
12189 shlibpath_overrides_runpath=yes
12190 fi
12191 ;;
12192
12193os2*)
12194 libname_spec='$name'
12195 shrext_cmds=".dll"
12196 need_lib_prefix=no
12197 library_names_spec='$libname${shared_ext} $libname.a'
12198 dynamic_linker='OS/2 ld.exe'
12199 shlibpath_var=LIBPATH
12200 ;;
12201
12202osf3* | osf4* | osf5*)
12203 version_type=osf
12204 need_lib_prefix=no
12205 need_version=no
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12210 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12211 ;;
12212
12213rdos*)
12214 dynamic_linker=no
12215 ;;
12216
12217solaris*)
12218 version_type=linux
12219 need_lib_prefix=no
12220 need_version=no
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes
12225 hardcode_into_libs=yes
12226 # ldd complains unless libraries are executable
12227 postinstall_cmds='chmod +x $lib'
12228 ;;
12229
12230sunos4*)
12231 version_type=sunos
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 if test "$with_gnu_ld" = yes; then
12237 need_lib_prefix=no
12238 fi
12239 need_version=yes
12240 ;;
12241
12242sysv4 | sysv4.3*)
12243 version_type=linux
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 case $host_vendor in
12248 sni)
12249 shlibpath_overrides_runpath=no
12250 need_lib_prefix=no
12251 runpath_var=LD_RUN_PATH
12252 ;;
12253 siemens)
12254 need_lib_prefix=no
12255 ;;
12256 motorola)
12257 need_lib_prefix=no
12258 need_version=no
12259 shlibpath_overrides_runpath=no
12260 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12261 ;;
12262 esac
12263 ;;
12264
12265sysv4*MP*)
12266 if test -d /usr/nec ;then
12267 version_type=linux
12268 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12269 soname_spec='$libname${shared_ext}.$major'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 fi
12272 ;;
12273
12274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12275 version_type=freebsd-elf
12276 need_lib_prefix=no
12277 need_version=no
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 shlibpath_overrides_runpath=yes
12282 hardcode_into_libs=yes
12283 if test "$with_gnu_ld" = yes; then
12284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12285 else
12286 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12287 case $host_os in
12288 sco3.2v5*)
12289 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12290 ;;
12291 esac
12292 fi
12293 sys_lib_dlsearch_path_spec='/usr/lib'
12294 ;;
12295
12296tpf*)
12297 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12298 version_type=linux
12299 need_lib_prefix=no
12300 need_version=no
d58dead8 12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=no
12304 hardcode_into_libs=yes
12305 ;;
12306
12307uts4*)
12308 version_type=linux
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310 soname_spec='${libname}${release}${shared_ext}$major'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 ;;
12313
12314*)
12315 dynamic_linker=no
12316 ;;
12317esac
5213506e
RW
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12319$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
12320test "$dynamic_linker" = no && can_build_shared=no
12321
12322variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12323if test "$GCC" = yes; then
12324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12325fi
12326
d58dead8
PG
12327if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12328 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12329fi
12330if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12331 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12332fi
12333
1cf3d07d
SE
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
43e02a8a
RW
12414
12415
12416
12417
12418
1cf3d07d
SE
12419
12420
12421
12422
12423
12424
5213506e
RW
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12426$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12427hardcode_action=
12428if test -n "$hardcode_libdir_flag_spec" ||
12429 test -n "$runpath_var" ||
12430 test "X$hardcode_automatic" = "Xyes" ; then
12431
12432 # We can hardcode non-existent directories.
12433 if test "$hardcode_direct" != no &&
12434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12435 # have to relink, otherwise we might link with an installed library
12436 # when we should be linking with a yet-to-be-installed one
12437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12438 test "$hardcode_minus_L" != no; then
12439 # Linking always hardcodes the temporary library directory.
12440 hardcode_action=relink
12441 else
12442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12443 hardcode_action=immediate
12444 fi
12445else
12446 # We cannot hardcode anything, or else we can only hardcode existing
12447 # directories.
12448 hardcode_action=unsupported
12449fi
5213506e
RW
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12451$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12452
12453if test "$hardcode_action" = relink ||
12454 test "$inherit_rpath" = yes; then
12455 # Fast installation is not supported
12456 enable_fast_install=no
12457elif test "$shlibpath_overrides_runpath" = yes ||
12458 test "$enable_shared" = no; then
12459 # Fast installation is not necessary
12460 enable_fast_install=needless
12461fi
12462
12463
12464
12465
12466
12467
12468 if test "x$enable_dlopen" != xyes; then
12469 enable_dlopen=unknown
12470 enable_dlopen_self=unknown
12471 enable_dlopen_self_static=unknown
12472else
12473 lt_cv_dlopen=no
12474 lt_cv_dlopen_libs=
12475
12476 case $host_os in
12477 beos*)
12478 lt_cv_dlopen="load_add_on"
12479 lt_cv_dlopen_libs=
12480 lt_cv_dlopen_self=yes
12481 ;;
12482
d58dead8 12483 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12484 lt_cv_dlopen="LoadLibrary"
12485 lt_cv_dlopen_libs=
12486 ;;
12487
12488 cygwin*)
12489 lt_cv_dlopen="dlopen"
12490 lt_cv_dlopen_libs=
12491 ;;
12492
12493 darwin*)
12494 # if libdl is installed we need to link against it
5213506e
RW
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12496$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12497if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12498 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12499else
12500 ac_check_lib_save_LIBS=$LIBS
12501LIBS="-ldl $LIBS"
12502if test x$gcc_no_link = xyes; then
22e05272 12503 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12504fi
5213506e 12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12506/* end confdefs.h. */
12507
5213506e
RW
12508/* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12511#ifdef __cplusplus
12512extern "C"
12513#endif
1cf3d07d
SE
12514char dlopen ();
12515int
12516main ()
12517{
5213506e 12518return dlopen ();
1cf3d07d
SE
12519 ;
12520 return 0;
12521}
12522_ACEOF
5213506e 12523if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12524 ac_cv_lib_dl_dlopen=yes
12525else
5213506e 12526 ac_cv_lib_dl_dlopen=no
1cf3d07d 12527fi
5213506e
RW
12528rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12530LIBS=$ac_check_lib_save_LIBS
12531fi
5213506e
RW
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12533$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12534if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12536else
12537
12538 lt_cv_dlopen="dyld"
12539 lt_cv_dlopen_libs=
12540 lt_cv_dlopen_self=yes
12541
12542fi
12543
12544 ;;
12545
12546 *)
5213506e 12547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12548if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
12549 lt_cv_dlopen="shl_load"
12550else
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12552$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12553if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 12554 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12555else
12556 ac_check_lib_save_LIBS=$LIBS
12557LIBS="-ldld $LIBS"
12558if test x$gcc_no_link = xyes; then
22e05272 12559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12560fi
5213506e 12561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12562/* end confdefs.h. */
12563
5213506e
RW
12564/* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12567#ifdef __cplusplus
12568extern "C"
12569#endif
1cf3d07d
SE
12570char shl_load ();
12571int
12572main ()
12573{
5213506e 12574return shl_load ();
1cf3d07d
SE
12575 ;
12576 return 0;
12577}
12578_ACEOF
5213506e 12579if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12580 ac_cv_lib_dld_shl_load=yes
12581else
5213506e 12582 ac_cv_lib_dld_shl_load=no
1cf3d07d 12583fi
5213506e
RW
12584rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12586LIBS=$ac_check_lib_save_LIBS
12587fi
5213506e
RW
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12589$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12590if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d58dead8 12591 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12592else
5213506e 12593 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12594if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
12595 lt_cv_dlopen="dlopen"
12596else
5213506e
RW
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12598$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12599if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12600 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12601else
12602 ac_check_lib_save_LIBS=$LIBS
12603LIBS="-ldl $LIBS"
12604if test x$gcc_no_link = xyes; then
22e05272 12605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12606fi
5213506e 12607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12608/* end confdefs.h. */
12609
5213506e
RW
12610/* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12613#ifdef __cplusplus
12614extern "C"
12615#endif
1cf3d07d
SE
12616char dlopen ();
12617int
12618main ()
12619{
5213506e 12620return dlopen ();
1cf3d07d
SE
12621 ;
12622 return 0;
12623}
12624_ACEOF
5213506e 12625if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12626 ac_cv_lib_dl_dlopen=yes
12627else
5213506e 12628 ac_cv_lib_dl_dlopen=no
1cf3d07d 12629fi
5213506e
RW
12630rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12632LIBS=$ac_check_lib_save_LIBS
12633fi
5213506e
RW
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12636if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12638else
5213506e
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12640$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12641if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 12642 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12643else
12644 ac_check_lib_save_LIBS=$LIBS
12645LIBS="-lsvld $LIBS"
12646if test x$gcc_no_link = xyes; then
22e05272 12647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12648fi
5213506e 12649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12650/* end confdefs.h. */
12651
5213506e
RW
12652/* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12655#ifdef __cplusplus
12656extern "C"
12657#endif
1cf3d07d
SE
12658char dlopen ();
12659int
12660main ()
12661{
5213506e 12662return dlopen ();
1cf3d07d
SE
12663 ;
12664 return 0;
12665}
12666_ACEOF
5213506e 12667if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12668 ac_cv_lib_svld_dlopen=yes
12669else
5213506e 12670 ac_cv_lib_svld_dlopen=no
1cf3d07d 12671fi
5213506e
RW
12672rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12674LIBS=$ac_check_lib_save_LIBS
12675fi
5213506e
RW
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12677$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12678if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
12679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12680else
5213506e
RW
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12682$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12683if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 12684 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12685else
12686 ac_check_lib_save_LIBS=$LIBS
12687LIBS="-ldld $LIBS"
12688if test x$gcc_no_link = xyes; then
22e05272 12689 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12690fi
5213506e 12691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12692/* end confdefs.h. */
12693
5213506e
RW
12694/* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12697#ifdef __cplusplus
12698extern "C"
12699#endif
1cf3d07d
SE
12700char dld_link ();
12701int
12702main ()
12703{
5213506e 12704return dld_link ();
1cf3d07d
SE
12705 ;
12706 return 0;
12707}
12708_ACEOF
5213506e 12709if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12710 ac_cv_lib_dld_dld_link=yes
12711else
5213506e 12712 ac_cv_lib_dld_dld_link=no
1cf3d07d 12713fi
5213506e
RW
12714rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12716LIBS=$ac_check_lib_save_LIBS
12717fi
5213506e
RW
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12719$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12720if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d58dead8 12721 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12722fi
12723
12724
12725fi
12726
12727
12728fi
12729
12730
12731fi
12732
12733
12734fi
12735
12736
12737fi
12738
12739 ;;
12740 esac
12741
12742 if test "x$lt_cv_dlopen" != xno; then
12743 enable_dlopen=yes
12744 else
12745 enable_dlopen=no
12746 fi
12747
12748 case $lt_cv_dlopen in
12749 dlopen)
12750 save_CPPFLAGS="$CPPFLAGS"
12751 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12752
12753 save_LDFLAGS="$LDFLAGS"
12754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12755
12756 save_LIBS="$LIBS"
12757 LIBS="$lt_cv_dlopen_libs $LIBS"
12758
5213506e
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12760$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12761if ${lt_cv_dlopen_self+:} false; then :
5213506e 12762 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12763else
12764 if test "$cross_compiling" = yes; then :
12765 lt_cv_dlopen_self=cross
12766else
12767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12768 lt_status=$lt_dlunknown
12769 cat > conftest.$ac_ext <<_LT_EOF
133d0d42 12770#line 12770 "configure"
1cf3d07d
SE
12771#include "confdefs.h"
12772
12773#if HAVE_DLFCN_H
12774#include <dlfcn.h>
12775#endif
12776
12777#include <stdio.h>
12778
12779#ifdef RTLD_GLOBAL
12780# define LT_DLGLOBAL RTLD_GLOBAL
12781#else
12782# ifdef DL_GLOBAL
12783# define LT_DLGLOBAL DL_GLOBAL
12784# else
12785# define LT_DLGLOBAL 0
12786# endif
12787#endif
12788
12789/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12790 find out it does not work in some platform. */
12791#ifndef LT_DLLAZY_OR_NOW
12792# ifdef RTLD_LAZY
12793# define LT_DLLAZY_OR_NOW RTLD_LAZY
12794# else
12795# ifdef DL_LAZY
12796# define LT_DLLAZY_OR_NOW DL_LAZY
12797# else
12798# ifdef RTLD_NOW
12799# define LT_DLLAZY_OR_NOW RTLD_NOW
12800# else
12801# ifdef DL_NOW
12802# define LT_DLLAZY_OR_NOW DL_NOW
12803# else
12804# define LT_DLLAZY_OR_NOW 0
12805# endif
12806# endif
12807# endif
12808# endif
12809#endif
12810
43e02a8a
RW
12811/* When -fvisbility=hidden is used, assume the code has been annotated
12812 correspondingly for the symbols needed. */
12813#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12814void fnord () __attribute__((visibility("default")));
12815#endif
12816
12817void fnord () { int i=42; }
1cf3d07d
SE
12818int main ()
12819{
12820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12821 int status = $lt_dlunknown;
12822
12823 if (self)
12824 {
12825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12826 else
12827 {
12828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12829 else puts (dlerror ());
12830 }
1cf3d07d
SE
12831 /* dlclose (self); */
12832 }
12833 else
12834 puts (dlerror ());
12835
d58dead8 12836 return status;
1cf3d07d
SE
12837}
12838_LT_EOF
5213506e 12839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12840 (eval $ac_link) 2>&5
12841 ac_status=$?
5213506e
RW
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12844 (./conftest; exit; ) >&5 2>/dev/null
12845 lt_status=$?
12846 case x$lt_status in
12847 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12848 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12849 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12850 esac
12851 else :
12852 # compilation failed
12853 lt_cv_dlopen_self=no
12854 fi
12855fi
12856rm -fr conftest*
12857
12858
12859fi
5213506e
RW
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12861$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12862
12863 if test "x$lt_cv_dlopen_self" = xyes; then
12864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12866$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12867if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 12868 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12869else
12870 if test "$cross_compiling" = yes; then :
12871 lt_cv_dlopen_self_static=cross
12872else
12873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12874 lt_status=$lt_dlunknown
12875 cat > conftest.$ac_ext <<_LT_EOF
133d0d42 12876#line 12876 "configure"
1cf3d07d
SE
12877#include "confdefs.h"
12878
12879#if HAVE_DLFCN_H
12880#include <dlfcn.h>
12881#endif
12882
12883#include <stdio.h>
12884
12885#ifdef RTLD_GLOBAL
12886# define LT_DLGLOBAL RTLD_GLOBAL
12887#else
12888# ifdef DL_GLOBAL
12889# define LT_DLGLOBAL DL_GLOBAL
12890# else
12891# define LT_DLGLOBAL 0
12892# endif
12893#endif
12894
12895/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12896 find out it does not work in some platform. */
12897#ifndef LT_DLLAZY_OR_NOW
12898# ifdef RTLD_LAZY
12899# define LT_DLLAZY_OR_NOW RTLD_LAZY
12900# else
12901# ifdef DL_LAZY
12902# define LT_DLLAZY_OR_NOW DL_LAZY
12903# else
12904# ifdef RTLD_NOW
12905# define LT_DLLAZY_OR_NOW RTLD_NOW
12906# else
12907# ifdef DL_NOW
12908# define LT_DLLAZY_OR_NOW DL_NOW
12909# else
12910# define LT_DLLAZY_OR_NOW 0
12911# endif
12912# endif
12913# endif
12914# endif
12915#endif
12916
43e02a8a
RW
12917/* When -fvisbility=hidden is used, assume the code has been annotated
12918 correspondingly for the symbols needed. */
12919#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12920void fnord () __attribute__((visibility("default")));
12921#endif
12922
12923void fnord () { int i=42; }
1cf3d07d
SE
12924int main ()
12925{
12926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12927 int status = $lt_dlunknown;
12928
12929 if (self)
12930 {
12931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12932 else
12933 {
12934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12935 else puts (dlerror ());
12936 }
1cf3d07d
SE
12937 /* dlclose (self); */
12938 }
12939 else
12940 puts (dlerror ());
12941
d58dead8 12942 return status;
1cf3d07d
SE
12943}
12944_LT_EOF
5213506e 12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12946 (eval $ac_link) 2>&5
12947 ac_status=$?
5213506e
RW
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12950 (./conftest; exit; ) >&5 2>/dev/null
12951 lt_status=$?
12952 case x$lt_status in
12953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12955 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12956 esac
12957 else :
12958 # compilation failed
12959 lt_cv_dlopen_self_static=no
12960 fi
12961fi
12962rm -fr conftest*
12963
12964
12965fi
5213506e
RW
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12967$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12968 fi
12969
12970 CPPFLAGS="$save_CPPFLAGS"
12971 LDFLAGS="$save_LDFLAGS"
12972 LIBS="$save_LIBS"
12973 ;;
12974 esac
12975
12976 case $lt_cv_dlopen_self in
12977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12978 *) enable_dlopen_self=unknown ;;
12979 esac
12980
12981 case $lt_cv_dlopen_self_static in
12982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12983 *) enable_dlopen_self_static=unknown ;;
12984 esac
12985fi
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003striplib=
13004old_striplib=
5213506e
RW
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13006$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
13007if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13008 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13009 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011$as_echo "yes" >&6; }
1cf3d07d
SE
13012else
13013# FIXME - insert some real tests, host_os isn't really good enough
13014 case $host_os in
13015 darwin*)
13016 if test -n "$STRIP" ; then
13017 striplib="$STRIP -x"
13018 old_striplib="$STRIP -S"
5213506e
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13020$as_echo "yes" >&6; }
1cf3d07d 13021 else
5213506e
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
1cf3d07d
SE
13024 fi
13025 ;;
13026 *)
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
1cf3d07d
SE
13029 ;;
13030 esac
13031fi
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
43e02a8a
RW
13044 # Report which library types will actually be built
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13046$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13048$as_echo "$can_build_shared" >&6; }
1cf3d07d 13049
43e02a8a
RW
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13051$as_echo_n "checking whether to build shared libraries... " >&6; }
13052 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 13053
43e02a8a
RW
13054 # On AIX, shared libraries and static libraries use the same namespace, and
13055 # are all built from PIC.
13056 case $host_os in
13057 aix3*)
13058 test "$enable_shared" = yes && enable_static=no
13059 if test -n "$RANLIB"; then
13060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13061 postinstall_cmds='$RANLIB $lib'
13062 fi
13063 ;;
1cf3d07d 13064
43e02a8a
RW
13065 aix[4-9]*)
13066 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13067 test "$enable_shared" = yes && enable_static=no
13068 fi
13069 ;;
13070 esac
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13072$as_echo "$enable_shared" >&6; }
1cf3d07d 13073
43e02a8a
RW
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13075$as_echo_n "checking whether to build static libraries... " >&6; }
13076 # Make sure either enable_shared or enable_static is yes.
13077 test "$enable_shared" = yes || enable_static=yes
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13079$as_echo "$enable_static" >&6; }
1cf3d07d 13080
1cf3d07d 13081
1cf3d07d 13082
1cf3d07d
SE
13083
13084fi
1cf3d07d
SE
13085ac_ext=c
13086ac_cpp='$CPP $CPPFLAGS'
13087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090
43e02a8a
RW
13091CC="$lt_save_CC"
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105 ac_config_commands="$ac_config_commands libtool"
13106
13107
13108
13109
13110# Only expand once:
13111
13112
9b025925
IS
13113LIBM=
13114case $host in
13115*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13116 # These system don't have libm, or don't need it
13117 ;;
13118*-ncr-sysv4.3*)
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13120$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13121if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123else
13124 ac_check_lib_save_LIBS=$LIBS
13125LIBS="-lmw $LIBS"
13126if test x$gcc_no_link = xyes; then
13127 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13128fi
13129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130/* end confdefs.h. */
13131
13132/* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13135#ifdef __cplusplus
13136extern "C"
13137#endif
13138char _mwvalidcheckl ();
13139int
13140main ()
13141{
13142return _mwvalidcheckl ();
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148 ac_cv_lib_mw__mwvalidcheckl=yes
13149else
13150 ac_cv_lib_mw__mwvalidcheckl=no
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154LIBS=$ac_check_lib_save_LIBS
13155fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13157$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13158if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13159 LIBM="-lmw"
13160fi
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13163$as_echo_n "checking for cos in -lm... " >&6; }
13164if ${ac_cv_lib_m_cos+:} false; then :
13165 $as_echo_n "(cached) " >&6
13166else
13167 ac_check_lib_save_LIBS=$LIBS
13168LIBS="-lm $LIBS"
13169if test x$gcc_no_link = xyes; then
13170 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13171fi
13172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173/* end confdefs.h. */
13174
13175/* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13178#ifdef __cplusplus
13179extern "C"
13180#endif
13181char cos ();
13182int
13183main ()
13184{
13185return cos ();
13186 ;
13187 return 0;
13188}
13189_ACEOF
13190if ac_fn_c_try_link "$LINENO"; then :
13191 ac_cv_lib_m_cos=yes
13192else
13193 ac_cv_lib_m_cos=no
13194fi
13195rm -f core conftest.err conftest.$ac_objext \
13196 conftest$ac_exeext conftest.$ac_ext
13197LIBS=$ac_check_lib_save_LIBS
13198fi
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13200$as_echo "$ac_cv_lib_m_cos" >&6; }
13201if test "x$ac_cv_lib_m_cos" = xyes; then :
13202 LIBM="$LIBM -lm"
13203fi
13204
13205 ;;
13206*)
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13208$as_echo_n "checking for cos in -lm... " >&6; }
13209if ${ac_cv_lib_m_cos+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211else
13212 ac_check_lib_save_LIBS=$LIBS
13213LIBS="-lm $LIBS"
13214if test x$gcc_no_link = xyes; then
13215 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13216fi
13217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h. */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char cos ();
13227int
13228main ()
13229{
13230return cos ();
13231 ;
13232 return 0;
13233}
13234_ACEOF
13235if ac_fn_c_try_link "$LINENO"; then :
13236 ac_cv_lib_m_cos=yes
13237else
13238 ac_cv_lib_m_cos=no
13239fi
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242LIBS=$ac_check_lib_save_LIBS
13243fi
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13245$as_echo "$ac_cv_lib_m_cos" >&6; }
13246if test "x$ac_cv_lib_m_cos" = xyes; then :
13247 LIBM="-lm"
13248fi
13249
13250 ;;
13251esac
13252
13253
43e02a8a
RW
13254
13255
7de6ba7a
DK
13256
13257case $host in
13258 *-cygwin* | *-mingw*)
13259 # 'host' will be top-level target in the case of a target lib,
13260 # we must compare to with_cross_host to decide if this is a native
13261 # or cross-compiler and select where to install dlls appropriately.
13262 if test -n "$with_cross_host" &&
13263 test x"$with_cross_host" != x"no"; then
13264 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13265 else
13266 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13267 fi
13268 ;;
13269 *)
13270 lt_host_flags=
13271 ;;
13272esac
13273
13274
13275
13276
13277
43e02a8a 13278#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 13279
43e02a8a
RW
13280# We need gfortran to compile parts of the library
13281#AC_PROG_FC(gfortran)
13282FC="$GFORTRAN"
5213506e
RW
13283ac_ext=${ac_fc_srcext-f}
13284ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13285ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13286ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13287if test -n "$ac_tool_prefix"; then
43e02a8a 13288 for ac_prog in gfortran
1cf3d07d
SE
13289 do
13290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13294if ${ac_cv_prog_FC+:} false; then :
5213506e 13295 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13296else
13297 if test -n "$FC"; then
13298 ac_cv_prog_FC="$FC" # Let the user override the test.
13299else
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
5213506e 13305 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13307 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13309 break 2
13310 fi
13311done
5213506e
RW
13312 done
13313IFS=$as_save_IFS
1cf3d07d
SE
13314
13315fi
13316fi
13317FC=$ac_cv_prog_FC
13318if test -n "$FC"; then
5213506e
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13320$as_echo "$FC" >&6; }
1cf3d07d 13321else
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
1cf3d07d
SE
13324fi
13325
5213506e 13326
1cf3d07d
SE
13327 test -n "$FC" && break
13328 done
13329fi
13330if test -z "$FC"; then
13331 ac_ct_FC=$FC
43e02a8a 13332 for ac_prog in gfortran
1cf3d07d
SE
13333do
13334 # Extract the first word of "$ac_prog", so it can be a program name with args.
13335set dummy $ac_prog; ac_word=$2
5213506e
RW
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13338if ${ac_cv_prog_ac_ct_FC+:} false; then :
5213506e 13339 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13340else
13341 if test -n "$ac_ct_FC"; then
13342 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13343else
13344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345for as_dir in $PATH
13346do
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
5213506e 13349 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13351 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13353 break 2
13354 fi
13355done
5213506e
RW
13356 done
13357IFS=$as_save_IFS
1cf3d07d
SE
13358
13359fi
13360fi
13361ac_ct_FC=$ac_cv_prog_ac_ct_FC
13362if test -n "$ac_ct_FC"; then
5213506e
RW
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13364$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 13365else
5213506e
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367$as_echo "no" >&6; }
1cf3d07d
SE
13368fi
13369
5213506e 13370
1cf3d07d 13371 test -n "$ac_ct_FC" && break
38d24731
RW
13372done
13373
5213506e
RW
13374 if test "x$ac_ct_FC" = x; then
13375 FC=""
13376 else
13377 case $cross_compiling:$ac_tool_warned in
13378yes:)
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13381ac_tool_warned=yes ;;
13382esac
13383 FC=$ac_ct_FC
13384 fi
1cf3d07d
SE
13385fi
13386
13387
13388# Provide some information about the compiler.
5213506e
RW
13389$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13390set X $ac_compile
13391ac_compiler=$2
13392for ac_option in --version -v -V -qversion; do
13393 { { ac_try="$ac_compiler $ac_option >&5"
13394case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13399$as_echo "$ac_try_echo"; } >&5
13400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 13401 ac_status=$?
5213506e
RW
13402 if test -s conftest.err; then
13403 sed '10a\
13404... rest of stderr output deleted ...
13405 10q' conftest.err >conftest.er1
13406 cat conftest.er1 >&5
5213506e 13407 fi
22e05272 13408 rm -f conftest.er1 conftest.err
5213506e
RW
13409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13410 test $ac_status = 0; }
13411done
1cf3d07d
SE
13412rm -f a.out
13413
13414# If we don't use `.F' as extension, the preprocessor is not run on the
13415# input file. (Note that this only needs to work for GNU compilers.)
13416ac_save_ext=$ac_ext
13417ac_ext=F
5213506e
RW
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13419$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
22e05272 13420if ${ac_cv_fc_compiler_gnu+:} false; then :
5213506e 13421 $as_echo_n "(cached) " >&6
1cf3d07d 13422else
5213506e 13423 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13424 program main
13425#ifndef __GNUC__
13426 choke me
13427#endif
13428
13429 end
13430_ACEOF
5213506e 13431if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13432 ac_compiler_gnu=yes
13433else
5213506e 13434 ac_compiler_gnu=no
1cf3d07d 13435fi
5213506e 13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13437ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13438
13439fi
5213506e
RW
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13441$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 13442ac_ext=$ac_save_ext
5213506e
RW
13443ac_test_FCFLAGS=${FCFLAGS+set}
13444ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 13445FCFLAGS=
5213506e
RW
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13447$as_echo_n "checking whether $FC accepts -g... " >&6; }
22e05272 13448if ${ac_cv_prog_fc_g+:} false; then :
5213506e 13449 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13450else
13451 FCFLAGS=-g
5213506e 13452cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13453 program main
13454
13455 end
13456_ACEOF
5213506e 13457if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13458 ac_cv_prog_fc_g=yes
13459else
5213506e 13460 ac_cv_prog_fc_g=no
1cf3d07d 13461fi
5213506e 13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13463
13464fi
5213506e
RW
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13466$as_echo "$ac_cv_prog_fc_g" >&6; }
13467if test "$ac_test_FCFLAGS" = set; then
13468 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
13469elif test $ac_cv_prog_fc_g = yes; then
13470 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13471 FCFLAGS="-g -O2"
13472 else
13473 FCFLAGS="-g"
13474 fi
13475else
13476 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13477 FCFLAGS="-O2"
13478 else
13479 FCFLAGS=
13480 fi
13481fi
13482
22e05272
JM
13483if test $ac_compiler_gnu = yes; then
13484 GFC=yes
13485else
13486 GFC=
13487fi
1cf3d07d
SE
13488ac_ext=c
13489ac_cpp='$CPP $CPPFLAGS'
13490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492ac_compiler_gnu=$ac_cv_c_compiler_gnu
13493
5213506e
RW
13494 ac_ext=${ac_fc_srcext-f}
13495ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13496ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13497ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13498
13499
43e02a8a
RW
13500if test -z "$FC" || test "X$FC" = "Xno"; then
13501 _lt_disable_FC=yes
13502fi
13503
1cf3d07d
SE
13504archive_cmds_need_lc_FC=no
13505allow_undefined_flag_FC=
13506always_export_symbols_FC=no
13507archive_expsym_cmds_FC=
13508export_dynamic_flag_spec_FC=
13509hardcode_direct_FC=no
13510hardcode_direct_absolute_FC=no
13511hardcode_libdir_flag_spec_FC=
13512hardcode_libdir_flag_spec_ld_FC=
13513hardcode_libdir_separator_FC=
13514hardcode_minus_L_FC=no
13515hardcode_automatic_FC=no
13516inherit_rpath_FC=no
13517module_cmds_FC=
13518module_expsym_cmds_FC=
13519link_all_deplibs_FC=unknown
13520old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13521reload_flag_FC=$reload_flag
13522reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13523no_undefined_flag_FC=
13524whole_archive_flag_spec_FC=
13525enable_shared_with_static_runtimes_FC=no
13526
13527# Source file extension for fc test sources.
13528ac_ext=${ac_fc_srcext-f}
13529
13530# Object file extension for compiled fc test sources.
13531objext=o
13532objext_FC=$objext
13533
13534# No sense in running all these tests if we already determined that
13535# the FC compiler isn't working. Some variables (like enable_shared)
13536# are currently assumed to apply to all compilers on this platform,
13537# and will be corrupted by setting them based on a non-working compiler.
13538if test "$_lt_disable_FC" != yes; then
13539 # Code to be used in simple compile tests
13540 lt_simple_compile_test_code="\
13541 subroutine t
13542 return
13543 end
13544"
13545
13546 # Code to be used in simple link tests
13547 lt_simple_link_test_code="\
13548 program t
13549 end
13550"
13551
13552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13553
13554
13555
13556
13557
13558
13559# If no C compiler was specified, use CC.
13560LTCC=${LTCC-"$CC"}
13561
13562# If no C compiler flags were specified, use CFLAGS.
13563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13564
13565# Allow CC to be a program name with arguments.
13566compiler=$CC
13567
13568
13569 # save warnings/boilerplate of simple test code
13570 ac_outfile=conftest.$ac_objext
13571echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13573_lt_compiler_boilerplate=`cat conftest.err`
13574$RM conftest*
13575
13576 ac_outfile=conftest.$ac_objext
13577echo "$lt_simple_link_test_code" >conftest.$ac_ext
13578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13579_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13580$RM -r conftest*
1cf3d07d
SE
13581
13582
13583 # Allow CC to be a program name with arguments.
13584 lt_save_CC="$CC"
d58dead8 13585 lt_save_GCC=$GCC
1cf3d07d
SE
13586 CC=${FC-"f95"}
13587 compiler=$CC
d58dead8
PG
13588 GCC=$ac_cv_fc_compiler_gnu
13589
1cf3d07d
SE
13590 compiler_FC=$CC
13591 for cc_temp in $compiler""; do
13592 case $cc_temp in
13593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595 \-*) ;;
13596 *) break;;
13597 esac
13598done
43e02a8a 13599cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13600
13601
13602 if test -n "$compiler"; then
5213506e
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13604$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13606$as_echo "$can_build_shared" >&6; }
1cf3d07d 13607
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13609$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13610 test "$can_build_shared" = "no" && enable_shared=no
13611
13612 # On AIX, shared libraries and static libraries use the same namespace, and
13613 # are all built from PIC.
13614 case $host_os in
13615 aix3*)
13616 test "$enable_shared" = yes && enable_static=no
13617 if test -n "$RANLIB"; then
13618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13619 postinstall_cmds='$RANLIB $lib'
13620 fi
13621 ;;
4f6bebc3 13622 aix[4-9]*)
1cf3d07d
SE
13623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13624 test "$enable_shared" = yes && enable_static=no
13625 fi
13626 ;;
13627 esac
5213506e
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13629$as_echo "$enable_shared" >&6; }
1cf3d07d 13630
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13632$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13633 # Make sure either enable_shared or enable_static is yes.
13634 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13636$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13637
13638 GCC_FC="$ac_cv_fc_compiler_gnu"
13639 LD_FC="$LD"
13640
13641 ## CAVEAT EMPTOR:
13642 ## There is no encapsulation within the following macros, do not change
13643 ## the running order or otherwise move them around unless you know exactly
13644 ## what you are doing...
13645 # Dependencies to place before and after the object being linked:
13646predep_objects_FC=
13647postdep_objects_FC=
13648predeps_FC=
13649postdeps_FC=
13650compiler_lib_search_path_FC=
13651
13652cat > conftest.$ac_ext <<_LT_EOF
13653 subroutine foo
13654 implicit none
13655 integer a
13656 a=0
13657 return
13658 end
13659_LT_EOF
13660
5213506e 13661if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13662 (eval $ac_compile) 2>&5
13663 ac_status=$?
5213506e
RW
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; }; then
1cf3d07d
SE
13666 # Parse the compiler output and extract the necessary
13667 # objects, libraries and library flags.
13668
13669 # Sentinel used to keep track of whether or not we are before
13670 # the conftest object file.
13671 pre_test_object_deps_done=no
13672
d58dead8 13673 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13674 case $p in
13675
13676 -L* | -R* | -l*)
13677 # Some compilers place space between "-{L,R}" and the path.
13678 # Remove the space.
13679 if test $p = "-L" ||
13680 test $p = "-R"; then
13681 prev=$p
13682 continue
13683 else
13684 prev=
13685 fi
13686
13687 if test "$pre_test_object_deps_done" = no; then
13688 case $p in
13689 -L* | -R*)
13690 # Internal compiler library paths should come after those
13691 # provided the user. The postdeps already come after the
13692 # user supplied libs so there is no need to process them.
13693 if test -z "$compiler_lib_search_path_FC"; then
13694 compiler_lib_search_path_FC="${prev}${p}"
13695 else
13696 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13697 fi
13698 ;;
13699 # The "-l" case would never come before the object being
13700 # linked, so don't bother handling this case.
13701 esac
13702 else
13703 if test -z "$postdeps_FC"; then
13704 postdeps_FC="${prev}${p}"
13705 else
13706 postdeps_FC="${postdeps_FC} ${prev}${p}"
13707 fi
13708 fi
13709 ;;
13710
13711 *.$objext)
13712 # This assumes that the test object file only shows up
13713 # once in the compiler output.
13714 if test "$p" = "conftest.$objext"; then
13715 pre_test_object_deps_done=yes
13716 continue
13717 fi
13718
13719 if test "$pre_test_object_deps_done" = no; then
13720 if test -z "$predep_objects_FC"; then
13721 predep_objects_FC="$p"
13722 else
13723 predep_objects_FC="$predep_objects_FC $p"
13724 fi
13725 else
13726 if test -z "$postdep_objects_FC"; then
13727 postdep_objects_FC="$p"
13728 else
13729 postdep_objects_FC="$postdep_objects_FC $p"
13730 fi
13731 fi
13732 ;;
13733
13734 *) ;; # Ignore the rest.
13735
13736 esac
13737 done
13738
13739 # Clean up.
13740 rm -f a.out a.exe
13741else
13742 echo "libtool.m4: error: problem compiling FC test program"
13743fi
13744
13745$RM -f confest.$objext
13746
13747# PORTME: override above test on systems where it is broken
13748
13749
13750case " $postdeps_FC " in
13751*" -lc "*) archive_cmds_need_lc_FC=no ;;
13752esac
d58dead8
PG
13753 compiler_lib_search_dirs_FC=
13754if test -n "${compiler_lib_search_path_FC}"; then
13755 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13756fi
13757
13758
13759
13760
13761
1cf3d07d
SE
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788 lt_prog_compiler_wl_FC=
13789lt_prog_compiler_pic_FC=
13790lt_prog_compiler_static_FC=
13791
5213506e
RW
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13793$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13794
13795 if test "$GCC" = yes; then
13796 lt_prog_compiler_wl_FC='-Wl,'
13797 lt_prog_compiler_static_FC='-static'
13798
13799 case $host_os in
13800 aix*)
13801 # All AIX code is PIC.
13802 if test "$host_cpu" = ia64; then
13803 # AIX 5 now supports IA64 processor
13804 lt_prog_compiler_static_FC='-Bstatic'
13805 fi
bad8a4a7 13806 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13807 ;;
13808
13809 amigaos*)
d58dead8
PG
13810 case $host_cpu in
13811 powerpc)
13812 # see comment about AmigaOS4 .so support
13813 lt_prog_compiler_pic_FC='-fPIC'
13814 ;;
13815 m68k)
13816 # FIXME: we need at least 68020 code to build shared libraries, but
13817 # adding the `-m68020' flag to GCC prevents building anything better,
13818 # like `-m68040'.
13819 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13820 ;;
13821 esac
1cf3d07d
SE
13822 ;;
13823
13824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13825 # PIC is the default for these OSes.
13826 ;;
13827
d58dead8 13828 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13829 # This hack is so that the source file can tell whether it is being
13830 # built for inclusion in a dll (and should export symbols for example).
13831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13832 # (--disable-auto-import) libraries
13833 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13834 ;;
13835
13836 darwin* | rhapsody*)
13837 # PIC is the default on this platform
13838 # Common symbols not allowed in MH_DYLIB files
13839 lt_prog_compiler_pic_FC='-fno-common'
13840 ;;
13841
43e02a8a
RW
13842 haiku*)
13843 # PIC is the default for Haiku.
13844 # The "-static" flag exists, but is broken.
13845 lt_prog_compiler_static_FC=
13846 ;;
13847
1cf3d07d 13848 hpux*)
d58dead8
PG
13849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13851 # sets the default TLS model and affects inlining.
1cf3d07d 13852 case $host_cpu in
d58dead8 13853 hppa*64*)
1cf3d07d
SE
13854 # +Z the default
13855 ;;
13856 *)
13857 lt_prog_compiler_pic_FC='-fPIC'
13858 ;;
13859 esac
13860 ;;
13861
13862 interix[3-9]*)
13863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13864 # Instead, we relocate shared libraries at runtime.
13865 ;;
13866
13867 msdosdjgpp*)
13868 # Just because we use GCC doesn't mean we suddenly get shared libraries
13869 # on systems that don't support them.
13870 lt_prog_compiler_can_build_shared_FC=no
13871 enable_shared=no
13872 ;;
13873
13874 *nto* | *qnx*)
13875 # QNX uses GNU C++, but need to define -shared option too, otherwise
13876 # it will coredump.
13877 lt_prog_compiler_pic_FC='-fPIC -shared'
13878 ;;
13879
13880 sysv4*MP*)
13881 if test -d /usr/nec; then
13882 lt_prog_compiler_pic_FC=-Kconform_pic
13883 fi
13884 ;;
13885
13886 *)
13887 lt_prog_compiler_pic_FC='-fPIC'
13888 ;;
13889 esac
43e02a8a
RW
13890
13891 case $cc_basename in
13892 nvcc*) # Cuda Compiler Driver 2.2
13893 lt_prog_compiler_wl_FC='-Xlinker '
13894 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13895 ;;
13896 esac
1cf3d07d
SE
13897 else
13898 # PORTME Check for flag to pass linker flags through the system compiler.
13899 case $host_os in
13900 aix*)
13901 lt_prog_compiler_wl_FC='-Wl,'
13902 if test "$host_cpu" = ia64; then
13903 # AIX 5 now supports IA64 processor
13904 lt_prog_compiler_static_FC='-Bstatic'
13905 else
13906 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13907 fi
13908 ;;
1cf3d07d 13909
d58dead8 13910 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13911 # This hack is so that the source file can tell whether it is being
13912 # built for inclusion in a dll (and should export symbols for example).
13913 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13914 ;;
13915
13916 hpux9* | hpux10* | hpux11*)
13917 lt_prog_compiler_wl_FC='-Wl,'
13918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13919 # not for PA HP-UX.
13920 case $host_cpu in
13921 hppa*64*|ia64*)
13922 # +Z the default
13923 ;;
13924 *)
13925 lt_prog_compiler_pic_FC='+Z'
13926 ;;
13927 esac
13928 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13929 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13930 ;;
13931
13932 irix5* | irix6* | nonstopux*)
13933 lt_prog_compiler_wl_FC='-Wl,'
13934 # PIC (with -KPIC) is the default.
13935 lt_prog_compiler_static_FC='-non_shared'
13936 ;;
13937
7a9d3fe8 13938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13939 case $cc_basename in
d58dead8
PG
13940 # old Intel for x86_64 which still supported -KPIC.
13941 ecc*)
1cf3d07d
SE
13942 lt_prog_compiler_wl_FC='-Wl,'
13943 lt_prog_compiler_pic_FC='-KPIC'
13944 lt_prog_compiler_static_FC='-static'
13945 ;;
d58dead8
PG
13946 # icc used to be incompatible with GCC.
13947 # ICC 10 doesn't accept -KPIC any more.
13948 icc* | ifort*)
13949 lt_prog_compiler_wl_FC='-Wl,'
13950 lt_prog_compiler_pic_FC='-fPIC'
13951 lt_prog_compiler_static_FC='-static'
13952 ;;
13953 # Lahey Fortran 8.1.
13954 lf95*)
13955 lt_prog_compiler_wl_FC='-Wl,'
13956 lt_prog_compiler_pic_FC='--shared'
13957 lt_prog_compiler_static_FC='--static'
13958 ;;
43e02a8a 13959 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13960 # Portland Group compilers (*not* the Pentium gcc compiler,
13961 # which looks to be a dead project)
13962 lt_prog_compiler_wl_FC='-Wl,'
13963 lt_prog_compiler_pic_FC='-fpic'
13964 lt_prog_compiler_static_FC='-Bstatic'
13965 ;;
13966 ccc*)
13967 lt_prog_compiler_wl_FC='-Wl,'
13968 # All Alpha code is PIC.
13969 lt_prog_compiler_static_FC='-non_shared'
13970 ;;
43e02a8a
RW
13971 xl* | bgxl* | bgf* | mpixl*)
13972 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13973 lt_prog_compiler_wl_FC='-Wl,'
13974 lt_prog_compiler_pic_FC='-qpic'
13975 lt_prog_compiler_static_FC='-qstaticlink'
13976 ;;
1cf3d07d
SE
13977 *)
13978 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13979 *Sun\ F* | *Sun*Fortran*)
13980 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13981 lt_prog_compiler_pic_FC='-KPIC'
13982 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13983 lt_prog_compiler_wl_FC=''
1cf3d07d 13984 ;;
43e02a8a
RW
13985 *Sun\ C*)
13986 # Sun C 5.9
1cf3d07d
SE
13987 lt_prog_compiler_pic_FC='-KPIC'
13988 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13989 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13990 ;;
13991 esac
13992 ;;
13993 esac
13994 ;;
13995
13996 newsos6)
13997 lt_prog_compiler_pic_FC='-KPIC'
13998 lt_prog_compiler_static_FC='-Bstatic'
13999 ;;
14000
14001 *nto* | *qnx*)
14002 # QNX uses GNU C++, but need to define -shared option too, otherwise
14003 # it will coredump.
14004 lt_prog_compiler_pic_FC='-fPIC -shared'
14005 ;;
14006
14007 osf3* | osf4* | osf5*)
14008 lt_prog_compiler_wl_FC='-Wl,'
14009 # All OSF/1 code is PIC.
14010 lt_prog_compiler_static_FC='-non_shared'
14011 ;;
14012
14013 rdos*)
14014 lt_prog_compiler_static_FC='-non_shared'
14015 ;;
14016
14017 solaris*)
14018 lt_prog_compiler_pic_FC='-KPIC'
14019 lt_prog_compiler_static_FC='-Bstatic'
14020 case $cc_basename in
14021 f77* | f90* | f95*)
14022 lt_prog_compiler_wl_FC='-Qoption ld ';;
14023 *)
14024 lt_prog_compiler_wl_FC='-Wl,';;
14025 esac
14026 ;;
14027
14028 sunos4*)
14029 lt_prog_compiler_wl_FC='-Qoption ld '
14030 lt_prog_compiler_pic_FC='-PIC'
14031 lt_prog_compiler_static_FC='-Bstatic'
14032 ;;
14033
14034 sysv4 | sysv4.2uw2* | sysv4.3*)
14035 lt_prog_compiler_wl_FC='-Wl,'
14036 lt_prog_compiler_pic_FC='-KPIC'
14037 lt_prog_compiler_static_FC='-Bstatic'
14038 ;;
14039
14040 sysv4*MP*)
14041 if test -d /usr/nec ;then
14042 lt_prog_compiler_pic_FC='-Kconform_pic'
14043 lt_prog_compiler_static_FC='-Bstatic'
14044 fi
14045 ;;
14046
14047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14048 lt_prog_compiler_wl_FC='-Wl,'
14049 lt_prog_compiler_pic_FC='-KPIC'
14050 lt_prog_compiler_static_FC='-Bstatic'
14051 ;;
14052
14053 unicos*)
14054 lt_prog_compiler_wl_FC='-Wl,'
14055 lt_prog_compiler_can_build_shared_FC=no
14056 ;;
14057
14058 uts4*)
14059 lt_prog_compiler_pic_FC='-pic'
14060 lt_prog_compiler_static_FC='-Bstatic'
14061 ;;
14062
14063 *)
14064 lt_prog_compiler_can_build_shared_FC=no
14065 ;;
14066 esac
14067 fi
14068
14069case $host_os in
14070 # For platforms which do not support PIC, -DPIC is meaningless:
14071 *djgpp*)
14072 lt_prog_compiler_pic_FC=
14073 ;;
14074 *)
14075 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14076 ;;
14077esac
5213506e
RW
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
14079$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
14080
14081
14082
14083#
14084# Check to make sure the PIC flag actually works.
14085#
14086if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14088$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22e05272 14089if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
5213506e 14090 $as_echo_n "(cached) " >&6
1cf3d07d 14091else
d58dead8 14092 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
14093 ac_outfile=conftest.$ac_objext
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095 lt_compiler_flag="$lt_prog_compiler_pic_FC"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 # The option is referenced via a variable to avoid confusing sed.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14106 (eval "$lt_compile" 2>conftest.err)
14107 ac_status=$?
14108 cat conftest.err >&5
43e02a8a 14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14110 if (exit $ac_status) && test -s "$ac_outfile"; then
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings other than the usual output.
43e02a8a 14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
14114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14116 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
14117 fi
14118 fi
14119 $RM conftest*
14120
14121fi
5213506e
RW
14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14123$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 14124
d58dead8 14125if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
14126 case $lt_prog_compiler_pic_FC in
14127 "" | " "*) ;;
14128 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14129 esac
14130else
14131 lt_prog_compiler_pic_FC=
14132 lt_prog_compiler_can_build_shared_FC=no
14133fi
14134
14135fi
14136
14137
14138
14139#
14140# Check to make sure the static flag actually works.
14141#
14142wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14144$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14145if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
5213506e 14146 $as_echo_n "(cached) " >&6
1cf3d07d 14147else
d58dead8 14148 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
14149 save_LDFLAGS="$LDFLAGS"
14150 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14153 # The linker can only warn and ignore the option if not recognized
14154 # So say no if there are warnings
14155 if test -s conftest.err; then
14156 # Append any errors to the config.log.
14157 cat conftest.err 1>&5
43e02a8a 14158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
14159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14160 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14161 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14162 fi
14163 else
d58dead8 14164 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14165 fi
14166 fi
d58dead8 14167 $RM -r conftest*
1cf3d07d
SE
14168 LDFLAGS="$save_LDFLAGS"
14169
14170fi
5213506e
RW
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14172$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 14173
d58dead8 14174if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
14175 :
14176else
14177 lt_prog_compiler_static_FC=
14178fi
14179
14180
14181
14182
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14184$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14185if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14186 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14187else
14188 lt_cv_prog_compiler_c_o_FC=no
14189 $RM -r conftest 2>/dev/null
14190 mkdir conftest
14191 cd conftest
14192 mkdir out
14193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14194
14195 lt_compiler_flag="-o out/conftest2.$ac_objext"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 lt_compile=`echo "$ac_compile" | $SED \
14201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14205 (eval "$lt_compile" 2>out/conftest.err)
14206 ac_status=$?
14207 cat out/conftest.err >&5
43e02a8a 14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14210 then
14211 # The compiler can only warn and ignore the option if not recognized
14212 # So say no if there are warnings
43e02a8a 14213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14216 lt_cv_prog_compiler_c_o_FC=yes
14217 fi
14218 fi
14219 chmod u+w . 2>&5
14220 $RM conftest*
14221 # SGI C++ compiler will create directory out/ii_files/ for
14222 # template instantiation
14223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14224 $RM out/* && rmdir out
14225 cd ..
14226 $RM -r conftest
14227 $RM conftest*
14228
14229fi
5213506e
RW
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14231$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14232
14233
14234
5213506e
RW
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14236$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14237if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14238 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14239else
14240 lt_cv_prog_compiler_c_o_FC=no
14241 $RM -r conftest 2>/dev/null
14242 mkdir conftest
14243 cd conftest
14244 mkdir out
14245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14246
14247 lt_compiler_flag="-o out/conftest2.$ac_objext"
14248 # Insert the option either (1) after the last *FLAGS variable, or
14249 # (2) before a word containing "conftest.", or (3) at the end.
14250 # Note that $ac_compile itself does not contain backslashes and begins
14251 # with a dollar sign (not a hyphen), so the echo should work correctly.
14252 lt_compile=`echo "$ac_compile" | $SED \
14253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14255 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14257 (eval "$lt_compile" 2>out/conftest.err)
14258 ac_status=$?
14259 cat out/conftest.err >&5
43e02a8a 14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14262 then
14263 # The compiler can only warn and ignore the option if not recognized
14264 # So say no if there are warnings
43e02a8a 14265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14268 lt_cv_prog_compiler_c_o_FC=yes
14269 fi
14270 fi
14271 chmod u+w . 2>&5
14272 $RM conftest*
14273 # SGI C++ compiler will create directory out/ii_files/ for
14274 # template instantiation
14275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14276 $RM out/* && rmdir out
14277 cd ..
14278 $RM -r conftest
14279 $RM conftest*
14280
14281fi
5213506e
RW
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14283$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14284
14285
14286
14287
14288hard_links="nottested"
14289if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14290 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14292$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14293 hard_links=yes
14294 $RM conftest*
14295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14296 touch conftest.a
14297 ln conftest.a conftest.b 2>&5 || hard_links=no
14298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14300$as_echo "$hard_links" >&6; }
1cf3d07d 14301 if test "$hard_links" = no; then
5213506e
RW
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14303$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
14304 need_locks=warn
14305 fi
14306else
14307 need_locks=no
14308fi
14309
14310
14311
5213506e
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14313$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14314
14315 runpath_var=
14316 allow_undefined_flag_FC=
14317 always_export_symbols_FC=no
14318 archive_cmds_FC=
14319 archive_expsym_cmds_FC=
14320 compiler_needs_object_FC=no
14321 enable_shared_with_static_runtimes_FC=no
14322 export_dynamic_flag_spec_FC=
14323 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14324 hardcode_automatic_FC=no
14325 hardcode_direct_FC=no
14326 hardcode_direct_absolute_FC=no
14327 hardcode_libdir_flag_spec_FC=
14328 hardcode_libdir_flag_spec_ld_FC=
14329 hardcode_libdir_separator_FC=
14330 hardcode_minus_L_FC=no
14331 hardcode_shlibpath_var_FC=unsupported
14332 inherit_rpath_FC=no
14333 link_all_deplibs_FC=unknown
14334 module_cmds_FC=
14335 module_expsym_cmds_FC=
14336 old_archive_from_new_cmds_FC=
14337 old_archive_from_expsyms_cmds_FC=
14338 thread_safe_flag_spec_FC=
14339 whole_archive_flag_spec_FC=
14340 # include_expsyms should be a list of space-separated symbols to be *always*
14341 # included in the symbol list
14342 include_expsyms_FC=
14343 # exclude_expsyms can be an extended regexp of symbols to exclude
14344 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14345 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14346 # as well as any symbol that contains `d'.
d58dead8 14347 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
14348 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14349 # platforms (ab)use it in PIC code, but their linkers get confused if
14350 # the symbol is explicitly referenced. Since portable code cannot
14351 # rely on this symbol name, it's probably fine to never include it in
14352 # preloaded symbol tables.
d58dead8 14353 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
14354 extract_expsyms_cmds=
14355
14356 case $host_os in
d58dead8 14357 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14358 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14359 # When not using gcc, we currently assume that we are using
14360 # Microsoft Visual C++.
14361 if test "$GCC" != yes; then
14362 with_gnu_ld=no
14363 fi
14364 ;;
14365 interix*)
14366 # we just hope/assume this is gcc and not c89 (= MSVC++)
14367 with_gnu_ld=yes
14368 ;;
14369 openbsd*)
14370 with_gnu_ld=no
14371 ;;
14372 esac
14373
14374 ld_shlibs_FC=yes
43e02a8a
RW
14375
14376 # On some targets, GNU ld is compatible enough with the native linker
14377 # that we're better off using the native interface for both.
14378 lt_use_gnu_ld_interface=no
1cf3d07d 14379 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
14380 case $host_os in
14381 aix*)
14382 # The AIX port of GNU ld has always aspired to compatibility
14383 # with the native linker. However, as the warning in the GNU ld
14384 # block says, versions before 2.19.5* couldn't really create working
14385 # shared libraries, regardless of the interface used.
14386 case `$LD -v 2>&1` in
14387 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14388 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14389 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14390 *)
14391 lt_use_gnu_ld_interface=yes
14392 ;;
14393 esac
14394 ;;
14395 *)
14396 lt_use_gnu_ld_interface=yes
14397 ;;
14398 esac
14399 fi
14400
14401 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
14402 # If archive_cmds runs LD, not CC, wlarc should be empty
14403 wlarc='${wl}'
14404
14405 # Set some defaults for GNU ld with shared library support. These
14406 # are reset later if shared libraries are not supported. Putting them
14407 # here allows them to be overridden if necessary.
14408 runpath_var=LD_RUN_PATH
14409 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14410 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14411 # ancient GNU ld didn't support --whole-archive et. al.
14412 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14413 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14414 else
14415 whole_archive_flag_spec_FC=
14416 fi
14417 supports_anon_versioning=no
14418 case `$LD -v 2>&1` in
43e02a8a 14419 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
14420 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14421 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14422 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14423 *\ 2.11.*) ;; # other 2.11 versions
14424 *) supports_anon_versioning=yes ;;
14425 esac
14426
14427 # See if GNU ld supports shared libraries.
14428 case $host_os in
4f6bebc3 14429 aix[3-9]*)
1cf3d07d
SE
14430 # On AIX/PPC, the GNU linker is very broken
14431 if test "$host_cpu" != ia64; then
14432 ld_shlibs_FC=no
14433 cat <<_LT_EOF 1>&2
14434
43e02a8a 14435*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
14436*** to be unable to reliably create shared libraries on AIX.
14437*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
14438*** really care for shared libraries, you may want to install binutils
14439*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14440*** You will then need to restart the configuration process.
1cf3d07d
SE
14441
14442_LT_EOF
14443 fi
14444 ;;
14445
14446 amigaos*)
d58dead8
PG
14447 case $host_cpu in
14448 powerpc)
14449 # see comment about AmigaOS4 .so support
14450 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451 archive_expsym_cmds_FC=''
14452 ;;
14453 m68k)
14454 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)'
14455 hardcode_libdir_flag_spec_FC='-L$libdir'
14456 hardcode_minus_L_FC=yes
14457 ;;
14458 esac
1cf3d07d
SE
14459 ;;
14460
14461 beos*)
14462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14463 allow_undefined_flag_FC=unsupported
14464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14465 # support --undefined. This deserves some investigation. FIXME
14466 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14467 else
14468 ld_shlibs_FC=no
14469 fi
14470 ;;
14471
d58dead8 14472 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14473 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14474 # as there is no search path for DLLs.
14475 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 14476 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
14477 allow_undefined_flag_FC=unsupported
14478 always_export_symbols_FC=no
14479 enable_shared_with_static_runtimes_FC=yes
14480 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14481
14482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14483 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14484 # If the export-symbols file already is a .def file (1st line
14485 # is EXPORTS), use it as is; otherwise, prepend...
14486 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14487 cp $export_symbols $output_objdir/$soname.def;
14488 else
14489 echo EXPORTS > $output_objdir/$soname.def;
14490 cat $export_symbols >> $output_objdir/$soname.def;
14491 fi~
14492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14493 else
14494 ld_shlibs_FC=no
14495 fi
14496 ;;
14497
43e02a8a
RW
14498 haiku*)
14499 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500 link_all_deplibs_FC=yes
14501 ;;
14502
1cf3d07d
SE
14503 interix[3-9]*)
14504 hardcode_direct_FC=no
14505 hardcode_shlibpath_var_FC=no
14506 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14507 export_dynamic_flag_spec_FC='${wl}-E'
14508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14509 # Instead, shared libraries are loaded at an image base (0x10000000 by
14510 # default) and relocated if they conflict, which is a slow very memory
14511 # consuming and fragmenting process. To avoid this, we pick a random,
14512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14514 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'
14515 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'
14516 ;;
14517
e9085da5 14518 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
14519 tmp_diet=no
14520 if test "$host_os" = linux-dietlibc; then
14521 case $cc_basename in
14522 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14523 esac
14524 fi
14525 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14526 && test "$tmp_diet" = no
14527 then
a699d672 14528 tmp_addflag=' $pic_flag'
d58dead8 14529 tmp_sharedflag='-shared'
1cf3d07d
SE
14530 case $cc_basename,$host_cpu in
14531 pgcc*) # Portland Group C compiler
43e02a8a 14532 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'
1cf3d07d
SE
14533 tmp_addflag=' $pic_flag'
14534 ;;
43e02a8a
RW
14535 pgf77* | pgf90* | pgf95* | pgfortran*)
14536 # Portland Group f77 and f90 compilers
14537 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'
1cf3d07d
SE
14538 tmp_addflag=' $pic_flag -Mnomain' ;;
14539 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14540 tmp_addflag=' -i_dynamic' ;;
14541 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14542 tmp_addflag=' -i_dynamic -nofor_main' ;;
14543 ifc* | ifort*) # Intel Fortran compiler
14544 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14545 lf95*) # Lahey Fortran 8.1
14546 whole_archive_flag_spec_FC=
14547 tmp_sharedflag='--shared' ;;
43e02a8a 14548 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14549 tmp_sharedflag='-qmkshrobj'
14550 tmp_addflag= ;;
43e02a8a
RW
14551 nvcc*) # Cuda Compiler Driver 2.2
14552 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'
14553 compiler_needs_object_FC=yes
14554 ;;
1cf3d07d
SE
14555 esac
14556 case `$CC -V 2>&1 | sed 5q` in
14557 *Sun\ C*) # Sun C 5.9
43e02a8a 14558 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'
1cf3d07d
SE
14559 compiler_needs_object_FC=yes
14560 tmp_sharedflag='-G' ;;
14561 *Sun\ F*) # Sun Fortran 8.3
14562 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14563 esac
14564 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565
14566 if test "x$supports_anon_versioning" = xyes; then
14567 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14569 echo "local: *; };" >> $output_objdir/$libname.ver~
14570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14571 fi
d58dead8
PG
14572
14573 case $cc_basename in
43e02a8a 14574 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14575 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14576 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14577 hardcode_libdir_flag_spec_FC=
14578 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14579 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14580 if test "x$supports_anon_versioning" = xyes; then
14581 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14583 echo "local: *; };" >> $output_objdir/$libname.ver~
14584 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14585 fi
14586 ;;
14587 esac
1cf3d07d
SE
14588 else
14589 ld_shlibs_FC=no
14590 fi
14591 ;;
14592
14593 netbsd*)
14594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14595 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14596 wlarc=
14597 else
14598 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14599 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14600 fi
14601 ;;
14602
14603 solaris*)
14604 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14605 ld_shlibs_FC=no
14606 cat <<_LT_EOF 1>&2
14607
14608*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14609*** create shared libraries on Solaris systems. Therefore, libtool
14610*** is disabling shared libraries support. We urge you to upgrade GNU
14611*** binutils to release 2.9.1 or newer. Another option is to modify
14612*** your PATH or compiler configuration so that the native linker is
14613*** used, and then restart.
14614
14615_LT_EOF
14616 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14617 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14619 else
14620 ld_shlibs_FC=no
14621 fi
14622 ;;
14623
14624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14625 case `$LD -v 2>&1` in
14626 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14627 ld_shlibs_FC=no
14628 cat <<_LT_EOF 1>&2
14629
14630*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14631*** reliably create shared libraries on SCO systems. Therefore, libtool
14632*** is disabling shared libraries support. We urge you to upgrade GNU
14633*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14634*** your PATH or compiler configuration so that the native linker is
14635*** used, and then restart.
14636
14637_LT_EOF
14638 ;;
14639 *)
14640 # For security reasons, it is highly recommended that you always
14641 # use absolute paths for naming shared libraries, and exclude the
14642 # DT_RUNPATH tag from executables and libraries. But doing so
14643 # requires that you compile everything twice, which is a pain.
14644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14645 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14646 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14647 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14648 else
14649 ld_shlibs_FC=no
14650 fi
14651 ;;
14652 esac
14653 ;;
14654
14655 sunos4*)
14656 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14657 wlarc=
14658 hardcode_direct_FC=yes
14659 hardcode_shlibpath_var_FC=no
14660 ;;
14661
14662 *)
14663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14664 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14665 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14666 else
14667 ld_shlibs_FC=no
14668 fi
14669 ;;
14670 esac
14671
14672 if test "$ld_shlibs_FC" = no; then
14673 runpath_var=
14674 hardcode_libdir_flag_spec_FC=
14675 export_dynamic_flag_spec_FC=
14676 whole_archive_flag_spec_FC=
14677 fi
14678 else
14679 # PORTME fill in a description of your system's linker (not GNU ld)
14680 case $host_os in
14681 aix3*)
14682 allow_undefined_flag_FC=unsupported
14683 always_export_symbols_FC=yes
14684 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'
14685 # Note: this linker hardcodes the directories in LIBPATH if there
14686 # are no directories specified by -L.
14687 hardcode_minus_L_FC=yes
14688 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14689 # Neither direct hardcoding nor static linking is supported with a
14690 # broken collect2.
14691 hardcode_direct_FC=unsupported
14692 fi
14693 ;;
14694
4f6bebc3 14695 aix[4-9]*)
1cf3d07d
SE
14696 if test "$host_cpu" = ia64; then
14697 # On IA64, the linker does run time linking by default, so we don't
14698 # have to do anything special.
14699 aix_use_runtimelinking=no
14700 exp_sym_flag='-Bexport'
14701 no_entry_flag=""
14702 else
14703 # If we're using GNU nm, then we don't want the "-C" option.
14704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14705 # Also, AIX nm treats weak defined symbols like other global
14706 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14708 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'
1cf3d07d 14709 else
d3ca2257 14710 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'
1cf3d07d
SE
14711 fi
14712 aix_use_runtimelinking=no
14713
14714 # Test if we are trying to use run time linking or normal
14715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14716 # need to do runtime linking.
4f6bebc3 14717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14718 for ld_flag in $LDFLAGS; do
14719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14720 aix_use_runtimelinking=yes
14721 break
14722 fi
14723 done
14724 ;;
14725 esac
14726
14727 exp_sym_flag='-bexport'
14728 no_entry_flag='-bnoentry'
14729 fi
14730
14731 # When large executables or shared objects are built, AIX ld can
14732 # have problems creating the table of contents. If linking a library
14733 # or program results in "error TOC overflow" add -mminimal-toc to
14734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14736
14737 archive_cmds_FC=''
14738 hardcode_direct_FC=yes
14739 hardcode_direct_absolute_FC=yes
14740 hardcode_libdir_separator_FC=':'
14741 link_all_deplibs_FC=yes
14742 file_list_spec_FC='${wl}-f,'
14743
14744 if test "$GCC" = yes; then
14745 case $host_os in aix4.[012]|aix4.[012].*)
14746 # We only want to do this on AIX 4.2 and lower, the check
14747 # below for broken collect2 doesn't work under 4.3+
14748 collect2name=`${CC} -print-prog-name=collect2`
14749 if test -f "$collect2name" &&
14750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14751 then
14752 # We have reworked collect2
14753 :
14754 else
14755 # We have old collect2
14756 hardcode_direct_FC=unsupported
14757 # It fails to find uninstalled libraries when the uninstalled
14758 # path is not listed in the libpath. Setting hardcode_minus_L
14759 # to unsupported forces relinking
14760 hardcode_minus_L_FC=yes
14761 hardcode_libdir_flag_spec_FC='-L$libdir'
14762 hardcode_libdir_separator_FC=
14763 fi
14764 ;;
14765 esac
14766 shared_flag='-shared'
14767 if test "$aix_use_runtimelinking" = yes; then
14768 shared_flag="$shared_flag "'${wl}-G'
14769 fi
14770 else
14771 # not using gcc
14772 if test "$host_cpu" = ia64; then
14773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14774 # chokes on -Wl,-G. The following line is correct:
14775 shared_flag='-G'
14776 else
14777 if test "$aix_use_runtimelinking" = yes; then
14778 shared_flag='${wl}-G'
14779 else
14780 shared_flag='${wl}-bM:SRE'
14781 fi
14782 fi
14783 fi
14784
d58dead8 14785 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14786 # It seems that -bexpall does not export symbols beginning with
14787 # underscore (_), so it is better to generate a list of symbols to export.
14788 always_export_symbols_FC=yes
14789 if test "$aix_use_runtimelinking" = yes; then
14790 # Warning - without using the other runtime loading flags (-brtl),
14791 # -berok will link without error, but may produce a broken library.
14792 allow_undefined_flag_FC='-berok'
14793 # Determine the default libpath from the value encoded in an
14794 # empty executable.
14795 if test x$gcc_no_link = xyes; then
22e05272 14796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14797fi
5213506e 14798cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14799 program main
14800
14801 end
14802_ACEOF
5213506e 14803if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14804
14805lt_aix_libpath_sed='
14806 /Import File Strings/,/^$/ {
14807 /^0/ {
14808 s/^0 *\(.*\)$/\1/
14809 p
14810 }
14811 }'
14812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14813# Check for a 64-bit object if we didn't find anything.
14814if test -z "$aix_libpath"; then
14815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14816fi
1cf3d07d 14817fi
5213506e
RW
14818rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14821
14822 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14823 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"
1cf3d07d
SE
14824 else
14825 if test "$host_cpu" = ia64; then
14826 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14827 allow_undefined_flag_FC="-z nodefs"
14828 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"
14829 else
14830 # Determine the default libpath from the value encoded in an
14831 # empty executable.
14832 if test x$gcc_no_link = xyes; then
22e05272 14833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14834fi
5213506e 14835cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14836 program main
14837
14838 end
14839_ACEOF
5213506e 14840if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14841
14842lt_aix_libpath_sed='
14843 /Import File Strings/,/^$/ {
14844 /^0/ {
14845 s/^0 *\(.*\)$/\1/
14846 p
14847 }
14848 }'
14849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14850# Check for a 64-bit object if we didn't find anything.
14851if test -z "$aix_libpath"; then
14852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14853fi
1cf3d07d 14854fi
5213506e
RW
14855rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14857if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14858
14859 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14860 # Warning - without using the other run time loading flags,
14861 # -berok will link without error, but may produce a broken library.
14862 no_undefined_flag_FC=' ${wl}-bernotok'
14863 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14864 if test "$with_gnu_ld" = yes; then
14865 # We only use this code for GNU lds that support --whole-archive.
14866 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14867 else
14868 # Exported symbols can be pulled into shared objects from archives
14869 whole_archive_flag_spec_FC='$convenience'
14870 fi
1cf3d07d
SE
14871 archive_cmds_need_lc_FC=yes
14872 # This is similar to how AIX traditionally builds its shared libraries.
14873 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'
14874 fi
14875 fi
14876 ;;
14877
14878 amigaos*)
d58dead8
PG
14879 case $host_cpu in
14880 powerpc)
14881 # see comment about AmigaOS4 .so support
14882 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14883 archive_expsym_cmds_FC=''
14884 ;;
14885 m68k)
14886 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)'
14887 hardcode_libdir_flag_spec_FC='-L$libdir'
14888 hardcode_minus_L_FC=yes
14889 ;;
14890 esac
1cf3d07d
SE
14891 ;;
14892
14893 bsdi[45]*)
14894 export_dynamic_flag_spec_FC=-rdynamic
14895 ;;
14896
d58dead8 14897 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14898 # When not using gcc, we currently assume that we are using
14899 # Microsoft Visual C++.
14900 # hardcode_libdir_flag_spec is actually meaningless, as there is
14901 # no search path for DLLs.
14902 hardcode_libdir_flag_spec_FC=' '
14903 allow_undefined_flag_FC=unsupported
14904 # Tell ltmain to make .lib files, not .a files.
14905 libext=lib
14906 # Tell ltmain to make .dll files, not .so files.
14907 shrext_cmds=".dll"
14908 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14909 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14910 # The linker will automatically build a .lib file if we build a DLL.
14911 old_archive_from_new_cmds_FC='true'
14912 # FIXME: Should let the user specify the lib program.
14913 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14914 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14915 enable_shared_with_static_runtimes_FC=yes
14916 ;;
14917
14918 darwin* | rhapsody*)
1cf3d07d 14919
d58dead8
PG
14920
14921 archive_cmds_need_lc_FC=no
14922 hardcode_direct_FC=no
14923 hardcode_automatic_FC=yes
14924 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14925 if test "$lt_cv_ld_force_load" = "yes"; then
14926 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\"`'
14927 else
14928 whole_archive_flag_spec_FC=''
14929 fi
d58dead8
PG
14930 link_all_deplibs_FC=yes
14931 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14932 case $cc_basename in
14933 ifort*) _lt_dar_can_shared=yes ;;
14934 *) _lt_dar_can_shared=$GCC ;;
14935 esac
14936 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14937 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14938 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}"
14939 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14940 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}"
14941 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}"
14942
14943 else
14944 ld_shlibs_FC=no
14945 fi
14946
1cf3d07d
SE
14947 ;;
14948
14949 dgux*)
14950 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_libdir_flag_spec_FC='-L$libdir'
14952 hardcode_shlibpath_var_FC=no
14953 ;;
14954
1cf3d07d
SE
14955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14956 # support. Future versions do this automatically, but an explicit c++rt0.o
14957 # does not break anything, and helps significantly (at the cost of a little
14958 # extra space).
14959 freebsd2.2*)
14960 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14961 hardcode_libdir_flag_spec_FC='-R$libdir'
14962 hardcode_direct_FC=yes
14963 hardcode_shlibpath_var_FC=no
14964 ;;
14965
14966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14967 freebsd2.*)
1cf3d07d
SE
14968 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_direct_FC=yes
14970 hardcode_minus_L_FC=yes
14971 hardcode_shlibpath_var_FC=no
14972 ;;
14973
14974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14975 freebsd* | dragonfly*)
14976 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14977 hardcode_libdir_flag_spec_FC='-R$libdir'
14978 hardcode_direct_FC=yes
14979 hardcode_shlibpath_var_FC=no
14980 ;;
14981
14982 hpux9*)
14983 if test "$GCC" = yes; then
14984 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'
14985 else
14986 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'
14987 fi
14988 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14989 hardcode_libdir_separator_FC=:
14990 hardcode_direct_FC=yes
14991
14992 # hardcode_minus_L: Not really in the search PATH,
14993 # but as the default location of the library.
14994 hardcode_minus_L_FC=yes
14995 export_dynamic_flag_spec_FC='${wl}-E'
14996 ;;
14997
14998 hpux10*)
43e02a8a 14999 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
15000 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15001 else
15002 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15003 fi
15004 if test "$with_gnu_ld" = no; then
15005 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15006 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
15007 hardcode_libdir_separator_FC=:
15008 hardcode_direct_FC=yes
15009 hardcode_direct_absolute_FC=yes
15010 export_dynamic_flag_spec_FC='${wl}-E'
15011 # hardcode_minus_L: Not really in the search PATH,
15012 # but as the default location of the library.
15013 hardcode_minus_L_FC=yes
15014 fi
15015 ;;
15016
15017 hpux11*)
43e02a8a 15018 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
15019 case $host_cpu in
15020 hppa*64*)
4e4ba647 15021 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15022 ;;
15023 ia64*)
d58dead8 15024 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15025 ;;
15026 *)
15027 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15028 ;;
15029 esac
15030 else
15031 case $host_cpu in
15032 hppa*64*)
4e4ba647 15033 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15034 ;;
15035 ia64*)
15036 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15037 ;;
15038 *)
43e02a8a 15039 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15040 ;;
15041 esac
15042 fi
15043 if test "$with_gnu_ld" = no; then
15044 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15045 hardcode_libdir_separator_FC=:
15046
15047 case $host_cpu in
15048 hppa*64*|ia64*)
15049 hardcode_direct_FC=no
15050 hardcode_shlibpath_var_FC=no
15051 ;;
15052 *)
15053 hardcode_direct_FC=yes
15054 hardcode_direct_absolute_FC=yes
15055 export_dynamic_flag_spec_FC='${wl}-E'
15056
15057 # hardcode_minus_L: Not really in the search PATH,
15058 # but as the default location of the library.
15059 hardcode_minus_L_FC=yes
15060 ;;
15061 esac
15062 fi
15063 ;;
15064
15065 irix5* | irix6* | nonstopux*)
15066 if test "$GCC" = yes; then
43e02a8a 15067 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'
1cf3d07d
SE
15068 # Try to use the -exported_symbol ld option, if it does not
15069 # work, assume that -exports_file does not work either and
15070 # implicitly export all symbols.
15071 save_LDFLAGS="$LDFLAGS"
15072 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15073 if test x$gcc_no_link = xyes; then
22e05272 15074 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15075fi
5213506e 15076cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15077int foo(void) {}
15078_ACEOF
5213506e 15079if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 15080 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'
1cf3d07d 15081
1cf3d07d 15082fi
5213506e
RW
15083rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15085 LDFLAGS="$save_LDFLAGS"
15086 else
43e02a8a
RW
15087 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'
15088 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'
1cf3d07d
SE
15089 fi
15090 archive_cmds_need_lc_FC='no'
15091 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15092 hardcode_libdir_separator_FC=:
15093 inherit_rpath_FC=yes
15094 link_all_deplibs_FC=yes
15095 ;;
15096
15097 netbsd*)
15098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15099 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15100 else
15101 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15102 fi
15103 hardcode_libdir_flag_spec_FC='-R$libdir'
15104 hardcode_direct_FC=yes
15105 hardcode_shlibpath_var_FC=no
15106 ;;
15107
15108 newsos6)
15109 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15110 hardcode_direct_FC=yes
15111 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15112 hardcode_libdir_separator_FC=:
15113 hardcode_shlibpath_var_FC=no
15114 ;;
15115
15116 *nto* | *qnx*)
15117 ;;
15118
15119 openbsd*)
d58dead8
PG
15120 if test -f /usr/libexec/ld.so; then
15121 hardcode_direct_FC=yes
15122 hardcode_shlibpath_var_FC=no
15123 hardcode_direct_absolute_FC=yes
15124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 15125 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 15126 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 15127 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
15128 export_dynamic_flag_spec_FC='${wl}-E'
15129 else
15130 case $host_os in
15131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15132 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15133 hardcode_libdir_flag_spec_FC='-R$libdir'
15134 ;;
15135 *)
15136 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15137 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15138 ;;
15139 esac
15140 fi
15141 else
15142 ld_shlibs_FC=no
1cf3d07d
SE
15143 fi
15144 ;;
15145
15146 os2*)
15147 hardcode_libdir_flag_spec_FC='-L$libdir'
15148 hardcode_minus_L_FC=yes
15149 allow_undefined_flag_FC=unsupported
43e02a8a 15150 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'
1cf3d07d
SE
15151 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15152 ;;
15153
15154 osf3*)
15155 if test "$GCC" = yes; then
15156 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15157 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'
1cf3d07d
SE
15158 else
15159 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15160 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'
1cf3d07d
SE
15161 fi
15162 archive_cmds_need_lc_FC='no'
15163 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15164 hardcode_libdir_separator_FC=:
15165 ;;
15166
15167 osf4* | osf5*) # as osf3* with the addition of -msym flag
15168 if test "$GCC" = yes; then
15169 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15170 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'
1cf3d07d
SE
15171 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15172 else
15173 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15174 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'
1cf3d07d 15175 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~
43e02a8a 15176 $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'
1cf3d07d
SE
15177
15178 # Both c and cxx compiler support -rpath directly
15179 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15180 fi
15181 archive_cmds_need_lc_FC='no'
15182 hardcode_libdir_separator_FC=:
15183 ;;
15184
15185 solaris*)
15186 no_undefined_flag_FC=' -z defs'
15187 if test "$GCC" = yes; then
15188 wlarc='${wl}'
15189 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15190 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15191 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15192 else
15193 case `$CC -V 2>&1` in
15194 *"Compilers 5.0"*)
15195 wlarc=''
15196 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15198 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15199 ;;
15200 *)
15201 wlarc='${wl}'
15202 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15204 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15205 ;;
15206 esac
15207 fi
15208 hardcode_libdir_flag_spec_FC='-R$libdir'
15209 hardcode_shlibpath_var_FC=no
15210 case $host_os in
15211 solaris2.[0-5] | solaris2.[0-5].*) ;;
15212 *)
15213 # The compiler driver will combine and reorder linker options,
15214 # but understands `-z linker_flag'. GCC discards it without `$wl',
15215 # but is careful enough not to reorder.
15216 # Supported since Solaris 2.6 (maybe 2.5.1?)
15217 if test "$GCC" = yes; then
15218 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15219 else
15220 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15221 fi
15222 ;;
15223 esac
15224 link_all_deplibs_FC=yes
15225 ;;
15226
15227 sunos4*)
15228 if test "x$host_vendor" = xsequent; then
15229 # Use $CC to link under sequent, because it throws in some extra .o
15230 # files that make .init and .fini sections work.
15231 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15232 else
15233 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15234 fi
15235 hardcode_libdir_flag_spec_FC='-L$libdir'
15236 hardcode_direct_FC=yes
15237 hardcode_minus_L_FC=yes
15238 hardcode_shlibpath_var_FC=no
15239 ;;
15240
15241 sysv4)
15242 case $host_vendor in
15243 sni)
15244 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15245 hardcode_direct_FC=yes # is this really true???
15246 ;;
15247 siemens)
15248 ## LD is ld it makes a PLAMLIB
15249 ## CC just makes a GrossModule.
15250 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15251 reload_cmds_FC='$CC -r -o $output$reload_objs'
15252 hardcode_direct_FC=no
15253 ;;
15254 motorola)
15255 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15257 ;;
15258 esac
15259 runpath_var='LD_RUN_PATH'
15260 hardcode_shlibpath_var_FC=no
15261 ;;
15262
15263 sysv4.3*)
15264 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15265 hardcode_shlibpath_var_FC=no
15266 export_dynamic_flag_spec_FC='-Bexport'
15267 ;;
15268
15269 sysv4*MP*)
15270 if test -d /usr/nec; then
15271 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272 hardcode_shlibpath_var_FC=no
15273 runpath_var=LD_RUN_PATH
15274 hardcode_runpath_var=yes
15275 ld_shlibs_FC=yes
15276 fi
15277 ;;
15278
15279 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15280 no_undefined_flag_FC='${wl}-z,text'
15281 archive_cmds_need_lc_FC=no
15282 hardcode_shlibpath_var_FC=no
15283 runpath_var='LD_RUN_PATH'
15284
15285 if test "$GCC" = yes; then
15286 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15287 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15288 else
15289 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15290 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15291 fi
15292 ;;
15293
15294 sysv5* | sco3.2v5* | sco5v6*)
15295 # Note: We can NOT use -z defs as we might desire, because we do not
15296 # link with -lc, and that would cause any symbols used from libc to
15297 # always be unresolved, which means just about no library would
15298 # ever link correctly. If we're not using GNU ld we use -z text
15299 # though, which does catch some bad symbols but isn't as heavy-handed
15300 # as -z defs.
15301 no_undefined_flag_FC='${wl}-z,text'
15302 allow_undefined_flag_FC='${wl}-z,nodefs'
15303 archive_cmds_need_lc_FC=no
15304 hardcode_shlibpath_var_FC=no
15305 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15306 hardcode_libdir_separator_FC=':'
15307 link_all_deplibs_FC=yes
15308 export_dynamic_flag_spec_FC='${wl}-Bexport'
15309 runpath_var='LD_RUN_PATH'
15310
15311 if test "$GCC" = yes; then
15312 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15313 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 else
15315 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15316 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15317 fi
15318 ;;
15319
15320 uts4*)
15321 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322 hardcode_libdir_flag_spec_FC='-L$libdir'
15323 hardcode_shlibpath_var_FC=no
15324 ;;
15325
15326 *)
15327 ld_shlibs_FC=no
15328 ;;
15329 esac
15330
15331 if test x$host_vendor = xsni; then
15332 case $host in
15333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15334 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15335 ;;
15336 esac
15337 fi
15338 fi
15339
5213506e
RW
15340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15341$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
15342test "$ld_shlibs_FC" = no && can_build_shared=no
15343
15344with_gnu_ld_FC=$with_gnu_ld
15345
15346
15347
15348
15349
15350
15351#
15352# Do we need to explicitly link libc?
15353#
15354case "x$archive_cmds_need_lc_FC" in
15355x|xyes)
15356 # Assume -lc should be added
15357 archive_cmds_need_lc_FC=yes
15358
15359 if test "$enable_shared" = yes && test "$GCC" = yes; then
15360 case $archive_cmds_FC in
15361 *'~'*)
15362 # FIXME: we may have to deal with multi-command sequences.
15363 ;;
15364 '$CC '*)
15365 # Test whether the compiler implicitly links with -lc since on some
15366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15367 # to ld, don't add -lc before -lgcc.
5213506e
RW
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15369$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 15370if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
5213506e 15371 $as_echo_n "(cached) " >&6
baafc534
RW
15372else
15373 $RM conftest*
15374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15375
5213506e 15376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
15377 (eval $ac_compile) 2>&5
15378 ac_status=$?
5213506e
RW
15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15380 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15381 soname=conftest
15382 lib=conftest
15383 libobjs=conftest.$ac_objext
15384 deplibs=
15385 wl=$lt_prog_compiler_wl_FC
15386 pic_flag=$lt_prog_compiler_pic_FC
15387 compiler_flags=-v
15388 linker_flags=-v
15389 verstring=
15390 output_objdir=.
15391 libname=conftest
15392 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15393 allow_undefined_flag_FC=
5213506e 15394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15395 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 15396 ac_status=$?
5213506e
RW
15397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15398 test $ac_status = 0; }
baafc534
RW
15399 then
15400 lt_cv_archive_cmds_need_lc_FC=no
15401 else
15402 lt_cv_archive_cmds_need_lc_FC=yes
15403 fi
15404 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15405 else
15406 cat conftest.err 1>&5
15407 fi
15408 $RM conftest*
15409
15410fi
5213506e
RW
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15412$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 15413 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
15414 ;;
15415 esac
15416 fi
15417 ;;
15418esac
9cdc381b 15419
9cdc381b 15420
1cf3d07d
SE
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
5213506e
RW
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15484$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 15485
1cf3d07d
SE
15486library_names_spec=
15487libname_spec='lib$name'
15488soname_spec=
15489shrext_cmds=".so"
15490postinstall_cmds=
15491postuninstall_cmds=
15492finish_cmds=
15493finish_eval=
15494shlibpath_var=
15495shlibpath_overrides_runpath=unknown
15496version_type=none
15497dynamic_linker="$host_os ld.so"
15498sys_lib_dlsearch_path_spec="/lib /usr/lib"
15499need_lib_prefix=unknown
15500hardcode_into_libs=no
15501
15502# when you set need_version to no, make sure it does not cause -set_version
15503# flags to be left without arguments
15504need_version=unknown
15505
15506case $host_os in
15507aix3*)
15508 version_type=linux
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15510 shlibpath_var=LIBPATH
15511
15512 # AIX 3 has no versioning support, so we append a major version to the name.
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 ;;
15515
4f6bebc3 15516aix[4-9]*)
1cf3d07d
SE
15517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
15520 hardcode_into_libs=yes
15521 if test "$host_cpu" = ia64; then
15522 # AIX 5 supports IA64
15523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 else
15526 # With GCC up to 2.95.x, collect2 would create an import file
15527 # for dependence libraries. The import file would start with
15528 # the line `#! .'. This would cause the generated library to
15529 # depend on `.', always an invalid library. This was fixed in
15530 # development snapshots of GCC prior to 3.0.
15531 case $host_os in
15532 aix4 | aix4.[01] | aix4.[01].*)
15533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15534 echo ' yes '
15535 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15536 :
15537 else
15538 can_build_shared=no
15539 fi
15540 ;;
15541 esac
15542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15543 # soname into executable. Probably we can add versioning support to
15544 # collect2, so additional links can be useful in future.
15545 if test "$aix_use_runtimelinking" = yes; then
15546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15547 # instead of lib<name>.a to let people know that these are not
15548 # typical AIX shared libraries.
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 else
15551 # We preserve .a as extension for shared libraries through AIX4.2
15552 # and later when we are not doing run time linking.
15553 library_names_spec='${libname}${release}.a $libname.a'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 fi
15556 shlibpath_var=LIBPATH
15557 fi
15558 ;;
15559
15560amigaos*)
d58dead8
PG
15561 case $host_cpu in
15562 powerpc)
15563 # Since July 2007 AmigaOS4 officially supports .so libraries.
15564 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 ;;
15567 m68k)
1cf3d07d
SE
15568 library_names_spec='$libname.ixlibrary $libname.a'
15569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15570 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'
d58dead8
PG
15571 ;;
15572 esac
1cf3d07d
SE
15573 ;;
15574
15575beos*)
15576 library_names_spec='${libname}${shared_ext}'
15577 dynamic_linker="$host_os ld.so"
15578 shlibpath_var=LIBRARY_PATH
15579 ;;
15580
15581bsdi[45]*)
15582 version_type=linux
15583 need_version=no
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'
15586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15590 # the default ld.so.conf also contains /usr/contrib/lib and
15591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15592 # libtool to hard-code these into programs
15593 ;;
15594
d58dead8 15595cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15596 version_type=windows
15597 shrext_cmds=".dll"
15598 need_version=no
15599 need_lib_prefix=no
15600
d58dead8
PG
15601 case $GCC,$host_os in
15602 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15603 library_names_spec='$libname.dll.a'
15604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15605 postinstall_cmds='base_file=`basename \${file}`~
15606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15607 dldir=$destdir/`dirname \$dlpath`~
15608 test -d \$dldir || mkdir -p \$dldir~
15609 $install_prog $dir/$dlname \$dldir/$dlname~
15610 chmod a+x \$dldir/$dlname~
15611 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15612 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15613 fi'
15614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15615 dlpath=$dir/\$dldll~
15616 $RM \$dlpath'
15617 shlibpath_overrides_runpath=yes
15618
15619 case $host_os in
15620 cygwin*)
15621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15622 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15623
1cf3d07d 15624 ;;
d58dead8 15625 mingw* | cegcc*)
1cf3d07d
SE
15626 # MinGW DLLs use traditional 'lib' prefix
15627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15628 ;;
15629 pw32*)
15630 # pw32 DLLs use 'pw' prefix rather than 'lib'
15631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15632 ;;
15633 esac
15634 ;;
15635
15636 *)
15637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15638 ;;
15639 esac
15640 dynamic_linker='Win32 ld.exe'
15641 # FIXME: first we should search . and the directory the executable is in
15642 shlibpath_var=PATH
15643 ;;
15644
15645darwin* | rhapsody*)
15646 dynamic_linker="$host_os dyld"
15647 version_type=darwin
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15651 soname_spec='${libname}${release}${major}$shared_ext'
15652 shlibpath_overrides_runpath=yes
15653 shlibpath_var=DYLD_LIBRARY_PATH
15654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15655
15656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15657 ;;
15658
15659dgux*)
15660 version_type=linux
15661 need_lib_prefix=no
15662 need_version=no
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 ;;
15667
1cf3d07d
SE
15668freebsd* | dragonfly*)
15669 # DragonFly does not have aout. When/if they implement a new
15670 # versioning mechanism, adjust this.
15671 if test -x /usr/bin/objformat; then
15672 objformat=`/usr/bin/objformat`
15673 else
15674 case $host_os in
c6084f68 15675 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15676 *) objformat=elf ;;
15677 esac
15678 fi
15679 version_type=freebsd-$objformat
15680 case $version_type in
15681 freebsd-elf*)
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15683 need_version=no
15684 need_lib_prefix=no
15685 ;;
15686 freebsd-*)
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15688 need_version=yes
15689 ;;
15690 esac
15691 shlibpath_var=LD_LIBRARY_PATH
15692 case $host_os in
c6084f68 15693 freebsd2.*)
1cf3d07d
SE
15694 shlibpath_overrides_runpath=yes
15695 ;;
15696 freebsd3.[01]* | freebsdelf3.[01]*)
15697 shlibpath_overrides_runpath=yes
15698 hardcode_into_libs=yes
15699 ;;
15700 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15701 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15702 shlibpath_overrides_runpath=no
15703 hardcode_into_libs=yes
15704 ;;
15705 *) # from 4.6 on, and DragonFly
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15708 ;;
15709 esac
15710 ;;
15711
43e02a8a
RW
15712haiku*)
15713 version_type=linux
15714 need_lib_prefix=no
15715 need_version=no
15716 dynamic_linker="$host_os runtime_loader"
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LIBRARY_PATH
15720 shlibpath_overrides_runpath=yes
15721 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15722 hardcode_into_libs=yes
15723 ;;
15724
1cf3d07d
SE
15725hpux9* | hpux10* | hpux11*)
15726 # Give a soname corresponding to the major version so that dld.sl refuses to
15727 # link against other versions.
15728 version_type=sunos
15729 need_lib_prefix=no
15730 need_version=no
15731 case $host_cpu in
15732 ia64*)
15733 shrext_cmds='.so'
15734 hardcode_into_libs=yes
15735 dynamic_linker="$host_os dld.so"
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 if test "X$HPUX_IA64_MODE" = X32; then
15741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15742 else
15743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15744 fi
15745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15746 ;;
15747 hppa*64*)
15748 shrext_cmds='.sl'
15749 hardcode_into_libs=yes
15750 dynamic_linker="$host_os dld.sl"
15751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15757 ;;
15758 *)
15759 shrext_cmds='.sl'
15760 dynamic_linker="$host_os dld.sl"
15761 shlibpath_var=SHLIB_PATH
15762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 ;;
15766 esac
43e02a8a 15767 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15768 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15769 # or fails outright, so override atomically:
15770 install_override_mode=555
1cf3d07d
SE
15771 ;;
15772
15773interix[3-9]*)
15774 version_type=linux
15775 need_lib_prefix=no
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=no
15782 hardcode_into_libs=yes
15783 ;;
15784
15785irix5* | irix6* | nonstopux*)
15786 case $host_os in
15787 nonstopux*) version_type=nonstopux ;;
15788 *)
15789 if test "$lt_cv_prog_gnu_ld" = yes; then
15790 version_type=linux
15791 else
15792 version_type=irix
15793 fi ;;
15794 esac
15795 need_lib_prefix=no
15796 need_version=no
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15799 case $host_os in
15800 irix5* | nonstopux*)
15801 libsuff= shlibsuff=
15802 ;;
15803 *)
15804 case $LD in # libtool.m4 will add one of these switches to LD
15805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15806 libsuff= shlibsuff= libmagic=32-bit;;
15807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15808 libsuff=32 shlibsuff=N32 libmagic=N32;;
15809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15811 *) libsuff= shlibsuff= libmagic=never-match;;
15812 esac
15813 ;;
15814 esac
15815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15816 shlibpath_overrides_runpath=no
15817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15819 hardcode_into_libs=yes
15820 ;;
15821
15822# No shared lib support for Linux oldld, aout, or coff.
15823linux*oldld* | linux*aout* | linux*coff*)
15824 dynamic_linker=no
15825 ;;
15826
15827# This must be Linux ELF.
e9085da5
MR
15828
15829# uclinux* changes (here and below) have been submitted to the libtool
15830# project, but have not yet been accepted: they are GCC-local changes
15831# for the time being. (See
15832# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
c0f8c22a 15833linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
15834 version_type=linux
15835 need_lib_prefix=no
15836 need_version=no
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 shlibpath_overrides_runpath=no
baafc534 15842
1cf3d07d 15843 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15844 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 15845 $as_echo_n "(cached) " >&6
baafc534
RW
15846else
15847 lt_cv_shlibpath_overrides_runpath=no
15848 save_LDFLAGS=$LDFLAGS
15849 save_libdir=$libdir
15850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15852 if test x$gcc_no_link = xyes; then
22e05272 15853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15854fi
5213506e 15855cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15856 program main
15857
15858 end
9cdc381b 15859_ACEOF
5213506e
RW
15860if ac_fn_fc_try_link "$LINENO"; then :
15861 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15862 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15863fi
9cdc381b 15864fi
5213506e
RW
15865rm -f core conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15867 LDFLAGS=$save_LDFLAGS
15868 libdir=$save_libdir
15869
15870fi
15871
15872 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15873
15874 # This implies no fast_install, which is unacceptable.
15875 # Some rework will be needed to allow for fast_install
15876 # before this can be enabled.
15877 hardcode_into_libs=yes
15878
15879 # Append ld.so.conf contents to the search path
15880 if test -f /etc/ld.so.conf; then
43e02a8a 15881 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' ' '`
1cf3d07d
SE
15882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15883 fi
15884
15885 # We used to test for /lib/ld.so.1 and disable shared libraries on
15886 # powerpc, because MkLinux only supported shared libraries with the
15887 # GNU dynamic linker. Since this was broken with cross compilers,
15888 # most powerpc-linux boxes support dynamic linking these days and
15889 # people can always --disable-shared, the test was removed, and we
15890 # assume the GNU/Linux dynamic linker is in use.
15891 dynamic_linker='GNU/Linux ld.so'
15892 ;;
15893
15894netbsd*)
15895 version_type=sunos
15896 need_lib_prefix=no
15897 need_version=no
15898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15901 dynamic_linker='NetBSD (a.out) ld.so'
15902 else
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 dynamic_linker='NetBSD ld.elf_so'
15906 fi
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes
15909 hardcode_into_libs=yes
15910 ;;
15911
15912newsos6)
15913 version_type=linux
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=yes
15917 ;;
15918
15919*nto* | *qnx*)
15920 version_type=qnx
15921 need_lib_prefix=no
15922 need_version=no
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=no
15927 hardcode_into_libs=yes
15928 dynamic_linker='ldqnx.so'
15929 ;;
15930
15931openbsd*)
15932 version_type=sunos
15933 sys_lib_dlsearch_path_spec="/usr/lib"
15934 need_lib_prefix=no
15935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15936 case $host_os in
15937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15938 *) need_version=no ;;
15939 esac
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944 case $host_os in
15945 openbsd2.[89] | openbsd2.[89].*)
15946 shlibpath_overrides_runpath=no
15947 ;;
15948 *)
15949 shlibpath_overrides_runpath=yes
15950 ;;
15951 esac
15952 else
15953 shlibpath_overrides_runpath=yes
15954 fi
15955 ;;
15956
15957os2*)
15958 libname_spec='$name'
15959 shrext_cmds=".dll"
15960 need_lib_prefix=no
15961 library_names_spec='$libname${shared_ext} $libname.a'
15962 dynamic_linker='OS/2 ld.exe'
15963 shlibpath_var=LIBPATH
15964 ;;
15965
15966osf3* | osf4* | osf5*)
15967 version_type=osf
15968 need_lib_prefix=no
15969 need_version=no
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15975 ;;
15976
15977rdos*)
15978 dynamic_linker=no
15979 ;;
15980
15981solaris*)
15982 version_type=linux
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes
15989 hardcode_into_libs=yes
15990 # ldd complains unless libraries are executable
15991 postinstall_cmds='chmod +x $lib'
15992 ;;
15993
15994sunos4*)
15995 version_type=sunos
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 shlibpath_overrides_runpath=yes
16000 if test "$with_gnu_ld" = yes; then
16001 need_lib_prefix=no
16002 fi
16003 need_version=yes
16004 ;;
16005
16006sysv4 | sysv4.3*)
16007 version_type=linux
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 case $host_vendor in
16012 sni)
16013 shlibpath_overrides_runpath=no
16014 need_lib_prefix=no
16015 runpath_var=LD_RUN_PATH
16016 ;;
16017 siemens)
16018 need_lib_prefix=no
16019 ;;
16020 motorola)
16021 need_lib_prefix=no
16022 need_version=no
16023 shlibpath_overrides_runpath=no
16024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16025 ;;
16026 esac
16027 ;;
16028
16029sysv4*MP*)
16030 if test -d /usr/nec ;then
16031 version_type=linux
16032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16033 soname_spec='$libname${shared_ext}.$major'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 fi
16036 ;;
16037
16038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16039 version_type=freebsd-elf
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=yes
16046 hardcode_into_libs=yes
16047 if test "$with_gnu_ld" = yes; then
16048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16049 else
16050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16051 case $host_os in
16052 sco3.2v5*)
16053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16054 ;;
16055 esac
16056 fi
16057 sys_lib_dlsearch_path_spec='/usr/lib'
16058 ;;
16059
16060tpf*)
16061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
d58dead8 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=no
16068 hardcode_into_libs=yes
16069 ;;
16070
16071uts4*)
16072 version_type=linux
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16076 ;;
16077
16078*)
16079 dynamic_linker=no
16080 ;;
16081esac
5213506e
RW
16082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16083$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
16084test "$dynamic_linker" = no && can_build_shared=no
16085
16086variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16087if test "$GCC" = yes; then
16088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 16089fi
9cdc381b 16090
d58dead8
PG
16091if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16093fi
16094if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16096fi
16097
9cdc381b 16098
1cf3d07d
SE
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
43e02a8a
RW
16130
16131
1cf3d07d
SE
16132
16133
16134
5213506e
RW
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16136$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16137hardcode_action_FC=
16138if test -n "$hardcode_libdir_flag_spec_FC" ||
16139 test -n "$runpath_var_FC" ||
16140 test "X$hardcode_automatic_FC" = "Xyes" ; then
16141
16142 # We can hardcode non-existent directories.
16143 if test "$hardcode_direct_FC" != no &&
16144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16145 # have to relink, otherwise we might link with an installed library
16146 # when we should be linking with a yet-to-be-installed one
16147 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
16148 test "$hardcode_minus_L_FC" != no; then
16149 # Linking always hardcodes the temporary library directory.
16150 hardcode_action_FC=relink
16151 else
16152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16153 hardcode_action_FC=immediate
16154 fi
16155else
16156 # We cannot hardcode anything, or else we can only hardcode existing
16157 # directories.
16158 hardcode_action_FC=unsupported
9cdc381b 16159fi
5213506e
RW
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16161$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
16162
16163if test "$hardcode_action_FC" = relink ||
16164 test "$inherit_rpath_FC" = yes; then
16165 # Fast installation is not supported
16166 enable_fast_install=no
16167elif test "$shlibpath_overrides_runpath" = yes ||
16168 test "$enable_shared" = no; then
16169 # Fast installation is not necessary
16170 enable_fast_install=needless
9cdc381b
BD
16171fi
16172
1cf3d07d
SE
16173
16174
16175
16176
16177
16178
16179 fi # test -n "$compiler"
16180
d58dead8 16181 GCC=$lt_save_GCC
1cf3d07d
SE
16182 CC="$lt_save_CC"
16183fi # test "$_lt_disable_FC" != yes
16184
dd46a4de 16185ac_ext=c
96b8a615
AJ
16186ac_cpp='$CPP $CPPFLAGS'
16187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
16190
16191
16192
16193# extra LD Flags which are required for targets
16194case "${host}" in
16195 *-darwin*)
16196 # Darwin needs -single_module when linking libgfortran
16197 extra_ldflags_libgfortran=-Wl,-single_module
16198 ;;
16199esac
16200
16201
16202# We need a working compiler at that point, otherwise give a clear
16203# error message and bail out.
16204
5213506e
RW
16205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16206$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16207ac_ext=${ac_fc_srcext-f}
16208ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16209ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
16210ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16211
5213506e 16212cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
16213
16214 program foo
16215 real, parameter :: bar = sin (12.34 / 2.5)
16216 end program foo
6de9cd9a 16217_ACEOF
5213506e
RW
16218if ac_fn_fc_try_compile "$LINENO"; then :
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16220$as_echo "yes" >&6; }
6de9cd9a 16221else
5213506e
RW
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223$as_echo "no" >&6; }
22e05272 16224 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
6de9cd9a 16225
96b8a615 16226fi
5213506e 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
16228ac_ext=c
16229ac_cpp='$CPP $CPPFLAGS'
16230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16232ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 16233
96b8a615 16234
1cf3d07d 16235
5213506e
RW
16236# Check whether --enable-largefile was given.
16237if test "${enable_largefile+set}" = set; then :
16238 enableval=$enable_largefile;
16239fi
1cf3d07d 16240
1cf3d07d
SE
16241if test "$enable_largefile" != no; then
16242
5213506e
RW
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16244$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 16245if ${ac_cv_sys_largefile_CC+:} false; then :
5213506e 16246 $as_echo_n "(cached) " >&6
96b8a615 16247else
1cf3d07d
SE
16248 ac_cv_sys_largefile_CC=no
16249 if test "$GCC" != yes; then
16250 ac_save_CC=$CC
16251 while :; do
5213506e
RW
16252 # IRIX 6.2 and later do not support large files by default,
16253 # so use the C compiler's -n32 option if that helps.
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 16255/* end confdefs.h. */
1cf3d07d
SE
16256#include <sys/types.h>
16257 /* Check that off_t can represent 2**63 - 1 correctly.
16258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16259 since some C++ compilers masquerading as C compilers
16260 incorrectly reject 9223372036854775807. */
e9085da5 16261#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16263 && LARGE_OFF_T % 2147483647 == 1)
16264 ? 1 : -1];
4c4b3eb0
PB
16265int
16266main ()
16267{
4c4b3eb0
PB
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
5213506e
RW
16273 if ac_fn_c_try_compile "$LINENO"; then :
16274 break
4c4b3eb0 16275fi
5213506e
RW
16276rm -f core conftest.err conftest.$ac_objext
16277 CC="$CC -n32"
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 ac_cv_sys_largefile_CC=' -n32'; break
16280fi
16281rm -f core conftest.err conftest.$ac_objext
16282 break
16283 done
16284 CC=$ac_save_CC
16285 rm -f conftest.$ac_ext
16286 fi
16287fi
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16289$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16290 if test "$ac_cv_sys_largefile_CC" != no; then
16291 CC=$CC$ac_cv_sys_largefile_CC
16292 fi
4c4b3eb0 16293
5213506e
RW
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16295$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 16296if ${ac_cv_sys_file_offset_bits+:} false; then :
5213506e
RW
16297 $as_echo_n "(cached) " >&6
16298else
16299 while :; do
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16301/* end confdefs.h. */
5213506e
RW
16302#include <sys/types.h>
16303 /* Check that off_t can represent 2**63 - 1 correctly.
16304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16305 since some C++ compilers masquerading as C compilers
16306 incorrectly reject 9223372036854775807. */
e9085da5 16307#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16309 && LARGE_OFF_T % 2147483647 == 1)
16310 ? 1 : -1];
4c4b3eb0
PB
16311int
16312main ()
16313{
4c4b3eb0
PB
16314
16315 ;
16316 return 0;
16317}
16318_ACEOF
5213506e
RW
16319if ac_fn_c_try_compile "$LINENO"; then :
16320 ac_cv_sys_file_offset_bits=no; break
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16324/* end confdefs.h. */
5213506e
RW
16325#define _FILE_OFFSET_BITS 64
16326#include <sys/types.h>
16327 /* Check that off_t can represent 2**63 - 1 correctly.
16328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16329 since some C++ compilers masquerading as C compilers
16330 incorrectly reject 9223372036854775807. */
e9085da5 16331#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16333 && LARGE_OFF_T % 2147483647 == 1)
16334 ? 1 : -1];
4c4b3eb0
PB
16335int
16336main ()
16337{
4c4b3eb0
PB
16338
16339 ;
16340 return 0;
16341}
16342_ACEOF
5213506e
RW
16343if ac_fn_c_try_compile "$LINENO"; then :
16344 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 16345fi
5213506e
RW
16346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 ac_cv_sys_file_offset_bits=unknown
16348 break
16349done
4c4b3eb0 16350fi
5213506e
RW
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16352$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16353case $ac_cv_sys_file_offset_bits in #(
16354 no | unknown) ;;
16355 *)
16356cat >>confdefs.h <<_ACEOF
16357#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 16358_ACEOF
5213506e
RW
16359;;
16360esac
16361rm -rf conftest*
16362 if test $ac_cv_sys_file_offset_bits = unknown; then
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16364$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 16365if ${ac_cv_sys_large_files+:} false; then :
5213506e
RW
16366 $as_echo_n "(cached) " >&6
16367else
16368 while :; do
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16370/* end confdefs.h. */
5213506e
RW
16371#include <sys/types.h>
16372 /* Check that off_t can represent 2**63 - 1 correctly.
16373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16374 since some C++ compilers masquerading as C compilers
16375 incorrectly reject 9223372036854775807. */
e9085da5 16376#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16378 && LARGE_OFF_T % 2147483647 == 1)
16379 ? 1 : -1];
4c4b3eb0
PB
16380int
16381main ()
16382{
4c4b3eb0
PB
16383
16384 ;
16385 return 0;
16386}
16387_ACEOF
5213506e
RW
16388if ac_fn_c_try_compile "$LINENO"; then :
16389 ac_cv_sys_large_files=no; break
4c4b3eb0 16390fi
5213506e
RW
16391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16393/* end confdefs.h. */
5213506e
RW
16394#define _LARGE_FILES 1
16395#include <sys/types.h>
16396 /* Check that off_t can represent 2**63 - 1 correctly.
16397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16398 since some C++ compilers masquerading as C compilers
16399 incorrectly reject 9223372036854775807. */
e9085da5 16400#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16402 && LARGE_OFF_T % 2147483647 == 1)
16403 ? 1 : -1];
4c4b3eb0
PB
16404int
16405main ()
16406{
16407
4c4b3eb0
PB
16408 ;
16409 return 0;
16410}
16411_ACEOF
5213506e
RW
16412if ac_fn_c_try_compile "$LINENO"; then :
16413 ac_cv_sys_large_files=1; break
4c4b3eb0 16414fi
5213506e
RW
16415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 ac_cv_sys_large_files=unknown
16417 break
16418done
38d24731 16419fi
5213506e
RW
16420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16421$as_echo "$ac_cv_sys_large_files" >&6; }
16422case $ac_cv_sys_large_files in #(
16423 no | unknown) ;;
16424 *)
4c4b3eb0 16425cat >>confdefs.h <<_ACEOF
5213506e 16426#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 16427_ACEOF
5213506e
RW
16428;;
16429esac
16430rm -rf conftest*
16431 fi
22e05272
JM
16432
16433
4c4b3eb0
PB
16434fi
16435
44720bef
JB
16436
16437# Types
5213506e 16438ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22e05272 16439if test "x$ac_cv_type_off_t" = xyes; then :
4c4b3eb0 16440
5213506e 16441else
4c4b3eb0 16442
5213506e
RW
16443cat >>confdefs.h <<_ACEOF
16444#define off_t long int
16445_ACEOF
4c4b3eb0 16446
44720bef
JB
16447fi
16448
16449
16450 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22e05272 16451if test "x$ac_cv_type_intptr_t" = xyes; then :
44720bef
JB
16452
16453$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16454
16455else
16456 for ac_type in 'int' 'long int' 'long long int'; do
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458/* end confdefs.h. */
16459$ac_includes_default
16460int
16461main ()
16462{
16463static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16464test_array [0] = 0;
16465return test_array [0];
44720bef
JB
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"; then :
16472
16473cat >>confdefs.h <<_ACEOF
16474#define intptr_t $ac_type
16475_ACEOF
16476
16477 ac_type=
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 test -z "$ac_type" && break
16481 done
16482fi
16483
16484
16485
16486 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22e05272 16487if test "x$ac_cv_type_uintptr_t" = xyes; then :
44720bef
JB
16488
16489$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16490
16491else
16492 for ac_type in 'unsigned int' 'unsigned long int' \
16493 'unsigned long long int'; do
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h. */
16496$ac_includes_default
16497int
16498main ()
16499{
16500static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16501test_array [0] = 0;
16502return test_array [0];
44720bef
JB
16503
16504 ;
16505 return 0;
16506}
16507_ACEOF
16508if ac_fn_c_try_compile "$LINENO"; then :
16509
16510cat >>confdefs.h <<_ACEOF
16511#define uintptr_t $ac_type
16512_ACEOF
16513
16514 ac_type=
16515fi
16516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 test -z "$ac_type" && break
16518 done
16519fi
16520
16521
16522ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22e05272 16523if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
44720bef
JB
16524
16525cat >>confdefs.h <<_ACEOF
16526#define HAVE_PTRDIFF_T 1
16527_ACEOF
16528
16529
4c4b3eb0
PB
16530fi
16531
4c4b3eb0 16532
74544378 16533# check header files (we assume C89 is available, so don't check for that)
df65f093 16534
5213506e 16535
df65f093 16536
74544378
JB
16537 for ac_header in $ac_header_list
16538do :
16539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16540ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16541"
22e05272 16542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
74544378
JB
16543 cat >>confdefs.h <<_ACEOF
16544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16545_ACEOF
16546
5213506e 16547fi
df65f093 16548
74544378 16549done
864c28e1
RO
16550
16551
df65f093 16552
5213506e 16553
5213506e 16554
df65f093 16555
5213506e 16556
5213506e 16557
df65f093 16558
df65f093 16559
df65f093
SK
16560
16561
df65f093 16562
df65f093 16563
df65f093
SK
16564
16565
df65f093
SK
16566
16567
41724e6a 16568
2cbcdeba 16569
3969c39f 16570
1fb2002d
FXC
16571
16572
32aa3bff 16573
f77b6ca3 16574
f77b6ca3 16575
f77b6ca3 16576
f77b6ca3 16577
f77b6ca3 16578
f77b6ca3 16579
fa86f4f9
TB
16580
16581
9cbecd06
JB
16582
16583
edaaef60
JB
16584
16585
f77b6ca3 16586
f77b6ca3 16587
6de9cd9a 16588
c13e029b 16589inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16590
c13e029b
PB
16591acx_cv_header_stdint=stddef.h
16592acx_cv_header_stdint_kind="(already complete)"
16593for i in stdint.h $inttype_headers; do
16594 unset ac_cv_type_uintptr_t
16595 unset ac_cv_type_uintmax_t
16596 unset ac_cv_type_int_least32_t
16597 unset ac_cv_type_int_fast32_t
16598 unset ac_cv_type_uint64_t
16599 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16600 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16601#include <$i>
16602"
22e05272 16603if test "x$ac_cv_type_uintmax_t" = xyes; then :
c13e029b 16604 acx_cv_header_stdint=$i
5213506e 16605else
c13e029b 16606 continue
5213506e 16607fi
6de9cd9a 16608
c13e029b
PB
16609 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16610#include <$i>
16611"
22e05272 16612if test "x$ac_cv_type_uintptr_t" = xyes; then :
96b8a615 16613
5213506e 16614else
c13e029b 16615 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16616fi
96b8a615 16617
c13e029b
PB
16618 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16619#include <$i>
16620"
22e05272 16621if test "x$ac_cv_type_int_least32_t" = xyes; then :
c13e029b 16622
f77b6ca3 16623else
c13e029b 16624 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16625fi
5213506e 16626
c13e029b
PB
16627 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16628#include <$i>
16629"
22e05272 16630if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f77b6ca3 16631
c13e029b
PB
16632else
16633 acx_cv_header_stdint_kind="(mostly complete)"
16634fi
d72a3ac1 16635
c13e029b
PB
16636 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16637#include <$i>
16638"
22e05272 16639if test "x$ac_cv_type_uint64_t" = xyes; then :
d72a3ac1 16640
5213506e 16641else
c13e029b
PB
16642 acx_cv_header_stdint_kind="(lacks uint64_t)"
16643fi
f77b6ca3 16644
c13e029b
PB
16645 break
16646done
16647if test "$acx_cv_header_stdint" = stddef.h; then
16648 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16649 for i in stdint.h $inttype_headers; do
16650 unset ac_cv_type_uintptr_t
16651 unset ac_cv_type_uint32_t
16652 unset ac_cv_type_uint64_t
16653 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16654 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16655#include <$i>
16656"
22e05272 16657if test "x$ac_cv_type_uint32_t" = xyes; then :
c13e029b
PB
16658 acx_cv_header_stdint=$i
16659else
16660 continue
5213506e 16661fi
f77b6ca3 16662
c13e029b
PB
16663 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16664#include <$i>
16665"
22e05272 16666if test "x$ac_cv_type_uint64_t" = xyes; then :
8845001b 16667
c13e029b 16668fi
185d7d97 16669
c13e029b
PB
16670 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16671#include <$i>
16672"
22e05272 16673if test "x$ac_cv_type_uintptr_t" = xyes; then :
185d7d97 16674
c13e029b 16675fi
35059811 16676
c13e029b
PB
16677 break
16678 done
16679fi
16680if test "$acx_cv_header_stdint" = stddef.h; then
16681 acx_cv_header_stdint_kind="(u_intXX_t style)"
16682 for i in sys/types.h $inttype_headers; do
16683 unset ac_cv_type_u_int32_t
16684 unset ac_cv_type_u_int64_t
16685 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16686 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16687#include <$i>
16688"
22e05272 16689if test "x$ac_cv_type_u_int32_t" = xyes; then :
c13e029b 16690 acx_cv_header_stdint=$i
d72a3ac1 16691else
c13e029b
PB
16692 continue
16693fi
a119fc1c 16694
c13e029b
PB
16695 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16696#include <$i>
16697"
22e05272 16698if test "x$ac_cv_type_u_int64_t" = xyes; then :
a119fc1c 16699
c13e029b 16700fi
a119fc1c 16701
c13e029b
PB
16702 break
16703 done
a119fc1c 16704fi
c13e029b
PB
16705if test "$acx_cv_header_stdint" = stddef.h; then
16706 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16707fi
a119fc1c 16708
c13e029b
PB
16709test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16710test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16711test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16712test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16713test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16714
c13e029b 16715# ----------------- Summarize what we found so far
5213506e 16716
c13e029b
PB
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16718$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16719
c13e029b
PB
16720case `$as_basename -- gstdint.h ||
16721$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16722 Xgstdint.h : 'X\(//\)$' \| \
16723 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16724$as_echo X/gstdint.h |
16725 sed '/^.*\/\([^/][^/]*\)\/*$/{
16726 s//\1/
16727 q
16728 }
16729 /^X\/\(\/\/\)$/{
16730 s//\1/
16731 q
16732 }
16733 /^X\/\(\/\).*/{
16734 s//\1/
16735 q
16736 }
16737 s/.*/./; q'` in
16738 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16739$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16740 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16741$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16742 *) ;;
16743esac
a119fc1c 16744
c13e029b
PB
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16746$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16747
c13e029b 16748# ----------------- done included file, check C basic types --------
868d75db 16749
c13e029b
PB
16750# Lacking an uintptr_t? Test size of void *
16751case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16752 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16753# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16754# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16755# This bug is HP SR number 8606223364.
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16757$as_echo_n "checking size of void *... " >&6; }
22e05272 16758if ${ac_cv_sizeof_void_p+:} false; then :
c13e029b
PB
16759 $as_echo_n "(cached) " >&6
16760else
16761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16762
c13e029b
PB
16763else
16764 if test "$ac_cv_type_void_p" = yes; then
16765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16767as_fn_error 77 "cannot compute sizeof (void *)
16768See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16769 else
16770 ac_cv_sizeof_void_p=0
16771 fi
16772fi
d72a3ac1 16773
c13e029b
PB
16774fi
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16776$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16777
868d75db
FXC
16778
16779
d72a3ac1 16780cat >>confdefs.h <<_ACEOF
c13e029b 16781#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16782_ACEOF
d72a3ac1 16783
c13e029b
PB
16784 ;;
16785esac
d72a3ac1 16786
c13e029b
PB
16787# Lacking an uint64_t? Test size of long
16788case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16789 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16792# This bug is HP SR number 8606223364.
16793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16794$as_echo_n "checking size of long... " >&6; }
22e05272 16795if ${ac_cv_sizeof_long+:} false; then :
5213506e
RW
16796 $as_echo_n "(cached) " >&6
16797else
c13e029b 16798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16799
7f483eec 16800else
c13e029b
PB
16801 if test "$ac_cv_type_long" = yes; then
16802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16804as_fn_error 77 "cannot compute sizeof (long)
16805See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16806 else
16807 ac_cv_sizeof_long=0
16808 fi
5213506e 16809fi
7f483eec 16810
c13e029b
PB
16811fi
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16813$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16814
7f483eec 16815
d72a3ac1
PB
16816
16817cat >>confdefs.h <<_ACEOF
c13e029b 16818#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16819_ACEOF
7f483eec 16820
c13e029b
PB
16821 ;;
16822esac
29e86cb0 16823
c13e029b
PB
16824if test $acx_cv_header_stdint = stddef.h; then
16825 # Lacking a good header? Test size of everything and deduce all types.
16826 # The cast to long int works around a bug in the HP C Compiler
16827# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16828# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16829# This bug is HP SR number 8606223364.
16830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16831$as_echo_n "checking size of int... " >&6; }
22e05272 16832if ${ac_cv_sizeof_int+:} false; then :
c13e029b
PB
16833 $as_echo_n "(cached) " >&6
16834else
16835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16836
c13e029b
PB
16837else
16838 if test "$ac_cv_type_int" = yes; then
16839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16841as_fn_error 77 "cannot compute sizeof (int)
16842See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16843 else
16844 ac_cv_sizeof_int=0
16845 fi
16846fi
d8163f5c 16847
c13e029b
PB
16848fi
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16850$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16851
16852
868d75db 16853
d72a3ac1 16854cat >>confdefs.h <<_ACEOF
c13e029b 16855#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16856_ACEOF
16857
d72a3ac1 16858
c13e029b
PB
16859 # The cast to long int works around a bug in the HP C Compiler
16860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16862# This bug is HP SR number 8606223364.
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16864$as_echo_n "checking size of short... " >&6; }
22e05272 16865if ${ac_cv_sizeof_short+:} false; then :
c13e029b
PB
16866 $as_echo_n "(cached) " >&6
16867else
16868 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16869
c13e029b
PB
16870else
16871 if test "$ac_cv_type_short" = yes; then
16872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16874as_fn_error 77 "cannot compute sizeof (short)
16875See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16876 else
16877 ac_cv_sizeof_short=0
16878 fi
16879fi
d72a3ac1 16880
c13e029b
PB
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16883$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16884
16885
16886
c13e029b
PB
16887cat >>confdefs.h <<_ACEOF
16888#define SIZEOF_SHORT $ac_cv_sizeof_short
16889_ACEOF
d72a3ac1
PB
16890
16891
c13e029b
PB
16892 # The cast to long int works around a bug in the HP C Compiler
16893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16895# This bug is HP SR number 8606223364.
16896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16897$as_echo_n "checking size of char... " >&6; }
22e05272 16898if ${ac_cv_sizeof_char+:} false; then :
c13e029b
PB
16899 $as_echo_n "(cached) " >&6
16900else
16901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16902
c13e029b
PB
16903else
16904 if test "$ac_cv_type_char" = yes; then
16905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16907as_fn_error 77 "cannot compute sizeof (char)
16908See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16909 else
16910 ac_cv_sizeof_char=0
16911 fi
16912fi
d72a3ac1 16913
c13e029b
PB
16914fi
16915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16916$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16917
16918
d72a3ac1 16919
5213506e 16920cat >>confdefs.h <<_ACEOF
c13e029b 16921#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16922_ACEOF
868d75db 16923
868d75db 16924
2017c370 16925
c13e029b
PB
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16927$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16928 case "$ac_cv_sizeof_char" in
16929 1) acx_cv_type_int8_t=char ;;
22e05272 16930 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16931 esac
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16933$as_echo "$acx_cv_type_int8_t" >&6; }
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16936$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16937 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16938 2:*) acx_cv_type_int16_t=int ;;
16939 *:2) acx_cv_type_int16_t=short ;;
22e05272 16940 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16941 esac
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16943$as_echo "$acx_cv_type_int16_t" >&6; }
16944
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16946$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16947 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16948 4:*) acx_cv_type_int32_t=int ;;
16949 *:4) acx_cv_type_int32_t=long ;;
22e05272 16950 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16951 esac
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16953$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16954fi
16955
c13e029b 16956# These tests are here to make the output prettier
d72a3ac1 16957
c13e029b
PB
16958if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16959 case "$ac_cv_sizeof_long" in
16960 8) acx_cv_type_int64_t=long ;;
16961 esac
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16963$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16965$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16966fi
16967
16968# Now we can use the above types
16969
16970if test "$ac_cv_type_uintptr_t" != yes; then
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16972$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16973 case $ac_cv_sizeof_void_p in
16974 2) acx_cv_type_intptr_t=int16_t ;;
16975 4) acx_cv_type_intptr_t=int32_t ;;
16976 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16977 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16978 esac
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16980$as_echo "$acx_cv_type_intptr_t" >&6; }
16981fi
d72a3ac1 16982
c13e029b 16983# ----------------- done all checks, emit header -------------
5213506e 16984ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16985
2017c370 16986
5213506e
RW
16987
16988
16989ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22e05272 16990if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5213506e
RW
16991
16992cat >>confdefs.h <<_ACEOF
16993#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16994_ACEOF
2017c370 16995
5213506e 16996
2017c370 16997fi
5213506e 16998ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22e05272 16999if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5213506e
RW
17000
17001cat >>confdefs.h <<_ACEOF
17002#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
17003_ACEOF
17004
5213506e 17005
2017c370 17006fi
5213506e 17007ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22e05272 17008if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
2017c370 17009
5213506e
RW
17010cat >>confdefs.h <<_ACEOF
17011#define HAVE_STRUCT_STAT_ST_RDEV 1
17012_ACEOF
868d75db
FXC
17013
17014
f02d008e 17015fi
5213506e
RW
17016
17017
bd459d0b
JG
17018case "${host}--x${with_newlib}" in
17019 mips*--xyes)
17020 hardwire_newlib=1;;
d3ca2257
NS
17021 nvptx*--xyes)
17022 hardwire_newlib=1;;
bd459d0b
JG
17023esac
17024
5213506e 17025# Check for library functions.
bd459d0b 17026if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
17027 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
17028 # may not work correctly, because the compiler may not be able to
17029 # link executables.
17030
17031$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17032
17033
17034$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
17035
17036
b4005c71
SE
17037$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17038
17039
b4005c71
SE
17040$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17041
17042
17043$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17044
17045
17046$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17047
cb83df66 17048
ebfedee6
HPN
17049$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17050
17051
17052$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17053
17054
cb83df66
SE
17055 # At some point, we should differentiate between architectures
17056 # like x86, which have long double versions, and alpha/powerpc/etc.,
17057 # which don't. For the time being, punt.
17058 if test x"long_double_math_on_this_cpu" = x"yes"; then
17059
17060$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
17061
17062 fi
b4005c71 17063else
f77b6ca3 17064
f77b6ca3 17065
74544378
JB
17066
17067 for ac_func in $ac_func_list
5213506e
RW
17068do :
17069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 17071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5213506e
RW
17072 cat >>confdefs.h <<_ACEOF
17073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074_ACEOF
f77b6ca3 17075
5213506e
RW
17076fi
17077done
f77b6ca3 17078
f77b6ca3 17079
5213506e 17080
96b8a615 17081
5213506e 17082
5213506e 17083
5213506e 17084
6de9cd9a 17085
6de9cd9a 17086
b6e7a3d1 17087
b6e7a3d1 17088
6de9cd9a 17089
4c0c6b9f 17090
4c0c6b9f 17091
4c0c6b9f 17092
4c0c6b9f 17093
4c0c6b9f 17094
4c0c6b9f 17095
4c0c6b9f 17096
4c0c6b9f 17097
868d75db 17098
868d75db 17099
868d75db 17100
868d75db 17101
4c0c6b9f 17102
4c0c6b9f 17103
4c0c6b9f 17104
4c0c6b9f 17105
6422c112 17106
6422c112 17107
6422c112 17108
74544378
JB
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
68ee9c08 17165
227e441f 17166
9cbecd06
JB
17167
17168
4269f19c
JB
17169
17170
b5b58343
UW
17171
17172
70480968
JB
17173
17174
d66d6d15
JB
17175
17176
edaaef60
JB
17177
17178
ef536b41
JB
17179
17180
17181
17182
133d0d42
JJ
17183
17184
17185
17186
f8886038
JB
17187
17188
227e441f 17189
8ecd1c0d
TB
17190
17191
b4005c71 17192fi
74544378 17193
4179e59a
TB
17194# Check strerror_r, cannot be above as versions with two and three arguments exist
17195
17196 ac_save_CFLAGS="$CFLAGS"
17197 CFLAGS="-Wimplicit-function-declaration -Werror"
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199/* end confdefs.h. */
17200#define _GNU_SOURCE 1
17201 #include <string.h>
17202 #include <locale.h>
17203int
17204main ()
17205{
17206char s[128]; strerror_r(5, s, 128);
17207 ;
17208 return 0;
17209}
17210_ACEOF
17211if ac_fn_c_try_compile "$LINENO"; then :
17212
17213$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17214
17215fi
17216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 CFLAGS="$ac_save_CFLAGS"
17218
17219 ac_save_CFLAGS="$CFLAGS"
17220 CFLAGS="-Wimplicit-function-declaration -Werror"
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h. */
17223#define _GNU_SOURCE 1
17224 #include <string.h>
17225 #include <locale.h>
17226int
17227main ()
17228{
17229char s[128]; strerror_r(5, s);
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_compile "$LINENO"; then :
17235
17236$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17237
17238fi
17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240 CFLAGS="$ac_save_CFLAGS"
6422c112 17241
4c0c6b9f 17242
453310d8 17243# Check for C99 (and other IEEE) math functions
db9f46a9
TG
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17245$as_echo_n "checking for sin in -lm... " >&6; }
22e05272 17246if ${ac_cv_lib_m_sin+:} false; then :
5213506e 17247 $as_echo_n "(cached) " >&6
453310d8
RS
17248else
17249 ac_check_lib_save_LIBS=$LIBS
17250LIBS="-lm $LIBS"
f02d008e 17251if test x$gcc_no_link = xyes; then
22e05272 17252 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17253fi
5213506e 17254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17255/* end confdefs.h. */
17256
5213506e
RW
17257/* Override any GCC internal prototype to avoid an error.
17258 Use char because int might match the return type of a GCC
17259 builtin and then its argument prototype would still apply. */
453310d8
RS
17260#ifdef __cplusplus
17261extern "C"
17262#endif
db9f46a9 17263char sin ();
453310d8
RS
17264int
17265main ()
17266{
db9f46a9 17267return sin ();
453310d8
RS
17268 ;
17269 return 0;
17270}
17271_ACEOF
5213506e 17272if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17273 ac_cv_lib_m_sin=yes
453310d8 17274else
db9f46a9 17275 ac_cv_lib_m_sin=no
453310d8 17276fi
5213506e
RW
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17279LIBS=$ac_check_lib_save_LIBS
17280fi
db9f46a9
TG
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17282$as_echo "$ac_cv_lib_m_sin" >&6; }
22e05272 17283if test "x$ac_cv_lib_m_sin" = xyes; then :
db9f46a9
TG
17284 cat >>confdefs.h <<_ACEOF
17285#define HAVE_LIBM 1
17286_ACEOF
453310d8 17287
db9f46a9 17288 LIBS="-lm $LIBS"
453310d8
RS
17289
17290fi
17291
db9f46a9
TG
17292
17293
17294
17295
17296
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17299$as_echo_n "checking for acosf... " >&6; }
22e05272 17300if ${gcc_cv_math_func_acosf+:} false; then :
5213506e 17301 $as_echo_n "(cached) " >&6
f02d008e 17302else
db9f46a9 17303 if test x$gcc_no_link = xyes; then
22e05272 17304 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17305fi
5213506e 17306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17307/* end confdefs.h. */
17308
db9f46a9
TG
17309#ifdef HAVE_COMPLEX_H
17310#include <complex.h>
17311#endif
17312#ifdef HAVE_MATH_H
17313#include <math.h>
f02d008e 17314#endif
db9f46a9
TG
17315
17316int (*ptr)() = (int (*)())acosf;
17317
f02d008e
JD
17318int
17319main ()
17320{
f02d008e
JD
17321 return 0;
17322}
db9f46a9 17323
f02d008e 17324_ACEOF
5213506e 17325if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17326 gcc_cv_math_func_acosf=yes
f02d008e 17327else
db9f46a9 17328 gcc_cv_math_func_acosf=no
f02d008e 17329fi
5213506e
RW
17330rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
f02d008e 17332fi
db9f46a9
TG
17333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17334$as_echo "$gcc_cv_math_func_acosf" >&6; }
17335 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 17336
f38a14ca
TG
17337cat >>confdefs.h <<_ACEOF
17338#define HAVE_ACOSF 1
17339_ACEOF
db9f46a9
TG
17340
17341 fi
f02d008e 17342
f02d008e 17343
f02d008e 17344
db9f46a9
TG
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17347$as_echo_n "checking for acos... " >&6; }
22e05272 17348if ${gcc_cv_math_func_acos+:} false; then :
5213506e 17349 $as_echo_n "(cached) " >&6
453310d8 17350else
db9f46a9 17351 if test x$gcc_no_link = xyes; then
22e05272 17352 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17353fi
5213506e 17354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17355/* end confdefs.h. */
17356
db9f46a9
TG
17357#ifdef HAVE_COMPLEX_H
17358#include <complex.h>
453310d8 17359#endif
db9f46a9
TG
17360#ifdef HAVE_MATH_H
17361#include <math.h>
17362#endif
17363
17364int (*ptr)() = (int (*)())acos;
17365
453310d8
RS
17366int
17367main ()
17368{
453310d8
RS
17369 return 0;
17370}
db9f46a9 17371
453310d8 17372_ACEOF
5213506e 17373if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17374 gcc_cv_math_func_acos=yes
453310d8 17375else
db9f46a9 17376 gcc_cv_math_func_acos=no
453310d8 17377fi
5213506e
RW
17378rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
453310d8 17380fi
db9f46a9
TG
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17382$as_echo "$gcc_cv_math_func_acos" >&6; }
17383 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 17384
f38a14ca
TG
17385cat >>confdefs.h <<_ACEOF
17386#define HAVE_ACOS 1
17387_ACEOF
db9f46a9
TG
17388
17389 fi
17390
453310d8 17391
453310d8 17392
453310d8 17393
db9f46a9
TG
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17395$as_echo_n "checking for acosl... " >&6; }
22e05272 17396if ${gcc_cv_math_func_acosl+:} false; then :
5213506e 17397 $as_echo_n "(cached) " >&6
f02d008e 17398else
db9f46a9 17399 if test x$gcc_no_link = xyes; then
22e05272 17400 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17401fi
5213506e 17402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17403/* end confdefs.h. */
17404
db9f46a9
TG
17405#ifdef HAVE_COMPLEX_H
17406#include <complex.h>
17407#endif
17408#ifdef HAVE_MATH_H
17409#include <math.h>
f02d008e 17410#endif
db9f46a9
TG
17411
17412int (*ptr)() = (int (*)())acosl;
17413
f02d008e
JD
17414int
17415main ()
17416{
f02d008e
JD
17417 return 0;
17418}
db9f46a9 17419
f02d008e 17420_ACEOF
5213506e 17421if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17422 gcc_cv_math_func_acosl=yes
f02d008e 17423else
db9f46a9 17424 gcc_cv_math_func_acosl=no
f02d008e 17425fi
5213506e
RW
17426rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
f02d008e 17428fi
db9f46a9
TG
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17430$as_echo "$gcc_cv_math_func_acosl" >&6; }
17431 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 17432
f38a14ca
TG
17433cat >>confdefs.h <<_ACEOF
17434#define HAVE_ACOSL 1
17435_ACEOF
db9f46a9
TG
17436
17437 fi
f02d008e 17438
f02d008e 17439
f02d008e 17440
db9f46a9
TG
17441
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17443$as_echo_n "checking for acoshf... " >&6; }
22e05272 17444if ${gcc_cv_math_func_acoshf+:} false; then :
5213506e 17445 $as_echo_n "(cached) " >&6
453310d8 17446else
db9f46a9 17447 if test x$gcc_no_link = xyes; then
22e05272 17448 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17449fi
5213506e 17450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17451/* end confdefs.h. */
17452
db9f46a9
TG
17453#ifdef HAVE_COMPLEX_H
17454#include <complex.h>
453310d8 17455#endif
db9f46a9
TG
17456#ifdef HAVE_MATH_H
17457#include <math.h>
17458#endif
17459
17460int (*ptr)() = (int (*)())acoshf;
17461
453310d8
RS
17462int
17463main ()
17464{
453310d8
RS
17465 return 0;
17466}
db9f46a9 17467
453310d8 17468_ACEOF
5213506e 17469if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17470 gcc_cv_math_func_acoshf=yes
453310d8 17471else
db9f46a9 17472 gcc_cv_math_func_acoshf=no
453310d8 17473fi
5213506e
RW
17474rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
453310d8 17476fi
db9f46a9
TG
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17478$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17479 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 17480
f38a14ca
TG
17481cat >>confdefs.h <<_ACEOF
17482#define HAVE_ACOSHF 1
17483_ACEOF
453310d8 17484
db9f46a9 17485 fi
453310d8 17486
453310d8 17487
db9f46a9
TG
17488
17489
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17491$as_echo_n "checking for acosh... " >&6; }
22e05272 17492if ${gcc_cv_math_func_acosh+:} false; then :
5213506e 17493 $as_echo_n "(cached) " >&6
453310d8 17494else
db9f46a9 17495 if test x$gcc_no_link = xyes; then
22e05272 17496 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17497fi
5213506e 17498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17499/* end confdefs.h. */
17500
db9f46a9
TG
17501#ifdef HAVE_COMPLEX_H
17502#include <complex.h>
17503#endif
17504#ifdef HAVE_MATH_H
17505#include <math.h>
453310d8 17506#endif
db9f46a9
TG
17507
17508int (*ptr)() = (int (*)())acosh;
17509
453310d8
RS
17510int
17511main ()
17512{
5213506e
RW
17513 return 0;
17514}
db9f46a9 17515
5213506e
RW
17516_ACEOF
17517if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17518 gcc_cv_math_func_acosh=yes
453310d8 17519else
db9f46a9 17520 gcc_cv_math_func_acosh=no
453310d8 17521fi
5213506e
RW
17522rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
453310d8 17524fi
db9f46a9
TG
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17526$as_echo "$gcc_cv_math_func_acosh" >&6; }
17527 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17528
f38a14ca
TG
17529cat >>confdefs.h <<_ACEOF
17530#define HAVE_ACOSH 1
17531_ACEOF
db9f46a9
TG
17532
17533 fi
453310d8 17534
453310d8 17535
453310d8 17536
db9f46a9
TG
17537
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17539$as_echo_n "checking for acoshl... " >&6; }
22e05272 17540if ${gcc_cv_math_func_acoshl+:} false; then :
5213506e 17541 $as_echo_n "(cached) " >&6
f02d008e 17542else
db9f46a9 17543 if test x$gcc_no_link = xyes; then
22e05272 17544 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17545fi
5213506e 17546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17547/* end confdefs.h. */
17548
db9f46a9
TG
17549#ifdef HAVE_COMPLEX_H
17550#include <complex.h>
f02d008e 17551#endif
db9f46a9
TG
17552#ifdef HAVE_MATH_H
17553#include <math.h>
17554#endif
17555
17556int (*ptr)() = (int (*)())acoshl;
17557
f02d008e
JD
17558int
17559main ()
17560{
f02d008e
JD
17561 return 0;
17562}
db9f46a9 17563
f02d008e 17564_ACEOF
5213506e 17565if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17566 gcc_cv_math_func_acoshl=yes
f02d008e 17567else
db9f46a9 17568 gcc_cv_math_func_acoshl=no
f02d008e 17569fi
5213506e
RW
17570rm -f core conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
f02d008e 17572fi
db9f46a9
TG
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17574$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17575 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17576
f38a14ca
TG
17577cat >>confdefs.h <<_ACEOF
17578#define HAVE_ACOSHL 1
17579_ACEOF
db9f46a9
TG
17580
17581 fi
17582
f02d008e 17583
f02d008e 17584
f02d008e 17585
db9f46a9
TG
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17587$as_echo_n "checking for asinf... " >&6; }
22e05272 17588if ${gcc_cv_math_func_asinf+:} false; then :
5213506e 17589 $as_echo_n "(cached) " >&6
453310d8 17590else
db9f46a9 17591 if test x$gcc_no_link = xyes; then
22e05272 17592 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17593fi
5213506e 17594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17595/* end confdefs.h. */
17596
db9f46a9
TG
17597#ifdef HAVE_COMPLEX_H
17598#include <complex.h>
17599#endif
17600#ifdef HAVE_MATH_H
17601#include <math.h>
453310d8 17602#endif
db9f46a9
TG
17603
17604int (*ptr)() = (int (*)())asinf;
17605
453310d8
RS
17606int
17607main ()
17608{
453310d8
RS
17609 return 0;
17610}
db9f46a9 17611
453310d8 17612_ACEOF
5213506e 17613if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17614 gcc_cv_math_func_asinf=yes
453310d8 17615else
db9f46a9 17616 gcc_cv_math_func_asinf=no
453310d8 17617fi
5213506e
RW
17618rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
453310d8 17620fi
db9f46a9
TG
17621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17622$as_echo "$gcc_cv_math_func_asinf" >&6; }
17623 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17624
f38a14ca
TG
17625cat >>confdefs.h <<_ACEOF
17626#define HAVE_ASINF 1
17627_ACEOF
db9f46a9
TG
17628
17629 fi
453310d8 17630
453310d8 17631
453310d8 17632
db9f46a9
TG
17633
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17635$as_echo_n "checking for asin... " >&6; }
22e05272 17636if ${gcc_cv_math_func_asin+:} false; then :
5213506e 17637 $as_echo_n "(cached) " >&6
453310d8 17638else
db9f46a9 17639 if test x$gcc_no_link = xyes; then
22e05272 17640 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17641fi
5213506e 17642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17643/* end confdefs.h. */
17644
db9f46a9
TG
17645#ifdef HAVE_COMPLEX_H
17646#include <complex.h>
453310d8 17647#endif
db9f46a9
TG
17648#ifdef HAVE_MATH_H
17649#include <math.h>
17650#endif
17651
17652int (*ptr)() = (int (*)())asin;
17653
453310d8
RS
17654int
17655main ()
17656{
453310d8
RS
17657 return 0;
17658}
db9f46a9 17659
453310d8 17660_ACEOF
5213506e 17661if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17662 gcc_cv_math_func_asin=yes
453310d8 17663else
db9f46a9 17664 gcc_cv_math_func_asin=no
453310d8 17665fi
5213506e
RW
17666rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
453310d8 17668fi
db9f46a9
TG
17669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17670$as_echo "$gcc_cv_math_func_asin" >&6; }
17671 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17672
f38a14ca
TG
17673cat >>confdefs.h <<_ACEOF
17674#define HAVE_ASIN 1
17675_ACEOF
453310d8 17676
db9f46a9 17677 fi
453310d8 17678
453310d8 17679
db9f46a9
TG
17680
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17683$as_echo_n "checking for asinl... " >&6; }
22e05272 17684if ${gcc_cv_math_func_asinl+:} false; then :
5213506e 17685 $as_echo_n "(cached) " >&6
453310d8 17686else
db9f46a9 17687 if test x$gcc_no_link = xyes; then
22e05272 17688 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17689fi
5213506e 17690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17691/* end confdefs.h. */
17692
db9f46a9
TG
17693#ifdef HAVE_COMPLEX_H
17694#include <complex.h>
17695#endif
17696#ifdef HAVE_MATH_H
17697#include <math.h>
453310d8 17698#endif
db9f46a9
TG
17699
17700int (*ptr)() = (int (*)())asinl;
17701
453310d8
RS
17702int
17703main ()
17704{
453310d8
RS
17705 return 0;
17706}
db9f46a9 17707
453310d8 17708_ACEOF
5213506e 17709if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17710 gcc_cv_math_func_asinl=yes
453310d8 17711else
db9f46a9 17712 gcc_cv_math_func_asinl=no
453310d8 17713fi
5213506e
RW
17714rm -f core conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
453310d8 17716fi
db9f46a9
TG
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17718$as_echo "$gcc_cv_math_func_asinl" >&6; }
17719 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17720
f38a14ca
TG
17721cat >>confdefs.h <<_ACEOF
17722#define HAVE_ASINL 1
17723_ACEOF
db9f46a9
TG
17724
17725 fi
453310d8 17726
453310d8 17727
453310d8 17728
db9f46a9
TG
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17731$as_echo_n "checking for asinhf... " >&6; }
22e05272 17732if ${gcc_cv_math_func_asinhf+:} false; then :
5213506e 17733 $as_echo_n "(cached) " >&6
453310d8 17734else
db9f46a9 17735 if test x$gcc_no_link = xyes; then
22e05272 17736 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17737fi
5213506e 17738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17739/* end confdefs.h. */
17740
db9f46a9
TG
17741#ifdef HAVE_COMPLEX_H
17742#include <complex.h>
453310d8 17743#endif
db9f46a9
TG
17744#ifdef HAVE_MATH_H
17745#include <math.h>
17746#endif
17747
17748int (*ptr)() = (int (*)())asinhf;
17749
453310d8
RS
17750int
17751main ()
17752{
453310d8
RS
17753 return 0;
17754}
db9f46a9 17755
453310d8 17756_ACEOF
5213506e 17757if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17758 gcc_cv_math_func_asinhf=yes
453310d8 17759else
db9f46a9 17760 gcc_cv_math_func_asinhf=no
453310d8 17761fi
5213506e
RW
17762rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
453310d8 17764fi
db9f46a9
TG
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17766$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17767 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17768
f38a14ca
TG
17769cat >>confdefs.h <<_ACEOF
17770#define HAVE_ASINHF 1
17771_ACEOF
db9f46a9
TG
17772
17773 fi
17774
453310d8 17775
453310d8 17776
453310d8 17777
db9f46a9
TG
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17779$as_echo_n "checking for asinh... " >&6; }
22e05272 17780if ${gcc_cv_math_func_asinh+:} false; then :
5213506e 17781 $as_echo_n "(cached) " >&6
453310d8 17782else
db9f46a9 17783 if test x$gcc_no_link = xyes; then
22e05272 17784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17785fi
5213506e 17786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17787/* end confdefs.h. */
17788
db9f46a9
TG
17789#ifdef HAVE_COMPLEX_H
17790#include <complex.h>
17791#endif
17792#ifdef HAVE_MATH_H
17793#include <math.h>
453310d8 17794#endif
db9f46a9
TG
17795
17796int (*ptr)() = (int (*)())asinh;
17797
453310d8
RS
17798int
17799main ()
17800{
453310d8
RS
17801 return 0;
17802}
db9f46a9 17803
453310d8 17804_ACEOF
5213506e 17805if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17806 gcc_cv_math_func_asinh=yes
453310d8 17807else
db9f46a9 17808 gcc_cv_math_func_asinh=no
453310d8 17809fi
5213506e
RW
17810rm -f core conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
453310d8 17812fi
db9f46a9
TG
17813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17814$as_echo "$gcc_cv_math_func_asinh" >&6; }
17815 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17816
f38a14ca
TG
17817cat >>confdefs.h <<_ACEOF
17818#define HAVE_ASINH 1
17819_ACEOF
db9f46a9
TG
17820
17821 fi
453310d8 17822
453310d8 17823
453310d8 17824
db9f46a9
TG
17825
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17827$as_echo_n "checking for asinhl... " >&6; }
22e05272 17828if ${gcc_cv_math_func_asinhl+:} false; then :
5213506e 17829 $as_echo_n "(cached) " >&6
6e4d9244 17830else
db9f46a9 17831 if test x$gcc_no_link = xyes; then
22e05272 17832 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17833fi
5213506e 17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17835/* end confdefs.h. */
17836
db9f46a9
TG
17837#ifdef HAVE_COMPLEX_H
17838#include <complex.h>
6e4d9244 17839#endif
db9f46a9
TG
17840#ifdef HAVE_MATH_H
17841#include <math.h>
17842#endif
17843
17844int (*ptr)() = (int (*)())asinhl;
17845
6e4d9244
EB
17846int
17847main ()
17848{
6e4d9244
EB
17849 return 0;
17850}
db9f46a9 17851
6e4d9244 17852_ACEOF
5213506e 17853if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17854 gcc_cv_math_func_asinhl=yes
6e4d9244 17855else
db9f46a9 17856 gcc_cv_math_func_asinhl=no
6e4d9244 17857fi
5213506e
RW
17858rm -f core conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17860fi
db9f46a9
TG
17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17862$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17863 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17864
f38a14ca
TG
17865cat >>confdefs.h <<_ACEOF
17866#define HAVE_ASINHL 1
17867_ACEOF
6e4d9244 17868
db9f46a9 17869 fi
6e4d9244 17870
6e4d9244 17871
db9f46a9
TG
17872
17873
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17875$as_echo_n "checking for atan2f... " >&6; }
22e05272 17876if ${gcc_cv_math_func_atan2f+:} false; then :
5213506e 17877 $as_echo_n "(cached) " >&6
453310d8 17878else
db9f46a9 17879 if test x$gcc_no_link = xyes; then
22e05272 17880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17881fi
5213506e 17882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17883/* end confdefs.h. */
17884
db9f46a9
TG
17885#ifdef HAVE_COMPLEX_H
17886#include <complex.h>
453310d8 17887#endif
db9f46a9
TG
17888#ifdef HAVE_MATH_H
17889#include <math.h>
17890#endif
17891
17892int (*ptr)() = (int (*)())atan2f;
17893
17894int
453310d8
RS
17895main ()
17896{
453310d8
RS
17897 return 0;
17898}
db9f46a9 17899
453310d8 17900_ACEOF
5213506e 17901if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17902 gcc_cv_math_func_atan2f=yes
453310d8 17903else
db9f46a9 17904 gcc_cv_math_func_atan2f=no
453310d8 17905fi
5213506e
RW
17906rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
453310d8 17908fi
db9f46a9
TG
17909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17910$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17911 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17912
f38a14ca
TG
17913cat >>confdefs.h <<_ACEOF
17914#define HAVE_ATAN2F 1
17915_ACEOF
db9f46a9
TG
17916
17917 fi
453310d8 17918
453310d8 17919
453310d8 17920
db9f46a9
TG
17921
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17923$as_echo_n "checking for atan2... " >&6; }
22e05272 17924if ${gcc_cv_math_func_atan2+:} false; then :
5213506e 17925 $as_echo_n "(cached) " >&6
453310d8 17926else
db9f46a9 17927 if test x$gcc_no_link = xyes; then
22e05272 17928 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17929fi
5213506e 17930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17931/* end confdefs.h. */
17932
db9f46a9
TG
17933#ifdef HAVE_COMPLEX_H
17934#include <complex.h>
453310d8 17935#endif
db9f46a9
TG
17936#ifdef HAVE_MATH_H
17937#include <math.h>
17938#endif
17939
17940int (*ptr)() = (int (*)())atan2;
17941
453310d8
RS
17942int
17943main ()
17944{
453310d8
RS
17945 return 0;
17946}
db9f46a9 17947
453310d8 17948_ACEOF
5213506e 17949if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17950 gcc_cv_math_func_atan2=yes
453310d8 17951else
db9f46a9 17952 gcc_cv_math_func_atan2=no
453310d8 17953fi
5213506e
RW
17954rm -f core conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
453310d8 17956fi
db9f46a9
TG
17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17958$as_echo "$gcc_cv_math_func_atan2" >&6; }
17959 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17960
f38a14ca
TG
17961cat >>confdefs.h <<_ACEOF
17962#define HAVE_ATAN2 1
17963_ACEOF
453310d8 17964
db9f46a9 17965 fi
453310d8 17966
453310d8 17967
db9f46a9
TG
17968
17969
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17971$as_echo_n "checking for atan2l... " >&6; }
22e05272 17972if ${gcc_cv_math_func_atan2l+:} false; then :
5213506e 17973 $as_echo_n "(cached) " >&6
453310d8 17974else
db9f46a9 17975 if test x$gcc_no_link = xyes; then
22e05272 17976 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17977fi
5213506e 17978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17979/* end confdefs.h. */
17980
db9f46a9
TG
17981#ifdef HAVE_COMPLEX_H
17982#include <complex.h>
17983#endif
17984#ifdef HAVE_MATH_H
17985#include <math.h>
453310d8 17986#endif
db9f46a9
TG
17987
17988int (*ptr)() = (int (*)())atan2l;
17989
453310d8
RS
17990int
17991main ()
17992{
453310d8
RS
17993 return 0;
17994}
db9f46a9 17995
453310d8 17996_ACEOF
5213506e 17997if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17998 gcc_cv_math_func_atan2l=yes
453310d8 17999else
db9f46a9 18000 gcc_cv_math_func_atan2l=no
453310d8 18001fi
5213506e
RW
18002rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
453310d8 18004fi
db9f46a9
TG
18005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
18006$as_echo "$gcc_cv_math_func_atan2l" >&6; }
18007 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 18008
f38a14ca
TG
18009cat >>confdefs.h <<_ACEOF
18010#define HAVE_ATAN2L 1
18011_ACEOF
db9f46a9
TG
18012
18013 fi
453310d8 18014
453310d8 18015
453310d8 18016
db9f46a9
TG
18017
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
18019$as_echo_n "checking for atanf... " >&6; }
22e05272 18020if ${gcc_cv_math_func_atanf+:} false; then :
5213506e 18021 $as_echo_n "(cached) " >&6
453310d8 18022else
db9f46a9 18023 if test x$gcc_no_link = xyes; then
22e05272 18024 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18025fi
5213506e 18026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18027/* end confdefs.h. */
18028
db9f46a9
TG
18029#ifdef HAVE_COMPLEX_H
18030#include <complex.h>
453310d8 18031#endif
db9f46a9
TG
18032#ifdef HAVE_MATH_H
18033#include <math.h>
18034#endif
18035
18036int (*ptr)() = (int (*)())atanf;
18037
453310d8
RS
18038int
18039main ()
18040{
453310d8
RS
18041 return 0;
18042}
db9f46a9 18043
453310d8 18044_ACEOF
5213506e 18045if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18046 gcc_cv_math_func_atanf=yes
453310d8 18047else
db9f46a9 18048 gcc_cv_math_func_atanf=no
453310d8 18049fi
5213506e
RW
18050rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
453310d8 18052fi
db9f46a9
TG
18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
18054$as_echo "$gcc_cv_math_func_atanf" >&6; }
18055 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 18056
f38a14ca
TG
18057cat >>confdefs.h <<_ACEOF
18058#define HAVE_ATANF 1
18059_ACEOF
db9f46a9
TG
18060
18061 fi
18062
453310d8 18063
453310d8 18064
453310d8 18065
db9f46a9
TG
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
18067$as_echo_n "checking for atan... " >&6; }
22e05272 18068if ${gcc_cv_math_func_atan+:} false; then :
5213506e 18069 $as_echo_n "(cached) " >&6
453310d8 18070else
db9f46a9 18071 if test x$gcc_no_link = xyes; then
22e05272 18072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18073fi
5213506e 18074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18075/* end confdefs.h. */
18076
db9f46a9
TG
18077#ifdef HAVE_COMPLEX_H
18078#include <complex.h>
18079#endif
18080#ifdef HAVE_MATH_H
18081#include <math.h>
453310d8 18082#endif
db9f46a9
TG
18083
18084int (*ptr)() = (int (*)())atan;
18085
453310d8
RS
18086int
18087main ()
18088{
453310d8
RS
18089 return 0;
18090}
db9f46a9 18091
453310d8 18092_ACEOF
5213506e 18093if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18094 gcc_cv_math_func_atan=yes
453310d8 18095else
db9f46a9 18096 gcc_cv_math_func_atan=no
453310d8 18097fi
5213506e
RW
18098rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
453310d8 18100fi
db9f46a9
TG
18101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
18102$as_echo "$gcc_cv_math_func_atan" >&6; }
18103 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 18104
f38a14ca
TG
18105cat >>confdefs.h <<_ACEOF
18106#define HAVE_ATAN 1
18107_ACEOF
db9f46a9
TG
18108
18109 fi
453310d8 18110
453310d8 18111
453310d8 18112
db9f46a9
TG
18113
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
18115$as_echo_n "checking for atanl... " >&6; }
22e05272 18116if ${gcc_cv_math_func_atanl+:} false; then :
5213506e 18117 $as_echo_n "(cached) " >&6
32aa3bff 18118else
db9f46a9 18119 if test x$gcc_no_link = xyes; then
22e05272 18120 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18121fi
5213506e 18122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
18123/* end confdefs.h. */
18124
db9f46a9
TG
18125#ifdef HAVE_COMPLEX_H
18126#include <complex.h>
32aa3bff 18127#endif
db9f46a9
TG
18128#ifdef HAVE_MATH_H
18129#include <math.h>
18130#endif
18131
18132int (*ptr)() = (int (*)())atanl;
18133
32aa3bff
FXC
18134int
18135main ()
18136{
32aa3bff
FXC
18137 return 0;
18138}
db9f46a9 18139
32aa3bff 18140_ACEOF
5213506e 18141if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18142 gcc_cv_math_func_atanl=yes
32aa3bff 18143else
db9f46a9 18144 gcc_cv_math_func_atanl=no
32aa3bff 18145fi
5213506e
RW
18146rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
32aa3bff 18148fi
db9f46a9
TG
18149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
18150$as_echo "$gcc_cv_math_func_atanl" >&6; }
18151 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 18152
f38a14ca
TG
18153cat >>confdefs.h <<_ACEOF
18154#define HAVE_ATANL 1
18155_ACEOF
32aa3bff 18156
db9f46a9 18157 fi
32aa3bff 18158
32aa3bff 18159
db9f46a9
TG
18160
18161
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
18163$as_echo_n "checking for atanhf... " >&6; }
22e05272 18164if ${gcc_cv_math_func_atanhf+:} false; then :
5213506e 18165 $as_echo_n "(cached) " >&6
453310d8 18166else
db9f46a9 18167 if test x$gcc_no_link = xyes; then
22e05272 18168 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18169fi
5213506e 18170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18171/* end confdefs.h. */
18172
db9f46a9
TG
18173#ifdef HAVE_COMPLEX_H
18174#include <complex.h>
18175#endif
18176#ifdef HAVE_MATH_H
18177#include <math.h>
453310d8 18178#endif
db9f46a9
TG
18179
18180int (*ptr)() = (int (*)())atanhf;
18181
453310d8
RS
18182int
18183main ()
18184{
453310d8
RS
18185 return 0;
18186}
db9f46a9 18187
453310d8 18188_ACEOF
5213506e 18189if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18190 gcc_cv_math_func_atanhf=yes
453310d8 18191else
db9f46a9 18192 gcc_cv_math_func_atanhf=no
453310d8 18193fi
5213506e
RW
18194rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
453310d8 18196fi
db9f46a9
TG
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18198$as_echo "$gcc_cv_math_func_atanhf" >&6; }
18199 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 18200
f38a14ca
TG
18201cat >>confdefs.h <<_ACEOF
18202#define HAVE_ATANHF 1
18203_ACEOF
db9f46a9
TG
18204
18205 fi
453310d8 18206
453310d8 18207
453310d8 18208
db9f46a9
TG
18209
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18211$as_echo_n "checking for atanh... " >&6; }
22e05272 18212if ${gcc_cv_math_func_atanh+:} false; then :
5213506e 18213 $as_echo_n "(cached) " >&6
453310d8 18214else
db9f46a9 18215 if test x$gcc_no_link = xyes; then
22e05272 18216 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18217fi
5213506e 18218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18219/* end confdefs.h. */
18220
db9f46a9
TG
18221#ifdef HAVE_COMPLEX_H
18222#include <complex.h>
453310d8 18223#endif
db9f46a9
TG
18224#ifdef HAVE_MATH_H
18225#include <math.h>
18226#endif
18227
18228int (*ptr)() = (int (*)())atanh;
18229
453310d8
RS
18230int
18231main ()
18232{
453310d8
RS
18233 return 0;
18234}
db9f46a9 18235
453310d8 18236_ACEOF
5213506e 18237if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18238 gcc_cv_math_func_atanh=yes
453310d8 18239else
db9f46a9 18240 gcc_cv_math_func_atanh=no
453310d8 18241fi
5213506e
RW
18242rm -f core conftest.err conftest.$ac_objext \
18243 conftest$ac_exeext conftest.$ac_ext
453310d8 18244fi
db9f46a9
TG
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18246$as_echo "$gcc_cv_math_func_atanh" >&6; }
18247 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 18248
f38a14ca
TG
18249cat >>confdefs.h <<_ACEOF
18250#define HAVE_ATANH 1
18251_ACEOF
db9f46a9
TG
18252
18253 fi
18254
453310d8 18255
453310d8 18256
453310d8 18257
db9f46a9
TG
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18259$as_echo_n "checking for atanhl... " >&6; }
22e05272 18260if ${gcc_cv_math_func_atanhl+:} false; then :
5213506e 18261 $as_echo_n "(cached) " >&6
bf4d99cf 18262else
db9f46a9 18263 if test x$gcc_no_link = xyes; then
22e05272 18264 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18265fi
5213506e 18266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
18267/* end confdefs.h. */
18268
db9f46a9
TG
18269#ifdef HAVE_COMPLEX_H
18270#include <complex.h>
18271#endif
18272#ifdef HAVE_MATH_H
18273#include <math.h>
bf4d99cf 18274#endif
db9f46a9
TG
18275
18276int (*ptr)() = (int (*)())atanhl;
18277
bf4d99cf
TS
18278int
18279main ()
18280{
bf4d99cf
TS
18281 return 0;
18282}
db9f46a9 18283
bf4d99cf 18284_ACEOF
5213506e 18285if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18286 gcc_cv_math_func_atanhl=yes
bf4d99cf 18287else
db9f46a9 18288 gcc_cv_math_func_atanhl=no
bf4d99cf 18289fi
5213506e
RW
18290rm -f core conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 18292fi
db9f46a9
TG
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18294$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18295 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 18296
f38a14ca
TG
18297cat >>confdefs.h <<_ACEOF
18298#define HAVE_ATANHL 1
18299_ACEOF
db9f46a9
TG
18300
18301 fi
bf4d99cf 18302
bf4d99cf 18303
bf4d99cf 18304
db9f46a9
TG
18305
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18307$as_echo_n "checking for cargf... " >&6; }
22e05272 18308if ${gcc_cv_math_func_cargf+:} false; then :
5213506e 18309 $as_echo_n "(cached) " >&6
a2a2059f 18310else
db9f46a9 18311 if test x$gcc_no_link = xyes; then
22e05272 18312 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18313fi
5213506e 18314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18315/* end confdefs.h. */
18316
db9f46a9
TG
18317#ifdef HAVE_COMPLEX_H
18318#include <complex.h>
a2a2059f 18319#endif
db9f46a9
TG
18320#ifdef HAVE_MATH_H
18321#include <math.h>
18322#endif
18323
18324int (*ptr)() = (int (*)())cargf;
18325
453310d8
RS
18326int
18327main ()
18328{
453310d8
RS
18329 return 0;
18330}
db9f46a9 18331
453310d8 18332_ACEOF
5213506e 18333if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18334 gcc_cv_math_func_cargf=yes
453310d8 18335else
db9f46a9 18336 gcc_cv_math_func_cargf=no
453310d8 18337fi
5213506e
RW
18338rm -f core conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
453310d8 18340fi
db9f46a9
TG
18341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18342$as_echo "$gcc_cv_math_func_cargf" >&6; }
18343 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 18344
f38a14ca
TG
18345cat >>confdefs.h <<_ACEOF
18346#define HAVE_CARGF 1
18347_ACEOF
453310d8 18348
db9f46a9 18349 fi
453310d8 18350
453310d8 18351
db9f46a9
TG
18352
18353
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18355$as_echo_n "checking for carg... " >&6; }
22e05272 18356if ${gcc_cv_math_func_carg+:} false; then :
5213506e 18357 $as_echo_n "(cached) " >&6
453310d8 18358else
db9f46a9 18359 if test x$gcc_no_link = xyes; then
22e05272 18360 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18361fi
5213506e 18362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18363/* end confdefs.h. */
18364
db9f46a9
TG
18365#ifdef HAVE_COMPLEX_H
18366#include <complex.h>
18367#endif
18368#ifdef HAVE_MATH_H
18369#include <math.h>
453310d8 18370#endif
db9f46a9
TG
18371
18372int (*ptr)() = (int (*)())carg;
18373
a2a2059f
BD
18374int
18375main ()
18376{
a2a2059f
BD
18377 return 0;
18378}
db9f46a9 18379
a2a2059f 18380_ACEOF
5213506e 18381if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18382 gcc_cv_math_func_carg=yes
a2a2059f 18383else
db9f46a9 18384 gcc_cv_math_func_carg=no
a2a2059f 18385fi
5213506e
RW
18386rm -f core conftest.err conftest.$ac_objext \
18387 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18388fi
db9f46a9
TG
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18390$as_echo "$gcc_cv_math_func_carg" >&6; }
18391 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 18392
f38a14ca
TG
18393cat >>confdefs.h <<_ACEOF
18394#define HAVE_CARG 1
18395_ACEOF
db9f46a9
TG
18396
18397 fi
a2a2059f 18398
a2a2059f 18399
a2a2059f 18400
db9f46a9
TG
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18403$as_echo_n "checking for cargl... " >&6; }
22e05272 18404if ${gcc_cv_math_func_cargl+:} false; then :
5213506e 18405 $as_echo_n "(cached) " >&6
a2a2059f 18406else
db9f46a9 18407 if test x$gcc_no_link = xyes; then
22e05272 18408 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18409fi
5213506e 18410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18411/* end confdefs.h. */
18412
db9f46a9
TG
18413#ifdef HAVE_COMPLEX_H
18414#include <complex.h>
a2a2059f 18415#endif
db9f46a9
TG
18416#ifdef HAVE_MATH_H
18417#include <math.h>
18418#endif
18419
18420int (*ptr)() = (int (*)())cargl;
18421
a2a2059f
BD
18422int
18423main ()
18424{
a2a2059f
BD
18425 return 0;
18426}
db9f46a9 18427
a2a2059f 18428_ACEOF
5213506e 18429if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18430 gcc_cv_math_func_cargl=yes
a2a2059f 18431else
db9f46a9 18432 gcc_cv_math_func_cargl=no
a2a2059f 18433fi
5213506e
RW
18434rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18436fi
db9f46a9
TG
18437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18438$as_echo "$gcc_cv_math_func_cargl" >&6; }
18439 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 18440
f38a14ca
TG
18441cat >>confdefs.h <<_ACEOF
18442#define HAVE_CARGL 1
18443_ACEOF
db9f46a9
TG
18444
18445 fi
18446
a2a2059f 18447
a2a2059f 18448
a2a2059f 18449
db9f46a9
TG
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18451$as_echo_n "checking for ceilf... " >&6; }
22e05272 18452if ${gcc_cv_math_func_ceilf+:} false; then :
5213506e 18453 $as_echo_n "(cached) " >&6
ae973d6a 18454else
db9f46a9 18455 if test x$gcc_no_link = xyes; then
22e05272 18456 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18457fi
5213506e 18458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
18459/* end confdefs.h. */
18460
db9f46a9
TG
18461#ifdef HAVE_COMPLEX_H
18462#include <complex.h>
18463#endif
18464#ifdef HAVE_MATH_H
18465#include <math.h>
ae973d6a 18466#endif
db9f46a9
TG
18467
18468int (*ptr)() = (int (*)())ceilf;
18469
ae973d6a
FXC
18470int
18471main ()
18472{
ae973d6a
FXC
18473 return 0;
18474}
db9f46a9 18475
ae973d6a 18476_ACEOF
5213506e 18477if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18478 gcc_cv_math_func_ceilf=yes
ae973d6a 18479else
db9f46a9 18480 gcc_cv_math_func_ceilf=no
ae973d6a 18481fi
5213506e
RW
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
ae973d6a 18484fi
db9f46a9
TG
18485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18486$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18487 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 18488
f38a14ca
TG
18489cat >>confdefs.h <<_ACEOF
18490#define HAVE_CEILF 1
18491_ACEOF
db9f46a9
TG
18492
18493 fi
ae973d6a 18494
ae973d6a 18495
ae973d6a 18496
db9f46a9
TG
18497
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18499$as_echo_n "checking for ceil... " >&6; }
22e05272 18500if ${gcc_cv_math_func_ceil+:} false; then :
5213506e 18501 $as_echo_n "(cached) " >&6
a9e7b9d3 18502else
db9f46a9 18503 if test x$gcc_no_link = xyes; then
22e05272 18504 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18505fi
5213506e 18506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18507/* end confdefs.h. */
18508
db9f46a9
TG
18509#ifdef HAVE_COMPLEX_H
18510#include <complex.h>
a9e7b9d3 18511#endif
db9f46a9
TG
18512#ifdef HAVE_MATH_H
18513#include <math.h>
18514#endif
18515
18516int (*ptr)() = (int (*)())ceil;
18517
a9e7b9d3
PB
18518int
18519main ()
18520{
a9e7b9d3
PB
18521 return 0;
18522}
db9f46a9 18523
a9e7b9d3 18524_ACEOF
5213506e 18525if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18526 gcc_cv_math_func_ceil=yes
a9e7b9d3 18527else
db9f46a9 18528 gcc_cv_math_func_ceil=no
a9e7b9d3 18529fi
5213506e
RW
18530rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18532fi
db9f46a9
TG
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18534$as_echo "$gcc_cv_math_func_ceil" >&6; }
18535 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18536
f38a14ca
TG
18537cat >>confdefs.h <<_ACEOF
18538#define HAVE_CEIL 1
18539_ACEOF
a9e7b9d3 18540
db9f46a9 18541 fi
a9e7b9d3 18542
a9e7b9d3 18543
db9f46a9
TG
18544
18545
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18547$as_echo_n "checking for ceill... " >&6; }
22e05272 18548if ${gcc_cv_math_func_ceill+:} false; then :
5213506e 18549 $as_echo_n "(cached) " >&6
a9e7b9d3 18550else
db9f46a9 18551 if test x$gcc_no_link = xyes; then
22e05272 18552 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18553fi
5213506e 18554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18555/* end confdefs.h. */
18556
db9f46a9
TG
18557#ifdef HAVE_COMPLEX_H
18558#include <complex.h>
18559#endif
18560#ifdef HAVE_MATH_H
18561#include <math.h>
a9e7b9d3 18562#endif
db9f46a9
TG
18563
18564int (*ptr)() = (int (*)())ceill;
18565
a9e7b9d3
PB
18566int
18567main ()
18568{
a9e7b9d3
PB
18569 return 0;
18570}
db9f46a9 18571
a9e7b9d3 18572_ACEOF
5213506e 18573if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18574 gcc_cv_math_func_ceill=yes
a9e7b9d3 18575else
db9f46a9 18576 gcc_cv_math_func_ceill=no
a9e7b9d3 18577fi
5213506e
RW
18578rm -f core conftest.err conftest.$ac_objext \
18579 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18580fi
db9f46a9
TG
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18582$as_echo "$gcc_cv_math_func_ceill" >&6; }
18583 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18584
f38a14ca
TG
18585cat >>confdefs.h <<_ACEOF
18586#define HAVE_CEILL 1
18587_ACEOF
db9f46a9
TG
18588
18589 fi
a9e7b9d3 18590
453310d8 18591
453310d8 18592
db9f46a9
TG
18593
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18595$as_echo_n "checking for copysignf... " >&6; }
22e05272 18596if ${gcc_cv_math_func_copysignf+:} false; then :
5213506e 18597 $as_echo_n "(cached) " >&6
453310d8 18598else
db9f46a9 18599 if test x$gcc_no_link = xyes; then
22e05272 18600 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18601fi
5213506e 18602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18603/* end confdefs.h. */
18604
db9f46a9
TG
18605#ifdef HAVE_COMPLEX_H
18606#include <complex.h>
453310d8 18607#endif
db9f46a9
TG
18608#ifdef HAVE_MATH_H
18609#include <math.h>
18610#endif
18611
18612int (*ptr)() = (int (*)())copysignf;
18613
453310d8
RS
18614int
18615main ()
18616{
453310d8
RS
18617 return 0;
18618}
db9f46a9 18619
453310d8 18620_ACEOF
5213506e 18621if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18622 gcc_cv_math_func_copysignf=yes
453310d8 18623else
db9f46a9 18624 gcc_cv_math_func_copysignf=no
453310d8 18625fi
5213506e
RW
18626rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
453310d8 18628fi
db9f46a9
TG
18629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18630$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18631 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18632
f38a14ca
TG
18633cat >>confdefs.h <<_ACEOF
18634#define HAVE_COPYSIGNF 1
18635_ACEOF
db9f46a9
TG
18636
18637 fi
18638
453310d8 18639
453310d8 18640
453310d8 18641
db9f46a9
TG
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18643$as_echo_n "checking for copysign... " >&6; }
22e05272 18644if ${gcc_cv_math_func_copysign+:} false; then :
5213506e 18645 $as_echo_n "(cached) " >&6
453310d8 18646else
db9f46a9 18647 if test x$gcc_no_link = xyes; then
22e05272 18648 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18649fi
5213506e 18650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18651/* end confdefs.h. */
18652
db9f46a9
TG
18653#ifdef HAVE_COMPLEX_H
18654#include <complex.h>
18655#endif
18656#ifdef HAVE_MATH_H
18657#include <math.h>
453310d8 18658#endif
db9f46a9
TG
18659
18660int (*ptr)() = (int (*)())copysign;
18661
453310d8
RS
18662int
18663main ()
18664{
453310d8
RS
18665 return 0;
18666}
db9f46a9 18667
453310d8 18668_ACEOF
5213506e 18669if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18670 gcc_cv_math_func_copysign=yes
453310d8 18671else
db9f46a9 18672 gcc_cv_math_func_copysign=no
453310d8 18673fi
5213506e
RW
18674rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
453310d8 18676fi
db9f46a9
TG
18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18678$as_echo "$gcc_cv_math_func_copysign" >&6; }
18679 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18680
f38a14ca
TG
18681cat >>confdefs.h <<_ACEOF
18682#define HAVE_COPYSIGN 1
18683_ACEOF
db9f46a9
TG
18684
18685 fi
453310d8 18686
453310d8 18687
453310d8 18688
db9f46a9
TG
18689
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18691$as_echo_n "checking for copysignl... " >&6; }
22e05272 18692if ${gcc_cv_math_func_copysignl+:} false; then :
5213506e 18693 $as_echo_n "(cached) " >&6
453310d8 18694else
db9f46a9 18695 if test x$gcc_no_link = xyes; then
22e05272 18696 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18697fi
5213506e 18698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18699/* end confdefs.h. */
18700
db9f46a9
TG
18701#ifdef HAVE_COMPLEX_H
18702#include <complex.h>
453310d8 18703#endif
db9f46a9
TG
18704#ifdef HAVE_MATH_H
18705#include <math.h>
18706#endif
18707
18708int (*ptr)() = (int (*)())copysignl;
18709
453310d8
RS
18710int
18711main ()
18712{
5213506e
RW
18713 return 0;
18714}
db9f46a9 18715
5213506e
RW
18716_ACEOF
18717if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18718 gcc_cv_math_func_copysignl=yes
453310d8 18719else
db9f46a9 18720 gcc_cv_math_func_copysignl=no
453310d8 18721fi
5213506e
RW
18722rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
453310d8 18724fi
db9f46a9
TG
18725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18726$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18727 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18728
f38a14ca
TG
18729cat >>confdefs.h <<_ACEOF
18730#define HAVE_COPYSIGNL 1
18731_ACEOF
453310d8 18732
db9f46a9 18733 fi
a9e7b9d3 18734
a9e7b9d3 18735
db9f46a9
TG
18736
18737
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18739$as_echo_n "checking for cosf... " >&6; }
22e05272 18740if ${gcc_cv_math_func_cosf+:} false; then :
5213506e 18741 $as_echo_n "(cached) " >&6
69a2d125 18742else
db9f46a9 18743 if test x$gcc_no_link = xyes; then
22e05272 18744 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18745fi
5213506e 18746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18747/* end confdefs.h. */
18748
db9f46a9
TG
18749#ifdef HAVE_COMPLEX_H
18750#include <complex.h>
18751#endif
18752#ifdef HAVE_MATH_H
18753#include <math.h>
69a2d125 18754#endif
db9f46a9
TG
18755
18756int (*ptr)() = (int (*)())cosf;
18757
69a2d125
EB
18758int
18759main ()
18760{
69a2d125
EB
18761 return 0;
18762}
db9f46a9 18763
69a2d125 18764_ACEOF
5213506e 18765if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18766 gcc_cv_math_func_cosf=yes
69a2d125 18767else
db9f46a9 18768 gcc_cv_math_func_cosf=no
69a2d125 18769fi
5213506e
RW
18770rm -f core conftest.err conftest.$ac_objext \
18771 conftest$ac_exeext conftest.$ac_ext
69a2d125 18772fi
db9f46a9
TG
18773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18774$as_echo "$gcc_cv_math_func_cosf" >&6; }
18775 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18776
f38a14ca
TG
18777cat >>confdefs.h <<_ACEOF
18778#define HAVE_COSF 1
18779_ACEOF
db9f46a9
TG
18780
18781 fi
69a2d125 18782
1409cd0b 18783
1409cd0b 18784
db9f46a9
TG
18785
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18787$as_echo_n "checking for cos... " >&6; }
22e05272 18788if ${gcc_cv_math_func_cos+:} false; then :
5213506e 18789 $as_echo_n "(cached) " >&6
1409cd0b 18790else
db9f46a9 18791 if test x$gcc_no_link = xyes; then
22e05272 18792 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18793fi
5213506e 18794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18795/* end confdefs.h. */
18796
db9f46a9
TG
18797#ifdef HAVE_COMPLEX_H
18798#include <complex.h>
1409cd0b 18799#endif
db9f46a9
TG
18800#ifdef HAVE_MATH_H
18801#include <math.h>
18802#endif
18803
18804int (*ptr)() = (int (*)())cos;
18805
1409cd0b
FXC
18806int
18807main ()
18808{
1409cd0b
FXC
18809 return 0;
18810}
db9f46a9 18811
1409cd0b 18812_ACEOF
5213506e 18813if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18814 gcc_cv_math_func_cos=yes
1409cd0b 18815else
db9f46a9 18816 gcc_cv_math_func_cos=no
1409cd0b 18817fi
5213506e
RW
18818rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18820fi
db9f46a9
TG
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18822$as_echo "$gcc_cv_math_func_cos" >&6; }
18823 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18824
f38a14ca
TG
18825cat >>confdefs.h <<_ACEOF
18826#define HAVE_COS 1
18827_ACEOF
db9f46a9
TG
18828
18829 fi
18830
1409cd0b 18831
1409cd0b 18832
1409cd0b 18833
db9f46a9
TG
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18835$as_echo_n "checking for cosl... " >&6; }
22e05272 18836if ${gcc_cv_math_func_cosl+:} false; then :
5213506e 18837 $as_echo_n "(cached) " >&6
1409cd0b 18838else
db9f46a9 18839 if test x$gcc_no_link = xyes; then
22e05272 18840 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18841fi
5213506e 18842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18843/* end confdefs.h. */
18844
db9f46a9
TG
18845#ifdef HAVE_COMPLEX_H
18846#include <complex.h>
18847#endif
18848#ifdef HAVE_MATH_H
18849#include <math.h>
1409cd0b 18850#endif
db9f46a9
TG
18851
18852int (*ptr)() = (int (*)())cosl;
18853
1409cd0b
FXC
18854int
18855main ()
18856{
1409cd0b
FXC
18857 return 0;
18858}
db9f46a9 18859
1409cd0b 18860_ACEOF
5213506e 18861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18862 gcc_cv_math_func_cosl=yes
1409cd0b 18863else
db9f46a9 18864 gcc_cv_math_func_cosl=no
1409cd0b 18865fi
5213506e
RW
18866rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18868fi
db9f46a9
TG
18869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18870$as_echo "$gcc_cv_math_func_cosl" >&6; }
18871 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18872
f38a14ca
TG
18873cat >>confdefs.h <<_ACEOF
18874#define HAVE_COSL 1
18875_ACEOF
db9f46a9
TG
18876
18877 fi
1409cd0b 18878
1409cd0b 18879
1409cd0b 18880
db9f46a9
TG
18881
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18883$as_echo_n "checking for ccosf... " >&6; }
22e05272 18884if ${gcc_cv_math_func_ccosf+:} false; then :
5213506e 18885 $as_echo_n "(cached) " >&6
1409cd0b 18886else
db9f46a9 18887 if test x$gcc_no_link = xyes; then
22e05272 18888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18889fi
5213506e 18890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18891/* end confdefs.h. */
18892
db9f46a9
TG
18893#ifdef HAVE_COMPLEX_H
18894#include <complex.h>
1409cd0b 18895#endif
db9f46a9
TG
18896#ifdef HAVE_MATH_H
18897#include <math.h>
18898#endif
18899
18900int (*ptr)() = (int (*)())ccosf;
18901
1409cd0b
FXC
18902int
18903main ()
18904{
1409cd0b
FXC
18905 return 0;
18906}
db9f46a9 18907
1409cd0b 18908_ACEOF
5213506e 18909if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18910 gcc_cv_math_func_ccosf=yes
1409cd0b 18911else
db9f46a9 18912 gcc_cv_math_func_ccosf=no
1409cd0b 18913fi
5213506e
RW
18914rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18916fi
db9f46a9
TG
18917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18918$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18919 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18920
f38a14ca
TG
18921cat >>confdefs.h <<_ACEOF
18922#define HAVE_CCOSF 1
18923_ACEOF
1409cd0b 18924
db9f46a9 18925 fi
1409cd0b 18926
1409cd0b 18927
db9f46a9
TG
18928
18929
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18931$as_echo_n "checking for ccos... " >&6; }
22e05272 18932if ${gcc_cv_math_func_ccos+:} false; then :
5213506e 18933 $as_echo_n "(cached) " >&6
1409cd0b 18934else
db9f46a9 18935 if test x$gcc_no_link = xyes; then
22e05272 18936 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18937fi
5213506e 18938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18939/* end confdefs.h. */
18940
db9f46a9
TG
18941#ifdef HAVE_COMPLEX_H
18942#include <complex.h>
18943#endif
18944#ifdef HAVE_MATH_H
18945#include <math.h>
1409cd0b 18946#endif
db9f46a9
TG
18947
18948int (*ptr)() = (int (*)())ccos;
18949
1409cd0b
FXC
18950int
18951main ()
18952{
1409cd0b
FXC
18953 return 0;
18954}
db9f46a9 18955
1409cd0b 18956_ACEOF
5213506e 18957if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18958 gcc_cv_math_func_ccos=yes
1409cd0b 18959else
db9f46a9 18960 gcc_cv_math_func_ccos=no
1409cd0b 18961fi
5213506e
RW
18962rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18964fi
db9f46a9
TG
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18966$as_echo "$gcc_cv_math_func_ccos" >&6; }
18967 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18968
f38a14ca
TG
18969cat >>confdefs.h <<_ACEOF
18970#define HAVE_CCOS 1
18971_ACEOF
db9f46a9
TG
18972
18973 fi
1409cd0b 18974
1409cd0b 18975
1409cd0b 18976
db9f46a9
TG
18977
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18979$as_echo_n "checking for ccosl... " >&6; }
22e05272 18980if ${gcc_cv_math_func_ccosl+:} false; then :
5213506e 18981 $as_echo_n "(cached) " >&6
1409cd0b 18982else
db9f46a9 18983 if test x$gcc_no_link = xyes; then
22e05272 18984 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18985fi
5213506e 18986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18987/* end confdefs.h. */
18988
db9f46a9
TG
18989#ifdef HAVE_COMPLEX_H
18990#include <complex.h>
1409cd0b 18991#endif
db9f46a9
TG
18992#ifdef HAVE_MATH_H
18993#include <math.h>
18994#endif
18995
18996int (*ptr)() = (int (*)())ccosl;
18997
1409cd0b
FXC
18998int
18999main ()
19000{
1409cd0b
FXC
19001 return 0;
19002}
db9f46a9 19003
1409cd0b 19004_ACEOF
5213506e 19005if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19006 gcc_cv_math_func_ccosl=yes
1409cd0b 19007else
db9f46a9 19008 gcc_cv_math_func_ccosl=no
1409cd0b 19009fi
5213506e
RW
19010rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19012fi
db9f46a9
TG
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
19014$as_echo "$gcc_cv_math_func_ccosl" >&6; }
19015 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 19016
f38a14ca
TG
19017cat >>confdefs.h <<_ACEOF
19018#define HAVE_CCOSL 1
19019_ACEOF
db9f46a9
TG
19020
19021 fi
19022
1409cd0b 19023
1409cd0b 19024
1409cd0b 19025
db9f46a9
TG
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
19027$as_echo_n "checking for coshf... " >&6; }
22e05272 19028if ${gcc_cv_math_func_coshf+:} false; then :
5213506e 19029 $as_echo_n "(cached) " >&6
1409cd0b 19030else
db9f46a9 19031 if test x$gcc_no_link = xyes; then
22e05272 19032 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19033fi
5213506e 19034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19035/* end confdefs.h. */
19036
db9f46a9
TG
19037#ifdef HAVE_COMPLEX_H
19038#include <complex.h>
19039#endif
19040#ifdef HAVE_MATH_H
19041#include <math.h>
1409cd0b 19042#endif
db9f46a9
TG
19043
19044int (*ptr)() = (int (*)())coshf;
19045
1409cd0b
FXC
19046int
19047main ()
19048{
1409cd0b
FXC
19049 return 0;
19050}
db9f46a9 19051
1409cd0b 19052_ACEOF
5213506e 19053if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19054 gcc_cv_math_func_coshf=yes
1409cd0b 19055else
db9f46a9 19056 gcc_cv_math_func_coshf=no
1409cd0b 19057fi
5213506e
RW
19058rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19060fi
db9f46a9
TG
19061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
19062$as_echo "$gcc_cv_math_func_coshf" >&6; }
19063 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 19064
f38a14ca
TG
19065cat >>confdefs.h <<_ACEOF
19066#define HAVE_COSHF 1
19067_ACEOF
db9f46a9
TG
19068
19069 fi
1409cd0b 19070
1409cd0b 19071
1409cd0b 19072
db9f46a9
TG
19073
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
19075$as_echo_n "checking for cosh... " >&6; }
22e05272 19076if ${gcc_cv_math_func_cosh+:} false; then :
5213506e 19077 $as_echo_n "(cached) " >&6
1409cd0b 19078else
db9f46a9 19079 if test x$gcc_no_link = xyes; then
22e05272 19080 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19081fi
5213506e 19082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19083/* end confdefs.h. */
19084
db9f46a9
TG
19085#ifdef HAVE_COMPLEX_H
19086#include <complex.h>
1409cd0b 19087#endif
db9f46a9
TG
19088#ifdef HAVE_MATH_H
19089#include <math.h>
19090#endif
19091
19092int (*ptr)() = (int (*)())cosh;
19093
1409cd0b
FXC
19094int
19095main ()
19096{
1409cd0b
FXC
19097 return 0;
19098}
db9f46a9 19099
1409cd0b 19100_ACEOF
5213506e 19101if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19102 gcc_cv_math_func_cosh=yes
1409cd0b 19103else
db9f46a9 19104 gcc_cv_math_func_cosh=no
1409cd0b 19105fi
5213506e
RW
19106rm -f core conftest.err conftest.$ac_objext \
19107 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19108fi
db9f46a9
TG
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
19110$as_echo "$gcc_cv_math_func_cosh" >&6; }
19111 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 19112
f38a14ca
TG
19113cat >>confdefs.h <<_ACEOF
19114#define HAVE_COSH 1
19115_ACEOF
1409cd0b 19116
db9f46a9 19117 fi
1409cd0b 19118
1409cd0b 19119
db9f46a9
TG
19120
19121
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
19123$as_echo_n "checking for coshl... " >&6; }
22e05272 19124if ${gcc_cv_math_func_coshl+:} false; then :
5213506e 19125 $as_echo_n "(cached) " >&6
1409cd0b 19126else
db9f46a9 19127 if test x$gcc_no_link = xyes; then
22e05272 19128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19129fi
5213506e 19130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19131/* end confdefs.h. */
19132
db9f46a9
TG
19133#ifdef HAVE_COMPLEX_H
19134#include <complex.h>
19135#endif
19136#ifdef HAVE_MATH_H
19137#include <math.h>
1409cd0b 19138#endif
db9f46a9
TG
19139
19140int (*ptr)() = (int (*)())coshl;
19141
1409cd0b
FXC
19142int
19143main ()
19144{
1409cd0b
FXC
19145 return 0;
19146}
db9f46a9 19147
1409cd0b 19148_ACEOF
5213506e 19149if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19150 gcc_cv_math_func_coshl=yes
1409cd0b 19151else
db9f46a9 19152 gcc_cv_math_func_coshl=no
1409cd0b 19153fi
5213506e
RW
19154rm -f core conftest.err conftest.$ac_objext \
19155 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19156fi
db9f46a9
TG
19157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
19158$as_echo "$gcc_cv_math_func_coshl" >&6; }
19159 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 19160
f38a14ca
TG
19161cat >>confdefs.h <<_ACEOF
19162#define HAVE_COSHL 1
19163_ACEOF
db9f46a9
TG
19164
19165 fi
1409cd0b 19166
1409cd0b 19167
1409cd0b 19168
db9f46a9
TG
19169
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19171$as_echo_n "checking for ccoshf... " >&6; }
22e05272 19172if ${gcc_cv_math_func_ccoshf+:} false; then :
5213506e 19173 $as_echo_n "(cached) " >&6
1409cd0b 19174else
db9f46a9 19175 if test x$gcc_no_link = xyes; then
22e05272 19176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19177fi
5213506e 19178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19179/* end confdefs.h. */
19180
db9f46a9
TG
19181#ifdef HAVE_COMPLEX_H
19182#include <complex.h>
1409cd0b 19183#endif
db9f46a9
TG
19184#ifdef HAVE_MATH_H
19185#include <math.h>
19186#endif
19187
19188int (*ptr)() = (int (*)())ccoshf;
19189
1409cd0b
FXC
19190int
19191main ()
19192{
1409cd0b
FXC
19193 return 0;
19194}
db9f46a9 19195
1409cd0b 19196_ACEOF
5213506e 19197if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19198 gcc_cv_math_func_ccoshf=yes
1409cd0b 19199else
db9f46a9 19200 gcc_cv_math_func_ccoshf=no
1409cd0b 19201fi
5213506e
RW
19202rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19204fi
db9f46a9
TG
19205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19206$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19207 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 19208
f38a14ca
TG
19209cat >>confdefs.h <<_ACEOF
19210#define HAVE_CCOSHF 1
19211_ACEOF
db9f46a9
TG
19212
19213 fi
19214
1409cd0b 19215
1409cd0b 19216
1409cd0b 19217
db9f46a9
TG
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19219$as_echo_n "checking for ccosh... " >&6; }
22e05272 19220if ${gcc_cv_math_func_ccosh+:} false; then :
5213506e 19221 $as_echo_n "(cached) " >&6
1409cd0b 19222else
db9f46a9 19223 if test x$gcc_no_link = xyes; then
22e05272 19224 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19225fi
5213506e 19226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19227/* end confdefs.h. */
19228
db9f46a9
TG
19229#ifdef HAVE_COMPLEX_H
19230#include <complex.h>
19231#endif
19232#ifdef HAVE_MATH_H
19233#include <math.h>
1409cd0b 19234#endif
db9f46a9
TG
19235
19236int (*ptr)() = (int (*)())ccosh;
19237
1409cd0b
FXC
19238int
19239main ()
19240{
1409cd0b
FXC
19241 return 0;
19242}
db9f46a9 19243
1409cd0b 19244_ACEOF
5213506e 19245if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19246 gcc_cv_math_func_ccosh=yes
1409cd0b 19247else
db9f46a9 19248 gcc_cv_math_func_ccosh=no
1409cd0b 19249fi
5213506e
RW
19250rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19252fi
db9f46a9
TG
19253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19254$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19255 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 19256
f38a14ca
TG
19257cat >>confdefs.h <<_ACEOF
19258#define HAVE_CCOSH 1
19259_ACEOF
db9f46a9
TG
19260
19261 fi
1409cd0b 19262
1409cd0b 19263
1409cd0b 19264
db9f46a9
TG
19265
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19267$as_echo_n "checking for ccoshl... " >&6; }
22e05272 19268if ${gcc_cv_math_func_ccoshl+:} false; then :
5213506e 19269 $as_echo_n "(cached) " >&6
1409cd0b 19270else
db9f46a9 19271 if test x$gcc_no_link = xyes; then
22e05272 19272 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19273fi
5213506e 19274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19275/* end confdefs.h. */
19276
db9f46a9
TG
19277#ifdef HAVE_COMPLEX_H
19278#include <complex.h>
1409cd0b 19279#endif
db9f46a9
TG
19280#ifdef HAVE_MATH_H
19281#include <math.h>
19282#endif
19283
19284int (*ptr)() = (int (*)())ccoshl;
19285
1409cd0b
FXC
19286int
19287main ()
19288{
1409cd0b
FXC
19289 return 0;
19290}
db9f46a9 19291
1409cd0b 19292_ACEOF
5213506e 19293if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19294 gcc_cv_math_func_ccoshl=yes
1409cd0b 19295else
db9f46a9 19296 gcc_cv_math_func_ccoshl=no
1409cd0b 19297fi
5213506e
RW
19298rm -f core conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19300fi
db9f46a9
TG
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19302$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19303 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 19304
f38a14ca
TG
19305cat >>confdefs.h <<_ACEOF
19306#define HAVE_CCOSHL 1
19307_ACEOF
1409cd0b 19308
db9f46a9 19309 fi
1409cd0b 19310
1409cd0b 19311
db9f46a9
TG
19312
19313
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19315$as_echo_n "checking for expf... " >&6; }
22e05272 19316if ${gcc_cv_math_func_expf+:} false; then :
5213506e 19317 $as_echo_n "(cached) " >&6
1409cd0b 19318else
db9f46a9 19319 if test x$gcc_no_link = xyes; then
22e05272 19320 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19321fi
5213506e 19322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19323/* end confdefs.h. */
19324
db9f46a9
TG
19325#ifdef HAVE_COMPLEX_H
19326#include <complex.h>
19327#endif
19328#ifdef HAVE_MATH_H
19329#include <math.h>
1409cd0b 19330#endif
db9f46a9
TG
19331
19332int (*ptr)() = (int (*)())expf;
19333
1409cd0b
FXC
19334int
19335main ()
19336{
1409cd0b
FXC
19337 return 0;
19338}
db9f46a9 19339
1409cd0b 19340_ACEOF
5213506e 19341if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19342 gcc_cv_math_func_expf=yes
1409cd0b 19343else
db9f46a9 19344 gcc_cv_math_func_expf=no
1409cd0b 19345fi
5213506e
RW
19346rm -f core conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19348fi
db9f46a9
TG
19349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19350$as_echo "$gcc_cv_math_func_expf" >&6; }
19351 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 19352
f38a14ca
TG
19353cat >>confdefs.h <<_ACEOF
19354#define HAVE_EXPF 1
19355_ACEOF
db9f46a9
TG
19356
19357 fi
1409cd0b 19358
1409cd0b 19359
1409cd0b 19360
db9f46a9
TG
19361
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19363$as_echo_n "checking for exp... " >&6; }
22e05272 19364if ${gcc_cv_math_func_exp+:} false; then :
5213506e 19365 $as_echo_n "(cached) " >&6
1409cd0b 19366else
db9f46a9 19367 if test x$gcc_no_link = xyes; then
22e05272 19368 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19369fi
5213506e 19370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19371/* end confdefs.h. */
19372
db9f46a9
TG
19373#ifdef HAVE_COMPLEX_H
19374#include <complex.h>
1409cd0b 19375#endif
db9f46a9
TG
19376#ifdef HAVE_MATH_H
19377#include <math.h>
19378#endif
19379
19380int (*ptr)() = (int (*)())exp;
19381
1409cd0b
FXC
19382int
19383main ()
19384{
1409cd0b
FXC
19385 return 0;
19386}
db9f46a9 19387
1409cd0b 19388_ACEOF
5213506e 19389if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19390 gcc_cv_math_func_exp=yes
1409cd0b 19391else
db9f46a9 19392 gcc_cv_math_func_exp=no
1409cd0b 19393fi
5213506e
RW
19394rm -f core conftest.err conftest.$ac_objext \
19395 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19396fi
db9f46a9
TG
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19398$as_echo "$gcc_cv_math_func_exp" >&6; }
19399 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 19400
f38a14ca
TG
19401cat >>confdefs.h <<_ACEOF
19402#define HAVE_EXP 1
19403_ACEOF
db9f46a9
TG
19404
19405 fi
19406
1409cd0b 19407
1409cd0b 19408
1409cd0b 19409
db9f46a9
TG
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19411$as_echo_n "checking for expl... " >&6; }
22e05272 19412if ${gcc_cv_math_func_expl+:} false; then :
5213506e 19413 $as_echo_n "(cached) " >&6
1409cd0b 19414else
db9f46a9 19415 if test x$gcc_no_link = xyes; then
22e05272 19416 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19417fi
5213506e 19418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19419/* end confdefs.h. */
19420
db9f46a9
TG
19421#ifdef HAVE_COMPLEX_H
19422#include <complex.h>
19423#endif
19424#ifdef HAVE_MATH_H
19425#include <math.h>
1409cd0b 19426#endif
db9f46a9
TG
19427
19428int (*ptr)() = (int (*)())expl;
19429
1409cd0b
FXC
19430int
19431main ()
19432{
1409cd0b
FXC
19433 return 0;
19434}
db9f46a9 19435
1409cd0b 19436_ACEOF
5213506e 19437if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19438 gcc_cv_math_func_expl=yes
1409cd0b 19439else
db9f46a9 19440 gcc_cv_math_func_expl=no
1409cd0b 19441fi
5213506e
RW
19442rm -f core conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19444fi
db9f46a9
TG
19445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19446$as_echo "$gcc_cv_math_func_expl" >&6; }
19447 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 19448
f38a14ca
TG
19449cat >>confdefs.h <<_ACEOF
19450#define HAVE_EXPL 1
19451_ACEOF
db9f46a9
TG
19452
19453 fi
1409cd0b 19454
1409cd0b 19455
1409cd0b 19456
db9f46a9
TG
19457
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19459$as_echo_n "checking for cexpf... " >&6; }
22e05272 19460if ${gcc_cv_math_func_cexpf+:} false; then :
5213506e 19461 $as_echo_n "(cached) " >&6
1409cd0b 19462else
db9f46a9 19463 if test x$gcc_no_link = xyes; then
22e05272 19464 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19465fi
5213506e 19466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19467/* end confdefs.h. */
19468
db9f46a9
TG
19469#ifdef HAVE_COMPLEX_H
19470#include <complex.h>
1409cd0b 19471#endif
db9f46a9
TG
19472#ifdef HAVE_MATH_H
19473#include <math.h>
19474#endif
19475
19476int (*ptr)() = (int (*)())cexpf;
19477
1409cd0b
FXC
19478int
19479main ()
19480{
1409cd0b
FXC
19481 return 0;
19482}
db9f46a9 19483
1409cd0b 19484_ACEOF
5213506e 19485if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19486 gcc_cv_math_func_cexpf=yes
1409cd0b 19487else
db9f46a9 19488 gcc_cv_math_func_cexpf=no
1409cd0b 19489fi
5213506e
RW
19490rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19492fi
db9f46a9
TG
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19494$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19495 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 19496
f38a14ca
TG
19497cat >>confdefs.h <<_ACEOF
19498#define HAVE_CEXPF 1
19499_ACEOF
1409cd0b 19500
db9f46a9 19501 fi
1409cd0b 19502
1409cd0b 19503
db9f46a9
TG
19504
19505
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19507$as_echo_n "checking for cexp... " >&6; }
22e05272 19508if ${gcc_cv_math_func_cexp+:} false; then :
5213506e 19509 $as_echo_n "(cached) " >&6
1409cd0b 19510else
db9f46a9 19511 if test x$gcc_no_link = xyes; then
22e05272 19512 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19513fi
5213506e 19514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19515/* end confdefs.h. */
19516
db9f46a9
TG
19517#ifdef HAVE_COMPLEX_H
19518#include <complex.h>
19519#endif
19520#ifdef HAVE_MATH_H
19521#include <math.h>
1409cd0b 19522#endif
db9f46a9
TG
19523
19524int (*ptr)() = (int (*)())cexp;
19525
1409cd0b
FXC
19526int
19527main ()
19528{
1409cd0b
FXC
19529 return 0;
19530}
db9f46a9 19531
1409cd0b 19532_ACEOF
5213506e 19533if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19534 gcc_cv_math_func_cexp=yes
1409cd0b 19535else
db9f46a9 19536 gcc_cv_math_func_cexp=no
1409cd0b 19537fi
5213506e
RW
19538rm -f core conftest.err conftest.$ac_objext \
19539 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19540fi
db9f46a9
TG
19541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19542$as_echo "$gcc_cv_math_func_cexp" >&6; }
19543 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19544
f38a14ca
TG
19545cat >>confdefs.h <<_ACEOF
19546#define HAVE_CEXP 1
19547_ACEOF
db9f46a9
TG
19548
19549 fi
1409cd0b 19550
1409cd0b 19551
1409cd0b 19552
db9f46a9
TG
19553
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19555$as_echo_n "checking for cexpl... " >&6; }
22e05272 19556if ${gcc_cv_math_func_cexpl+:} false; then :
5213506e 19557 $as_echo_n "(cached) " >&6
1409cd0b 19558else
db9f46a9 19559 if test x$gcc_no_link = xyes; then
22e05272 19560 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19561fi
5213506e 19562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19563/* end confdefs.h. */
19564
db9f46a9
TG
19565#ifdef HAVE_COMPLEX_H
19566#include <complex.h>
1409cd0b 19567#endif
db9f46a9
TG
19568#ifdef HAVE_MATH_H
19569#include <math.h>
19570#endif
19571
19572int (*ptr)() = (int (*)())cexpl;
19573
1409cd0b
FXC
19574int
19575main ()
19576{
1409cd0b
FXC
19577 return 0;
19578}
db9f46a9 19579
1409cd0b 19580_ACEOF
5213506e 19581if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19582 gcc_cv_math_func_cexpl=yes
1409cd0b 19583else
db9f46a9 19584 gcc_cv_math_func_cexpl=no
1409cd0b 19585fi
5213506e
RW
19586rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19588fi
db9f46a9
TG
19589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19590$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19591 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19592
f38a14ca
TG
19593cat >>confdefs.h <<_ACEOF
19594#define HAVE_CEXPL 1
19595_ACEOF
db9f46a9
TG
19596
19597 fi
19598
1409cd0b 19599
1409cd0b 19600
1409cd0b 19601
db9f46a9
TG
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19603$as_echo_n "checking for fabsf... " >&6; }
22e05272 19604if ${gcc_cv_math_func_fabsf+:} false; then :
5213506e 19605 $as_echo_n "(cached) " >&6
1409cd0b 19606else
db9f46a9 19607 if test x$gcc_no_link = xyes; then
22e05272 19608 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19609fi
5213506e 19610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19611/* end confdefs.h. */
19612
db9f46a9
TG
19613#ifdef HAVE_COMPLEX_H
19614#include <complex.h>
19615#endif
19616#ifdef HAVE_MATH_H
19617#include <math.h>
1409cd0b 19618#endif
db9f46a9
TG
19619
19620int (*ptr)() = (int (*)())fabsf;
19621
1409cd0b
FXC
19622int
19623main ()
19624{
1409cd0b
FXC
19625 return 0;
19626}
db9f46a9 19627
1409cd0b 19628_ACEOF
5213506e 19629if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19630 gcc_cv_math_func_fabsf=yes
1409cd0b 19631else
db9f46a9 19632 gcc_cv_math_func_fabsf=no
1409cd0b 19633fi
5213506e
RW
19634rm -f core conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19636fi
db9f46a9
TG
19637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19638$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19639 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19640
f38a14ca
TG
19641cat >>confdefs.h <<_ACEOF
19642#define HAVE_FABSF 1
19643_ACEOF
db9f46a9
TG
19644
19645 fi
1409cd0b 19646
1409cd0b 19647
1409cd0b 19648
db9f46a9
TG
19649
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19651$as_echo_n "checking for fabs... " >&6; }
22e05272 19652if ${gcc_cv_math_func_fabs+:} false; then :
5213506e 19653 $as_echo_n "(cached) " >&6
1409cd0b 19654else
db9f46a9 19655 if test x$gcc_no_link = xyes; then
22e05272 19656 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19657fi
5213506e 19658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19659/* end confdefs.h. */
19660
db9f46a9
TG
19661#ifdef HAVE_COMPLEX_H
19662#include <complex.h>
1409cd0b 19663#endif
db9f46a9
TG
19664#ifdef HAVE_MATH_H
19665#include <math.h>
19666#endif
19667
19668int (*ptr)() = (int (*)())fabs;
19669
1409cd0b
FXC
19670int
19671main ()
19672{
1409cd0b
FXC
19673 return 0;
19674}
db9f46a9 19675
1409cd0b 19676_ACEOF
5213506e 19677if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19678 gcc_cv_math_func_fabs=yes
1409cd0b 19679else
db9f46a9 19680 gcc_cv_math_func_fabs=no
1409cd0b 19681fi
5213506e
RW
19682rm -f core conftest.err conftest.$ac_objext \
19683 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19684fi
db9f46a9
TG
19685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19686$as_echo "$gcc_cv_math_func_fabs" >&6; }
19687 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19688
f38a14ca
TG
19689cat >>confdefs.h <<_ACEOF
19690#define HAVE_FABS 1
19691_ACEOF
1409cd0b 19692
db9f46a9 19693 fi
1409cd0b 19694
1409cd0b 19695
db9f46a9
TG
19696
19697
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19699$as_echo_n "checking for fabsl... " >&6; }
22e05272 19700if ${gcc_cv_math_func_fabsl+:} false; then :
5213506e 19701 $as_echo_n "(cached) " >&6
1409cd0b 19702else
db9f46a9 19703 if test x$gcc_no_link = xyes; then
22e05272 19704 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19705fi
5213506e 19706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19707/* end confdefs.h. */
19708
db9f46a9
TG
19709#ifdef HAVE_COMPLEX_H
19710#include <complex.h>
19711#endif
19712#ifdef HAVE_MATH_H
19713#include <math.h>
1409cd0b 19714#endif
db9f46a9
TG
19715
19716int (*ptr)() = (int (*)())fabsl;
19717
1409cd0b
FXC
19718int
19719main ()
19720{
1409cd0b
FXC
19721 return 0;
19722}
db9f46a9 19723
1409cd0b 19724_ACEOF
5213506e 19725if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19726 gcc_cv_math_func_fabsl=yes
1409cd0b 19727else
db9f46a9 19728 gcc_cv_math_func_fabsl=no
1409cd0b 19729fi
5213506e
RW
19730rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19732fi
db9f46a9
TG
19733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19734$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19735 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19736
f38a14ca
TG
19737cat >>confdefs.h <<_ACEOF
19738#define HAVE_FABSL 1
19739_ACEOF
db9f46a9
TG
19740
19741 fi
1409cd0b 19742
1409cd0b 19743
1409cd0b 19744
db9f46a9
TG
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19747$as_echo_n "checking for cabsf... " >&6; }
22e05272 19748if ${gcc_cv_math_func_cabsf+:} false; then :
5213506e 19749 $as_echo_n "(cached) " >&6
1409cd0b 19750else
db9f46a9 19751 if test x$gcc_no_link = xyes; then
22e05272 19752 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19753fi
5213506e 19754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19755/* end confdefs.h. */
19756
db9f46a9
TG
19757#ifdef HAVE_COMPLEX_H
19758#include <complex.h>
1409cd0b 19759#endif
db9f46a9
TG
19760#ifdef HAVE_MATH_H
19761#include <math.h>
19762#endif
19763
19764int (*ptr)() = (int (*)())cabsf;
19765
1409cd0b
FXC
19766int
19767main ()
19768{
1409cd0b
FXC
19769 return 0;
19770}
db9f46a9 19771
1409cd0b 19772_ACEOF
5213506e 19773if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19774 gcc_cv_math_func_cabsf=yes
1409cd0b 19775else
db9f46a9 19776 gcc_cv_math_func_cabsf=no
1409cd0b 19777fi
5213506e
RW
19778rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19780fi
db9f46a9
TG
19781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19782$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19783 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19784
f38a14ca
TG
19785cat >>confdefs.h <<_ACEOF
19786#define HAVE_CABSF 1
19787_ACEOF
db9f46a9
TG
19788
19789 fi
19790
1409cd0b 19791
1409cd0b 19792
1409cd0b 19793
db9f46a9
TG
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19795$as_echo_n "checking for cabs... " >&6; }
22e05272 19796if ${gcc_cv_math_func_cabs+:} false; then :
5213506e 19797 $as_echo_n "(cached) " >&6
1409cd0b 19798else
db9f46a9 19799 if test x$gcc_no_link = xyes; then
22e05272 19800 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19801fi
5213506e 19802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19803/* end confdefs.h. */
19804
db9f46a9
TG
19805#ifdef HAVE_COMPLEX_H
19806#include <complex.h>
19807#endif
19808#ifdef HAVE_MATH_H
19809#include <math.h>
1409cd0b 19810#endif
db9f46a9
TG
19811
19812int (*ptr)() = (int (*)())cabs;
19813
1409cd0b
FXC
19814int
19815main ()
19816{
1409cd0b
FXC
19817 return 0;
19818}
db9f46a9 19819
1409cd0b 19820_ACEOF
5213506e 19821if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19822 gcc_cv_math_func_cabs=yes
1409cd0b 19823else
db9f46a9 19824 gcc_cv_math_func_cabs=no
1409cd0b 19825fi
5213506e
RW
19826rm -f core conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19828fi
db9f46a9
TG
19829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19830$as_echo "$gcc_cv_math_func_cabs" >&6; }
19831 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19832
f38a14ca
TG
19833cat >>confdefs.h <<_ACEOF
19834#define HAVE_CABS 1
19835_ACEOF
db9f46a9
TG
19836
19837 fi
1409cd0b 19838
1409cd0b 19839
1409cd0b 19840
db9f46a9
TG
19841
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19843$as_echo_n "checking for cabsl... " >&6; }
22e05272 19844if ${gcc_cv_math_func_cabsl+:} false; then :
5213506e 19845 $as_echo_n "(cached) " >&6
1409cd0b 19846else
db9f46a9 19847 if test x$gcc_no_link = xyes; then
22e05272 19848 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19849fi
5213506e 19850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19851/* end confdefs.h. */
19852
db9f46a9
TG
19853#ifdef HAVE_COMPLEX_H
19854#include <complex.h>
1409cd0b 19855#endif
db9f46a9
TG
19856#ifdef HAVE_MATH_H
19857#include <math.h>
19858#endif
19859
19860int (*ptr)() = (int (*)())cabsl;
19861
1409cd0b
FXC
19862int
19863main ()
19864{
1409cd0b
FXC
19865 return 0;
19866}
db9f46a9 19867
1409cd0b 19868_ACEOF
5213506e 19869if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19870 gcc_cv_math_func_cabsl=yes
1409cd0b 19871else
db9f46a9 19872 gcc_cv_math_func_cabsl=no
1409cd0b 19873fi
5213506e
RW
19874rm -f core conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19876fi
db9f46a9
TG
19877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19878$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19879 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19880
f38a14ca
TG
19881cat >>confdefs.h <<_ACEOF
19882#define HAVE_CABSL 1
19883_ACEOF
1409cd0b 19884
db9f46a9 19885 fi
1409cd0b 19886
1409cd0b 19887
db9f46a9
TG
19888
19889
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19891$as_echo_n "checking for floorf... " >&6; }
22e05272 19892if ${gcc_cv_math_func_floorf+:} false; then :
5213506e 19893 $as_echo_n "(cached) " >&6
1409cd0b 19894else
db9f46a9 19895 if test x$gcc_no_link = xyes; then
22e05272 19896 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19897fi
5213506e 19898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19899/* end confdefs.h. */
19900
db9f46a9
TG
19901#ifdef HAVE_COMPLEX_H
19902#include <complex.h>
19903#endif
19904#ifdef HAVE_MATH_H
19905#include <math.h>
1409cd0b 19906#endif
db9f46a9
TG
19907
19908int (*ptr)() = (int (*)())floorf;
19909
1409cd0b
FXC
19910int
19911main ()
19912{
5213506e
RW
19913 return 0;
19914}
db9f46a9 19915
5213506e
RW
19916_ACEOF
19917if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19918 gcc_cv_math_func_floorf=yes
1409cd0b 19919else
db9f46a9 19920 gcc_cv_math_func_floorf=no
1409cd0b 19921fi
5213506e
RW
19922rm -f core conftest.err conftest.$ac_objext \
19923 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19924fi
db9f46a9
TG
19925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19926$as_echo "$gcc_cv_math_func_floorf" >&6; }
19927 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19928
f38a14ca
TG
19929cat >>confdefs.h <<_ACEOF
19930#define HAVE_FLOORF 1
19931_ACEOF
db9f46a9
TG
19932
19933 fi
1409cd0b 19934
1409cd0b 19935
1409cd0b 19936
db9f46a9
TG
19937
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19939$as_echo_n "checking for floor... " >&6; }
22e05272 19940if ${gcc_cv_math_func_floor+:} false; then :
5213506e 19941 $as_echo_n "(cached) " >&6
1409cd0b 19942else
db9f46a9 19943 if test x$gcc_no_link = xyes; then
22e05272 19944 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19945fi
5213506e 19946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19947/* end confdefs.h. */
19948
db9f46a9
TG
19949#ifdef HAVE_COMPLEX_H
19950#include <complex.h>
1409cd0b 19951#endif
db9f46a9
TG
19952#ifdef HAVE_MATH_H
19953#include <math.h>
19954#endif
19955
19956int (*ptr)() = (int (*)())floor;
19957
1409cd0b
FXC
19958int
19959main ()
19960{
1409cd0b
FXC
19961 return 0;
19962}
db9f46a9 19963
1409cd0b 19964_ACEOF
5213506e 19965if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19966 gcc_cv_math_func_floor=yes
1409cd0b 19967else
db9f46a9 19968 gcc_cv_math_func_floor=no
1409cd0b 19969fi
5213506e
RW
19970rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19972fi
db9f46a9
TG
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19974$as_echo "$gcc_cv_math_func_floor" >&6; }
19975 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19976
f38a14ca
TG
19977cat >>confdefs.h <<_ACEOF
19978#define HAVE_FLOOR 1
19979_ACEOF
db9f46a9
TG
19980
19981 fi
19982
1409cd0b 19983
1409cd0b 19984
1409cd0b 19985
db9f46a9
TG
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19987$as_echo_n "checking for floorl... " >&6; }
22e05272 19988if ${gcc_cv_math_func_floorl+:} false; then :
5213506e 19989 $as_echo_n "(cached) " >&6
eb647f7d 19990else
db9f46a9 19991 if test x$gcc_no_link = xyes; then
22e05272 19992 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19993fi
5213506e 19994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19995/* end confdefs.h. */
19996
db9f46a9
TG
19997#ifdef HAVE_COMPLEX_H
19998#include <complex.h>
19999#endif
20000#ifdef HAVE_MATH_H
20001#include <math.h>
eb647f7d 20002#endif
db9f46a9
TG
20003
20004int (*ptr)() = (int (*)())floorl;
20005
eb647f7d
FXC
20006int
20007main ()
20008{
eb647f7d
FXC
20009 return 0;
20010}
db9f46a9 20011
eb647f7d 20012_ACEOF
5213506e 20013if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20014 gcc_cv_math_func_floorl=yes
eb647f7d 20015else
db9f46a9 20016 gcc_cv_math_func_floorl=no
eb647f7d 20017fi
5213506e
RW
20018rm -f core conftest.err conftest.$ac_objext \
20019 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20020fi
db9f46a9
TG
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
20022$as_echo "$gcc_cv_math_func_floorl" >&6; }
20023 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 20024
f38a14ca
TG
20025cat >>confdefs.h <<_ACEOF
20026#define HAVE_FLOORL 1
20027_ACEOF
db9f46a9
TG
20028
20029 fi
eb647f7d 20030
eb647f7d 20031
eb647f7d 20032
db9f46a9 20033
1868599f
JJ
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
20035$as_echo_n "checking for fmaf... " >&6; }
20036if ${gcc_cv_math_func_fmaf+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038else
20039 if test x$gcc_no_link = xyes; then
20040 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20041fi
20042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043/* end confdefs.h. */
20044
20045#ifdef HAVE_COMPLEX_H
20046#include <complex.h>
20047#endif
20048#ifdef HAVE_MATH_H
20049#include <math.h>
20050#endif
20051
20052int (*ptr)() = (int (*)())fmaf;
20053
20054int
20055main ()
20056{
20057 return 0;
20058}
20059
20060_ACEOF
20061if ac_fn_c_try_link "$LINENO"; then :
20062 gcc_cv_math_func_fmaf=yes
20063else
20064 gcc_cv_math_func_fmaf=no
20065fi
20066rm -f core conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext conftest.$ac_ext
20068fi
20069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
20070$as_echo "$gcc_cv_math_func_fmaf" >&6; }
20071 if test $gcc_cv_math_func_fmaf = yes; then
20072
20073cat >>confdefs.h <<_ACEOF
20074#define HAVE_FMAF 1
20075_ACEOF
20076
20077 fi
20078
20079
20080
20081
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
20083$as_echo_n "checking for fma... " >&6; }
20084if ${gcc_cv_math_func_fma+:} false; then :
20085 $as_echo_n "(cached) " >&6
20086else
20087 if test x$gcc_no_link = xyes; then
20088 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20089fi
20090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091/* end confdefs.h. */
20092
20093#ifdef HAVE_COMPLEX_H
20094#include <complex.h>
20095#endif
20096#ifdef HAVE_MATH_H
20097#include <math.h>
20098#endif
20099
20100int (*ptr)() = (int (*)())fma;
20101
20102int
20103main ()
20104{
20105 return 0;
20106}
20107
20108_ACEOF
20109if ac_fn_c_try_link "$LINENO"; then :
20110 gcc_cv_math_func_fma=yes
20111else
20112 gcc_cv_math_func_fma=no
20113fi
20114rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20116fi
20117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
20118$as_echo "$gcc_cv_math_func_fma" >&6; }
20119 if test $gcc_cv_math_func_fma = yes; then
20120
20121cat >>confdefs.h <<_ACEOF
20122#define HAVE_FMA 1
20123_ACEOF
20124
20125 fi
20126
20127
20128
20129
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
20131$as_echo_n "checking for fmal... " >&6; }
20132if ${gcc_cv_math_func_fmal+:} false; then :
20133 $as_echo_n "(cached) " >&6
20134else
20135 if test x$gcc_no_link = xyes; then
20136 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20137fi
20138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139/* end confdefs.h. */
20140
20141#ifdef HAVE_COMPLEX_H
20142#include <complex.h>
20143#endif
20144#ifdef HAVE_MATH_H
20145#include <math.h>
20146#endif
20147
20148int (*ptr)() = (int (*)())fmal;
20149
20150int
20151main ()
20152{
20153 return 0;
20154}
20155
20156_ACEOF
20157if ac_fn_c_try_link "$LINENO"; then :
20158 gcc_cv_math_func_fmal=yes
20159else
20160 gcc_cv_math_func_fmal=no
20161fi
20162rm -f core conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164fi
20165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
20166$as_echo "$gcc_cv_math_func_fmal" >&6; }
20167 if test $gcc_cv_math_func_fmal = yes; then
20168
20169cat >>confdefs.h <<_ACEOF
20170#define HAVE_FMAL 1
20171_ACEOF
20172
20173 fi
20174
20175
20176
20177
db9f46a9
TG
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20179$as_echo_n "checking for fmodf... " >&6; }
22e05272 20180if ${gcc_cv_math_func_fmodf+:} false; then :
5213506e 20181 $as_echo_n "(cached) " >&6
eb647f7d 20182else
db9f46a9 20183 if test x$gcc_no_link = xyes; then
22e05272 20184 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20185fi
5213506e 20186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20187/* end confdefs.h. */
20188
db9f46a9
TG
20189#ifdef HAVE_COMPLEX_H
20190#include <complex.h>
eb647f7d 20191#endif
db9f46a9
TG
20192#ifdef HAVE_MATH_H
20193#include <math.h>
20194#endif
20195
20196int (*ptr)() = (int (*)())fmodf;
20197
eb647f7d
FXC
20198int
20199main ()
20200{
eb647f7d
FXC
20201 return 0;
20202}
db9f46a9 20203
eb647f7d 20204_ACEOF
5213506e 20205if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20206 gcc_cv_math_func_fmodf=yes
eb647f7d 20207else
db9f46a9 20208 gcc_cv_math_func_fmodf=no
eb647f7d 20209fi
5213506e
RW
20210rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20212fi
db9f46a9
TG
20213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20214$as_echo "$gcc_cv_math_func_fmodf" >&6; }
20215 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 20216
f38a14ca
TG
20217cat >>confdefs.h <<_ACEOF
20218#define HAVE_FMODF 1
20219_ACEOF
eb647f7d 20220
db9f46a9 20221 fi
eb647f7d 20222
eb647f7d 20223
db9f46a9
TG
20224
20225
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20227$as_echo_n "checking for fmod... " >&6; }
22e05272 20228if ${gcc_cv_math_func_fmod+:} false; then :
5213506e 20229 $as_echo_n "(cached) " >&6
eb647f7d 20230else
db9f46a9 20231 if test x$gcc_no_link = xyes; then
22e05272 20232 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20233fi
5213506e 20234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20235/* end confdefs.h. */
20236
db9f46a9
TG
20237#ifdef HAVE_COMPLEX_H
20238#include <complex.h>
20239#endif
20240#ifdef HAVE_MATH_H
20241#include <math.h>
eb647f7d 20242#endif
db9f46a9
TG
20243
20244int (*ptr)() = (int (*)())fmod;
20245
eb647f7d
FXC
20246int
20247main ()
20248{
eb647f7d
FXC
20249 return 0;
20250}
db9f46a9 20251
eb647f7d 20252_ACEOF
5213506e 20253if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20254 gcc_cv_math_func_fmod=yes
eb647f7d 20255else
db9f46a9 20256 gcc_cv_math_func_fmod=no
eb647f7d 20257fi
5213506e
RW
20258rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20260fi
db9f46a9
TG
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20262$as_echo "$gcc_cv_math_func_fmod" >&6; }
20263 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 20264
f38a14ca
TG
20265cat >>confdefs.h <<_ACEOF
20266#define HAVE_FMOD 1
20267_ACEOF
db9f46a9
TG
20268
20269 fi
eb647f7d 20270
eb647f7d 20271
eb647f7d 20272
db9f46a9
TG
20273
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20275$as_echo_n "checking for fmodl... " >&6; }
22e05272 20276if ${gcc_cv_math_func_fmodl+:} false; then :
5213506e 20277 $as_echo_n "(cached) " >&6
1409cd0b 20278else
db9f46a9 20279 if test x$gcc_no_link = xyes; then
22e05272 20280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20281fi
5213506e 20282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20283/* end confdefs.h. */
20284
db9f46a9
TG
20285#ifdef HAVE_COMPLEX_H
20286#include <complex.h>
1409cd0b 20287#endif
db9f46a9
TG
20288#ifdef HAVE_MATH_H
20289#include <math.h>
20290#endif
20291
20292int (*ptr)() = (int (*)())fmodl;
20293
1409cd0b
FXC
20294int
20295main ()
20296{
1409cd0b
FXC
20297 return 0;
20298}
db9f46a9 20299
1409cd0b 20300_ACEOF
5213506e 20301if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20302 gcc_cv_math_func_fmodl=yes
1409cd0b 20303else
db9f46a9 20304 gcc_cv_math_func_fmodl=no
1409cd0b 20305fi
5213506e
RW
20306rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20308fi
db9f46a9
TG
20309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20310$as_echo "$gcc_cv_math_func_fmodl" >&6; }
20311 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 20312
f38a14ca
TG
20313cat >>confdefs.h <<_ACEOF
20314#define HAVE_FMODL 1
20315_ACEOF
db9f46a9
TG
20316
20317 fi
20318
1409cd0b 20319
1409cd0b 20320
1409cd0b 20321
db9f46a9
TG
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20323$as_echo_n "checking for frexpf... " >&6; }
22e05272 20324if ${gcc_cv_math_func_frexpf+:} false; then :
5213506e 20325 $as_echo_n "(cached) " >&6
1409cd0b 20326else
db9f46a9 20327 if test x$gcc_no_link = xyes; then
22e05272 20328 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20329fi
5213506e 20330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20331/* end confdefs.h. */
20332
db9f46a9
TG
20333#ifdef HAVE_COMPLEX_H
20334#include <complex.h>
20335#endif
20336#ifdef HAVE_MATH_H
20337#include <math.h>
1409cd0b 20338#endif
db9f46a9
TG
20339
20340int (*ptr)() = (int (*)())frexpf;
20341
1409cd0b
FXC
20342int
20343main ()
20344{
1409cd0b
FXC
20345 return 0;
20346}
db9f46a9 20347
1409cd0b 20348_ACEOF
5213506e 20349if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20350 gcc_cv_math_func_frexpf=yes
1409cd0b 20351else
db9f46a9 20352 gcc_cv_math_func_frexpf=no
1409cd0b 20353fi
5213506e
RW
20354rm -f core conftest.err conftest.$ac_objext \
20355 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20356fi
db9f46a9
TG
20357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20358$as_echo "$gcc_cv_math_func_frexpf" >&6; }
20359 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 20360
f38a14ca
TG
20361cat >>confdefs.h <<_ACEOF
20362#define HAVE_FREXPF 1
20363_ACEOF
db9f46a9
TG
20364
20365 fi
1409cd0b 20366
1409cd0b 20367
1409cd0b 20368
db9f46a9
TG
20369
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20371$as_echo_n "checking for frexp... " >&6; }
22e05272 20372if ${gcc_cv_math_func_frexp+:} false; then :
5213506e 20373 $as_echo_n "(cached) " >&6
1409cd0b 20374else
db9f46a9 20375 if test x$gcc_no_link = xyes; then
22e05272 20376 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20377fi
5213506e 20378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20379/* end confdefs.h. */
20380
db9f46a9
TG
20381#ifdef HAVE_COMPLEX_H
20382#include <complex.h>
1409cd0b 20383#endif
db9f46a9
TG
20384#ifdef HAVE_MATH_H
20385#include <math.h>
20386#endif
20387
20388int (*ptr)() = (int (*)())frexp;
20389
1409cd0b
FXC
20390int
20391main ()
20392{
1409cd0b
FXC
20393 return 0;
20394}
db9f46a9 20395
1409cd0b 20396_ACEOF
5213506e 20397if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20398 gcc_cv_math_func_frexp=yes
1409cd0b 20399else
db9f46a9 20400 gcc_cv_math_func_frexp=no
1409cd0b 20401fi
5213506e
RW
20402rm -f core conftest.err conftest.$ac_objext \
20403 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20404fi
db9f46a9
TG
20405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20406$as_echo "$gcc_cv_math_func_frexp" >&6; }
20407 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 20408
f38a14ca
TG
20409cat >>confdefs.h <<_ACEOF
20410#define HAVE_FREXP 1
20411_ACEOF
1409cd0b 20412
db9f46a9 20413 fi
1409cd0b 20414
1409cd0b 20415
db9f46a9
TG
20416
20417
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20419$as_echo_n "checking for frexpl... " >&6; }
22e05272 20420if ${gcc_cv_math_func_frexpl+:} false; then :
5213506e 20421 $as_echo_n "(cached) " >&6
1409cd0b 20422else
db9f46a9 20423 if test x$gcc_no_link = xyes; then
22e05272 20424 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20425fi
5213506e 20426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20427/* end confdefs.h. */
20428
db9f46a9
TG
20429#ifdef HAVE_COMPLEX_H
20430#include <complex.h>
20431#endif
20432#ifdef HAVE_MATH_H
20433#include <math.h>
1409cd0b 20434#endif
db9f46a9
TG
20435
20436int (*ptr)() = (int (*)())frexpl;
20437
1409cd0b
FXC
20438int
20439main ()
20440{
1409cd0b
FXC
20441 return 0;
20442}
db9f46a9 20443
1409cd0b 20444_ACEOF
5213506e 20445if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20446 gcc_cv_math_func_frexpl=yes
1409cd0b 20447else
db9f46a9 20448 gcc_cv_math_func_frexpl=no
1409cd0b 20449fi
5213506e
RW
20450rm -f core conftest.err conftest.$ac_objext \
20451 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20452fi
db9f46a9
TG
20453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20454$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20455 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 20456
f38a14ca
TG
20457cat >>confdefs.h <<_ACEOF
20458#define HAVE_FREXPL 1
20459_ACEOF
db9f46a9
TG
20460
20461 fi
1409cd0b 20462
1409cd0b 20463
1409cd0b 20464
db9f46a9
TG
20465
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20467$as_echo_n "checking for hypotf... " >&6; }
22e05272 20468if ${gcc_cv_math_func_hypotf+:} false; then :
5213506e 20469 $as_echo_n "(cached) " >&6
1409cd0b 20470else
db9f46a9 20471 if test x$gcc_no_link = xyes; then
22e05272 20472 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20473fi
5213506e 20474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20475/* end confdefs.h. */
20476
db9f46a9
TG
20477#ifdef HAVE_COMPLEX_H
20478#include <complex.h>
1409cd0b 20479#endif
db9f46a9
TG
20480#ifdef HAVE_MATH_H
20481#include <math.h>
20482#endif
20483
20484int (*ptr)() = (int (*)())hypotf;
20485
1409cd0b
FXC
20486int
20487main ()
20488{
1409cd0b
FXC
20489 return 0;
20490}
db9f46a9 20491
1409cd0b 20492_ACEOF
5213506e 20493if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20494 gcc_cv_math_func_hypotf=yes
1409cd0b 20495else
db9f46a9 20496 gcc_cv_math_func_hypotf=no
1409cd0b 20497fi
5213506e
RW
20498rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20500fi
db9f46a9
TG
20501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20502$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20503 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 20504
f38a14ca
TG
20505cat >>confdefs.h <<_ACEOF
20506#define HAVE_HYPOTF 1
20507_ACEOF
db9f46a9
TG
20508
20509 fi
20510
1409cd0b 20511
1409cd0b 20512
1409cd0b 20513
db9f46a9
TG
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20515$as_echo_n "checking for hypot... " >&6; }
22e05272 20516if ${gcc_cv_math_func_hypot+:} false; then :
5213506e 20517 $as_echo_n "(cached) " >&6
1409cd0b 20518else
db9f46a9 20519 if test x$gcc_no_link = xyes; then
22e05272 20520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20521fi
5213506e 20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20523/* end confdefs.h. */
20524
db9f46a9
TG
20525#ifdef HAVE_COMPLEX_H
20526#include <complex.h>
20527#endif
20528#ifdef HAVE_MATH_H
20529#include <math.h>
1409cd0b 20530#endif
db9f46a9
TG
20531
20532int (*ptr)() = (int (*)())hypot;
20533
1409cd0b
FXC
20534int
20535main ()
20536{
1409cd0b
FXC
20537 return 0;
20538}
db9f46a9 20539
1409cd0b 20540_ACEOF
5213506e 20541if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20542 gcc_cv_math_func_hypot=yes
1409cd0b 20543else
db9f46a9 20544 gcc_cv_math_func_hypot=no
1409cd0b 20545fi
5213506e
RW
20546rm -f core conftest.err conftest.$ac_objext \
20547 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20548fi
db9f46a9
TG
20549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20550$as_echo "$gcc_cv_math_func_hypot" >&6; }
20551 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 20552
f38a14ca
TG
20553cat >>confdefs.h <<_ACEOF
20554#define HAVE_HYPOT 1
20555_ACEOF
db9f46a9
TG
20556
20557 fi
1409cd0b 20558
1409cd0b 20559
1409cd0b 20560
db9f46a9
TG
20561
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20563$as_echo_n "checking for hypotl... " >&6; }
22e05272 20564if ${gcc_cv_math_func_hypotl+:} false; then :
5213506e 20565 $as_echo_n "(cached) " >&6
cc6d3bde 20566else
db9f46a9 20567 if test x$gcc_no_link = xyes; then
22e05272 20568 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20569fi
5213506e 20570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20571/* end confdefs.h. */
20572
db9f46a9
TG
20573#ifdef HAVE_COMPLEX_H
20574#include <complex.h>
cc6d3bde 20575#endif
db9f46a9
TG
20576#ifdef HAVE_MATH_H
20577#include <math.h>
20578#endif
20579
20580int (*ptr)() = (int (*)())hypotl;
20581
cc6d3bde
SK
20582int
20583main ()
20584{
cc6d3bde
SK
20585 return 0;
20586}
db9f46a9 20587
cc6d3bde 20588_ACEOF
5213506e 20589if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20590 gcc_cv_math_func_hypotl=yes
cc6d3bde 20591else
db9f46a9 20592 gcc_cv_math_func_hypotl=no
cc6d3bde 20593fi
5213506e
RW
20594rm -f core conftest.err conftest.$ac_objext \
20595 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20596fi
db9f46a9
TG
20597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20598$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20599 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 20600
f38a14ca
TG
20601cat >>confdefs.h <<_ACEOF
20602#define HAVE_HYPOTL 1
20603_ACEOF
cc6d3bde 20604
db9f46a9 20605 fi
cc6d3bde 20606
cc6d3bde 20607
db9f46a9
TG
20608
20609
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20611$as_echo_n "checking for ldexpf... " >&6; }
22e05272 20612if ${gcc_cv_math_func_ldexpf+:} false; then :
5213506e 20613 $as_echo_n "(cached) " >&6
cc6d3bde 20614else
db9f46a9 20615 if test x$gcc_no_link = xyes; then
22e05272 20616 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20617fi
5213506e 20618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20619/* end confdefs.h. */
20620
db9f46a9
TG
20621#ifdef HAVE_COMPLEX_H
20622#include <complex.h>
20623#endif
20624#ifdef HAVE_MATH_H
20625#include <math.h>
cc6d3bde 20626#endif
db9f46a9
TG
20627
20628int (*ptr)() = (int (*)())ldexpf;
20629
cc6d3bde
SK
20630int
20631main ()
20632{
cc6d3bde
SK
20633 return 0;
20634}
db9f46a9 20635
cc6d3bde 20636_ACEOF
5213506e 20637if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20638 gcc_cv_math_func_ldexpf=yes
cc6d3bde 20639else
db9f46a9 20640 gcc_cv_math_func_ldexpf=no
cc6d3bde 20641fi
5213506e
RW
20642rm -f core conftest.err conftest.$ac_objext \
20643 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20644fi
db9f46a9
TG
20645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20646$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20647 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20648
f38a14ca
TG
20649cat >>confdefs.h <<_ACEOF
20650#define HAVE_LDEXPF 1
20651_ACEOF
db9f46a9
TG
20652
20653 fi
cc6d3bde 20654
cc6d3bde 20655
cc6d3bde 20656
db9f46a9
TG
20657
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20659$as_echo_n "checking for ldexp... " >&6; }
22e05272 20660if ${gcc_cv_math_func_ldexp+:} false; then :
5213506e 20661 $as_echo_n "(cached) " >&6
cc6d3bde 20662else
db9f46a9 20663 if test x$gcc_no_link = xyes; then
22e05272 20664 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20665fi
5213506e 20666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20667/* end confdefs.h. */
20668
db9f46a9
TG
20669#ifdef HAVE_COMPLEX_H
20670#include <complex.h>
cc6d3bde 20671#endif
db9f46a9
TG
20672#ifdef HAVE_MATH_H
20673#include <math.h>
20674#endif
20675
20676int (*ptr)() = (int (*)())ldexp;
20677
cc6d3bde
SK
20678int
20679main ()
20680{
cc6d3bde
SK
20681 return 0;
20682}
db9f46a9 20683
cc6d3bde 20684_ACEOF
5213506e 20685if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20686 gcc_cv_math_func_ldexp=yes
cc6d3bde 20687else
db9f46a9 20688 gcc_cv_math_func_ldexp=no
cc6d3bde 20689fi
5213506e
RW
20690rm -f core conftest.err conftest.$ac_objext \
20691 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20692fi
db9f46a9
TG
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20694$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20695 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20696
f38a14ca
TG
20697cat >>confdefs.h <<_ACEOF
20698#define HAVE_LDEXP 1
20699_ACEOF
db9f46a9
TG
20700
20701 fi
20702
cc6d3bde 20703
cc6d3bde 20704
cc6d3bde 20705
db9f46a9
TG
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20707$as_echo_n "checking for ldexpl... " >&6; }
22e05272 20708if ${gcc_cv_math_func_ldexpl+:} false; then :
5213506e 20709 $as_echo_n "(cached) " >&6
1409cd0b 20710else
db9f46a9 20711 if test x$gcc_no_link = xyes; then
22e05272 20712 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20713fi
5213506e 20714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20715/* end confdefs.h. */
20716
db9f46a9
TG
20717#ifdef HAVE_COMPLEX_H
20718#include <complex.h>
20719#endif
20720#ifdef HAVE_MATH_H
20721#include <math.h>
1409cd0b 20722#endif
db9f46a9
TG
20723
20724int (*ptr)() = (int (*)())ldexpl;
20725
1409cd0b
FXC
20726int
20727main ()
20728{
1409cd0b
FXC
20729 return 0;
20730}
db9f46a9 20731
1409cd0b 20732_ACEOF
5213506e 20733if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20734 gcc_cv_math_func_ldexpl=yes
1409cd0b 20735else
db9f46a9 20736 gcc_cv_math_func_ldexpl=no
1409cd0b 20737fi
5213506e
RW
20738rm -f core conftest.err conftest.$ac_objext \
20739 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20740fi
db9f46a9
TG
20741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20742$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20743 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20744
f38a14ca
TG
20745cat >>confdefs.h <<_ACEOF
20746#define HAVE_LDEXPL 1
20747_ACEOF
db9f46a9
TG
20748
20749 fi
1409cd0b 20750
1409cd0b 20751
1409cd0b 20752
db9f46a9
TG
20753
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20755$as_echo_n "checking for logf... " >&6; }
22e05272 20756if ${gcc_cv_math_func_logf+:} false; then :
5213506e 20757 $as_echo_n "(cached) " >&6
1409cd0b 20758else
db9f46a9 20759 if test x$gcc_no_link = xyes; then
22e05272 20760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20761fi
5213506e 20762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20763/* end confdefs.h. */
20764
db9f46a9
TG
20765#ifdef HAVE_COMPLEX_H
20766#include <complex.h>
1409cd0b 20767#endif
db9f46a9
TG
20768#ifdef HAVE_MATH_H
20769#include <math.h>
20770#endif
20771
20772int (*ptr)() = (int (*)())logf;
20773
1409cd0b
FXC
20774int
20775main ()
20776{
1409cd0b
FXC
20777 return 0;
20778}
db9f46a9 20779
1409cd0b 20780_ACEOF
5213506e 20781if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20782 gcc_cv_math_func_logf=yes
1409cd0b 20783else
db9f46a9 20784 gcc_cv_math_func_logf=no
1409cd0b 20785fi
5213506e
RW
20786rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20788fi
db9f46a9
TG
20789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20790$as_echo "$gcc_cv_math_func_logf" >&6; }
20791 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20792
f38a14ca
TG
20793cat >>confdefs.h <<_ACEOF
20794#define HAVE_LOGF 1
20795_ACEOF
1409cd0b 20796
db9f46a9 20797 fi
1409cd0b 20798
1409cd0b 20799
db9f46a9
TG
20800
20801
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20803$as_echo_n "checking for log... " >&6; }
22e05272 20804if ${gcc_cv_math_func_log+:} false; then :
5213506e 20805 $as_echo_n "(cached) " >&6
1409cd0b 20806else
db9f46a9 20807 if test x$gcc_no_link = xyes; then
22e05272 20808 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20809fi
5213506e 20810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20811/* end confdefs.h. */
20812
db9f46a9
TG
20813#ifdef HAVE_COMPLEX_H
20814#include <complex.h>
20815#endif
20816#ifdef HAVE_MATH_H
20817#include <math.h>
1409cd0b 20818#endif
db9f46a9
TG
20819
20820int (*ptr)() = (int (*)())log;
20821
1409cd0b
FXC
20822int
20823main ()
20824{
1409cd0b
FXC
20825 return 0;
20826}
db9f46a9 20827
1409cd0b 20828_ACEOF
5213506e 20829if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20830 gcc_cv_math_func_log=yes
1409cd0b 20831else
db9f46a9 20832 gcc_cv_math_func_log=no
1409cd0b 20833fi
5213506e
RW
20834rm -f core conftest.err conftest.$ac_objext \
20835 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20836fi
db9f46a9
TG
20837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20838$as_echo "$gcc_cv_math_func_log" >&6; }
20839 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20840
f38a14ca
TG
20841cat >>confdefs.h <<_ACEOF
20842#define HAVE_LOG 1
20843_ACEOF
db9f46a9
TG
20844
20845 fi
1409cd0b 20846
1409cd0b 20847
1409cd0b 20848
db9f46a9
TG
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20851$as_echo_n "checking for logl... " >&6; }
22e05272 20852if ${gcc_cv_math_func_logl+:} false; then :
5213506e 20853 $as_echo_n "(cached) " >&6
1409cd0b 20854else
db9f46a9 20855 if test x$gcc_no_link = xyes; then
22e05272 20856 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20857fi
5213506e 20858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20859/* end confdefs.h. */
20860
db9f46a9
TG
20861#ifdef HAVE_COMPLEX_H
20862#include <complex.h>
1409cd0b 20863#endif
db9f46a9
TG
20864#ifdef HAVE_MATH_H
20865#include <math.h>
20866#endif
20867
20868int (*ptr)() = (int (*)())logl;
20869
1409cd0b
FXC
20870int
20871main ()
20872{
1409cd0b
FXC
20873 return 0;
20874}
db9f46a9 20875
1409cd0b 20876_ACEOF
5213506e 20877if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20878 gcc_cv_math_func_logl=yes
1409cd0b 20879else
db9f46a9 20880 gcc_cv_math_func_logl=no
1409cd0b 20881fi
5213506e
RW
20882rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20884fi
db9f46a9
TG
20885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20886$as_echo "$gcc_cv_math_func_logl" >&6; }
20887 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20888
f38a14ca
TG
20889cat >>confdefs.h <<_ACEOF
20890#define HAVE_LOGL 1
20891_ACEOF
db9f46a9
TG
20892
20893 fi
20894
1409cd0b 20895
1409cd0b 20896
1409cd0b 20897
db9f46a9
TG
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20899$as_echo_n "checking for clogf... " >&6; }
22e05272 20900if ${gcc_cv_math_func_clogf+:} false; then :
5213506e 20901 $as_echo_n "(cached) " >&6
1409cd0b 20902else
db9f46a9 20903 if test x$gcc_no_link = xyes; then
22e05272 20904 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20905fi
5213506e 20906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20907/* end confdefs.h. */
20908
db9f46a9
TG
20909#ifdef HAVE_COMPLEX_H
20910#include <complex.h>
20911#endif
20912#ifdef HAVE_MATH_H
20913#include <math.h>
1409cd0b 20914#endif
db9f46a9
TG
20915
20916int (*ptr)() = (int (*)())clogf;
20917
1409cd0b
FXC
20918int
20919main ()
20920{
1409cd0b
FXC
20921 return 0;
20922}
db9f46a9 20923
1409cd0b 20924_ACEOF
5213506e 20925if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20926 gcc_cv_math_func_clogf=yes
1409cd0b 20927else
db9f46a9 20928 gcc_cv_math_func_clogf=no
1409cd0b 20929fi
5213506e
RW
20930rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20932fi
db9f46a9
TG
20933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20934$as_echo "$gcc_cv_math_func_clogf" >&6; }
20935 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20936
f38a14ca
TG
20937cat >>confdefs.h <<_ACEOF
20938#define HAVE_CLOGF 1
20939_ACEOF
db9f46a9
TG
20940
20941 fi
1409cd0b 20942
1409cd0b 20943
1409cd0b 20944
db9f46a9
TG
20945
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20947$as_echo_n "checking for clog... " >&6; }
22e05272 20948if ${gcc_cv_math_func_clog+:} false; then :
5213506e 20949 $as_echo_n "(cached) " >&6
1409cd0b 20950else
db9f46a9 20951 if test x$gcc_no_link = xyes; then
22e05272 20952 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20953fi
5213506e 20954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20955/* end confdefs.h. */
20956
db9f46a9
TG
20957#ifdef HAVE_COMPLEX_H
20958#include <complex.h>
1409cd0b 20959#endif
db9f46a9
TG
20960#ifdef HAVE_MATH_H
20961#include <math.h>
20962#endif
20963
20964int (*ptr)() = (int (*)())clog;
20965
1409cd0b
FXC
20966int
20967main ()
20968{
1409cd0b
FXC
20969 return 0;
20970}
db9f46a9 20971
1409cd0b 20972_ACEOF
5213506e 20973if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20974 gcc_cv_math_func_clog=yes
1409cd0b 20975else
db9f46a9 20976 gcc_cv_math_func_clog=no
1409cd0b 20977fi
5213506e
RW
20978rm -f core conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20980fi
db9f46a9
TG
20981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20982$as_echo "$gcc_cv_math_func_clog" >&6; }
20983 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20984
f38a14ca
TG
20985cat >>confdefs.h <<_ACEOF
20986#define HAVE_CLOG 1
20987_ACEOF
1409cd0b 20988
db9f46a9 20989 fi
1409cd0b 20990
1409cd0b 20991
db9f46a9
TG
20992
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20995$as_echo_n "checking for clogl... " >&6; }
22e05272 20996if ${gcc_cv_math_func_clogl+:} false; then :
5213506e 20997 $as_echo_n "(cached) " >&6
1409cd0b 20998else
db9f46a9 20999 if test x$gcc_no_link = xyes; then
22e05272 21000 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21001fi
5213506e 21002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21003/* end confdefs.h. */
21004
db9f46a9
TG
21005#ifdef HAVE_COMPLEX_H
21006#include <complex.h>
21007#endif
21008#ifdef HAVE_MATH_H
21009#include <math.h>
1409cd0b 21010#endif
db9f46a9
TG
21011
21012int (*ptr)() = (int (*)())clogl;
21013
1409cd0b
FXC
21014int
21015main ()
21016{
1409cd0b
FXC
21017 return 0;
21018}
db9f46a9 21019
1409cd0b 21020_ACEOF
5213506e 21021if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21022 gcc_cv_math_func_clogl=yes
1409cd0b 21023else
db9f46a9 21024 gcc_cv_math_func_clogl=no
1409cd0b 21025fi
5213506e
RW
21026rm -f core conftest.err conftest.$ac_objext \
21027 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21028fi
db9f46a9
TG
21029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
21030$as_echo "$gcc_cv_math_func_clogl" >&6; }
21031 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 21032
f38a14ca
TG
21033cat >>confdefs.h <<_ACEOF
21034#define HAVE_CLOGL 1
21035_ACEOF
db9f46a9
TG
21036
21037 fi
1409cd0b 21038
1409cd0b 21039
1409cd0b 21040
db9f46a9
TG
21041
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
21043$as_echo_n "checking for log10f... " >&6; }
22e05272 21044if ${gcc_cv_math_func_log10f+:} false; then :
5213506e 21045 $as_echo_n "(cached) " >&6
1409cd0b 21046else
db9f46a9 21047 if test x$gcc_no_link = xyes; then
22e05272 21048 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21049fi
5213506e 21050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21051/* end confdefs.h. */
21052
db9f46a9
TG
21053#ifdef HAVE_COMPLEX_H
21054#include <complex.h>
1409cd0b 21055#endif
db9f46a9
TG
21056#ifdef HAVE_MATH_H
21057#include <math.h>
21058#endif
21059
21060int (*ptr)() = (int (*)())log10f;
21061
1409cd0b
FXC
21062int
21063main ()
21064{
1409cd0b
FXC
21065 return 0;
21066}
db9f46a9 21067
1409cd0b 21068_ACEOF
5213506e 21069if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21070 gcc_cv_math_func_log10f=yes
1409cd0b 21071else
db9f46a9 21072 gcc_cv_math_func_log10f=no
1409cd0b 21073fi
5213506e
RW
21074rm -f core conftest.err conftest.$ac_objext \
21075 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21076fi
db9f46a9
TG
21077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
21078$as_echo "$gcc_cv_math_func_log10f" >&6; }
21079 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 21080
f38a14ca
TG
21081cat >>confdefs.h <<_ACEOF
21082#define HAVE_LOG10F 1
21083_ACEOF
db9f46a9
TG
21084
21085 fi
21086
1409cd0b 21087
1409cd0b 21088
1409cd0b 21089
db9f46a9
TG
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
21091$as_echo_n "checking for log10... " >&6; }
22e05272 21092if ${gcc_cv_math_func_log10+:} false; then :
5213506e 21093 $as_echo_n "(cached) " >&6
1409cd0b 21094else
db9f46a9 21095 if test x$gcc_no_link = xyes; then
22e05272 21096 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21097fi
5213506e 21098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21099/* end confdefs.h. */
21100
db9f46a9
TG
21101#ifdef HAVE_COMPLEX_H
21102#include <complex.h>
21103#endif
21104#ifdef HAVE_MATH_H
21105#include <math.h>
1409cd0b 21106#endif
db9f46a9
TG
21107
21108int (*ptr)() = (int (*)())log10;
21109
1409cd0b
FXC
21110int
21111main ()
21112{
1409cd0b
FXC
21113 return 0;
21114}
db9f46a9 21115
1409cd0b 21116_ACEOF
5213506e 21117if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21118 gcc_cv_math_func_log10=yes
1409cd0b 21119else
db9f46a9 21120 gcc_cv_math_func_log10=no
1409cd0b 21121fi
5213506e
RW
21122rm -f core conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21124fi
db9f46a9
TG
21125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
21126$as_echo "$gcc_cv_math_func_log10" >&6; }
21127 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 21128
f38a14ca
TG
21129cat >>confdefs.h <<_ACEOF
21130#define HAVE_LOG10 1
21131_ACEOF
db9f46a9
TG
21132
21133 fi
1409cd0b 21134
1409cd0b 21135
1409cd0b 21136
db9f46a9
TG
21137
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
21139$as_echo_n "checking for log10l... " >&6; }
22e05272 21140if ${gcc_cv_math_func_log10l+:} false; then :
5213506e 21141 $as_echo_n "(cached) " >&6
1409cd0b 21142else
db9f46a9 21143 if test x$gcc_no_link = xyes; then
22e05272 21144 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21145fi
5213506e 21146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21147/* end confdefs.h. */
21148
db9f46a9
TG
21149#ifdef HAVE_COMPLEX_H
21150#include <complex.h>
1409cd0b 21151#endif
db9f46a9
TG
21152#ifdef HAVE_MATH_H
21153#include <math.h>
21154#endif
21155
21156int (*ptr)() = (int (*)())log10l;
21157
1409cd0b
FXC
21158int
21159main ()
21160{
1409cd0b
FXC
21161 return 0;
21162}
db9f46a9 21163
1409cd0b 21164_ACEOF
5213506e 21165if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21166 gcc_cv_math_func_log10l=yes
1409cd0b 21167else
db9f46a9 21168 gcc_cv_math_func_log10l=no
1409cd0b 21169fi
5213506e
RW
21170rm -f core conftest.err conftest.$ac_objext \
21171 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21172fi
db9f46a9
TG
21173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21174$as_echo "$gcc_cv_math_func_log10l" >&6; }
21175 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 21176
f38a14ca
TG
21177cat >>confdefs.h <<_ACEOF
21178#define HAVE_LOG10L 1
21179_ACEOF
1409cd0b 21180
db9f46a9 21181 fi
1409cd0b 21182
1409cd0b 21183
db9f46a9
TG
21184
21185
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21187$as_echo_n "checking for clog10f... " >&6; }
22e05272 21188if ${gcc_cv_math_func_clog10f+:} false; then :
5213506e 21189 $as_echo_n "(cached) " >&6
1409cd0b 21190else
db9f46a9 21191 if test x$gcc_no_link = xyes; then
22e05272 21192 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21193fi
5213506e 21194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21195/* end confdefs.h. */
21196
db9f46a9
TG
21197#ifdef HAVE_COMPLEX_H
21198#include <complex.h>
21199#endif
21200#ifdef HAVE_MATH_H
21201#include <math.h>
1409cd0b 21202#endif
db9f46a9
TG
21203
21204int (*ptr)() = (int (*)())clog10f;
21205
1409cd0b
FXC
21206int
21207main ()
21208{
1409cd0b
FXC
21209 return 0;
21210}
db9f46a9 21211
1409cd0b 21212_ACEOF
5213506e 21213if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21214 gcc_cv_math_func_clog10f=yes
1409cd0b 21215else
db9f46a9 21216 gcc_cv_math_func_clog10f=no
1409cd0b 21217fi
5213506e
RW
21218rm -f core conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21220fi
db9f46a9
TG
21221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21222$as_echo "$gcc_cv_math_func_clog10f" >&6; }
21223 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 21224
f38a14ca
TG
21225cat >>confdefs.h <<_ACEOF
21226#define HAVE_CLOG10F 1
21227_ACEOF
db9f46a9
TG
21228
21229 fi
1409cd0b 21230
1409cd0b 21231
1409cd0b 21232
db9f46a9
TG
21233
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21235$as_echo_n "checking for clog10... " >&6; }
22e05272 21236if ${gcc_cv_math_func_clog10+:} false; then :
5213506e 21237 $as_echo_n "(cached) " >&6
1409cd0b 21238else
db9f46a9 21239 if test x$gcc_no_link = xyes; then
22e05272 21240 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21241fi
5213506e 21242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21243/* end confdefs.h. */
21244
db9f46a9
TG
21245#ifdef HAVE_COMPLEX_H
21246#include <complex.h>
1409cd0b 21247#endif
db9f46a9
TG
21248#ifdef HAVE_MATH_H
21249#include <math.h>
21250#endif
21251
21252int (*ptr)() = (int (*)())clog10;
21253
1409cd0b
FXC
21254int
21255main ()
21256{
5213506e
RW
21257 return 0;
21258}
db9f46a9 21259
5213506e
RW
21260_ACEOF
21261if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21262 gcc_cv_math_func_clog10=yes
1409cd0b 21263else
db9f46a9 21264 gcc_cv_math_func_clog10=no
1409cd0b 21265fi
5213506e
RW
21266rm -f core conftest.err conftest.$ac_objext \
21267 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21268fi
db9f46a9
TG
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21270$as_echo "$gcc_cv_math_func_clog10" >&6; }
21271 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 21272
f38a14ca
TG
21273cat >>confdefs.h <<_ACEOF
21274#define HAVE_CLOG10 1
21275_ACEOF
db9f46a9
TG
21276
21277 fi
21278
1409cd0b 21279
1409cd0b 21280
1409cd0b 21281
db9f46a9
TG
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21283$as_echo_n "checking for clog10l... " >&6; }
22e05272 21284if ${gcc_cv_math_func_clog10l+:} false; then :
5213506e 21285 $as_echo_n "(cached) " >&6
1409cd0b 21286else
db9f46a9 21287 if test x$gcc_no_link = xyes; then
22e05272 21288 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21289fi
5213506e 21290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21291/* end confdefs.h. */
21292
db9f46a9
TG
21293#ifdef HAVE_COMPLEX_H
21294#include <complex.h>
21295#endif
21296#ifdef HAVE_MATH_H
21297#include <math.h>
1409cd0b 21298#endif
db9f46a9
TG
21299
21300int (*ptr)() = (int (*)())clog10l;
21301
1409cd0b
FXC
21302int
21303main ()
21304{
1409cd0b
FXC
21305 return 0;
21306}
db9f46a9 21307
1409cd0b 21308_ACEOF
5213506e 21309if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21310 gcc_cv_math_func_clog10l=yes
1409cd0b 21311else
db9f46a9 21312 gcc_cv_math_func_clog10l=no
1409cd0b 21313fi
5213506e
RW
21314rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21316fi
db9f46a9
TG
21317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21318$as_echo "$gcc_cv_math_func_clog10l" >&6; }
21319 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 21320
f38a14ca
TG
21321cat >>confdefs.h <<_ACEOF
21322#define HAVE_CLOG10L 1
21323_ACEOF
db9f46a9
TG
21324
21325 fi
1409cd0b 21326
1409cd0b 21327
1409cd0b 21328
db9f46a9
TG
21329
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21331$as_echo_n "checking for nextafterf... " >&6; }
22e05272 21332if ${gcc_cv_math_func_nextafterf+:} false; then :
5213506e 21333 $as_echo_n "(cached) " >&6
1409cd0b 21334else
db9f46a9 21335 if test x$gcc_no_link = xyes; then
22e05272 21336 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21337fi
5213506e 21338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21339/* end confdefs.h. */
21340
db9f46a9
TG
21341#ifdef HAVE_COMPLEX_H
21342#include <complex.h>
1409cd0b 21343#endif
db9f46a9
TG
21344#ifdef HAVE_MATH_H
21345#include <math.h>
21346#endif
21347
21348int (*ptr)() = (int (*)())nextafterf;
21349
1409cd0b
FXC
21350int
21351main ()
21352{
1409cd0b
FXC
21353 return 0;
21354}
db9f46a9 21355
1409cd0b 21356_ACEOF
5213506e 21357if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21358 gcc_cv_math_func_nextafterf=yes
1409cd0b 21359else
db9f46a9 21360 gcc_cv_math_func_nextafterf=no
1409cd0b 21361fi
5213506e
RW
21362rm -f core conftest.err conftest.$ac_objext \
21363 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21364fi
db9f46a9
TG
21365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21366$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21367 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 21368
f38a14ca
TG
21369cat >>confdefs.h <<_ACEOF
21370#define HAVE_NEXTAFTERF 1
21371_ACEOF
1409cd0b 21372
db9f46a9 21373 fi
1409cd0b 21374
1409cd0b 21375
db9f46a9
TG
21376
21377
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21379$as_echo_n "checking for nextafter... " >&6; }
22e05272 21380if ${gcc_cv_math_func_nextafter+:} false; then :
5213506e 21381 $as_echo_n "(cached) " >&6
1409cd0b 21382else
db9f46a9 21383 if test x$gcc_no_link = xyes; then
22e05272 21384 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21385fi
5213506e 21386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21387/* end confdefs.h. */
21388
db9f46a9
TG
21389#ifdef HAVE_COMPLEX_H
21390#include <complex.h>
21391#endif
21392#ifdef HAVE_MATH_H
21393#include <math.h>
1409cd0b 21394#endif
db9f46a9
TG
21395
21396int (*ptr)() = (int (*)())nextafter;
21397
1409cd0b
FXC
21398int
21399main ()
21400{
1409cd0b
FXC
21401 return 0;
21402}
db9f46a9 21403
1409cd0b 21404_ACEOF
5213506e 21405if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21406 gcc_cv_math_func_nextafter=yes
1409cd0b 21407else
db9f46a9 21408 gcc_cv_math_func_nextafter=no
1409cd0b 21409fi
5213506e
RW
21410rm -f core conftest.err conftest.$ac_objext \
21411 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21412fi
db9f46a9
TG
21413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21414$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21415 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 21416
f38a14ca
TG
21417cat >>confdefs.h <<_ACEOF
21418#define HAVE_NEXTAFTER 1
21419_ACEOF
db9f46a9
TG
21420
21421 fi
1409cd0b 21422
1409cd0b 21423
1409cd0b 21424
db9f46a9
TG
21425
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21427$as_echo_n "checking for nextafterl... " >&6; }
22e05272 21428if ${gcc_cv_math_func_nextafterl+:} false; then :
5213506e 21429 $as_echo_n "(cached) " >&6
1409cd0b 21430else
db9f46a9 21431 if test x$gcc_no_link = xyes; then
22e05272 21432 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21433fi
5213506e 21434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21435/* end confdefs.h. */
21436
db9f46a9
TG
21437#ifdef HAVE_COMPLEX_H
21438#include <complex.h>
1409cd0b 21439#endif
db9f46a9
TG
21440#ifdef HAVE_MATH_H
21441#include <math.h>
21442#endif
21443
21444int (*ptr)() = (int (*)())nextafterl;
21445
1409cd0b
FXC
21446int
21447main ()
21448{
1409cd0b
FXC
21449 return 0;
21450}
db9f46a9 21451
1409cd0b 21452_ACEOF
5213506e 21453if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21454 gcc_cv_math_func_nextafterl=yes
1409cd0b 21455else
db9f46a9 21456 gcc_cv_math_func_nextafterl=no
1409cd0b 21457fi
5213506e
RW
21458rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21460fi
db9f46a9
TG
21461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21462$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21463 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 21464
f38a14ca
TG
21465cat >>confdefs.h <<_ACEOF
21466#define HAVE_NEXTAFTERL 1
21467_ACEOF
db9f46a9
TG
21468
21469 fi
21470
1409cd0b 21471
1409cd0b 21472
1409cd0b 21473
db9f46a9
TG
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21475$as_echo_n "checking for powf... " >&6; }
22e05272 21476if ${gcc_cv_math_func_powf+:} false; then :
5213506e 21477 $as_echo_n "(cached) " >&6
1409cd0b 21478else
db9f46a9 21479 if test x$gcc_no_link = xyes; then
22e05272 21480 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21481fi
5213506e 21482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21483/* end confdefs.h. */
21484
db9f46a9
TG
21485#ifdef HAVE_COMPLEX_H
21486#include <complex.h>
21487#endif
21488#ifdef HAVE_MATH_H
21489#include <math.h>
1409cd0b 21490#endif
db9f46a9
TG
21491
21492int (*ptr)() = (int (*)())powf;
21493
1409cd0b
FXC
21494int
21495main ()
21496{
1409cd0b
FXC
21497 return 0;
21498}
db9f46a9 21499
1409cd0b 21500_ACEOF
5213506e 21501if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21502 gcc_cv_math_func_powf=yes
1409cd0b 21503else
db9f46a9 21504 gcc_cv_math_func_powf=no
1409cd0b 21505fi
5213506e
RW
21506rm -f core conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21508fi
db9f46a9
TG
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21510$as_echo "$gcc_cv_math_func_powf" >&6; }
21511 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 21512
f38a14ca
TG
21513cat >>confdefs.h <<_ACEOF
21514#define HAVE_POWF 1
21515_ACEOF
db9f46a9
TG
21516
21517 fi
1409cd0b 21518
1409cd0b 21519
1409cd0b 21520
db9f46a9
TG
21521
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21523$as_echo_n "checking for pow... " >&6; }
22e05272 21524if ${gcc_cv_math_func_pow+:} false; then :
5213506e 21525 $as_echo_n "(cached) " >&6
1409cd0b 21526else
db9f46a9 21527 if test x$gcc_no_link = xyes; then
22e05272 21528 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21529fi
5213506e 21530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21531/* end confdefs.h. */
21532
db9f46a9
TG
21533#ifdef HAVE_COMPLEX_H
21534#include <complex.h>
1409cd0b 21535#endif
db9f46a9
TG
21536#ifdef HAVE_MATH_H
21537#include <math.h>
21538#endif
21539
21540int (*ptr)() = (int (*)())pow;
21541
1409cd0b
FXC
21542int
21543main ()
21544{
1409cd0b
FXC
21545 return 0;
21546}
db9f46a9 21547
1409cd0b 21548_ACEOF
5213506e 21549if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21550 gcc_cv_math_func_pow=yes
1409cd0b 21551else
db9f46a9 21552 gcc_cv_math_func_pow=no
1409cd0b 21553fi
5213506e
RW
21554rm -f core conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21556fi
db9f46a9
TG
21557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21558$as_echo "$gcc_cv_math_func_pow" >&6; }
21559 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 21560
f38a14ca
TG
21561cat >>confdefs.h <<_ACEOF
21562#define HAVE_POW 1
21563_ACEOF
1409cd0b 21564
db9f46a9 21565 fi
1409cd0b 21566
1409cd0b 21567
db9f46a9
TG
21568
21569
db9f46a9
TG
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21571$as_echo_n "checking for cpowf... " >&6; }
22e05272 21572if ${gcc_cv_math_func_cpowf+:} false; then :
5213506e 21573 $as_echo_n "(cached) " >&6
1409cd0b 21574else
db9f46a9 21575 if test x$gcc_no_link = xyes; then
22e05272 21576 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21577fi
5213506e 21578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21579/* end confdefs.h. */
21580
db9f46a9
TG
21581#ifdef HAVE_COMPLEX_H
21582#include <complex.h>
1409cd0b 21583#endif
db9f46a9
TG
21584#ifdef HAVE_MATH_H
21585#include <math.h>
21586#endif
21587
21588int (*ptr)() = (int (*)())cpowf;
21589
1409cd0b
FXC
21590int
21591main ()
21592{
1409cd0b
FXC
21593 return 0;
21594}
db9f46a9 21595
1409cd0b 21596_ACEOF
5213506e 21597if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21598 gcc_cv_math_func_cpowf=yes
1409cd0b 21599else
db9f46a9 21600 gcc_cv_math_func_cpowf=no
1409cd0b 21601fi
5213506e
RW
21602rm -f core conftest.err conftest.$ac_objext \
21603 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21604fi
db9f46a9
TG
21605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21606$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21607 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 21608
f38a14ca
TG
21609cat >>confdefs.h <<_ACEOF
21610#define HAVE_CPOWF 1
21611_ACEOF
db9f46a9
TG
21612
21613 fi
21614
1409cd0b 21615
1409cd0b 21616
1409cd0b 21617
db9f46a9
TG
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21619$as_echo_n "checking for cpow... " >&6; }
22e05272 21620if ${gcc_cv_math_func_cpow+:} false; then :
5213506e 21621 $as_echo_n "(cached) " >&6
1409cd0b 21622else
db9f46a9 21623 if test x$gcc_no_link = xyes; then
22e05272 21624 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21625fi
5213506e 21626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21627/* end confdefs.h. */
21628
db9f46a9
TG
21629#ifdef HAVE_COMPLEX_H
21630#include <complex.h>
21631#endif
21632#ifdef HAVE_MATH_H
21633#include <math.h>
1409cd0b 21634#endif
db9f46a9
TG
21635
21636int (*ptr)() = (int (*)())cpow;
21637
1409cd0b
FXC
21638int
21639main ()
21640{
1409cd0b
FXC
21641 return 0;
21642}
db9f46a9 21643
1409cd0b 21644_ACEOF
5213506e 21645if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21646 gcc_cv_math_func_cpow=yes
1409cd0b 21647else
db9f46a9 21648 gcc_cv_math_func_cpow=no
1409cd0b 21649fi
5213506e
RW
21650rm -f core conftest.err conftest.$ac_objext \
21651 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21652fi
db9f46a9
TG
21653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21654$as_echo "$gcc_cv_math_func_cpow" >&6; }
21655 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21656
f38a14ca
TG
21657cat >>confdefs.h <<_ACEOF
21658#define HAVE_CPOW 1
21659_ACEOF
db9f46a9
TG
21660
21661 fi
1409cd0b 21662
1409cd0b 21663
1409cd0b 21664
db9f46a9
TG
21665
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21667$as_echo_n "checking for cpowl... " >&6; }
22e05272 21668if ${gcc_cv_math_func_cpowl+:} false; then :
5213506e 21669 $as_echo_n "(cached) " >&6
1409cd0b 21670else
db9f46a9 21671 if test x$gcc_no_link = xyes; then
22e05272 21672 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21673fi
5213506e 21674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21675/* end confdefs.h. */
21676
db9f46a9
TG
21677#ifdef HAVE_COMPLEX_H
21678#include <complex.h>
1409cd0b 21679#endif
db9f46a9
TG
21680#ifdef HAVE_MATH_H
21681#include <math.h>
21682#endif
21683
21684int (*ptr)() = (int (*)())cpowl;
21685
1409cd0b
FXC
21686int
21687main ()
21688{
1409cd0b
FXC
21689 return 0;
21690}
db9f46a9 21691
1409cd0b 21692_ACEOF
5213506e 21693if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21694 gcc_cv_math_func_cpowl=yes
1409cd0b 21695else
db9f46a9 21696 gcc_cv_math_func_cpowl=no
1409cd0b 21697fi
5213506e
RW
21698rm -f core conftest.err conftest.$ac_objext \
21699 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21700fi
db9f46a9
TG
21701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21702$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21703 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21704
f38a14ca
TG
21705cat >>confdefs.h <<_ACEOF
21706#define HAVE_CPOWL 1
21707_ACEOF
1409cd0b 21708
db9f46a9 21709 fi
1409cd0b 21710
1409cd0b 21711
db9f46a9
TG
21712
21713
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21715$as_echo_n "checking for roundf... " >&6; }
22e05272 21716if ${gcc_cv_math_func_roundf+:} false; then :
5213506e 21717 $as_echo_n "(cached) " >&6
1409cd0b 21718else
db9f46a9 21719 if test x$gcc_no_link = xyes; then
22e05272 21720 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21721fi
5213506e 21722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21723/* end confdefs.h. */
21724
db9f46a9
TG
21725#ifdef HAVE_COMPLEX_H
21726#include <complex.h>
21727#endif
21728#ifdef HAVE_MATH_H
21729#include <math.h>
1409cd0b 21730#endif
db9f46a9
TG
21731
21732int (*ptr)() = (int (*)())roundf;
21733
1409cd0b
FXC
21734int
21735main ()
21736{
1409cd0b
FXC
21737 return 0;
21738}
db9f46a9 21739
1409cd0b 21740_ACEOF
5213506e 21741if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21742 gcc_cv_math_func_roundf=yes
1409cd0b 21743else
db9f46a9 21744 gcc_cv_math_func_roundf=no
1409cd0b 21745fi
5213506e
RW
21746rm -f core conftest.err conftest.$ac_objext \
21747 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21748fi
db9f46a9
TG
21749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21750$as_echo "$gcc_cv_math_func_roundf" >&6; }
21751 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21752
f38a14ca
TG
21753cat >>confdefs.h <<_ACEOF
21754#define HAVE_ROUNDF 1
21755_ACEOF
db9f46a9
TG
21756
21757 fi
1409cd0b 21758
1409cd0b 21759
1409cd0b 21760
db9f46a9
TG
21761
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21763$as_echo_n "checking for round... " >&6; }
22e05272 21764if ${gcc_cv_math_func_round+:} false; then :
5213506e 21765 $as_echo_n "(cached) " >&6
1409cd0b 21766else
db9f46a9 21767 if test x$gcc_no_link = xyes; then
22e05272 21768 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21769fi
5213506e 21770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21771/* end confdefs.h. */
21772
db9f46a9
TG
21773#ifdef HAVE_COMPLEX_H
21774#include <complex.h>
1409cd0b 21775#endif
db9f46a9
TG
21776#ifdef HAVE_MATH_H
21777#include <math.h>
21778#endif
21779
21780int (*ptr)() = (int (*)())round;
21781
1409cd0b
FXC
21782int
21783main ()
21784{
1409cd0b
FXC
21785 return 0;
21786}
db9f46a9 21787
1409cd0b 21788_ACEOF
5213506e 21789if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21790 gcc_cv_math_func_round=yes
1409cd0b 21791else
db9f46a9 21792 gcc_cv_math_func_round=no
1409cd0b 21793fi
5213506e
RW
21794rm -f core conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21796fi
db9f46a9
TG
21797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21798$as_echo "$gcc_cv_math_func_round" >&6; }
21799 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21800
f38a14ca
TG
21801cat >>confdefs.h <<_ACEOF
21802#define HAVE_ROUND 1
21803_ACEOF
db9f46a9
TG
21804
21805 fi
21806
1409cd0b 21807
1409cd0b 21808
1409cd0b 21809
db9f46a9
TG
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21811$as_echo_n "checking for roundl... " >&6; }
22e05272 21812if ${gcc_cv_math_func_roundl+:} false; then :
5213506e 21813 $as_echo_n "(cached) " >&6
94f548c2 21814else
db9f46a9 21815 if test x$gcc_no_link = xyes; then
22e05272 21816 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21817fi
5213506e 21818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21819/* end confdefs.h. */
21820
db9f46a9
TG
21821#ifdef HAVE_COMPLEX_H
21822#include <complex.h>
21823#endif
21824#ifdef HAVE_MATH_H
21825#include <math.h>
94f548c2 21826#endif
db9f46a9
TG
21827
21828int (*ptr)() = (int (*)())roundl;
21829
94f548c2
FXC
21830int
21831main ()
21832{
94f548c2
FXC
21833 return 0;
21834}
db9f46a9 21835
94f548c2 21836_ACEOF
5213506e 21837if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21838 gcc_cv_math_func_roundl=yes
94f548c2 21839else
db9f46a9 21840 gcc_cv_math_func_roundl=no
94f548c2 21841fi
5213506e
RW
21842rm -f core conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
94f548c2 21844fi
db9f46a9
TG
21845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21846$as_echo "$gcc_cv_math_func_roundl" >&6; }
21847 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21848
f38a14ca
TG
21849cat >>confdefs.h <<_ACEOF
21850#define HAVE_ROUNDL 1
21851_ACEOF
db9f46a9
TG
21852
21853 fi
94f548c2 21854
94f548c2 21855
94f548c2 21856
db9f46a9
TG
21857
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21859$as_echo_n "checking for lroundf... " >&6; }
22e05272 21860if ${gcc_cv_math_func_lroundf+:} false; then :
5213506e 21861 $as_echo_n "(cached) " >&6
94f548c2 21862else
db9f46a9 21863 if test x$gcc_no_link = xyes; then
22e05272 21864 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21865fi
5213506e 21866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21867/* end confdefs.h. */
21868
db9f46a9
TG
21869#ifdef HAVE_COMPLEX_H
21870#include <complex.h>
94f548c2 21871#endif
db9f46a9
TG
21872#ifdef HAVE_MATH_H
21873#include <math.h>
21874#endif
21875
21876int (*ptr)() = (int (*)())lroundf;
21877
94f548c2
FXC
21878int
21879main ()
21880{
94f548c2
FXC
21881 return 0;
21882}
db9f46a9 21883
94f548c2 21884_ACEOF
5213506e 21885if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21886 gcc_cv_math_func_lroundf=yes
94f548c2 21887else
db9f46a9 21888 gcc_cv_math_func_lroundf=no
94f548c2 21889fi
5213506e
RW
21890rm -f core conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
94f548c2 21892fi
db9f46a9
TG
21893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21894$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21895 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21896
f38a14ca
TG
21897cat >>confdefs.h <<_ACEOF
21898#define HAVE_LROUNDF 1
21899_ACEOF
94f548c2 21900
db9f46a9 21901 fi
94f548c2 21902
94f548c2 21903
db9f46a9
TG
21904
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21907$as_echo_n "checking for lround... " >&6; }
22e05272 21908if ${gcc_cv_math_func_lround+:} false; then :
5213506e 21909 $as_echo_n "(cached) " >&6
94f548c2 21910else
db9f46a9 21911 if test x$gcc_no_link = xyes; then
22e05272 21912 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21913fi
5213506e 21914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21915/* end confdefs.h. */
21916
db9f46a9
TG
21917#ifdef HAVE_COMPLEX_H
21918#include <complex.h>
21919#endif
21920#ifdef HAVE_MATH_H
21921#include <math.h>
94f548c2 21922#endif
db9f46a9
TG
21923
21924int (*ptr)() = (int (*)())lround;
21925
94f548c2
FXC
21926int
21927main ()
21928{
94f548c2
FXC
21929 return 0;
21930}
db9f46a9 21931
94f548c2 21932_ACEOF
5213506e 21933if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21934 gcc_cv_math_func_lround=yes
94f548c2 21935else
db9f46a9 21936 gcc_cv_math_func_lround=no
94f548c2 21937fi
5213506e
RW
21938rm -f core conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
94f548c2 21940fi
db9f46a9
TG
21941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21942$as_echo "$gcc_cv_math_func_lround" >&6; }
21943 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21944
f38a14ca
TG
21945cat >>confdefs.h <<_ACEOF
21946#define HAVE_LROUND 1
21947_ACEOF
db9f46a9
TG
21948
21949 fi
21950
94f548c2 21951
94f548c2 21952
94f548c2 21953
db9f46a9
TG
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21955$as_echo_n "checking for lroundl... " >&6; }
22e05272 21956if ${gcc_cv_math_func_lroundl+:} false; then :
5213506e 21957 $as_echo_n "(cached) " >&6
94f548c2 21958else
db9f46a9 21959 if test x$gcc_no_link = xyes; then
22e05272 21960 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21961fi
5213506e 21962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21963/* end confdefs.h. */
21964
db9f46a9
TG
21965#ifdef HAVE_COMPLEX_H
21966#include <complex.h>
21967#endif
21968#ifdef HAVE_MATH_H
21969#include <math.h>
94f548c2 21970#endif
db9f46a9
TG
21971
21972int (*ptr)() = (int (*)())lroundl;
21973
94f548c2
FXC
21974int
21975main ()
21976{
94f548c2
FXC
21977 return 0;
21978}
db9f46a9 21979
94f548c2 21980_ACEOF
5213506e 21981if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21982 gcc_cv_math_func_lroundl=yes
94f548c2 21983else
db9f46a9 21984 gcc_cv_math_func_lroundl=no
94f548c2 21985fi
5213506e
RW
21986rm -f core conftest.err conftest.$ac_objext \
21987 conftest$ac_exeext conftest.$ac_ext
94f548c2 21988fi
db9f46a9
TG
21989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21990$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21991 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21992
f38a14ca
TG
21993cat >>confdefs.h <<_ACEOF
21994#define HAVE_LROUNDL 1
21995_ACEOF
94f548c2 21996
db9f46a9 21997 fi
94f548c2 21998
94f548c2 21999
db9f46a9
TG
22000
22001
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
22003$as_echo_n "checking for llroundf... " >&6; }
22e05272 22004if ${gcc_cv_math_func_llroundf+:} false; then :
5213506e 22005 $as_echo_n "(cached) " >&6
94f548c2 22006else
db9f46a9 22007 if test x$gcc_no_link = xyes; then
22e05272 22008 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22009fi
5213506e 22010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22011/* end confdefs.h. */
22012
db9f46a9
TG
22013#ifdef HAVE_COMPLEX_H
22014#include <complex.h>
94f548c2 22015#endif
db9f46a9
TG
22016#ifdef HAVE_MATH_H
22017#include <math.h>
22018#endif
22019
22020int (*ptr)() = (int (*)())llroundf;
22021
94f548c2
FXC
22022int
22023main ()
22024{
94f548c2
FXC
22025 return 0;
22026}
db9f46a9 22027
94f548c2 22028_ACEOF
5213506e 22029if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22030 gcc_cv_math_func_llroundf=yes
94f548c2 22031else
db9f46a9 22032 gcc_cv_math_func_llroundf=no
94f548c2 22033fi
5213506e
RW
22034rm -f core conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
94f548c2 22036fi
db9f46a9
TG
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
22038$as_echo "$gcc_cv_math_func_llroundf" >&6; }
22039 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 22040
f38a14ca
TG
22041cat >>confdefs.h <<_ACEOF
22042#define HAVE_LLROUNDF 1
22043_ACEOF
94f548c2 22044
db9f46a9 22045 fi
94f548c2 22046
94f548c2 22047
db9f46a9
TG
22048
22049
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
22051$as_echo_n "checking for llround... " >&6; }
22e05272 22052if ${gcc_cv_math_func_llround+:} false; then :
5213506e 22053 $as_echo_n "(cached) " >&6
94f548c2 22054else
db9f46a9 22055 if test x$gcc_no_link = xyes; then
22e05272 22056 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22057fi
5213506e 22058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22059/* end confdefs.h. */
22060
db9f46a9
TG
22061#ifdef HAVE_COMPLEX_H
22062#include <complex.h>
22063#endif
22064#ifdef HAVE_MATH_H
22065#include <math.h>
94f548c2 22066#endif
db9f46a9
TG
22067
22068int (*ptr)() = (int (*)())llround;
22069
94f548c2
FXC
22070int
22071main ()
22072{
94f548c2
FXC
22073 return 0;
22074}
db9f46a9 22075
94f548c2 22076_ACEOF
5213506e 22077if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22078 gcc_cv_math_func_llround=yes
94f548c2 22079else
db9f46a9 22080 gcc_cv_math_func_llround=no
94f548c2 22081fi
5213506e
RW
22082rm -f core conftest.err conftest.$ac_objext \
22083 conftest$ac_exeext conftest.$ac_ext
94f548c2 22084fi
db9f46a9
TG
22085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
22086$as_echo "$gcc_cv_math_func_llround" >&6; }
22087 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 22088
f38a14ca
TG
22089cat >>confdefs.h <<_ACEOF
22090#define HAVE_LLROUND 1
22091_ACEOF
db9f46a9
TG
22092
22093 fi
22094
94f548c2 22095
94f548c2 22096
94f548c2 22097
db9f46a9
TG
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
22099$as_echo_n "checking for llroundl... " >&6; }
22e05272 22100if ${gcc_cv_math_func_llroundl+:} false; then :
5213506e 22101 $as_echo_n "(cached) " >&6
1409cd0b 22102else
db9f46a9 22103 if test x$gcc_no_link = xyes; then
22e05272 22104 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22105fi
5213506e 22106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22107/* end confdefs.h. */
22108
db9f46a9
TG
22109#ifdef HAVE_COMPLEX_H
22110#include <complex.h>
22111#endif
22112#ifdef HAVE_MATH_H
22113#include <math.h>
1409cd0b 22114#endif
db9f46a9
TG
22115
22116int (*ptr)() = (int (*)())llroundl;
22117
1409cd0b
FXC
22118int
22119main ()
22120{
1409cd0b
FXC
22121 return 0;
22122}
db9f46a9 22123
1409cd0b 22124_ACEOF
5213506e 22125if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22126 gcc_cv_math_func_llroundl=yes
1409cd0b 22127else
db9f46a9 22128 gcc_cv_math_func_llroundl=no
1409cd0b 22129fi
5213506e
RW
22130rm -f core conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22132fi
db9f46a9
TG
22133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
22134$as_echo "$gcc_cv_math_func_llroundl" >&6; }
22135 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 22136
f38a14ca
TG
22137cat >>confdefs.h <<_ACEOF
22138#define HAVE_LLROUNDL 1
22139_ACEOF
1409cd0b 22140
db9f46a9 22141 fi
1409cd0b 22142
1409cd0b 22143
db9f46a9
TG
22144
22145
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
22147$as_echo_n "checking for scalbnf... " >&6; }
22e05272 22148if ${gcc_cv_math_func_scalbnf+:} false; then :
5213506e 22149 $as_echo_n "(cached) " >&6
1409cd0b 22150else
db9f46a9 22151 if test x$gcc_no_link = xyes; then
22e05272 22152 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22153fi
5213506e 22154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22155/* end confdefs.h. */
22156
db9f46a9
TG
22157#ifdef HAVE_COMPLEX_H
22158#include <complex.h>
1409cd0b 22159#endif
db9f46a9
TG
22160#ifdef HAVE_MATH_H
22161#include <math.h>
22162#endif
22163
22164int (*ptr)() = (int (*)())scalbnf;
22165
1409cd0b
FXC
22166int
22167main ()
22168{
1409cd0b
FXC
22169 return 0;
22170}
db9f46a9 22171
1409cd0b 22172_ACEOF
5213506e 22173if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22174 gcc_cv_math_func_scalbnf=yes
1409cd0b 22175else
db9f46a9 22176 gcc_cv_math_func_scalbnf=no
1409cd0b 22177fi
5213506e
RW
22178rm -f core conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22180fi
db9f46a9
TG
22181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22182$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22183 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 22184
f38a14ca
TG
22185cat >>confdefs.h <<_ACEOF
22186#define HAVE_SCALBNF 1
22187_ACEOF
1409cd0b 22188
db9f46a9 22189 fi
1409cd0b 22190
1409cd0b 22191
db9f46a9
TG
22192
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22195$as_echo_n "checking for scalbn... " >&6; }
22e05272 22196if ${gcc_cv_math_func_scalbn+:} false; then :
5213506e 22197 $as_echo_n "(cached) " >&6
1409cd0b 22198else
db9f46a9 22199 if test x$gcc_no_link = xyes; then
22e05272 22200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22201fi
5213506e 22202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22203/* end confdefs.h. */
22204
db9f46a9
TG
22205#ifdef HAVE_COMPLEX_H
22206#include <complex.h>
22207#endif
22208#ifdef HAVE_MATH_H
22209#include <math.h>
1409cd0b 22210#endif
db9f46a9
TG
22211
22212int (*ptr)() = (int (*)())scalbn;
22213
1409cd0b
FXC
22214int
22215main ()
22216{
1409cd0b
FXC
22217 return 0;
22218}
db9f46a9 22219
1409cd0b 22220_ACEOF
5213506e 22221if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22222 gcc_cv_math_func_scalbn=yes
1409cd0b 22223else
db9f46a9 22224 gcc_cv_math_func_scalbn=no
1409cd0b 22225fi
5213506e
RW
22226rm -f core conftest.err conftest.$ac_objext \
22227 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22228fi
db9f46a9
TG
22229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22230$as_echo "$gcc_cv_math_func_scalbn" >&6; }
22231 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 22232
f38a14ca
TG
22233cat >>confdefs.h <<_ACEOF
22234#define HAVE_SCALBN 1
22235_ACEOF
db9f46a9
TG
22236
22237 fi
22238
1409cd0b 22239
1409cd0b 22240
1409cd0b 22241
db9f46a9
TG
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22243$as_echo_n "checking for scalbnl... " >&6; }
22e05272 22244if ${gcc_cv_math_func_scalbnl+:} false; then :
5213506e 22245 $as_echo_n "(cached) " >&6
1409cd0b 22246else
db9f46a9 22247 if test x$gcc_no_link = xyes; then
22e05272 22248 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22249fi
5213506e 22250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22251/* end confdefs.h. */
22252
db9f46a9
TG
22253#ifdef HAVE_COMPLEX_H
22254#include <complex.h>
22255#endif
22256#ifdef HAVE_MATH_H
22257#include <math.h>
1409cd0b 22258#endif
db9f46a9
TG
22259
22260int (*ptr)() = (int (*)())scalbnl;
22261
1409cd0b
FXC
22262int
22263main ()
22264{
1409cd0b
FXC
22265 return 0;
22266}
db9f46a9 22267
1409cd0b 22268_ACEOF
5213506e 22269if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22270 gcc_cv_math_func_scalbnl=yes
1409cd0b 22271else
db9f46a9 22272 gcc_cv_math_func_scalbnl=no
1409cd0b 22273fi
5213506e
RW
22274rm -f core conftest.err conftest.$ac_objext \
22275 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22276fi
db9f46a9
TG
22277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22278$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22279 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 22280
f38a14ca
TG
22281cat >>confdefs.h <<_ACEOF
22282#define HAVE_SCALBNL 1
22283_ACEOF
1409cd0b 22284
db9f46a9 22285 fi
1409cd0b 22286
1409cd0b 22287
db9f46a9
TG
22288
22289
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22291$as_echo_n "checking for sinf... " >&6; }
22e05272 22292if ${gcc_cv_math_func_sinf+:} false; then :
5213506e 22293 $as_echo_n "(cached) " >&6
1409cd0b 22294else
db9f46a9 22295 if test x$gcc_no_link = xyes; then
22e05272 22296 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22297fi
5213506e 22298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22299/* end confdefs.h. */
22300
db9f46a9
TG
22301#ifdef HAVE_COMPLEX_H
22302#include <complex.h>
1409cd0b 22303#endif
db9f46a9
TG
22304#ifdef HAVE_MATH_H
22305#include <math.h>
22306#endif
22307
22308int (*ptr)() = (int (*)())sinf;
22309
1409cd0b
FXC
22310int
22311main ()
22312{
1409cd0b
FXC
22313 return 0;
22314}
db9f46a9 22315
1409cd0b 22316_ACEOF
5213506e 22317if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22318 gcc_cv_math_func_sinf=yes
1409cd0b 22319else
db9f46a9 22320 gcc_cv_math_func_sinf=no
1409cd0b 22321fi
5213506e
RW
22322rm -f core conftest.err conftest.$ac_objext \
22323 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22324fi
db9f46a9
TG
22325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22326$as_echo "$gcc_cv_math_func_sinf" >&6; }
22327 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 22328
f38a14ca
TG
22329cat >>confdefs.h <<_ACEOF
22330#define HAVE_SINF 1
22331_ACEOF
1409cd0b 22332
db9f46a9 22333 fi
1409cd0b 22334
1409cd0b 22335
db9f46a9
TG
22336
22337
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22339$as_echo_n "checking for sin... " >&6; }
22e05272 22340if ${gcc_cv_math_func_sin+:} false; then :
5213506e 22341 $as_echo_n "(cached) " >&6
1409cd0b 22342else
db9f46a9 22343 if test x$gcc_no_link = xyes; then
22e05272 22344 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22345fi
5213506e 22346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22347/* end confdefs.h. */
22348
db9f46a9
TG
22349#ifdef HAVE_COMPLEX_H
22350#include <complex.h>
1409cd0b 22351#endif
db9f46a9
TG
22352#ifdef HAVE_MATH_H
22353#include <math.h>
22354#endif
22355
22356int (*ptr)() = (int (*)())sin;
22357
1409cd0b
FXC
22358int
22359main ()
22360{
1409cd0b
FXC
22361 return 0;
22362}
db9f46a9 22363
1409cd0b 22364_ACEOF
5213506e 22365if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22366 gcc_cv_math_func_sin=yes
1409cd0b 22367else
db9f46a9 22368 gcc_cv_math_func_sin=no
1409cd0b 22369fi
5213506e
RW
22370rm -f core conftest.err conftest.$ac_objext \
22371 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22372fi
db9f46a9
TG
22373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22374$as_echo "$gcc_cv_math_func_sin" >&6; }
22375 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 22376
f38a14ca
TG
22377cat >>confdefs.h <<_ACEOF
22378#define HAVE_SIN 1
22379_ACEOF
db9f46a9
TG
22380
22381 fi
22382
1409cd0b 22383
1409cd0b 22384
1409cd0b 22385
db9f46a9
TG
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22387$as_echo_n "checking for sinl... " >&6; }
22e05272 22388if ${gcc_cv_math_func_sinl+:} false; then :
5213506e 22389 $as_echo_n "(cached) " >&6
1409cd0b 22390else
db9f46a9 22391 if test x$gcc_no_link = xyes; then
22e05272 22392 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22393fi
5213506e 22394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22395/* end confdefs.h. */
22396
db9f46a9
TG
22397#ifdef HAVE_COMPLEX_H
22398#include <complex.h>
1409cd0b 22399#endif
db9f46a9
TG
22400#ifdef HAVE_MATH_H
22401#include <math.h>
22402#endif
22403
22404int (*ptr)() = (int (*)())sinl;
22405
1409cd0b
FXC
22406int
22407main ()
22408{
5213506e
RW
22409 return 0;
22410}
db9f46a9 22411
5213506e
RW
22412_ACEOF
22413if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22414 gcc_cv_math_func_sinl=yes
1409cd0b 22415else
db9f46a9 22416 gcc_cv_math_func_sinl=no
1409cd0b 22417fi
5213506e
RW
22418rm -f core conftest.err conftest.$ac_objext \
22419 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22420fi
db9f46a9
TG
22421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22422$as_echo "$gcc_cv_math_func_sinl" >&6; }
22423 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 22424
f38a14ca
TG
22425cat >>confdefs.h <<_ACEOF
22426#define HAVE_SINL 1
22427_ACEOF
db9f46a9
TG
22428
22429 fi
1409cd0b 22430
1409cd0b 22431
1409cd0b 22432
db9f46a9
TG
22433
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22435$as_echo_n "checking for csinf... " >&6; }
22e05272 22436if ${gcc_cv_math_func_csinf+:} false; then :
5213506e 22437 $as_echo_n "(cached) " >&6
1409cd0b 22438else
db9f46a9 22439 if test x$gcc_no_link = xyes; then
22e05272 22440 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22441fi
5213506e 22442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22443/* end confdefs.h. */
22444
db9f46a9
TG
22445#ifdef HAVE_COMPLEX_H
22446#include <complex.h>
22447#endif
22448#ifdef HAVE_MATH_H
22449#include <math.h>
1409cd0b 22450#endif
db9f46a9
TG
22451
22452int (*ptr)() = (int (*)())csinf;
22453
1409cd0b
FXC
22454int
22455main ()
22456{
1409cd0b
FXC
22457 return 0;
22458}
db9f46a9 22459
1409cd0b 22460_ACEOF
5213506e 22461if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22462 gcc_cv_math_func_csinf=yes
1409cd0b 22463else
db9f46a9 22464 gcc_cv_math_func_csinf=no
1409cd0b 22465fi
5213506e
RW
22466rm -f core conftest.err conftest.$ac_objext \
22467 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22468fi
db9f46a9
TG
22469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22470$as_echo "$gcc_cv_math_func_csinf" >&6; }
22471 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 22472
f38a14ca
TG
22473cat >>confdefs.h <<_ACEOF
22474#define HAVE_CSINF 1
22475_ACEOF
1409cd0b 22476
db9f46a9 22477 fi
1409cd0b 22478
1409cd0b 22479
db9f46a9
TG
22480
22481
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22483$as_echo_n "checking for csin... " >&6; }
22e05272 22484if ${gcc_cv_math_func_csin+:} false; then :
5213506e 22485 $as_echo_n "(cached) " >&6
1409cd0b 22486else
db9f46a9 22487 if test x$gcc_no_link = xyes; then
22e05272 22488 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22489fi
5213506e 22490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22491/* end confdefs.h. */
22492
db9f46a9
TG
22493#ifdef HAVE_COMPLEX_H
22494#include <complex.h>
1409cd0b 22495#endif
db9f46a9
TG
22496#ifdef HAVE_MATH_H
22497#include <math.h>
22498#endif
22499
22500int (*ptr)() = (int (*)())csin;
22501
1409cd0b
FXC
22502int
22503main ()
22504{
1409cd0b
FXC
22505 return 0;
22506}
db9f46a9 22507
1409cd0b 22508_ACEOF
5213506e 22509if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22510 gcc_cv_math_func_csin=yes
1409cd0b 22511else
db9f46a9 22512 gcc_cv_math_func_csin=no
1409cd0b 22513fi
5213506e
RW
22514rm -f core conftest.err conftest.$ac_objext \
22515 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22516fi
db9f46a9
TG
22517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22518$as_echo "$gcc_cv_math_func_csin" >&6; }
22519 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 22520
f38a14ca
TG
22521cat >>confdefs.h <<_ACEOF
22522#define HAVE_CSIN 1
22523_ACEOF
db9f46a9
TG
22524
22525 fi
22526
1409cd0b 22527
1409cd0b 22528
1409cd0b 22529
db9f46a9
TG
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22531$as_echo_n "checking for csinl... " >&6; }
22e05272 22532if ${gcc_cv_math_func_csinl+:} false; then :
5213506e 22533 $as_echo_n "(cached) " >&6
1409cd0b 22534else
db9f46a9 22535 if test x$gcc_no_link = xyes; then
22e05272 22536 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22537fi
5213506e 22538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22539/* end confdefs.h. */
22540
db9f46a9
TG
22541#ifdef HAVE_COMPLEX_H
22542#include <complex.h>
1409cd0b 22543#endif
db9f46a9
TG
22544#ifdef HAVE_MATH_H
22545#include <math.h>
22546#endif
22547
22548int (*ptr)() = (int (*)())csinl;
22549
1409cd0b
FXC
22550int
22551main ()
22552{
1409cd0b
FXC
22553 return 0;
22554}
db9f46a9 22555
1409cd0b 22556_ACEOF
5213506e 22557if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22558 gcc_cv_math_func_csinl=yes
1409cd0b 22559else
db9f46a9 22560 gcc_cv_math_func_csinl=no
1409cd0b 22561fi
5213506e
RW
22562rm -f core conftest.err conftest.$ac_objext \
22563 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22564fi
db9f46a9
TG
22565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22566$as_echo "$gcc_cv_math_func_csinl" >&6; }
22567 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 22568
f38a14ca
TG
22569cat >>confdefs.h <<_ACEOF
22570#define HAVE_CSINL 1
22571_ACEOF
db9f46a9
TG
22572
22573 fi
1409cd0b 22574
1409cd0b 22575
1409cd0b 22576
db9f46a9
TG
22577
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22579$as_echo_n "checking for sinhf... " >&6; }
22e05272 22580if ${gcc_cv_math_func_sinhf+:} false; then :
5213506e 22581 $as_echo_n "(cached) " >&6
1409cd0b 22582else
db9f46a9 22583 if test x$gcc_no_link = xyes; then
22e05272 22584 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22585fi
5213506e 22586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22587/* end confdefs.h. */
22588
db9f46a9
TG
22589#ifdef HAVE_COMPLEX_H
22590#include <complex.h>
22591#endif
22592#ifdef HAVE_MATH_H
22593#include <math.h>
1409cd0b 22594#endif
db9f46a9
TG
22595
22596int (*ptr)() = (int (*)())sinhf;
22597
1409cd0b
FXC
22598int
22599main ()
22600{
1409cd0b
FXC
22601 return 0;
22602}
db9f46a9 22603
1409cd0b 22604_ACEOF
5213506e 22605if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22606 gcc_cv_math_func_sinhf=yes
1409cd0b 22607else
db9f46a9 22608 gcc_cv_math_func_sinhf=no
1409cd0b 22609fi
5213506e
RW
22610rm -f core conftest.err conftest.$ac_objext \
22611 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22612fi
db9f46a9
TG
22613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22614$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22615 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 22616
f38a14ca
TG
22617cat >>confdefs.h <<_ACEOF
22618#define HAVE_SINHF 1
22619_ACEOF
1409cd0b 22620
db9f46a9 22621 fi
1409cd0b 22622
1409cd0b 22623
db9f46a9
TG
22624
22625
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22627$as_echo_n "checking for sinh... " >&6; }
22e05272 22628if ${gcc_cv_math_func_sinh+:} false; then :
5213506e 22629 $as_echo_n "(cached) " >&6
1409cd0b 22630else
db9f46a9 22631 if test x$gcc_no_link = xyes; then
22e05272 22632 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22633fi
5213506e 22634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22635/* end confdefs.h. */
22636
db9f46a9
TG
22637#ifdef HAVE_COMPLEX_H
22638#include <complex.h>
1409cd0b 22639#endif
db9f46a9
TG
22640#ifdef HAVE_MATH_H
22641#include <math.h>
22642#endif
22643
22644int (*ptr)() = (int (*)())sinh;
22645
1409cd0b
FXC
22646int
22647main ()
22648{
1409cd0b
FXC
22649 return 0;
22650}
db9f46a9 22651
1409cd0b 22652_ACEOF
5213506e 22653if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22654 gcc_cv_math_func_sinh=yes
1409cd0b 22655else
db9f46a9 22656 gcc_cv_math_func_sinh=no
1409cd0b 22657fi
5213506e
RW
22658rm -f core conftest.err conftest.$ac_objext \
22659 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22660fi
db9f46a9
TG
22661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22662$as_echo "$gcc_cv_math_func_sinh" >&6; }
22663 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22664
f38a14ca
TG
22665cat >>confdefs.h <<_ACEOF
22666#define HAVE_SINH 1
22667_ACEOF
db9f46a9
TG
22668
22669 fi
22670
1409cd0b 22671
1409cd0b 22672
1409cd0b 22673
db9f46a9
TG
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22675$as_echo_n "checking for sinhl... " >&6; }
22e05272 22676if ${gcc_cv_math_func_sinhl+:} false; then :
5213506e 22677 $as_echo_n "(cached) " >&6
1409cd0b 22678else
db9f46a9 22679 if test x$gcc_no_link = xyes; then
22e05272 22680 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22681fi
5213506e 22682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22683/* end confdefs.h. */
22684
db9f46a9
TG
22685#ifdef HAVE_COMPLEX_H
22686#include <complex.h>
1409cd0b 22687#endif
db9f46a9
TG
22688#ifdef HAVE_MATH_H
22689#include <math.h>
22690#endif
22691
22692int (*ptr)() = (int (*)())sinhl;
22693
1409cd0b
FXC
22694int
22695main ()
22696{
1409cd0b
FXC
22697 return 0;
22698}
db9f46a9 22699
1409cd0b 22700_ACEOF
5213506e 22701if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22702 gcc_cv_math_func_sinhl=yes
1409cd0b 22703else
db9f46a9 22704 gcc_cv_math_func_sinhl=no
1409cd0b 22705fi
5213506e
RW
22706rm -f core conftest.err conftest.$ac_objext \
22707 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22708fi
db9f46a9
TG
22709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22710$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22711 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22712
f38a14ca
TG
22713cat >>confdefs.h <<_ACEOF
22714#define HAVE_SINHL 1
22715_ACEOF
db9f46a9
TG
22716
22717 fi
1409cd0b 22718
1409cd0b 22719
1409cd0b 22720
db9f46a9
TG
22721
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22723$as_echo_n "checking for csinhf... " >&6; }
22e05272 22724if ${gcc_cv_math_func_csinhf+:} false; then :
5213506e 22725 $as_echo_n "(cached) " >&6
1409cd0b 22726else
db9f46a9 22727 if test x$gcc_no_link = xyes; then
22e05272 22728 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22729fi
5213506e 22730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22731/* end confdefs.h. */
22732
db9f46a9
TG
22733#ifdef HAVE_COMPLEX_H
22734#include <complex.h>
22735#endif
22736#ifdef HAVE_MATH_H
22737#include <math.h>
1409cd0b 22738#endif
db9f46a9
TG
22739
22740int (*ptr)() = (int (*)())csinhf;
22741
1409cd0b
FXC
22742int
22743main ()
22744{
1409cd0b
FXC
22745 return 0;
22746}
db9f46a9 22747
1409cd0b 22748_ACEOF
5213506e 22749if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22750 gcc_cv_math_func_csinhf=yes
1409cd0b 22751else
db9f46a9 22752 gcc_cv_math_func_csinhf=no
1409cd0b 22753fi
5213506e
RW
22754rm -f core conftest.err conftest.$ac_objext \
22755 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22756fi
db9f46a9
TG
22757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22758$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22759 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22760
f38a14ca
TG
22761cat >>confdefs.h <<_ACEOF
22762#define HAVE_CSINHF 1
22763_ACEOF
1409cd0b 22764
db9f46a9 22765 fi
1409cd0b 22766
1409cd0b 22767
db9f46a9
TG
22768
22769
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22771$as_echo_n "checking for csinh... " >&6; }
22e05272 22772if ${gcc_cv_math_func_csinh+:} false; then :
5213506e 22773 $as_echo_n "(cached) " >&6
1409cd0b 22774else
db9f46a9 22775 if test x$gcc_no_link = xyes; then
22e05272 22776 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22777fi
5213506e 22778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22779/* end confdefs.h. */
22780
db9f46a9
TG
22781#ifdef HAVE_COMPLEX_H
22782#include <complex.h>
1409cd0b 22783#endif
db9f46a9
TG
22784#ifdef HAVE_MATH_H
22785#include <math.h>
22786#endif
22787
22788int (*ptr)() = (int (*)())csinh;
22789
1409cd0b
FXC
22790int
22791main ()
22792{
1409cd0b
FXC
22793 return 0;
22794}
db9f46a9 22795
1409cd0b 22796_ACEOF
5213506e 22797if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22798 gcc_cv_math_func_csinh=yes
1409cd0b 22799else
db9f46a9 22800 gcc_cv_math_func_csinh=no
1409cd0b 22801fi
5213506e
RW
22802rm -f core conftest.err conftest.$ac_objext \
22803 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22804fi
db9f46a9
TG
22805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22806$as_echo "$gcc_cv_math_func_csinh" >&6; }
22807 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22808
f38a14ca
TG
22809cat >>confdefs.h <<_ACEOF
22810#define HAVE_CSINH 1
22811_ACEOF
db9f46a9
TG
22812
22813 fi
22814
1409cd0b 22815
1409cd0b 22816
1409cd0b 22817
db9f46a9
TG
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22819$as_echo_n "checking for csinhl... " >&6; }
22e05272 22820if ${gcc_cv_math_func_csinhl+:} false; then :
5213506e 22821 $as_echo_n "(cached) " >&6
1409cd0b 22822else
db9f46a9 22823 if test x$gcc_no_link = xyes; then
22e05272 22824 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22825fi
5213506e 22826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22827/* end confdefs.h. */
22828
db9f46a9
TG
22829#ifdef HAVE_COMPLEX_H
22830#include <complex.h>
1409cd0b 22831#endif
db9f46a9
TG
22832#ifdef HAVE_MATH_H
22833#include <math.h>
22834#endif
22835
22836int (*ptr)() = (int (*)())csinhl;
22837
1409cd0b
FXC
22838int
22839main ()
22840{
1409cd0b
FXC
22841 return 0;
22842}
db9f46a9 22843
1409cd0b 22844_ACEOF
5213506e 22845if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22846 gcc_cv_math_func_csinhl=yes
1409cd0b 22847else
db9f46a9 22848 gcc_cv_math_func_csinhl=no
1409cd0b 22849fi
5213506e
RW
22850rm -f core conftest.err conftest.$ac_objext \
22851 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22852fi
db9f46a9
TG
22853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22854$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22855 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22856
f38a14ca
TG
22857cat >>confdefs.h <<_ACEOF
22858#define HAVE_CSINHL 1
22859_ACEOF
db9f46a9
TG
22860
22861 fi
1409cd0b 22862
1409cd0b 22863
1409cd0b 22864
db9f46a9
TG
22865
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22867$as_echo_n "checking for sqrtf... " >&6; }
22e05272 22868if ${gcc_cv_math_func_sqrtf+:} false; then :
5213506e 22869 $as_echo_n "(cached) " >&6
1409cd0b 22870else
db9f46a9 22871 if test x$gcc_no_link = xyes; then
22e05272 22872 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22873fi
5213506e 22874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22875/* end confdefs.h. */
22876
db9f46a9
TG
22877#ifdef HAVE_COMPLEX_H
22878#include <complex.h>
22879#endif
22880#ifdef HAVE_MATH_H
22881#include <math.h>
1409cd0b 22882#endif
db9f46a9
TG
22883
22884int (*ptr)() = (int (*)())sqrtf;
22885
1409cd0b
FXC
22886int
22887main ()
22888{
1409cd0b
FXC
22889 return 0;
22890}
db9f46a9 22891
1409cd0b 22892_ACEOF
5213506e 22893if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22894 gcc_cv_math_func_sqrtf=yes
1409cd0b 22895else
db9f46a9 22896 gcc_cv_math_func_sqrtf=no
1409cd0b 22897fi
5213506e
RW
22898rm -f core conftest.err conftest.$ac_objext \
22899 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22900fi
db9f46a9
TG
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22902$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22903 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22904
f38a14ca
TG
22905cat >>confdefs.h <<_ACEOF
22906#define HAVE_SQRTF 1
22907_ACEOF
db9f46a9
TG
22908
22909 fi
1409cd0b 22910
1409cd0b 22911
db9f46a9
TG
22912
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22915$as_echo_n "checking for sqrt... " >&6; }
22e05272 22916if ${gcc_cv_math_func_sqrt+:} false; then :
db9f46a9
TG
22917 $as_echo_n "(cached) " >&6
22918else
22919 if test x$gcc_no_link = xyes; then
22e05272 22920 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22921fi
db9f46a9
TG
22922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22923/* end confdefs.h. */
22924
22925#ifdef HAVE_COMPLEX_H
22926#include <complex.h>
22927#endif
22928#ifdef HAVE_MATH_H
22929#include <math.h>
22930#endif
22931
22932int (*ptr)() = (int (*)())sqrt;
22933
22934int
22935main ()
22936{
22937 return 0;
22938}
22939
22940_ACEOF
22941if ac_fn_c_try_link "$LINENO"; then :
22942 gcc_cv_math_func_sqrt=yes
22943else
22944 gcc_cv_math_func_sqrt=no
22945fi
22946rm -f core conftest.err conftest.$ac_objext \
22947 conftest$ac_exeext conftest.$ac_ext
22948fi
22949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22950$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22951 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22952
f38a14ca
TG
22953cat >>confdefs.h <<_ACEOF
22954#define HAVE_SQRT 1
22955_ACEOF
db9f46a9
TG
22956
22957 fi
1409cd0b 22958
db9f46a9
TG
22959
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22963$as_echo_n "checking for sqrtl... " >&6; }
22e05272 22964if ${gcc_cv_math_func_sqrtl+:} false; then :
5213506e 22965 $as_echo_n "(cached) " >&6
1409cd0b 22966else
db9f46a9 22967 if test x$gcc_no_link = xyes; then
22e05272 22968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22969fi
5213506e 22970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22971/* end confdefs.h. */
22972
db9f46a9
TG
22973#ifdef HAVE_COMPLEX_H
22974#include <complex.h>
22975#endif
22976#ifdef HAVE_MATH_H
22977#include <math.h>
1409cd0b 22978#endif
db9f46a9
TG
22979
22980int (*ptr)() = (int (*)())sqrtl;
22981
1409cd0b
FXC
22982int
22983main ()
22984{
1409cd0b
FXC
22985 return 0;
22986}
db9f46a9 22987
1409cd0b 22988_ACEOF
5213506e 22989if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22990 gcc_cv_math_func_sqrtl=yes
1409cd0b 22991else
db9f46a9 22992 gcc_cv_math_func_sqrtl=no
1409cd0b 22993fi
5213506e
RW
22994rm -f core conftest.err conftest.$ac_objext \
22995 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22996fi
db9f46a9
TG
22997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22998$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22999 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 23000
f38a14ca
TG
23001cat >>confdefs.h <<_ACEOF
23002#define HAVE_SQRTL 1
23003_ACEOF
db9f46a9
TG
23004
23005 fi
1409cd0b 23006
1409cd0b 23007
1409cd0b 23008
db9f46a9
TG
23009
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
23011$as_echo_n "checking for csqrtf... " >&6; }
22e05272 23012if ${gcc_cv_math_func_csqrtf+:} false; then :
5213506e 23013 $as_echo_n "(cached) " >&6
1409cd0b 23014else
db9f46a9 23015 if test x$gcc_no_link = xyes; then
22e05272 23016 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23017fi
5213506e 23018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23019/* end confdefs.h. */
23020
db9f46a9
TG
23021#ifdef HAVE_COMPLEX_H
23022#include <complex.h>
1409cd0b 23023#endif
db9f46a9
TG
23024#ifdef HAVE_MATH_H
23025#include <math.h>
23026#endif
23027
23028int (*ptr)() = (int (*)())csqrtf;
23029
1409cd0b
FXC
23030int
23031main ()
23032{
1409cd0b
FXC
23033 return 0;
23034}
db9f46a9 23035
1409cd0b 23036_ACEOF
5213506e 23037if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23038 gcc_cv_math_func_csqrtf=yes
1409cd0b 23039else
db9f46a9 23040 gcc_cv_math_func_csqrtf=no
1409cd0b 23041fi
5213506e
RW
23042rm -f core conftest.err conftest.$ac_objext \
23043 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23044fi
db9f46a9
TG
23045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
23046$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
23047 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 23048
f38a14ca
TG
23049cat >>confdefs.h <<_ACEOF
23050#define HAVE_CSQRTF 1
23051_ACEOF
1409cd0b 23052
db9f46a9 23053 fi
1409cd0b 23054
1409cd0b 23055
db9f46a9
TG
23056
23057
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
23059$as_echo_n "checking for csqrt... " >&6; }
22e05272 23060if ${gcc_cv_math_func_csqrt+:} false; then :
5213506e 23061 $as_echo_n "(cached) " >&6
1409cd0b 23062else
db9f46a9 23063 if test x$gcc_no_link = xyes; then
22e05272 23064 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23065fi
5213506e 23066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23067/* end confdefs.h. */
23068
db9f46a9
TG
23069#ifdef HAVE_COMPLEX_H
23070#include <complex.h>
23071#endif
23072#ifdef HAVE_MATH_H
23073#include <math.h>
1409cd0b 23074#endif
db9f46a9
TG
23075
23076int (*ptr)() = (int (*)())csqrt;
23077
1409cd0b
FXC
23078int
23079main ()
23080{
1409cd0b
FXC
23081 return 0;
23082}
db9f46a9 23083
1409cd0b 23084_ACEOF
5213506e 23085if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23086 gcc_cv_math_func_csqrt=yes
1409cd0b 23087else
db9f46a9 23088 gcc_cv_math_func_csqrt=no
1409cd0b 23089fi
5213506e
RW
23090rm -f core conftest.err conftest.$ac_objext \
23091 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23092fi
db9f46a9
TG
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
23094$as_echo "$gcc_cv_math_func_csqrt" >&6; }
23095 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 23096
f38a14ca
TG
23097cat >>confdefs.h <<_ACEOF
23098#define HAVE_CSQRT 1
23099_ACEOF
db9f46a9
TG
23100
23101 fi
1409cd0b 23102
1409cd0b 23103
1409cd0b 23104
db9f46a9
TG
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
23107$as_echo_n "checking for csqrtl... " >&6; }
22e05272 23108if ${gcc_cv_math_func_csqrtl+:} false; then :
5213506e 23109 $as_echo_n "(cached) " >&6
1409cd0b 23110else
db9f46a9 23111 if test x$gcc_no_link = xyes; then
22e05272 23112 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23113fi
5213506e 23114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23115/* end confdefs.h. */
23116
db9f46a9
TG
23117#ifdef HAVE_COMPLEX_H
23118#include <complex.h>
1409cd0b 23119#endif
db9f46a9
TG
23120#ifdef HAVE_MATH_H
23121#include <math.h>
23122#endif
23123
23124int (*ptr)() = (int (*)())csqrtl;
23125
1409cd0b
FXC
23126int
23127main ()
23128{
1409cd0b
FXC
23129 return 0;
23130}
db9f46a9 23131
1409cd0b 23132_ACEOF
5213506e 23133if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23134 gcc_cv_math_func_csqrtl=yes
1409cd0b 23135else
db9f46a9 23136 gcc_cv_math_func_csqrtl=no
1409cd0b 23137fi
5213506e
RW
23138rm -f core conftest.err conftest.$ac_objext \
23139 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23140fi
db9f46a9
TG
23141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
23142$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
23143 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 23144
f38a14ca
TG
23145cat >>confdefs.h <<_ACEOF
23146#define HAVE_CSQRTL 1
23147_ACEOF
db9f46a9
TG
23148
23149 fi
23150
1409cd0b 23151
1409cd0b 23152
1409cd0b 23153
db9f46a9
TG
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
23155$as_echo_n "checking for tanf... " >&6; }
22e05272 23156if ${gcc_cv_math_func_tanf+:} false; then :
5213506e 23157 $as_echo_n "(cached) " >&6
1409cd0b 23158else
db9f46a9 23159 if test x$gcc_no_link = xyes; then
22e05272 23160 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23161fi
5213506e 23162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23163/* end confdefs.h. */
23164
db9f46a9
TG
23165#ifdef HAVE_COMPLEX_H
23166#include <complex.h>
23167#endif
23168#ifdef HAVE_MATH_H
23169#include <math.h>
1409cd0b 23170#endif
db9f46a9
TG
23171
23172int (*ptr)() = (int (*)())tanf;
23173
1409cd0b
FXC
23174int
23175main ()
23176{
1409cd0b
FXC
23177 return 0;
23178}
db9f46a9 23179
1409cd0b 23180_ACEOF
5213506e 23181if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23182 gcc_cv_math_func_tanf=yes
1409cd0b 23183else
db9f46a9 23184 gcc_cv_math_func_tanf=no
1409cd0b 23185fi
5213506e
RW
23186rm -f core conftest.err conftest.$ac_objext \
23187 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23188fi
db9f46a9
TG
23189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23190$as_echo "$gcc_cv_math_func_tanf" >&6; }
23191 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 23192
f38a14ca
TG
23193cat >>confdefs.h <<_ACEOF
23194#define HAVE_TANF 1
23195_ACEOF
db9f46a9
TG
23196
23197 fi
1409cd0b 23198
1409cd0b 23199
1409cd0b 23200
db9f46a9
TG
23201
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23203$as_echo_n "checking for tan... " >&6; }
22e05272 23204if ${gcc_cv_math_func_tan+:} false; then :
5213506e 23205 $as_echo_n "(cached) " >&6
1409cd0b 23206else
db9f46a9 23207 if test x$gcc_no_link = xyes; then
22e05272 23208 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23209fi
5213506e 23210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23211/* end confdefs.h. */
23212
db9f46a9
TG
23213#ifdef HAVE_COMPLEX_H
23214#include <complex.h>
1409cd0b 23215#endif
db9f46a9
TG
23216#ifdef HAVE_MATH_H
23217#include <math.h>
23218#endif
23219
23220int (*ptr)() = (int (*)())tan;
23221
1409cd0b
FXC
23222int
23223main ()
23224{
1409cd0b
FXC
23225 return 0;
23226}
db9f46a9 23227
1409cd0b 23228_ACEOF
5213506e 23229if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23230 gcc_cv_math_func_tan=yes
1409cd0b 23231else
db9f46a9 23232 gcc_cv_math_func_tan=no
1409cd0b 23233fi
5213506e
RW
23234rm -f core conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23236fi
db9f46a9
TG
23237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23238$as_echo "$gcc_cv_math_func_tan" >&6; }
23239 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 23240
f38a14ca
TG
23241cat >>confdefs.h <<_ACEOF
23242#define HAVE_TAN 1
23243_ACEOF
1409cd0b 23244
db9f46a9 23245 fi
1409cd0b 23246
1409cd0b 23247
db9f46a9
TG
23248
23249
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23251$as_echo_n "checking for tanl... " >&6; }
22e05272 23252if ${gcc_cv_math_func_tanl+:} false; then :
5213506e 23253 $as_echo_n "(cached) " >&6
1409cd0b 23254else
db9f46a9 23255 if test x$gcc_no_link = xyes; then
22e05272 23256 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23257fi
5213506e 23258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23259/* end confdefs.h. */
23260
db9f46a9
TG
23261#ifdef HAVE_COMPLEX_H
23262#include <complex.h>
23263#endif
23264#ifdef HAVE_MATH_H
23265#include <math.h>
1409cd0b 23266#endif
db9f46a9
TG
23267
23268int (*ptr)() = (int (*)())tanl;
23269
1409cd0b
FXC
23270int
23271main ()
23272{
1409cd0b
FXC
23273 return 0;
23274}
db9f46a9 23275
1409cd0b 23276_ACEOF
5213506e 23277if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23278 gcc_cv_math_func_tanl=yes
1409cd0b 23279else
db9f46a9 23280 gcc_cv_math_func_tanl=no
1409cd0b 23281fi
5213506e
RW
23282rm -f core conftest.err conftest.$ac_objext \
23283 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23284fi
db9f46a9
TG
23285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23286$as_echo "$gcc_cv_math_func_tanl" >&6; }
23287 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 23288
f38a14ca
TG
23289cat >>confdefs.h <<_ACEOF
23290#define HAVE_TANL 1
23291_ACEOF
db9f46a9
TG
23292
23293 fi
1409cd0b 23294
1409cd0b 23295
1409cd0b 23296
db9f46a9
TG
23297
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23299$as_echo_n "checking for ctanf... " >&6; }
22e05272 23300if ${gcc_cv_math_func_ctanf+:} false; then :
5213506e 23301 $as_echo_n "(cached) " >&6
1409cd0b 23302else
db9f46a9 23303 if test x$gcc_no_link = xyes; then
22e05272 23304 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23305fi
5213506e 23306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23307/* end confdefs.h. */
23308
db9f46a9
TG
23309#ifdef HAVE_COMPLEX_H
23310#include <complex.h>
1409cd0b 23311#endif
db9f46a9
TG
23312#ifdef HAVE_MATH_H
23313#include <math.h>
23314#endif
23315
23316int (*ptr)() = (int (*)())ctanf;
23317
1409cd0b
FXC
23318int
23319main ()
23320{
1409cd0b
FXC
23321 return 0;
23322}
db9f46a9 23323
1409cd0b 23324_ACEOF
5213506e 23325if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23326 gcc_cv_math_func_ctanf=yes
1409cd0b 23327else
db9f46a9 23328 gcc_cv_math_func_ctanf=no
1409cd0b 23329fi
5213506e
RW
23330rm -f core conftest.err conftest.$ac_objext \
23331 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23332fi
db9f46a9
TG
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23334$as_echo "$gcc_cv_math_func_ctanf" >&6; }
23335 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 23336
f38a14ca
TG
23337cat >>confdefs.h <<_ACEOF
23338#define HAVE_CTANF 1
23339_ACEOF
db9f46a9
TG
23340
23341 fi
23342
1409cd0b 23343
1409cd0b 23344
1409cd0b 23345
db9f46a9
TG
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23347$as_echo_n "checking for ctan... " >&6; }
22e05272 23348if ${gcc_cv_math_func_ctan+:} false; then :
5213506e 23349 $as_echo_n "(cached) " >&6
1409cd0b 23350else
db9f46a9 23351 if test x$gcc_no_link = xyes; then
22e05272 23352 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23353fi
5213506e 23354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23355/* end confdefs.h. */
23356
db9f46a9
TG
23357#ifdef HAVE_COMPLEX_H
23358#include <complex.h>
23359#endif
23360#ifdef HAVE_MATH_H
23361#include <math.h>
1409cd0b 23362#endif
db9f46a9
TG
23363
23364int (*ptr)() = (int (*)())ctan;
23365
1409cd0b
FXC
23366int
23367main ()
23368{
1409cd0b
FXC
23369 return 0;
23370}
db9f46a9 23371
1409cd0b 23372_ACEOF
5213506e 23373if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23374 gcc_cv_math_func_ctan=yes
1409cd0b 23375else
db9f46a9 23376 gcc_cv_math_func_ctan=no
1409cd0b 23377fi
5213506e
RW
23378rm -f core conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23380fi
db9f46a9
TG
23381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23382$as_echo "$gcc_cv_math_func_ctan" >&6; }
23383 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 23384
f38a14ca
TG
23385cat >>confdefs.h <<_ACEOF
23386#define HAVE_CTAN 1
23387_ACEOF
db9f46a9
TG
23388
23389 fi
1409cd0b 23390
1409cd0b 23391
1409cd0b 23392
db9f46a9
TG
23393
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23395$as_echo_n "checking for ctanl... " >&6; }
22e05272 23396if ${gcc_cv_math_func_ctanl+:} false; then :
5213506e 23397 $as_echo_n "(cached) " >&6
1409cd0b 23398else
db9f46a9 23399 if test x$gcc_no_link = xyes; then
22e05272 23400 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23401fi
5213506e 23402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23403/* end confdefs.h. */
23404
db9f46a9
TG
23405#ifdef HAVE_COMPLEX_H
23406#include <complex.h>
1409cd0b 23407#endif
db9f46a9
TG
23408#ifdef HAVE_MATH_H
23409#include <math.h>
23410#endif
23411
23412int (*ptr)() = (int (*)())ctanl;
23413
1409cd0b
FXC
23414int
23415main ()
23416{
1409cd0b
FXC
23417 return 0;
23418}
db9f46a9 23419
1409cd0b 23420_ACEOF
5213506e 23421if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23422 gcc_cv_math_func_ctanl=yes
1409cd0b 23423else
db9f46a9 23424 gcc_cv_math_func_ctanl=no
1409cd0b 23425fi
5213506e
RW
23426rm -f core conftest.err conftest.$ac_objext \
23427 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23428fi
db9f46a9
TG
23429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23430$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23431 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 23432
f38a14ca
TG
23433cat >>confdefs.h <<_ACEOF
23434#define HAVE_CTANL 1
23435_ACEOF
1409cd0b 23436
db9f46a9 23437 fi
1409cd0b 23438
1409cd0b 23439
db9f46a9
TG
23440
23441
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23443$as_echo_n "checking for tanhf... " >&6; }
22e05272 23444if ${gcc_cv_math_func_tanhf+:} false; then :
5213506e 23445 $as_echo_n "(cached) " >&6
1409cd0b 23446else
db9f46a9 23447 if test x$gcc_no_link = xyes; then
22e05272 23448 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23449fi
5213506e 23450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23451/* end confdefs.h. */
23452
db9f46a9
TG
23453#ifdef HAVE_COMPLEX_H
23454#include <complex.h>
23455#endif
23456#ifdef HAVE_MATH_H
23457#include <math.h>
1409cd0b 23458#endif
db9f46a9
TG
23459
23460int (*ptr)() = (int (*)())tanhf;
23461
1409cd0b
FXC
23462int
23463main ()
23464{
1409cd0b
FXC
23465 return 0;
23466}
db9f46a9 23467
1409cd0b 23468_ACEOF
5213506e 23469if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23470 gcc_cv_math_func_tanhf=yes
1409cd0b 23471else
db9f46a9 23472 gcc_cv_math_func_tanhf=no
1409cd0b 23473fi
5213506e
RW
23474rm -f core conftest.err conftest.$ac_objext \
23475 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23476fi
db9f46a9
TG
23477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23478$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23479 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 23480
f38a14ca
TG
23481cat >>confdefs.h <<_ACEOF
23482#define HAVE_TANHF 1
23483_ACEOF
db9f46a9
TG
23484
23485 fi
1409cd0b 23486
1409cd0b 23487
1409cd0b 23488
db9f46a9
TG
23489
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23491$as_echo_n "checking for tanh... " >&6; }
22e05272 23492if ${gcc_cv_math_func_tanh+:} false; then :
5213506e 23493 $as_echo_n "(cached) " >&6
1409cd0b 23494else
db9f46a9 23495 if test x$gcc_no_link = xyes; then
22e05272 23496 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23497fi
5213506e 23498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23499/* end confdefs.h. */
23500
db9f46a9
TG
23501#ifdef HAVE_COMPLEX_H
23502#include <complex.h>
1409cd0b 23503#endif
db9f46a9
TG
23504#ifdef HAVE_MATH_H
23505#include <math.h>
23506#endif
23507
23508int (*ptr)() = (int (*)())tanh;
23509
1409cd0b
FXC
23510int
23511main ()
23512{
1409cd0b
FXC
23513 return 0;
23514}
db9f46a9 23515
1409cd0b 23516_ACEOF
5213506e 23517if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23518 gcc_cv_math_func_tanh=yes
1409cd0b 23519else
db9f46a9 23520 gcc_cv_math_func_tanh=no
1409cd0b 23521fi
5213506e
RW
23522rm -f core conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23524fi
db9f46a9
TG
23525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23526$as_echo "$gcc_cv_math_func_tanh" >&6; }
23527 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 23528
f38a14ca
TG
23529cat >>confdefs.h <<_ACEOF
23530#define HAVE_TANH 1
23531_ACEOF
db9f46a9
TG
23532
23533 fi
23534
1409cd0b 23535
1409cd0b 23536
1409cd0b 23537
db9f46a9
TG
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23539$as_echo_n "checking for tanhl... " >&6; }
22e05272 23540if ${gcc_cv_math_func_tanhl+:} false; then :
5213506e 23541 $as_echo_n "(cached) " >&6
1409cd0b 23542else
db9f46a9 23543 if test x$gcc_no_link = xyes; then
22e05272 23544 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23545fi
5213506e 23546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23547/* end confdefs.h. */
23548
db9f46a9
TG
23549#ifdef HAVE_COMPLEX_H
23550#include <complex.h>
23551#endif
23552#ifdef HAVE_MATH_H
23553#include <math.h>
1409cd0b 23554#endif
db9f46a9
TG
23555
23556int (*ptr)() = (int (*)())tanhl;
23557
1409cd0b
FXC
23558int
23559main ()
23560{
1409cd0b
FXC
23561 return 0;
23562}
db9f46a9 23563
1409cd0b 23564_ACEOF
5213506e 23565if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23566 gcc_cv_math_func_tanhl=yes
1409cd0b 23567else
db9f46a9 23568 gcc_cv_math_func_tanhl=no
1409cd0b 23569fi
5213506e
RW
23570rm -f core conftest.err conftest.$ac_objext \
23571 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23572fi
db9f46a9
TG
23573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23574$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23575 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 23576
f38a14ca
TG
23577cat >>confdefs.h <<_ACEOF
23578#define HAVE_TANHL 1
23579_ACEOF
db9f46a9
TG
23580
23581 fi
1409cd0b 23582
1409cd0b 23583
1409cd0b 23584
db9f46a9
TG
23585
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23587$as_echo_n "checking for ctanhf... " >&6; }
22e05272 23588if ${gcc_cv_math_func_ctanhf+:} false; then :
5213506e 23589 $as_echo_n "(cached) " >&6
1409cd0b 23590else
db9f46a9 23591 if test x$gcc_no_link = xyes; then
22e05272 23592 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
23593fi
23594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595/* end confdefs.h. */
23596
23597#ifdef HAVE_COMPLEX_H
23598#include <complex.h>
1409cd0b 23599#endif
db9f46a9
TG
23600#ifdef HAVE_MATH_H
23601#include <math.h>
23602#endif
23603
23604int (*ptr)() = (int (*)())ctanhf;
23605
1409cd0b
FXC
23606int
23607main ()
23608{
1409cd0b
FXC
23609 return 0;
23610}
db9f46a9 23611
1409cd0b 23612_ACEOF
5213506e 23613if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23614 gcc_cv_math_func_ctanhf=yes
1409cd0b 23615else
db9f46a9 23616 gcc_cv_math_func_ctanhf=no
1409cd0b 23617fi
5213506e
RW
23618rm -f core conftest.err conftest.$ac_objext \
23619 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23620fi
db9f46a9
TG
23621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23622$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23623 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 23624
f38a14ca
TG
23625cat >>confdefs.h <<_ACEOF
23626#define HAVE_CTANHF 1
23627_ACEOF
1409cd0b 23628
db9f46a9 23629 fi
1409cd0b 23630
1409cd0b 23631
db9f46a9
TG
23632
23633
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23635$as_echo_n "checking for ctanh... " >&6; }
22e05272 23636if ${gcc_cv_math_func_ctanh+:} false; then :
5213506e 23637 $as_echo_n "(cached) " >&6
1409cd0b 23638else
db9f46a9 23639 if test x$gcc_no_link = xyes; then
22e05272 23640 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23641fi
5213506e 23642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23643/* end confdefs.h. */
23644
db9f46a9
TG
23645#ifdef HAVE_COMPLEX_H
23646#include <complex.h>
23647#endif
23648#ifdef HAVE_MATH_H
23649#include <math.h>
1409cd0b 23650#endif
db9f46a9
TG
23651
23652int (*ptr)() = (int (*)())ctanh;
23653
1409cd0b
FXC
23654int
23655main ()
23656{
5213506e
RW
23657 return 0;
23658}
db9f46a9 23659
5213506e
RW
23660_ACEOF
23661if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23662 gcc_cv_math_func_ctanh=yes
1409cd0b 23663else
db9f46a9 23664 gcc_cv_math_func_ctanh=no
1409cd0b 23665fi
5213506e
RW
23666rm -f core conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23668fi
db9f46a9
TG
23669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23670$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23671 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23672
f38a14ca
TG
23673cat >>confdefs.h <<_ACEOF
23674#define HAVE_CTANH 1
23675_ACEOF
db9f46a9
TG
23676
23677 fi
1409cd0b 23678
1409cd0b 23679
1409cd0b 23680
db9f46a9
TG
23681
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23683$as_echo_n "checking for ctanhl... " >&6; }
22e05272 23684if ${gcc_cv_math_func_ctanhl+:} false; then :
5213506e 23685 $as_echo_n "(cached) " >&6
1409cd0b 23686else
db9f46a9 23687 if test x$gcc_no_link = xyes; then
22e05272 23688 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23689fi
5213506e 23690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23691/* end confdefs.h. */
23692
db9f46a9
TG
23693#ifdef HAVE_COMPLEX_H
23694#include <complex.h>
1409cd0b 23695#endif
db9f46a9
TG
23696#ifdef HAVE_MATH_H
23697#include <math.h>
23698#endif
23699
23700int (*ptr)() = (int (*)())ctanhl;
23701
1409cd0b
FXC
23702int
23703main ()
23704{
1409cd0b
FXC
23705 return 0;
23706}
db9f46a9 23707
1409cd0b 23708_ACEOF
5213506e 23709if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23710 gcc_cv_math_func_ctanhl=yes
1409cd0b 23711else
db9f46a9 23712 gcc_cv_math_func_ctanhl=no
1409cd0b 23713fi
5213506e
RW
23714rm -f core conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23716fi
db9f46a9
TG
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23718$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23719 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23720
f38a14ca
TG
23721cat >>confdefs.h <<_ACEOF
23722#define HAVE_CTANHL 1
23723_ACEOF
db9f46a9
TG
23724
23725 fi
23726
1409cd0b 23727
69a2d125 23728
69a2d125 23729
db9f46a9
TG
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23731$as_echo_n "checking for truncf... " >&6; }
22e05272 23732if ${gcc_cv_math_func_truncf+:} false; then :
5213506e 23733 $as_echo_n "(cached) " >&6
69a2d125 23734else
db9f46a9 23735 if test x$gcc_no_link = xyes; then
22e05272 23736 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23737fi
5213506e 23738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23739/* end confdefs.h. */
23740
db9f46a9
TG
23741#ifdef HAVE_COMPLEX_H
23742#include <complex.h>
23743#endif
23744#ifdef HAVE_MATH_H
23745#include <math.h>
69a2d125 23746#endif
db9f46a9
TG
23747
23748int (*ptr)() = (int (*)())truncf;
23749
1409cd0b
FXC
23750int
23751main ()
23752{
1409cd0b
FXC
23753 return 0;
23754}
db9f46a9 23755
1409cd0b 23756_ACEOF
5213506e 23757if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23758 gcc_cv_math_func_truncf=yes
1409cd0b 23759else
db9f46a9 23760 gcc_cv_math_func_truncf=no
1409cd0b 23761fi
5213506e
RW
23762rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23764fi
db9f46a9
TG
23765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23766$as_echo "$gcc_cv_math_func_truncf" >&6; }
23767 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23768
f38a14ca
TG
23769cat >>confdefs.h <<_ACEOF
23770#define HAVE_TRUNCF 1
23771_ACEOF
db9f46a9
TG
23772
23773 fi
1409cd0b 23774
1409cd0b 23775
1409cd0b 23776
db9f46a9
TG
23777
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23779$as_echo_n "checking for trunc... " >&6; }
22e05272 23780if ${gcc_cv_math_func_trunc+:} false; then :
5213506e 23781 $as_echo_n "(cached) " >&6
1409cd0b 23782else
db9f46a9 23783 if test x$gcc_no_link = xyes; then
22e05272 23784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23785fi
5213506e 23786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23787/* end confdefs.h. */
23788
db9f46a9
TG
23789#ifdef HAVE_COMPLEX_H
23790#include <complex.h>
1409cd0b 23791#endif
db9f46a9
TG
23792#ifdef HAVE_MATH_H
23793#include <math.h>
23794#endif
23795
23796int (*ptr)() = (int (*)())trunc;
23797
1409cd0b
FXC
23798int
23799main ()
23800{
1409cd0b
FXC
23801 return 0;
23802}
db9f46a9 23803
1409cd0b 23804_ACEOF
5213506e 23805if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23806 gcc_cv_math_func_trunc=yes
1409cd0b 23807else
db9f46a9 23808 gcc_cv_math_func_trunc=no
1409cd0b 23809fi
5213506e
RW
23810rm -f core conftest.err conftest.$ac_objext \
23811 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23812fi
db9f46a9
TG
23813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23814$as_echo "$gcc_cv_math_func_trunc" >&6; }
23815 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23816
f38a14ca
TG
23817cat >>confdefs.h <<_ACEOF
23818#define HAVE_TRUNC 1
23819_ACEOF
1409cd0b 23820
db9f46a9 23821 fi
1409cd0b 23822
1409cd0b 23823
db9f46a9
TG
23824
23825
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23827$as_echo_n "checking for truncl... " >&6; }
22e05272 23828if ${gcc_cv_math_func_truncl+:} false; then :
5213506e 23829 $as_echo_n "(cached) " >&6
1409cd0b 23830else
db9f46a9 23831 if test x$gcc_no_link = xyes; then
22e05272 23832 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23833fi
5213506e 23834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23835/* end confdefs.h. */
23836
db9f46a9
TG
23837#ifdef HAVE_COMPLEX_H
23838#include <complex.h>
23839#endif
23840#ifdef HAVE_MATH_H
23841#include <math.h>
1409cd0b 23842#endif
db9f46a9
TG
23843
23844int (*ptr)() = (int (*)())truncl;
23845
1409cd0b
FXC
23846int
23847main ()
23848{
1409cd0b
FXC
23849 return 0;
23850}
db9f46a9 23851
1409cd0b 23852_ACEOF
5213506e 23853if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23854 gcc_cv_math_func_truncl=yes
1409cd0b 23855else
db9f46a9 23856 gcc_cv_math_func_truncl=no
1409cd0b 23857fi
5213506e
RW
23858rm -f core conftest.err conftest.$ac_objext \
23859 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23860fi
db9f46a9
TG
23861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23862$as_echo "$gcc_cv_math_func_truncl" >&6; }
23863 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23864
f38a14ca
TG
23865cat >>confdefs.h <<_ACEOF
23866#define HAVE_TRUNCL 1
23867_ACEOF
db9f46a9
TG
23868
23869 fi
1409cd0b 23870
1409cd0b 23871
1409cd0b 23872
db9f46a9
TG
23873
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23875$as_echo_n "checking for erff... " >&6; }
22e05272 23876if ${gcc_cv_math_func_erff+:} false; then :
5213506e 23877 $as_echo_n "(cached) " >&6
1409cd0b 23878else
db9f46a9 23879 if test x$gcc_no_link = xyes; then
22e05272 23880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23881fi
5213506e 23882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23883/* end confdefs.h. */
23884
db9f46a9
TG
23885#ifdef HAVE_COMPLEX_H
23886#include <complex.h>
1409cd0b 23887#endif
db9f46a9
TG
23888#ifdef HAVE_MATH_H
23889#include <math.h>
23890#endif
23891
23892int (*ptr)() = (int (*)())erff;
23893
1409cd0b
FXC
23894int
23895main ()
23896{
1409cd0b
FXC
23897 return 0;
23898}
db9f46a9 23899
1409cd0b 23900_ACEOF
5213506e 23901if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23902 gcc_cv_math_func_erff=yes
1409cd0b 23903else
db9f46a9 23904 gcc_cv_math_func_erff=no
1409cd0b 23905fi
5213506e
RW
23906rm -f core conftest.err conftest.$ac_objext \
23907 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23908fi
db9f46a9
TG
23909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23910$as_echo "$gcc_cv_math_func_erff" >&6; }
23911 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23912
f38a14ca
TG
23913cat >>confdefs.h <<_ACEOF
23914#define HAVE_ERFF 1
23915_ACEOF
db9f46a9
TG
23916
23917 fi
23918
1409cd0b 23919
1409cd0b 23920
1409cd0b 23921
db9f46a9
TG
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23923$as_echo_n "checking for erf... " >&6; }
22e05272 23924if ${gcc_cv_math_func_erf+:} false; then :
5213506e 23925 $as_echo_n "(cached) " >&6
1409cd0b 23926else
db9f46a9 23927 if test x$gcc_no_link = xyes; then
22e05272 23928 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23929fi
5213506e 23930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23931/* end confdefs.h. */
23932
db9f46a9
TG
23933#ifdef HAVE_COMPLEX_H
23934#include <complex.h>
23935#endif
23936#ifdef HAVE_MATH_H
23937#include <math.h>
1409cd0b 23938#endif
db9f46a9
TG
23939
23940int (*ptr)() = (int (*)())erf;
23941
1409cd0b
FXC
23942int
23943main ()
23944{
1409cd0b
FXC
23945 return 0;
23946}
db9f46a9 23947
1409cd0b 23948_ACEOF
5213506e 23949if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23950 gcc_cv_math_func_erf=yes
1409cd0b 23951else
db9f46a9 23952 gcc_cv_math_func_erf=no
1409cd0b 23953fi
5213506e
RW
23954rm -f core conftest.err conftest.$ac_objext \
23955 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23956fi
db9f46a9
TG
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23958$as_echo "$gcc_cv_math_func_erf" >&6; }
23959 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23960
f38a14ca
TG
23961cat >>confdefs.h <<_ACEOF
23962#define HAVE_ERF 1
23963_ACEOF
db9f46a9
TG
23964
23965 fi
1409cd0b 23966
1409cd0b 23967
1409cd0b 23968
db9f46a9 23969
db9f46a9
TG
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23971$as_echo_n "checking for erfcf... " >&6; }
22e05272 23972if ${gcc_cv_math_func_erfcf+:} false; then :
5213506e 23973 $as_echo_n "(cached) " >&6
1409cd0b 23974else
db9f46a9 23975 if test x$gcc_no_link = xyes; then
22e05272 23976 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23977fi
5213506e 23978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23979/* end confdefs.h. */
23980
db9f46a9
TG
23981#ifdef HAVE_COMPLEX_H
23982#include <complex.h>
23983#endif
23984#ifdef HAVE_MATH_H
23985#include <math.h>
1409cd0b 23986#endif
db9f46a9
TG
23987
23988int (*ptr)() = (int (*)())erfcf;
23989
1409cd0b
FXC
23990int
23991main ()
23992{
1409cd0b
FXC
23993 return 0;
23994}
db9f46a9 23995
1409cd0b 23996_ACEOF
5213506e 23997if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23998 gcc_cv_math_func_erfcf=yes
1409cd0b 23999else
db9f46a9 24000 gcc_cv_math_func_erfcf=no
1409cd0b 24001fi
5213506e
RW
24002rm -f core conftest.err conftest.$ac_objext \
24003 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24004fi
db9f46a9
TG
24005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
24006$as_echo "$gcc_cv_math_func_erfcf" >&6; }
24007 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 24008
f38a14ca
TG
24009cat >>confdefs.h <<_ACEOF
24010#define HAVE_ERFCF 1
24011_ACEOF
db9f46a9
TG
24012
24013 fi
1409cd0b 24014
1409cd0b 24015
1409cd0b 24016
db9f46a9
TG
24017
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
24019$as_echo_n "checking for erfc... " >&6; }
22e05272 24020if ${gcc_cv_math_func_erfc+:} false; then :
5213506e 24021 $as_echo_n "(cached) " >&6
1409cd0b 24022else
db9f46a9 24023 if test x$gcc_no_link = xyes; then
22e05272 24024 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24025fi
5213506e 24026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24027/* end confdefs.h. */
24028
db9f46a9
TG
24029#ifdef HAVE_COMPLEX_H
24030#include <complex.h>
1409cd0b 24031#endif
db9f46a9
TG
24032#ifdef HAVE_MATH_H
24033#include <math.h>
24034#endif
24035
24036int (*ptr)() = (int (*)())erfc;
24037
69a2d125
EB
24038int
24039main ()
24040{
69a2d125
EB
24041 return 0;
24042}
db9f46a9 24043
69a2d125 24044_ACEOF
5213506e 24045if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24046 gcc_cv_math_func_erfc=yes
69a2d125 24047else
db9f46a9 24048 gcc_cv_math_func_erfc=no
69a2d125 24049fi
5213506e
RW
24050rm -f core conftest.err conftest.$ac_objext \
24051 conftest$ac_exeext conftest.$ac_ext
69a2d125 24052fi
db9f46a9
TG
24053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
24054$as_echo "$gcc_cv_math_func_erfc" >&6; }
24055 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 24056
f38a14ca
TG
24057cat >>confdefs.h <<_ACEOF
24058#define HAVE_ERFC 1
24059_ACEOF
db9f46a9
TG
24060
24061 fi
24062
69a2d125 24063
69a2d125 24064
69a2d125 24065
db9f46a9
TG
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
24067$as_echo_n "checking for erfcl... " >&6; }
22e05272 24068if ${gcc_cv_math_func_erfcl+:} false; then :
5213506e 24069 $as_echo_n "(cached) " >&6
e8525382 24070else
db9f46a9 24071 if test x$gcc_no_link = xyes; then
22e05272 24072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24073fi
5213506e 24074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24075/* end confdefs.h. */
24076
db9f46a9
TG
24077#ifdef HAVE_COMPLEX_H
24078#include <complex.h>
24079#endif
24080#ifdef HAVE_MATH_H
24081#include <math.h>
e8525382 24082#endif
db9f46a9
TG
24083
24084int (*ptr)() = (int (*)())erfcl;
24085
e8525382
SK
24086int
24087main ()
24088{
e8525382
SK
24089 return 0;
24090}
db9f46a9 24091
e8525382 24092_ACEOF
5213506e 24093if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24094 gcc_cv_math_func_erfcl=yes
e8525382 24095else
db9f46a9 24096 gcc_cv_math_func_erfcl=no
e8525382 24097fi
5213506e
RW
24098rm -f core conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
e8525382 24100fi
db9f46a9
TG
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
24102$as_echo "$gcc_cv_math_func_erfcl" >&6; }
24103 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 24104
f38a14ca
TG
24105cat >>confdefs.h <<_ACEOF
24106#define HAVE_ERFCL 1
24107_ACEOF
db9f46a9
TG
24108
24109 fi
e8525382 24110
e8525382 24111
e8525382 24112
db9f46a9
TG
24113
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
24115$as_echo_n "checking for j0f... " >&6; }
22e05272 24116if ${gcc_cv_math_func_j0f+:} false; then :
5213506e 24117 $as_echo_n "(cached) " >&6
e8525382 24118else
db9f46a9 24119 if test x$gcc_no_link = xyes; then
22e05272 24120 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24121fi
5213506e 24122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24123/* end confdefs.h. */
24124
db9f46a9
TG
24125#ifdef HAVE_COMPLEX_H
24126#include <complex.h>
e8525382 24127#endif
db9f46a9
TG
24128#ifdef HAVE_MATH_H
24129#include <math.h>
24130#endif
24131
24132int (*ptr)() = (int (*)())j0f;
24133
e8525382
SK
24134int
24135main ()
24136{
e8525382
SK
24137 return 0;
24138}
db9f46a9 24139
e8525382 24140_ACEOF
5213506e 24141if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24142 gcc_cv_math_func_j0f=yes
e8525382 24143else
db9f46a9 24144 gcc_cv_math_func_j0f=no
1409cd0b 24145fi
5213506e
RW
24146rm -f core conftest.err conftest.$ac_objext \
24147 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24148fi
db9f46a9
TG
24149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
24150$as_echo "$gcc_cv_math_func_j0f" >&6; }
24151 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 24152
f38a14ca
TG
24153cat >>confdefs.h <<_ACEOF
24154#define HAVE_J0F 1
24155_ACEOF
1409cd0b 24156
db9f46a9 24157 fi
1409cd0b 24158
1409cd0b 24159
db9f46a9
TG
24160
24161
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
24163$as_echo_n "checking for j0... " >&6; }
22e05272 24164if ${gcc_cv_math_func_j0+:} false; then :
5213506e 24165 $as_echo_n "(cached) " >&6
1409cd0b 24166else
db9f46a9 24167 if test x$gcc_no_link = xyes; then
22e05272 24168 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24169fi
5213506e 24170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24171/* end confdefs.h. */
24172
db9f46a9
TG
24173#ifdef HAVE_COMPLEX_H
24174#include <complex.h>
24175#endif
24176#ifdef HAVE_MATH_H
24177#include <math.h>
1409cd0b 24178#endif
db9f46a9
TG
24179
24180int (*ptr)() = (int (*)())j0;
24181
1409cd0b
FXC
24182int
24183main ()
24184{
1409cd0b
FXC
24185 return 0;
24186}
db9f46a9 24187
1409cd0b 24188_ACEOF
5213506e 24189if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24190 gcc_cv_math_func_j0=yes
1409cd0b 24191else
db9f46a9 24192 gcc_cv_math_func_j0=no
1409cd0b 24193fi
5213506e
RW
24194rm -f core conftest.err conftest.$ac_objext \
24195 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24196fi
db9f46a9
TG
24197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24198$as_echo "$gcc_cv_math_func_j0" >&6; }
24199 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 24200
f38a14ca
TG
24201cat >>confdefs.h <<_ACEOF
24202#define HAVE_J0 1
24203_ACEOF
db9f46a9
TG
24204
24205 fi
1409cd0b 24206
1409cd0b 24207
1409cd0b 24208
db9f46a9 24209
db9f46a9
TG
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24211$as_echo_n "checking for j1f... " >&6; }
22e05272 24212if ${gcc_cv_math_func_j1f+:} false; then :
5213506e 24213 $as_echo_n "(cached) " >&6
1409cd0b 24214else
db9f46a9 24215 if test x$gcc_no_link = xyes; then
22e05272 24216 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24217fi
5213506e 24218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24219/* end confdefs.h. */
24220
db9f46a9
TG
24221#ifdef HAVE_COMPLEX_H
24222#include <complex.h>
24223#endif
24224#ifdef HAVE_MATH_H
24225#include <math.h>
1409cd0b 24226#endif
db9f46a9
TG
24227
24228int (*ptr)() = (int (*)())j1f;
24229
1409cd0b
FXC
24230int
24231main ()
24232{
1409cd0b
FXC
24233 return 0;
24234}
db9f46a9 24235
1409cd0b 24236_ACEOF
5213506e 24237if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24238 gcc_cv_math_func_j1f=yes
1409cd0b 24239else
db9f46a9 24240 gcc_cv_math_func_j1f=no
e8525382 24241fi
5213506e
RW
24242rm -f core conftest.err conftest.$ac_objext \
24243 conftest$ac_exeext conftest.$ac_ext
e8525382 24244fi
db9f46a9
TG
24245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24246$as_echo "$gcc_cv_math_func_j1f" >&6; }
24247 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 24248
f38a14ca
TG
24249cat >>confdefs.h <<_ACEOF
24250#define HAVE_J1F 1
24251_ACEOF
db9f46a9
TG
24252
24253 fi
e8525382 24254
e8525382 24255
e8525382 24256
db9f46a9
TG
24257
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24259$as_echo_n "checking for j1... " >&6; }
22e05272 24260if ${gcc_cv_math_func_j1+:} false; then :
5213506e 24261 $as_echo_n "(cached) " >&6
e8525382 24262else
db9f46a9 24263 if test x$gcc_no_link = xyes; then
22e05272 24264 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24265fi
5213506e 24266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24267/* end confdefs.h. */
24268
db9f46a9
TG
24269#ifdef HAVE_COMPLEX_H
24270#include <complex.h>
e8525382 24271#endif
db9f46a9
TG
24272#ifdef HAVE_MATH_H
24273#include <math.h>
24274#endif
24275
24276int (*ptr)() = (int (*)())j1;
24277
e8525382
SK
24278int
24279main ()
24280{
e8525382
SK
24281 return 0;
24282}
db9f46a9 24283
e8525382 24284_ACEOF
5213506e 24285if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24286 gcc_cv_math_func_j1=yes
e8525382 24287else
db9f46a9 24288 gcc_cv_math_func_j1=no
e8525382 24289fi
5213506e
RW
24290rm -f core conftest.err conftest.$ac_objext \
24291 conftest$ac_exeext conftest.$ac_ext
e8525382 24292fi
db9f46a9
TG
24293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24294$as_echo "$gcc_cv_math_func_j1" >&6; }
24295 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 24296
f38a14ca
TG
24297cat >>confdefs.h <<_ACEOF
24298#define HAVE_J1 1
24299_ACEOF
e8525382 24300
db9f46a9 24301 fi
e8525382 24302
e8525382 24303
db9f46a9
TG
24304
24305
db9f46a9
TG
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24307$as_echo_n "checking for jnf... " >&6; }
22e05272 24308if ${gcc_cv_math_func_jnf+:} false; then :
5213506e 24309 $as_echo_n "(cached) " >&6
e8525382 24310else
db9f46a9 24311 if test x$gcc_no_link = xyes; then
22e05272 24312 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24313fi
5213506e 24314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24315/* end confdefs.h. */
24316
db9f46a9
TG
24317#ifdef HAVE_COMPLEX_H
24318#include <complex.h>
e8525382 24319#endif
db9f46a9
TG
24320#ifdef HAVE_MATH_H
24321#include <math.h>
24322#endif
24323
24324int (*ptr)() = (int (*)())jnf;
24325
e8525382
SK
24326int
24327main ()
24328{
e8525382
SK
24329 return 0;
24330}
db9f46a9 24331
e8525382 24332_ACEOF
5213506e 24333if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24334 gcc_cv_math_func_jnf=yes
e8525382 24335else
db9f46a9 24336 gcc_cv_math_func_jnf=no
e8525382 24337fi
5213506e
RW
24338rm -f core conftest.err conftest.$ac_objext \
24339 conftest$ac_exeext conftest.$ac_ext
e8525382 24340fi
db9f46a9
TG
24341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24342$as_echo "$gcc_cv_math_func_jnf" >&6; }
24343 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 24344
f38a14ca
TG
24345cat >>confdefs.h <<_ACEOF
24346#define HAVE_JNF 1
24347_ACEOF
db9f46a9
TG
24348
24349 fi
24350
e8525382 24351
e8525382 24352
e8525382 24353
db9f46a9
TG
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24355$as_echo_n "checking for jn... " >&6; }
22e05272 24356if ${gcc_cv_math_func_jn+:} false; then :
5213506e 24357 $as_echo_n "(cached) " >&6
e8525382 24358else
db9f46a9 24359 if test x$gcc_no_link = xyes; then
22e05272 24360 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24361fi
5213506e 24362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24363/* end confdefs.h. */
24364
db9f46a9
TG
24365#ifdef HAVE_COMPLEX_H
24366#include <complex.h>
24367#endif
24368#ifdef HAVE_MATH_H
24369#include <math.h>
e8525382 24370#endif
db9f46a9
TG
24371
24372int (*ptr)() = (int (*)())jn;
24373
e8525382
SK
24374int
24375main ()
24376{
e8525382
SK
24377 return 0;
24378}
db9f46a9 24379
e8525382 24380_ACEOF
5213506e 24381if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24382 gcc_cv_math_func_jn=yes
e8525382 24383else
db9f46a9 24384 gcc_cv_math_func_jn=no
e8525382 24385fi
5213506e
RW
24386rm -f core conftest.err conftest.$ac_objext \
24387 conftest$ac_exeext conftest.$ac_ext
e8525382 24388fi
db9f46a9
TG
24389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24390$as_echo "$gcc_cv_math_func_jn" >&6; }
24391 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 24392
f38a14ca
TG
24393cat >>confdefs.h <<_ACEOF
24394#define HAVE_JN 1
24395_ACEOF
db9f46a9
TG
24396
24397 fi
e8525382 24398
e8525382 24399
e8525382 24400
db9f46a9
TG
24401
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24403$as_echo_n "checking for jnl... " >&6; }
22e05272 24404if ${gcc_cv_math_func_jnl+:} false; then :
5213506e 24405 $as_echo_n "(cached) " >&6
e8525382 24406else
db9f46a9 24407 if test x$gcc_no_link = xyes; then
22e05272 24408 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24409fi
5213506e 24410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24411/* end confdefs.h. */
24412
db9f46a9
TG
24413#ifdef HAVE_COMPLEX_H
24414#include <complex.h>
e8525382 24415#endif
db9f46a9
TG
24416#ifdef HAVE_MATH_H
24417#include <math.h>
24418#endif
24419
24420int (*ptr)() = (int (*)())jnl;
24421
e8525382
SK
24422int
24423main ()
24424{
e8525382
SK
24425 return 0;
24426}
db9f46a9 24427
e8525382 24428_ACEOF
5213506e 24429if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24430 gcc_cv_math_func_jnl=yes
e8525382 24431else
db9f46a9 24432 gcc_cv_math_func_jnl=no
e8525382 24433fi
5213506e
RW
24434rm -f core conftest.err conftest.$ac_objext \
24435 conftest$ac_exeext conftest.$ac_ext
e8525382 24436fi
db9f46a9
TG
24437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24438$as_echo "$gcc_cv_math_func_jnl" >&6; }
24439 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 24440
f38a14ca
TG
24441cat >>confdefs.h <<_ACEOF
24442#define HAVE_JNL 1
24443_ACEOF
e8525382 24444
db9f46a9 24445 fi
e8525382 24446
e8525382 24447
db9f46a9
TG
24448
24449
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24451$as_echo_n "checking for y0f... " >&6; }
22e05272 24452if ${gcc_cv_math_func_y0f+:} false; then :
5213506e 24453 $as_echo_n "(cached) " >&6
e8525382 24454else
db9f46a9 24455 if test x$gcc_no_link = xyes; then
22e05272 24456 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24457fi
5213506e 24458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24459/* end confdefs.h. */
24460
db9f46a9
TG
24461#ifdef HAVE_COMPLEX_H
24462#include <complex.h>
24463#endif
24464#ifdef HAVE_MATH_H
24465#include <math.h>
e8525382 24466#endif
db9f46a9
TG
24467
24468int (*ptr)() = (int (*)())y0f;
24469
e8525382
SK
24470int
24471main ()
24472{
e8525382
SK
24473 return 0;
24474}
db9f46a9 24475
e8525382 24476_ACEOF
5213506e 24477if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24478 gcc_cv_math_func_y0f=yes
e8525382 24479else
db9f46a9 24480 gcc_cv_math_func_y0f=no
e8525382 24481fi
5213506e
RW
24482rm -f core conftest.err conftest.$ac_objext \
24483 conftest$ac_exeext conftest.$ac_ext
e8525382 24484fi
db9f46a9
TG
24485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24486$as_echo "$gcc_cv_math_func_y0f" >&6; }
24487 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 24488
f38a14ca
TG
24489cat >>confdefs.h <<_ACEOF
24490#define HAVE_Y0F 1
24491_ACEOF
db9f46a9
TG
24492
24493 fi
e8525382 24494
e8525382 24495
e8525382 24496
db9f46a9
TG
24497
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24499$as_echo_n "checking for y0... " >&6; }
22e05272 24500if ${gcc_cv_math_func_y0+:} false; then :
5213506e 24501 $as_echo_n "(cached) " >&6
e8525382 24502else
db9f46a9 24503 if test x$gcc_no_link = xyes; then
22e05272 24504 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24505fi
5213506e 24506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24507/* end confdefs.h. */
24508
db9f46a9
TG
24509#ifdef HAVE_COMPLEX_H
24510#include <complex.h>
e8525382 24511#endif
db9f46a9
TG
24512#ifdef HAVE_MATH_H
24513#include <math.h>
24514#endif
24515
24516int (*ptr)() = (int (*)())y0;
24517
e8525382
SK
24518int
24519main ()
24520{
e8525382
SK
24521 return 0;
24522}
db9f46a9 24523
e8525382 24524_ACEOF
5213506e 24525if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24526 gcc_cv_math_func_y0=yes
e8525382 24527else
db9f46a9 24528 gcc_cv_math_func_y0=no
e8525382 24529fi
5213506e
RW
24530rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
e8525382 24532fi
db9f46a9
TG
24533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24534$as_echo "$gcc_cv_math_func_y0" >&6; }
24535 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 24536
f38a14ca
TG
24537cat >>confdefs.h <<_ACEOF
24538#define HAVE_Y0 1
24539_ACEOF
db9f46a9
TG
24540
24541 fi
24542
e8525382 24543
e8525382 24544
e8525382 24545
db9f46a9
TG
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24547$as_echo_n "checking for y1f... " >&6; }
22e05272 24548if ${gcc_cv_math_func_y1f+:} false; then :
5213506e 24549 $as_echo_n "(cached) " >&6
e8525382 24550else
db9f46a9 24551 if test x$gcc_no_link = xyes; then
22e05272 24552 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24553fi
5213506e 24554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24555/* end confdefs.h. */
24556
db9f46a9
TG
24557#ifdef HAVE_COMPLEX_H
24558#include <complex.h>
e8525382 24559#endif
db9f46a9
TG
24560#ifdef HAVE_MATH_H
24561#include <math.h>
24562#endif
24563
24564int (*ptr)() = (int (*)())y1f;
24565
e8525382
SK
24566int
24567main ()
24568{
e8525382
SK
24569 return 0;
24570}
db9f46a9 24571
e8525382 24572_ACEOF
5213506e 24573if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24574 gcc_cv_math_func_y1f=yes
e8525382 24575else
db9f46a9 24576 gcc_cv_math_func_y1f=no
e8525382 24577fi
5213506e
RW
24578rm -f core conftest.err conftest.$ac_objext \
24579 conftest$ac_exeext conftest.$ac_ext
e8525382 24580fi
db9f46a9
TG
24581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24582$as_echo "$gcc_cv_math_func_y1f" >&6; }
24583 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24584
f38a14ca
TG
24585cat >>confdefs.h <<_ACEOF
24586#define HAVE_Y1F 1
24587_ACEOF
e8525382 24588
db9f46a9 24589 fi
e8525382 24590
e8525382 24591
db9f46a9
TG
24592
24593
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24595$as_echo_n "checking for y1... " >&6; }
22e05272 24596if ${gcc_cv_math_func_y1+:} false; then :
5213506e 24597 $as_echo_n "(cached) " >&6
e8525382 24598else
db9f46a9 24599 if test x$gcc_no_link = xyes; then
22e05272 24600 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24601fi
5213506e 24602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24603/* end confdefs.h. */
24604
db9f46a9
TG
24605#ifdef HAVE_COMPLEX_H
24606#include <complex.h>
24607#endif
24608#ifdef HAVE_MATH_H
24609#include <math.h>
e8525382 24610#endif
db9f46a9
TG
24611
24612int (*ptr)() = (int (*)())y1;
24613
e8525382
SK
24614int
24615main ()
24616{
e8525382
SK
24617 return 0;
24618}
db9f46a9 24619
e8525382 24620_ACEOF
5213506e 24621if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24622 gcc_cv_math_func_y1=yes
e8525382 24623else
db9f46a9 24624 gcc_cv_math_func_y1=no
e8525382 24625fi
5213506e
RW
24626rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
e8525382 24628fi
db9f46a9
TG
24629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24630$as_echo "$gcc_cv_math_func_y1" >&6; }
24631 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24632
f38a14ca
TG
24633cat >>confdefs.h <<_ACEOF
24634#define HAVE_Y1 1
24635_ACEOF
db9f46a9
TG
24636
24637 fi
e8525382 24638
e8525382 24639
e8525382 24640
db9f46a9 24641
db9f46a9
TG
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24643$as_echo_n "checking for ynf... " >&6; }
22e05272 24644if ${gcc_cv_math_func_ynf+:} false; then :
5213506e 24645 $as_echo_n "(cached) " >&6
db9f46a9
TG
24646else
24647 if test x$gcc_no_link = xyes; then
22e05272 24648 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24649fi
5213506e 24650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24651/* end confdefs.h. */
24652
db9f46a9
TG
24653#ifdef HAVE_COMPLEX_H
24654#include <complex.h>
24655#endif
24656#ifdef HAVE_MATH_H
24657#include <math.h>
e8525382 24658#endif
db9f46a9
TG
24659
24660int (*ptr)() = (int (*)())ynf;
24661
e8525382
SK
24662int
24663main ()
24664{
e8525382
SK
24665 return 0;
24666}
db9f46a9 24667
e8525382 24668_ACEOF
5213506e 24669if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24670 gcc_cv_math_func_ynf=yes
e8525382 24671else
db9f46a9 24672 gcc_cv_math_func_ynf=no
e8525382 24673fi
5213506e
RW
24674rm -f core conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
e8525382 24676fi
db9f46a9
TG
24677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24678$as_echo "$gcc_cv_math_func_ynf" >&6; }
24679 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24680
f38a14ca
TG
24681cat >>confdefs.h <<_ACEOF
24682#define HAVE_YNF 1
24683_ACEOF
db9f46a9
TG
24684
24685 fi
e8525382 24686
e8525382 24687
e8525382 24688
db9f46a9
TG
24689
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24691$as_echo_n "checking for yn... " >&6; }
22e05272 24692if ${gcc_cv_math_func_yn+:} false; then :
5213506e 24693 $as_echo_n "(cached) " >&6
e8525382 24694else
db9f46a9 24695 if test x$gcc_no_link = xyes; then
22e05272 24696 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24697fi
5213506e 24698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24699/* end confdefs.h. */
24700
db9f46a9
TG
24701#ifdef HAVE_COMPLEX_H
24702#include <complex.h>
e8525382 24703#endif
db9f46a9
TG
24704#ifdef HAVE_MATH_H
24705#include <math.h>
24706#endif
24707
24708int (*ptr)() = (int (*)())yn;
24709
e8525382
SK
24710int
24711main ()
24712{
e8525382
SK
24713 return 0;
24714}
db9f46a9 24715
e8525382 24716_ACEOF
5213506e 24717if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24718 gcc_cv_math_func_yn=yes
e8525382 24719else
db9f46a9 24720 gcc_cv_math_func_yn=no
e8525382 24721fi
5213506e
RW
24722rm -f core conftest.err conftest.$ac_objext \
24723 conftest$ac_exeext conftest.$ac_ext
e8525382 24724fi
db9f46a9
TG
24725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24726$as_echo "$gcc_cv_math_func_yn" >&6; }
24727 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24728
f38a14ca
TG
24729cat >>confdefs.h <<_ACEOF
24730#define HAVE_YN 1
24731_ACEOF
db9f46a9
TG
24732
24733 fi
24734
e8525382 24735
e8525382 24736
e8525382 24737
db9f46a9
TG
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24739$as_echo_n "checking for ynl... " >&6; }
22e05272 24740if ${gcc_cv_math_func_ynl+:} false; then :
5213506e 24741 $as_echo_n "(cached) " >&6
e8525382 24742else
db9f46a9 24743 if test x$gcc_no_link = xyes; then
22e05272 24744 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24745fi
5213506e 24746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24747/* end confdefs.h. */
24748
db9f46a9
TG
24749#ifdef HAVE_COMPLEX_H
24750#include <complex.h>
24751#endif
24752#ifdef HAVE_MATH_H
24753#include <math.h>
e8525382 24754#endif
db9f46a9
TG
24755
24756int (*ptr)() = (int (*)())ynl;
24757
e8525382
SK
24758int
24759main ()
24760{
e8525382
SK
24761 return 0;
24762}
db9f46a9 24763
e8525382 24764_ACEOF
5213506e 24765if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24766 gcc_cv_math_func_ynl=yes
e8525382 24767else
db9f46a9 24768 gcc_cv_math_func_ynl=no
e8525382 24769fi
5213506e
RW
24770rm -f core conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
e8525382 24772fi
db9f46a9
TG
24773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24774$as_echo "$gcc_cv_math_func_ynl" >&6; }
24775 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24776
f38a14ca
TG
24777cat >>confdefs.h <<_ACEOF
24778#define HAVE_YNL 1
24779_ACEOF
db9f46a9
TG
24780
24781 fi
e8525382 24782
e8525382 24783
e8525382 24784
db9f46a9
TG
24785
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24787$as_echo_n "checking for tgamma... " >&6; }
22e05272 24788if ${gcc_cv_math_func_tgamma+:} false; then :
5213506e 24789 $as_echo_n "(cached) " >&6
fb0a0e15 24790else
db9f46a9 24791 if test x$gcc_no_link = xyes; then
22e05272 24792 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24793fi
5213506e 24794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24795/* end confdefs.h. */
24796
db9f46a9
TG
24797#ifdef HAVE_COMPLEX_H
24798#include <complex.h>
fb0a0e15 24799#endif
db9f46a9
TG
24800#ifdef HAVE_MATH_H
24801#include <math.h>
24802#endif
24803
24804int (*ptr)() = (int (*)())tgamma;
24805
fb0a0e15
FXC
24806int
24807main ()
24808{
fb0a0e15
FXC
24809 return 0;
24810}
db9f46a9 24811
fb0a0e15 24812_ACEOF
5213506e 24813if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24814 gcc_cv_math_func_tgamma=yes
fb0a0e15 24815else
db9f46a9 24816 gcc_cv_math_func_tgamma=no
fb0a0e15 24817fi
5213506e
RW
24818rm -f core conftest.err conftest.$ac_objext \
24819 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24820fi
db9f46a9
TG
24821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24822$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24823 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24824
f38a14ca
TG
24825cat >>confdefs.h <<_ACEOF
24826#define HAVE_TGAMMA 1
24827_ACEOF
fb0a0e15 24828
db9f46a9 24829 fi
fb0a0e15 24830
fb0a0e15 24831
db9f46a9
TG
24832
24833
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24835$as_echo_n "checking for tgammaf... " >&6; }
22e05272 24836if ${gcc_cv_math_func_tgammaf+:} false; then :
5213506e 24837 $as_echo_n "(cached) " >&6
fb0a0e15 24838else
db9f46a9 24839 if test x$gcc_no_link = xyes; then
22e05272 24840 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24841fi
5213506e 24842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24843/* end confdefs.h. */
24844
db9f46a9
TG
24845#ifdef HAVE_COMPLEX_H
24846#include <complex.h>
24847#endif
24848#ifdef HAVE_MATH_H
24849#include <math.h>
fb0a0e15 24850#endif
db9f46a9
TG
24851
24852int (*ptr)() = (int (*)())tgammaf;
24853
fb0a0e15
FXC
24854int
24855main ()
24856{
fb0a0e15
FXC
24857 return 0;
24858}
db9f46a9 24859
fb0a0e15 24860_ACEOF
5213506e 24861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24862 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24863else
db9f46a9 24864 gcc_cv_math_func_tgammaf=no
fb0a0e15 24865fi
5213506e
RW
24866rm -f core conftest.err conftest.$ac_objext \
24867 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24868fi
db9f46a9
TG
24869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24870$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24871 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24872
f38a14ca
TG
24873cat >>confdefs.h <<_ACEOF
24874#define HAVE_TGAMMAF 1
24875_ACEOF
db9f46a9
TG
24876
24877 fi
fb0a0e15 24878
fb0a0e15 24879
fb0a0e15 24880
db9f46a9 24881
db9f46a9
TG
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24883$as_echo_n "checking for lgamma... " >&6; }
22e05272 24884if ${gcc_cv_math_func_lgamma+:} false; then :
5213506e 24885 $as_echo_n "(cached) " >&6
fb0a0e15 24886else
db9f46a9 24887 if test x$gcc_no_link = xyes; then
22e05272 24888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24889fi
5213506e 24890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24891/* end confdefs.h. */
24892
db9f46a9
TG
24893#ifdef HAVE_COMPLEX_H
24894#include <complex.h>
24895#endif
24896#ifdef HAVE_MATH_H
24897#include <math.h>
fb0a0e15 24898#endif
db9f46a9
TG
24899
24900int (*ptr)() = (int (*)())lgamma;
24901
fb0a0e15
FXC
24902int
24903main ()
24904{
fb0a0e15
FXC
24905 return 0;
24906}
db9f46a9 24907
fb0a0e15 24908_ACEOF
5213506e 24909if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24910 gcc_cv_math_func_lgamma=yes
fb0a0e15 24911else
db9f46a9 24912 gcc_cv_math_func_lgamma=no
fb0a0e15 24913fi
5213506e
RW
24914rm -f core conftest.err conftest.$ac_objext \
24915 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24916fi
db9f46a9
TG
24917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24918$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24919 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24920
f38a14ca
TG
24921cat >>confdefs.h <<_ACEOF
24922#define HAVE_LGAMMA 1
24923_ACEOF
db9f46a9
TG
24924
24925 fi
fb0a0e15 24926
fb0a0e15 24927
fb0a0e15 24928
db9f46a9
TG
24929
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24931$as_echo_n "checking for lgammaf... " >&6; }
22e05272 24932if ${gcc_cv_math_func_lgammaf+:} false; then :
5213506e 24933 $as_echo_n "(cached) " >&6
fb0a0e15 24934else
db9f46a9 24935 if test x$gcc_no_link = xyes; then
22e05272 24936 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24937fi
5213506e 24938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24939/* end confdefs.h. */
24940
db9f46a9
TG
24941#ifdef HAVE_COMPLEX_H
24942#include <complex.h>
fb0a0e15 24943#endif
db9f46a9
TG
24944#ifdef HAVE_MATH_H
24945#include <math.h>
24946#endif
24947
24948int (*ptr)() = (int (*)())lgammaf;
24949
fb0a0e15
FXC
24950int
24951main ()
24952{
fb0a0e15
FXC
24953 return 0;
24954}
db9f46a9 24955
fb0a0e15 24956_ACEOF
5213506e 24957if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24958 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24959else
db9f46a9 24960 gcc_cv_math_func_lgammaf=no
fb0a0e15 24961fi
5213506e
RW
24962rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24964fi
db9f46a9
TG
24965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24966$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24967 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24968
f38a14ca
TG
24969cat >>confdefs.h <<_ACEOF
24970#define HAVE_LGAMMAF 1
24971_ACEOF
fb0a0e15 24972
db9f46a9 24973 fi
fb0a0e15 24974
fb0a0e15 24975
db1cf15c 24976# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24977
24978
24979
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24981$as_echo_n "checking for cacos... " >&6; }
22e05272 24982if ${gcc_cv_math_func_cacos+:} false; then :
db1cf15c
IS
24983 $as_echo_n "(cached) " >&6
24984else
db9f46a9 24985 if test x$gcc_no_link = xyes; then
22e05272 24986 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
24987fi
24988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989/* end confdefs.h. */
24990
db9f46a9
TG
24991#ifdef HAVE_COMPLEX_H
24992#include <complex.h>
db1cf15c 24993#endif
db9f46a9
TG
24994#ifdef HAVE_MATH_H
24995#include <math.h>
24996#endif
24997
24998int (*ptr)() = (int (*)())cacos;
24999
db1cf15c
IS
25000int
25001main ()
25002{
db1cf15c
IS
25003 return 0;
25004}
db9f46a9 25005
db1cf15c
IS
25006_ACEOF
25007if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25008 gcc_cv_math_func_cacos=yes
db1cf15c 25009else
db9f46a9 25010 gcc_cv_math_func_cacos=no
db1cf15c
IS
25011fi
25012rm -f core conftest.err conftest.$ac_objext \
25013 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25014fi
db9f46a9
TG
25015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
25016$as_echo "$gcc_cv_math_func_cacos" >&6; }
25017 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 25018
f38a14ca
TG
25019cat >>confdefs.h <<_ACEOF
25020#define HAVE_CACOS 1
25021_ACEOF
db1cf15c 25022
db9f46a9 25023 fi
db1cf15c 25024
db1cf15c 25025
db9f46a9
TG
25026
25027
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
25029$as_echo_n "checking for cacosf... " >&6; }
22e05272 25030if ${gcc_cv_math_func_cacosf+:} false; then :
db1cf15c
IS
25031 $as_echo_n "(cached) " >&6
25032else
db9f46a9 25033 if test x$gcc_no_link = xyes; then
22e05272 25034 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25035fi
25036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037/* end confdefs.h. */
25038
db9f46a9
TG
25039#ifdef HAVE_COMPLEX_H
25040#include <complex.h>
25041#endif
25042#ifdef HAVE_MATH_H
25043#include <math.h>
db1cf15c 25044#endif
db9f46a9
TG
25045
25046int (*ptr)() = (int (*)())cacosf;
25047
db1cf15c
IS
25048int
25049main ()
25050{
db1cf15c
IS
25051 return 0;
25052}
db9f46a9 25053
db1cf15c
IS
25054_ACEOF
25055if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25056 gcc_cv_math_func_cacosf=yes
db1cf15c 25057else
db9f46a9 25058 gcc_cv_math_func_cacosf=no
db1cf15c
IS
25059fi
25060rm -f core conftest.err conftest.$ac_objext \
25061 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25062fi
db9f46a9
TG
25063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
25064$as_echo "$gcc_cv_math_func_cacosf" >&6; }
25065 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 25066
f38a14ca
TG
25067cat >>confdefs.h <<_ACEOF
25068#define HAVE_CACOSF 1
25069_ACEOF
db9f46a9
TG
25070
25071 fi
db1cf15c 25072
db1cf15c 25073
db1cf15c 25074
db9f46a9
TG
25075
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
25077$as_echo_n "checking for cacosh... " >&6; }
22e05272 25078if ${gcc_cv_math_func_cacosh+:} false; then :
db1cf15c
IS
25079 $as_echo_n "(cached) " >&6
25080else
db9f46a9 25081 if test x$gcc_no_link = xyes; then
22e05272 25082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25083fi
25084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25085/* end confdefs.h. */
25086
db9f46a9
TG
25087#ifdef HAVE_COMPLEX_H
25088#include <complex.h>
db1cf15c 25089#endif
db9f46a9
TG
25090#ifdef HAVE_MATH_H
25091#include <math.h>
25092#endif
25093
25094int (*ptr)() = (int (*)())cacosh;
25095
db1cf15c
IS
25096int
25097main ()
25098{
db1cf15c
IS
25099 return 0;
25100}
db9f46a9 25101
db1cf15c
IS
25102_ACEOF
25103if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25104 gcc_cv_math_func_cacosh=yes
db1cf15c 25105else
db9f46a9 25106 gcc_cv_math_func_cacosh=no
db1cf15c
IS
25107fi
25108rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25110fi
db9f46a9
TG
25111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
25112$as_echo "$gcc_cv_math_func_cacosh" >&6; }
25113 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 25114
f38a14ca
TG
25115cat >>confdefs.h <<_ACEOF
25116#define HAVE_CACOSH 1
25117_ACEOF
db9f46a9
TG
25118
25119 fi
25120
db1cf15c 25121
db1cf15c 25122
db1cf15c 25123
db9f46a9
TG
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
25125$as_echo_n "checking for cacoshf... " >&6; }
22e05272 25126if ${gcc_cv_math_func_cacoshf+:} false; then :
db1cf15c
IS
25127 $as_echo_n "(cached) " >&6
25128else
db9f46a9 25129 if test x$gcc_no_link = xyes; then
22e05272 25130 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25131fi
25132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133/* end confdefs.h. */
25134
db9f46a9
TG
25135#ifdef HAVE_COMPLEX_H
25136#include <complex.h>
25137#endif
25138#ifdef HAVE_MATH_H
25139#include <math.h>
db1cf15c 25140#endif
db9f46a9
TG
25141
25142int (*ptr)() = (int (*)())cacoshf;
25143
db1cf15c
IS
25144int
25145main ()
25146{
db1cf15c
IS
25147 return 0;
25148}
db9f46a9 25149
db1cf15c
IS
25150_ACEOF
25151if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25152 gcc_cv_math_func_cacoshf=yes
db1cf15c 25153else
db9f46a9 25154 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
25155fi
25156rm -f core conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25158fi
db9f46a9
TG
25159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
25160$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
25161 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 25162
f38a14ca
TG
25163cat >>confdefs.h <<_ACEOF
25164#define HAVE_CACOSHF 1
25165_ACEOF
db9f46a9
TG
25166
25167 fi
db1cf15c 25168
db1cf15c 25169
db1cf15c 25170
db9f46a9
TG
25171
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25173$as_echo_n "checking for cacoshl... " >&6; }
22e05272 25174if ${gcc_cv_math_func_cacoshl+:} false; then :
db1cf15c
IS
25175 $as_echo_n "(cached) " >&6
25176else
db9f46a9 25177 if test x$gcc_no_link = xyes; then
22e05272 25178 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25179fi
25180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25181/* end confdefs.h. */
25182
db9f46a9
TG
25183#ifdef HAVE_COMPLEX_H
25184#include <complex.h>
db1cf15c 25185#endif
db9f46a9
TG
25186#ifdef HAVE_MATH_H
25187#include <math.h>
25188#endif
25189
25190int (*ptr)() = (int (*)())cacoshl;
25191
db1cf15c
IS
25192int
25193main ()
25194{
db1cf15c
IS
25195 return 0;
25196}
db9f46a9 25197
db1cf15c
IS
25198_ACEOF
25199if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25200 gcc_cv_math_func_cacoshl=yes
db1cf15c 25201else
db9f46a9 25202 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
25203fi
25204rm -f core conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25206fi
db9f46a9
TG
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25208$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25209 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 25210
f38a14ca
TG
25211cat >>confdefs.h <<_ACEOF
25212#define HAVE_CACOSHL 1
25213_ACEOF
db1cf15c 25214
db9f46a9 25215 fi
db1cf15c 25216
db1cf15c 25217
db9f46a9
TG
25218
25219
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25221$as_echo_n "checking for cacosl... " >&6; }
22e05272 25222if ${gcc_cv_math_func_cacosl+:} false; then :
db1cf15c
IS
25223 $as_echo_n "(cached) " >&6
25224else
db9f46a9 25225 if test x$gcc_no_link = xyes; then
22e05272 25226 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25227fi
25228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229/* end confdefs.h. */
25230
db9f46a9
TG
25231#ifdef HAVE_COMPLEX_H
25232#include <complex.h>
25233#endif
25234#ifdef HAVE_MATH_H
25235#include <math.h>
db1cf15c 25236#endif
db9f46a9
TG
25237
25238int (*ptr)() = (int (*)())cacosl;
25239
db1cf15c
IS
25240int
25241main ()
25242{
db1cf15c
IS
25243 return 0;
25244}
db9f46a9 25245
db1cf15c
IS
25246_ACEOF
25247if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25248 gcc_cv_math_func_cacosl=yes
db1cf15c 25249else
db9f46a9 25250 gcc_cv_math_func_cacosl=no
db1cf15c
IS
25251fi
25252rm -f core conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25254fi
db9f46a9
TG
25255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25256$as_echo "$gcc_cv_math_func_cacosl" >&6; }
25257 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 25258
f38a14ca
TG
25259cat >>confdefs.h <<_ACEOF
25260#define HAVE_CACOSL 1
25261_ACEOF
db9f46a9
TG
25262
25263 fi
db1cf15c 25264
db1cf15c 25265
db1cf15c 25266
db9f46a9
TG
25267
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25269$as_echo_n "checking for casin... " >&6; }
22e05272 25270if ${gcc_cv_math_func_casin+:} false; then :
db1cf15c
IS
25271 $as_echo_n "(cached) " >&6
25272else
db9f46a9 25273 if test x$gcc_no_link = xyes; then
22e05272 25274 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25275fi
25276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25277/* end confdefs.h. */
25278
db9f46a9
TG
25279#ifdef HAVE_COMPLEX_H
25280#include <complex.h>
db1cf15c 25281#endif
db9f46a9
TG
25282#ifdef HAVE_MATH_H
25283#include <math.h>
25284#endif
25285
25286int (*ptr)() = (int (*)())casin;
25287
db1cf15c
IS
25288int
25289main ()
25290{
db1cf15c
IS
25291 return 0;
25292}
db9f46a9 25293
db1cf15c
IS
25294_ACEOF
25295if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25296 gcc_cv_math_func_casin=yes
db1cf15c 25297else
db9f46a9 25298 gcc_cv_math_func_casin=no
db1cf15c
IS
25299fi
25300rm -f core conftest.err conftest.$ac_objext \
25301 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25302fi
db9f46a9
TG
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25304$as_echo "$gcc_cv_math_func_casin" >&6; }
25305 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 25306
f38a14ca
TG
25307cat >>confdefs.h <<_ACEOF
25308#define HAVE_CASIN 1
25309_ACEOF
db9f46a9
TG
25310
25311 fi
25312
db1cf15c 25313
db1cf15c 25314
db1cf15c 25315
db9f46a9
TG
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25317$as_echo_n "checking for casinf... " >&6; }
22e05272 25318if ${gcc_cv_math_func_casinf+:} false; then :
db1cf15c
IS
25319 $as_echo_n "(cached) " >&6
25320else
db9f46a9 25321 if test x$gcc_no_link = xyes; then
22e05272 25322 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25323fi
25324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325/* end confdefs.h. */
25326
db9f46a9
TG
25327#ifdef HAVE_COMPLEX_H
25328#include <complex.h>
25329#endif
25330#ifdef HAVE_MATH_H
25331#include <math.h>
db1cf15c 25332#endif
db9f46a9
TG
25333
25334int (*ptr)() = (int (*)())casinf;
25335
db1cf15c
IS
25336int
25337main ()
25338{
db1cf15c
IS
25339 return 0;
25340}
db9f46a9 25341
db1cf15c
IS
25342_ACEOF
25343if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25344 gcc_cv_math_func_casinf=yes
db1cf15c 25345else
db9f46a9 25346 gcc_cv_math_func_casinf=no
db1cf15c
IS
25347fi
25348rm -f core conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25350fi
db9f46a9
TG
25351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25352$as_echo "$gcc_cv_math_func_casinf" >&6; }
25353 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 25354
f38a14ca
TG
25355cat >>confdefs.h <<_ACEOF
25356#define HAVE_CASINF 1
25357_ACEOF
db9f46a9
TG
25358
25359 fi
db1cf15c 25360
db1cf15c 25361
db1cf15c 25362
db9f46a9
TG
25363
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25365$as_echo_n "checking for casinh... " >&6; }
22e05272 25366if ${gcc_cv_math_func_casinh+:} false; then :
db1cf15c
IS
25367 $as_echo_n "(cached) " >&6
25368else
db9f46a9 25369 if test x$gcc_no_link = xyes; then
22e05272 25370 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25371fi
25372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373/* end confdefs.h. */
25374
db9f46a9
TG
25375#ifdef HAVE_COMPLEX_H
25376#include <complex.h>
db1cf15c 25377#endif
db9f46a9
TG
25378#ifdef HAVE_MATH_H
25379#include <math.h>
25380#endif
25381
25382int (*ptr)() = (int (*)())casinh;
25383
db1cf15c
IS
25384int
25385main ()
25386{
db1cf15c
IS
25387 return 0;
25388}
db9f46a9 25389
db1cf15c
IS
25390_ACEOF
25391if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25392 gcc_cv_math_func_casinh=yes
db1cf15c 25393else
db9f46a9 25394 gcc_cv_math_func_casinh=no
db1cf15c
IS
25395fi
25396rm -f core conftest.err conftest.$ac_objext \
25397 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25398fi
db9f46a9
TG
25399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25400$as_echo "$gcc_cv_math_func_casinh" >&6; }
25401 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 25402
f38a14ca
TG
25403cat >>confdefs.h <<_ACEOF
25404#define HAVE_CASINH 1
25405_ACEOF
db1cf15c 25406
db9f46a9 25407 fi
db1cf15c 25408
db1cf15c 25409
db9f46a9
TG
25410
25411
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25413$as_echo_n "checking for casinhf... " >&6; }
22e05272 25414if ${gcc_cv_math_func_casinhf+:} false; then :
db1cf15c
IS
25415 $as_echo_n "(cached) " >&6
25416else
db9f46a9 25417 if test x$gcc_no_link = xyes; then
22e05272 25418 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25419fi
25420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421/* end confdefs.h. */
25422
db9f46a9
TG
25423#ifdef HAVE_COMPLEX_H
25424#include <complex.h>
25425#endif
25426#ifdef HAVE_MATH_H
25427#include <math.h>
db1cf15c 25428#endif
db9f46a9
TG
25429
25430int (*ptr)() = (int (*)())casinhf;
25431
db1cf15c
IS
25432int
25433main ()
25434{
db1cf15c
IS
25435 return 0;
25436}
db9f46a9 25437
db1cf15c
IS
25438_ACEOF
25439if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25440 gcc_cv_math_func_casinhf=yes
db1cf15c 25441else
db9f46a9 25442 gcc_cv_math_func_casinhf=no
db1cf15c
IS
25443fi
25444rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25446fi
db9f46a9
TG
25447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25448$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25449 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 25450
f38a14ca
TG
25451cat >>confdefs.h <<_ACEOF
25452#define HAVE_CASINHF 1
25453_ACEOF
db9f46a9
TG
25454
25455 fi
db1cf15c 25456
db1cf15c 25457
db1cf15c 25458
db9f46a9
TG
25459
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25461$as_echo_n "checking for casinhl... " >&6; }
22e05272 25462if ${gcc_cv_math_func_casinhl+:} false; then :
db1cf15c
IS
25463 $as_echo_n "(cached) " >&6
25464else
db9f46a9 25465 if test x$gcc_no_link = xyes; then
22e05272 25466 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25467fi
25468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469/* end confdefs.h. */
25470
db9f46a9
TG
25471#ifdef HAVE_COMPLEX_H
25472#include <complex.h>
db1cf15c 25473#endif
db9f46a9
TG
25474#ifdef HAVE_MATH_H
25475#include <math.h>
25476#endif
25477
25478int (*ptr)() = (int (*)())casinhl;
25479
db1cf15c
IS
25480int
25481main ()
25482{
db1cf15c
IS
25483 return 0;
25484}
db9f46a9 25485
db1cf15c
IS
25486_ACEOF
25487if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25488 gcc_cv_math_func_casinhl=yes
db1cf15c 25489else
db9f46a9 25490 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25491fi
25492rm -f core conftest.err conftest.$ac_objext \
25493 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25494fi
db9f46a9
TG
25495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25496$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25497 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25498
f38a14ca
TG
25499cat >>confdefs.h <<_ACEOF
25500#define HAVE_CASINHL 1
25501_ACEOF
db9f46a9
TG
25502
25503 fi
25504
db1cf15c 25505
db1cf15c 25506
db1cf15c 25507
db9f46a9
TG
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25509$as_echo_n "checking for casinl... " >&6; }
22e05272 25510if ${gcc_cv_math_func_casinl+:} false; then :
db1cf15c
IS
25511 $as_echo_n "(cached) " >&6
25512else
db9f46a9 25513 if test x$gcc_no_link = xyes; then
22e05272 25514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25515fi
25516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25517/* end confdefs.h. */
25518
db9f46a9
TG
25519#ifdef HAVE_COMPLEX_H
25520#include <complex.h>
25521#endif
25522#ifdef HAVE_MATH_H
25523#include <math.h>
db1cf15c 25524#endif
db9f46a9
TG
25525
25526int (*ptr)() = (int (*)())casinl;
25527
db1cf15c
IS
25528int
25529main ()
25530{
db1cf15c
IS
25531 return 0;
25532}
db9f46a9 25533
db1cf15c
IS
25534_ACEOF
25535if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25536 gcc_cv_math_func_casinl=yes
db1cf15c 25537else
db9f46a9 25538 gcc_cv_math_func_casinl=no
db1cf15c
IS
25539fi
25540rm -f core conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25542fi
db9f46a9
TG
25543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25544$as_echo "$gcc_cv_math_func_casinl" >&6; }
25545 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25546
f38a14ca
TG
25547cat >>confdefs.h <<_ACEOF
25548#define HAVE_CASINL 1
25549_ACEOF
db9f46a9
TG
25550
25551 fi
db1cf15c 25552
db1cf15c 25553
db1cf15c 25554
db9f46a9
TG
25555
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25557$as_echo_n "checking for catan... " >&6; }
22e05272 25558if ${gcc_cv_math_func_catan+:} false; then :
db1cf15c
IS
25559 $as_echo_n "(cached) " >&6
25560else
db9f46a9 25561 if test x$gcc_no_link = xyes; then
22e05272 25562 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25563fi
25564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565/* end confdefs.h. */
25566
db9f46a9
TG
25567#ifdef HAVE_COMPLEX_H
25568#include <complex.h>
db1cf15c 25569#endif
db9f46a9
TG
25570#ifdef HAVE_MATH_H
25571#include <math.h>
25572#endif
25573
25574int (*ptr)() = (int (*)())catan;
25575
db1cf15c
IS
25576int
25577main ()
25578{
db1cf15c
IS
25579 return 0;
25580}
db9f46a9 25581
db1cf15c
IS
25582_ACEOF
25583if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25584 gcc_cv_math_func_catan=yes
db1cf15c 25585else
db9f46a9 25586 gcc_cv_math_func_catan=no
db1cf15c
IS
25587fi
25588rm -f core conftest.err conftest.$ac_objext \
25589 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25590fi
db9f46a9
TG
25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25592$as_echo "$gcc_cv_math_func_catan" >&6; }
25593 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25594
f38a14ca
TG
25595cat >>confdefs.h <<_ACEOF
25596#define HAVE_CATAN 1
25597_ACEOF
db1cf15c 25598
db9f46a9 25599 fi
db1cf15c 25600
db1cf15c 25601
db9f46a9
TG
25602
25603
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25605$as_echo_n "checking for catanf... " >&6; }
22e05272 25606if ${gcc_cv_math_func_catanf+:} false; then :
db1cf15c
IS
25607 $as_echo_n "(cached) " >&6
25608else
db9f46a9 25609 if test x$gcc_no_link = xyes; then
22e05272 25610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25611fi
25612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613/* end confdefs.h. */
25614
db9f46a9
TG
25615#ifdef HAVE_COMPLEX_H
25616#include <complex.h>
25617#endif
25618#ifdef HAVE_MATH_H
25619#include <math.h>
db1cf15c 25620#endif
db9f46a9
TG
25621
25622int (*ptr)() = (int (*)())catanf;
25623
db1cf15c
IS
25624int
25625main ()
25626{
db1cf15c
IS
25627 return 0;
25628}
db9f46a9 25629
db1cf15c
IS
25630_ACEOF
25631if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25632 gcc_cv_math_func_catanf=yes
db1cf15c 25633else
db9f46a9 25634 gcc_cv_math_func_catanf=no
db1cf15c
IS
25635fi
25636rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25638fi
db9f46a9
TG
25639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25640$as_echo "$gcc_cv_math_func_catanf" >&6; }
25641 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25642
f38a14ca
TG
25643cat >>confdefs.h <<_ACEOF
25644#define HAVE_CATANF 1
25645_ACEOF
db9f46a9
TG
25646
25647 fi
db1cf15c 25648
db1cf15c 25649
db1cf15c 25650
db9f46a9
TG
25651
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25653$as_echo_n "checking for catanh... " >&6; }
22e05272 25654if ${gcc_cv_math_func_catanh+:} false; then :
db1cf15c
IS
25655 $as_echo_n "(cached) " >&6
25656else
db9f46a9 25657 if test x$gcc_no_link = xyes; then
22e05272 25658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25659fi
25660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25661/* end confdefs.h. */
25662
db9f46a9
TG
25663#ifdef HAVE_COMPLEX_H
25664#include <complex.h>
db1cf15c 25665#endif
db9f46a9
TG
25666#ifdef HAVE_MATH_H
25667#include <math.h>
25668#endif
25669
25670int (*ptr)() = (int (*)())catanh;
25671
db1cf15c
IS
25672int
25673main ()
25674{
db1cf15c
IS
25675 return 0;
25676}
db9f46a9 25677
db1cf15c
IS
25678_ACEOF
25679if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25680 gcc_cv_math_func_catanh=yes
db1cf15c 25681else
db9f46a9 25682 gcc_cv_math_func_catanh=no
db1cf15c
IS
25683fi
25684rm -f core conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25686fi
db9f46a9
TG
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25688$as_echo "$gcc_cv_math_func_catanh" >&6; }
25689 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25690
f38a14ca
TG
25691cat >>confdefs.h <<_ACEOF
25692#define HAVE_CATANH 1
25693_ACEOF
db9f46a9
TG
25694
25695 fi
25696
db1cf15c 25697
db1cf15c 25698
db1cf15c 25699
db9f46a9
TG
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25701$as_echo_n "checking for catanhf... " >&6; }
22e05272 25702if ${gcc_cv_math_func_catanhf+:} false; then :
db1cf15c
IS
25703 $as_echo_n "(cached) " >&6
25704else
db9f46a9 25705 if test x$gcc_no_link = xyes; then
22e05272 25706 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25707fi
25708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h. */
25710
db9f46a9
TG
25711#ifdef HAVE_COMPLEX_H
25712#include <complex.h>
25713#endif
25714#ifdef HAVE_MATH_H
25715#include <math.h>
db1cf15c 25716#endif
db9f46a9
TG
25717
25718int (*ptr)() = (int (*)())catanhf;
25719
db1cf15c
IS
25720int
25721main ()
25722{
db1cf15c
IS
25723 return 0;
25724}
db9f46a9 25725
db1cf15c
IS
25726_ACEOF
25727if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25728 gcc_cv_math_func_catanhf=yes
db1cf15c 25729else
db9f46a9 25730 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25731fi
25732rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25734fi
db9f46a9
TG
25735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25736$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25737 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25738
f38a14ca
TG
25739cat >>confdefs.h <<_ACEOF
25740#define HAVE_CATANHF 1
25741_ACEOF
db9f46a9
TG
25742
25743 fi
db1cf15c 25744
db1cf15c 25745
db1cf15c 25746
db9f46a9
TG
25747
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25749$as_echo_n "checking for catanhl... " >&6; }
22e05272 25750if ${gcc_cv_math_func_catanhl+:} false; then :
db1cf15c
IS
25751 $as_echo_n "(cached) " >&6
25752else
db9f46a9 25753 if test x$gcc_no_link = xyes; then
22e05272 25754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25755fi
25756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25757/* end confdefs.h. */
25758
db9f46a9
TG
25759#ifdef HAVE_COMPLEX_H
25760#include <complex.h>
db1cf15c 25761#endif
db9f46a9
TG
25762#ifdef HAVE_MATH_H
25763#include <math.h>
25764#endif
25765
25766int (*ptr)() = (int (*)())catanhl;
25767
db1cf15c
IS
25768int
25769main ()
25770{
db1cf15c
IS
25771 return 0;
25772}
db9f46a9 25773
db1cf15c
IS
25774_ACEOF
25775if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25776 gcc_cv_math_func_catanhl=yes
db1cf15c 25777else
db9f46a9 25778 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25779fi
25780rm -f core conftest.err conftest.$ac_objext \
25781 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25782fi
db9f46a9
TG
25783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25784$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25785 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25786
f38a14ca
TG
25787cat >>confdefs.h <<_ACEOF
25788#define HAVE_CATANHL 1
25789_ACEOF
db1cf15c 25790
db9f46a9 25791 fi
db1cf15c 25792
db1cf15c 25793
db9f46a9
TG
25794
25795
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25797$as_echo_n "checking for catanl... " >&6; }
22e05272 25798if ${gcc_cv_math_func_catanl+:} false; then :
db1cf15c
IS
25799 $as_echo_n "(cached) " >&6
25800else
db9f46a9 25801 if test x$gcc_no_link = xyes; then
22e05272 25802 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25803fi
25804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805/* end confdefs.h. */
25806
db9f46a9
TG
25807#ifdef HAVE_COMPLEX_H
25808#include <complex.h>
25809#endif
25810#ifdef HAVE_MATH_H
25811#include <math.h>
db1cf15c 25812#endif
db9f46a9
TG
25813
25814int (*ptr)() = (int (*)())catanl;
25815
db1cf15c
IS
25816int
25817main ()
25818{
db1cf15c
IS
25819 return 0;
25820}
db9f46a9 25821
db1cf15c
IS
25822_ACEOF
25823if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25824 gcc_cv_math_func_catanl=yes
db1cf15c 25825else
db9f46a9 25826 gcc_cv_math_func_catanl=no
db1cf15c
IS
25827fi
25828rm -f core conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25830fi
db9f46a9
TG
25831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25832$as_echo "$gcc_cv_math_func_catanl" >&6; }
25833 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25834
f38a14ca
TG
25835cat >>confdefs.h <<_ACEOF
25836#define HAVE_CATANL 1
25837_ACEOF
db1cf15c 25838
db9f46a9 25839 fi
db1cf15c
IS
25840
25841
6f4977fc
TK
25842# For POWER, check the ieee128 math functions
25843
25844if test "x$have_real_17" = "xyes"; then
25845
a8fea8cd
TK
25846cat >>confdefs.h <<_ACEOF
25847#define HAVE_REAL_17 1
25848_ACEOF
25849
25850
25851
6f4977fc
TK
25852
25853
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5
25855$as_echo_n "checking for __acoshieee128... " >&6; }
25856if ${gcc_cv_math_func___acoshieee128+:} false; then :
25857 $as_echo_n "(cached) " >&6
25858else
25859 if test x$gcc_no_link = xyes; then
25860 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25861fi
25862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863/* end confdefs.h. */
25864
25865__float128 __acoshieee128 (__float128);
25866__float128 (*ptr)(__float128) = __acoshieee128;
25867
25868int
25869main ()
25870{
25871 return 0;
25872}
25873
25874_ACEOF
25875if ac_fn_c_try_link "$LINENO"; then :
25876 gcc_cv_math_func___acoshieee128=yes
25877else
25878 gcc_cv_math_func___acoshieee128=no
25879fi
25880rm -f core conftest.err conftest.$ac_objext \
25881 conftest$ac_exeext conftest.$ac_ext
25882fi
25883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5
25884$as_echo "$gcc_cv_math_func___acoshieee128" >&6; }
25885 if test $gcc_cv_math_func___acoshieee128 = yes; then
25886
25887cat >>confdefs.h <<_ACEOF
25888#define HAVE___ACOSHIEEE128 1
25889_ACEOF
25890
25891 fi
25892
25893
25894
25895
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5
25897$as_echo_n "checking for __acosieee128... " >&6; }
25898if ${gcc_cv_math_func___acosieee128+:} false; then :
25899 $as_echo_n "(cached) " >&6
25900else
25901 if test x$gcc_no_link = xyes; then
25902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25903fi
25904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905/* end confdefs.h. */
25906
25907__float128 __acosieee128 (__float128);
25908__float128 (*ptr)(__float128) = __acosieee128;
25909
25910int
25911main ()
25912{
25913 return 0;
25914}
25915
25916_ACEOF
25917if ac_fn_c_try_link "$LINENO"; then :
25918 gcc_cv_math_func___acosieee128=yes
25919else
25920 gcc_cv_math_func___acosieee128=no
25921fi
25922rm -f core conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
25924fi
25925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5
25926$as_echo "$gcc_cv_math_func___acosieee128" >&6; }
25927 if test $gcc_cv_math_func___acosieee128 = yes; then
25928
25929cat >>confdefs.h <<_ACEOF
25930#define HAVE___ACOSIEEE128 1
25931_ACEOF
25932
25933 fi
25934
25935
25936
25937
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5
25939$as_echo_n "checking for __asinhieee128... " >&6; }
25940if ${gcc_cv_math_func___asinhieee128+:} false; then :
25941 $as_echo_n "(cached) " >&6
25942else
25943 if test x$gcc_no_link = xyes; then
25944 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25945fi
25946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947/* end confdefs.h. */
25948
25949__float128 __asinhieee128 (__float128);
25950__float128 (*ptr)(__float128) = __asinhieee128;
25951
25952int
25953main ()
25954{
25955 return 0;
25956}
25957
25958_ACEOF
25959if ac_fn_c_try_link "$LINENO"; then :
25960 gcc_cv_math_func___asinhieee128=yes
25961else
25962 gcc_cv_math_func___asinhieee128=no
25963fi
25964rm -f core conftest.err conftest.$ac_objext \
25965 conftest$ac_exeext conftest.$ac_ext
25966fi
25967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5
25968$as_echo "$gcc_cv_math_func___asinhieee128" >&6; }
25969 if test $gcc_cv_math_func___asinhieee128 = yes; then
25970
25971cat >>confdefs.h <<_ACEOF
25972#define HAVE___ASINHIEEE128 1
25973_ACEOF
25974
25975 fi
25976
25977
25978
25979
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5
25981$as_echo_n "checking for __asinieee128... " >&6; }
25982if ${gcc_cv_math_func___asinieee128+:} false; then :
25983 $as_echo_n "(cached) " >&6
25984else
25985 if test x$gcc_no_link = xyes; then
25986 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25987fi
25988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25989/* end confdefs.h. */
25990
25991__float128 __asinieee128 (__float128);
25992__float128 (*ptr)(__float128) = __asinieee128;
25993
25994int
25995main ()
25996{
25997 return 0;
25998}
25999
26000_ACEOF
26001if ac_fn_c_try_link "$LINENO"; then :
26002 gcc_cv_math_func___asinieee128=yes
26003else
26004 gcc_cv_math_func___asinieee128=no
26005fi
26006rm -f core conftest.err conftest.$ac_objext \
26007 conftest$ac_exeext conftest.$ac_ext
26008fi
26009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5
26010$as_echo "$gcc_cv_math_func___asinieee128" >&6; }
26011 if test $gcc_cv_math_func___asinieee128 = yes; then
26012
26013cat >>confdefs.h <<_ACEOF
26014#define HAVE___ASINIEEE128 1
26015_ACEOF
26016
26017 fi
26018
26019
26020
26021
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5
26023$as_echo_n "checking for __atan2ieee128... " >&6; }
26024if ${gcc_cv_math_func___atan2ieee128+:} false; then :
26025 $as_echo_n "(cached) " >&6
26026else
26027 if test x$gcc_no_link = xyes; then
26028 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26029fi
26030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031/* end confdefs.h. */
26032
26033__float128 __atan2ieee128 (__float128);
26034__float128 (*ptr)(__float128) = __atan2ieee128;
26035
26036int
26037main ()
26038{
26039 return 0;
26040}
26041
26042_ACEOF
26043if ac_fn_c_try_link "$LINENO"; then :
26044 gcc_cv_math_func___atan2ieee128=yes
26045else
26046 gcc_cv_math_func___atan2ieee128=no
26047fi
26048rm -f core conftest.err conftest.$ac_objext \
26049 conftest$ac_exeext conftest.$ac_ext
26050fi
26051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5
26052$as_echo "$gcc_cv_math_func___atan2ieee128" >&6; }
26053 if test $gcc_cv_math_func___atan2ieee128 = yes; then
26054
26055cat >>confdefs.h <<_ACEOF
26056#define HAVE___ATAN2IEEE128 1
26057_ACEOF
26058
26059 fi
26060
26061
26062
26063
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5
26065$as_echo_n "checking for __atanhieee128... " >&6; }
26066if ${gcc_cv_math_func___atanhieee128+:} false; then :
26067 $as_echo_n "(cached) " >&6
26068else
26069 if test x$gcc_no_link = xyes; then
26070 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26071fi
26072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26073/* end confdefs.h. */
26074
26075__float128 __atanhieee128 (__float128);
26076__float128 (*ptr)(__float128) = __atanhieee128;
26077
26078int
26079main ()
26080{
26081 return 0;
26082}
26083
26084_ACEOF
26085if ac_fn_c_try_link "$LINENO"; then :
26086 gcc_cv_math_func___atanhieee128=yes
26087else
26088 gcc_cv_math_func___atanhieee128=no
26089fi
26090rm -f core conftest.err conftest.$ac_objext \
26091 conftest$ac_exeext conftest.$ac_ext
26092fi
26093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5
26094$as_echo "$gcc_cv_math_func___atanhieee128" >&6; }
26095 if test $gcc_cv_math_func___atanhieee128 = yes; then
26096
26097cat >>confdefs.h <<_ACEOF
26098#define HAVE___ATANHIEEE128 1
26099_ACEOF
26100
26101 fi
26102
26103
26104
26105
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5
26107$as_echo_n "checking for __atanieee128... " >&6; }
26108if ${gcc_cv_math_func___atanieee128+:} false; then :
26109 $as_echo_n "(cached) " >&6
26110else
26111 if test x$gcc_no_link = xyes; then
26112 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26113fi
26114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115/* end confdefs.h. */
26116
26117__float128 __atanieee128 (__float128);
26118__float128 (*ptr)(__float128) = __atanieee128;
26119
26120int
26121main ()
26122{
26123 return 0;
26124}
26125
26126_ACEOF
26127if ac_fn_c_try_link "$LINENO"; then :
26128 gcc_cv_math_func___atanieee128=yes
26129else
26130 gcc_cv_math_func___atanieee128=no
26131fi
26132rm -f core conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
26134fi
26135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5
26136$as_echo "$gcc_cv_math_func___atanieee128" >&6; }
26137 if test $gcc_cv_math_func___atanieee128 = yes; then
26138
26139cat >>confdefs.h <<_ACEOF
26140#define HAVE___ATANIEEE128 1
26141_ACEOF
26142
26143 fi
26144
26145
26146
26147
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5
26149$as_echo_n "checking for __coshieee128... " >&6; }
26150if ${gcc_cv_math_func___coshieee128+:} false; then :
26151 $as_echo_n "(cached) " >&6
26152else
26153 if test x$gcc_no_link = xyes; then
26154 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26155fi
26156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157/* end confdefs.h. */
26158
26159__float128 __coshieee128 (__float128);
26160__float128 (*ptr)(__float128) = __coshieee128;
26161
26162int
26163main ()
26164{
26165 return 0;
26166}
26167
26168_ACEOF
26169if ac_fn_c_try_link "$LINENO"; then :
26170 gcc_cv_math_func___coshieee128=yes
26171else
26172 gcc_cv_math_func___coshieee128=no
26173fi
26174rm -f core conftest.err conftest.$ac_objext \
26175 conftest$ac_exeext conftest.$ac_ext
26176fi
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5
26178$as_echo "$gcc_cv_math_func___coshieee128" >&6; }
26179 if test $gcc_cv_math_func___coshieee128 = yes; then
26180
26181cat >>confdefs.h <<_ACEOF
26182#define HAVE___COSHIEEE128 1
26183_ACEOF
26184
26185 fi
26186
26187
26188
26189
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5
26191$as_echo_n "checking for __cosieee128... " >&6; }
26192if ${gcc_cv_math_func___cosieee128+:} false; then :
26193 $as_echo_n "(cached) " >&6
26194else
26195 if test x$gcc_no_link = xyes; then
26196 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26197fi
26198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26199/* end confdefs.h. */
26200
26201__float128 __cosieee128 (__float128);
26202__float128 (*ptr)(__float128) = __cosieee128;
26203
26204int
26205main ()
26206{
26207 return 0;
26208}
26209
26210_ACEOF
26211if ac_fn_c_try_link "$LINENO"; then :
26212 gcc_cv_math_func___cosieee128=yes
26213else
26214 gcc_cv_math_func___cosieee128=no
26215fi
26216rm -f core conftest.err conftest.$ac_objext \
26217 conftest$ac_exeext conftest.$ac_ext
26218fi
26219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5
26220$as_echo "$gcc_cv_math_func___cosieee128" >&6; }
26221 if test $gcc_cv_math_func___cosieee128 = yes; then
26222
26223cat >>confdefs.h <<_ACEOF
26224#define HAVE___COSIEEE128 1
26225_ACEOF
26226
26227 fi
26228
26229
26230
26231
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5
26233$as_echo_n "checking for __erfieee128... " >&6; }
26234if ${gcc_cv_math_func___erfieee128+:} false; then :
26235 $as_echo_n "(cached) " >&6
26236else
26237 if test x$gcc_no_link = xyes; then
26238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26239fi
26240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241/* end confdefs.h. */
26242
26243__float128 __erfieee128 (__float128);
26244__float128 (*ptr)(__float128) = __erfieee128;
26245
26246int
26247main ()
26248{
26249 return 0;
26250}
26251
26252_ACEOF
26253if ac_fn_c_try_link "$LINENO"; then :
26254 gcc_cv_math_func___erfieee128=yes
26255else
26256 gcc_cv_math_func___erfieee128=no
26257fi
26258rm -f core conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
26260fi
26261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5
26262$as_echo "$gcc_cv_math_func___erfieee128" >&6; }
26263 if test $gcc_cv_math_func___erfieee128 = yes; then
26264
26265cat >>confdefs.h <<_ACEOF
26266#define HAVE___ERFIEEE128 1
26267_ACEOF
26268
26269 fi
26270
26271
26272
26273
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5
26275$as_echo_n "checking for __expieee128... " >&6; }
26276if ${gcc_cv_math_func___expieee128+:} false; then :
26277 $as_echo_n "(cached) " >&6
26278else
26279 if test x$gcc_no_link = xyes; then
26280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26281fi
26282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283/* end confdefs.h. */
26284
26285__float128 __expieee128 (__float128);
26286__float128 (*ptr)(__float128) = __expieee128;
26287
26288int
26289main ()
26290{
26291 return 0;
26292}
26293
26294_ACEOF
26295if ac_fn_c_try_link "$LINENO"; then :
26296 gcc_cv_math_func___expieee128=yes
26297else
26298 gcc_cv_math_func___expieee128=no
26299fi
26300rm -f core conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
26302fi
26303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5
26304$as_echo "$gcc_cv_math_func___expieee128" >&6; }
26305 if test $gcc_cv_math_func___expieee128 = yes; then
26306
26307cat >>confdefs.h <<_ACEOF
26308#define HAVE___EXPIEEE128 1
26309_ACEOF
26310
26311 fi
26312
26313
26314
26315
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5
26317$as_echo_n "checking for __fabsieee128... " >&6; }
26318if ${gcc_cv_math_func___fabsieee128+:} false; then :
26319 $as_echo_n "(cached) " >&6
26320else
26321 if test x$gcc_no_link = xyes; then
26322 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26323fi
26324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325/* end confdefs.h. */
26326
26327__float128 __fabsieee128 (__float128);
26328__float128 (*ptr)(__float128) = __fabsieee128;
26329
26330int
26331main ()
26332{
26333 return 0;
26334}
26335
26336_ACEOF
26337if ac_fn_c_try_link "$LINENO"; then :
26338 gcc_cv_math_func___fabsieee128=yes
26339else
26340 gcc_cv_math_func___fabsieee128=no
26341fi
26342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
26344fi
26345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5
26346$as_echo "$gcc_cv_math_func___fabsieee128" >&6; }
26347 if test $gcc_cv_math_func___fabsieee128 = yes; then
26348
26349cat >>confdefs.h <<_ACEOF
26350#define HAVE___FABSIEEE128 1
26351_ACEOF
26352
26353 fi
26354
26355
26356
26357
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5
26359$as_echo_n "checking for __jnieee128... " >&6; }
26360if ${gcc_cv_math_func___jnieee128+:} false; then :
26361 $as_echo_n "(cached) " >&6
26362else
26363 if test x$gcc_no_link = xyes; then
26364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26365fi
26366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26367/* end confdefs.h. */
26368
26369__float128 __jnieee128 (__float128);
26370__float128 (*ptr)(__float128) = __jnieee128;
26371
26372int
26373main ()
26374{
26375 return 0;
26376}
26377
26378_ACEOF
26379if ac_fn_c_try_link "$LINENO"; then :
26380 gcc_cv_math_func___jnieee128=yes
26381else
26382 gcc_cv_math_func___jnieee128=no
26383fi
26384rm -f core conftest.err conftest.$ac_objext \
26385 conftest$ac_exeext conftest.$ac_ext
26386fi
26387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5
26388$as_echo "$gcc_cv_math_func___jnieee128" >&6; }
26389 if test $gcc_cv_math_func___jnieee128 = yes; then
26390
26391cat >>confdefs.h <<_ACEOF
26392#define HAVE___JNIEEE128 1
26393_ACEOF
26394
26395 fi
26396
26397
26398
26399
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5
26401$as_echo_n "checking for __log10ieee128... " >&6; }
26402if ${gcc_cv_math_func___log10ieee128+:} false; then :
26403 $as_echo_n "(cached) " >&6
26404else
26405 if test x$gcc_no_link = xyes; then
26406 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26407fi
26408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26409/* end confdefs.h. */
26410
26411__float128 __log10ieee128 (__float128);
26412__float128 (*ptr)(__float128) = __log10ieee128;
26413
26414int
26415main ()
26416{
26417 return 0;
26418}
26419
26420_ACEOF
26421if ac_fn_c_try_link "$LINENO"; then :
26422 gcc_cv_math_func___log10ieee128=yes
26423else
26424 gcc_cv_math_func___log10ieee128=no
26425fi
26426rm -f core conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext conftest.$ac_ext
26428fi
26429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5
26430$as_echo "$gcc_cv_math_func___log10ieee128" >&6; }
26431 if test $gcc_cv_math_func___log10ieee128 = yes; then
26432
26433cat >>confdefs.h <<_ACEOF
26434#define HAVE___LOG10IEEE128 1
26435_ACEOF
26436
26437 fi
26438
26439
26440
26441
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5
26443$as_echo_n "checking for __logieee128... " >&6; }
26444if ${gcc_cv_math_func___logieee128+:} false; then :
26445 $as_echo_n "(cached) " >&6
26446else
26447 if test x$gcc_no_link = xyes; then
26448 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26449fi
26450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26451/* end confdefs.h. */
26452
26453__float128 __logieee128 (__float128);
26454__float128 (*ptr)(__float128) = __logieee128;
26455
26456int
26457main ()
26458{
26459 return 0;
26460}
26461
26462_ACEOF
26463if ac_fn_c_try_link "$LINENO"; then :
26464 gcc_cv_math_func___logieee128=yes
26465else
26466 gcc_cv_math_func___logieee128=no
26467fi
26468rm -f core conftest.err conftest.$ac_objext \
26469 conftest$ac_exeext conftest.$ac_ext
26470fi
26471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5
26472$as_echo "$gcc_cv_math_func___logieee128" >&6; }
26473 if test $gcc_cv_math_func___logieee128 = yes; then
26474
26475cat >>confdefs.h <<_ACEOF
26476#define HAVE___LOGIEEE128 1
26477_ACEOF
26478
26479 fi
26480
26481
26482
26483
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5
26485$as_echo_n "checking for __powieee128... " >&6; }
26486if ${gcc_cv_math_func___powieee128+:} false; then :
26487 $as_echo_n "(cached) " >&6
26488else
26489 if test x$gcc_no_link = xyes; then
26490 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26491fi
26492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493/* end confdefs.h. */
26494
26495__float128 __powieee128 (__float128);
26496__float128 (*ptr)(__float128) = __powieee128;
26497
26498int
26499main ()
26500{
26501 return 0;
26502}
26503
26504_ACEOF
26505if ac_fn_c_try_link "$LINENO"; then :
26506 gcc_cv_math_func___powieee128=yes
26507else
26508 gcc_cv_math_func___powieee128=no
26509fi
26510rm -f core conftest.err conftest.$ac_objext \
26511 conftest$ac_exeext conftest.$ac_ext
26512fi
26513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5
26514$as_echo "$gcc_cv_math_func___powieee128" >&6; }
26515 if test $gcc_cv_math_func___powieee128 = yes; then
26516
26517cat >>confdefs.h <<_ACEOF
26518#define HAVE___POWIEEE128 1
26519_ACEOF
26520
26521 fi
26522
26523
26524
26525
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5
26527$as_echo_n "checking for __sinhieee128... " >&6; }
26528if ${gcc_cv_math_func___sinhieee128+:} false; then :
26529 $as_echo_n "(cached) " >&6
26530else
26531 if test x$gcc_no_link = xyes; then
26532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26533fi
26534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26535/* end confdefs.h. */
26536
26537__float128 __sinhieee128 (__float128);
26538__float128 (*ptr)(__float128) = __sinhieee128;
26539
26540int
26541main ()
26542{
26543 return 0;
26544}
26545
26546_ACEOF
26547if ac_fn_c_try_link "$LINENO"; then :
26548 gcc_cv_math_func___sinhieee128=yes
26549else
26550 gcc_cv_math_func___sinhieee128=no
26551fi
26552rm -f core conftest.err conftest.$ac_objext \
26553 conftest$ac_exeext conftest.$ac_ext
26554fi
26555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5
26556$as_echo "$gcc_cv_math_func___sinhieee128" >&6; }
26557 if test $gcc_cv_math_func___sinhieee128 = yes; then
26558
26559cat >>confdefs.h <<_ACEOF
26560#define HAVE___SINHIEEE128 1
26561_ACEOF
26562
26563 fi
26564
26565
26566
26567
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5
26569$as_echo_n "checking for __sinieee128... " >&6; }
26570if ${gcc_cv_math_func___sinieee128+:} false; then :
26571 $as_echo_n "(cached) " >&6
26572else
26573 if test x$gcc_no_link = xyes; then
26574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26575fi
26576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26577/* end confdefs.h. */
26578
26579__float128 __sinieee128 (__float128);
26580__float128 (*ptr)(__float128) = __sinieee128;
26581
26582int
26583main ()
26584{
26585 return 0;
26586}
26587
26588_ACEOF
26589if ac_fn_c_try_link "$LINENO"; then :
26590 gcc_cv_math_func___sinieee128=yes
26591else
26592 gcc_cv_math_func___sinieee128=no
26593fi
26594rm -f core conftest.err conftest.$ac_objext \
26595 conftest$ac_exeext conftest.$ac_ext
26596fi
26597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5
26598$as_echo "$gcc_cv_math_func___sinieee128" >&6; }
26599 if test $gcc_cv_math_func___sinieee128 = yes; then
26600
26601cat >>confdefs.h <<_ACEOF
26602#define HAVE___SINIEEE128 1
26603_ACEOF
26604
26605 fi
26606
26607
26608
26609
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5
26611$as_echo_n "checking for __sqrtieee128... " >&6; }
26612if ${gcc_cv_math_func___sqrtieee128+:} false; then :
26613 $as_echo_n "(cached) " >&6
26614else
26615 if test x$gcc_no_link = xyes; then
26616 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26617fi
26618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619/* end confdefs.h. */
26620
26621__float128 __sqrtieee128 (__float128);
26622__float128 (*ptr)(__float128) = __sqrtieee128;
26623
26624int
26625main ()
26626{
26627 return 0;
26628}
26629
26630_ACEOF
26631if ac_fn_c_try_link "$LINENO"; then :
26632 gcc_cv_math_func___sqrtieee128=yes
26633else
26634 gcc_cv_math_func___sqrtieee128=no
26635fi
26636rm -f core conftest.err conftest.$ac_objext \
26637 conftest$ac_exeext conftest.$ac_ext
26638fi
26639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5
26640$as_echo "$gcc_cv_math_func___sqrtieee128" >&6; }
26641 if test $gcc_cv_math_func___sqrtieee128 = yes; then
26642
26643cat >>confdefs.h <<_ACEOF
26644#define HAVE___SQRTIEEE128 1
26645_ACEOF
26646
26647 fi
26648
26649
26650
26651
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5
26653$as_echo_n "checking for __tanhieee128... " >&6; }
26654if ${gcc_cv_math_func___tanhieee128+:} false; then :
26655 $as_echo_n "(cached) " >&6
26656else
26657 if test x$gcc_no_link = xyes; then
26658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26659fi
26660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661/* end confdefs.h. */
26662
26663__float128 __tanhieee128 (__float128);
26664__float128 (*ptr)(__float128) = __tanhieee128;
26665
26666int
26667main ()
26668{
26669 return 0;
26670}
26671
26672_ACEOF
26673if ac_fn_c_try_link "$LINENO"; then :
26674 gcc_cv_math_func___tanhieee128=yes
26675else
26676 gcc_cv_math_func___tanhieee128=no
26677fi
26678rm -f core conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
26680fi
26681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5
26682$as_echo "$gcc_cv_math_func___tanhieee128" >&6; }
26683 if test $gcc_cv_math_func___tanhieee128 = yes; then
26684
26685cat >>confdefs.h <<_ACEOF
26686#define HAVE___TANHIEEE128 1
26687_ACEOF
26688
26689 fi
26690
26691
26692
26693
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5
26695$as_echo_n "checking for __tanieee128... " >&6; }
26696if ${gcc_cv_math_func___tanieee128+:} false; then :
26697 $as_echo_n "(cached) " >&6
26698else
26699 if test x$gcc_no_link = xyes; then
26700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26701fi
26702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26703/* end confdefs.h. */
26704
26705__float128 __tanieee128 (__float128);
26706__float128 (*ptr)(__float128) = __tanieee128;
26707
26708int
26709main ()
26710{
26711 return 0;
26712}
26713
26714_ACEOF
26715if ac_fn_c_try_link "$LINENO"; then :
26716 gcc_cv_math_func___tanieee128=yes
26717else
26718 gcc_cv_math_func___tanieee128=no
26719fi
26720rm -f core conftest.err conftest.$ac_objext \
26721 conftest$ac_exeext conftest.$ac_ext
26722fi
26723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5
26724$as_echo "$gcc_cv_math_func___tanieee128" >&6; }
26725 if test $gcc_cv_math_func___tanieee128 = yes; then
26726
26727cat >>confdefs.h <<_ACEOF
26728#define HAVE___TANIEEE128 1
26729_ACEOF
26730
26731 fi
26732
26733
26734
26735
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5
26737$as_echo_n "checking for __ynieee128... " >&6; }
26738if ${gcc_cv_math_func___ynieee128+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740else
26741 if test x$gcc_no_link = xyes; then
26742 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26743fi
26744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745/* end confdefs.h. */
26746
26747__float128 __ynieee128 (__float128);
26748__float128 (*ptr)(__float128) = __ynieee128;
26749
26750int
26751main ()
26752{
26753 return 0;
26754}
26755
26756_ACEOF
26757if ac_fn_c_try_link "$LINENO"; then :
26758 gcc_cv_math_func___ynieee128=yes
26759else
26760 gcc_cv_math_func___ynieee128=no
26761fi
26762rm -f core conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
26764fi
26765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5
26766$as_echo "$gcc_cv_math_func___ynieee128" >&6; }
26767 if test $gcc_cv_math_func___ynieee128 = yes; then
26768
26769cat >>confdefs.h <<_ACEOF
26770#define HAVE___YNIEEE128 1
26771_ACEOF
26772
26773 fi
26774
26775fi
26776
118ea208 26777# On AIX, clog is present in libm as __clog
5213506e
RW
26778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
26779$as_echo_n "checking for __clog in -lm... " >&6; }
22e05272 26780if ${ac_cv_lib_m___clog+:} false; then :
5213506e 26781 $as_echo_n "(cached) " >&6
e097b4f1
DE
26782else
26783 ac_check_lib_save_LIBS=$LIBS
26784LIBS="-lm $LIBS"
26785if test x$gcc_no_link = xyes; then
22e05272 26786 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 26787fi
5213506e 26788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
26789/* end confdefs.h. */
26790
5213506e
RW
26791/* Override any GCC internal prototype to avoid an error.
26792 Use char because int might match the return type of a GCC
26793 builtin and then its argument prototype would still apply. */
e097b4f1
DE
26794#ifdef __cplusplus
26795extern "C"
26796#endif
e097b4f1
DE
26797char __clog ();
26798int
26799main ()
26800{
5213506e 26801return __clog ();
e097b4f1
DE
26802 ;
26803 return 0;
26804}
26805_ACEOF
5213506e 26806if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
26807 ac_cv_lib_m___clog=yes
26808else
5213506e 26809 ac_cv_lib_m___clog=no
e097b4f1 26810fi
5213506e
RW
26811rm -f core conftest.err conftest.$ac_objext \
26812 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
26813LIBS=$ac_check_lib_save_LIBS
26814fi
5213506e
RW
26815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
26816$as_echo "$ac_cv_lib_m___clog" >&6; }
22e05272 26817if test "x$ac_cv_lib_m___clog" = xyes; then :
e097b4f1 26818
5213506e 26819$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
26820
26821fi
26822
26823
1868599f
JJ
26824
26825
26826if test $gcc_cv_math_func_copysign = no; then
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
26828$as_echo_n "checking for inline __builtin_copysign... " >&6; }
26829if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
26830 $as_echo_n "(cached) " >&6
26831else
26832 if test x$gcc_no_link = xyes; then
26833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26834fi
26835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836/* end confdefs.h. */
26837
26838double
26839copysign_fallback (double x, double y)
26840{
26841 return __builtin_copysign (x, y);
26842}
26843
26844int
26845main ()
26846{
26847 return 0;
26848}
26849
26850_ACEOF
26851if ac_fn_c_try_link "$LINENO"; then :
26852 gcc_cv_math_inline_builtin_copysign=yes
26853else
26854 gcc_cv_math_inline_builtin_copysign=no
26855fi
26856rm -f core conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
26858fi
26859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
26860$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
26861 if test $gcc_cv_math_inline_builtin_copysign = yes; then
26862
26863cat >>confdefs.h <<_ACEOF
26864#define HAVE_INLINE_BUILTIN_COPYSIGN 1
26865_ACEOF
26866
26867 fi
26868fi
26869
26870
26871if test $gcc_cv_math_func_copysignl = no; then
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
26873$as_echo_n "checking for inline __builtin_copysignl... " >&6; }
26874if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876else
26877 if test x$gcc_no_link = xyes; then
26878 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26879fi
26880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26881/* end confdefs.h. */
26882
26883long double
26884copysignl_fallback (long double x, long double y)
26885{
26886 return __builtin_copysignl (x, y);
26887}
26888
26889int
26890main ()
26891{
26892 return 0;
26893}
26894
26895_ACEOF
26896if ac_fn_c_try_link "$LINENO"; then :
26897 gcc_cv_math_inline_builtin_copysignl=yes
26898else
26899 gcc_cv_math_inline_builtin_copysignl=no
26900fi
26901rm -f core conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
26903fi
26904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
26905$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
26906 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
26907
26908cat >>confdefs.h <<_ACEOF
26909#define HAVE_INLINE_BUILTIN_COPYSIGNL 1
26910_ACEOF
26911
26912 fi
26913fi
26914
26915
26916if test $gcc_cv_math_func_fabs = no; then
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
26918$as_echo_n "checking for inline __builtin_fabs... " >&6; }
26919if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
26920 $as_echo_n "(cached) " >&6
26921else
26922 if test x$gcc_no_link = xyes; then
26923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26924fi
26925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26926/* end confdefs.h. */
26927
26928double
26929fabs_fallback (double x)
26930{
26931 return __builtin_fabs (x);
26932}
26933
26934int
26935main ()
26936{
26937 return 0;
26938}
26939
26940_ACEOF
26941if ac_fn_c_try_link "$LINENO"; then :
26942 gcc_cv_math_inline_builtin_fabs=yes
26943else
26944 gcc_cv_math_inline_builtin_fabs=no
26945fi
26946rm -f core conftest.err conftest.$ac_objext \
26947 conftest$ac_exeext conftest.$ac_ext
26948fi
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
26950$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
26951 if test $gcc_cv_math_inline_builtin_fabs = yes; then
26952
26953cat >>confdefs.h <<_ACEOF
26954#define HAVE_INLINE_BUILTIN_FABS 1
26955_ACEOF
26956
26957 fi
26958fi
26959
26960
26961if test $gcc_cv_math_func_fabsl = no; then
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
26963$as_echo_n "checking for inline __builtin_fabsl... " >&6; }
26964if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
26965 $as_echo_n "(cached) " >&6
26966else
26967 if test x$gcc_no_link = xyes; then
26968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26969fi
26970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26971/* end confdefs.h. */
26972
26973long double
26974fabsl_fallback (long double x)
26975{
26976 return __builtin_fabsl (x);
26977}
26978
26979int
26980main ()
26981{
26982 return 0;
26983}
26984
26985_ACEOF
26986if ac_fn_c_try_link "$LINENO"; then :
26987 gcc_cv_math_inline_builtin_fabsl=yes
26988else
26989 gcc_cv_math_inline_builtin_fabsl=no
26990fi
26991rm -f core conftest.err conftest.$ac_objext \
26992 conftest$ac_exeext conftest.$ac_ext
26993fi
26994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
26995$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
26996 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
26997
26998cat >>confdefs.h <<_ACEOF
26999#define HAVE_INLINE_BUILTIN_FABSL 1
27000_ACEOF
27001
27002 fi
27003fi
27004
ad238e4f 27005
ad238e4f 27006
ad238e4f 27007
133d0d42
JJ
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf128" >&5
27009$as_echo_n "checking for acosf128... " >&6; }
27010if ${gcc_cv_math_func_acosf128+:} false; then :
27011 $as_echo_n "(cached) " >&6
ad238e4f 27012else
133d0d42
JJ
27013 if test x$gcc_no_link = xyes; then
27014 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27015fi
27016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
27017/* end confdefs.h. */
27018
133d0d42
JJ
27019#ifdef HAVE_COMPLEX_H
27020#include <complex.h>
27021#endif
27022#ifdef HAVE_MATH_H
27023#include <math.h>
27024#endif
ad238e4f 27025
133d0d42 27026int (*ptr)() = (int (*)())acosf128;
ad238e4f 27027
133d0d42
JJ
27028int
27029main ()
27030{
ad238e4f
FXC
27031 return 0;
27032}
133d0d42 27033
ad238e4f 27034_ACEOF
133d0d42
JJ
27035if ac_fn_c_try_link "$LINENO"; then :
27036 gcc_cv_math_func_acosf128=yes
ad238e4f 27037else
133d0d42 27038 gcc_cv_math_func_acosf128=no
ad238e4f 27039fi
133d0d42
JJ
27040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
ad238e4f 27042fi
133d0d42
JJ
27043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf128" >&5
27044$as_echo "$gcc_cv_math_func_acosf128" >&6; }
27045 if test $gcc_cv_math_func_acosf128 = yes; then
5213506e 27046
133d0d42
JJ
27047cat >>confdefs.h <<_ACEOF
27048#define HAVE_ACOSF128 1
27049_ACEOF
ad238e4f 27050
133d0d42 27051 fi
ad238e4f 27052
ad238e4f 27053
db8092dc 27054
133d0d42
JJ
27055
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf128" >&5
27057$as_echo_n "checking for acoshf128... " >&6; }
27058if ${gcc_cv_math_func_acoshf128+:} false; then :
5213506e 27059 $as_echo_n "(cached) " >&6
db8092dc 27060else
133d0d42 27061 if test x$gcc_no_link = xyes; then
22e05272 27062 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 27063fi
5213506e 27064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
27065/* end confdefs.h. */
27066
133d0d42
JJ
27067#ifdef HAVE_COMPLEX_H
27068#include <complex.h>
27069#endif
27070#ifdef HAVE_MATH_H
27071#include <math.h>
27072#endif
27073
27074int (*ptr)() = (int (*)())acoshf128;
db8092dc
FXC
27075
27076int
27077main ()
27078{
db8092dc
FXC
27079 return 0;
27080}
133d0d42 27081
db8092dc 27082_ACEOF
5213506e 27083if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27084 gcc_cv_math_func_acoshf128=yes
db8092dc 27085else
133d0d42 27086 gcc_cv_math_func_acoshf128=no
db8092dc 27087fi
5213506e
RW
27088rm -f core conftest.err conftest.$ac_objext \
27089 conftest$ac_exeext conftest.$ac_ext
db8092dc 27090fi
133d0d42
JJ
27091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf128" >&5
27092$as_echo "$gcc_cv_math_func_acoshf128" >&6; }
27093 if test $gcc_cv_math_func_acoshf128 = yes; then
db8092dc 27094
133d0d42
JJ
27095cat >>confdefs.h <<_ACEOF
27096#define HAVE_ACOSHF128 1
27097_ACEOF
db8092dc
FXC
27098
27099 fi
27100
27101
1ec601bf 27102
87e6d9dc 27103
133d0d42
JJ
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf128" >&5
27105$as_echo_n "checking for asinf128... " >&6; }
27106if ${gcc_cv_math_func_asinf128+:} false; then :
1ec601bf
FXC
27107 $as_echo_n "(cached) " >&6
27108else
133d0d42
JJ
27109 if test x$gcc_no_link = xyes; then
27110 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27111fi
27112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
27113/* end confdefs.h. */
27114
133d0d42
JJ
27115#ifdef HAVE_COMPLEX_H
27116#include <complex.h>
27117#endif
27118#ifdef HAVE_MATH_H
27119#include <math.h>
27120#endif
69eb61d4 27121
133d0d42 27122int (*ptr)() = (int (*)())asinf128;
1ec601bf
FXC
27123
27124int
27125main ()
27126{
69eb61d4
TB
27127 return 0;
27128}
133d0d42 27129
69eb61d4 27130_ACEOF
133d0d42
JJ
27131if ac_fn_c_try_link "$LINENO"; then :
27132 gcc_cv_math_func_asinf128=yes
27133else
27134 gcc_cv_math_func_asinf128=no
27135fi
27136rm -f core conftest.err conftest.$ac_objext \
27137 conftest$ac_exeext conftest.$ac_ext
27138fi
27139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf128" >&5
27140$as_echo "$gcc_cv_math_func_asinf128" >&6; }
27141 if test $gcc_cv_math_func_asinf128 = yes; then
1ec601bf 27142
133d0d42
JJ
27143cat >>confdefs.h <<_ACEOF
27144#define HAVE_ASINF128 1
27145_ACEOF
1ec601bf 27146
133d0d42 27147 fi
69eb61d4 27148
69eb61d4 27149
133d0d42
JJ
27150
27151
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf128" >&5
27153$as_echo_n "checking for asinhf128... " >&6; }
27154if ${gcc_cv_math_func_asinhf128+:} false; then :
27155 $as_echo_n "(cached) " >&6
69eb61d4
TB
27156else
27157 if test x$gcc_no_link = xyes; then
22e05272 27158 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
69eb61d4
TB
27159fi
27160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27161/* end confdefs.h. */
27162
133d0d42
JJ
27163#ifdef HAVE_COMPLEX_H
27164#include <complex.h>
27165#endif
27166#ifdef HAVE_MATH_H
27167#include <math.h>
27168#endif
69eb61d4 27169
133d0d42 27170int (*ptr)() = (int (*)())asinhf128;
69eb61d4
TB
27171
27172int
27173main ()
27174{
1ec601bf
FXC
27175 return 0;
27176}
133d0d42 27177
1ec601bf
FXC
27178_ACEOF
27179if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27180 gcc_cv_math_func_asinhf128=yes
1ec601bf 27181else
133d0d42 27182 gcc_cv_math_func_asinhf128=no
1ec601bf
FXC
27183fi
27184rm -f core conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
69eb61d4 27186fi
133d0d42
JJ
27187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf128" >&5
27188$as_echo "$gcc_cv_math_func_asinhf128" >&6; }
27189 if test $gcc_cv_math_func_asinhf128 = yes; then
1ec601bf 27190
133d0d42
JJ
27191cat >>confdefs.h <<_ACEOF
27192#define HAVE_ASINHF128 1
27193_ACEOF
1ec601bf 27194
133d0d42 27195 fi
1ec601bf
FXC
27196
27197
1ec601bf 27198
1ec601bf 27199
133d0d42
JJ
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f128" >&5
27201$as_echo_n "checking for atan2f128... " >&6; }
27202if ${gcc_cv_math_func_atan2f128+:} false; then :
27203 $as_echo_n "(cached) " >&6
27204else
27205 if test x$gcc_no_link = xyes; then
22e05272 27206 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf
FXC
27207fi
27208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209/* end confdefs.h. */
27210
133d0d42
JJ
27211#ifdef HAVE_COMPLEX_H
27212#include <complex.h>
27213#endif
27214#ifdef HAVE_MATH_H
27215#include <math.h>
27216#endif
27217
27218int (*ptr)() = (int (*)())atan2f128;
27219
1ec601bf
FXC
27220int
27221main ()
27222{
1ec601bf
FXC
27223 return 0;
27224}
133d0d42 27225
1ec601bf
FXC
27226_ACEOF
27227if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27228 gcc_cv_math_func_atan2f128=yes
1ec601bf 27229else
133d0d42 27230 gcc_cv_math_func_atan2f128=no
1ec601bf
FXC
27231fi
27232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
133d0d42
JJ
27234fi
27235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f128" >&5
27236$as_echo "$gcc_cv_math_func_atan2f128" >&6; }
27237 if test $gcc_cv_math_func_atan2f128 = yes; then
828012a5 27238
133d0d42
JJ
27239cat >>confdefs.h <<_ACEOF
27240#define HAVE_ATAN2F128 1
27241_ACEOF
27242
27243 fi
27244
27245
27246
27247
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf128" >&5
27249$as_echo_n "checking for atanf128... " >&6; }
27250if ${gcc_cv_math_func_atanf128+:} false; then :
27251 $as_echo_n "(cached) " >&6
27252else
27253 if test x$gcc_no_link = xyes; then
22e05272 27254 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
828012a5
RO
27255fi
27256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257/* end confdefs.h. */
27258
133d0d42
JJ
27259#ifdef HAVE_COMPLEX_H
27260#include <complex.h>
27261#endif
27262#ifdef HAVE_MATH_H
27263#include <math.h>
27264#endif
27265
27266int (*ptr)() = (int (*)())atanf128;
27267
828012a5
RO
27268int
27269main ()
27270{
133d0d42
JJ
27271 return 0;
27272}
27273
27274_ACEOF
27275if ac_fn_c_try_link "$LINENO"; then :
27276 gcc_cv_math_func_atanf128=yes
27277else
27278 gcc_cv_math_func_atanf128=no
27279fi
27280rm -f core conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27282fi
27283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf128" >&5
27284$as_echo "$gcc_cv_math_func_atanf128" >&6; }
27285 if test $gcc_cv_math_func_atanf128 = yes; then
27286
27287cat >>confdefs.h <<_ACEOF
27288#define HAVE_ATANF128 1
27289_ACEOF
27290
27291 fi
27292
27293
27294
27295
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf128" >&5
27297$as_echo_n "checking for atanhf128... " >&6; }
27298if ${gcc_cv_math_func_atanhf128+:} false; then :
27299 $as_echo_n "(cached) " >&6
27300else
27301 if test x$gcc_no_link = xyes; then
27302 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27303fi
27304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27305/* end confdefs.h. */
27306
27307#ifdef HAVE_COMPLEX_H
27308#include <complex.h>
27309#endif
27310#ifdef HAVE_MATH_H
27311#include <math.h>
27312#endif
27313
27314int (*ptr)() = (int (*)())atanhf128;
27315
27316int
27317main ()
27318{
27319 return 0;
27320}
27321
27322_ACEOF
27323if ac_fn_c_try_link "$LINENO"; then :
27324 gcc_cv_math_func_atanhf128=yes
27325else
27326 gcc_cv_math_func_atanhf128=no
27327fi
27328rm -f core conftest.err conftest.$ac_objext \
27329 conftest$ac_exeext conftest.$ac_ext
27330fi
27331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf128" >&5
27332$as_echo "$gcc_cv_math_func_atanhf128" >&6; }
27333 if test $gcc_cv_math_func_atanhf128 = yes; then
27334
27335cat >>confdefs.h <<_ACEOF
27336#define HAVE_ATANHF128 1
27337_ACEOF
27338
27339 fi
27340
27341
27342
27343
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf128" >&5
27345$as_echo_n "checking for cargf128... " >&6; }
27346if ${gcc_cv_math_func_cargf128+:} false; then :
27347 $as_echo_n "(cached) " >&6
27348else
27349 if test x$gcc_no_link = xyes; then
27350 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27351fi
27352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27353/* end confdefs.h. */
27354
27355#ifdef HAVE_COMPLEX_H
27356#include <complex.h>
27357#endif
27358#ifdef HAVE_MATH_H
27359#include <math.h>
27360#endif
27361
27362int (*ptr)() = (int (*)())cargf128;
27363
27364int
27365main ()
27366{
27367 return 0;
27368}
27369
27370_ACEOF
27371if ac_fn_c_try_link "$LINENO"; then :
27372 gcc_cv_math_func_cargf128=yes
27373else
27374 gcc_cv_math_func_cargf128=no
27375fi
27376rm -f core conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext conftest.$ac_ext
27378fi
27379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf128" >&5
27380$as_echo "$gcc_cv_math_func_cargf128" >&6; }
27381 if test $gcc_cv_math_func_cargf128 = yes; then
27382
27383cat >>confdefs.h <<_ACEOF
27384#define HAVE_CARGF128 1
27385_ACEOF
27386
27387 fi
27388
27389
27390
27391
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf128" >&5
27393$as_echo_n "checking for ceilf128... " >&6; }
27394if ${gcc_cv_math_func_ceilf128+:} false; then :
27395 $as_echo_n "(cached) " >&6
27396else
27397 if test x$gcc_no_link = xyes; then
27398 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27399fi
27400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27401/* end confdefs.h. */
27402
27403#ifdef HAVE_COMPLEX_H
27404#include <complex.h>
27405#endif
27406#ifdef HAVE_MATH_H
27407#include <math.h>
27408#endif
27409
27410int (*ptr)() = (int (*)())ceilf128;
27411
27412int
27413main ()
27414{
27415 return 0;
27416}
27417
27418_ACEOF
27419if ac_fn_c_try_link "$LINENO"; then :
27420 gcc_cv_math_func_ceilf128=yes
27421else
27422 gcc_cv_math_func_ceilf128=no
27423fi
27424rm -f core conftest.err conftest.$ac_objext \
27425 conftest$ac_exeext conftest.$ac_ext
27426fi
27427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf128" >&5
27428$as_echo "$gcc_cv_math_func_ceilf128" >&6; }
27429 if test $gcc_cv_math_func_ceilf128 = yes; then
27430
27431cat >>confdefs.h <<_ACEOF
27432#define HAVE_CEILF128 1
27433_ACEOF
27434
27435 fi
27436
27437
27438
27439
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf128" >&5
27441$as_echo_n "checking for copysignf128... " >&6; }
27442if ${gcc_cv_math_func_copysignf128+:} false; then :
27443 $as_echo_n "(cached) " >&6
27444else
27445 if test x$gcc_no_link = xyes; then
27446 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27447fi
27448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449/* end confdefs.h. */
27450
27451#ifdef HAVE_COMPLEX_H
27452#include <complex.h>
27453#endif
27454#ifdef HAVE_MATH_H
27455#include <math.h>
27456#endif
27457
27458int (*ptr)() = (int (*)())copysignf128;
27459
27460int
27461main ()
27462{
27463 return 0;
27464}
27465
27466_ACEOF
27467if ac_fn_c_try_link "$LINENO"; then :
27468 gcc_cv_math_func_copysignf128=yes
27469else
27470 gcc_cv_math_func_copysignf128=no
27471fi
27472rm -f core conftest.err conftest.$ac_objext \
27473 conftest$ac_exeext conftest.$ac_ext
27474fi
27475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf128" >&5
27476$as_echo "$gcc_cv_math_func_copysignf128" >&6; }
27477 if test $gcc_cv_math_func_copysignf128 = yes; then
27478
27479cat >>confdefs.h <<_ACEOF
27480#define HAVE_COPYSIGNF128 1
27481_ACEOF
27482
27483 fi
27484
27485
27486
27487
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf128" >&5
27489$as_echo_n "checking for cosf128... " >&6; }
27490if ${gcc_cv_math_func_cosf128+:} false; then :
27491 $as_echo_n "(cached) " >&6
27492else
27493 if test x$gcc_no_link = xyes; then
27494 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27495fi
27496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497/* end confdefs.h. */
27498
27499#ifdef HAVE_COMPLEX_H
27500#include <complex.h>
27501#endif
27502#ifdef HAVE_MATH_H
27503#include <math.h>
27504#endif
27505
27506int (*ptr)() = (int (*)())cosf128;
27507
27508int
27509main ()
27510{
27511 return 0;
27512}
27513
27514_ACEOF
27515if ac_fn_c_try_link "$LINENO"; then :
27516 gcc_cv_math_func_cosf128=yes
27517else
27518 gcc_cv_math_func_cosf128=no
27519fi
27520rm -f core conftest.err conftest.$ac_objext \
27521 conftest$ac_exeext conftest.$ac_ext
27522fi
27523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf128" >&5
27524$as_echo "$gcc_cv_math_func_cosf128" >&6; }
27525 if test $gcc_cv_math_func_cosf128 = yes; then
27526
27527cat >>confdefs.h <<_ACEOF
27528#define HAVE_COSF128 1
27529_ACEOF
27530
27531 fi
27532
27533
27534
27535
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf128" >&5
27537$as_echo_n "checking for ccosf128... " >&6; }
27538if ${gcc_cv_math_func_ccosf128+:} false; then :
27539 $as_echo_n "(cached) " >&6
27540else
27541 if test x$gcc_no_link = xyes; then
27542 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27543fi
27544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27545/* end confdefs.h. */
27546
27547#ifdef HAVE_COMPLEX_H
27548#include <complex.h>
27549#endif
27550#ifdef HAVE_MATH_H
27551#include <math.h>
27552#endif
27553
27554int (*ptr)() = (int (*)())ccosf128;
27555
27556int
27557main ()
27558{
27559 return 0;
27560}
27561
27562_ACEOF
27563if ac_fn_c_try_link "$LINENO"; then :
27564 gcc_cv_math_func_ccosf128=yes
27565else
27566 gcc_cv_math_func_ccosf128=no
27567fi
27568rm -f core conftest.err conftest.$ac_objext \
27569 conftest$ac_exeext conftest.$ac_ext
27570fi
27571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf128" >&5
27572$as_echo "$gcc_cv_math_func_ccosf128" >&6; }
27573 if test $gcc_cv_math_func_ccosf128 = yes; then
27574
27575cat >>confdefs.h <<_ACEOF
27576#define HAVE_CCOSF128 1
27577_ACEOF
27578
27579 fi
27580
27581
27582
27583
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf128" >&5
27585$as_echo_n "checking for coshf128... " >&6; }
27586if ${gcc_cv_math_func_coshf128+:} false; then :
27587 $as_echo_n "(cached) " >&6
27588else
27589 if test x$gcc_no_link = xyes; then
27590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27591fi
27592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27593/* end confdefs.h. */
27594
27595#ifdef HAVE_COMPLEX_H
27596#include <complex.h>
27597#endif
27598#ifdef HAVE_MATH_H
27599#include <math.h>
27600#endif
27601
27602int (*ptr)() = (int (*)())coshf128;
27603
27604int
27605main ()
27606{
27607 return 0;
27608}
27609
27610_ACEOF
27611if ac_fn_c_try_link "$LINENO"; then :
27612 gcc_cv_math_func_coshf128=yes
27613else
27614 gcc_cv_math_func_coshf128=no
27615fi
27616rm -f core conftest.err conftest.$ac_objext \
27617 conftest$ac_exeext conftest.$ac_ext
27618fi
27619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf128" >&5
27620$as_echo "$gcc_cv_math_func_coshf128" >&6; }
27621 if test $gcc_cv_math_func_coshf128 = yes; then
27622
27623cat >>confdefs.h <<_ACEOF
27624#define HAVE_COSHF128 1
27625_ACEOF
27626
27627 fi
27628
27629
27630
27631
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf128" >&5
27633$as_echo_n "checking for ccoshf128... " >&6; }
27634if ${gcc_cv_math_func_ccoshf128+:} false; then :
27635 $as_echo_n "(cached) " >&6
27636else
27637 if test x$gcc_no_link = xyes; then
27638 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27639fi
27640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27641/* end confdefs.h. */
27642
27643#ifdef HAVE_COMPLEX_H
27644#include <complex.h>
27645#endif
27646#ifdef HAVE_MATH_H
27647#include <math.h>
27648#endif
27649
27650int (*ptr)() = (int (*)())ccoshf128;
27651
27652int
27653main ()
27654{
27655 return 0;
27656}
27657
27658_ACEOF
27659if ac_fn_c_try_link "$LINENO"; then :
27660 gcc_cv_math_func_ccoshf128=yes
27661else
27662 gcc_cv_math_func_ccoshf128=no
27663fi
27664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
27666fi
27667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf128" >&5
27668$as_echo "$gcc_cv_math_func_ccoshf128" >&6; }
27669 if test $gcc_cv_math_func_ccoshf128 = yes; then
27670
27671cat >>confdefs.h <<_ACEOF
27672#define HAVE_CCOSHF128 1
27673_ACEOF
27674
27675 fi
27676
27677
27678
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf128" >&5
27681$as_echo_n "checking for expf128... " >&6; }
27682if ${gcc_cv_math_func_expf128+:} false; then :
27683 $as_echo_n "(cached) " >&6
27684else
27685 if test x$gcc_no_link = xyes; then
27686 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27687fi
27688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27689/* end confdefs.h. */
27690
27691#ifdef HAVE_COMPLEX_H
27692#include <complex.h>
27693#endif
27694#ifdef HAVE_MATH_H
27695#include <math.h>
27696#endif
27697
27698int (*ptr)() = (int (*)())expf128;
27699
27700int
27701main ()
27702{
27703 return 0;
27704}
27705
27706_ACEOF
27707if ac_fn_c_try_link "$LINENO"; then :
27708 gcc_cv_math_func_expf128=yes
27709else
27710 gcc_cv_math_func_expf128=no
27711fi
27712rm -f core conftest.err conftest.$ac_objext \
27713 conftest$ac_exeext conftest.$ac_ext
27714fi
27715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf128" >&5
27716$as_echo "$gcc_cv_math_func_expf128" >&6; }
27717 if test $gcc_cv_math_func_expf128 = yes; then
27718
27719cat >>confdefs.h <<_ACEOF
27720#define HAVE_EXPF128 1
27721_ACEOF
27722
27723 fi
27724
27725
27726
27727
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf128" >&5
27729$as_echo_n "checking for cexpf128... " >&6; }
27730if ${gcc_cv_math_func_cexpf128+:} false; then :
27731 $as_echo_n "(cached) " >&6
27732else
27733 if test x$gcc_no_link = xyes; then
27734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27735fi
27736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27737/* end confdefs.h. */
27738
27739#ifdef HAVE_COMPLEX_H
27740#include <complex.h>
27741#endif
27742#ifdef HAVE_MATH_H
27743#include <math.h>
27744#endif
27745
27746int (*ptr)() = (int (*)())cexpf128;
27747
27748int
27749main ()
27750{
27751 return 0;
27752}
27753
27754_ACEOF
27755if ac_fn_c_try_link "$LINENO"; then :
27756 gcc_cv_math_func_cexpf128=yes
27757else
27758 gcc_cv_math_func_cexpf128=no
27759fi
27760rm -f core conftest.err conftest.$ac_objext \
27761 conftest$ac_exeext conftest.$ac_ext
27762fi
27763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf128" >&5
27764$as_echo "$gcc_cv_math_func_cexpf128" >&6; }
27765 if test $gcc_cv_math_func_cexpf128 = yes; then
27766
27767cat >>confdefs.h <<_ACEOF
27768#define HAVE_CEXPF128 1
27769_ACEOF
27770
27771 fi
27772
27773
27774
27775
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf128" >&5
27777$as_echo_n "checking for fabsf128... " >&6; }
27778if ${gcc_cv_math_func_fabsf128+:} false; then :
27779 $as_echo_n "(cached) " >&6
27780else
27781 if test x$gcc_no_link = xyes; then
27782 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27783fi
27784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27785/* end confdefs.h. */
27786
27787#ifdef HAVE_COMPLEX_H
27788#include <complex.h>
27789#endif
27790#ifdef HAVE_MATH_H
27791#include <math.h>
27792#endif
27793
27794int (*ptr)() = (int (*)())fabsf128;
27795
27796int
27797main ()
27798{
27799 return 0;
27800}
27801
27802_ACEOF
27803if ac_fn_c_try_link "$LINENO"; then :
27804 gcc_cv_math_func_fabsf128=yes
27805else
27806 gcc_cv_math_func_fabsf128=no
27807fi
27808rm -f core conftest.err conftest.$ac_objext \
27809 conftest$ac_exeext conftest.$ac_ext
27810fi
27811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf128" >&5
27812$as_echo "$gcc_cv_math_func_fabsf128" >&6; }
27813 if test $gcc_cv_math_func_fabsf128 = yes; then
27814
27815cat >>confdefs.h <<_ACEOF
27816#define HAVE_FABSF128 1
27817_ACEOF
27818
27819 fi
27820
27821
27822
27823
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf128" >&5
27825$as_echo_n "checking for cabsf128... " >&6; }
27826if ${gcc_cv_math_func_cabsf128+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828else
27829 if test x$gcc_no_link = xyes; then
27830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27831fi
27832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833/* end confdefs.h. */
27834
27835#ifdef HAVE_COMPLEX_H
27836#include <complex.h>
27837#endif
27838#ifdef HAVE_MATH_H
27839#include <math.h>
27840#endif
27841
27842int (*ptr)() = (int (*)())cabsf128;
27843
27844int
27845main ()
27846{
27847 return 0;
27848}
27849
27850_ACEOF
27851if ac_fn_c_try_link "$LINENO"; then :
27852 gcc_cv_math_func_cabsf128=yes
27853else
27854 gcc_cv_math_func_cabsf128=no
27855fi
27856rm -f core conftest.err conftest.$ac_objext \
27857 conftest$ac_exeext conftest.$ac_ext
27858fi
27859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf128" >&5
27860$as_echo "$gcc_cv_math_func_cabsf128" >&6; }
27861 if test $gcc_cv_math_func_cabsf128 = yes; then
27862
27863cat >>confdefs.h <<_ACEOF
27864#define HAVE_CABSF128 1
27865_ACEOF
27866
27867 fi
27868
27869
27870
27871
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf128" >&5
27873$as_echo_n "checking for floorf128... " >&6; }
27874if ${gcc_cv_math_func_floorf128+:} false; then :
27875 $as_echo_n "(cached) " >&6
27876else
27877 if test x$gcc_no_link = xyes; then
27878 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27879fi
27880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881/* end confdefs.h. */
27882
27883#ifdef HAVE_COMPLEX_H
27884#include <complex.h>
27885#endif
27886#ifdef HAVE_MATH_H
27887#include <math.h>
27888#endif
27889
27890int (*ptr)() = (int (*)())floorf128;
27891
27892int
27893main ()
27894{
27895 return 0;
27896}
27897
27898_ACEOF
27899if ac_fn_c_try_link "$LINENO"; then :
27900 gcc_cv_math_func_floorf128=yes
27901else
27902 gcc_cv_math_func_floorf128=no
27903fi
27904rm -f core conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
27906fi
27907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf128" >&5
27908$as_echo "$gcc_cv_math_func_floorf128" >&6; }
27909 if test $gcc_cv_math_func_floorf128 = yes; then
27910
27911cat >>confdefs.h <<_ACEOF
27912#define HAVE_FLOORF128 1
27913_ACEOF
27914
27915 fi
27916
27917
27918
27919
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf128" >&5
27921$as_echo_n "checking for fmaf128... " >&6; }
27922if ${gcc_cv_math_func_fmaf128+:} false; then :
27923 $as_echo_n "(cached) " >&6
27924else
27925 if test x$gcc_no_link = xyes; then
27926 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27927fi
27928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929/* end confdefs.h. */
27930
27931#ifdef HAVE_COMPLEX_H
27932#include <complex.h>
27933#endif
27934#ifdef HAVE_MATH_H
27935#include <math.h>
27936#endif
27937
27938int (*ptr)() = (int (*)())fmaf128;
27939
27940int
27941main ()
27942{
27943 return 0;
27944}
27945
27946_ACEOF
27947if ac_fn_c_try_link "$LINENO"; then :
27948 gcc_cv_math_func_fmaf128=yes
27949else
27950 gcc_cv_math_func_fmaf128=no
27951fi
27952rm -f core conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
27954fi
27955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf128" >&5
27956$as_echo "$gcc_cv_math_func_fmaf128" >&6; }
27957 if test $gcc_cv_math_func_fmaf128 = yes; then
27958
27959cat >>confdefs.h <<_ACEOF
27960#define HAVE_FMAF128 1
27961_ACEOF
27962
27963 fi
27964
27965
27966
27967
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf128" >&5
27969$as_echo_n "checking for fmodf128... " >&6; }
27970if ${gcc_cv_math_func_fmodf128+:} false; then :
27971 $as_echo_n "(cached) " >&6
27972else
27973 if test x$gcc_no_link = xyes; then
27974 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27975fi
27976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27977/* end confdefs.h. */
27978
27979#ifdef HAVE_COMPLEX_H
27980#include <complex.h>
27981#endif
27982#ifdef HAVE_MATH_H
27983#include <math.h>
27984#endif
27985
27986int (*ptr)() = (int (*)())fmodf128;
27987
27988int
27989main ()
27990{
27991 return 0;
27992}
27993
27994_ACEOF
27995if ac_fn_c_try_link "$LINENO"; then :
27996 gcc_cv_math_func_fmodf128=yes
27997else
27998 gcc_cv_math_func_fmodf128=no
27999fi
28000rm -f core conftest.err conftest.$ac_objext \
28001 conftest$ac_exeext conftest.$ac_ext
28002fi
28003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf128" >&5
28004$as_echo "$gcc_cv_math_func_fmodf128" >&6; }
28005 if test $gcc_cv_math_func_fmodf128 = yes; then
28006
28007cat >>confdefs.h <<_ACEOF
28008#define HAVE_FMODF128 1
28009_ACEOF
28010
28011 fi
28012
28013
28014
28015
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf128" >&5
28017$as_echo_n "checking for frexpf128... " >&6; }
28018if ${gcc_cv_math_func_frexpf128+:} false; then :
28019 $as_echo_n "(cached) " >&6
28020else
28021 if test x$gcc_no_link = xyes; then
28022 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28023fi
28024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28025/* end confdefs.h. */
28026
28027#ifdef HAVE_COMPLEX_H
28028#include <complex.h>
28029#endif
28030#ifdef HAVE_MATH_H
28031#include <math.h>
28032#endif
28033
28034int (*ptr)() = (int (*)())frexpf128;
28035
28036int
28037main ()
28038{
28039 return 0;
28040}
28041
28042_ACEOF
28043if ac_fn_c_try_link "$LINENO"; then :
28044 gcc_cv_math_func_frexpf128=yes
28045else
28046 gcc_cv_math_func_frexpf128=no
28047fi
28048rm -f core conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
28050fi
28051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf128" >&5
28052$as_echo "$gcc_cv_math_func_frexpf128" >&6; }
28053 if test $gcc_cv_math_func_frexpf128 = yes; then
28054
28055cat >>confdefs.h <<_ACEOF
28056#define HAVE_FREXPF128 1
28057_ACEOF
28058
28059 fi
28060
28061
28062
28063
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf128" >&5
28065$as_echo_n "checking for hypotf128... " >&6; }
28066if ${gcc_cv_math_func_hypotf128+:} false; then :
28067 $as_echo_n "(cached) " >&6
28068else
28069 if test x$gcc_no_link = xyes; then
28070 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28071fi
28072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073/* end confdefs.h. */
28074
28075#ifdef HAVE_COMPLEX_H
28076#include <complex.h>
28077#endif
28078#ifdef HAVE_MATH_H
28079#include <math.h>
28080#endif
28081
28082int (*ptr)() = (int (*)())hypotf128;
28083
28084int
28085main ()
28086{
28087 return 0;
28088}
28089
28090_ACEOF
28091if ac_fn_c_try_link "$LINENO"; then :
28092 gcc_cv_math_func_hypotf128=yes
28093else
28094 gcc_cv_math_func_hypotf128=no
28095fi
28096rm -f core conftest.err conftest.$ac_objext \
28097 conftest$ac_exeext conftest.$ac_ext
28098fi
28099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf128" >&5
28100$as_echo "$gcc_cv_math_func_hypotf128" >&6; }
28101 if test $gcc_cv_math_func_hypotf128 = yes; then
28102
28103cat >>confdefs.h <<_ACEOF
28104#define HAVE_HYPOTF128 1
28105_ACEOF
28106
28107 fi
28108
28109
28110
28111
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf128" >&5
28113$as_echo_n "checking for ldexpf128... " >&6; }
28114if ${gcc_cv_math_func_ldexpf128+:} false; then :
28115 $as_echo_n "(cached) " >&6
28116else
28117 if test x$gcc_no_link = xyes; then
28118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28119fi
28120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28121/* end confdefs.h. */
28122
28123#ifdef HAVE_COMPLEX_H
28124#include <complex.h>
28125#endif
28126#ifdef HAVE_MATH_H
28127#include <math.h>
28128#endif
28129
28130int (*ptr)() = (int (*)())ldexpf128;
28131
28132int
28133main ()
28134{
28135 return 0;
28136}
28137
28138_ACEOF
28139if ac_fn_c_try_link "$LINENO"; then :
28140 gcc_cv_math_func_ldexpf128=yes
28141else
28142 gcc_cv_math_func_ldexpf128=no
28143fi
28144rm -f core conftest.err conftest.$ac_objext \
28145 conftest$ac_exeext conftest.$ac_ext
28146fi
28147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf128" >&5
28148$as_echo "$gcc_cv_math_func_ldexpf128" >&6; }
28149 if test $gcc_cv_math_func_ldexpf128 = yes; then
28150
28151cat >>confdefs.h <<_ACEOF
28152#define HAVE_LDEXPF128 1
28153_ACEOF
28154
28155 fi
28156
28157
28158
28159
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf128" >&5
28161$as_echo_n "checking for logf128... " >&6; }
28162if ${gcc_cv_math_func_logf128+:} false; then :
28163 $as_echo_n "(cached) " >&6
28164else
28165 if test x$gcc_no_link = xyes; then
28166 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28167fi
28168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169/* end confdefs.h. */
28170
28171#ifdef HAVE_COMPLEX_H
28172#include <complex.h>
28173#endif
28174#ifdef HAVE_MATH_H
28175#include <math.h>
28176#endif
28177
28178int (*ptr)() = (int (*)())logf128;
28179
28180int
28181main ()
28182{
28183 return 0;
28184}
28185
28186_ACEOF
28187if ac_fn_c_try_link "$LINENO"; then :
28188 gcc_cv_math_func_logf128=yes
28189else
28190 gcc_cv_math_func_logf128=no
28191fi
28192rm -f core conftest.err conftest.$ac_objext \
28193 conftest$ac_exeext conftest.$ac_ext
28194fi
28195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf128" >&5
28196$as_echo "$gcc_cv_math_func_logf128" >&6; }
28197 if test $gcc_cv_math_func_logf128 = yes; then
28198
28199cat >>confdefs.h <<_ACEOF
28200#define HAVE_LOGF128 1
28201_ACEOF
28202
28203 fi
28204
28205
28206
28207
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf128" >&5
28209$as_echo_n "checking for clogf128... " >&6; }
28210if ${gcc_cv_math_func_clogf128+:} false; then :
28211 $as_echo_n "(cached) " >&6
28212else
28213 if test x$gcc_no_link = xyes; then
28214 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28215fi
28216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217/* end confdefs.h. */
28218
28219#ifdef HAVE_COMPLEX_H
28220#include <complex.h>
28221#endif
28222#ifdef HAVE_MATH_H
28223#include <math.h>
28224#endif
28225
28226int (*ptr)() = (int (*)())clogf128;
28227
28228int
28229main ()
28230{
28231 return 0;
28232}
28233
28234_ACEOF
28235if ac_fn_c_try_link "$LINENO"; then :
28236 gcc_cv_math_func_clogf128=yes
28237else
28238 gcc_cv_math_func_clogf128=no
28239fi
28240rm -f core conftest.err conftest.$ac_objext \
28241 conftest$ac_exeext conftest.$ac_ext
28242fi
28243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf128" >&5
28244$as_echo "$gcc_cv_math_func_clogf128" >&6; }
28245 if test $gcc_cv_math_func_clogf128 = yes; then
28246
28247cat >>confdefs.h <<_ACEOF
28248#define HAVE_CLOGF128 1
28249_ACEOF
28250
28251 fi
28252
28253
28254
28255
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f128" >&5
28257$as_echo_n "checking for log10f128... " >&6; }
28258if ${gcc_cv_math_func_log10f128+:} false; then :
28259 $as_echo_n "(cached) " >&6
28260else
28261 if test x$gcc_no_link = xyes; then
28262 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28263fi
28264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28265/* end confdefs.h. */
28266
28267#ifdef HAVE_COMPLEX_H
28268#include <complex.h>
28269#endif
28270#ifdef HAVE_MATH_H
28271#include <math.h>
28272#endif
28273
28274int (*ptr)() = (int (*)())log10f128;
28275
28276int
28277main ()
28278{
28279 return 0;
28280}
28281
28282_ACEOF
28283if ac_fn_c_try_link "$LINENO"; then :
28284 gcc_cv_math_func_log10f128=yes
28285else
28286 gcc_cv_math_func_log10f128=no
28287fi
28288rm -f core conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
28290fi
28291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f128" >&5
28292$as_echo "$gcc_cv_math_func_log10f128" >&6; }
28293 if test $gcc_cv_math_func_log10f128 = yes; then
28294
28295cat >>confdefs.h <<_ACEOF
28296#define HAVE_LOG10F128 1
28297_ACEOF
28298
28299 fi
28300
28301
28302
28303
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f128" >&5
28305$as_echo_n "checking for clog10f128... " >&6; }
28306if ${gcc_cv_math_func_clog10f128+:} false; then :
28307 $as_echo_n "(cached) " >&6
28308else
28309 if test x$gcc_no_link = xyes; then
28310 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28311fi
28312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28313/* end confdefs.h. */
28314
28315#ifdef HAVE_COMPLEX_H
28316#include <complex.h>
28317#endif
28318#ifdef HAVE_MATH_H
28319#include <math.h>
28320#endif
28321
28322int (*ptr)() = (int (*)())clog10f128;
28323
28324int
28325main ()
28326{
28327 return 0;
28328}
28329
28330_ACEOF
28331if ac_fn_c_try_link "$LINENO"; then :
28332 gcc_cv_math_func_clog10f128=yes
28333else
28334 gcc_cv_math_func_clog10f128=no
28335fi
28336rm -f core conftest.err conftest.$ac_objext \
28337 conftest$ac_exeext conftest.$ac_ext
28338fi
28339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f128" >&5
28340$as_echo "$gcc_cv_math_func_clog10f128" >&6; }
28341 if test $gcc_cv_math_func_clog10f128 = yes; then
28342
28343cat >>confdefs.h <<_ACEOF
28344#define HAVE_CLOG10F128 1
28345_ACEOF
28346
28347 fi
28348
28349
28350
28351
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf128" >&5
28353$as_echo_n "checking for nextafterf128... " >&6; }
28354if ${gcc_cv_math_func_nextafterf128+:} false; then :
28355 $as_echo_n "(cached) " >&6
28356else
28357 if test x$gcc_no_link = xyes; then
28358 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28359fi
28360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28361/* end confdefs.h. */
28362
28363#ifdef HAVE_COMPLEX_H
28364#include <complex.h>
28365#endif
28366#ifdef HAVE_MATH_H
28367#include <math.h>
28368#endif
28369
28370int (*ptr)() = (int (*)())nextafterf128;
28371
28372int
28373main ()
28374{
28375 return 0;
28376}
28377
28378_ACEOF
28379if ac_fn_c_try_link "$LINENO"; then :
28380 gcc_cv_math_func_nextafterf128=yes
28381else
28382 gcc_cv_math_func_nextafterf128=no
28383fi
28384rm -f core conftest.err conftest.$ac_objext \
28385 conftest$ac_exeext conftest.$ac_ext
28386fi
28387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf128" >&5
28388$as_echo "$gcc_cv_math_func_nextafterf128" >&6; }
28389 if test $gcc_cv_math_func_nextafterf128 = yes; then
28390
28391cat >>confdefs.h <<_ACEOF
28392#define HAVE_NEXTAFTERF128 1
28393_ACEOF
28394
28395 fi
28396
28397
28398
28399
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf128" >&5
28401$as_echo_n "checking for powf128... " >&6; }
28402if ${gcc_cv_math_func_powf128+:} false; then :
28403 $as_echo_n "(cached) " >&6
28404else
28405 if test x$gcc_no_link = xyes; then
28406 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28407fi
28408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409/* end confdefs.h. */
28410
28411#ifdef HAVE_COMPLEX_H
28412#include <complex.h>
28413#endif
28414#ifdef HAVE_MATH_H
28415#include <math.h>
28416#endif
28417
28418int (*ptr)() = (int (*)())powf128;
28419
28420int
28421main ()
28422{
28423 return 0;
28424}
28425
28426_ACEOF
28427if ac_fn_c_try_link "$LINENO"; then :
28428 gcc_cv_math_func_powf128=yes
28429else
28430 gcc_cv_math_func_powf128=no
28431fi
28432rm -f core conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
28434fi
28435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf128" >&5
28436$as_echo "$gcc_cv_math_func_powf128" >&6; }
28437 if test $gcc_cv_math_func_powf128 = yes; then
28438
28439cat >>confdefs.h <<_ACEOF
28440#define HAVE_POWF128 1
28441_ACEOF
28442
28443 fi
28444
28445
28446
28447
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf128" >&5
28449$as_echo_n "checking for cpowf128... " >&6; }
28450if ${gcc_cv_math_func_cpowf128+:} false; then :
28451 $as_echo_n "(cached) " >&6
28452else
28453 if test x$gcc_no_link = xyes; then
28454 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28455fi
28456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28457/* end confdefs.h. */
28458
28459#ifdef HAVE_COMPLEX_H
28460#include <complex.h>
28461#endif
28462#ifdef HAVE_MATH_H
28463#include <math.h>
28464#endif
28465
28466int (*ptr)() = (int (*)())cpowf128;
28467
28468int
28469main ()
28470{
28471 return 0;
28472}
28473
28474_ACEOF
28475if ac_fn_c_try_link "$LINENO"; then :
28476 gcc_cv_math_func_cpowf128=yes
28477else
28478 gcc_cv_math_func_cpowf128=no
28479fi
28480rm -f core conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
28482fi
28483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf128" >&5
28484$as_echo "$gcc_cv_math_func_cpowf128" >&6; }
28485 if test $gcc_cv_math_func_cpowf128 = yes; then
28486
28487cat >>confdefs.h <<_ACEOF
28488#define HAVE_CPOWF128 1
28489_ACEOF
28490
28491 fi
28492
28493
28494
28495
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf128" >&5
28497$as_echo_n "checking for roundf128... " >&6; }
28498if ${gcc_cv_math_func_roundf128+:} false; then :
28499 $as_echo_n "(cached) " >&6
28500else
28501 if test x$gcc_no_link = xyes; then
28502 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28503fi
28504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505/* end confdefs.h. */
28506
28507#ifdef HAVE_COMPLEX_H
28508#include <complex.h>
28509#endif
28510#ifdef HAVE_MATH_H
28511#include <math.h>
28512#endif
28513
28514int (*ptr)() = (int (*)())roundf128;
28515
28516int
28517main ()
28518{
28519 return 0;
28520}
28521
28522_ACEOF
28523if ac_fn_c_try_link "$LINENO"; then :
28524 gcc_cv_math_func_roundf128=yes
28525else
28526 gcc_cv_math_func_roundf128=no
28527fi
28528rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext conftest.$ac_ext
28530fi
28531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf128" >&5
28532$as_echo "$gcc_cv_math_func_roundf128" >&6; }
28533 if test $gcc_cv_math_func_roundf128 = yes; then
28534
28535cat >>confdefs.h <<_ACEOF
28536#define HAVE_ROUNDF128 1
28537_ACEOF
28538
28539 fi
28540
28541
28542
28543
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf128" >&5
28545$as_echo_n "checking for lroundf128... " >&6; }
28546if ${gcc_cv_math_func_lroundf128+:} false; then :
28547 $as_echo_n "(cached) " >&6
28548else
28549 if test x$gcc_no_link = xyes; then
28550 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28551fi
28552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28553/* end confdefs.h. */
28554
28555#ifdef HAVE_COMPLEX_H
28556#include <complex.h>
28557#endif
28558#ifdef HAVE_MATH_H
28559#include <math.h>
28560#endif
28561
28562int (*ptr)() = (int (*)())lroundf128;
28563
28564int
28565main ()
28566{
28567 return 0;
28568}
28569
28570_ACEOF
28571if ac_fn_c_try_link "$LINENO"; then :
28572 gcc_cv_math_func_lroundf128=yes
28573else
28574 gcc_cv_math_func_lroundf128=no
28575fi
28576rm -f core conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
28578fi
28579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf128" >&5
28580$as_echo "$gcc_cv_math_func_lroundf128" >&6; }
28581 if test $gcc_cv_math_func_lroundf128 = yes; then
28582
28583cat >>confdefs.h <<_ACEOF
28584#define HAVE_LROUNDF128 1
28585_ACEOF
28586
28587 fi
28588
28589
28590
28591
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf128" >&5
28593$as_echo_n "checking for llroundf128... " >&6; }
28594if ${gcc_cv_math_func_llroundf128+:} false; then :
28595 $as_echo_n "(cached) " >&6
28596else
28597 if test x$gcc_no_link = xyes; then
28598 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28599fi
28600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601/* end confdefs.h. */
28602
28603#ifdef HAVE_COMPLEX_H
28604#include <complex.h>
28605#endif
28606#ifdef HAVE_MATH_H
28607#include <math.h>
28608#endif
28609
28610int (*ptr)() = (int (*)())llroundf128;
28611
28612int
28613main ()
28614{
28615 return 0;
28616}
28617
28618_ACEOF
28619if ac_fn_c_try_link "$LINENO"; then :
28620 gcc_cv_math_func_llroundf128=yes
28621else
28622 gcc_cv_math_func_llroundf128=no
28623fi
28624rm -f core conftest.err conftest.$ac_objext \
28625 conftest$ac_exeext conftest.$ac_ext
28626fi
28627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf128" >&5
28628$as_echo "$gcc_cv_math_func_llroundf128" >&6; }
28629 if test $gcc_cv_math_func_llroundf128 = yes; then
28630
28631cat >>confdefs.h <<_ACEOF
28632#define HAVE_LLROUNDF128 1
28633_ACEOF
28634
28635 fi
28636
28637
28638
28639
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf128" >&5
28641$as_echo_n "checking for scalbnf128... " >&6; }
28642if ${gcc_cv_math_func_scalbnf128+:} false; then :
28643 $as_echo_n "(cached) " >&6
28644else
28645 if test x$gcc_no_link = xyes; then
28646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28647fi
28648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28649/* end confdefs.h. */
28650
28651#ifdef HAVE_COMPLEX_H
28652#include <complex.h>
28653#endif
28654#ifdef HAVE_MATH_H
28655#include <math.h>
28656#endif
28657
28658int (*ptr)() = (int (*)())scalbnf128;
28659
28660int
28661main ()
28662{
28663 return 0;
28664}
28665
28666_ACEOF
28667if ac_fn_c_try_link "$LINENO"; then :
28668 gcc_cv_math_func_scalbnf128=yes
28669else
28670 gcc_cv_math_func_scalbnf128=no
28671fi
28672rm -f core conftest.err conftest.$ac_objext \
28673 conftest$ac_exeext conftest.$ac_ext
28674fi
28675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf128" >&5
28676$as_echo "$gcc_cv_math_func_scalbnf128" >&6; }
28677 if test $gcc_cv_math_func_scalbnf128 = yes; then
28678
28679cat >>confdefs.h <<_ACEOF
28680#define HAVE_SCALBNF128 1
28681_ACEOF
28682
28683 fi
28684
28685
28686
28687
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf128" >&5
28689$as_echo_n "checking for sinf128... " >&6; }
28690if ${gcc_cv_math_func_sinf128+:} false; then :
28691 $as_echo_n "(cached) " >&6
28692else
28693 if test x$gcc_no_link = xyes; then
28694 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28695fi
28696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697/* end confdefs.h. */
28698
28699#ifdef HAVE_COMPLEX_H
28700#include <complex.h>
28701#endif
28702#ifdef HAVE_MATH_H
28703#include <math.h>
28704#endif
28705
28706int (*ptr)() = (int (*)())sinf128;
28707
28708int
28709main ()
28710{
28711 return 0;
28712}
28713
28714_ACEOF
28715if ac_fn_c_try_link "$LINENO"; then :
28716 gcc_cv_math_func_sinf128=yes
28717else
28718 gcc_cv_math_func_sinf128=no
28719fi
28720rm -f core conftest.err conftest.$ac_objext \
28721 conftest$ac_exeext conftest.$ac_ext
28722fi
28723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf128" >&5
28724$as_echo "$gcc_cv_math_func_sinf128" >&6; }
28725 if test $gcc_cv_math_func_sinf128 = yes; then
28726
28727cat >>confdefs.h <<_ACEOF
28728#define HAVE_SINF128 1
28729_ACEOF
28730
28731 fi
28732
28733
28734
28735
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf128" >&5
28737$as_echo_n "checking for csinf128... " >&6; }
28738if ${gcc_cv_math_func_csinf128+:} false; then :
28739 $as_echo_n "(cached) " >&6
28740else
28741 if test x$gcc_no_link = xyes; then
28742 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28743fi
28744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745/* end confdefs.h. */
28746
28747#ifdef HAVE_COMPLEX_H
28748#include <complex.h>
28749#endif
28750#ifdef HAVE_MATH_H
28751#include <math.h>
28752#endif
28753
28754int (*ptr)() = (int (*)())csinf128;
28755
28756int
28757main ()
28758{
28759 return 0;
28760}
28761
28762_ACEOF
28763if ac_fn_c_try_link "$LINENO"; then :
28764 gcc_cv_math_func_csinf128=yes
28765else
28766 gcc_cv_math_func_csinf128=no
28767fi
28768rm -f core conftest.err conftest.$ac_objext \
28769 conftest$ac_exeext conftest.$ac_ext
28770fi
28771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf128" >&5
28772$as_echo "$gcc_cv_math_func_csinf128" >&6; }
28773 if test $gcc_cv_math_func_csinf128 = yes; then
28774
28775cat >>confdefs.h <<_ACEOF
28776#define HAVE_CSINF128 1
28777_ACEOF
28778
28779 fi
28780
28781
28782
28783
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf128" >&5
28785$as_echo_n "checking for sinhf128... " >&6; }
28786if ${gcc_cv_math_func_sinhf128+:} false; then :
28787 $as_echo_n "(cached) " >&6
28788else
28789 if test x$gcc_no_link = xyes; then
28790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28791fi
28792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793/* end confdefs.h. */
28794
28795#ifdef HAVE_COMPLEX_H
28796#include <complex.h>
28797#endif
28798#ifdef HAVE_MATH_H
28799#include <math.h>
28800#endif
28801
28802int (*ptr)() = (int (*)())sinhf128;
28803
28804int
28805main ()
28806{
28807 return 0;
28808}
28809
28810_ACEOF
28811if ac_fn_c_try_link "$LINENO"; then :
28812 gcc_cv_math_func_sinhf128=yes
28813else
28814 gcc_cv_math_func_sinhf128=no
28815fi
28816rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28818fi
28819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf128" >&5
28820$as_echo "$gcc_cv_math_func_sinhf128" >&6; }
28821 if test $gcc_cv_math_func_sinhf128 = yes; then
28822
28823cat >>confdefs.h <<_ACEOF
28824#define HAVE_SINHF128 1
28825_ACEOF
28826
28827 fi
28828
28829
28830
28831
28832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf128" >&5
28833$as_echo_n "checking for csinhf128... " >&6; }
28834if ${gcc_cv_math_func_csinhf128+:} false; then :
28835 $as_echo_n "(cached) " >&6
28836else
28837 if test x$gcc_no_link = xyes; then
28838 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28839fi
28840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28841/* end confdefs.h. */
28842
28843#ifdef HAVE_COMPLEX_H
28844#include <complex.h>
28845#endif
28846#ifdef HAVE_MATH_H
28847#include <math.h>
28848#endif
28849
28850int (*ptr)() = (int (*)())csinhf128;
28851
28852int
28853main ()
28854{
28855 return 0;
28856}
28857
28858_ACEOF
28859if ac_fn_c_try_link "$LINENO"; then :
28860 gcc_cv_math_func_csinhf128=yes
28861else
28862 gcc_cv_math_func_csinhf128=no
28863fi
28864rm -f core conftest.err conftest.$ac_objext \
28865 conftest$ac_exeext conftest.$ac_ext
28866fi
28867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf128" >&5
28868$as_echo "$gcc_cv_math_func_csinhf128" >&6; }
28869 if test $gcc_cv_math_func_csinhf128 = yes; then
28870
28871cat >>confdefs.h <<_ACEOF
28872#define HAVE_CSINHF128 1
28873_ACEOF
28874
28875 fi
28876
28877
28878
28879
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf128" >&5
28881$as_echo_n "checking for sqrtf128... " >&6; }
28882if ${gcc_cv_math_func_sqrtf128+:} false; then :
28883 $as_echo_n "(cached) " >&6
28884else
28885 if test x$gcc_no_link = xyes; then
28886 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28887fi
28888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28889/* end confdefs.h. */
28890
28891#ifdef HAVE_COMPLEX_H
28892#include <complex.h>
28893#endif
28894#ifdef HAVE_MATH_H
28895#include <math.h>
28896#endif
28897
28898int (*ptr)() = (int (*)())sqrtf128;
28899
28900int
28901main ()
28902{
28903 return 0;
28904}
28905
28906_ACEOF
28907if ac_fn_c_try_link "$LINENO"; then :
28908 gcc_cv_math_func_sqrtf128=yes
28909else
28910 gcc_cv_math_func_sqrtf128=no
28911fi
28912rm -f core conftest.err conftest.$ac_objext \
28913 conftest$ac_exeext conftest.$ac_ext
28914fi
28915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf128" >&5
28916$as_echo "$gcc_cv_math_func_sqrtf128" >&6; }
28917 if test $gcc_cv_math_func_sqrtf128 = yes; then
28918
28919cat >>confdefs.h <<_ACEOF
28920#define HAVE_SQRTF128 1
28921_ACEOF
28922
28923 fi
28924
28925
28926
28927
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf128" >&5
28929$as_echo_n "checking for csqrtf128... " >&6; }
28930if ${gcc_cv_math_func_csqrtf128+:} false; then :
28931 $as_echo_n "(cached) " >&6
28932else
28933 if test x$gcc_no_link = xyes; then
28934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28935fi
28936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28937/* end confdefs.h. */
28938
28939#ifdef HAVE_COMPLEX_H
28940#include <complex.h>
28941#endif
28942#ifdef HAVE_MATH_H
28943#include <math.h>
28944#endif
28945
28946int (*ptr)() = (int (*)())csqrtf128;
28947
28948int
28949main ()
28950{
28951 return 0;
28952}
28953
28954_ACEOF
28955if ac_fn_c_try_link "$LINENO"; then :
28956 gcc_cv_math_func_csqrtf128=yes
28957else
28958 gcc_cv_math_func_csqrtf128=no
28959fi
28960rm -f core conftest.err conftest.$ac_objext \
28961 conftest$ac_exeext conftest.$ac_ext
28962fi
28963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf128" >&5
28964$as_echo "$gcc_cv_math_func_csqrtf128" >&6; }
28965 if test $gcc_cv_math_func_csqrtf128 = yes; then
28966
28967cat >>confdefs.h <<_ACEOF
28968#define HAVE_CSQRTF128 1
28969_ACEOF
28970
28971 fi
28972
28973
28974
28975
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf128" >&5
28977$as_echo_n "checking for tanf128... " >&6; }
28978if ${gcc_cv_math_func_tanf128+:} false; then :
28979 $as_echo_n "(cached) " >&6
28980else
28981 if test x$gcc_no_link = xyes; then
28982 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28983fi
28984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28985/* end confdefs.h. */
28986
28987#ifdef HAVE_COMPLEX_H
28988#include <complex.h>
28989#endif
28990#ifdef HAVE_MATH_H
28991#include <math.h>
28992#endif
28993
28994int (*ptr)() = (int (*)())tanf128;
28995
28996int
28997main ()
28998{
28999 return 0;
29000}
29001
29002_ACEOF
29003if ac_fn_c_try_link "$LINENO"; then :
29004 gcc_cv_math_func_tanf128=yes
29005else
29006 gcc_cv_math_func_tanf128=no
29007fi
29008rm -f core conftest.err conftest.$ac_objext \
29009 conftest$ac_exeext conftest.$ac_ext
29010fi
29011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf128" >&5
29012$as_echo "$gcc_cv_math_func_tanf128" >&6; }
29013 if test $gcc_cv_math_func_tanf128 = yes; then
29014
29015cat >>confdefs.h <<_ACEOF
29016#define HAVE_TANF128 1
29017_ACEOF
29018
29019 fi
29020
29021
29022
29023
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf128" >&5
29025$as_echo_n "checking for ctanf128... " >&6; }
29026if ${gcc_cv_math_func_ctanf128+:} false; then :
29027 $as_echo_n "(cached) " >&6
29028else
29029 if test x$gcc_no_link = xyes; then
29030 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29031fi
29032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29033/* end confdefs.h. */
29034
29035#ifdef HAVE_COMPLEX_H
29036#include <complex.h>
29037#endif
29038#ifdef HAVE_MATH_H
29039#include <math.h>
29040#endif
29041
29042int (*ptr)() = (int (*)())ctanf128;
29043
29044int
29045main ()
29046{
29047 return 0;
29048}
29049
29050_ACEOF
29051if ac_fn_c_try_link "$LINENO"; then :
29052 gcc_cv_math_func_ctanf128=yes
29053else
29054 gcc_cv_math_func_ctanf128=no
29055fi
29056rm -f core conftest.err conftest.$ac_objext \
29057 conftest$ac_exeext conftest.$ac_ext
29058fi
29059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf128" >&5
29060$as_echo "$gcc_cv_math_func_ctanf128" >&6; }
29061 if test $gcc_cv_math_func_ctanf128 = yes; then
29062
29063cat >>confdefs.h <<_ACEOF
29064#define HAVE_CTANF128 1
29065_ACEOF
29066
29067 fi
29068
29069
29070
29071
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf128" >&5
29073$as_echo_n "checking for tanhf128... " >&6; }
29074if ${gcc_cv_math_func_tanhf128+:} false; then :
29075 $as_echo_n "(cached) " >&6
29076else
29077 if test x$gcc_no_link = xyes; then
29078 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29079fi
29080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29081/* end confdefs.h. */
29082
29083#ifdef HAVE_COMPLEX_H
29084#include <complex.h>
29085#endif
29086#ifdef HAVE_MATH_H
29087#include <math.h>
29088#endif
29089
29090int (*ptr)() = (int (*)())tanhf128;
29091
29092int
29093main ()
29094{
29095 return 0;
29096}
29097
29098_ACEOF
29099if ac_fn_c_try_link "$LINENO"; then :
29100 gcc_cv_math_func_tanhf128=yes
29101else
29102 gcc_cv_math_func_tanhf128=no
29103fi
29104rm -f core conftest.err conftest.$ac_objext \
29105 conftest$ac_exeext conftest.$ac_ext
29106fi
29107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf128" >&5
29108$as_echo "$gcc_cv_math_func_tanhf128" >&6; }
29109 if test $gcc_cv_math_func_tanhf128 = yes; then
29110
29111cat >>confdefs.h <<_ACEOF
29112#define HAVE_TANHF128 1
29113_ACEOF
29114
29115 fi
29116
29117
29118
29119
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf128" >&5
29121$as_echo_n "checking for ctanhf128... " >&6; }
29122if ${gcc_cv_math_func_ctanhf128+:} false; then :
29123 $as_echo_n "(cached) " >&6
29124else
29125 if test x$gcc_no_link = xyes; then
29126 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29127fi
29128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129/* end confdefs.h. */
29130
29131#ifdef HAVE_COMPLEX_H
29132#include <complex.h>
29133#endif
29134#ifdef HAVE_MATH_H
29135#include <math.h>
29136#endif
29137
29138int (*ptr)() = (int (*)())ctanhf128;
29139
29140int
29141main ()
29142{
29143 return 0;
29144}
29145
29146_ACEOF
29147if ac_fn_c_try_link "$LINENO"; then :
29148 gcc_cv_math_func_ctanhf128=yes
29149else
29150 gcc_cv_math_func_ctanhf128=no
29151fi
29152rm -f core conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29154fi
29155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf128" >&5
29156$as_echo "$gcc_cv_math_func_ctanhf128" >&6; }
29157 if test $gcc_cv_math_func_ctanhf128 = yes; then
29158
29159cat >>confdefs.h <<_ACEOF
29160#define HAVE_CTANHF128 1
29161_ACEOF
29162
29163 fi
29164
29165
29166
29167
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf128" >&5
29169$as_echo_n "checking for truncf128... " >&6; }
29170if ${gcc_cv_math_func_truncf128+:} false; then :
29171 $as_echo_n "(cached) " >&6
29172else
29173 if test x$gcc_no_link = xyes; then
29174 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29175fi
29176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29177/* end confdefs.h. */
29178
29179#ifdef HAVE_COMPLEX_H
29180#include <complex.h>
29181#endif
29182#ifdef HAVE_MATH_H
29183#include <math.h>
29184#endif
29185
29186int (*ptr)() = (int (*)())truncf128;
29187
29188int
29189main ()
29190{
29191 return 0;
29192}
29193
29194_ACEOF
29195if ac_fn_c_try_link "$LINENO"; then :
29196 gcc_cv_math_func_truncf128=yes
29197else
29198 gcc_cv_math_func_truncf128=no
29199fi
29200rm -f core conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29202fi
29203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf128" >&5
29204$as_echo "$gcc_cv_math_func_truncf128" >&6; }
29205 if test $gcc_cv_math_func_truncf128 = yes; then
29206
29207cat >>confdefs.h <<_ACEOF
29208#define HAVE_TRUNCF128 1
29209_ACEOF
29210
29211 fi
29212
29213
29214
29215
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff128" >&5
29217$as_echo_n "checking for erff128... " >&6; }
29218if ${gcc_cv_math_func_erff128+:} false; then :
29219 $as_echo_n "(cached) " >&6
29220else
29221 if test x$gcc_no_link = xyes; then
29222 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29223fi
29224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225/* end confdefs.h. */
29226
29227#ifdef HAVE_COMPLEX_H
29228#include <complex.h>
29229#endif
29230#ifdef HAVE_MATH_H
29231#include <math.h>
29232#endif
29233
29234int (*ptr)() = (int (*)())erff128;
29235
29236int
29237main ()
29238{
29239 return 0;
29240}
29241
29242_ACEOF
29243if ac_fn_c_try_link "$LINENO"; then :
29244 gcc_cv_math_func_erff128=yes
29245else
29246 gcc_cv_math_func_erff128=no
29247fi
29248rm -f core conftest.err conftest.$ac_objext \
29249 conftest$ac_exeext conftest.$ac_ext
29250fi
29251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff128" >&5
29252$as_echo "$gcc_cv_math_func_erff128" >&6; }
29253 if test $gcc_cv_math_func_erff128 = yes; then
29254
29255cat >>confdefs.h <<_ACEOF
29256#define HAVE_ERFF128 1
29257_ACEOF
29258
29259 fi
29260
29261
29262
29263
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf128" >&5
29265$as_echo_n "checking for erfcf128... " >&6; }
29266if ${gcc_cv_math_func_erfcf128+:} false; then :
29267 $as_echo_n "(cached) " >&6
29268else
29269 if test x$gcc_no_link = xyes; then
29270 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29271fi
29272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29273/* end confdefs.h. */
29274
29275#ifdef HAVE_COMPLEX_H
29276#include <complex.h>
29277#endif
29278#ifdef HAVE_MATH_H
29279#include <math.h>
29280#endif
29281
29282int (*ptr)() = (int (*)())erfcf128;
29283
29284int
29285main ()
29286{
29287 return 0;
29288}
29289
29290_ACEOF
29291if ac_fn_c_try_link "$LINENO"; then :
29292 gcc_cv_math_func_erfcf128=yes
29293else
29294 gcc_cv_math_func_erfcf128=no
29295fi
29296rm -f core conftest.err conftest.$ac_objext \
29297 conftest$ac_exeext conftest.$ac_ext
29298fi
29299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf128" >&5
29300$as_echo "$gcc_cv_math_func_erfcf128" >&6; }
29301 if test $gcc_cv_math_func_erfcf128 = yes; then
29302
29303cat >>confdefs.h <<_ACEOF
29304#define HAVE_ERFCF128 1
29305_ACEOF
29306
29307 fi
29308
29309
29310
29311
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f128" >&5
29313$as_echo_n "checking for j0f128... " >&6; }
29314if ${gcc_cv_math_func_j0f128+:} false; then :
29315 $as_echo_n "(cached) " >&6
29316else
29317 if test x$gcc_no_link = xyes; then
29318 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29319fi
29320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29321/* end confdefs.h. */
29322
29323#ifdef HAVE_COMPLEX_H
29324#include <complex.h>
29325#endif
29326#ifdef HAVE_MATH_H
29327#include <math.h>
29328#endif
29329
29330int (*ptr)() = (int (*)())j0f128;
29331
29332int
29333main ()
29334{
29335 return 0;
29336}
29337
29338_ACEOF
29339if ac_fn_c_try_link "$LINENO"; then :
29340 gcc_cv_math_func_j0f128=yes
29341else
29342 gcc_cv_math_func_j0f128=no
29343fi
29344rm -f core conftest.err conftest.$ac_objext \
29345 conftest$ac_exeext conftest.$ac_ext
29346fi
29347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f128" >&5
29348$as_echo "$gcc_cv_math_func_j0f128" >&6; }
29349 if test $gcc_cv_math_func_j0f128 = yes; then
29350
29351cat >>confdefs.h <<_ACEOF
29352#define HAVE_J0F128 1
29353_ACEOF
29354
29355 fi
29356
29357
29358
29359
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f128" >&5
29361$as_echo_n "checking for j1f128... " >&6; }
29362if ${gcc_cv_math_func_j1f128+:} false; then :
29363 $as_echo_n "(cached) " >&6
29364else
29365 if test x$gcc_no_link = xyes; then
29366 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29367fi
29368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29369/* end confdefs.h. */
29370
29371#ifdef HAVE_COMPLEX_H
29372#include <complex.h>
29373#endif
29374#ifdef HAVE_MATH_H
29375#include <math.h>
29376#endif
29377
29378int (*ptr)() = (int (*)())j1f128;
29379
29380int
29381main ()
29382{
29383 return 0;
29384}
29385
29386_ACEOF
29387if ac_fn_c_try_link "$LINENO"; then :
29388 gcc_cv_math_func_j1f128=yes
29389else
29390 gcc_cv_math_func_j1f128=no
29391fi
29392rm -f core conftest.err conftest.$ac_objext \
29393 conftest$ac_exeext conftest.$ac_ext
29394fi
29395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f128" >&5
29396$as_echo "$gcc_cv_math_func_j1f128" >&6; }
29397 if test $gcc_cv_math_func_j1f128 = yes; then
29398
29399cat >>confdefs.h <<_ACEOF
29400#define HAVE_J1F128 1
29401_ACEOF
29402
29403 fi
29404
29405
29406
29407
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf128" >&5
29409$as_echo_n "checking for jnf128... " >&6; }
29410if ${gcc_cv_math_func_jnf128+:} false; then :
29411 $as_echo_n "(cached) " >&6
29412else
29413 if test x$gcc_no_link = xyes; then
29414 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29415fi
29416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29417/* end confdefs.h. */
29418
29419#ifdef HAVE_COMPLEX_H
29420#include <complex.h>
29421#endif
29422#ifdef HAVE_MATH_H
29423#include <math.h>
29424#endif
29425
29426int (*ptr)() = (int (*)())jnf128;
29427
29428int
29429main ()
29430{
29431 return 0;
29432}
29433
29434_ACEOF
29435if ac_fn_c_try_link "$LINENO"; then :
29436 gcc_cv_math_func_jnf128=yes
29437else
29438 gcc_cv_math_func_jnf128=no
29439fi
29440rm -f core conftest.err conftest.$ac_objext \
29441 conftest$ac_exeext conftest.$ac_ext
29442fi
29443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf128" >&5
29444$as_echo "$gcc_cv_math_func_jnf128" >&6; }
29445 if test $gcc_cv_math_func_jnf128 = yes; then
29446
29447cat >>confdefs.h <<_ACEOF
29448#define HAVE_JNF128 1
29449_ACEOF
29450
29451 fi
29452
29453
29454
29455
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f128" >&5
29457$as_echo_n "checking for y0f128... " >&6; }
29458if ${gcc_cv_math_func_y0f128+:} false; then :
29459 $as_echo_n "(cached) " >&6
29460else
29461 if test x$gcc_no_link = xyes; then
29462 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29463fi
29464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29465/* end confdefs.h. */
29466
29467#ifdef HAVE_COMPLEX_H
29468#include <complex.h>
29469#endif
29470#ifdef HAVE_MATH_H
29471#include <math.h>
29472#endif
29473
29474int (*ptr)() = (int (*)())y0f128;
29475
29476int
29477main ()
29478{
29479 return 0;
29480}
29481
29482_ACEOF
29483if ac_fn_c_try_link "$LINENO"; then :
29484 gcc_cv_math_func_y0f128=yes
29485else
29486 gcc_cv_math_func_y0f128=no
29487fi
29488rm -f core conftest.err conftest.$ac_objext \
29489 conftest$ac_exeext conftest.$ac_ext
29490fi
29491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f128" >&5
29492$as_echo "$gcc_cv_math_func_y0f128" >&6; }
29493 if test $gcc_cv_math_func_y0f128 = yes; then
29494
29495cat >>confdefs.h <<_ACEOF
29496#define HAVE_Y0F128 1
29497_ACEOF
29498
29499 fi
29500
29501
29502
29503
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f128" >&5
29505$as_echo_n "checking for y1f128... " >&6; }
29506if ${gcc_cv_math_func_y1f128+:} false; then :
29507 $as_echo_n "(cached) " >&6
29508else
29509 if test x$gcc_no_link = xyes; then
29510 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29511fi
29512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513/* end confdefs.h. */
29514
29515#ifdef HAVE_COMPLEX_H
29516#include <complex.h>
29517#endif
29518#ifdef HAVE_MATH_H
29519#include <math.h>
29520#endif
29521
29522int (*ptr)() = (int (*)())y1f128;
29523
29524int
29525main ()
29526{
29527 return 0;
29528}
29529
29530_ACEOF
29531if ac_fn_c_try_link "$LINENO"; then :
29532 gcc_cv_math_func_y1f128=yes
29533else
29534 gcc_cv_math_func_y1f128=no
29535fi
29536rm -f core conftest.err conftest.$ac_objext \
29537 conftest$ac_exeext conftest.$ac_ext
29538fi
29539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f128" >&5
29540$as_echo "$gcc_cv_math_func_y1f128" >&6; }
29541 if test $gcc_cv_math_func_y1f128 = yes; then
29542
29543cat >>confdefs.h <<_ACEOF
29544#define HAVE_Y1F128 1
29545_ACEOF
29546
29547 fi
29548
29549
29550
29551
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf128" >&5
29553$as_echo_n "checking for ynf128... " >&6; }
29554if ${gcc_cv_math_func_ynf128+:} false; then :
29555 $as_echo_n "(cached) " >&6
29556else
29557 if test x$gcc_no_link = xyes; then
29558 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29559fi
29560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561/* end confdefs.h. */
29562
29563#ifdef HAVE_COMPLEX_H
29564#include <complex.h>
29565#endif
29566#ifdef HAVE_MATH_H
29567#include <math.h>
29568#endif
29569
29570int (*ptr)() = (int (*)())ynf128;
29571
29572int
29573main ()
29574{
29575 return 0;
29576}
29577
29578_ACEOF
29579if ac_fn_c_try_link "$LINENO"; then :
29580 gcc_cv_math_func_ynf128=yes
29581else
29582 gcc_cv_math_func_ynf128=no
29583fi
29584rm -f core conftest.err conftest.$ac_objext \
29585 conftest$ac_exeext conftest.$ac_ext
29586fi
29587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf128" >&5
29588$as_echo "$gcc_cv_math_func_ynf128" >&6; }
29589 if test $gcc_cv_math_func_ynf128 = yes; then
29590
29591cat >>confdefs.h <<_ACEOF
29592#define HAVE_YNF128 1
29593_ACEOF
29594
29595 fi
29596
29597
29598
29599
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf128" >&5
29601$as_echo_n "checking for tgammaf128... " >&6; }
29602if ${gcc_cv_math_func_tgammaf128+:} false; then :
29603 $as_echo_n "(cached) " >&6
29604else
29605 if test x$gcc_no_link = xyes; then
29606 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29607fi
29608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29609/* end confdefs.h. */
29610
29611#ifdef HAVE_COMPLEX_H
29612#include <complex.h>
29613#endif
29614#ifdef HAVE_MATH_H
29615#include <math.h>
29616#endif
29617
29618int (*ptr)() = (int (*)())tgammaf128;
29619
29620int
29621main ()
29622{
29623 return 0;
29624}
29625
29626_ACEOF
29627if ac_fn_c_try_link "$LINENO"; then :
29628 gcc_cv_math_func_tgammaf128=yes
29629else
29630 gcc_cv_math_func_tgammaf128=no
29631fi
29632rm -f core conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
29634fi
29635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf128" >&5
29636$as_echo "$gcc_cv_math_func_tgammaf128" >&6; }
29637 if test $gcc_cv_math_func_tgammaf128 = yes; then
29638
29639cat >>confdefs.h <<_ACEOF
29640#define HAVE_TGAMMAF128 1
29641_ACEOF
29642
29643 fi
29644
29645
29646
29647
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf128" >&5
29649$as_echo_n "checking for lgammaf128... " >&6; }
29650if ${gcc_cv_math_func_lgammaf128+:} false; then :
29651 $as_echo_n "(cached) " >&6
29652else
29653 if test x$gcc_no_link = xyes; then
29654 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29655fi
29656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29657/* end confdefs.h. */
29658
29659#ifdef HAVE_COMPLEX_H
29660#include <complex.h>
29661#endif
29662#ifdef HAVE_MATH_H
29663#include <math.h>
29664#endif
29665
29666int (*ptr)() = (int (*)())lgammaf128;
29667
29668int
29669main ()
29670{
29671 return 0;
29672}
29673
29674_ACEOF
29675if ac_fn_c_try_link "$LINENO"; then :
29676 gcc_cv_math_func_lgammaf128=yes
29677else
29678 gcc_cv_math_func_lgammaf128=no
29679fi
29680rm -f core conftest.err conftest.$ac_objext \
29681 conftest$ac_exeext conftest.$ac_ext
29682fi
29683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf128" >&5
29684$as_echo "$gcc_cv_math_func_lgammaf128" >&6; }
29685 if test $gcc_cv_math_func_lgammaf128 = yes; then
29686
29687cat >>confdefs.h <<_ACEOF
29688#define HAVE_LGAMMAF128 1
29689_ACEOF
29690
29691 fi
29692
29693
29694
29695
29696
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf128" >&5
29698$as_echo_n "checking for cacosf128... " >&6; }
29699if ${gcc_cv_math_func_cacosf128+:} false; then :
29700 $as_echo_n "(cached) " >&6
29701else
29702 if test x$gcc_no_link = xyes; then
29703 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29704fi
29705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29706/* end confdefs.h. */
29707
29708#ifdef HAVE_COMPLEX_H
29709#include <complex.h>
29710#endif
29711#ifdef HAVE_MATH_H
29712#include <math.h>
29713#endif
29714
29715int (*ptr)() = (int (*)())cacosf128;
29716
29717int
29718main ()
29719{
29720 return 0;
29721}
29722
29723_ACEOF
29724if ac_fn_c_try_link "$LINENO"; then :
29725 gcc_cv_math_func_cacosf128=yes
29726else
29727 gcc_cv_math_func_cacosf128=no
29728fi
29729rm -f core conftest.err conftest.$ac_objext \
29730 conftest$ac_exeext conftest.$ac_ext
29731fi
29732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf128" >&5
29733$as_echo "$gcc_cv_math_func_cacosf128" >&6; }
29734 if test $gcc_cv_math_func_cacosf128 = yes; then
29735
29736cat >>confdefs.h <<_ACEOF
29737#define HAVE_CACOSF128 1
29738_ACEOF
29739
29740 fi
29741
29742
29743
29744
29745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf128" >&5
29746$as_echo_n "checking for cacoshf128... " >&6; }
29747if ${gcc_cv_math_func_cacoshf128+:} false; then :
29748 $as_echo_n "(cached) " >&6
29749else
29750 if test x$gcc_no_link = xyes; then
29751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29752fi
29753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29754/* end confdefs.h. */
29755
29756#ifdef HAVE_COMPLEX_H
29757#include <complex.h>
29758#endif
29759#ifdef HAVE_MATH_H
29760#include <math.h>
29761#endif
29762
29763int (*ptr)() = (int (*)())cacoshf128;
29764
29765int
29766main ()
29767{
29768 return 0;
29769}
29770
29771_ACEOF
29772if ac_fn_c_try_link "$LINENO"; then :
29773 gcc_cv_math_func_cacoshf128=yes
29774else
29775 gcc_cv_math_func_cacoshf128=no
29776fi
29777rm -f core conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
29779fi
29780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf128" >&5
29781$as_echo "$gcc_cv_math_func_cacoshf128" >&6; }
29782 if test $gcc_cv_math_func_cacoshf128 = yes; then
29783
29784cat >>confdefs.h <<_ACEOF
29785#define HAVE_CACOSHF128 1
29786_ACEOF
29787
29788 fi
29789
29790
29791
29792
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf128" >&5
29794$as_echo_n "checking for casinf128... " >&6; }
29795if ${gcc_cv_math_func_casinf128+:} false; then :
29796 $as_echo_n "(cached) " >&6
29797else
29798 if test x$gcc_no_link = xyes; then
29799 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29800fi
29801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29802/* end confdefs.h. */
29803
29804#ifdef HAVE_COMPLEX_H
29805#include <complex.h>
29806#endif
29807#ifdef HAVE_MATH_H
29808#include <math.h>
29809#endif
29810
29811int (*ptr)() = (int (*)())casinf128;
29812
29813int
29814main ()
29815{
29816 return 0;
29817}
29818
29819_ACEOF
29820if ac_fn_c_try_link "$LINENO"; then :
29821 gcc_cv_math_func_casinf128=yes
29822else
29823 gcc_cv_math_func_casinf128=no
29824fi
29825rm -f core conftest.err conftest.$ac_objext \
29826 conftest$ac_exeext conftest.$ac_ext
29827fi
29828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf128" >&5
29829$as_echo "$gcc_cv_math_func_casinf128" >&6; }
29830 if test $gcc_cv_math_func_casinf128 = yes; then
29831
29832cat >>confdefs.h <<_ACEOF
29833#define HAVE_CASINF128 1
29834_ACEOF
29835
29836 fi
29837
29838
29839
29840
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf128" >&5
29842$as_echo_n "checking for casinhf128... " >&6; }
29843if ${gcc_cv_math_func_casinhf128+:} false; then :
29844 $as_echo_n "(cached) " >&6
29845else
29846 if test x$gcc_no_link = xyes; then
29847 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29848fi
29849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29850/* end confdefs.h. */
29851
29852#ifdef HAVE_COMPLEX_H
29853#include <complex.h>
29854#endif
29855#ifdef HAVE_MATH_H
29856#include <math.h>
29857#endif
29858
29859int (*ptr)() = (int (*)())casinhf128;
29860
29861int
29862main ()
29863{
29864 return 0;
29865}
29866
29867_ACEOF
29868if ac_fn_c_try_link "$LINENO"; then :
29869 gcc_cv_math_func_casinhf128=yes
29870else
29871 gcc_cv_math_func_casinhf128=no
29872fi
29873rm -f core conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
29875fi
29876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf128" >&5
29877$as_echo "$gcc_cv_math_func_casinhf128" >&6; }
29878 if test $gcc_cv_math_func_casinhf128 = yes; then
29879
29880cat >>confdefs.h <<_ACEOF
29881#define HAVE_CASINHF128 1
29882_ACEOF
29883
29884 fi
29885
29886
29887
29888
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf128" >&5
29890$as_echo_n "checking for catanf128... " >&6; }
29891if ${gcc_cv_math_func_catanf128+:} false; then :
29892 $as_echo_n "(cached) " >&6
29893else
29894 if test x$gcc_no_link = xyes; then
29895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29896fi
29897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898/* end confdefs.h. */
29899
29900#ifdef HAVE_COMPLEX_H
29901#include <complex.h>
29902#endif
29903#ifdef HAVE_MATH_H
29904#include <math.h>
29905#endif
29906
29907int (*ptr)() = (int (*)())catanf128;
29908
29909int
29910main ()
29911{
29912 return 0;
29913}
29914
29915_ACEOF
29916if ac_fn_c_try_link "$LINENO"; then :
29917 gcc_cv_math_func_catanf128=yes
29918else
29919 gcc_cv_math_func_catanf128=no
29920fi
29921rm -f core conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
29923fi
29924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf128" >&5
29925$as_echo "$gcc_cv_math_func_catanf128" >&6; }
29926 if test $gcc_cv_math_func_catanf128 = yes; then
29927
29928cat >>confdefs.h <<_ACEOF
29929#define HAVE_CATANF128 1
29930_ACEOF
29931
29932 fi
29933
29934
29935
29936
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf128" >&5
29938$as_echo_n "checking for catanhf128... " >&6; }
29939if ${gcc_cv_math_func_catanhf128+:} false; then :
29940 $as_echo_n "(cached) " >&6
29941else
29942 if test x$gcc_no_link = xyes; then
29943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29944fi
29945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29946/* end confdefs.h. */
29947
29948#ifdef HAVE_COMPLEX_H
29949#include <complex.h>
29950#endif
29951#ifdef HAVE_MATH_H
29952#include <math.h>
29953#endif
29954
29955int (*ptr)() = (int (*)())catanhf128;
29956
29957int
29958main ()
29959{
29960 return 0;
29961}
29962
29963_ACEOF
29964if ac_fn_c_try_link "$LINENO"; then :
29965 gcc_cv_math_func_catanhf128=yes
29966else
29967 gcc_cv_math_func_catanhf128=no
29968fi
29969rm -f core conftest.err conftest.$ac_objext \
29970 conftest$ac_exeext conftest.$ac_ext
29971fi
29972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf128" >&5
29973$as_echo "$gcc_cv_math_func_catanhf128" >&6; }
29974 if test $gcc_cv_math_func_catanhf128 = yes; then
29975
29976cat >>confdefs.h <<_ACEOF
29977#define HAVE_CATANHF128 1
29978_ACEOF
29979
29980 fi
29981
29982
29983# Check whether the system has a working stat()
29984
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
29986$as_echo_n "checking whether the target stat is reliable... " >&6; }
29987if ${libgfor_cv_have_working_stat+:} false; then :
29988 $as_echo_n "(cached) " >&6
29989else
29990
29991 if test "$cross_compiling" = yes; then :
29992
29993case "${target}" in
29994 *mingw*) libgfor_cv_have_working_stat=no ;;
29995 *) libgfor_cv_have_working_stat=yes;;
29996esac
29997else
29998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999/* end confdefs.h. */
30000
30001#include <stdio.h>
30002#include <sys/types.h>
30003#include <sys/stat.h>
30004#include <unistd.h>
30005
30006int main ()
30007{
30008 FILE *f, *g;
30009 struct stat st1, st2;
30010
30011 f = fopen ("foo", "w");
30012 g = fopen ("bar", "w");
30013 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
30014 return 1;
30015 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
30016 return 1;
30017 fclose(f);
30018 fclose(g);
30019 return 0;
30020}
30021_ACEOF
30022if ac_fn_c_try_run "$LINENO"; then :
30023 libgfor_cv_have_working_stat=yes
30024else
30025 libgfor_cv_have_working_stat=no
30026fi
30027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30028 conftest.$ac_objext conftest.beam conftest.$ac_ext
30029fi
30030
30031fi
30032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
30033$as_echo "$libgfor_cv_have_working_stat" >&6; }
30034if test x"$libgfor_cv_have_working_stat" = xyes; then
30035
30036$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
30037
30038fi
30039
30040# Check whether __mingw_snprintf() is present
30041
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
30043$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
30044if ${libgfor_cv_have_mingw_snprintf+:} false; then :
30045 $as_echo_n "(cached) " >&6
30046else
30047
30048 if test x$gcc_no_link = xyes; then
30049 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30050fi
30051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30052/* end confdefs.h. */
30053
30054#include <stdio.h>
30055extern int __mingw_snprintf (char *, size_t, const char *, ...);
30056
30057int
30058main ()
30059{
30060
30061__mingw_snprintf (NULL, 0, "%d\n", 1);
30062
30063 ;
30064 return 0;
30065}
30066_ACEOF
30067if ac_fn_c_try_link "$LINENO"; then :
30068 eval "libgfor_cv_have_mingw_snprintf=yes"
30069else
30070 eval "libgfor_cv_have_mingw_snprintf=no"
30071fi
30072rm -f core conftest.err conftest.$ac_objext \
30073 conftest$ac_exeext conftest.$ac_ext
30074
30075fi
30076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
30077$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
30078 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
30079
30080$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
30081
30082 fi
30083
30084
30085have_iec_60559_libc_support=no
30086if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \
30087 && test "x$gcc_cv_math_func_sinf128$gcc_cv_math_func_cacosf128" = xyesyes; then
30088 have_iec_60559_libc_support=yes
30089fi
30090
30091# Check whether libquadmath should be used
30092# Check whether --enable-libquadmath-support was given.
30093if test "${enable_libquadmath_support+set}" = set; then :
30094 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30095else
30096 if test "x$have_iec_60559_libc_support" = xyes; then
30097 ENABLE_LIBQUADMATH_SUPPORT=default
30098else
30099 ENABLE_LIBQUADMATH_SUPPORT=yes
30100fi
30101fi
30102
30103enable_libquadmath_support=
30104if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
30105 enable_libquadmath_support=no
30106elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then
30107 enable_libquadmath_support=default
30108fi
30109
30110# Check whether we have a _Float128 type, depends on enable_libquadmath_support
30111# and have_iec_60559_libc_support.
30112
30113 LIBQUADSPEC=
30114 LIBQUADLIB=
30115 LIBQUADLIB_DEP=
30116 LIBQUADINCLUDE=
30117 USE_IEC_60559=no
30118
30119 if test "x$enable_libquadmath_support" != xno; then
30120
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5
30122$as_echo_n "checking whether we have a usable _Float128 type... " >&6; }
30123if ${libgfor_cv_have_float128+:} false; then :
30124 $as_echo_n "(cached) " >&6
30125else
30126
30127 if test x$gcc_no_link = xyes; then
30128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30129/* end confdefs.h. */
30130
30131 _Float128 foo (_Float128 x)
30132 {
30133
30134 _Complex _Float128 z1, z2;
30135
30136 z1 = x;
30137 z2 = x / 7.F128;
30138 z2 /= z1;
30139
30140 return (_Float128) z2;
30141 }
30142
30143 _Float128 bar (_Float128 x)
30144 {
30145 return x * __builtin_huge_valf128 ();
30146 }
30147
30148int
30149main ()
30150{
30151
30152 foo (1.2F128);
30153 bar (1.2F128);
30154 foo (1.2Q);
30155 bar (1.2Q);
30156
30157 ;
30158 return 0;
30159}
30160_ACEOF
30161if ac_fn_c_try_compile "$LINENO"; then :
30162
30163 libgfor_cv_have_float128=yes
30164
30165else
30166
30167 libgfor_cv_have_float128=no
30168
30169fi
30170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30171else
30172 if test x$gcc_no_link = xyes; then
30173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30174fi
30175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30176/* end confdefs.h. */
30177
30178 _Float128 foo (_Float128 x)
30179 {
30180
30181 _Complex _Float128 z1, z2;
30182
30183 z1 = x;
30184 z2 = x / 7.F128;
30185 z2 /= z1;
30186
30187 return (_Float128) z2;
30188 }
30189
30190 _Float128 bar (_Float128 x)
30191 {
30192 return x * __builtin_huge_valf128 ();
30193 }
30194
30195int
30196main ()
30197{
30198
30199 foo (1.2F128);
30200 bar (1.2F128);
30201 foo (1.2Q);
30202 bar (1.2Q);
30203
30204 ;
30205 return 0;
30206}
30207_ACEOF
30208if ac_fn_c_try_link "$LINENO"; then :
30209
30210 libgfor_cv_have_float128=yes
30211
30212else
30213
30214 libgfor_cv_have_float128=no
30215
30216fi
30217rm -f core conftest.err conftest.$ac_objext \
30218 conftest$ac_exeext conftest.$ac_ext
30219fi
30220fi
30221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
30222$as_echo "$libgfor_cv_have_float128" >&6; }
30223
30224 if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgfor_cv_have_float128" = xyesdefaultyes; then
30225 USE_IEC_60559=yes
30226 fi
30227
30228
30229 if test "x$libgfor_cv_have_float128" = xyes; then
30230 if test "x$USE_IEC_60559" = xyes; then
30231
30232$as_echo "#define USE_IEC_60559 1" >>confdefs.h
30233
30234 fi
30235
30236$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
30237
30238
30239 ac_xsave_c_werror_flag=$ac_c_werror_flag
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
30241$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
30242if ${libgfor_cv_have_as_needed+:} false; then :
30243 $as_echo_n "(cached) " >&6
30244else
30245
30246 # Test for native Solaris options first.
30247 # No whitespace after -z to pass it through -Wl.
30248 libgfor_cv_as_needed_option="-zignore"
30249 libgfor_cv_no_as_needed_option="-zrecord"
30250 save_LDFLAGS="$LDFLAGS"
30251 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
30252 libgfor_cv_have_as_needed=no
30253
30254ac_c_werror_flag=yes
30255 if test x$gcc_no_link = xyes; then
30256 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30257fi
30258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30259/* end confdefs.h. */
30260
30261int
30262main ()
30263{
30264
30265 ;
30266 return 0;
30267}
30268_ACEOF
30269if ac_fn_c_try_link "$LINENO"; then :
30270 libgfor_cv_have_as_needed=yes
30271else
30272 libgfor_cv_have_as_needed=no
30273fi
30274rm -f core conftest.err conftest.$ac_objext \
30275 conftest$ac_exeext conftest.$ac_ext
30276 LDFLAGS="$save_LDFLAGS"
30277 if test "x$libgfor_cv_have_as_needed" = xno; then
30278 libgfor_cv_as_needed_option="--as-needed"
30279 libgfor_cv_no_as_needed_option="--no-as-needed"
30280 save_LDFLAGS="$LDFLAGS"
30281 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
30282 libgfor_cv_have_as_needed=no
30283
30284ac_c_werror_flag=yes
30285 if test x$gcc_no_link = xyes; then
30286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30287fi
30288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30289/* end confdefs.h. */
30290
30291int
30292main ()
30293{
30294
828012a5
RO
30295 ;
30296 return 0;
30297}
30298_ACEOF
30299if ac_fn_c_try_link "$LINENO"; then :
30300 libgfor_cv_have_as_needed=yes
30301else
30302 libgfor_cv_have_as_needed=no
30303fi
30304rm -f core conftest.err conftest.$ac_objext \
30305 conftest$ac_exeext conftest.$ac_ext
30306 LDFLAGS="$save_LDFLAGS"
30307 fi
1ec601bf
FXC
30308 ac_c_werror_flag=$ac_xsave_c_werror_flag
30309
30310fi
30311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
30312$as_echo "$libgfor_cv_have_as_needed" >&6; }
30313
133d0d42
JJ
30314 if test "x$libgfor_cv_have_as_needed" = xyes; then
30315 if test "x$USE_IEC_60559" = xyes; then
30316 LIBQUADSPEC="$libgfor_cv_as_needed_option -lquadmath $libgfor_cv_no_as_needed_option"
30317 else
30318 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
30319 fi
1ec601bf
FXC
30320 else
30321 LIBQUADSPEC="-lquadmath"
30322 fi
133d0d42
JJ
30323 if test "x$USE_IEC_60559" != xyes; then
30324 if test -f ../libquadmath/libquadmath.la; then
30325 LIBQUADLIB=../libquadmath/libquadmath.la
30326 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
30327 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
30328 else
30329 LIBQUADLIB="-lquadmath"
30330 fi
1ec601bf 30331 fi
87e6d9dc 30332 else
133d0d42
JJ
30333 USE_IEC_60559=no
30334 fi
87e6d9dc 30335 fi
1ec601bf
FXC
30336
30337
30338
30339
30340
30341
1ec601bf
FXC
30342
30343
944b8b35 30344# Check for GNU libc feenableexcept
5213506e
RW
30345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
30346$as_echo_n "checking for feenableexcept in -lm... " >&6; }
22e05272 30347if ${ac_cv_lib_m_feenableexcept+:} false; then :
5213506e 30348 $as_echo_n "(cached) " >&6
944b8b35
FXC
30349else
30350 ac_check_lib_save_LIBS=$LIBS
30351LIBS="-lm $LIBS"
30352if test x$gcc_no_link = xyes; then
22e05272 30353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 30354fi
5213506e 30355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
30356/* end confdefs.h. */
30357
5213506e
RW
30358/* Override any GCC internal prototype to avoid an error.
30359 Use char because int might match the return type of a GCC
30360 builtin and then its argument prototype would still apply. */
944b8b35
FXC
30361#ifdef __cplusplus
30362extern "C"
30363#endif
944b8b35
FXC
30364char feenableexcept ();
30365int
30366main ()
30367{
5213506e 30368return feenableexcept ();
944b8b35
FXC
30369 ;
30370 return 0;
30371}
30372_ACEOF
5213506e 30373if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
30374 ac_cv_lib_m_feenableexcept=yes
30375else
5213506e 30376 ac_cv_lib_m_feenableexcept=no
944b8b35 30377fi
5213506e
RW
30378rm -f core conftest.err conftest.$ac_objext \
30379 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
30380LIBS=$ac_check_lib_save_LIBS
30381fi
5213506e
RW
30382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
30383$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
22e05272 30384if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
944b8b35 30385 have_feenableexcept=yes
5213506e 30386$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
30387
30388fi
30389
3b14f664 30390
5c30094f 30391# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
30392# pull that in if it still doesn't give us the function we want. This
30393# test is copied from libgomp, and modified to not link in -lrt as
30394# libgfortran calls clock_gettime via a weak reference if it's found
30395# in librt.
deb9dd74 30396if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
30398$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 30399if ${ac_cv_lib_rt_clock_gettime+:} false; then :
b6e7a3d1
JB
30400 $as_echo_n "(cached) " >&6
30401else
30402 ac_check_lib_save_LIBS=$LIBS
30403LIBS="-lrt $LIBS"
30404if test x$gcc_no_link = xyes; then
22e05272 30405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b6e7a3d1
JB
30406fi
30407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30408/* end confdefs.h. */
30409
30410/* Override any GCC internal prototype to avoid an error.
30411 Use char because int might match the return type of a GCC
30412 builtin and then its argument prototype would still apply. */
30413#ifdef __cplusplus
30414extern "C"
30415#endif
30416char clock_gettime ();
30417int
30418main ()
30419{
30420return clock_gettime ();
30421 ;
30422 return 0;
30423}
30424_ACEOF
30425if ac_fn_c_try_link "$LINENO"; then :
30426 ac_cv_lib_rt_clock_gettime=yes
30427else
30428 ac_cv_lib_rt_clock_gettime=no
30429fi
30430rm -f core conftest.err conftest.$ac_objext \
30431 conftest$ac_exeext conftest.$ac_ext
30432LIBS=$ac_check_lib_save_LIBS
30433fi
30434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
30435$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 30436if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
b6e7a3d1 30437
2aadeae2 30438$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
30439
30440fi
30441
30442fi
30443
5213506e 30444# Check for SysV fpsetmask
3b14f664 30445
5213506e
RW
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
30447$as_echo_n "checking whether fpsetmask is present... " >&6; }
22e05272 30448if ${libgfor_cv_have_fpsetmask+:} false; then :
5213506e
RW
30449 $as_echo_n "(cached) " >&6
30450else
3b14f664 30451
5213506e 30452 if test x$gcc_no_link = xyes; then
22e05272 30453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
30454fi
30455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30456/* end confdefs.h. */
3b14f664 30457
5213506e
RW
30458#if HAVE_FLOATINGPOINT_H
30459# include <floatingpoint.h>
30460#endif /* HAVE_FLOATINGPOINT_H */
30461#if HAVE_IEEEFP_H
30462# include <ieeefp.h>
30463#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
30464int
30465main ()
30466{
5213506e 30467fpsetmask(0);
3b14f664
FXC
30468 ;
30469 return 0;
30470}
30471_ACEOF
5213506e
RW
30472if ac_fn_c_try_link "$LINENO"; then :
30473 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 30474else
5213506e
RW
30475 eval "libgfor_cv_have_fpsetmask=no"
30476fi
30477rm -f core conftest.err conftest.$ac_objext \
30478 conftest$ac_exeext conftest.$ac_ext
3b14f664 30479
3b14f664 30480fi
5213506e
RW
30481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
30482$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
30483 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 30484 have_fpsetmask=yes
5213506e
RW
30485
30486$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
30487
30488 fi
30489
6faf4751 30490ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 30491#ifdef HAVE_IEEEFP_H
6faf4751 30492#include <ieeefp.h>
67c4c164 30493#endif
6faf4751
FXC
30494#include <math.h>
30495
7ae346c3 30496"
22e05272 30497if test "x$ac_cv_type_fp_except" = xyes; then :
7ae346c3
TB
30498
30499cat >>confdefs.h <<_ACEOF
30500#define HAVE_FP_EXCEPT 1
30501_ACEOF
30502
30503
30504fi
6faf4751 30505ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 30506#ifdef HAVE_IEEEFP_H
6faf4751 30507#include <ieeefp.h>
67c4c164 30508#endif
6faf4751
FXC
30509#include <math.h>
30510
7ae346c3 30511"
22e05272 30512if test "x$ac_cv_type_fp_except_t" = xyes; then :
7ae346c3
TB
30513
30514cat >>confdefs.h <<_ACEOF
30515#define HAVE_FP_EXCEPT_T 1
30516_ACEOF
30517
30518
82a4f54c
TB
30519fi
30520
6faf4751 30521ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 30522#ifdef HAVE_IEEEFP_H
6faf4751 30523#include <ieeefp.h>
67c4c164 30524#endif
6faf4751
FXC
30525#include <math.h>
30526
82a4f54c 30527"
22e05272 30528if test "x$ac_cv_type_fp_rnd" = xyes; then :
82a4f54c
TB
30529
30530cat >>confdefs.h <<_ACEOF
30531#define HAVE_FP_RND 1
30532_ACEOF
30533
30534
30535fi
6faf4751 30536ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 30537#ifdef HAVE_IEEEFP_H
6faf4751 30538#include <ieeefp.h>
67c4c164 30539#endif
6faf4751
FXC
30540#include <math.h>
30541
82a4f54c 30542"
22e05272 30543if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
82a4f54c
TB
30544
30545cat >>confdefs.h <<_ACEOF
30546#define HAVE_FP_RND_T 1
30547_ACEOF
30548
30549
7ae346c3
TB
30550fi
30551
5213506e 30552
de51fc1b
RO
30553# Check whether we have fpsetsticky or fpresetsticky
30554ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
22e05272 30555if test "x$ac_cv_func_fpsetsticky" = xyes; then :
de51fc1b
RO
30556 have_fpsetsticky=yes
30557$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
30558
30559fi
30560
30561ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
22e05272 30562if test "x$ac_cv_func_fpresetsticky" = xyes; then :
de51fc1b
RO
30563 have_fpresetsticky=yes
30564$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
30565
30566fi
30567
30568
5213506e
RW
30569# Check for AIX fp_trap and fp_enable
30570ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
22e05272 30571if test "x$ac_cv_func_fp_trap" = xyes; then :
5213506e
RW
30572 have_fp_trap=yes
30573$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
30574
3b14f664 30575fi
5213506e
RW
30576
30577ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
22e05272 30578if test "x$ac_cv_func_fp_enable" = xyes; then :
3b14f664 30579 have_fp_enable=yes
5213506e 30580$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
30581
30582fi
30583
30584
7b32a8f6
UB
30585# Check if _SOFT_FLOAT is defined
30586
30587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
30588$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
22e05272 30589if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
7b32a8f6
UB
30590 $as_echo_n "(cached) " >&6
30591else
30592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593/* end confdefs.h. */
30594
30595int
30596main ()
30597{
30598
30599 #ifdef _SOFT_FLOAT
30600 int ok;
30601 #else
30602 choke me
30603 #endif
30604
30605 ;
30606 return 0;
30607}
30608_ACEOF
30609if ac_fn_c_try_compile "$LINENO"; then :
30610 ac_cv_defined__SOFT_FLOAT=yes
30611else
30612 ac_cv_defined__SOFT_FLOAT=no
30613fi
30614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615fi
30616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
30617$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
30618if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
30619 have_soft_float=yes
30620fi
30621
944b8b35
FXC
30622# Runs configure.host to set up necessary host-dependent shell variables.
30623# We then display a message about it, and propagate them through the
30624# build chain.
30625. ${srcdir}/configure.host
5213506e
RW
30626{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
30627$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
30628{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
30629$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
30630FPU_HOST_HEADER=config/${fpu_host}.h
30631
30632
8b198102
FXC
30633# Whether we will build the IEEE modules
30634 if test x${ieee_support} = xyes; then
30635 IEEE_SUPPORT_TRUE=
30636 IEEE_SUPPORT_FALSE='#'
30637else
30638 IEEE_SUPPORT_TRUE='#'
30639 IEEE_SUPPORT_FALSE=
30640fi
30641
30642
30643
9fc77574
KK
30644# Some targets require additional compiler options for IEEE compatibility.
30645IEEE_FLAGS="${ieee_flags}"
30646
30647
47ddb895
DE
30648# Conditionalize the makefile for this target machine.
30649tmake_file_=
30650for f in ${tmake_file}
30651do
30652 if test -f ${srcdir}/config/$f
30653 then
30654 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
30655 fi
30656done
30657tmake_file="${tmake_file_}"
30658
30659
23e6d4a5
JB
30660
30661# Check for POSIX getpwuid_r
30662#
30663# There are two versions of getpwuid_r, the POSIX one with 5
30664# arguments, and another one with 4 arguments used by at least HP-UX
30665# 10.2.
30666if test "$ac_cv_func_getpwuid_r" = "yes"; then
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
30668$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
22e05272 30669if ${libgfor_cv_posix_getpwuid_r+:} false; then :
23e6d4a5
JB
30670 $as_echo_n "(cached) " >&6
30671else
30672
30673 if test x$gcc_no_link = xyes; then
22e05272 30674 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23e6d4a5
JB
30675fi
30676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30677/* end confdefs.h. */
30678
30679#include <stdio.h>
30680#include <sys/types.h>
30681#include <pwd.h>
30682int
30683main ()
30684{
30685
30686 getpwuid_r(0, NULL, NULL, 0, NULL);
30687
30688 ;
30689 return 0;
30690}
30691_ACEOF
30692if ac_fn_c_try_link "$LINENO"; then :
30693 libgfor_cv_posix_getpwuid_r="yes"
30694else
30695 libgfor_cv_posix_getpwuid_r="no"
30696fi
30697rm -f core conftest.err conftest.$ac_objext \
30698 conftest$ac_exeext conftest.$ac_ext
30699fi
30700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
30701$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
30702fi
30703if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
30704
30705$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
30706
30707fi
30708
30709
7d7b8bfe
RH
30710# Check out attribute support.
30711
5213506e
RW
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
30713$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 30714if ${libgfor_cv_have_attribute_visibility+:} false; then :
5213506e 30715 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
30716else
30717
30718 save_CFLAGS="$CFLAGS"
30719 CFLAGS="$CFLAGS -Werror"
5213506e 30720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
30721/* end confdefs.h. */
30722void __attribute__((visibility("hidden"))) foo(void) { }
30723int
30724main ()
30725{
30726
30727 ;
30728 return 0;
30729}
30730_ACEOF
5213506e 30731if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 30732 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 30733else
5213506e 30734 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 30735fi
5213506e 30736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
30737 CFLAGS="$save_CFLAGS"
30738fi
5213506e
RW
30739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
30740$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 30741 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 30742
5213506e 30743$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
30744
30745 fi
30746
5213506e
RW
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
30748$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 30749if ${libgfor_cv_have_attribute_alias+:} false; then :
5213506e 30750 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
30751else
30752
f02d008e 30753 if test x$gcc_no_link = xyes; then
22e05272 30754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 30755fi
5213506e 30756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
30757/* end confdefs.h. */
30758
7d7b8bfe 30759void foo(void) { }
16a314a9 30760extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
30761int
30762main ()
30763{
30764bar();
30765 ;
30766 return 0;
30767}
30768_ACEOF
5213506e 30769if ac_fn_c_try_link "$LINENO"; then :
6d26724a 30770 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 30771else
5213506e 30772 libgfor_cv_have_attribute_alias=no
7d7b8bfe 30773fi
5213506e
RW
30774rm -f core conftest.err conftest.$ac_objext \
30775 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 30776fi
5213506e
RW
30777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
30778$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 30779 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 30780
5213506e 30781$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
30782
30783 fi
30784
0536d5b3 30785# Check out atomic builtins support.
5e805e44 30786
0536d5b3
JB
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
30788$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
30789if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
5213506e 30790 $as_echo_n "(cached) " >&6
5e805e44
JJ
30791else
30792
30793 if test x$gcc_no_link = xyes; then
22e05272 30794 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 30795fi
5213506e 30796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
30797/* end confdefs.h. */
30798int foovar = 0;
30799int
30800main ()
30801{
30802
0536d5b3
JB
30803if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
30804if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
5e805e44
JJ
30805 ;
30806 return 0;
30807}
30808_ACEOF
5213506e 30809if ac_fn_c_try_link "$LINENO"; then :
0536d5b3 30810 libgfor_cv_have_atomic_fetch_add=yes
5e805e44 30811else
0536d5b3 30812 libgfor_cv_have_atomic_fetch_add=no
5e805e44 30813fi
5213506e
RW
30814rm -f core conftest.err conftest.$ac_objext \
30815 conftest$ac_exeext conftest.$ac_ext
5e805e44 30816fi
0536d5b3
JB
30817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
30818$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
30819 if test $libgfor_cv_have_atomic_fetch_add = yes; then
5e805e44 30820
0536d5b3 30821$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
5e805e44
JJ
30822
30823 fi
30824
6a822a74
FXC
30825# Check out #pragma weak.
30826
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
30828$as_echo_n "checking whether pragma weak works... " >&6; }
22e05272 30829if ${libgfor_cv_have_pragma_weak+:} false; then :
6a822a74
FXC
30830 $as_echo_n "(cached) " >&6
30831else
30832
30833 gfor_save_CFLAGS="$CFLAGS"
30834 CFLAGS="$CFLAGS -Wunknown-pragmas"
30835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30836/* end confdefs.h. */
30837
30838void foo (void);
30839#pragma weak foo
30840
30841int
30842main ()
30843{
30844if (foo) foo ();
30845 ;
30846 return 0;
30847}
30848_ACEOF
30849if ac_fn_c_try_compile "$LINENO"; then :
30850 libgfor_cv_have_pragma_weak=yes
30851else
30852 libgfor_cv_have_pragma_weak=no
30853fi
30854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30855fi
30856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
30857$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
30858 if test $libgfor_cv_have_pragma_weak = yes; then
30859
30860$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
30861
30862 fi
30863 case "$host" in
30864 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
30865
30866$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
30867
30868 ;;
30869 esac
30870
e7854993 30871# Check out weakref support.
5e805e44 30872
e7854993
FXC
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
30874$as_echo_n "checking whether the target supports weakref... " >&6; }
22e05272 30875if ${libgfor_cv_have_weakref+:} false; then :
5213506e 30876 $as_echo_n "(cached) " >&6
5e805e44
JJ
30877else
30878
e7854993
FXC
30879 save_CFLAGS="$CFLAGS"
30880 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
30881 if test x$gcc_no_link = xyes; then
22e05272 30882 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e7854993
FXC
30883fi
30884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 30885/* end confdefs.h. */
de15ea94 30886
e7854993 30887static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 30888
5e805e44
JJ
30889int
30890main ()
30891{
e7854993 30892return (mytoto != 0);
5e805e44
JJ
30893 ;
30894 return 0;
30895}
30896_ACEOF
e7854993
FXC
30897if ac_fn_c_try_link "$LINENO"; then :
30898 libgfor_cv_have_weakref=yes
5e805e44 30899else
e7854993 30900 libgfor_cv_have_weakref=no
5e805e44 30901fi
e7854993
FXC
30902rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
30904 CFLAGS="$save_CFLAGS"
5e805e44 30905fi
e7854993
FXC
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
30907$as_echo "$libgfor_cv_have_weakref" >&6; }
30908 if test $libgfor_cv_have_weakref = yes; then
5e805e44 30909
e7854993 30910$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
30911
30912 fi
30913
10c682a0
FXC
30914# Various other checks on target
30915
5213506e
RW
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
30917$as_echo_n "checking whether the target can unlink an open file... " >&6; }
22e05272 30918if ${libgfor_cv_have_unlink_open_file+:} false; then :
5213506e 30919 $as_echo_n "(cached) " >&6
10c682a0
FXC
30920else
30921
5213506e 30922 if test "$cross_compiling" = yes; then :
10c682a0
FXC
30923
30924case "${target}" in
6d26724a
RW
30925 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
30926 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
30927esac
30928else
5213506e 30929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
30930/* end confdefs.h. */
30931
30932#include <errno.h>
30933#include <fcntl.h>
30934#include <unistd.h>
30935#include <sys/stat.h>
30936
30937int main ()
30938{
30939 int fd;
30940
42dfafa9 30941 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
30942 if (fd <= 0)
30943 return 0;
30944 if (unlink ("testfile") == -1)
30945 return 1;
30946 write (fd, "This is a test\n", 15);
30947 close (fd);
30948
42dfafa9 30949 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
30950 return 0;
30951 else
30952 return 1;
30953}
30954_ACEOF
5213506e 30955if ac_fn_c_try_run "$LINENO"; then :
6d26724a 30956 libgfor_cv_have_unlink_open_file=yes
10c682a0 30957else
5213506e 30958 libgfor_cv_have_unlink_open_file=no
10c682a0 30959fi
5213506e
RW
30960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30961 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 30962fi
5213506e 30963
10c682a0 30964fi
5213506e
RW
30965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
30966$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 30967if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 30968
5213506e 30969$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
30970
30971fi
30972
3c127520
FXC
30973# Check whether line terminator is LF or CRLF
30974
5213506e
RW
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
30976$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
22e05272 30977if ${libgfor_cv_have_crlf+:} false; then :
5213506e 30978 $as_echo_n "(cached) " >&6
3c127520
FXC
30979else
30980
5213506e 30981 if test "$cross_compiling" = yes; then :
3c127520
FXC
30982
30983case "${target}" in
6d26724a
RW
30984 *mingw*) libgfor_cv_have_crlf=yes ;;
30985 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
30986esac
30987else
5213506e 30988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
30989/* end confdefs.h. */
30990
30991/* This test program should exit with status 0 if system uses a CRLF as
30992 line terminator, and status 1 otherwise.
30993 Since it is used to check for mingw systems, and should return 0 in any
30994 other case, in case of a failure we will not use CRLF. */
30995#include <sys/stat.h>
30996#include <stdlib.h>
30997#include <fcntl.h>
30998#include <stdio.h>
30999
31000int main ()
31001{
31002#ifndef O_BINARY
31003 exit(1);
31004#else
31005 int fd, bytes;
31006 char buff[5];
31007
31008 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
31009 if (fd < 0)
31010 exit(1);
31011 if (write (fd, "\n", 1) < 0)
31012 perror ("write");
31013
31014 close (fd);
31015
31016 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
31017 exit(1);
31018 bytes = read (fd, buff, 5);
31019 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
31020 exit(0);
31021 else
31022 exit(1);
31023#endif
31024}
31025_ACEOF
5213506e 31026if ac_fn_c_try_run "$LINENO"; then :
6d26724a 31027 libgfor_cv_have_crlf=yes
3c127520 31028else
5213506e 31029 libgfor_cv_have_crlf=no
3c127520 31030fi
5213506e
RW
31031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31032 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 31033fi
5213506e 31034
3c127520 31035fi
5213506e
RW
31036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
31037$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 31038if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 31039
5213506e 31040$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
31041
31042fi
31043
31cfd832
TK
31044# Check whether we support AVX extensions
31045
31046 ac_save_CFLAGS="$CFLAGS"
31047 CFLAGS="-O2 -mavx"
31048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31049/* end confdefs.h. */
31050
31051 void _mm256_zeroall (void)
31052 {
31053 __builtin_ia32_vzeroall ();
31054 }
31055int
31056main ()
31057{
31058
31059 ;
31060 return 0;
31061}
31062_ACEOF
31063if ac_fn_c_try_compile "$LINENO"; then :
31064
31065$as_echo "#define HAVE_AVX 1" >>confdefs.h
31066
31067fi
31068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31069 CFLAGS="$ac_save_CFLAGS"
31070
31071
49ad4d2c 31072# Check whether we support AVX2 extensions
31cfd832
TK
31073
31074 ac_save_CFLAGS="$CFLAGS"
31075 CFLAGS="-O2 -mavx2"
31076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31077/* end confdefs.h. */
31078
31079 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
31080 __v4di
31081 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
31082 {
31083 return __builtin_ia32_andnotsi256 (__X, __Y);
31084 }
31085int
31086main ()
31087{
31088
31089 ;
31090 return 0;
31091}
31092_ACEOF
31093if ac_fn_c_try_compile "$LINENO"; then :
31094
31095$as_echo "#define HAVE_AVX2 1" >>confdefs.h
31096
31097fi
31098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31099 CFLAGS="$ac_save_CFLAGS"
31100
31101
49ad4d2c 31102# Check whether we support AVX512f extensions
31cfd832
TK
31103
31104 ac_save_CFLAGS="$CFLAGS"
31105 CFLAGS="-O2 -mavx512f"
31106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31107/* end confdefs.h. */
31108
31109 typedef double __m512d __attribute__ ((__vector_size__ (64)));
31110 __m512d _mm512_add (__m512d a)
31111 {
9db0a8c2
JJ
31112 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
31113 /* For -m64/-mx32 also verify that code will work even if
31114 the target uses call saved zmm16+ and needs to emit
31115 unwind info for them (e.g. on mingw). See PR79127. */
31116#ifdef __x86_64__
31117 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
31118#endif
31119 return b;
31cfd832
TK
31120 }
31121int
31122main ()
31123{
31124
31125 ;
31126 return 0;
31127}
31128_ACEOF
31129if ac_fn_c_try_compile "$LINENO"; then :
31130
31131$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
31132
31133fi
31134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31135 CFLAGS="$ac_save_CFLAGS"
31136
31137
1d5cf7fc
TK
31138# Check for FMA3 extensions
31139
31140 ac_save_CFLAGS="$CFLAGS"
31141 CFLAGS="-O2 -mfma -mno-fma4"
31142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31143/* end confdefs.h. */
31144
9698e1bb
RO
31145 typedef float __m128 __attribute__ ((__vector_size__ (16)));
31146 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
31147 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 31148 {
9698e1bb
RO
31149 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
31150 (__v4sf)__B,
31151 (__v4sf)__C);
1d5cf7fc
TK
31152 }
31153int
31154main ()
31155{
31156
31157 ;
31158 return 0;
31159}
31160_ACEOF
31161if ac_fn_c_try_compile "$LINENO"; then :
31162
31163$as_echo "#define HAVE_FMA3 1" >>confdefs.h
31164
31165fi
31166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31167 CFLAGS="$ac_save_CFLAGS"
31168
31169
31170# Check for FMA4 extensions
31171
31172 ac_save_CFLAGS="$CFLAGS"
31173 CFLAGS="-O2 -mfma4 -mno-fma"
31174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31175/* end confdefs.h. */
31176
9698e1bb
RO
31177 typedef float __m128 __attribute__ ((__vector_size__ (16)));
31178 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
31179 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 31180 {
9698e1bb
RO
31181 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
31182 (__v4sf)__B,
31183 (__v4sf)__C);
1d5cf7fc
TK
31184 }
31185int
31186main ()
31187{
31188
31189 ;
31190 return 0;
31191}
31192_ACEOF
31193if ac_fn_c_try_compile "$LINENO"; then :
31194
31195$as_echo "#define HAVE_FMA4 1" >>confdefs.h
31196
31197fi
31198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31199 CFLAGS="$ac_save_CFLAGS"
31200
31201
31202# Check if AVX128 works
31203
31204 ac_save_CFLAGS="$CFLAGS"
31205 CFLAGS="-O2 -mavx -mprefer-avx128"
31206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31207/* end confdefs.h. */
31208
31209 void foo()
31210 {
31211 }
31212int
31213main ()
31214{
31215
31216 ;
31217 return 0;
31218}
31219_ACEOF
31220if ac_fn_c_try_compile "$LINENO"; then :
31221
31222$as_echo "#define HAVE_AVX128 1" >>confdefs.h
31223
31224 if true; then
31225 HAVE_AVX128_TRUE=
31226 HAVE_AVX128_FALSE='#'
31227else
31228 HAVE_AVX128_TRUE='#'
31229 HAVE_AVX128_FALSE=
31230fi
31231
5596d26a
TK
31232else
31233 if false; then
31234 HAVE_AVX128_TRUE=
31235 HAVE_AVX128_FALSE='#'
31236else
31237 HAVE_AVX128_TRUE='#'
31238 HAVE_AVX128_FALSE=
31239fi
31240
1d5cf7fc
TK
31241fi
31242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31243 CFLAGS="$ac_save_CFLAGS"
31244
31245
3c36aa6b
JJ
31246# Determine what GCC version number to use in filesystem paths.
31247
31248 get_gcc_base_ver="cat"
31249
31250# Check whether --with-gcc-major-version-only was given.
31251if test "${with_gcc_major_version_only+set}" = set; then :
31252 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 31253 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
31254 fi
31255
31256fi
31257
31258
31259
31260
6de9cd9a
DN
31261cat >confcache <<\_ACEOF
31262# This file is a shell script that caches the results of configure
31263# tests run on this system so they can be shared between configure
31264# scripts and configure runs, see configure's option --config-cache.
31265# It is not useful on other systems. If it contains results you don't
31266# want to keep, you may remove or edit it.
31267#
31268# config.status only pays attention to the cache file if you give it
31269# the --recheck option to rerun configure.
31270#
31271# `ac_cv_env_foo' variables (set or unset) will be overridden when
31272# loading this file, other *unset* `ac_cv_foo' will be assigned the
31273# following values.
31274
31275_ACEOF
31276
31277# The following way of writing the cache mishandles newlines in values,
31278# but we know of no workaround that is simple, portable, and efficient.
5213506e 31279# So, we kill variables containing newlines.
6de9cd9a
DN
31280# Ultrix sh set writes to stderr and can't be redirected directly,
31281# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
31282(
31283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31284 eval ac_val=\$$ac_var
31285 case $ac_val in #(
31286 *${as_nl}*)
31287 case $ac_var in #(
31288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31289$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31290 esac
31291 case $ac_var in #(
31292 _ | IFS | as_nl) ;; #(
31293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31294 *) { eval $ac_var=; unset $ac_var;} ;;
31295 esac ;;
31296 esac
31297 done
31298
6de9cd9a 31299 (set) 2>&1 |
5213506e
RW
31300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31301 *${as_nl}ac_space=\ *)
31302 # `set' does not quote correctly, so add quotes: double-quote
31303 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
31304 sed -n \
31305 "s/'/'\\\\''/g;
31306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 31307 ;; #(
6de9cd9a
DN
31308 *)
31309 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 31310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 31311 ;;
5213506e
RW
31312 esac |
31313 sort
31314) |
6de9cd9a 31315 sed '
5213506e 31316 /^ac_cv_env_/b end
6de9cd9a 31317 t clear
5213506e 31318 :clear
6de9cd9a
DN
31319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31320 t end
5213506e
RW
31321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31322 :end' >>confcache
31323if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31324 if test -w "$cache_file"; then
22e05272 31325 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31327$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
31328 if test ! -f "$cache_file" || test -h "$cache_file"; then
31329 cat confcache >"$cache_file"
31330 else
31331 case $cache_file in #(
31332 */* | ?:*)
31333 mv -f confcache "$cache_file"$$ &&
31334 mv -f "$cache_file"$$ "$cache_file" ;; #(
31335 *)
31336 mv -f confcache "$cache_file" ;;
31337 esac
31338 fi
31339 fi
6de9cd9a 31340 else
5213506e
RW
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31342$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
31343 fi
31344fi
31345rm -f confcache
31346
96b8a615
AJ
31347if test ${multilib} = yes; then
31348 multilib_arg="--enable-multilib"
6de9cd9a 31349else
96b8a615 31350 multilib_arg=
6de9cd9a 31351fi
6de9cd9a 31352
1ec601bf
FXC
31353# Write our Makefile and spec file.
31354ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 31355
6de9cd9a
DN
31356cat >confcache <<\_ACEOF
31357# This file is a shell script that caches the results of configure
31358# tests run on this system so they can be shared between configure
31359# scripts and configure runs, see configure's option --config-cache.
31360# It is not useful on other systems. If it contains results you don't
31361# want to keep, you may remove or edit it.
31362#
31363# config.status only pays attention to the cache file if you give it
31364# the --recheck option to rerun configure.
31365#
31366# `ac_cv_env_foo' variables (set or unset) will be overridden when
31367# loading this file, other *unset* `ac_cv_foo' will be assigned the
31368# following values.
31369
31370_ACEOF
31371
31372# The following way of writing the cache mishandles newlines in values,
31373# but we know of no workaround that is simple, portable, and efficient.
5213506e 31374# So, we kill variables containing newlines.
6de9cd9a
DN
31375# Ultrix sh set writes to stderr and can't be redirected directly,
31376# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
31377(
31378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31379 eval ac_val=\$$ac_var
31380 case $ac_val in #(
31381 *${as_nl}*)
31382 case $ac_var in #(
31383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31385 esac
31386 case $ac_var in #(
31387 _ | IFS | as_nl) ;; #(
31388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31389 *) { eval $ac_var=; unset $ac_var;} ;;
31390 esac ;;
31391 esac
31392 done
31393
6de9cd9a 31394 (set) 2>&1 |
5213506e
RW
31395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31396 *${as_nl}ac_space=\ *)
31397 # `set' does not quote correctly, so add quotes: double-quote
31398 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
31399 sed -n \
31400 "s/'/'\\\\''/g;
31401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 31402 ;; #(
6de9cd9a
DN
31403 *)
31404 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 31405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 31406 ;;
5213506e
RW
31407 esac |
31408 sort
31409) |
6de9cd9a 31410 sed '
5213506e 31411 /^ac_cv_env_/b end
6de9cd9a 31412 t clear
5213506e 31413 :clear
6de9cd9a
DN
31414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31415 t end
5213506e
RW
31416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31417 :end' >>confcache
31418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31419 if test -w "$cache_file"; then
22e05272 31420 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31422$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
31423 if test ! -f "$cache_file" || test -h "$cache_file"; then
31424 cat confcache >"$cache_file"
31425 else
31426 case $cache_file in #(
31427 */* | ?:*)
31428 mv -f confcache "$cache_file"$$ &&
31429 mv -f "$cache_file"$$ "$cache_file" ;; #(
31430 *)
31431 mv -f confcache "$cache_file" ;;
31432 esac
31433 fi
31434 fi
6de9cd9a 31435 else
5213506e
RW
31436 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
31438 fi
31439fi
31440rm -f confcache
31441
31442test "x$prefix" = xNONE && prefix=$ac_default_prefix
31443# Let make expand exec_prefix.
31444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31445
6de9cd9a
DN
31446DEFS=-DHAVE_CONFIG_H
31447
31448ac_libobjs=
31449ac_ltlibobjs=
22e05272 31450U=
6de9cd9a
DN
31451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31452 # 1. Remove the extension, and $U if already installed.
5213506e
RW
31453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31456 # will be set to the directory where LIBOBJS objects are built.
31457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
31459done
31460LIBOBJS=$ac_libobjs
31461
31462LTLIBOBJS=$ac_ltlibobjs
31463
31464
b808ac33 31465if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
22e05272 31466 as_fn_error $? "conditional \"onestep\" was never defined.
5213506e
RW
31467Usually this means the macro was only invoked conditionally." "$LINENO" 5
31468fi
22e05272
JM
31469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31470$as_echo_n "checking that generated files are newer than configure... " >&6; }
31471 if test -n "$am_sleep_pid"; then
31472 # Hide warnings about reused PIDs.
31473 wait $am_sleep_pid 2>/dev/null
31474 fi
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31476$as_echo "done" >&6; }
5213506e
RW
31477 if test -n "$EXEEXT"; then
31478 am__EXEEXT_TRUE=
31479 am__EXEEXT_FALSE='#'
31480else
31481 am__EXEEXT_TRUE='#'
31482 am__EXEEXT_FALSE=
b808ac33 31483fi
5213506e 31484
6de9cd9a 31485if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 31486 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 31487Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 31488fi
679c0f9a 31489if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 31490 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 31491Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
31492fi
31493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 31494 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 31495Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 31496fi
21be0a5a 31497if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 31498 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21be0a5a
JB
31499Usually this means the macro was only invoked conditionally." "$LINENO" 5
31500fi
49ad4d2c
TK
31501if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then
31502 as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined.
31503Usually this means the macro was only invoked conditionally." "$LINENO" 5
31504fi
c0e7e2bf 31505if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
22e05272 31506 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
5213506e 31507Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 31508fi
49ea7a0e 31509if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
22e05272 31510 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
49ea7a0e
RO
31511Usually this means the macro was only invoked conditionally." "$LINENO" 5
31512fi
31513if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
22e05272 31514 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
49ea7a0e
RO
31515Usually this means the macro was only invoked conditionally." "$LINENO" 5
31516fi
ee95f928 31517if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
22e05272 31518 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
ee95f928
BS
31519Usually this means the macro was only invoked conditionally." "$LINENO" 5
31520fi
66dbcf2d 31521if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
22e05272 31522 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
66dbcf2d
RO
31523Usually this means the macro was only invoked conditionally." "$LINENO" 5
31524fi
8b198102 31525if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
22e05272 31526 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
8b198102
FXC
31527Usually this means the macro was only invoked conditionally." "$LINENO" 5
31528fi
1d5cf7fc 31529if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 31530 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
1d5cf7fc
TK
31531Usually this means the macro was only invoked conditionally." "$LINENO" 5
31532fi
5596d26a 31533if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 31534 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
5596d26a
TK
31535Usually this means the macro was only invoked conditionally." "$LINENO" 5
31536fi
6de9cd9a 31537
22e05272 31538: "${CONFIG_STATUS=./config.status}"
5213506e 31539ac_write_fail=0
6de9cd9a
DN
31540ac_clean_files_save=$ac_clean_files
31541ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
31542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31544as_write_fail=0
31545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
31546#! $SHELL
31547# Generated by $as_me.
31548# Run this file to recreate the current configuration.
31549# Compiler output produced by configure, useful for debugging
31550# configure, is in config.log if it exists.
31551
31552debug=false
31553ac_cs_recheck=false
31554ac_cs_silent=false
6de9cd9a 31555
5213506e
RW
31556SHELL=\${CONFIG_SHELL-$SHELL}
31557export SHELL
31558_ASEOF
31559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31560## -------------------- ##
31561## M4sh Initialization. ##
31562## -------------------- ##
31563
31564# Be more Bourne compatible
31565DUALCASE=1; export DUALCASE # for MKS sh
31566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
31567 emulate sh
31568 NULLCMD=:
5213506e 31569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
31570 # is contrary to our usage. Disable this feature.
31571 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
31572 setopt NO_GLOB_SUBST
31573else
31574 case `(set -o) 2>/dev/null` in #(
31575 *posix*) :
31576 set -o posix ;; #(
31577 *) :
31578 ;;
31579esac
6de9cd9a 31580fi
6de9cd9a 31581
5213506e
RW
31582
31583as_nl='
31584'
31585export as_nl
31586# Printing a long string crashes Solaris 7 /usr/bin/printf.
31587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31590# Prefer a ksh shell builtin over an external printf program on Solaris,
31591# but without wasting forks for bash or zsh.
31592if test -z "$BASH_VERSION$ZSH_VERSION" \
31593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31594 as_echo='print -r --'
31595 as_echo_n='print -rn --'
31596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31597 as_echo='printf %s\n'
31598 as_echo_n='printf %s'
31599else
31600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31602 as_echo_n='/usr/ucb/echo -n'
31603 else
31604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31605 as_echo_n_body='eval
31606 arg=$1;
31607 case $arg in #(
31608 *"$as_nl"*)
31609 expr "X$arg" : "X\\(.*\\)$as_nl";
31610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31611 esac;
31612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31613 '
31614 export as_echo_n_body
31615 as_echo_n='sh -c $as_echo_n_body as_echo'
31616 fi
31617 export as_echo_body
31618 as_echo='sh -c $as_echo_body as_echo'
31619fi
31620
31621# The user is always right.
31622if test "${PATH_SEPARATOR+set}" != set; then
31623 PATH_SEPARATOR=:
31624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31626 PATH_SEPARATOR=';'
31627 }
6de9cd9a
DN
31628fi
31629
31630
5213506e
RW
31631# IFS
31632# We need space, tab and new line, in precisely that order. Quoting is
31633# there to prevent editors from complaining about space-tab.
31634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31635# splitting by setting IFS to empty value.)
31636IFS=" "" $as_nl"
31637
31638# Find who we are. Look in the path if we contain no directory separator.
22e05272 31639as_myself=
5213506e
RW
31640case $0 in #((
31641 *[\\/]* ) as_myself=$0 ;;
31642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31643for as_dir in $PATH
31644do
31645 IFS=$as_save_IFS
31646 test -z "$as_dir" && as_dir=.
31647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31648 done
31649IFS=$as_save_IFS
31650
31651 ;;
31652esac
31653# We did not find ourselves, most probably we were run as `sh COMMAND'
31654# in which case we are not to be found in the path.
31655if test "x$as_myself" = x; then
31656 as_myself=$0
31657fi
31658if test ! -f "$as_myself"; then
31659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31660 exit 1
31661fi
31662
31663# Unset variables that we do not need and which cause bugs (e.g. in
31664# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31665# suppresses any "Segmentation fault" message there. '((' could
31666# trigger a bug in pdksh 5.2.14.
31667for as_var in BASH_ENV ENV MAIL MAILPATH
31668do eval test x\${$as_var+set} = xset \
31669 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31670done
6de9cd9a
DN
31671PS1='$ '
31672PS2='> '
31673PS4='+ '
31674
31675# NLS nuisances.
5213506e
RW
31676LC_ALL=C
31677export LC_ALL
31678LANGUAGE=C
31679export LANGUAGE
31680
31681# CDPATH.
31682(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31683
31684
22e05272
JM
31685# as_fn_error STATUS ERROR [LINENO LOG_FD]
31686# ----------------------------------------
5213506e
RW
31687# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31688# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 31689# script with STATUS, using 1 if that was 0.
5213506e
RW
31690as_fn_error ()
31691{
22e05272
JM
31692 as_status=$1; test $as_status -eq 0 && as_status=1
31693 if test "$4"; then
31694 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6de9cd9a 31696 fi
22e05272 31697 $as_echo "$as_me: error: $2" >&2
5213506e
RW
31698 as_fn_exit $as_status
31699} # as_fn_error
31700
31701
31702# as_fn_set_status STATUS
31703# -----------------------
31704# Set $? to STATUS, without forking.
31705as_fn_set_status ()
31706{
31707 return $1
31708} # as_fn_set_status
31709
31710# as_fn_exit STATUS
31711# -----------------
31712# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31713as_fn_exit ()
31714{
31715 set +e
31716 as_fn_set_status $1
31717 exit $1
31718} # as_fn_exit
31719
31720# as_fn_unset VAR
31721# ---------------
31722# Portably unset VAR.
31723as_fn_unset ()
31724{
31725 { eval $1=; unset $1;}
31726}
31727as_unset=as_fn_unset
31728# as_fn_append VAR VALUE
31729# ----------------------
31730# Append the text in VALUE to the end of the definition contained in VAR. Take
31731# advantage of any shell optimizations that allow amortized linear growth over
31732# repeated appends, instead of the typical quadratic growth present in naive
31733# implementations.
31734if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31735 eval 'as_fn_append ()
31736 {
31737 eval $1+=\$2
31738 }'
31739else
31740 as_fn_append ()
31741 {
31742 eval $1=\$$1\$2
31743 }
31744fi # as_fn_append
31745
31746# as_fn_arith ARG...
31747# ------------------
31748# Perform arithmetic evaluation on the ARGs, and store the result in the
31749# global $as_val. Take advantage of shells that can avoid forks. The arguments
31750# must be portable across $(()) and expr.
31751if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31752 eval 'as_fn_arith ()
31753 {
31754 as_val=$(( $* ))
31755 }'
31756else
31757 as_fn_arith ()
31758 {
31759 as_val=`expr "$@" || test $? -eq 1`
31760 }
31761fi # as_fn_arith
6de9cd9a 31762
5213506e
RW
31763
31764if expr a : '\(a\)' >/dev/null 2>&1 &&
31765 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
31766 as_expr=expr
31767else
31768 as_expr=false
31769fi
31770
5213506e 31771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
31772 as_basename=basename
31773else
31774 as_basename=false
31775fi
31776
5213506e
RW
31777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31778 as_dirname=dirname
31779else
31780 as_dirname=false
31781fi
6de9cd9a 31782
5213506e 31783as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
31784$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31785 X"$0" : 'X\(//\)$' \| \
5213506e
RW
31786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31787$as_echo X/"$0" |
31788 sed '/^.*\/\([^/][^/]*\)\/*$/{
31789 s//\1/
31790 q
31791 }
31792 /^X\/\(\/\/\)$/{
31793 s//\1/
31794 q
31795 }
31796 /^X\/\(\/\).*/{
31797 s//\1/
31798 q
31799 }
31800 s/.*/./; q'`
38d24731 31801
38d24731
RW
31802# Avoid depending upon Character Ranges.
31803as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31804as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31805as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31806as_cr_digits='0123456789'
31807as_cr_alnum=$as_cr_Letters$as_cr_digits
31808
5213506e
RW
31809ECHO_C= ECHO_N= ECHO_T=
31810case `echo -n x` in #(((((
31811-n*)
31812 case `echo 'xy\c'` in
31813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31814 xy) ECHO_C='\c';;
31815 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31816 ECHO_T=' ';;
31817 esac;;
31818*)
31819 ECHO_N='-n';;
6de9cd9a
DN
31820esac
31821
5213506e
RW
31822rm -f conf$$ conf$$.exe conf$$.file
31823if test -d conf$$.dir; then
31824 rm -f conf$$.dir/conf$$.file
6de9cd9a 31825else
5213506e
RW
31826 rm -f conf$$.dir
31827 mkdir conf$$.dir 2>/dev/null
6de9cd9a 31828fi
5213506e
RW
31829if (echo >conf$$.file) 2>/dev/null; then
31830 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 31831 as_ln_s='ln -s'
5213506e
RW
31832 # ... but there are two gotchas:
31833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 31835 # In both cases, we have to default to `cp -pR'.
5213506e 31836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 31837 as_ln_s='cp -pR'
5213506e
RW
31838 elif ln conf$$.file conf$$ 2>/dev/null; then
31839 as_ln_s=ln
31840 else
22e05272 31841 as_ln_s='cp -pR'
38d24731 31842 fi
6de9cd9a 31843else
22e05272 31844 as_ln_s='cp -pR'
6de9cd9a 31845fi
5213506e
RW
31846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31847rmdir conf$$.dir 2>/dev/null
31848
31849
31850# as_fn_mkdir_p
31851# -------------
31852# Create "$as_dir" as a directory, including parents if necessary.
31853as_fn_mkdir_p ()
31854{
31855
31856 case $as_dir in #(
31857 -*) as_dir=./$as_dir;;
31858 esac
31859 test -d "$as_dir" || eval $as_mkdir_p || {
31860 as_dirs=
31861 while :; do
31862 case $as_dir in #(
31863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31864 *) as_qdir=$as_dir;;
31865 esac
31866 as_dirs="'$as_qdir' $as_dirs"
31867 as_dir=`$as_dirname -- "$as_dir" ||
31868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31869 X"$as_dir" : 'X\(//\)[^/]' \| \
31870 X"$as_dir" : 'X\(//\)$' \| \
31871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31872$as_echo X"$as_dir" |
31873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31874 s//\1/
31875 q
31876 }
31877 /^X\(\/\/\)[^/].*/{
31878 s//\1/
31879 q
31880 }
31881 /^X\(\/\/\)$/{
31882 s//\1/
31883 q
31884 }
31885 /^X\(\/\).*/{
31886 s//\1/
31887 q
31888 }
31889 s/.*/./; q'`
31890 test -d "$as_dir" && break
31891 done
31892 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 31893 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 31894
6de9cd9a 31895
5213506e 31896} # as_fn_mkdir_p
6de9cd9a 31897if mkdir -p . 2>/dev/null; then
5213506e 31898 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
31899else
31900 test -d ./-p && rmdir ./-p
31901 as_mkdir_p=false
31902fi
31903
22e05272
JM
31904
31905# as_fn_executable_p FILE
31906# -----------------------
31907# Test if FILE is an executable regular file.
31908as_fn_executable_p ()
31909{
31910 test -f "$1" && test -x "$1"
31911} # as_fn_executable_p
31912as_test_x='test -x'
31913as_executable_p=as_fn_executable_p
6de9cd9a
DN
31914
31915# Sed expression to map a string onto a valid CPP name.
31916as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31917
31918# Sed expression to map a string onto a valid variable name.
31919as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31920
31921
6de9cd9a 31922exec 6>&1
5213506e
RW
31923## ----------------------------------- ##
31924## Main body of $CONFIG_STATUS script. ##
31925## ----------------------------------- ##
31926_ASEOF
31927test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31928
31929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31930# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 31931# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
31932# values after options handling.
31933ac_log="
0dce3ca1 31934This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 31935generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a
DN
31936
31937 CONFIG_FILES = $CONFIG_FILES
31938 CONFIG_HEADERS = $CONFIG_HEADERS
31939 CONFIG_LINKS = $CONFIG_LINKS
31940 CONFIG_COMMANDS = $CONFIG_COMMANDS
31941 $ $0 $@
31942
5213506e
RW
31943on `(hostname || uname -n) 2>/dev/null | sed 1q`
31944"
31945
6de9cd9a
DN
31946_ACEOF
31947
5213506e
RW
31948case $ac_config_files in *"
31949"*) set x $ac_config_files; shift; ac_config_files=$*;;
31950esac
78511f8b 31951
5213506e
RW
31952case $ac_config_headers in *"
31953"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31954esac
38d24731 31955
38d24731 31956
5213506e
RW
31957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31958# Files that config.status was made for.
31959config_files="$ac_config_files"
31960config_headers="$ac_config_headers"
31961config_commands="$ac_config_commands"
6de9cd9a 31962
5213506e 31963_ACEOF
38d24731 31964
5213506e 31965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 31966ac_cs_usage="\
5213506e
RW
31967\`$as_me' instantiates files and other configuration actions
31968from templates according to the current configuration. Unless the files
31969and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 31970
5213506e 31971Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
31972
31973 -h, --help print this help, then exit
5213506e 31974 -V, --version print version number and configuration settings, then exit
22e05272 31975 --config print configuration, then exit
5213506e
RW
31976 -q, --quiet, --silent
31977 do not print progress messages
6de9cd9a
DN
31978 -d, --debug don't remove temporary files
31979 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
31980 --file=FILE[:TEMPLATE]
31981 instantiate the configuration file FILE
31982 --header=FILE[:TEMPLATE]
31983 instantiate the configuration header FILE
6de9cd9a
DN
31984
31985Configuration files:
31986$config_files
31987
31988Configuration headers:
31989$config_headers
31990
31991Configuration commands:
31992$config_commands
31993
5213506e
RW
31994Report bugs to the package provider.
31995GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
31996General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 31997
5213506e
RW
31998_ACEOF
31999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 32000ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6de9cd9a 32001ac_cs_version="\\
0dce3ca1 32002GNU Fortran Runtime Library config.status 0.3
22e05272
JM
32003configured by $0, generated by GNU Autoconf 2.69,
32004 with options \\"\$ac_cs_config\\"
6de9cd9a 32005
22e05272 32006Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
32007This config.status script is free software; the Free Software Foundation
32008gives unlimited permission to copy, distribute and modify it."
5213506e
RW
32009
32010ac_pwd='$ac_pwd'
32011srcdir='$srcdir'
32012INSTALL='$INSTALL'
32013MKDIR_P='$MKDIR_P'
32014AWK='$AWK'
32015test -n "\$AWK" || AWK=awk
6de9cd9a
DN
32016_ACEOF
32017
5213506e
RW
32018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32019# The default lists apply if the user does not specify any file.
6de9cd9a
DN
32020ac_need_defaults=:
32021while test $# != 0
32022do
32023 case $1 in
22e05272 32024 --*=?*)
5213506e
RW
32025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
32027 ac_shift=:
32028 ;;
22e05272
JM
32029 --*=)
32030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32031 ac_optarg=
32032 ac_shift=:
32033 ;;
5213506e 32034 *)
6de9cd9a
DN
32035 ac_option=$1
32036 ac_optarg=$2
32037 ac_shift=shift
32038 ;;
6de9cd9a
DN
32039 esac
32040
32041 case $ac_option in
32042 # Handling of the options.
6de9cd9a
DN
32043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32044 ac_cs_recheck=: ;;
5213506e
RW
32045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32046 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
32047 --config | --confi | --conf | --con | --co | --c )
32048 $as_echo "$ac_cs_config"; exit ;;
5213506e 32049 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
32050 debug=: ;;
32051 --file | --fil | --fi | --f )
32052 $ac_shift
5213506e
RW
32053 case $ac_optarg in
32054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 32055 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
32056 esac
32057 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
32058 ac_need_defaults=false;;
32059 --header | --heade | --head | --hea )
32060 $ac_shift
5213506e
RW
32061 case $ac_optarg in
32062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32063 esac
32064 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 32065 ac_need_defaults=false;;
5213506e
RW
32066 --he | --h)
32067 # Conflict between --help and --header
22e05272 32068 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
32069Try \`$0 --help' for more information.";;
32070 --help | --hel | -h )
32071 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
32072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32074 ac_cs_silent=: ;;
32075
32076 # This is an error.
22e05272 32077 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 32078Try \`$0 --help' for more information." ;;
6de9cd9a 32079
5213506e
RW
32080 *) as_fn_append ac_config_targets " $1"
32081 ac_need_defaults=false ;;
6de9cd9a
DN
32082
32083 esac
32084 shift
32085done
32086
32087ac_configure_extra_args=
32088
32089if $ac_cs_silent; then
32090 exec 6>/dev/null
32091 ac_configure_extra_args="$ac_configure_extra_args --silent"
32092fi
32093
32094_ACEOF
5213506e 32095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 32096if \$ac_cs_recheck; then
22e05272 32097 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
32098 shift
32099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32100 CONFIG_SHELL='$SHELL'
32101 export CONFIG_SHELL
32102 exec "\$@"
6de9cd9a
DN
32103fi
32104
1cf3d07d 32105_ACEOF
5213506e
RW
32106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32107exec 5>>config.log
32108{
32109 echo
32110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32111## Running $as_me. ##
32112_ASBOX
32113 $as_echo "$ac_log"
32114} >&5
1cf3d07d 32115
5213506e
RW
32116_ACEOF
32117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 32118#
5213506e 32119# INIT-COMMANDS
1cf3d07d
SE
32120#
32121
1cf3d07d
SE
32122srcdir="$srcdir"
32123host="$host"
32124target="$target"
32125with_multisubdir="$with_multisubdir"
32126with_multisrctop="$with_multisrctop"
32127with_target_subdir="$with_target_subdir"
32128ac_configure_args="${multilib_arg} ${ac_configure_args}"
32129multi_basedir="$multi_basedir"
32130CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
32131CC="$CC"
2017c370
JB
32132CXX="$CXX"
32133GFORTRAN="$GFORTRAN"
22e05272 32134GDC="$GDC"
1cf3d07d
SE
32135AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32136
32137
32138# The HP-UX ksh and POSIX shell print the target directory to stdout
32139# if CDPATH is set.
32140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32141
32142sed_quote_subst='$sed_quote_subst'
32143double_quote_subst='$double_quote_subst'
32144delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
32145SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32146Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32147GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32148EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32149FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32150SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32151ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32152LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32153macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32154macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32155enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32156enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32157pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32158enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32159host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32160host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32161host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32162build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32163build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32164build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32165NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32166LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32167max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32168ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32169exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32170lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32171lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32172lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32173reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32174reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32175OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32176deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32177file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32178AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32179AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32180STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32181RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32182old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32183old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32184old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32185lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32186CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32187CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32188compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32189GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32190lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32191lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32192lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32193lt_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"`'
32194objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32195MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32196lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32197lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32198lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32199lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32200lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32201need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32202DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32203NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32204LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32205OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32206OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32207libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32208shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32209extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32210archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32211enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32212export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32213whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32214compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32215old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32216old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32217archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32218archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32219module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32220module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32221with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32222allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32223no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32224hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32225hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32226hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32227hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32228hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32229hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32230hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32231hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32232inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32233link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32234fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32235always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32236export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32237exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32238include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32239prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32240file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32241variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32242need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32243need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32244version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32245runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32246shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32247shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32248libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32249library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32250soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32251install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32252postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32253postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32254finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32255finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32256hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32257sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32258sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32259hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32260enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32261enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32262enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32263old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32264striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32265compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32266predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32267postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32268predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32269postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32270compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32271LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
32272reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
32273reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
32274old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
32275compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
32276GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
32277lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
32278lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
32279lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
32280lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
32281lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
32282archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
32283enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
32284export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32285whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32286compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
32287old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
32288old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
32289archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
32290archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
32291module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
32292module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
32293with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
32294allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
32295no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
32296hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32297hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
32298hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
32299hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
32300hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
32301hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
32302hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
32303hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
32304inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
32305link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
32306fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
32307always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
32308export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
32309exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
32310include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
32311prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
32312file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
32313hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
32314compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
32315predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
32316postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
32317predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
32318postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
32319compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
32320
32321LTCC='$LTCC'
32322LTCFLAGS='$LTCFLAGS'
32323compiler='$compiler_DEFAULT'
32324
43e02a8a
RW
32325# A function that is used when there is no print builtin or printf.
32326func_fallback_echo ()
32327{
32328 eval 'cat <<_LTECHO_EOF
32329\$1
32330_LTECHO_EOF'
32331}
32332
1cf3d07d 32333# Quote evaled strings.
66dbcf2d 32334for var in SED \
1cf3d07d
SE
32335GREP \
32336EGREP \
32337FGREP \
66dbcf2d
RO
32338SHELL \
32339ECHO \
1cf3d07d
SE
32340LD \
32341NM \
32342LN_S \
32343lt_SP2NL \
32344lt_NL2SP \
32345reload_flag \
d58dead8 32346OBJDUMP \
1cf3d07d
SE
32347deplibs_check_method \
32348file_magic_cmd \
32349AR \
32350AR_FLAGS \
32351STRIP \
32352RANLIB \
32353CC \
32354CFLAGS \
32355compiler \
32356lt_cv_sys_global_symbol_pipe \
32357lt_cv_sys_global_symbol_to_cdecl \
32358lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 32359lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
32360lt_prog_compiler_no_builtin_flag \
32361lt_prog_compiler_wl \
32362lt_prog_compiler_pic \
32363lt_prog_compiler_static \
32364lt_cv_prog_compiler_c_o \
32365need_locks \
d58dead8
PG
32366DSYMUTIL \
32367NMEDIT \
32368LIPO \
32369OTOOL \
32370OTOOL64 \
1cf3d07d
SE
32371shrext_cmds \
32372export_dynamic_flag_spec \
32373whole_archive_flag_spec \
32374compiler_needs_object \
32375with_gnu_ld \
32376allow_undefined_flag \
32377no_undefined_flag \
32378hardcode_libdir_flag_spec \
32379hardcode_libdir_flag_spec_ld \
32380hardcode_libdir_separator \
32381fix_srcfile_path \
32382exclude_expsyms \
32383include_expsyms \
32384file_list_spec \
32385variables_saved_for_relink \
32386libname_spec \
32387library_names_spec \
32388soname_spec \
43e02a8a 32389install_override_mode \
1cf3d07d
SE
32390finish_eval \
32391old_striplib \
32392striplib \
d58dead8 32393compiler_lib_search_dirs \
1cf3d07d
SE
32394predep_objects \
32395postdep_objects \
32396predeps \
32397postdeps \
32398compiler_lib_search_path \
32399LD_FC \
43e02a8a 32400reload_flag_FC \
1cf3d07d
SE
32401compiler_FC \
32402lt_prog_compiler_no_builtin_flag_FC \
32403lt_prog_compiler_wl_FC \
32404lt_prog_compiler_pic_FC \
32405lt_prog_compiler_static_FC \
32406lt_cv_prog_compiler_c_o_FC \
32407export_dynamic_flag_spec_FC \
32408whole_archive_flag_spec_FC \
32409compiler_needs_object_FC \
32410with_gnu_ld_FC \
32411allow_undefined_flag_FC \
32412no_undefined_flag_FC \
32413hardcode_libdir_flag_spec_FC \
32414hardcode_libdir_flag_spec_ld_FC \
32415hardcode_libdir_separator_FC \
32416fix_srcfile_path_FC \
32417exclude_expsyms_FC \
32418include_expsyms_FC \
32419file_list_spec_FC \
d58dead8 32420compiler_lib_search_dirs_FC \
1cf3d07d
SE
32421predep_objects_FC \
32422postdep_objects_FC \
32423predeps_FC \
32424postdeps_FC \
32425compiler_lib_search_path_FC; do
43e02a8a 32426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 32427 *[\\\\\\\`\\"\\\$]*)
43e02a8a 32428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
32429 ;;
32430 *)
32431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32432 ;;
32433 esac
32434done
32435
32436# Double-quote double-evaled strings.
32437for var in reload_cmds \
32438old_postinstall_cmds \
32439old_postuninstall_cmds \
32440old_archive_cmds \
32441extract_expsyms_cmds \
32442old_archive_from_new_cmds \
32443old_archive_from_expsyms_cmds \
32444archive_cmds \
32445archive_expsym_cmds \
32446module_cmds \
32447module_expsym_cmds \
32448export_symbols_cmds \
32449prelink_cmds \
32450postinstall_cmds \
32451postuninstall_cmds \
32452finish_cmds \
32453sys_lib_search_path_spec \
32454sys_lib_dlsearch_path_spec \
43e02a8a 32455reload_cmds_FC \
1cf3d07d
SE
32456old_archive_cmds_FC \
32457old_archive_from_new_cmds_FC \
32458old_archive_from_expsyms_cmds_FC \
32459archive_cmds_FC \
32460archive_expsym_cmds_FC \
32461module_cmds_FC \
32462module_expsym_cmds_FC \
32463export_symbols_cmds_FC \
32464prelink_cmds_FC; do
43e02a8a 32465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 32466 *[\\\\\\\`\\"\\\$]*)
43e02a8a 32467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
32468 ;;
32469 *)
32470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32471 ;;
32472 esac
32473done
32474
1cf3d07d
SE
32475ac_aux_dir='$ac_aux_dir'
32476xsi_shell='$xsi_shell'
32477lt_shell_append='$lt_shell_append'
32478
32479# See if we are running on zsh, and set the options which allow our
32480# commands through without removal of \ escapes INIT.
32481if test -n "\${ZSH_VERSION+set}" ; then
32482 setopt NO_GLOB_SUBST
32483fi
32484
32485
32486 PACKAGE='$PACKAGE'
32487 VERSION='$VERSION'
32488 TIMESTAMP='$TIMESTAMP'
32489 RM='$RM'
32490 ofile='$ofile'
32491
32492
6de9cd9a 32493
6de9cd9a 32494
78511f8b 32495
6de9cd9a 32496
c13e029b
PB
32497GCC="$GCC"
32498CC="$CC"
32499acx_cv_header_stdint="$acx_cv_header_stdint"
32500acx_cv_type_int8_t="$acx_cv_type_int8_t"
32501acx_cv_type_int16_t="$acx_cv_type_int16_t"
32502acx_cv_type_int32_t="$acx_cv_type_int32_t"
32503acx_cv_type_int64_t="$acx_cv_type_int64_t"
32504acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
32505ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
32506ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
32507ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
32508ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
32509ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
32510ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
32511ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 32512ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
32513
32514
6de9cd9a
DN
32515_ACEOF
32516
5213506e 32517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 32518
5213506e 32519# Handling of arguments.
6de9cd9a
DN
32520for ac_config_target in $ac_config_targets
32521do
5213506e
RW
32522 case $ac_config_target in
32523 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32524 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32527 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
32528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 32529 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e 32530
22e05272 32531 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
32532 esac
32533done
32534
5213506e 32535
6de9cd9a
DN
32536# If the user did not use the arguments to specify the items to instantiate,
32537# then the envvar interface is used. Set only those that are not.
32538# We use the long form for the default assignment because of an extremely
32539# bizarre bug on SunOS 4.1.3.
32540if $ac_need_defaults; then
32541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32543 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32544fi
32545
32546# Have a temporary directory for convenience. Make it in the build tree
5213506e 32547# simply because there is no reason against having it here, and in addition,
6de9cd9a 32548# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
32549# Hook for its removal unless debugging.
32550# Note that there is a small window in which the directory will not be cleaned:
32551# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
32552$debug ||
32553{
22e05272 32554 tmp= ac_tmp=
5213506e 32555 trap 'exit_status=$?
22e05272
JM
32556 : "${ac_tmp:=$tmp}"
32557 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
32558' 0
32559 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 32560}
6de9cd9a
DN
32561# Create a (secure) tmp directory for tmp files.
32562
32563{
5213506e 32564 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 32565 test -d "$tmp"
6de9cd9a
DN
32566} ||
32567{
5213506e
RW
32568 tmp=./conf$$-$RANDOM
32569 (umask 077 && mkdir "$tmp")
22e05272
JM
32570} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32571ac_tmp=$tmp
5213506e
RW
32572
32573# Set up the scripts for CONFIG_FILES section.
32574# No need to generate them if there are no CONFIG_FILES.
32575# This happens for instance with `./config.status config.h'.
32576if test -n "$CONFIG_FILES"; then
32577
32578
32579ac_cr=`echo X | tr X '\015'`
32580# On cygwin, bash can eat \r inside `` if the user requested igncr.
32581# But we know of no other shell where ac_cr would be empty at this
32582# point, so we can use a bashism as a fallback.
32583if test "x$ac_cr" = x; then
32584 eval ac_cr=\$\'\\r\'
32585fi
32586ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32587if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 32588 ac_cs_awk_cr='\\r'
5213506e
RW
32589else
32590 ac_cs_awk_cr=$ac_cr
32591fi
32592
22e05272 32593echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
32594_ACEOF
32595
32596
6de9cd9a 32597{
5213506e
RW
32598 echo "cat >conf$$subs.awk <<_ACEOF" &&
32599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32600 echo "_ACEOF"
32601} >conf$$subs.sh ||
22e05272
JM
32602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32603ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
32604ac_delim='%!_!# '
32605for ac_last_try in false false false false false :; do
32606 . ./conf$$subs.sh ||
22e05272 32607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
32608
32609 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32610 if test $ac_delim_n = $ac_delim_num; then
32611 break
32612 elif $ac_last_try; then
22e05272 32613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
32614 else
32615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32616 fi
32617done
32618rm -f conf$$subs.sh
32619
32620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 32621cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
32622_ACEOF
32623sed -n '
32624h
32625s/^/S["/; s/!.*/"]=/
32626p
32627g
32628s/^[^!]*!//
32629:repl
32630t repl
32631s/'"$ac_delim"'$//
32632t delim
32633:nl
32634h
22e05272 32635s/\(.\{148\}\)..*/\1/
5213506e
RW
32636t more1
32637s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32638p
32639n
32640b repl
32641:more1
32642s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32643p
32644g
32645s/.\{148\}//
32646t nl
32647:delim
32648h
22e05272 32649s/\(.\{148\}\)..*/\1/
5213506e
RW
32650t more2
32651s/["\\]/\\&/g; s/^/"/; s/$/"/
32652p
32653b
32654:more2
32655s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32656p
32657g
32658s/.\{148\}//
32659t delim
32660' <conf$$subs.awk | sed '
32661/^[^""]/{
32662 N
32663 s/\n//
32664}
32665' >>$CONFIG_STATUS || ac_write_fail=1
32666rm -f conf$$subs.awk
32667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32668_ACAWK
22e05272 32669cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
32670 for (key in S) S_is_set[key] = 1
32671 FS = "\a"
32672
32673}
32674{
32675 line = $ 0
32676 nfields = split(line, field, "@")
32677 substed = 0
32678 len = length(field[1])
32679 for (i = 2; i < nfields; i++) {
32680 key = field[i]
32681 keylen = length(key)
32682 if (S_is_set[key]) {
32683 value = S[key]
32684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32685 len += length(value) + length(field[++i])
32686 substed = 1
32687 } else
32688 len += 1 + keylen
32689 }
32690
32691 print line
6de9cd9a
DN
32692}
32693
5213506e
RW
32694_ACAWK
32695_ACEOF
32696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32697if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32698 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32699else
32700 cat
22e05272
JM
32701fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32702 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38d24731
RW
32703_ACEOF
32704
22e05272
JM
32705# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32706# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
32707# trailing colons and then remove the whole line if VPATH becomes empty
32708# (actually we leave an empty line to preserve line numbers).
32709if test "x$srcdir" = x.; then
22e05272
JM
32710 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32711h
32712s///
32713s/^/:/
32714s/[ ]*$/:/
32715s/:\$(srcdir):/:/g
32716s/:\${srcdir}:/:/g
32717s/:@srcdir@:/:/g
32718s/^:*//
5213506e 32719s/:*$//
22e05272
JM
32720x
32721s/\(=[ ]*\).*/\1/
32722G
32723s/\n//
5213506e
RW
32724s/^[^=]*=[ ]*$//
32725}'
32726fi
38d24731 32727
5213506e
RW
32728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32729fi # test -n "$CONFIG_FILES"
6de9cd9a 32730
5213506e
RW
32731# Set up the scripts for CONFIG_HEADERS section.
32732# No need to generate them if there are no CONFIG_HEADERS.
32733# This happens for instance with `./config.status Makefile'.
32734if test -n "$CONFIG_HEADERS"; then
22e05272 32735cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e
RW
32736BEGIN {
32737_ACEOF
32738
32739# Transform confdefs.h into an awk script `defines.awk', embedded as
32740# here-document in config.status, that substitutes the proper values into
32741# config.h.in to produce config.h.
32742
32743# Create a delimiter string that does not exist in confdefs.h, to ease
32744# handling of long lines.
32745ac_delim='%!_!# '
32746for ac_last_try in false false :; do
22e05272
JM
32747 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32748 if test -z "$ac_tt"; then
5213506e
RW
32749 break
32750 elif $ac_last_try; then
22e05272 32751 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5213506e
RW
32752 else
32753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 32754 fi
5213506e 32755done
c0e7e2bf 32756
5213506e
RW
32757# For the awk script, D is an array of macro values keyed by name,
32758# likewise P contains macro parameters if any. Preserve backslash
32759# newline sequences.
32760
32761ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32762sed -n '
32763s/.\{148\}/&'"$ac_delim"'/g
32764t rset
32765:rset
32766s/^[ ]*#[ ]*define[ ][ ]*/ /
32767t def
32768d
32769:def
32770s/\\$//
32771t bsnl
32772s/["\\]/\\&/g
32773s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32774D["\1"]=" \3"/p
32775s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32776d
32777:bsnl
32778s/["\\]/\\&/g
32779s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32780D["\1"]=" \3\\\\\\n"\\/p
32781t cont
32782s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32783t cont
32784d
32785:cont
32786n
32787s/.\{148\}/&'"$ac_delim"'/g
32788t clear
32789:clear
32790s/\\$//
32791t bsnlc
32792s/["\\]/\\&/g; s/^/"/; s/$/"/p
32793d
32794:bsnlc
32795s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32796b cont
32797' <confdefs.h | sed '
32798s/'"$ac_delim"'/"\\\
32799"/g' >>$CONFIG_STATUS || ac_write_fail=1
32800
32801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32802 for (key in D) D_is_set[key] = 1
32803 FS = "\a"
32804}
32805/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32806 line = \$ 0
32807 split(line, arg, " ")
32808 if (arg[1] == "#") {
32809 defundef = arg[2]
32810 mac1 = arg[3]
32811 } else {
32812 defundef = substr(arg[1], 2)
32813 mac1 = arg[2]
32814 }
32815 split(mac1, mac2, "(") #)
32816 macro = mac2[1]
32817 prefix = substr(line, 1, index(line, defundef) - 1)
32818 if (D_is_set[macro]) {
32819 # Preserve the white space surrounding the "#".
32820 print prefix "define", macro P[macro] D[macro]
32821 next
32822 } else {
32823 # Replace #undef with comments. This is necessary, for example,
32824 # in the case of _POSIX_SOURCE, which is predefined and required
32825 # on some systems where configure will not decide to define it.
32826 if (defundef == "undef") {
32827 print "/*", prefix defundef, macro, "*/"
32828 next
32829 }
32830 }
32831}
32832{ print }
32833_ACAWK
6de9cd9a 32834_ACEOF
5213506e 32835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 32836 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e
RW
32837fi # test -n "$CONFIG_HEADERS"
32838
32839
32840eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32841shift
32842for ac_tag
32843do
32844 case $ac_tag in
32845 :[FHLC]) ac_mode=$ac_tag; continue;;
32846 esac
32847 case $ac_mode$ac_tag in
32848 :[FHL]*:*);;
22e05272 32849 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
32850 :[FH]-) ac_tag=-:-;;
32851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32852 esac
32853 ac_save_IFS=$IFS
32854 IFS=:
32855 set x $ac_tag
32856 IFS=$ac_save_IFS
32857 shift
32858 ac_file=$1
32859 shift
32860
32861 case $ac_mode in
32862 :L) ac_source=$1;;
32863 :[FH])
32864 ac_file_inputs=
32865 for ac_f
32866 do
32867 case $ac_f in
22e05272 32868 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
32869 *) # Look for the file first in the build tree, then in the source tree
32870 # (if the path is not absolute). The absolute path cannot be DOS-style,
32871 # because $ac_f cannot contain `:'.
32872 test -f "$ac_f" ||
32873 case $ac_f in
32874 [\\/$]*) false;;
32875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32876 esac ||
22e05272 32877 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
32878 esac
32879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32880 as_fn_append ac_file_inputs " '$ac_f'"
32881 done
32882
32883 # Let's still pretend it is `configure' which instantiates (i.e., don't
32884 # use $as_me), people would be surprised to read:
32885 # /* config.h. Generated by config.status. */
32886 configure_input='Generated from '`
32887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32888 `' by configure.'
32889 if test x"$ac_file" != x-; then
32890 configure_input="$ac_file. $configure_input"
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32892$as_echo "$as_me: creating $ac_file" >&6;}
32893 fi
32894 # Neutralize special characters interpreted by sed in replacement strings.
32895 case $configure_input in #(
32896 *\&* | *\|* | *\\* )
32897 ac_sed_conf_input=`$as_echo "$configure_input" |
32898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32899 *) ac_sed_conf_input=$configure_input;;
32900 esac
32901
32902 case $ac_tag in
22e05272
JM
32903 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
32905 esac
32906 ;;
6de9cd9a
DN
32907 esac
32908
5213506e 32909 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
32910$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32911 X"$ac_file" : 'X\(//\)[^/]' \| \
32912 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
32913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32914$as_echo X"$ac_file" |
32915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32916 s//\1/
32917 q
32918 }
32919 /^X\(\/\/\)[^/].*/{
32920 s//\1/
32921 q
32922 }
32923 /^X\(\/\/\)$/{
32924 s//\1/
32925 q
32926 }
32927 /^X\(\/\).*/{
32928 s//\1/
32929 q
32930 }
32931 s/.*/./; q'`
32932 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
32933 ac_builddir=.
32934
5213506e
RW
32935case "$ac_dir" in
32936.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32937*)
32938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32939 # A ".." for each directory in $ac_dir_suffix.
32940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32941 case $ac_top_builddir_sub in
32942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32944 esac ;;
32945esac
32946ac_abs_top_builddir=$ac_pwd
32947ac_abs_builddir=$ac_pwd$ac_dir_suffix
32948# for backward compatibility:
32949ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
32950
32951case $srcdir in
5213506e 32952 .) # We are building in place.
6de9cd9a 32953 ac_srcdir=.
5213506e
RW
32954 ac_top_srcdir=$ac_top_builddir_sub
32955 ac_abs_top_srcdir=$ac_pwd ;;
32956 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 32957 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
32958 ac_top_srcdir=$srcdir
32959 ac_abs_top_srcdir=$srcdir ;;
32960 *) # Relative name.
32961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32962 ac_top_srcdir=$ac_top_build_prefix$srcdir
32963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 32964esac
5213506e 32965ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 32966
6de9cd9a 32967
5213506e
RW
32968 case $ac_mode in
32969 :F)
32970 #
32971 # CONFIG_FILE
32972 #
6de9cd9a
DN
32973
32974 case $INSTALL in
32975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
32976 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32977 esac
32978 ac_MKDIR_P=$MKDIR_P
32979 case $MKDIR_P in
32980 [\\/$]* | ?:[\\/]* ) ;;
32981 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 32982 esac
5213506e 32983_ACEOF
6de9cd9a 32984
5213506e
RW
32985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32986# If the template does not know about datarootdir, expand it.
32987# FIXME: This hack should be removed a few years after 2.60.
32988ac_datarootdir_hack=; ac_datarootdir_seen=
32989ac_sed_dataroot='
32990/datarootdir/ {
32991 p
32992 q
32993}
32994/@datadir@/p
32995/@docdir@/p
32996/@infodir@/p
32997/@localedir@/p
32998/@mandir@/p'
32999case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33000*datarootdir*) ac_datarootdir_seen=yes;;
33001*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33003$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33004_ACEOF
33005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33006 ac_datarootdir_hack='
33007 s&@datadir@&$datadir&g
33008 s&@docdir@&$docdir&g
33009 s&@infodir@&$infodir&g
33010 s&@localedir@&$localedir&g
33011 s&@mandir@&$mandir&g
33012 s&\\\${datarootdir}&$datarootdir&g' ;;
33013esac
78511f8b 33014_ACEOF
5213506e
RW
33015
33016# Neutralize VPATH when `$srcdir' = `.'.
33017# Shell code in configure.ac might set extrasub.
33018# FIXME: do we really want to maintain this feature?
33019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33020ac_sed_extra="$ac_vpsub
6de9cd9a
DN
33021$extrasub
33022_ACEOF
5213506e 33023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
33024:t
33025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
33026s|@configure_input@|$ac_sed_conf_input|;t t
33027s&@top_builddir@&$ac_top_builddir_sub&;t t
33028s&@top_build_prefix@&$ac_top_build_prefix&;t t
33029s&@srcdir@&$ac_srcdir&;t t
33030s&@abs_srcdir@&$ac_abs_srcdir&;t t
33031s&@top_srcdir@&$ac_top_srcdir&;t t
33032s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33033s&@builddir@&$ac_builddir&;t t
33034s&@abs_builddir@&$ac_abs_builddir&;t t
33035s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33036s&@INSTALL@&$ac_INSTALL&;t t
33037s&@MKDIR_P@&$ac_MKDIR_P&;t t
33038$ac_datarootdir_hack
33039"
22e05272
JM
33040eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33041 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
33042
33043test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
33044 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33046 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 33048which seems to be undefined. Please make sure it is defined" >&5
5213506e 33049$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 33050which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 33051
22e05272 33052 rm -f "$ac_tmp/stdin"
6de9cd9a 33053 case $ac_file in
22e05272
JM
33054 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33055 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 33056 esac \
22e05272 33057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
33058 ;;
33059 :H)
33060 #
33061 # CONFIG_HEADER
33062 #
6de9cd9a 33063 if test x"$ac_file" != x-; then
5213506e
RW
33064 {
33065 $as_echo "/* $configure_input */" \
22e05272
JM
33066 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33067 } >"$ac_tmp/config.h" \
33068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33069 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33071$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 33072 else
5213506e 33073 rm -f "$ac_file"
22e05272
JM
33074 mv "$ac_tmp/config.h" "$ac_file" \
33075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
33076 fi
33077 else
5213506e 33078 $as_echo "/* $configure_input */" \
22e05272
JM
33079 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33080 || as_fn_error $? "could not create -" "$LINENO" 5
6de9cd9a 33081 fi
5213506e
RW
33082# Compute "$ac_file"'s index in $config_headers.
33083_am_arg="$ac_file"
6de9cd9a
DN
33084_am_stamp_count=1
33085for _am_header in $config_headers :; do
33086 case $_am_header in
5213506e 33087 $_am_arg | $_am_arg:* )
6de9cd9a
DN
33088 break ;;
33089 * )
33090 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33091 esac
33092done
5213506e
RW
33093echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33094$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33095 X"$_am_arg" : 'X\(//\)[^/]' \| \
33096 X"$_am_arg" : 'X\(//\)$' \| \
33097 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33098$as_echo X"$_am_arg" |
33099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33100 s//\1/
33101 q
33102 }
33103 /^X\(\/\/\)[^/].*/{
33104 s//\1/
33105 q
33106 }
33107 /^X\(\/\/\)$/{
33108 s//\1/
33109 q
33110 }
33111 /^X\(\/\).*/{
33112 s//\1/
33113 q
33114 }
33115 s/.*/./; q'`/stamp-h$_am_stamp_count
33116 ;;
38d24731 33117
5213506e
RW
33118 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33119$as_echo "$as_me: executing $ac_file commands" >&6;}
33120 ;;
33121 esac
6de9cd9a
DN
33122
33123
5213506e
RW
33124 case $ac_file$ac_mode in
33125 "default-1":C)
96b8a615
AJ
33126# Only add multilib support code if we just rebuilt the top-level
33127# Makefile.
33128case " $CONFIG_FILES " in
33129 *" Makefile "*)
33130 ac_file=Makefile . ${multi_basedir}/config-ml.in
33131 ;;
33132esac ;;
5213506e 33133 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 33134 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
33135 # are listed without --file. Let's play safe and only enable the eval
33136 # if we detect the quoting.
33137 case $CONFIG_FILES in
33138 *\'*) eval set x "$CONFIG_FILES" ;;
33139 *) set x $CONFIG_FILES ;;
33140 esac
33141 shift
33142 for mf
33143 do
33144 # Strip MF so we end up with the name of the file.
33145 mf=`echo "$mf" | sed -e 's/:.*$//'`
33146 # Check whether this is an Automake generated Makefile or not.
22e05272 33147 # We used to match only the files named 'Makefile.in', but
5213506e
RW
33148 # some people rename them; so instead we look at the file content.
33149 # Grep'ing the first line is not enough: some people post-process
33150 # each Makefile.in and add a new line on top of each file to say so.
33151 # Grep'ing the whole file is not good either: AIX grep has a line
33152 # limit of 2048, but all sed's we know have understand at least 4000.
33153 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33154 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
33155$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33156 X"$mf" : 'X\(//\)[^/]' \| \
33157 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
33158 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33159$as_echo X"$mf" |
33160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33161 s//\1/
33162 q
33163 }
33164 /^X\(\/\/\)[^/].*/{
33165 s//\1/
33166 q
33167 }
33168 /^X\(\/\/\)$/{
33169 s//\1/
33170 q
33171 }
33172 /^X\(\/\).*/{
33173 s//\1/
33174 q
33175 }
33176 s/.*/./; q'`
33177 else
33178 continue
33179 fi
33180 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 33181 # from the Makefile without running 'make'.
5213506e
RW
33182 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33183 test -z "$DEPDIR" && continue
33184 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 33185 test -z "$am__include" && continue
5213506e 33186 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
33187 # Find all dependency output files, they are included files with
33188 # $(DEPDIR) in their names. We invoke sed twice because it is the
33189 # simplest approach to changing $(DEPDIR) to its actual value in the
33190 # expansion.
33191 for file in `sed -n "
33192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 33193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
33194 # Make sure the directory exists.
33195 test -f "$dirpart/$file" && continue
33196 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
33197$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33198 X"$file" : 'X\(//\)[^/]' \| \
33199 X"$file" : 'X\(//\)$' \| \
5213506e
RW
33200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33201$as_echo X"$file" |
33202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33203 s//\1/
33204 q
33205 }
33206 /^X\(\/\/\)[^/].*/{
33207 s//\1/
33208 q
33209 }
33210 /^X\(\/\/\)$/{
33211 s//\1/
33212 q
33213 }
33214 /^X\(\/\).*/{
33215 s//\1/
33216 q
33217 }
33218 s/.*/./; q'`
33219 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33220 # echo "creating $dirpart/$file"
33221 echo '# dummy' > "$dirpart/$file"
679c0f9a 33222 done
679c0f9a 33223 done
5213506e 33224}
1cf3d07d 33225 ;;
5213506e 33226 "libtool":C)
1cf3d07d
SE
33227
33228 # See if we are running on zsh, and set the options which allow our
33229 # commands through without removal of \ escapes.
33230 if test -n "${ZSH_VERSION+set}" ; then
33231 setopt NO_GLOB_SUBST
33232 fi
33233
33234 cfgfile="${ofile}T"
33235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33236 $RM "$cfgfile"
33237
33238 cat <<_LT_EOF >> "$cfgfile"
33239#! $SHELL
33240
33241# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 33242# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
33243# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33244# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33245#
d58dead8 33246# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 33247# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 33248# Written by Gordon Matzigkeit, 1996
1cf3d07d 33249#
d58dead8 33250# This file is part of GNU Libtool.
1cf3d07d 33251#
d58dead8
PG
33252# GNU Libtool is free software; you can redistribute it and/or
33253# modify it under the terms of the GNU General Public License as
33254# published by the Free Software Foundation; either version 2 of
33255# the License, or (at your option) any later version.
1cf3d07d 33256#
d58dead8
PG
33257# As a special exception to the GNU General Public License,
33258# if you distribute this file as part of a program or library that
33259# is built using GNU Libtool, you may include this file under the
33260# same distribution terms that you use for the rest of that program.
1cf3d07d 33261#
d58dead8
PG
33262# GNU Libtool is distributed in the hope that it will be useful,
33263# but WITHOUT ANY WARRANTY; without even the implied warranty of
33264# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33265# GNU General Public License for more details.
1cf3d07d 33266#
d58dead8
PG
33267# You should have received a copy of the GNU General Public License
33268# along with GNU Libtool; see the file COPYING. If not, a copy
33269# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33270# obtained by writing to the Free Software Foundation, Inc.,
33271# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
33272
33273
33274# The names of the tagged configurations supported by this script.
33275available_tags="FC "
33276
33277# ### BEGIN LIBTOOL CONFIG
33278
66dbcf2d
RO
33279# A sed program that does not truncate output.
33280SED=$lt_SED
33281
33282# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33283Xsed="\$SED -e 1s/^X//"
33284
33285# A grep program that handles long lines.
33286GREP=$lt_GREP
33287
33288# An ERE matcher.
33289EGREP=$lt_EGREP
33290
33291# A literal string matcher.
33292FGREP=$lt_FGREP
33293
33294# Shell to use when invoking shell scripts.
33295SHELL=$lt_SHELL
33296
33297# An echo program that protects backslashes.
33298ECHO=$lt_ECHO
33299
1cf3d07d
SE
33300# Which release of libtool.m4 was used?
33301macro_version=$macro_version
33302macro_revision=$macro_revision
33303
33304# Whether or not to build shared libraries.
33305build_libtool_libs=$enable_shared
33306
33307# Whether or not to build static libraries.
33308build_old_libs=$enable_static
33309
33310# What type of objects to build.
33311pic_mode=$pic_mode
33312
33313# Whether or not to optimize for fast installation.
33314fast_install=$enable_fast_install
33315
33316# The host system.
33317host_alias=$host_alias
33318host=$host
33319host_os=$host_os
33320
33321# The build system.
33322build_alias=$build_alias
33323build=$build
33324build_os=$build_os
33325
1cf3d07d
SE
33326# A BSD- or MS-compatible name lister.
33327NM=$lt_NM
33328
33329# Whether we need soft or hard links.
33330LN_S=$lt_LN_S
33331
33332# What is the maximum length of a command?
33333max_cmd_len=$max_cmd_len
33334
33335# Object file suffix (normally "o").
33336objext=$ac_objext
33337
33338# Executable file suffix (normally "").
33339exeext=$exeext
33340
33341# whether the shell understands "unset".
33342lt_unset=$lt_unset
33343
33344# turn spaces into newlines.
33345SP2NL=$lt_lt_SP2NL
33346
33347# turn newlines into spaces.
33348NL2SP=$lt_lt_NL2SP
33349
d58dead8
PG
33350# An object symbol dumper.
33351OBJDUMP=$lt_OBJDUMP
33352
1cf3d07d
SE
33353# Method to check whether dependent libraries are shared objects.
33354deplibs_check_method=$lt_deplibs_check_method
33355
33356# Command to use when deplibs_check_method == "file_magic".
33357file_magic_cmd=$lt_file_magic_cmd
33358
33359# The archiver.
33360AR=$lt_AR
33361AR_FLAGS=$lt_AR_FLAGS
33362
33363# A symbol stripping program.
33364STRIP=$lt_STRIP
33365
33366# Commands used to install an old-style archive.
33367RANLIB=$lt_RANLIB
33368old_postinstall_cmds=$lt_old_postinstall_cmds
33369old_postuninstall_cmds=$lt_old_postuninstall_cmds
33370
43e02a8a
RW
33371# Whether to use a lock for old archive extraction.
33372lock_old_archive_extraction=$lock_old_archive_extraction
33373
1cf3d07d
SE
33374# A C compiler.
33375LTCC=$lt_CC
33376
33377# LTCC compiler flags.
33378LTCFLAGS=$lt_CFLAGS
33379
33380# Take the output of nm and produce a listing of raw symbols and C names.
33381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33382
33383# Transform the output of nm in a proper C declaration.
33384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33385
33386# Transform the output of nm in a C name address pair.
33387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33388
d58dead8
PG
33389# Transform the output of nm in a C name address pair when lib prefix is needed.
33390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33391
1cf3d07d
SE
33392# The name of the directory that contains temporary libtool files.
33393objdir=$objdir
33394
1cf3d07d
SE
33395# Used to examine libraries when file_magic_cmd begins with "file".
33396MAGIC_CMD=$MAGIC_CMD
33397
33398# Must we lock files when doing compilation?
33399need_locks=$lt_need_locks
33400
d58dead8
PG
33401# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33402DSYMUTIL=$lt_DSYMUTIL
33403
33404# Tool to change global to local symbols on Mac OS X.
33405NMEDIT=$lt_NMEDIT
33406
33407# Tool to manipulate fat objects and archives on Mac OS X.
33408LIPO=$lt_LIPO
33409
33410# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33411OTOOL=$lt_OTOOL
33412
33413# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33414OTOOL64=$lt_OTOOL64
33415
1cf3d07d
SE
33416# Old archive suffix (normally "a").
33417libext=$libext
33418
33419# Shared library suffix (normally ".so").
33420shrext_cmds=$lt_shrext_cmds
33421
33422# The commands to extract the exported symbol list from a shared archive.
33423extract_expsyms_cmds=$lt_extract_expsyms_cmds
33424
33425# Variables whose values should be saved in libtool wrapper scripts and
33426# restored at link time.
33427variables_saved_for_relink=$lt_variables_saved_for_relink
33428
33429# Do we need the "lib" prefix for modules?
33430need_lib_prefix=$need_lib_prefix
33431
33432# Do we need a version for libraries?
33433need_version=$need_version
33434
33435# Library versioning type.
33436version_type=$version_type
33437
33438# Shared library runtime path variable.
33439runpath_var=$runpath_var
33440
33441# Shared library path variable.
33442shlibpath_var=$shlibpath_var
33443
33444# Is shlibpath searched before the hard-coded library search path?
33445shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33446
33447# Format of library name prefix.
33448libname_spec=$lt_libname_spec
33449
33450# List of archive names. First name is the real one, the rest are links.
33451# The last name is the one that the linker finds with -lNAME
33452library_names_spec=$lt_library_names_spec
33453
33454# The coded name of the library, if different from the real name.
33455soname_spec=$lt_soname_spec
33456
43e02a8a
RW
33457# Permission mode override for installation of shared libraries.
33458install_override_mode=$lt_install_override_mode
33459
1cf3d07d
SE
33460# Command to use after installation of a shared archive.
33461postinstall_cmds=$lt_postinstall_cmds
33462
33463# Command to use after uninstallation of a shared archive.
33464postuninstall_cmds=$lt_postuninstall_cmds
33465
33466# Commands used to finish a libtool library installation in a directory.
33467finish_cmds=$lt_finish_cmds
33468
33469# As "finish_cmds", except a single script fragment to be evaled but
33470# not shown.
33471finish_eval=$lt_finish_eval
33472
33473# Whether we should hardcode library paths into libraries.
33474hardcode_into_libs=$hardcode_into_libs
33475
33476# Compile-time system search path for libraries.
33477sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33478
33479# Run-time system search path for libraries.
33480sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33481
33482# Whether dlopen is supported.
33483dlopen_support=$enable_dlopen
33484
33485# Whether dlopen of programs is supported.
33486dlopen_self=$enable_dlopen_self
33487
33488# Whether dlopen of statically linked programs is supported.
33489dlopen_self_static=$enable_dlopen_self_static
33490
33491# Commands to strip libraries.
33492old_striplib=$lt_old_striplib
33493striplib=$lt_striplib
33494
33495
33496# The linker used to build libraries.
33497LD=$lt_LD
33498
43e02a8a
RW
33499# How to create reloadable object files.
33500reload_flag=$lt_reload_flag
33501reload_cmds=$lt_reload_cmds
33502
1cf3d07d
SE
33503# Commands used to build an old-style archive.
33504old_archive_cmds=$lt_old_archive_cmds
33505
33506# A language specific compiler.
33507CC=$lt_compiler
33508
33509# Is the compiler the GNU compiler?
33510with_gcc=$GCC
33511
33512# Compiler flag to turn off builtin functions.
33513no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33514
33515# How to pass a linker flag through the compiler.
33516wl=$lt_lt_prog_compiler_wl
33517
33518# Additional compiler flags for building library objects.
33519pic_flag=$lt_lt_prog_compiler_pic
33520
33521# Compiler flag to prevent dynamic linking.
33522link_static_flag=$lt_lt_prog_compiler_static
33523
33524# Does compiler simultaneously support -c and -o options?
33525compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33526
33527# Whether or not to add -lc for building shared libraries.
33528build_libtool_need_lc=$archive_cmds_need_lc
33529
33530# Whether or not to disallow shared libs when runtime libs are static.
33531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33532
33533# Compiler flag to allow reflexive dlopens.
33534export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33535
33536# Compiler flag to generate shared objects directly from archives.
33537whole_archive_flag_spec=$lt_whole_archive_flag_spec
33538
33539# Whether the compiler copes with passing no objects directly.
33540compiler_needs_object=$lt_compiler_needs_object
33541
33542# Create an old-style archive from a shared archive.
33543old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33544
33545# Create a temporary old-style archive to link instead of a shared archive.
33546old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33547
33548# Commands used to build a shared archive.
33549archive_cmds=$lt_archive_cmds
33550archive_expsym_cmds=$lt_archive_expsym_cmds
33551
33552# Commands used to build a loadable module if different from building
33553# a shared archive.
33554module_cmds=$lt_module_cmds
33555module_expsym_cmds=$lt_module_expsym_cmds
33556
33557# Whether we are building with GNU ld or not.
33558with_gnu_ld=$lt_with_gnu_ld
33559
33560# Flag that allows shared libraries with undefined symbols to be built.
33561allow_undefined_flag=$lt_allow_undefined_flag
33562
33563# Flag that enforces no undefined symbols.
33564no_undefined_flag=$lt_no_undefined_flag
33565
33566# Flag to hardcode \$libdir into a binary during linking.
33567# This must work even if \$libdir does not exist
33568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33569
33570# If ld is used when linking, flag to hardcode \$libdir into a binary
33571# during linking. This must work even if \$libdir does not exist.
33572hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33573
33574# Whether we need a single "-rpath" flag with a separated argument.
33575hardcode_libdir_separator=$lt_hardcode_libdir_separator
33576
33577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33578# DIR into the resulting binary.
33579hardcode_direct=$hardcode_direct
33580
33581# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33582# DIR into the resulting binary and the resulting library dependency is
33583# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33584# library is relocated.
33585hardcode_direct_absolute=$hardcode_direct_absolute
33586
33587# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33588# into the resulting binary.
33589hardcode_minus_L=$hardcode_minus_L
33590
33591# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33592# into the resulting binary.
33593hardcode_shlibpath_var=$hardcode_shlibpath_var
33594
33595# Set to "yes" if building a shared library automatically hardcodes DIR
33596# into the library and all subsequent libraries and executables linked
33597# against it.
33598hardcode_automatic=$hardcode_automatic
33599
33600# Set to yes if linker adds runtime paths of dependent libraries
33601# to runtime path list.
33602inherit_rpath=$inherit_rpath
33603
33604# Whether libtool must link a program against all its dependency libraries.
33605link_all_deplibs=$link_all_deplibs
33606
33607# Fix the shell variable \$srcfile for the compiler.
33608fix_srcfile_path=$lt_fix_srcfile_path
33609
33610# Set to "yes" if exported symbols are required.
33611always_export_symbols=$always_export_symbols
33612
33613# The commands to list exported symbols.
33614export_symbols_cmds=$lt_export_symbols_cmds
33615
33616# Symbols that should not be listed in the preloaded symbols.
33617exclude_expsyms=$lt_exclude_expsyms
33618
33619# Symbols that must always be exported.
33620include_expsyms=$lt_include_expsyms
33621
33622# Commands necessary for linking programs (against libraries) with templates.
33623prelink_cmds=$lt_prelink_cmds
33624
33625# Specify filename containing input files.
33626file_list_spec=$lt_file_list_spec
33627
33628# How to hardcode a shared library path into an executable.
33629hardcode_action=$hardcode_action
33630
d58dead8
PG
33631# The directories searched by this compiler when creating a shared library.
33632compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33633
1cf3d07d
SE
33634# Dependencies to place before and after the objects being linked to
33635# create a shared library.
33636predep_objects=$lt_predep_objects
33637postdep_objects=$lt_postdep_objects
33638predeps=$lt_predeps
33639postdeps=$lt_postdeps
33640
33641# The library search path used internally by the compiler when linking
33642# a shared library.
33643compiler_lib_search_path=$lt_compiler_lib_search_path
33644
33645# ### END LIBTOOL CONFIG
33646
33647_LT_EOF
33648
33649 case $host_os in
33650 aix3*)
33651 cat <<\_LT_EOF >> "$cfgfile"
33652# AIX sometimes has problems with the GCC collect2 program. For some
33653# reason, if we set the COLLECT_NAMES environment variable, the problems
33654# vanish in a puff of smoke.
33655if test "X${COLLECT_NAMES+set}" != Xset; then
33656 COLLECT_NAMES=
33657 export COLLECT_NAMES
33658fi
33659_LT_EOF
33660 ;;
33661 esac
33662
33663
33664ltmain="$ac_aux_dir/ltmain.sh"
33665
33666
33667 # We use sed instead of cat because bash on DJGPP gets confused if
33668 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33669 # text mode, it properly converts lines to CR/LF. This bash problem
33670 # is reportedly fixed, but why not run on old versions too?
33671 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33672 || (rm -f "$cfgfile"; exit 1)
33673
33674 case $xsi_shell in
33675 yes)
33676 cat << \_LT_EOF >> "$cfgfile"
d58dead8 33677
1cf3d07d
SE
33678# func_dirname file append nondir_replacement
33679# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33680# otherwise set result to NONDIR_REPLACEMENT.
33681func_dirname ()
33682{
33683 case ${1} in
33684 */*) func_dirname_result="${1%/*}${2}" ;;
33685 * ) func_dirname_result="${3}" ;;
33686 esac
33687}
33688
33689# func_basename file
33690func_basename ()
33691{
33692 func_basename_result="${1##*/}"
33693}
33694
d58dead8
PG
33695# func_dirname_and_basename file append nondir_replacement
33696# perform func_basename and func_dirname in a single function
33697# call:
33698# dirname: Compute the dirname of FILE. If nonempty,
33699# add APPEND to the result, otherwise set result
33700# to NONDIR_REPLACEMENT.
33701# value returned in "$func_dirname_result"
33702# basename: Compute filename of FILE.
33703# value retuned in "$func_basename_result"
33704# Implementation must be kept synchronized with func_dirname
33705# and func_basename. For efficiency, we do not delegate to
33706# those functions but instead duplicate the functionality here.
33707func_dirname_and_basename ()
33708{
33709 case ${1} in
33710 */*) func_dirname_result="${1%/*}${2}" ;;
33711 * ) func_dirname_result="${3}" ;;
33712 esac
33713 func_basename_result="${1##*/}"
33714}
33715
1cf3d07d
SE
33716# func_stripname prefix suffix name
33717# strip PREFIX and SUFFIX off of NAME.
33718# PREFIX and SUFFIX must not contain globbing or regex special
33719# characters, hashes, percent signs, but SUFFIX may contain a leading
33720# dot (in which case that matches only a dot).
33721func_stripname ()
33722{
33723 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33724 # positional parameters, so assign one to ordinary parameter first.
33725 func_stripname_result=${3}
33726 func_stripname_result=${func_stripname_result#"${1}"}
33727 func_stripname_result=${func_stripname_result%"${2}"}
33728}
33729
33730# func_opt_split
33731func_opt_split ()
33732{
33733 func_opt_split_opt=${1%%=*}
33734 func_opt_split_arg=${1#*=}
33735}
33736
33737# func_lo2o object
33738func_lo2o ()
33739{
33740 case ${1} in
33741 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33742 *) func_lo2o_result=${1} ;;
33743 esac
33744}
d58dead8
PG
33745
33746# func_xform libobj-or-source
33747func_xform ()
33748{
33749 func_xform_result=${1%.*}.lo
33750}
33751
33752# func_arith arithmetic-term...
33753func_arith ()
33754{
33755 func_arith_result=$(( $* ))
33756}
33757
33758# func_len string
33759# STRING may not start with a hyphen.
33760func_len ()
33761{
33762 func_len_result=${#1}
33763}
33764
1cf3d07d
SE
33765_LT_EOF
33766 ;;
33767 *) # Bourne compatible functions.
33768 cat << \_LT_EOF >> "$cfgfile"
d58dead8 33769
1cf3d07d
SE
33770# func_dirname file append nondir_replacement
33771# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33772# otherwise set result to NONDIR_REPLACEMENT.
33773func_dirname ()
33774{
33775 # Extract subdirectory from the argument.
43e02a8a 33776 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
33777 if test "X$func_dirname_result" = "X${1}"; then
33778 func_dirname_result="${3}"
33779 else
33780 func_dirname_result="$func_dirname_result${2}"
33781 fi
33782}
33783
33784# func_basename file
33785func_basename ()
33786{
43e02a8a 33787 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
33788}
33789
d58dead8 33790
1cf3d07d
SE
33791# func_stripname prefix suffix name
33792# strip PREFIX and SUFFIX off of NAME.
33793# PREFIX and SUFFIX must not contain globbing or regex special
33794# characters, hashes, percent signs, but SUFFIX may contain a leading
33795# dot (in which case that matches only a dot).
33796# func_strip_suffix prefix name
33797func_stripname ()
33798{
33799 case ${2} in
43e02a8a
RW
33800 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33801 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
33802 esac
33803}
33804
33805# sed scripts:
33806my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33807my_sed_long_arg='1s/^-[^=]*=//'
33808
33809# func_opt_split
33810func_opt_split ()
33811{
43e02a8a
RW
33812 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33813 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
33814}
33815
33816# func_lo2o object
33817func_lo2o ()
33818{
43e02a8a 33819 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 33820}
d58dead8
PG
33821
33822# func_xform libobj-or-source
33823func_xform ()
33824{
43e02a8a 33825 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
33826}
33827
33828# func_arith arithmetic-term...
33829func_arith ()
33830{
33831 func_arith_result=`expr "$@"`
33832}
33833
33834# func_len string
33835# STRING may not start with a hyphen.
33836func_len ()
33837{
33838 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33839}
33840
1cf3d07d
SE
33841_LT_EOF
33842esac
33843
33844case $lt_shell_append in
33845 yes)
33846 cat << \_LT_EOF >> "$cfgfile"
33847
33848# func_append var value
33849# Append VALUE to the end of shell variable VAR.
33850func_append ()
33851{
33852 eval "$1+=\$2"
33853}
33854_LT_EOF
33855 ;;
33856 *)
33857 cat << \_LT_EOF >> "$cfgfile"
33858
33859# func_append var value
33860# Append VALUE to the end of shell variable VAR.
33861func_append ()
33862{
33863 eval "$1=\$$1\$2"
33864}
d58dead8 33865
1cf3d07d
SE
33866_LT_EOF
33867 ;;
33868 esac
33869
33870
33871 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33872 || (rm -f "$cfgfile"; exit 1)
33873
33874 mv -f "$cfgfile" "$ofile" ||
33875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33876 chmod +x "$ofile"
33877
33878
33879 cat <<_LT_EOF >> "$ofile"
33880
33881# ### BEGIN LIBTOOL TAG CONFIG: FC
33882
33883# The linker used to build libraries.
33884LD=$lt_LD_FC
33885
43e02a8a
RW
33886# How to create reloadable object files.
33887reload_flag=$lt_reload_flag_FC
33888reload_cmds=$lt_reload_cmds_FC
33889
1cf3d07d
SE
33890# Commands used to build an old-style archive.
33891old_archive_cmds=$lt_old_archive_cmds_FC
33892
33893# A language specific compiler.
33894CC=$lt_compiler_FC
33895
33896# Is the compiler the GNU compiler?
33897with_gcc=$GCC_FC
33898
33899# Compiler flag to turn off builtin functions.
33900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
33901
33902# How to pass a linker flag through the compiler.
33903wl=$lt_lt_prog_compiler_wl_FC
33904
33905# Additional compiler flags for building library objects.
33906pic_flag=$lt_lt_prog_compiler_pic_FC
33907
33908# Compiler flag to prevent dynamic linking.
33909link_static_flag=$lt_lt_prog_compiler_static_FC
33910
33911# Does compiler simultaneously support -c and -o options?
33912compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
33913
33914# Whether or not to add -lc for building shared libraries.
33915build_libtool_need_lc=$archive_cmds_need_lc_FC
33916
33917# Whether or not to disallow shared libs when runtime libs are static.
33918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
33919
33920# Compiler flag to allow reflexive dlopens.
33921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
33922
33923# Compiler flag to generate shared objects directly from archives.
33924whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
33925
33926# Whether the compiler copes with passing no objects directly.
33927compiler_needs_object=$lt_compiler_needs_object_FC
33928
33929# Create an old-style archive from a shared archive.
33930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
33931
33932# Create a temporary old-style archive to link instead of a shared archive.
33933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
33934
33935# Commands used to build a shared archive.
33936archive_cmds=$lt_archive_cmds_FC
33937archive_expsym_cmds=$lt_archive_expsym_cmds_FC
33938
33939# Commands used to build a loadable module if different from building
33940# a shared archive.
33941module_cmds=$lt_module_cmds_FC
33942module_expsym_cmds=$lt_module_expsym_cmds_FC
33943
33944# Whether we are building with GNU ld or not.
33945with_gnu_ld=$lt_with_gnu_ld_FC
33946
33947# Flag that allows shared libraries with undefined symbols to be built.
33948allow_undefined_flag=$lt_allow_undefined_flag_FC
33949
33950# Flag that enforces no undefined symbols.
33951no_undefined_flag=$lt_no_undefined_flag_FC
33952
33953# Flag to hardcode \$libdir into a binary during linking.
33954# This must work even if \$libdir does not exist
33955hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
33956
33957# If ld is used when linking, flag to hardcode \$libdir into a binary
33958# during linking. This must work even if \$libdir does not exist.
33959hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
33960
33961# Whether we need a single "-rpath" flag with a separated argument.
33962hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
33963
33964# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33965# DIR into the resulting binary.
33966hardcode_direct=$hardcode_direct_FC
33967
33968# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33969# DIR into the resulting binary and the resulting library dependency is
33970# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33971# library is relocated.
33972hardcode_direct_absolute=$hardcode_direct_absolute_FC
33973
33974# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33975# into the resulting binary.
33976hardcode_minus_L=$hardcode_minus_L_FC
33977
33978# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33979# into the resulting binary.
33980hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
33981
33982# Set to "yes" if building a shared library automatically hardcodes DIR
33983# into the library and all subsequent libraries and executables linked
33984# against it.
33985hardcode_automatic=$hardcode_automatic_FC
33986
33987# Set to yes if linker adds runtime paths of dependent libraries
33988# to runtime path list.
33989inherit_rpath=$inherit_rpath_FC
33990
33991# Whether libtool must link a program against all its dependency libraries.
33992link_all_deplibs=$link_all_deplibs_FC
33993
33994# Fix the shell variable \$srcfile for the compiler.
33995fix_srcfile_path=$lt_fix_srcfile_path_FC
33996
33997# Set to "yes" if exported symbols are required.
33998always_export_symbols=$always_export_symbols_FC
33999
34000# The commands to list exported symbols.
34001export_symbols_cmds=$lt_export_symbols_cmds_FC
34002
34003# Symbols that should not be listed in the preloaded symbols.
34004exclude_expsyms=$lt_exclude_expsyms_FC
34005
34006# Symbols that must always be exported.
34007include_expsyms=$lt_include_expsyms_FC
34008
34009# Commands necessary for linking programs (against libraries) with templates.
34010prelink_cmds=$lt_prelink_cmds_FC
34011
34012# Specify filename containing input files.
34013file_list_spec=$lt_file_list_spec_FC
34014
34015# How to hardcode a shared library path into an executable.
34016hardcode_action=$hardcode_action_FC
34017
d58dead8
PG
34018# The directories searched by this compiler when creating a shared library.
34019compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
34020
1cf3d07d
SE
34021# Dependencies to place before and after the objects being linked to
34022# create a shared library.
34023predep_objects=$lt_predep_objects_FC
34024postdep_objects=$lt_postdep_objects_FC
34025predeps=$lt_predeps_FC
34026postdeps=$lt_postdeps_FC
34027
34028# The library search path used internally by the compiler when linking
34029# a shared library.
34030compiler_lib_search_path=$lt_compiler_lib_search_path_FC
34031
34032# ### END LIBTOOL TAG CONFIG: FC
34033_LT_EOF
34034
679c0f9a 34035 ;;
5213506e 34036 "gstdint.h":C)
c13e029b
PB
34037if test "$GCC" = yes; then
34038 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
34039else
34040 echo "/* generated for $CC */" > tmp-stdint.h
34041fi
4c4b3eb0 34042
c13e029b
PB
34043sed 's/^ *//' >> tmp-stdint.h <<EOF
34044
34045 #ifndef GCC_GENERATED_STDINT_H
34046 #define GCC_GENERATED_STDINT_H 1
34047
34048 #include <sys/types.h>
4c4b3eb0 34049EOF
4c4b3eb0 34050
c13e029b
PB
34051if test "$acx_cv_header_stdint" != stdint.h; then
34052 echo "#include <stddef.h>" >> tmp-stdint.h
34053fi
34054if test "$acx_cv_header_stdint" != stddef.h; then
34055 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
34056fi
34057
34058sed 's/^ *//' >> tmp-stdint.h <<EOF
34059 /* glibc uses these symbols as guards to prevent redefinitions. */
34060 #ifdef __int8_t_defined
34061 #define _INT8_T
34062 #define _INT16_T
34063 #define _INT32_T
34064 #endif
34065 #ifdef __uint32_t_defined
34066 #define _UINT32_T
34067 #endif
34068
34069EOF
34070
34071# ----------------- done header, emit basic int types -------------
34072if test "$acx_cv_header_stdint" = stddef.h; then
34073 sed 's/^ *//' >> tmp-stdint.h <<EOF
34074
34075 #ifndef _UINT8_T
34076 #define _UINT8_T
34077 #ifndef __uint8_t_defined
34078 #define __uint8_t_defined
b9497ab5 34079 #ifndef uint8_t
c13e029b
PB
34080 typedef unsigned $acx_cv_type_int8_t uint8_t;
34081 #endif
34082 #endif
b9497ab5 34083 #endif
c13e029b
PB
34084
34085 #ifndef _UINT16_T
34086 #define _UINT16_T
34087 #ifndef __uint16_t_defined
34088 #define __uint16_t_defined
b9497ab5 34089 #ifndef uint16_t
c13e029b
PB
34090 typedef unsigned $acx_cv_type_int16_t uint16_t;
34091 #endif
34092 #endif
b9497ab5 34093 #endif
c13e029b
PB
34094
34095 #ifndef _UINT32_T
34096 #define _UINT32_T
34097 #ifndef __uint32_t_defined
34098 #define __uint32_t_defined
b9497ab5 34099 #ifndef uint32_t
c13e029b
PB
34100 typedef unsigned $acx_cv_type_int32_t uint32_t;
34101 #endif
34102 #endif
b9497ab5 34103 #endif
c13e029b
PB
34104
34105 #ifndef _INT8_T
34106 #define _INT8_T
34107 #ifndef __int8_t_defined
34108 #define __int8_t_defined
b9497ab5 34109 #ifndef int8_t
c13e029b
PB
34110 typedef $acx_cv_type_int8_t int8_t;
34111 #endif
34112 #endif
b9497ab5 34113 #endif
c13e029b
PB
34114
34115 #ifndef _INT16_T
34116 #define _INT16_T
34117 #ifndef __int16_t_defined
34118 #define __int16_t_defined
b9497ab5 34119 #ifndef int16_t
c13e029b
PB
34120 typedef $acx_cv_type_int16_t int16_t;
34121 #endif
34122 #endif
b9497ab5 34123 #endif
c13e029b
PB
34124
34125 #ifndef _INT32_T
34126 #define _INT32_T
34127 #ifndef __int32_t_defined
34128 #define __int32_t_defined
b9497ab5 34129 #ifndef int32_t
c13e029b
PB
34130 typedef $acx_cv_type_int32_t int32_t;
34131 #endif
34132 #endif
b9497ab5 34133 #endif
c13e029b
PB
34134EOF
34135elif test "$ac_cv_type_u_int32_t" = yes; then
34136 sed 's/^ *//' >> tmp-stdint.h <<EOF
34137
34138 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
34139 #ifndef _INT8_T
34140 #define _INT8_T
34141 #endif
34142 #ifndef _INT16_T
34143 #define _INT16_T
34144 #endif
34145 #ifndef _INT32_T
34146 #define _INT32_T
34147 #endif
34148
34149 #ifndef _UINT8_T
34150 #define _UINT8_T
34151 #ifndef __uint8_t_defined
34152 #define __uint8_t_defined
b9497ab5 34153 #ifndef uint8_t
c13e029b
PB
34154 typedef u_int8_t uint8_t;
34155 #endif
34156 #endif
b9497ab5 34157 #endif
c13e029b
PB
34158
34159 #ifndef _UINT16_T
34160 #define _UINT16_T
34161 #ifndef __uint16_t_defined
34162 #define __uint16_t_defined
b9497ab5 34163 #ifndef uint16_t
c13e029b
PB
34164 typedef u_int16_t uint16_t;
34165 #endif
34166 #endif
b9497ab5 34167 #endif
c13e029b
PB
34168
34169 #ifndef _UINT32_T
34170 #define _UINT32_T
34171 #ifndef __uint32_t_defined
34172 #define __uint32_t_defined
b9497ab5 34173 #ifndef uint32_t
c13e029b
PB
34174 typedef u_int32_t uint32_t;
34175 #endif
34176 #endif
b9497ab5 34177 #endif
c13e029b
PB
34178EOF
34179else
34180 sed 's/^ *//' >> tmp-stdint.h <<EOF
34181
34182 /* Some systems have guard macros to prevent redefinitions, define them. */
34183 #ifndef _INT8_T
34184 #define _INT8_T
34185 #endif
34186 #ifndef _INT16_T
34187 #define _INT16_T
34188 #endif
34189 #ifndef _INT32_T
34190 #define _INT32_T
34191 #endif
34192 #ifndef _UINT8_T
34193 #define _UINT8_T
34194 #endif
34195 #ifndef _UINT16_T
34196 #define _UINT16_T
34197 #endif
34198 #ifndef _UINT32_T
34199 #define _UINT32_T
34200 #endif
34201EOF
34202fi
34203
34204# ------------- done basic int types, emit int64_t types ------------
34205if test "$ac_cv_type_uint64_t" = yes; then
34206 sed 's/^ *//' >> tmp-stdint.h <<EOF
34207
34208 /* system headers have good uint64_t and int64_t */
34209 #ifndef _INT64_T
34210 #define _INT64_T
34211 #endif
34212 #ifndef _UINT64_T
34213 #define _UINT64_T
34214 #endif
34215EOF
34216elif test "$ac_cv_type_u_int64_t" = yes; then
34217 sed 's/^ *//' >> tmp-stdint.h <<EOF
34218
34219 /* system headers have an u_int64_t (and int64_t) */
34220 #ifndef _INT64_T
34221 #define _INT64_T
34222 #endif
34223 #ifndef _UINT64_T
34224 #define _UINT64_T
34225 #ifndef __uint64_t_defined
34226 #define __uint64_t_defined
b9497ab5 34227 #ifndef uint64_t
c13e029b
PB
34228 typedef u_int64_t uint64_t;
34229 #endif
34230 #endif
b9497ab5 34231 #endif
c13e029b
PB
34232EOF
34233elif test -n "$acx_cv_type_int64_t"; then
34234 sed 's/^ *//' >> tmp-stdint.h <<EOF
34235
34236 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
34237 #ifndef _INT64_T
34238 #define _INT64_T
b9497ab5 34239 #ifndef int64_t
c13e029b
PB
34240 typedef $acx_cv_type_int64_t int64_t;
34241 #endif
b9497ab5 34242 #endif
c13e029b
PB
34243 #ifndef _UINT64_T
34244 #define _UINT64_T
34245 #ifndef __uint64_t_defined
34246 #define __uint64_t_defined
b9497ab5 34247 #ifndef uint64_t
c13e029b
PB
34248 typedef unsigned $acx_cv_type_int64_t uint64_t;
34249 #endif
34250 #endif
b9497ab5 34251 #endif
c13e029b
PB
34252EOF
34253else
34254 sed 's/^ *//' >> tmp-stdint.h <<EOF
34255
34256 /* some common heuristics for int64_t, using compiler-specific tests */
34257 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
34258 #ifndef _INT64_T
34259 #define _INT64_T
34260 #ifndef __int64_t_defined
b9497ab5 34261 #ifndef int64_t
c13e029b
PB
34262 typedef long long int64_t;
34263 #endif
34264 #endif
b9497ab5 34265 #endif
c13e029b
PB
34266 #ifndef _UINT64_T
34267 #define _UINT64_T
b9497ab5 34268 #ifndef uint64_t
c13e029b
PB
34269 typedef unsigned long long uint64_t;
34270 #endif
b9497ab5 34271 #endif
c13e029b
PB
34272
34273 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
34274 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
34275 does not implement __extension__. But that compiler doesn't define
34276 __GNUC_MINOR__. */
34277 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
34278 # define __extension__
34279 # endif
34280
34281 # ifndef _INT64_T
34282 # define _INT64_T
b9497ab5 34283 # ifndef int64_t
c13e029b
PB
34284 __extension__ typedef long long int64_t;
34285 # endif
b9497ab5 34286 # endif
c13e029b
PB
34287 # ifndef _UINT64_T
34288 # define _UINT64_T
b9497ab5 34289 # ifndef uint64_t
c13e029b
PB
34290 __extension__ typedef unsigned long long uint64_t;
34291 # endif
b9497ab5 34292 # endif
c13e029b
PB
34293
34294 #elif !defined __STRICT_ANSI__
34295 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
34296
34297 # ifndef _INT64_T
34298 # define _INT64_T
b9497ab5 34299 # ifndef int64_t
c13e029b
PB
34300 typedef __int64 int64_t;
34301 # endif
b9497ab5 34302 # endif
c13e029b
PB
34303 # ifndef _UINT64_T
34304 # define _UINT64_T
b9497ab5 34305 # ifndef uint64_t
c13e029b
PB
34306 typedef unsigned __int64 uint64_t;
34307 # endif
b9497ab5 34308 # endif
c13e029b
PB
34309 # endif /* compiler */
34310
34311 #endif /* ANSI version */
34312EOF
34313fi
34314
34315# ------------- done int64_t types, emit intptr types ------------
34316if test "$ac_cv_type_uintptr_t" != yes; then
34317 sed 's/^ *//' >> tmp-stdint.h <<EOF
34318
34319 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
34320 #ifndef __uintptr_t_defined
b9497ab5 34321 #ifndef uintptr_t
c13e029b
PB
34322 typedef u$acx_cv_type_intptr_t uintptr_t;
34323 #endif
b9497ab5 34324 #endif
c13e029b 34325 #ifndef __intptr_t_defined
b9497ab5 34326 #ifndef intptr_t
c13e029b
PB
34327 typedef $acx_cv_type_intptr_t intptr_t;
34328 #endif
b9497ab5 34329 #endif
c13e029b
PB
34330EOF
34331fi
34332
34333# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 34334if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 34335 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
34336
34337 /* Define int_least types */
34338 typedef int8_t int_least8_t;
34339 typedef int16_t int_least16_t;
34340 typedef int32_t int_least32_t;
c13e029b 34341 #ifdef _INT64_T
4c4b3eb0 34342 typedef int64_t int_least64_t;
c13e029b 34343 #endif
4c4b3eb0
PB
34344
34345 typedef uint8_t uint_least8_t;
34346 typedef uint16_t uint_least16_t;
34347 typedef uint32_t uint_least32_t;
c13e029b 34348 #ifdef _UINT64_T
4c4b3eb0 34349 typedef uint64_t uint_least64_t;
c13e029b 34350 #endif
4c4b3eb0
PB
34351EOF
34352fi
34353
c13e029b 34354# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 34355if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 34356 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
34357
34358 /* Define int_fast types. short is often slow */
34359 typedef int8_t int_fast8_t;
34360 typedef int int_fast16_t;
34361 typedef int32_t int_fast32_t;
c13e029b 34362 #ifdef _INT64_T
4c4b3eb0 34363 typedef int64_t int_fast64_t;
c13e029b 34364 #endif
4c4b3eb0
PB
34365
34366 typedef uint8_t uint_fast8_t;
34367 typedef unsigned int uint_fast16_t;
34368 typedef uint32_t uint_fast32_t;
c13e029b 34369 #ifdef _UINT64_T
4c4b3eb0 34370 typedef uint64_t uint_fast64_t;
c13e029b
PB
34371 #endif
34372EOF
34373fi
34374
34375if test "$ac_cv_type_uintmax_t" != yes; then
34376 sed 's/^ *//' >> tmp-stdint.h <<EOF
34377
34378 /* Define intmax based on what we found */
b9497ab5 34379 #ifndef intmax_t
c13e029b
PB
34380 #ifdef _INT64_T
34381 typedef int64_t intmax_t;
34382 #else
34383 typedef long intmax_t;
34384 #endif
b9497ab5
RO
34385 #endif
34386 #ifndef uintmax_t
c13e029b
PB
34387 #ifdef _UINT64_T
34388 typedef uint64_t uintmax_t;
34389 #else
34390 typedef unsigned long uintmax_t;
34391 #endif
b9497ab5 34392 #endif
4c4b3eb0
PB
34393EOF
34394fi
34395
c13e029b
PB
34396sed 's/^ *//' >> tmp-stdint.h <<EOF
34397
34398 #endif /* GCC_GENERATED_STDINT_H */
34399EOF
4c4b3eb0 34400
c13e029b
PB
34401if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
34402 rm -f tmp-stdint.h
4c4b3eb0 34403else
c13e029b 34404 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
34405fi
34406
34407 ;;
5213506e 34408
6de9cd9a 34409 esac
5213506e 34410done # for ac_tag
6de9cd9a 34411
6de9cd9a 34412
5213506e 34413as_fn_exit 0
6de9cd9a 34414_ACEOF
6de9cd9a
DN
34415ac_clean_files=$ac_clean_files_save
34416
5213506e 34417test $ac_write_fail = 0 ||
22e05272 34418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 34419
6de9cd9a
DN
34420
34421# configure is writing to config.log, and then calls config.status.
34422# config.status does its own redirection, appending to config.log.
34423# Unfortunately, on DOS this fails, as config.log is still kept open
34424# by configure, so config.status won't be able to write to it; its
34425# output is simply discarded. So we exec the FD to /dev/null,
34426# effectively closing config.log, so it can be properly (re)opened and
34427# appended to by config.status. When coming back to configure, we
34428# need to make the FD available again.
34429if test "$no_create" != yes; then
34430 ac_cs_success=:
34431 ac_config_status_args=
34432 test "$silent" = yes &&
34433 ac_config_status_args="$ac_config_status_args --quiet"
34434 exec 5>/dev/null
34435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34436 exec 5>>config.log
34437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34438 # would make configure fail if this is the last instruction.
22e05272 34439 $ac_cs_success || as_fn_exit 1
5213506e
RW
34440fi
34441if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34443$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
34444fi
34445
This page took 7.873389 seconds and 5 git commands to generate.