]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
libgfortran: Fix build on non-glibc targets
[thirdparty/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
1ec601bf
FXC
648LIBGFOR_BUILD_QUAD_FALSE
649LIBGFOR_BUILD_QUAD_TRUE
650LIBQUADINCLUDE
651LIBQUADLIB_DEP
652LIBQUADLIB
653LIBQUADSPEC
5213506e
RW
654extra_ldflags_libgfortran
655ac_ct_FC
656FCFLAGS
657FC
658enable_static
659enable_shared
7de6ba7a 660lt_host_flags
9b025925 661LIBM
5213506e
RW
662OTOOL64
663OTOOL
664LIPO
665NMEDIT
666DSYMUTIL
5213506e
RW
667OBJDUMP
668LN_S
669NM
670ac_ct_DUMPBIN
671DUMPBIN
5213506e
RW
672LIBTOOL
673RANLIB
674AR
675AS
66dbcf2d
RO
676HAVE_HWCAP_FALSE
677HAVE_HWCAP_TRUE
678HWCAP_LDFLAGS
679LD
680FGREP
681SED
5213506e 682SECTION_FLAGS
2e764ae1
TB
683LIBGOMP_CHECKED_REAL_KINDS
684LIBGOMP_CHECKED_INT_KINDS
ee95f928
BS
685LIBGFOR_MINIMAL_FALSE
686LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
687LIBGFOR_USE_SYMVER_SUN_FALSE
688LIBGFOR_USE_SYMVER_SUN_TRUE
689LIBGFOR_USE_SYMVER_GNU_FALSE
690LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
691LIBGFOR_USE_SYMVER_FALSE
692LIBGFOR_USE_SYMVER_TRUE
693AM_CFLAGS
694AM_FCFLAGS
49ad4d2c
TK
695HAVE_REAL_17_FALSE
696HAVE_REAL_17_TRUE
21be0a5a
JB
697toolexeclibdir
698toolexecdir
699EGREP
700GREP
701CPP
5213506e
RW
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
c20fdb91 705am__nodep
5213506e
RW
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
5213506e
RW
719multi_basedir
720MAINT
721MAINTAINER_MODE_FALSE
722MAINTAINER_MODE_TRUE
22e05272
JM
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
5213506e
RW
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
60858d8a 750target_noncanonical
5213506e
RW
751target_os
752target_vendor
753target_cpu
754target
755host_os
756host_vendor
757host_cpu
758host
759onestep
760onestep_FALSE
761onestep_TRUE
762target_subdir
763host_subdir
764build_subdir
765build_libsubdir
766build_os
767build_vendor
768build_cpu
769build
770target_alias
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
6de9cd9a 808ac_subst_files=''
5213506e
RW
809ac_user_opts='
810enable_option_checking
811with_build_libsubdir
812enable_version_specific_runtime_libs
813enable_intermodule
22e05272 814enable_silent_rules
5213506e
RW
815enable_maintainer_mode
816enable_multilib
817enable_dependency_tracking
e8e66971 818with_toolexeclibdir
26724ef9 819enable_cet
bf382f5f 820enable_symvers
66dbcf2d 821with_gnu_ld
5213506e
RW
822enable_shared
823enable_static
824with_pic
825enable_fast_install
5213506e
RW
826enable_libtool_lock
827enable_largefile
87e6d9dc 828enable_libquadmath_support
3c36aa6b 829with_gcc_major_version_only
5213506e
RW
830'
831 ac_precious_vars='build_alias
832host_alias
833target_alias
21be0a5a
JB
834CC
835CFLAGS
836LDFLAGS
837LIBS
5213506e 838CPPFLAGS
21be0a5a 839CPP
5213506e 840FC
21be0a5a 841FCFLAGS'
5213506e 842
6de9cd9a
DN
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
5213506e
RW
847ac_unrecognized_opts=
848ac_unrecognized_sep=
6de9cd9a
DN
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 871# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
5213506e
RW
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
6de9cd9a
DN
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
6de9cd9a
DN
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
5213506e
RW
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
6de9cd9a
DN
891
892ac_prev=
5213506e 893ac_dashdash=
6de9cd9a
DN
894for ac_option
895do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
5213506e 898 eval $ac_prev=\$ac_option
6de9cd9a
DN
899 ac_prev=
900 continue
901 fi
902
5213506e 903 case $ac_option in
22e05272
JM
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
5213506e 907 esac
6de9cd9a
DN
908
909 # Accept the important Cygnus configure options, so we can diagnose typos.
910
5213506e
RW
911 case $ac_dashdash$ac_option in
912 --)
913 ac_dashdash=yes ;;
6de9cd9a
DN
914
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
919
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
924
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
931
932 --config-cache | -C)
933 cache_file=config.cache ;;
934
5213506e 935 -datadir | --datadir | --datadi | --datad)
6de9cd9a 936 ac_prev=datadir ;;
5213506e 937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
938 datadir=$ac_optarg ;;
939
5213506e
RW
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
946
6de9cd9a 947 -disable-* | --disable-*)
5213506e 948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 949 # Reject names that are not valid shell variable names.
5213506e 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 951 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
962
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
967
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
6de9cd9a
DN
972
973 -enable-* | --enable-*)
5213506e 974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 975 # Reject names that are not valid shell variable names.
5213506e 976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 977 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
38d24731 986 esac
5213506e 987 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
988
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
997
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1001
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1008
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1013
5213506e
RW
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1019
6de9cd9a
DN
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1026
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1031
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1036
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1043
5213506e
RW
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1048
6de9cd9a 1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1050 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1054 localstatedir=$ac_optarg ;;
1055
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1060
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1064
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1068
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1072
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1081
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1086
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1093
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1100
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1117
5213506e
RW
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1122
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1127
6de9cd9a
DN
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
5213506e 1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1179 # Reject names that are not valid shell variable names.
5213506e 1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1181 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
38d24731 1190 esac
5213506e 1191 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1192
1193 -without-* | --without-*)
5213506e 1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1195 # Reject names that are not valid shell variable names.
5213506e 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1197 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
22e05272
JM
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
6de9cd9a
DN
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
5213506e
RW
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1237 esac
1238 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
5213506e 1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
6de9cd9a
DN
1247 ;;
1248
1249 esac
1250done
1251
1252if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1254 as_fn_error $? "missing argument to $ac_option"
6de9cd9a
DN
1255fi
1256
5213506e
RW
1257if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
22e05272 1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1262 esac
5213506e 1263fi
38d24731 1264
5213506e
RW
1265# Check all directory arguments for consistency.
1266for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e9085da5 1269 libdir localedir mandir
38d24731 1270do
5213506e
RW
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
38d24731 1279 case $ac_val in
5213506e
RW
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1282 esac
22e05272 1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
6de9cd9a
DN
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
5213506e
RW
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1311 as_fn_error $? "working directory cannot be determined"
5213506e 1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1313 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1314
1315
6de9cd9a
DN
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
5213506e
RW
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
6de9cd9a 1343 srcdir=$ac_confdir
5213506e 1344 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
5213506e
RW
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
22e05272 1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
6de9cd9a
DN
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
0dce3ca1 1382\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
22e05272 1396 -q, --quiet, --silent do not print \`checking ...' messages
6de9cd9a
DN
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
6de9cd9a
DN
1402Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1404 [$ac_default_prefix]
6de9cd9a 1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1406 [PREFIX]
6de9cd9a
DN
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
5213506e
RW
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1435_ACEOF
1436
1437 cat <<\_ACEOF
1438
1439Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443
1444System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1447 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1448_ACEOF
1449fi
1450
1451if test -n "$ac_init_help"; then
1452 case $ac_init_help in
0dce3ca1 1453 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1454 esac
1455 cat <<\_ACEOF
1456
1457Optional Features:
5213506e 1458 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1461 --enable-version-specific-runtime-libs
1462 specify that runtime libraries should be installed
1463 in a compiler-specific directory
b808ac33 1464 --enable-intermodule build the library in one step
22e05272
JM
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
96b8a615 1470 --enable-multilib build many library versions (default)
22e05272
JM
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
8d286dd1 1475 --enable-cet enable Intel CET in target libraries [default=auto]
bf382f5f 1476 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
6de9cd9a 1481 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1482 --disable-largefile omit support for large files
87e6d9dc
TB
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
6de9cd9a
DN
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1489 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8e66971
MR
1490 --with-toolexeclibdir=DIR
1491 install libraries built with a cross compiler within
1492 DIR
66dbcf2d 1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1495 both]
3c36aa6b
JJ
1496 --with-gcc-major-version-only
1497 use only GCC major number in filesystem paths
6de9cd9a
DN
1498
1499Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
5213506e 1504 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1506 you have headers in a nonstandard directory <include dir>
1cf3d07d 1507 CPP C preprocessor
c7a35fe9
AS
1508 FC Fortran compiler command
1509 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
5213506e
RW
1514Report bugs to the package provider.
1515GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1516General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1517_ACEOF
5213506e 1518ac_status=$?
6de9cd9a
DN
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
6de9cd9a 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
6de9cd9a
DN
1527 ac_builddir=.
1528
5213506e
RW
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1544
1545case $srcdir in
5213506e 1546 .) # We are building in place.
6de9cd9a 1547 ac_srcdir=.
5213506e
RW
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1551 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1558esac
5213506e
RW
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1569 else
5213506e
RW
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1573 done
1574fi
1575
5213506e 1576test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1577if $ac_init_version; then
1578 cat <<\_ACEOF
0dce3ca1 1579GNU Fortran Runtime Library configure 0.3
22e05272 1580generated by GNU Autoconf 2.69
6de9cd9a 1581
22e05272 1582Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
1583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
1585_ACEOF
5213506e 1586 exit
6de9cd9a 1587fi
6de9cd9a 1588
5213506e
RW
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
6de9cd9a 1592
5213506e
RW
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1623
5213506e
RW
1624 ac_retval=1
1625fi
22e05272
JM
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
5213506e
RW
1628
1629} # ac_fn_c_try_compile
1630
21be0a5a
JB
1631# ac_fn_c_try_cpp LINENO
1632# ----------------------
1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_cpp ()
6de9cd9a 1635{
5213506e 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
21be0a5a 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1652 test $ac_status = 0; } > conftest.i && {
21be0a5a 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1654 test ! -s conftest.err
5213506e
RW
1655 }; then :
1656 ac_retval=0
1657else
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1660
21be0a5a 1661 ac_retval=1
5213506e 1662fi
22e05272
JM
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
6de9cd9a 1665
21be0a5a 1666} # ac_fn_c_try_cpp
6de9cd9a 1667
21be0a5a 1668# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1669# -------------------------------------------------------
21be0a5a
JB
1670# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671# the include files in INCLUDES and setting the cache variable VAR
1672# accordingly.
1673ac_fn_c_check_header_mongrel ()
5213506e
RW
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1676 if eval \${$3+:} false; then :
5213506e
RW
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
22e05272 1679if eval \${$3+:} false; then :
5213506e 1680 $as_echo_n "(cached) " >&6
21be0a5a
JB
1681fi
1682eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
5213506e 1685else
21be0a5a
JB
1686 # Is the header compilable?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688$as_echo_n "checking $2 usability... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1690/* end confdefs.h. */
1691$4
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1695 ac_header_compiler=yes
5213506e 1696else
21be0a5a 1697 ac_header_compiler=no
5213506e
RW
1698fi
1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1702
21be0a5a
JB
1703# Is the header present?
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705$as_echo_n "checking $2 presence... " >&6; }
1706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_cpp "$LINENO"; then :
1711 ac_header_preproc=yes
1712else
1713 ac_header_preproc=no
1714fi
22e05272 1715rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1718
21be0a5a
JB
1719# So? What about this header?
1720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 yes:no: )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727 no:yes:* )
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1731$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1735$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738 ;;
5213506e 1739esac
21be0a5a
JB
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
22e05272 1742if eval \${$3+:} false; then :
21be0a5a 1743 $as_echo_n "(cached) " >&6
5213506e 1744else
21be0a5a
JB
1745 eval "$3=\$ac_header_compiler"
1746fi
1747eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
5213506e 1750fi
22e05272 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1752
21be0a5a 1753} # ac_fn_c_check_header_mongrel
6de9cd9a 1754
5213506e
RW
1755# ac_fn_c_try_run LINENO
1756# ----------------------
1757# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758# that executables *can* be run.
1759ac_fn_c_try_run ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1788
5213506e
RW
1789 ac_retval=$ac_status
1790fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
6de9cd9a 1794
5213506e 1795} # ac_fn_c_try_run
6de9cd9a 1796
21be0a5a
JB
1797# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798# -------------------------------------------------------
1799# Tests whether HEADER exists and can be compiled using the include files in
1800# INCLUDES, setting the cache variable VAR accordingly.
1801ac_fn_c_check_header_compile ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
22e05272 1806if eval \${$3+:} false; then :
21be0a5a
JB
1807 $as_echo_n "(cached) " >&6
1808else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$3=yes"
1816else
1817 eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
22e05272 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21be0a5a
JB
1825
1826} # ac_fn_c_check_header_compile
1827
1828# ac_fn_c_try_link LINENO
1829# -----------------------
1830# Try to link conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_c_try_link ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
22e05272 1855 test -x conftest$ac_exeext
21be0a5a
JB
1856 }; then :
1857 ac_retval=0
1858else
1859 $as_echo "$as_me: failed program was:" >&5
1860sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863fi
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
21be0a5a
JB
1871
1872} # ac_fn_c_try_link
1873
5213506e
RW
1874# ac_fn_c_check_func LINENO FUNC VAR
1875# ----------------------------------
1876# Tests whether FUNC exists, setting the cache variable VAR accordingly
1877ac_fn_c_check_func ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
22e05272 1882if eval \${$3+:} false; then :
5213506e
RW
1883 $as_echo_n "(cached) " >&6
1884else
1885 if test x$gcc_no_link = xyes; then
22e05272 1886 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1887fi
1888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892#define $2 innocuous_$2
6de9cd9a 1893
5213506e
RW
1894/* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1898
5213506e
RW
1899#ifdef __STDC__
1900# include <limits.h>
1901#else
1902# include <assert.h>
1903#endif
6de9cd9a 1904
5213506e
RW
1905#undef $2
1906
1907/* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1910#ifdef __cplusplus
1911extern "C"
1912#endif
1913char $2 ();
1914/* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917#if defined __stub_$2 || defined __stub___$2
1918choke me
1919#endif
1920
1921int
1922main ()
38d24731 1923{
5213506e
RW
1924return $2 ();
1925 ;
1926 return 0;
38d24731 1927}
5213506e
RW
1928_ACEOF
1929if ac_fn_c_try_link "$LINENO"; then :
1930 eval "$3=yes"
1931else
1932 eval "$3=no"
1933fi
1934rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
22e05272 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1941
5213506e 1942} # ac_fn_c_check_func
6de9cd9a 1943
5213506e
RW
1944# ac_fn_fc_try_compile LINENO
1945# ---------------------------
1946# Try to compile conftest.$ac_ext, and return whether this succeeded.
1947ac_fn_fc_try_compile ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 rm -f conftest.$ac_objext
1951 if { { ac_try="$ac_compile"
1952case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_compile") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && {
1967 test -z "$ac_fc_werror_flag" ||
1968 test ! -s conftest.err
1969 } && test -s conftest.$ac_objext; then :
1970 ac_retval=0
1971else
1972 $as_echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1974
5213506e
RW
1975 ac_retval=1
1976fi
22e05272
JM
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
6de9cd9a 1979
5213506e 1980} # ac_fn_fc_try_compile
6de9cd9a 1981
5213506e
RW
1982# ac_fn_fc_try_link LINENO
1983# ------------------------
1984# Try to link conftest.$ac_ext, and return whether this succeeded.
1985ac_fn_fc_try_link ()
1986{
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_fc_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
22e05272 2009 test -x conftest$ac_exeext
5213506e
RW
2010 }; then :
2011 ac_retval=0
2012else
2013 $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 2015
5213506e
RW
2016 ac_retval=1
2017fi
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
6de9cd9a 2025
5213506e 2026} # ac_fn_fc_try_link
6de9cd9a 2027
5213506e
RW
2028# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2029# -------------------------------------------
2030# Tests whether TYPE exists after having included INCLUDES, setting cache
2031# variable VAR accordingly.
2032ac_fn_c_check_type ()
2033{
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
22e05272 2037if eval \${$3+:} false; then :
5213506e
RW
2038 $as_echo_n "(cached) " >&6
2039else
2040 eval "$3=no"
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047if (sizeof ($2))
2048 return 0;
2049 ;
2050 return 0;
2051}
6de9cd9a 2052_ACEOF
5213506e
RW
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057int
2058main ()
2059{
2060if (sizeof (($2)))
2061 return 0;
2062 ;
2063 return 0;
2064}
6de9cd9a 2065_ACEOF
5213506e 2066if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2067
5213506e
RW
2068else
2069 eval "$3=yes"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077$as_echo "$ac_res" >&6; }
22e05272 2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2079
5213506e 2080} # ac_fn_c_check_type
6de9cd9a 2081
21be0a5a
JB
2082# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2083# --------------------------------------------
2084# Tries to find the compile-time value of EXPR in a program that includes
2085# INCLUDES, setting VAR accordingly. Returns whether the value could be
2086# computed
2087ac_fn_c_compute_int ()
5213506e
RW
2088{
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2090 if test "$cross_compiling" = yes; then
2091 # Depending upon the size, compute the lo and hi bounds.
2092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2093/* end confdefs.h. */
c13e029b 2094$4
5213506e
RW
2095int
2096main ()
2097{
c13e029b 2098static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2099test_array [0] = 0;
2100return test_array [0];
6de9cd9a 2101
5213506e
RW
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2107 ac_lo=0 ac_mid=0
2108 while :; do
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2110/* end confdefs.h. */
c13e029b 2111$4
5213506e
RW
2112int
2113main ()
2114{
c13e029b 2115static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2116test_array [0] = 0;
2117return test_array [0];
6de9cd9a 2118
5213506e
RW
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2124 ac_hi=$ac_mid; break
5213506e 2125else
c13e029b
PB
2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127 if test $ac_lo -le $ac_mid; then
2128 ac_lo= ac_hi=
2129 break
2130 fi
2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2134 done
2135else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2143test_array [0] = 0;
2144return test_array [0];
c13e029b
PB
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=-1 ac_mid=-1
2152 while :; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2160test_array [0] = 0;
2161return test_array [0];
c13e029b
PB
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_lo=$ac_mid; break
2169else
2170 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2171 if test $ac_mid -le $ac_hi; then
2172 ac_lo= ac_hi=
2173 break
2174 fi
2175 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2178 done
d72a3ac1 2179else
c13e029b 2180 ac_lo= ac_hi=
5213506e 2181fi
c13e029b 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2183fi
c13e029b
PB
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185# Binary search between lo and hi bounds.
2186while test "x$ac_lo" != "x$ac_hi"; do
2187 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2189/* end confdefs.h. */
c13e029b 2190$4
5213506e
RW
2191int
2192main ()
2193{
c13e029b 2194static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2195test_array [0] = 0;
2196return test_array [0];
6de9cd9a 2197
5213506e
RW
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2203 ac_hi=$ac_mid
2204else
2205 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2208done
2209case $ac_lo in #((
2210?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2211'') ac_retval=1 ;;
2212esac
2213 else
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217static long int longval () { return $2; }
2218static unsigned long int ulongval () { return $2; }
2219#include <stdio.h>
2220#include <stdlib.h>
2221int
2222main ()
2223{
6de9cd9a 2224
c13e029b
PB
2225 FILE *f = fopen ("conftest.val", "w");
2226 if (! f)
2227 return 1;
2228 if (($2) < 0)
2229 {
2230 long int i = longval ();
2231 if (i != ($2))
2232 return 1;
2233 fprintf (f, "%ld", i);
2234 }
2235 else
2236 {
2237 unsigned long int i = ulongval ();
2238 if (i != ($2))
2239 return 1;
2240 fprintf (f, "%lu", i);
2241 }
2242 /* Do not output a trailing newline, as this causes \r\n confusion
2243 on some platforms. */
2244 return ferror (f) || fclose (f) != 0;
2245
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_run "$LINENO"; then :
2251 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2252else
c13e029b 2253 ac_retval=1
d72a3ac1 2254fi
c13e029b
PB
2255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2256 conftest.$ac_objext conftest.beam conftest.$ac_ext
2257rm -f conftest.val
2258
2259 fi
22e05272
JM
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 as_fn_set_status $ac_retval
6de9cd9a 2262
c13e029b 2263} # ac_fn_c_compute_int
6de9cd9a 2264
5213506e
RW
2265# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266# ----------------------------------------------------
2267# Tries to find if the field MEMBER exists in type AGGR, after including
2268# INCLUDES, setting cache variable VAR accordingly.
2269ac_fn_c_check_member ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273$as_echo_n "checking for $2.$3... " >&6; }
22e05272 2274if eval \${$4+:} false; then :
5213506e
RW
2275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$5
2280int
2281main ()
2282{
2283static $2 ac_aggr;
2284if (ac_aggr.$3)
2285return 0;
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_compile "$LINENO"; then :
2291 eval "$4=yes"
2292else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h. */
2295$5
2296int
2297main ()
2298{
2299static $2 ac_aggr;
2300if (sizeof ac_aggr.$3)
2301return 0;
2302 ;
2303 return 0;
2304}
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308else
2309 eval "$4=no"
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$4
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
22e05272 2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2319
5213506e
RW
2320} # ac_fn_c_check_member
2321cat >config.log <<_ACEOF
2322This file contains any messages produced by compilers while
2323running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2324
5213506e 2325It was created by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 2326generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a 2327
5213506e 2328 $ $0 $@
6de9cd9a 2329
5213506e
RW
2330_ACEOF
2331exec 5>>config.log
2332{
2333cat <<_ASUNAME
2334## --------- ##
2335## Platform. ##
2336## --------- ##
6de9cd9a 2337
5213506e
RW
2338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2339uname -m = `(uname -m) 2>/dev/null || echo unknown`
2340uname -r = `(uname -r) 2>/dev/null || echo unknown`
2341uname -s = `(uname -s) 2>/dev/null || echo unknown`
2342uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2343
5213506e
RW
2344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2345/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2346
5213506e
RW
2347/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2348/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2350/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2351/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2352/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2353/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2354
5213506e 2355_ASUNAME
18c04407 2356
5213506e
RW
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 $as_echo "PATH: $as_dir"
2363 done
2364IFS=$as_save_IFS
18c04407 2365
5213506e 2366} >&5
18c04407 2367
5213506e 2368cat >&5 <<_ACEOF
6de9cd9a
DN
2369
2370
5213506e
RW
2371## ----------- ##
2372## Core tests. ##
2373## ----------- ##
78511f8b 2374
5213506e 2375_ACEOF
38d24731 2376
96b8a615 2377
5213506e
RW
2378# Keep a trace of the command line.
2379# Strip out --no-create and --no-recursion so they do not pile up.
2380# Strip out --silent because we don't want to record it for future runs.
2381# Also quote any args containing shell meta-characters.
2382# Make two passes to allow for proper duplicate-argument suppression.
2383ac_configure_args=
2384ac_configure_args0=
2385ac_configure_args1=
2386ac_must_keep_next=false
2387for ac_pass in 1 2
2388do
2389 for ac_arg
2390 do
2391 case $ac_arg in
2392 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2394 | -silent | --silent | --silen | --sile | --sil)
2395 continue ;;
2396 *\'*)
2397 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 esac
2399 case $ac_pass in
2400 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 2)
2402 as_fn_append ac_configure_args1 " '$ac_arg'"
2403 if test $ac_must_keep_next = true; then
2404 ac_must_keep_next=false # Got value, back to normal.
2405 else
2406 case $ac_arg in
2407 *=* | --config-cache | -C | -disable-* | --disable-* \
2408 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2409 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2410 | -with-* | --with-* | -without-* | --without-* | --x)
2411 case "$ac_configure_args0 " in
2412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2413 esac
2414 ;;
2415 -* ) ac_must_keep_next=true ;;
2416 esac
2417 fi
2418 as_fn_append ac_configure_args " '$ac_arg'"
2419 ;;
2420 esac
2421 done
6de9cd9a 2422done
5213506e
RW
2423{ ac_configure_args0=; unset ac_configure_args0;}
2424{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2425
5213506e
RW
2426# When interrupted or exit'd, cleanup temporary files, and complete
2427# config.log. We remove comments because anyway the quotes in there
2428# would cause problems or look ugly.
2429# WARNING: Use '\'' to represent an apostrophe within the trap.
2430# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2431trap 'exit_status=$?
2432 # Save into config.log some information that might help in debugging.
2433 {
2434 echo
96b8a615 2435
22e05272 2436 $as_echo "## ---------------- ##
5213506e 2437## Cache variables. ##
22e05272 2438## ---------------- ##"
5213506e
RW
2439 echo
2440 # The following way of writing the cache mishandles newlines in values,
2441(
2442 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2443 eval ac_val=\$$ac_var
2444 case $ac_val in #(
2445 *${as_nl}*)
2446 case $ac_var in #(
2447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2448$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2449 esac
2450 case $ac_var in #(
2451 _ | IFS | as_nl) ;; #(
2452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2453 *) { eval $ac_var=; unset $ac_var;} ;;
2454 esac ;;
2455 esac
2456 done
2457 (set) 2>&1 |
2458 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2459 *${as_nl}ac_space=\ *)
2460 sed -n \
2461 "s/'\''/'\''\\\\'\'''\''/g;
2462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2463 ;; #(
2464 *)
2465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2466 ;;
2467 esac |
2468 sort
2469)
2470 echo
2471
22e05272 2472 $as_echo "## ----------------- ##
5213506e 2473## Output variables. ##
22e05272 2474## ----------------- ##"
5213506e
RW
2475 echo
2476 for ac_var in $ac_subst_vars
2477 do
2478 eval ac_val=\$$ac_var
2479 case $ac_val in
2480 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 esac
2482 $as_echo "$ac_var='\''$ac_val'\''"
2483 done | sort
2484 echo
2485
2486 if test -n "$ac_subst_files"; then
22e05272 2487 $as_echo "## ------------------- ##
5213506e 2488## File substitutions. ##
22e05272 2489## ------------------- ##"
5213506e
RW
2490 echo
2491 for ac_var in $ac_subst_files
2492 do
2493 eval ac_val=\$$ac_var
2494 case $ac_val in
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 esac
2497 $as_echo "$ac_var='\''$ac_val'\''"
2498 done | sort
2499 echo
2500 fi
2501
2502 if test -s confdefs.h; then
22e05272 2503 $as_echo "## ----------- ##
5213506e 2504## confdefs.h. ##
22e05272 2505## ----------- ##"
5213506e
RW
2506 echo
2507 cat confdefs.h
2508 echo
2509 fi
2510 test "$ac_signal" != 0 &&
2511 $as_echo "$as_me: caught signal $ac_signal"
2512 $as_echo "$as_me: exit $exit_status"
2513 } >&5
2514 rm -f core *.core core.conftest.* &&
2515 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2516 exit $exit_status
2517' 0
2518for ac_signal in 1 2 13 15; do
2519 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2520done
2521ac_signal=0
2522
2523# confdefs.h avoids OS command line length limits that DEFS can exceed.
2524rm -f -r conftest* confdefs.h
2525
2526$as_echo "/* confdefs.h */" > confdefs.h
2527
2528# Predefined preprocessor variables.
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_NAME "$PACKAGE_NAME"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_VERSION "$PACKAGE_VERSION"
2540_ACEOF
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_STRING "$PACKAGE_STRING"
2544_ACEOF
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2548_ACEOF
2549
2550cat >>confdefs.h <<_ACEOF
2551#define PACKAGE_URL "$PACKAGE_URL"
2552_ACEOF
2553
2554
2555# Let the site file select an alternate cache file if it wants to.
2556# Prefer an explicitly selected file to automatically selected ones.
2557ac_site_file1=NONE
2558ac_site_file2=NONE
2559if test -n "$CONFIG_SITE"; then
22e05272
JM
2560 # We do not want a PATH search for config.site.
2561 case $CONFIG_SITE in #((
2562 -*) ac_site_file1=./$CONFIG_SITE;;
2563 */*) ac_site_file1=$CONFIG_SITE;;
2564 *) ac_site_file1=./$CONFIG_SITE;;
2565 esac
5213506e
RW
2566elif test "x$prefix" != xNONE; then
2567 ac_site_file1=$prefix/share/config.site
2568 ac_site_file2=$prefix/etc/config.site
2569else
2570 ac_site_file1=$ac_default_prefix/share/config.site
2571 ac_site_file2=$ac_default_prefix/etc/config.site
2572fi
2573for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574do
2575 test "x$ac_site_file" = xNONE && continue
22e05272 2576 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2578$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2579 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2580 . "$ac_site_file" \
2581 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583as_fn_error $? "failed to load site script $ac_site_file
2584See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
2585 fi
2586done
2587
2588if test -r "$cache_file"; then
22e05272
JM
2589 # Some versions of bash will fail to source /dev/null (special files
2590 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2591 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2593$as_echo "$as_me: loading cache $cache_file" >&6;}
2594 case $cache_file in
2595 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2596 *) . "./$cache_file";;
2597 esac
2598 fi
2599else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2601$as_echo "$as_me: creating cache $cache_file" >&6;}
2602 >$cache_file
2603fi
2604
74544378 2605as_fn_append ac_header_list " unistd.h"
864c28e1 2606as_fn_append ac_header_list " sys/random.h"
74544378
JB
2607as_fn_append ac_header_list " sys/time.h"
2608as_fn_append ac_header_list " sys/times.h"
2609as_fn_append ac_header_list " sys/resource.h"
2610as_fn_append ac_header_list " sys/types.h"
2611as_fn_append ac_header_list " sys/stat.h"
edaaef60 2612as_fn_append ac_header_list " sys/uio.h"
74544378
JB
2613as_fn_append ac_header_list " sys/wait.h"
2614as_fn_append ac_header_list " floatingpoint.h"
2615as_fn_append ac_header_list " ieeefp.h"
2616as_fn_append ac_header_list " fenv.h"
2617as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2618as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2619as_fn_append ac_header_list " pwd.h"
2620as_fn_append ac_header_list " complex.h"
9cbecd06 2621as_fn_append ac_header_list " xlocale.h"
74544378
JB
2622as_fn_append ac_func_list " getrusage"
2623as_fn_append ac_func_list " times"
2624as_fn_append ac_func_list " mkstemp"
2625as_fn_append ac_func_list " strtof"
2626as_fn_append ac_func_list " strtold"
2627as_fn_append ac_func_list " snprintf"
2628as_fn_append ac_func_list " ftruncate"
2629as_fn_append ac_func_list " chsize"
2630as_fn_append ac_func_list " chdir"
d66d6d15 2631as_fn_append ac_func_list " getentropy"
74544378
JB
2632as_fn_append ac_func_list " getlogin"
2633as_fn_append ac_func_list " gethostname"
2634as_fn_append ac_func_list " kill"
2635as_fn_append ac_func_list " link"
2636as_fn_append ac_func_list " symlink"
2637as_fn_append ac_func_list " sleep"
2638as_fn_append ac_func_list " ttyname"
ef536b41
JB
2639as_fn_append ac_func_list " sigaction"
2640as_fn_append ac_func_list " waitpid"
74544378
JB
2641as_fn_append ac_func_list " alarm"
2642as_fn_append ac_func_list " access"
2643as_fn_append ac_func_list " fork"
f8886038 2644as_fn_append ac_func_list " posix_spawn"
74544378 2645as_fn_append ac_func_list " setmode"
b5b58343 2646as_fn_append ac_func_list " fcntl"
edaaef60 2647as_fn_append ac_func_list " writev"
74544378
JB
2648as_fn_append ac_func_list " gettimeofday"
2649as_fn_append ac_func_list " stat"
2650as_fn_append ac_func_list " fstat"
2651as_fn_append ac_func_list " lstat"
2652as_fn_append ac_func_list " getpwuid"
2653as_fn_append ac_func_list " vsnprintf"
2654as_fn_append ac_func_list " dup"
2655as_fn_append ac_func_list " getcwd"
2656as_fn_append ac_func_list " localtime_r"
2657as_fn_append ac_func_list " gmtime_r"
74544378
JB
2658as_fn_append ac_func_list " getpwuid_r"
2659as_fn_append ac_func_list " ttyname_r"
2660as_fn_append ac_func_list " clock_gettime"
74544378
JB
2661as_fn_append ac_func_list " getgid"
2662as_fn_append ac_func_list " getpid"
74544378
JB
2663as_fn_append ac_func_list " getuid"
2664as_fn_append ac_func_list " geteuid"
8ecd1c0d 2665as_fn_append ac_func_list " umask"
68ee9c08 2666as_fn_append ac_func_list " getegid"
227e441f 2667as_fn_append ac_func_list " secure_getenv"
68ee9c08 2668as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2669as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2670as_fn_append ac_func_list " strnlen"
2671as_fn_append ac_func_list " strndup"
9cbecd06
JB
2672as_fn_append ac_func_list " newlocale"
2673as_fn_append ac_func_list " freelocale"
2674as_fn_append ac_func_list " uselocale"
2675as_fn_append ac_func_list " strerror_l"
db9f46a9 2676as_fn_append ac_header_list " math.h"
5213506e
RW
2677# Check that the precious variables saved in the cache have kept the same
2678# value.
2679ac_cache_corrupted=false
2680for ac_var in $ac_precious_vars; do
2681 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2682 eval ac_new_set=\$ac_env_${ac_var}_set
2683 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2684 eval ac_new_val=\$ac_env_${ac_var}_value
2685 case $ac_old_set,$ac_new_set in
2686 set,)
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2688$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2689 ac_cache_corrupted=: ;;
2690 ,set)
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2692$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2693 ac_cache_corrupted=: ;;
2694 ,);;
2695 *)
2696 if test "x$ac_old_val" != "x$ac_new_val"; then
2697 # differences in whitespace do not lead to failure.
2698 ac_old_val_w=`echo x $ac_old_val`
2699 ac_new_val_w=`echo x $ac_new_val`
2700 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2702$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2703 ac_cache_corrupted=:
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2706$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2707 eval $ac_var=\$ac_old_val
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2710$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2712$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2713 fi;;
2714 esac
2715 # Pass precious variables to config.status.
2716 if test "$ac_new_set" = set; then
2717 case $ac_new_val in
2718 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2719 *) ac_arg=$ac_var=$ac_new_val ;;
2720 esac
2721 case " $ac_configure_args " in
2722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2723 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2724 esac
2725 fi
2726done
2727if $ac_cache_corrupted; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2731$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2732 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5213506e
RW
2733fi
2734## -------------------- ##
2735## Main body of script. ##
2736## -------------------- ##
2737
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745
2746
2747
2748ac_config_headers="$ac_config_headers config.h"
2749
2750ac_aux_dir=
2751for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2764 fi
5213506e
RW
2765done
2766if test -z "$ac_aux_dir"; then
22e05272 2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5213506e
RW
2768fi
2769
2770# These three variables are undocumented and unsupported,
2771# and are intended to be withdrawn in a future Autoconf release.
2772# They can cause serious problems if a builder's source tree is in a directory
2773# whose full name contains unusual characters.
2774ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2775ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2776ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2777
2778
2779# Make sure we can run config.sub.
2780$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2781 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2782
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2784$as_echo_n "checking build system type... " >&6; }
22e05272 2785if ${ac_cv_build+:} false; then :
5213506e
RW
2786 $as_echo_n "(cached) " >&6
2787else
2788 ac_build_alias=$build_alias
2789test "x$ac_build_alias" = x &&
2790 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2791test "x$ac_build_alias" = x &&
22e05272 2792 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2793ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2795
2796fi
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2798$as_echo "$ac_cv_build" >&6; }
2799case $ac_cv_build in
2800*-*-*) ;;
22e05272 2801*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e
RW
2802esac
2803build=$ac_cv_build
2804ac_save_IFS=$IFS; IFS='-'
2805set x $ac_cv_build
2806shift
2807build_cpu=$1
2808build_vendor=$2
2809shift; shift
2810# Remember, the first character of IFS is used to create $*,
2811# except with old shells:
2812build_os=$*
2813IFS=$ac_save_IFS
2814case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2815
2816
2817 case ${build_alias} in
2818 "") build_noncanonical=${build} ;;
2819 *) build_noncanonical=${build_alias} ;;
2820esac
891c05b1
JJ
2821
2822 case ${host_alias} in
2823 "") host_noncanonical=${build_noncanonical} ;;
2824 *) host_noncanonical=${host_alias} ;;
2825esac
2826
2827 case ${target_alias} in
2828 "") target_noncanonical=${host_noncanonical} ;;
2829 *) target_noncanonical=${target_alias} ;;
2830esac
2831
57255173
PB
2832
2833# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2834# have matching libraries, they should use host libraries: Makefile.tpl
2835# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2836# However, they still use the build modules, because the corresponding
2837# host modules (e.g. bison) are only built for the host when bootstrap
2838# finishes. So:
2839# - build_subdir is where we find build modules, and never changes.
2840# - build_libsubdir is where we find build libraries, and can be overridden.
2841
2842# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2843build_subdir="build-${build_noncanonical}"
57255173 2844
5213506e
RW
2845# Check whether --with-build-libsubdir was given.
2846if test "${with_build_libsubdir+set}" = set; then :
2847 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2848else
2849 build_libsubdir="$build_subdir"
5213506e
RW
2850fi
2851
891c05b1
JJ
2852# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2853if ( test $srcdir = . && test -d gcc ) \
2854 || test -d $srcdir/../host-${host_noncanonical}; then
2855 host_subdir="host-${host_noncanonical}"
2856else
2857 host_subdir=.
2858fi
2859# No prefix.
2860target_subdir=${target_noncanonical}
2861
2862
2863# -------
2864# Options
2865# -------
2866
5213506e
RW
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2868$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2869# Check whether --enable-version-specific-runtime-libs was given.
2870if test "${enable_version_specific_runtime_libs+set}" = set; then :
2871 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2872 yes) version_specific_libs=yes ;;
2873 no) version_specific_libs=no ;;
22e05272 2874 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2875 esac
2876else
2877 version_specific_libs=no
5213506e
RW
2878fi
2879
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2881$as_echo "$version_specific_libs" >&6; }
891c05b1 2882
b808ac33 2883# Build with intermodule optimisations
5213506e
RW
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2885$as_echo_n "checking for --enable-intermodule... " >&6; }
2886# Check whether --enable-intermodule was given.
2887if test "${enable_intermodule+set}" = set; then :
2888 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2889 yes) onestep="-onestep";;
2890 *) onestep="";;
2891esac
2892else
2893 onestep=""
5213506e 2894fi
b808ac33 2895
5213506e
RW
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2897$as_echo "$enable_intermodule" >&6; }
2898 if test x$onestep = x-onestep; then
b808ac33
BF
2899 onestep_TRUE=
2900 onestep_FALSE='#'
2901else
2902 onestep_TRUE='#'
2903 onestep_FALSE=
2904fi
2905
2906
891c05b1
JJ
2907
2908# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2909#
2910# You will slowly go insane if you do not grok the following fact: when
2911# building this library, the top-level /target/ becomes the library's /host/.
2912#
2913# configure then causes --target to default to --host, exactly like any
2914# other package using autoconf. Therefore, 'target' and 'host' will
2915# always be the same. This makes sense both for native and cross compilers
2916# just think about it for a little while. :-)
2917#
2918# Also, if this library is being configured as part of a cross compiler, the
2919# top-level configure script will pass the "real" host as $with_cross_host.
2920#
2921# Do not delete or change the following two lines. For why, see
2922# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2924$as_echo_n "checking host system type... " >&6; }
22e05272 2925if ${ac_cv_host+:} false; then :
5213506e
RW
2926 $as_echo_n "(cached) " >&6
2927else
2928 if test "x$host_alias" = x; then
2929 ac_cv_host=$ac_cv_build
2930else
2931 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e
RW
2933fi
2934
2935fi
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2937$as_echo "$ac_cv_host" >&6; }
2938case $ac_cv_host in
2939*-*-*) ;;
22e05272 2940*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2941esac
96b8a615 2942host=$ac_cv_host
5213506e
RW
2943ac_save_IFS=$IFS; IFS='-'
2944set x $ac_cv_host
2945shift
2946host_cpu=$1
2947host_vendor=$2
2948shift; shift
2949# Remember, the first character of IFS is used to create $*,
2950# except with old shells:
2951host_os=$*
2952IFS=$ac_save_IFS
2953case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2954
2955
5213506e
RW
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2957$as_echo_n "checking target system type... " >&6; }
22e05272 2958if ${ac_cv_target+:} false; then :
5213506e 2959 $as_echo_n "(cached) " >&6
96b8a615 2960else
5213506e
RW
2961 if test "x$target_alias" = x; then
2962 ac_cv_target=$ac_cv_host
2963else
2964 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2965 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2966fi
96b8a615
AJ
2967
2968fi
5213506e
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2970$as_echo "$ac_cv_target" >&6; }
2971case $ac_cv_target in
2972*-*-*) ;;
22e05272 2973*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2974esac
96b8a615 2975target=$ac_cv_target
5213506e
RW
2976ac_save_IFS=$IFS; IFS='-'
2977set x $ac_cv_target
2978shift
2979target_cpu=$1
2980target_vendor=$2
2981shift; shift
2982# Remember, the first character of IFS is used to create $*,
2983# except with old shells:
2984target_os=$*
2985IFS=$ac_save_IFS
2986case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2987
2988
2989# The aliases save the names the user supplied, while $host etc.
2990# will get canonicalized.
2991test -n "$target_alias" &&
2992 test "$program_prefix$program_suffix$program_transform_name" = \
2993 NONENONEs,x,x, &&
2994 program_prefix=${target_alias}-
5213506e 2995
60858d8a
TB
2996
2997
2998
96b8a615
AJ
2999target_alias=${target_alias-$host_alias}
3000
60858d8a 3001
96b8a615
AJ
3002# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3003# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 3004# 1.9.6: minimum required version
96b8a615
AJ
3005# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3006# of other PACKAGE_* variables will, however, and there's nothing
3007# we can do about that; they come from AC_INIT).
3008# foreign: we don't follow the normal rules for GNU packages (no COPYING
3009# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 3010# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
3011# -Wall: turns on all automake warnings...
3012# -Wno-portability: ...except this one, since GNU make is required.
22e05272 3013am__api_version='1.15'
5213506e 3014
6de9cd9a
DN
3015# Find a good install program. We prefer a C program (faster),
3016# so one script is as good as another. But avoid the broken or
3017# incompatible versions:
3018# SysV /etc/install, /usr/sbin/install
3019# SunOS /usr/etc/install
3020# IRIX /sbin/install
3021# AIX /bin/install
3022# AmigaOS /C/install, which installs bootblocks on floppy discs
3023# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3024# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3025# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3026# OS/2's system install, which has a completely different semantic
3027# ./install, which can be erroneously created by make from ./install.sh.
38d24731 3028# Reject install programs that cannot install multiple files.
5213506e
RW
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3030$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 3031if test -z "$INSTALL"; then
22e05272 3032if ${ac_cv_path_install+:} false; then :
5213506e 3033 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3034else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
5213506e
RW
3040 # Account for people who put trailing slashes in PATH elements.
3041case $as_dir/ in #((
3042 ./ | .// | /[cC]/* | \
6de9cd9a 3043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3044 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
3045 /usr/ucb/* ) ;;
3046 *)
3047 # OSF1 and SCO ODT 3.0 have their own names for install.
3048 # Don't use installbsd from OSF since it installs stuff as root
3049 # by default.
3050 for ac_prog in ginstall scoinst install; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3052 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6de9cd9a
DN
3053 if test $ac_prog = install &&
3054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 # AIX install. It has an incompatible calling convention.
3056 :
3057 elif test $ac_prog = install &&
3058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059 # program-specific install script used by HP pwplus--don't use.
3060 :
3061 else
38d24731
RW
3062 rm -rf conftest.one conftest.two conftest.dir
3063 echo one > conftest.one
3064 echo two > conftest.two
3065 mkdir conftest.dir
3066 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3067 test -s conftest.one && test -s conftest.two &&
3068 test -s conftest.dir/conftest.one &&
3069 test -s conftest.dir/conftest.two
3070 then
3071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3072 break 3
3073 fi
6de9cd9a
DN
3074 fi
3075 fi
3076 done
3077 done
3078 ;;
3079esac
5213506e
RW
3080
3081 done
3082IFS=$as_save_IFS
6de9cd9a 3083
38d24731 3084rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3085
3086fi
3087 if test "${ac_cv_path_install+set}" = set; then
3088 INSTALL=$ac_cv_path_install
3089 else
f489fba1
FXC
3090 # As a last resort, use the slow shell script. Don't cache a
3091 # value for INSTALL within a source directory, because that will
6de9cd9a 3092 # break other packages using the cache if that directory is
f489fba1 3093 # removed, or if the value is a relative name.
6de9cd9a
DN
3094 INSTALL=$ac_install_sh
3095 fi
3096fi
5213506e
RW
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3098$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3099
3100# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3101# It thinks the first close brace ends the variable substitution.
3102test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3103
3104test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3105
3106test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3107
5213506e
RW
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3109$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
3110# Reject unsafe characters in $srcdir or the absolute working directory
3111# name. Accept space and tab only in the latter.
3112am_lf='
3113'
3114case `pwd` in
3115 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 3116 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
3117esac
3118case $srcdir in
3119 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 3120 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
3121esac
3122
22e05272 3123# Do 'set' in a subshell so we don't clobber the current shell's
6de9cd9a
DN
3124# arguments. Must try -L first in case configure is actually a
3125# symlink; some systems play weird games with the mod time of symlinks
3126# (eg FreeBSD returns the mod time of the symlink's containing
3127# directory).
3128if (
22e05272
JM
3129 am_has_slept=no
3130 for am_try in 1 2; do
3131 echo "timestamp, slept: $am_has_slept" > conftest.file
3132 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3133 if test "$*" = "X"; then
3134 # -L didn't work.
3135 set X `ls -t "$srcdir/configure" conftest.file`
3136 fi
3137 if test "$*" != "X $srcdir/configure conftest.file" \
3138 && test "$*" != "X conftest.file $srcdir/configure"; then
3139
3140 # If neither matched, then we have a broken ls. This can happen
3141 # if, for instance, CONFIG_SHELL is bash and it inherits a
3142 # broken ls alias from the environment. This has actually
3143 # happened. Such a system could not be considered "sane".
3144 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3145 alias in your environment" "$LINENO" 5
3146 fi
3147 if test "$2" = conftest.file || test $am_try -eq 2; then
3148 break
3149 fi
3150 # Just in case.
3151 sleep 1
3152 am_has_slept=yes
3153 done
6de9cd9a
DN
3154 test "$2" = conftest.file
3155 )
3156then
3157 # Ok.
3158 :
3159else
22e05272 3160 as_fn_error $? "newly created file is older than distributed files!
5213506e 3161Check your system clock" "$LINENO" 5
6de9cd9a 3162fi
5213506e
RW
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164$as_echo "yes" >&6; }
22e05272
JM
3165# If we didn't sleep, we still need to ensure time stamps of config.status and
3166# generated files are strictly newer.
3167am_sleep_pid=
3168if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3169 ( sleep 1 ) &
3170 am_sleep_pid=$!
3171fi
3172
3173rm -f conftest.file
3174
6de9cd9a 3175test "$program_prefix" != NONE &&
5213506e 3176 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3177# Use a double $ so make ignores it.
3178test "$program_suffix" != NONE &&
5213506e
RW
3179 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3180# Double any \ or $.
6de9cd9a 3181# By default was `s,x,x', remove it if useless.
5213506e
RW
3182ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3183program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a 3184
22e05272
JM
3185# Expand $ac_aux_dir to an absolute path.
3186am_aux_dir=`cd "$ac_aux_dir" && pwd`
6de9cd9a 3187
5213506e
RW
3188if test x"${MISSING+set}" != xset; then
3189 case $am_aux_dir in
3190 *\ * | *\ *)
3191 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3192 *)
3193 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3194 esac
3195fi
6de9cd9a 3196# Use eval to expand $SHELL
22e05272
JM
3197if eval "$MISSING --is-lightweight"; then
3198 am_missing_run="$MISSING "
6de9cd9a
DN
3199else
3200 am_missing_run=
22e05272
JM
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3202$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6de9cd9a
DN
3203fi
3204
22e05272 3205if test x"${install_sh+set}" != xset; then
5213506e
RW
3206 case $am_aux_dir in
3207 *\ * | *\ *)
3208 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3209 *)
3210 install_sh="\${SHELL} $am_aux_dir/install-sh"
3211 esac
3212fi
3213
22e05272
JM
3214# Installed binaries are usually stripped using 'strip' when the user
3215# run "make install-strip". However 'strip' might not be the right
5213506e 3216# tool to use in cross-compilation environments, therefore Automake
22e05272 3217# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
3218if test "$cross_compiling" != no; then
3219 if test -n "$ac_tool_prefix"; then
3220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3221set dummy ${ac_tool_prefix}strip; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3224if ${ac_cv_prog_STRIP+:} false; then :
5213506e 3225 $as_echo_n "(cached) " >&6
6de9cd9a 3226else
5213506e
RW
3227 if test -n "$STRIP"; then
3228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
5213506e 3235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3239 break 2
3240 fi
3241done
5213506e
RW
3242 done
3243IFS=$as_save_IFS
6de9cd9a
DN
3244
3245fi
3246fi
5213506e
RW
3247STRIP=$ac_cv_prog_STRIP
3248if test -n "$STRIP"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3250$as_echo "$STRIP" >&6; }
6de9cd9a 3251else
5213506e
RW
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
6de9cd9a
DN
3254fi
3255
6de9cd9a 3256
5213506e
RW
3257fi
3258if test -z "$ac_cv_prog_STRIP"; then
3259 ac_ct_STRIP=$STRIP
3260 # Extract the first word of "strip", so it can be a program name with args.
3261set dummy strip; ac_word=$2
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3264if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 3265 $as_echo_n "(cached) " >&6
6de9cd9a 3266else
5213506e
RW
3267 if test -n "$ac_ct_STRIP"; then
3268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3269else
5213506e
RW
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3277 ac_cv_prog_ac_ct_STRIP="strip"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281done
3282 done
3283IFS=$as_save_IFS
3284
38d24731 3285fi
6de9cd9a 3286fi
5213506e
RW
3287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3288if test -n "$ac_ct_STRIP"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3290$as_echo "$ac_ct_STRIP" >&6; }
3291else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294fi
3295
3296 if test "x$ac_ct_STRIP" = x; then
3297 STRIP=":"
3298 else
3299 case $cross_compiling:$ac_tool_warned in
3300yes:)
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303ac_tool_warned=yes ;;
3304esac
3305 STRIP=$ac_ct_STRIP
3306 fi
3307else
3308 STRIP="$ac_cv_prog_STRIP"
3309fi
3310
3311fi
3312INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3313
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3315$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3316if test -z "$MKDIR_P"; then
22e05272 3317 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
3318 $as_echo_n "(cached) " >&6
3319else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_prog in mkdir gmkdir; do
3326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3327 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
3328 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3329 'mkdir (GNU coreutils) '* | \
3330 'mkdir (coreutils) '* | \
3331 'mkdir (fileutils) '4.1*)
3332 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3333 break 3;;
3334 esac
3335 done
3336 done
3337 done
3338IFS=$as_save_IFS
3339
3340fi
3341
22e05272 3342 test -d ./--version && rmdir ./--version
5213506e
RW
3343 if test "${ac_cv_path_mkdir+set}" = set; then
3344 MKDIR_P="$ac_cv_path_mkdir -p"
3345 else
3346 # As a last resort, use the slow shell script. Don't cache a
3347 # value for MKDIR_P within a source directory, because that will
3348 # break other packages using the cache if that directory is
3349 # removed, or if the value is a relative name.
5213506e
RW
3350 MKDIR_P="$ac_install_sh -d"
3351 fi
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3354$as_echo "$MKDIR_P" >&6; }
3355
5213506e
RW
3356for ac_prog in gawk mawk nawk awk
3357do
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359set dummy $ac_prog; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3362if ${ac_cv_prog_AWK+:} false; then :
5213506e
RW
3363 $as_echo_n "(cached) " >&6
3364else
3365 if test -n "$AWK"; then
3366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3375 ac_cv_prog_AWK="$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379done
3380 done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385AWK=$ac_cv_prog_AWK
3386if test -n "$AWK"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3388$as_echo "$AWK" >&6; }
3389else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395 test -n "$AWK" && break
3396done
3397
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3399$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3400set x ${MAKE-make}
3401ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3402if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
3403 $as_echo_n "(cached) " >&6
3404else
3405 cat >conftest.make <<\_ACEOF
3406SHELL = /bin/sh
3407all:
3408 @echo '@@@%%%=$(MAKE)=@@@%%%'
3409_ACEOF
22e05272 3410# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
3411case `${MAKE-make} -f conftest.make 2>/dev/null` in
3412 *@@@%%%=?*=@@@%%%*)
3413 eval ac_cv_prog_make_${ac_make}_set=yes;;
3414 *)
3415 eval ac_cv_prog_make_${ac_make}_set=no;;
3416esac
3417rm -f conftest.make
3418fi
3419if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421$as_echo "yes" >&6; }
6de9cd9a
DN
3422 SET_MAKE=
3423else
5213506e
RW
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
6de9cd9a
DN
3426 SET_MAKE="MAKE=${MAKE-make}"
3427fi
3428
3429rm -rf .tst 2>/dev/null
3430mkdir .tst 2>/dev/null
3431if test -d .tst; then
3432 am__leading_dot=.
3433else
3434 am__leading_dot=_
3435fi
3436rmdir .tst 2>/dev/null
3437
22e05272
JM
3438# Check whether --enable-silent-rules was given.
3439if test "${enable_silent_rules+set}" = set; then :
3440 enableval=$enable_silent_rules;
3441fi
3442
3443case $enable_silent_rules in # (((
3444 yes) AM_DEFAULT_VERBOSITY=0;;
3445 no) AM_DEFAULT_VERBOSITY=1;;
3446 *) AM_DEFAULT_VERBOSITY=1;;
3447esac
3448am_make=${MAKE-make}
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3450$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3451if ${am_cv_make_support_nested_variables+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453else
3454 if $as_echo 'TRUE=$(BAR$(V))
3455BAR0=false
3456BAR1=true
3457V=1
3458am__doit:
3459 @$(TRUE)
3460.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3461 am_cv_make_support_nested_variables=yes
3462else
3463 am_cv_make_support_nested_variables=no
3464fi
3465fi
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3467$as_echo "$am_cv_make_support_nested_variables" >&6; }
3468if test $am_cv_make_support_nested_variables = yes; then
3469 AM_V='$(V)'
3470 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3471else
3472 AM_V=$AM_DEFAULT_VERBOSITY
3473 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3474fi
3475AM_BACKSLASH='\'
3476
5213506e
RW
3477if test "`cd $srcdir && pwd`" != "`pwd`"; then
3478 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3479 # is not polluted with repeated "-I."
3480 am__isrc=' -I$(srcdir)'
3481 # test to see if srcdir already configured
3482 if test -f $srcdir/config.status; then
22e05272 3483 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 3484 fi
6de9cd9a
DN
3485fi
3486
3487# test whether we have cygpath
3488if test -z "$CYGPATH_W"; then
3489 if (cygpath --version) >/dev/null 2>/dev/null; then
3490 CYGPATH_W='cygpath -w'
3491 else
3492 CYGPATH_W=echo
3493 fi
3494fi
3495
3496
3497# Define the identity of the package.
3498 PACKAGE='libgfortran'
0dce3ca1 3499 VERSION='0.3'
6de9cd9a
DN
3500
3501
6de9cd9a
DN
3502# Some tools Automake needs.
3503
3504ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3505
3506
3507AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3508
3509
3510AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3511
3512
3513AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3514
3515
3516MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3517
22e05272
JM
3518# For better backward compatibility. To be removed once Automake 1.9.x
3519# dies out for good. For more background, see:
3520# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3521# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3522mkdir_p='$(MKDIR_P)'
3523
3524# We need awk for the "check" target (and possibly the TAP driver). The
3525# system "awk" is bad on some platforms.
c20fdb91
JB
3526# Always define AMTAR for backward compatibility. Yes, it's still used
3527# in the wild :-( We should find a proper way to deprecate it ...
3528AMTAR='$${TAR-tar}'
d49ec2d1 3529
22e05272
JM
3530
3531# We'll loop over all known methods to create a tar archive until one works.
3532_am_tools='gnutar pax cpio none'
3533
c20fdb91 3534am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3535
3536
6de9cd9a
DN
3537
3538
3539
6de9cd9a 3540
22e05272
JM
3541# POSIX will say in a future version that running "rm -f" with no argument
3542# is OK; and we want to be able to make that assumption in our Makefile
3543# recipes. So use an aggressive probe to check that the usage we want is
3544# actually supported "in the wild" to an acceptable degree.
3545# See automake bug#10828.
3546# To make any issue more visible, cause the running configure to be aborted
3547# by default if the 'rm' program in use doesn't match our expectations; the
3548# user can still override this though.
3549if rm -f && rm -fr && rm -rf; then : OK; else
3550 cat >&2 <<'END'
3551Oops!
3552
3553Your 'rm' program seems unable to run without file operands specified
3554on the command line, even when the '-f' option is present. This is contrary
3555to the behaviour of most rm programs out there, and not conforming with
3556the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3557
3558Please tell bug-automake@gnu.org about your system, including the value
3559of your $PATH and any error possibly output before this message. This
3560can help us improve future automake versions.
3561
3562END
3563 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3564 echo 'Configuration will proceed anyway, since you have set the' >&2
3565 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3566 echo >&2
3567 else
3568 cat >&2 <<'END'
3569Aborting the configuration process, to ensure you take notice of the issue.
3570
3571You can download and install GNU coreutils to get an 'rm' implementation
3572that behaves properly: <http://www.gnu.org/software/coreutils/>.
3573
3574If you want to complete the configuration process using your problematic
3575'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3576to "yes", and re-run configure.
3577
3578END
3579 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3580 fi
3581fi
3582
3583
5213506e
RW
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3586$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3587 # Check whether --enable-maintainer-mode was given.
3588if test "${enable_maintainer_mode+set}" = set; then :
3589 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3590else
3591 USE_MAINTAINER_MODE=no
5213506e 3592fi
6de9cd9a 3593
5213506e
RW
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3595$as_echo "$USE_MAINTAINER_MODE" >&6; }
3596 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3597 MAINTAINER_MODE_TRUE=
3598 MAINTAINER_MODE_FALSE='#'
3599else
3600 MAINTAINER_MODE_TRUE='#'
3601 MAINTAINER_MODE_FALSE=
3602fi
3603
3604 MAINT=$MAINTAINER_MODE_TRUE
3605
3606
96b8a615 3607# Default to --enable-multilib
5213506e
RW
3608# Check whether --enable-multilib was given.
3609if test "${enable_multilib+set}" = set; then :
3610 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3611 yes) multilib=yes ;;
3612 no) multilib=no ;;
22e05272 3613 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3614 esac
3615else
3616 multilib=yes
5213506e
RW
3617fi
3618
96b8a615
AJ
3619
3620# We may get other options which we leave undocumented:
3621# --with-target-subdir, --with-multisrctop, --with-multisubdir
3622# See config-ml.in if you want the gory details.
3623
3624if test "$srcdir" = "."; then
3625 if test "$with_target_subdir" != "."; then
3626 multi_basedir="$srcdir/$with_multisrctop../.."
3627 else
3628 multi_basedir="$srcdir/$with_multisrctop.."
3629 fi
3630else
3631 multi_basedir="$srcdir/.."
3632fi
3633
3634
9f9ef303
FXC
3635# Even if the default multilib is not a cross compilation,
3636# it may be that some of the other multilibs are.
3637if test $cross_compiling = no && test $multilib = yes \
3638 && test "x${with_multisubdir}" != x ; then
3639 cross_compiling=maybe
3640fi
3641
5213506e 3642ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3643
3644
3645# Handy for debugging:
3646#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3647
3648# Are we being configured with some form of cross compiler?
3649# NB: We don't actually need to know this just now, but when, say, a test
3650# suite is included, we'll have to know.
3651if test "$build" != "$host"; then
3652 LIBGFOR_IS_NATIVE=false
f02d008e 3653
96b8a615
AJ
3654else
3655 LIBGFOR_IS_NATIVE=true
3656fi
3657
21be0a5a 3658DEPDIR="${am__leading_dot}deps"
96b8a615 3659
21be0a5a 3660ac_config_commands="$ac_config_commands depfiles"
96b8a615 3661
6de9cd9a 3662
21be0a5a
JB
3663am_make=${MAKE-make}
3664cat > confinc << 'END'
3665am__doit:
3666 @echo this is the am__doit target
3667.PHONY: am__doit
3668END
3669# If we don't find an include directive, just comment out the code.
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3671$as_echo_n "checking for style of include used by $am_make... " >&6; }
3672am__include="#"
3673am__quote=
3674_am_result=none
3675# First try GNU make style include.
3676echo "include confinc" > confmf
22e05272 3677# Ignore all kinds of additional output from 'make'.
21be0a5a
JB
3678case `$am_make -s -f confmf 2> /dev/null` in #(
3679*the\ am__doit\ target*)
3680 am__include=include
3681 am__quote=
3682 _am_result=GNU
3683 ;;
3684esac
3685# Now try BSD make style include.
3686if test "$am__include" = "#"; then
3687 echo '.include "confinc"' > confmf
3688 case `$am_make -s -f confmf 2> /dev/null` in #(
3689 *the\ am__doit\ target*)
3690 am__include=.include
3691 am__quote="\""
3692 _am_result=BSD
3693 ;;
3694 esac
3695fi
1ec601bf 3696
6de9cd9a 3697
21be0a5a
JB
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3699$as_echo "$_am_result" >&6; }
3700rm -f confinc confmf
3701
3702# Check whether --enable-dependency-tracking was given.
3703if test "${enable_dependency_tracking+set}" = set; then :
3704 enableval=$enable_dependency_tracking;
3705fi
3706
3707if test "x$enable_dependency_tracking" != xno; then
3708 am_depcomp="$ac_aux_dir/depcomp"
3709 AMDEPBACKSLASH='\'
c20fdb91 3710 am__nodep='_no'
21be0a5a
JB
3711fi
3712 if test "x$enable_dependency_tracking" != xno; then
3713 AMDEP_TRUE=
3714 AMDEP_FALSE='#'
3715else
3716 AMDEP_TRUE='#'
3717 AMDEP_FALSE=
3718fi
6de9cd9a
DN
3719
3720
6de9cd9a
DN
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3728set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3731if ${ac_cv_prog_CC+:} false; then :
5213506e 3732 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3733else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
5213506e 3742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3744 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3746 break 2
3747 fi
3748done
5213506e
RW
3749 done
3750IFS=$as_save_IFS
6de9cd9a
DN
3751
3752fi
3753fi
3754CC=$ac_cv_prog_CC
3755if test -n "$CC"; then
5213506e
RW
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757$as_echo "$CC" >&6; }
6de9cd9a 3758else
5213506e
RW
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
6de9cd9a
DN
3761fi
3762
5213506e 3763
6de9cd9a
DN
3764fi
3765if test -z "$ac_cv_prog_CC"; then
3766 ac_ct_CC=$CC
3767 # Extract the first word of "gcc", so it can be a program name with args.
3768set dummy gcc; ac_word=$2
5213506e
RW
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3771if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3772 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3773else
3774 if test -n "$ac_ct_CC"; then
3775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
5213506e 3782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3784 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3786 break 2
3787 fi
3788done
5213506e
RW
3789 done
3790IFS=$as_save_IFS
6de9cd9a
DN
3791
3792fi
3793fi
3794ac_ct_CC=$ac_cv_prog_ac_ct_CC
3795if test -n "$ac_ct_CC"; then
5213506e
RW
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3797$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3798else
5213506e
RW
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800$as_echo "no" >&6; }
6de9cd9a
DN
3801fi
3802
5213506e
RW
3803 if test "x$ac_ct_CC" = x; then
3804 CC=""
3805 else
3806 case $cross_compiling:$ac_tool_warned in
3807yes:)
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810ac_tool_warned=yes ;;
3811esac
3812 CC=$ac_ct_CC
3813 fi
6de9cd9a
DN
3814else
3815 CC="$ac_cv_prog_CC"
3816fi
3817
3818if test -z "$CC"; then
5213506e
RW
3819 if test -n "$ac_tool_prefix"; then
3820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3821set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3824if ${ac_cv_prog_CC+:} false; then :
5213506e 3825 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3826else
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
5213506e 3835 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3837 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3839 break 2
3840 fi
3841done
5213506e
RW
3842 done
3843IFS=$as_save_IFS
6de9cd9a
DN
3844
3845fi
3846fi
3847CC=$ac_cv_prog_CC
3848if test -n "$CC"; then
5213506e
RW
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850$as_echo "$CC" >&6; }
38d24731 3851else
5213506e
RW
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853$as_echo "no" >&6; }
38d24731
RW
3854fi
3855
38d24731 3856
5213506e 3857 fi
6de9cd9a
DN
3858fi
3859if test -z "$CC"; then
3860 # Extract the first word of "cc", so it can be a program name with args.
3861set dummy cc; ac_word=$2
5213506e
RW
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3864if ${ac_cv_prog_CC+:} false; then :
5213506e 3865 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3866else
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3869else
3870 ac_prog_rejected=no
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
5213506e 3876 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
3878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3879 ac_prog_rejected=yes
3880 continue
3881 fi
3882 ac_cv_prog_CC="cc"
5213506e 3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3884 break 2
3885 fi
3886done
5213506e
RW
3887 done
3888IFS=$as_save_IFS
6de9cd9a
DN
3889
3890if test $ac_prog_rejected = yes; then
3891 # We found a bogon in the path, so make sure we never use it.
3892 set dummy $ac_cv_prog_CC
3893 shift
3894 if test $# != 0; then
3895 # We chose a different compiler from the bogus one.
3896 # However, it has the same basename, so the bogon will be chosen
3897 # first if we set CC to just the basename; use the full file name.
3898 shift
3899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3900 fi
3901fi
3902fi
3903fi
3904CC=$ac_cv_prog_CC
3905if test -n "$CC"; then
5213506e
RW
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907$as_echo "$CC" >&6; }
6de9cd9a 3908else
5213506e
RW
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
6de9cd9a
DN
3911fi
3912
5213506e 3913
6de9cd9a
DN
3914fi
3915if test -z "$CC"; then
3916 if test -n "$ac_tool_prefix"; then
5213506e 3917 for ac_prog in cl.exe
6de9cd9a
DN
3918 do
3919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3923if ${ac_cv_prog_CC+:} false; then :
5213506e 3924 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3925else
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
5213506e 3934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3938 break 2
3939 fi
3940done
5213506e
RW
3941 done
3942IFS=$as_save_IFS
6de9cd9a
DN
3943
3944fi
3945fi
3946CC=$ac_cv_prog_CC
3947if test -n "$CC"; then
5213506e
RW
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3949$as_echo "$CC" >&6; }
6de9cd9a 3950else
5213506e
RW
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952$as_echo "no" >&6; }
6de9cd9a
DN
3953fi
3954
5213506e 3955
6de9cd9a
DN
3956 test -n "$CC" && break
3957 done
3958fi
3959if test -z "$CC"; then
3960 ac_ct_CC=$CC
5213506e 3961 for ac_prog in cl.exe
6de9cd9a
DN
3962do
3963 # Extract the first word of "$ac_prog", so it can be a program name with args.
3964set dummy $ac_prog; ac_word=$2
5213506e
RW
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3967if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3968 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3969else
3970 if test -n "$ac_ct_CC"; then
3971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
5213506e 3978 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3980 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3982 break 2
3983 fi
3984done
5213506e
RW
3985 done
3986IFS=$as_save_IFS
6de9cd9a
DN
3987
3988fi
3989fi
3990ac_ct_CC=$ac_cv_prog_ac_ct_CC
3991if test -n "$ac_ct_CC"; then
5213506e
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3993$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3994else
5213506e
RW
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
6de9cd9a
DN
3997fi
3998
5213506e 3999
6de9cd9a
DN
4000 test -n "$ac_ct_CC" && break
4001done
4002
5213506e
RW
4003 if test "x$ac_ct_CC" = x; then
4004 CC=""
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007yes:)
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012 CC=$ac_ct_CC
4013 fi
6de9cd9a
DN
4014fi
4015
4016fi
4017
4018
5213506e
RW
4019test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4021as_fn_error $? "no acceptable C compiler found in \$PATH
4022See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a
DN
4023
4024# Provide some information about the compiler.
5213506e
RW
4025$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4026set X $ac_compile
4027ac_compiler=$2
4028for ac_option in --version -v -V -qversion; do
4029 { { ac_try="$ac_compiler $ac_option >&5"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 4037 ac_status=$?
5213506e
RW
4038 if test -s conftest.err; then
4039 sed '10a\
4040... rest of stderr output deleted ...
4041 10q' conftest.err >conftest.er1
4042 cat conftest.er1 >&5
5213506e 4043 fi
22e05272 4044 rm -f conftest.er1 conftest.err
5213506e
RW
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }
4047done
6de9cd9a 4048
5213506e 4049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4050/* end confdefs.h. */
02ce382c 4051#include <stdio.h>
f02d008e
JD
4052int
4053main ()
4054{
02ce382c 4055printf ("hello world\n");
f02d008e
JD
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060# FIXME: Cleanup?
5213506e 4061if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
5213506e
RW
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then :
f02d008e
JD
4066 gcc_no_link=no
4067else
4068 gcc_no_link=yes
4069fi
f02d008e
JD
4070if test x$gcc_no_link = xyes; then
4071 # Setting cross_compile will disable run tests; it will
4072 # also disable AC_CHECK_FILE but that's generally
4073 # correct if we can't link.
4074 cross_compiling=yes
4075 EXEEXT=
4076else
5213506e 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
4078/* end confdefs.h. */
4079
6de9cd9a
DN
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088ac_clean_files_save=$ac_clean_files
22e05272 4089ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6de9cd9a
DN
4090# Try to create an executable without -o first, disregard a.out.
4091# It will help us diagnose broken compilers, and finding out an intuition
4092# of exeext.
22e05272
JM
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4094$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4095ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096
4097# The possible output files:
4098ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099
4100ac_rmfiles=
4101for ac_file in $ac_files
4102do
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106 esac
4107done
4108rm -f $ac_rmfiles
4109
4110if { { ac_try="$ac_link_default"
4111case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116$as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123# in a Makefile. We should not override ac_cv_exeext if it was cached,
4124# so that the user can short-circuit this test for compilers unknown to
4125# Autoconf.
4126for ac_file in $ac_files ''
6de9cd9a
DN
4127do
4128 test -f "$ac_file" || continue
4129 case $ac_file in
5213506e 4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
4131 ;;
4132 [ab].out )
4133 # We found the default executable, but exeext='' is most
4134 # certainly right.
4135 break;;
4136 *.* )
5213506e
RW
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138 then :; else
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 fi
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4145 # actually working.
6de9cd9a
DN
4146 break;;
4147 * )
4148 break;;
4149 esac
4150done
5213506e
RW
4151test "$ac_cv_exeext" = no && ac_cv_exeext=
4152
6de9cd9a 4153else
5213506e
RW
4154 ac_file=''
4155fi
5213506e 4156if test -z "$ac_file"; then :
22e05272
JM
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158$as_echo "no" >&6; }
4159$as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4160sed 's/^/| /' conftest.$ac_ext >&5
4161
5213506e
RW
4162{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4164as_fn_error 77 "C compiler cannot create executables
4165See \`config.log' for more details" "$LINENO" 5; }
4166else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168$as_echo "yes" >&6; }
6de9cd9a 4169fi
22e05272
JM
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4171$as_echo_n "checking for C compiler default output file name... " >&6; }
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4173$as_echo "$ac_file" >&6; }
6de9cd9a 4174ac_exeext=$ac_cv_exeext
6de9cd9a 4175
22e05272 4176rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6de9cd9a 4177ac_clean_files=$ac_clean_files_save
5213506e
RW
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4179$as_echo_n "checking for suffix of executables... " >&6; }
4180if { { ac_try="$ac_link"
4181case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186$as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_link") 2>&5
6de9cd9a 4188 ac_status=$?
5213506e
RW
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
6de9cd9a
DN
4191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4192# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4193# work properly (i.e., refer to `conftest.exe'), while it won't with
4194# `rm'.
4195for ac_file in conftest.exe conftest conftest.*; do
4196 test -f "$ac_file" || continue
4197 case $ac_file in
5213506e 4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4200 break;;
4201 * ) break;;
4202 esac
4203done
4204else
5213506e
RW
4205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4207as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4208See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a 4209fi
22e05272 4210rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4212$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4213
4214rm -f conftest.$ac_ext
4215EXEEXT=$ac_cv_exeext
4216ac_exeext=$EXEEXT
22e05272
JM
4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h. */
4219#include <stdio.h>
4220int
4221main ()
4222{
4223FILE *f = fopen ("conftest.out", "w");
4224 return ferror (f) || fclose (f) != 0;
4225
4226 ;
4227 return 0;
4228}
4229_ACEOF
4230ac_clean_files="$ac_clean_files conftest.out"
4231# Check that the compiler produces executables we can run. If not, either
4232# the compiler is broken, or we cross compile.
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4234$as_echo_n "checking whether we are cross compiling... " >&6; }
4235if test "$cross_compiling" != yes; then
4236 { { ac_try="$ac_link"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242$as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_link") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }
4247 if { ac_try='./conftest$ac_cv_exeext'
4248 { { case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251esac
4252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253$as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_try") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; }; then
4258 cross_compiling=no
4259 else
4260 if test "$cross_compiling" = maybe; then
4261 cross_compiling=yes
4262 else
4263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4265as_fn_error $? "cannot run C compiled programs.
4266If you meant to cross compile, use \`--host'.
4267See \`config.log' for more details" "$LINENO" 5; }
4268 fi
4269 fi
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4272$as_echo "$cross_compiling" >&6; }
4273
4274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4275ac_clean_files=$ac_clean_files_save
f02d008e 4276fi
5213506e
RW
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4278$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4279if ${ac_cv_objext+:} false; then :
5213506e 4280 $as_echo_n "(cached) " >&6
6de9cd9a 4281else
5213506e 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4283/* end confdefs.h. */
4284
4285int
4286main ()
4287{
4288
4289 ;
4290 return 0;
4291}
4292_ACEOF
4293rm -f conftest.o conftest.obj
5213506e
RW
4294if { { ac_try="$ac_compile"
4295case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300$as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_compile") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; }; then :
4305 for ac_file in conftest.o conftest.obj conftest.*; do
4306 test -f "$ac_file" || continue;
6de9cd9a 4307 case $ac_file in
5213506e 4308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4310 break;;
4311 esac
4312done
4313else
5213506e 4314 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
5213506e
RW
4317{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4319as_fn_error $? "cannot compute suffix of object files: cannot compile
4320See \`config.log' for more details" "$LINENO" 5; }
78511f8b 4321fi
78511f8b
JB
4322rm -f conftest.$ac_cv_objext conftest.$ac_ext
4323fi
5213506e
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4325$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4326OBJEXT=$ac_cv_objext
4327ac_objext=$OBJEXT
5213506e
RW
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4329$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4330if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4331 $as_echo_n "(cached) " >&6
78511f8b 4332else
5213506e 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4334/* end confdefs.h. */
6de9cd9a 4335
6de9cd9a
DN
4336int
4337main ()
4338{
78511f8b
JB
4339#ifndef __GNUC__
4340 choke me
4341#endif
c0e7e2bf 4342
6de9cd9a
DN
4343 ;
4344 return 0;
4345}
4346_ACEOF
5213506e 4347if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4348 ac_compiler_gnu=yes
6de9cd9a 4349else
5213506e 4350 ac_compiler_gnu=no
78511f8b 4351fi
5213506e 4352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4353ac_cv_c_compiler_gnu=$ac_compiler_gnu
4354
4355fi
5213506e
RW
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4357$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4358if test $ac_compiler_gnu = yes; then
4359 GCC=yes
4360else
4361 GCC=
4362fi
78511f8b
JB
4363ac_test_CFLAGS=${CFLAGS+set}
4364ac_save_CFLAGS=$CFLAGS
5213506e
RW
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4366$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4367if ${ac_cv_prog_cc_g+:} false; then :
5213506e 4368 $as_echo_n "(cached) " >&6
78511f8b 4369else
5213506e
RW
4370 ac_save_c_werror_flag=$ac_c_werror_flag
4371 ac_c_werror_flag=yes
4372 ac_cv_prog_cc_g=no
4373 CFLAGS="-g"
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4375/* end confdefs.h. */
c0e7e2bf 4376
6de9cd9a
DN
4377int
4378main ()
4379{
c0e7e2bf 4380
6de9cd9a
DN
4381 ;
4382 return 0;
4383}
4384_ACEOF
5213506e 4385if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4386 ac_cv_prog_cc_g=yes
4387else
5213506e
RW
4388 CFLAGS=""
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h. */
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_compile "$LINENO"; then :
4401
4402else
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="-g"
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h. */
f489fba1 4407
5213506e
RW
4408int
4409main ()
4410{
4411
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_g=yes
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4420fi
5213506e 4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4422fi
5213506e
RW
4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4427$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4428if test "$ac_test_CFLAGS" = set; then
4429 CFLAGS=$ac_save_CFLAGS
4430elif test $ac_cv_prog_cc_g = yes; then
4431 if test "$GCC" = yes; then
4432 CFLAGS="-g -O2"
4433 else
4434 CFLAGS="-g"
4435 fi
4436else
4437 if test "$GCC" = yes; then
4438 CFLAGS="-O2"
4439 else
4440 CFLAGS=
4441 fi
4442fi
5213506e
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4444$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4445if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4446 $as_echo_n "(cached) " >&6
38d24731 4447else
5213506e 4448 ac_cv_prog_cc_c89=no
38d24731 4449ac_save_CC=$CC
5213506e 4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4451/* end confdefs.h. */
38d24731
RW
4452#include <stdarg.h>
4453#include <stdio.h>
22e05272 4454struct stat;
38d24731
RW
4455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4456struct buf { int x; };
4457FILE * (*rcsopen) (struct buf *, struct stat *, int);
4458static char *e (p, i)
4459 char **p;
4460 int i;
4461{
4462 return p[i];
4463}
4464static char *f (char * (*g) (char **, int), char **p, ...)
4465{
4466 char *s;
4467 va_list v;
4468 va_start (v,p);
4469 s = g (p, va_arg (v,int));
4470 va_end (v);
4471 return s;
4472}
f489fba1 4473
38d24731
RW
4474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4475 function prototypes and stuff, but not '\xHH' hex character constants.
4476 These don't provoke an error unfortunately, instead are silently treated
5213506e 4477 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4479 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4480 that's true only with -std. */
38d24731
RW
4481int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482
5213506e
RW
4483/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4484 inside strings and character constants. */
4485#define FOO(x) 'x'
4486int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4487
38d24731
RW
4488int test (int i, double x);
4489struct s1 {int (*f) (int a);};
4490struct s2 {int (*f) (double a);};
4491int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4492int argc;
4493char **argv;
f489fba1
FXC
4494int
4495main ()
4496{
38d24731 4497return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4498 ;
4499 return 0;
4500}
4501_ACEOF
5213506e
RW
4502for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4504do
4505 CC="$ac_save_CC $ac_arg"
5213506e
RW
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ac_cv_prog_cc_c89=$ac_arg
38d24731 4508fi
5213506e
RW
4509rm -f core conftest.err conftest.$ac_objext
4510 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4511done
5213506e 4512rm -f conftest.$ac_ext
38d24731
RW
4513CC=$ac_save_CC
4514
4515fi
5213506e
RW
4516# AC_CACHE_VAL
4517case "x$ac_cv_prog_cc_c89" in
4518 x)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4520$as_echo "none needed" >&6; } ;;
4521 xno)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4523$as_echo "unsupported" >&6; } ;;
38d24731 4524 *)
5213506e
RW
4525 CC="$CC $ac_cv_prog_cc_c89"
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4527$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4528esac
5213506e 4529if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4530
4531fi
6de9cd9a 4532
6de9cd9a
DN
4533ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4538
22e05272
JM
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4545$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4546if ${am_cv_prog_cc_c_o+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560 # Make sure it works both with $CC and with simple cc.
4561 # Following AC_PROG_CC_C_O, we do the test twice because some
4562 # compilers refuse to overwrite an existing .o file with -o,
4563 # though they will create one.
4564 am_cv_prog_cc_c_o=yes
4565 for am_i in 1 2; do
4566 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4567 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } \
4571 && test -f conftest2.$ac_objext; then
4572 : OK
4573 else
4574 am_cv_prog_cc_c_o=no
4575 break
4576 fi
4577 done
4578 rm -f core conftest*
4579 unset am_i
4580fi
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4582$as_echo "$am_cv_prog_cc_c_o" >&6; }
4583if test "$am_cv_prog_cc_c_o" != yes; then
4584 # Losing compiler, so override with the script.
4585 # FIXME: It is wrong to rewrite CC.
4586 # But if we don't then we get into trouble of one sort or another.
4587 # A longer-term fix would be to have automake use am__CC in this case,
4588 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4589 CC="$am_aux_dir/compile $CC"
4590fi
4591ac_ext=c
4592ac_cpp='$CPP $CPPFLAGS'
4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597
679c0f9a
TT
4598depcc="$CC" am_compiler_list=
4599
5213506e
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4601$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4602if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4603 $as_echo_n "(cached) " >&6
679c0f9a
TT
4604else
4605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4606 # We make a subdir and do the tests there. Otherwise we can end up
4607 # making bogus files that we don't know about and never remove. For
4608 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4609 # making a dummy file named 'D' -- because '-MD' means "put the output
4610 # in D".
c20fdb91 4611 rm -rf conftest.dir
679c0f9a
TT
4612 mkdir conftest.dir
4613 # Copy depcomp to subdir because otherwise we won't find it if we're
4614 # using a relative directory.
4615 cp "$am_depcomp" conftest.dir
4616 cd conftest.dir
4617 # We will build objects and dependencies in a subdirectory because
4618 # it helps to detect inapplicable dependency modes. For instance
4619 # both Tru64's cc and ICC support -MD to output dependencies as a
4620 # side effect of compilation, but ICC will put the dependencies in
4621 # the current directory while Tru64 will put them in the object
4622 # directory.
4623 mkdir sub
4624
4625 am_cv_CC_dependencies_compiler_type=none
4626 if test "$am_compiler_list" = ""; then
4627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4628 fi
5213506e
RW
4629 am__universal=false
4630 case " $depcc " in #(
4631 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4632 esac
4633
679c0f9a
TT
4634 for depmode in $am_compiler_list; do
4635 # Setup a source with many dependencies, because some compilers
4636 # like to wrap large dependency lists on column 80 (with \), and
4637 # we should not choose a depcomp mode which is confused by this.
4638 #
4639 # We need to recreate these files for each test, as the compiler may
4640 # overwrite some of them when testing with obscure command lines.
4641 # This happens at least with the AIX C compiler.
4642 : > sub/conftest.c
4643 for i in 1 2 3 4 5 6; do
4644 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4645 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4646 # Solaris 10 /bin/sh.
4647 echo '/* dummy */' > sub/conftst$i.h
679c0f9a
TT
4648 done
4649 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4650
22e05272 4651 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4652 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4653 # handle '-M -o', and we need to detect this. Also, some Intel
4654 # versions had trouble with output in subdirs.
5213506e
RW
4655 am__obj=sub/conftest.${OBJEXT-o}
4656 am__minus_obj="-o $am__obj"
679c0f9a 4657 case $depmode in
5213506e
RW
4658 gcc)
4659 # This depmode causes a compiler race in universal mode.
4660 test "$am__universal" = false || continue
4661 ;;
679c0f9a 4662 nosideeffect)
22e05272
JM
4663 # After this tag, mechanisms are not by side-effect, so they'll
4664 # only be used when explicitly requested.
679c0f9a
TT
4665 if test "x$enable_dependency_tracking" = xyes; then
4666 continue
4667 else
4668 break
4669 fi
4670 ;;
c20fdb91 4671 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4672 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4673 # not run yet. These depmodes are late enough in the game, and
4674 # so weak that their functioning should not be impacted.
4675 am__obj=conftest.${OBJEXT-o}
4676 am__minus_obj=
4677 ;;
679c0f9a
TT
4678 none) break ;;
4679 esac
679c0f9a 4680 if depmode=$depmode \
5213506e 4681 source=sub/conftest.c object=$am__obj \
679c0f9a 4682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4683 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4684 >/dev/null 2>conftest.err &&
5213506e 4685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4687 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689 # icc doesn't choke on unknown options, it will just issue warnings
4690 # or remarks (even with -Werror). So we grep stderr for any message
4691 # that says an option was ignored or not supported.
4692 # When given -MP, icc 7.0 and 7.1 complain thusly:
4693 # icc: Command line warning: ignoring option '-M'; no argument required
4694 # The diagnosis changed in icc 8.0:
4695 # icc: Command line remark: option '-MP' not supported
4696 if (grep 'ignoring option' conftest.err ||
4697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698 am_cv_CC_dependencies_compiler_type=$depmode
4699 break
4700 fi
4701 fi
4702 done
4703
4704 cd ..
4705 rm -rf conftest.dir
4706else
4707 am_cv_CC_dependencies_compiler_type=none
4708fi
4709
4710fi
5213506e
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4712$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4713CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714
5213506e 4715 if
679c0f9a
TT
4716 test "x$enable_dependency_tracking" != xno \
4717 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4718 am__fastdepCC_TRUE=
4719 am__fastdepCC_FALSE='#'
4720else
4721 am__fastdepCC_TRUE='#'
4722 am__fastdepCC_FALSE=
4723fi
4724
6de9cd9a 4725
6de9cd9a 4726
21be0a5a
JB
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4733$as_echo_n "checking how to run the C preprocessor... " >&6; }
4734# On Suns, sometimes $CPP names a directory.
4735if test -n "$CPP" && test -d "$CPP"; then
4736 CPP=
6de9cd9a 4737fi
21be0a5a 4738if test -z "$CPP"; then
22e05272 4739 if ${ac_cv_prog_CPP+:} false; then :
21be0a5a
JB
4740 $as_echo_n "(cached) " >&6
4741else
4742 # Double quotes because CPP needs to be expanded
4743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4744 do
4745 ac_preproc_ok=false
4746for ac_c_preproc_warn_flag in '' yes
4747do
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4755/* end confdefs.h. */
21be0a5a
JB
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761 Syntax error
c0e7e2bf 4762_ACEOF
21be0a5a
JB
4763if ac_fn_c_try_cpp "$LINENO"; then :
4764
49ea7a0e 4765else
21be0a5a
JB
4766 # Broken: fails on valid input.
4767continue
49ea7a0e 4768fi
22e05272 4769rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4770
21be0a5a
JB
4771 # OK, works on sane cases. Now check whether nonexistent headers
4772 # can be detected and how.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
4775#include <ac_nonexistent.h>
49ea7a0e 4776_ACEOF
21be0a5a
JB
4777if ac_fn_c_try_cpp "$LINENO"; then :
4778 # Broken: success on invalid input.
4779continue
c0e7e2bf 4780else
21be0a5a
JB
4781 # Passes both tests.
4782ac_preproc_ok=:
4783break
49ea7a0e 4784fi
22e05272 4785rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4786
4787done
4788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4789rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4790if $ac_preproc_ok; then :
4791 break
c0e7e2bf
JB
4792fi
4793
21be0a5a
JB
4794 done
4795 ac_cv_prog_CPP=$CPP
4796
4797fi
4798 CPP=$ac_cv_prog_CPP
49ea7a0e 4799else
21be0a5a 4800 ac_cv_prog_CPP=$CPP
49ea7a0e 4801fi
21be0a5a
JB
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4803$as_echo "$CPP" >&6; }
4804ac_preproc_ok=false
4805for ac_c_preproc_warn_flag in '' yes
4806do
4807 # Use a header file that comes with gcc, so configuring glibc
4808 # with a fresh cross-compiler works.
4809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810 # <limits.h> exists even on freestanding compilers.
4811 # On the NeXT, cc -E runs the code through the compiler's parser,
4812 # not just through cpp. "Syntax error" is here to catch this case.
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h. */
4815#ifdef __STDC__
4816# include <limits.h>
4817#else
4818# include <assert.h>
4819#endif
4820 Syntax error
4821_ACEOF
4822if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4823
49ea7a0e 4824else
21be0a5a
JB
4825 # Broken: fails on valid input.
4826continue
49ea7a0e 4827fi
22e05272 4828rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4829
21be0a5a
JB
4830 # OK, works on sane cases. Now check whether nonexistent headers
4831 # can be detected and how.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4833/* end confdefs.h. */
21be0a5a 4834#include <ac_nonexistent.h>
c049309d 4835_ACEOF
21be0a5a
JB
4836if ac_fn_c_try_cpp "$LINENO"; then :
4837 # Broken: success on invalid input.
4838continue
c049309d 4839else
21be0a5a
JB
4840 # Passes both tests.
4841ac_preproc_ok=:
4842break
c049309d 4843fi
22e05272 4844rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4845
4846done
4847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4848rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4849if $ac_preproc_ok; then :
4850
c049309d 4851else
21be0a5a
JB
4852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4854as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4855See \`config.log' for more details" "$LINENO" 5; }
c049309d 4856fi
c049309d 4857
21be0a5a
JB
4858ac_ext=c
4859ac_cpp='$CPP $CPPFLAGS'
4860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4863
21be0a5a
JB
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4866$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4867if ${ac_cv_path_GREP+:} false; then :
5213506e 4868 $as_echo_n "(cached) " >&6
6de9cd9a 4869else
21be0a5a
JB
4870 if test -z "$GREP"; then
4871 ac_path_GREP_found=false
4872 # Loop through the user's path and test for each of PROGNAME-LIST
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
21be0a5a 4878 for ac_prog in grep ggrep; do
5213506e 4879 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4880 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4881 as_fn_executable_p "$ac_path_GREP" || continue
21be0a5a
JB
4882# Check for GNU ac_path_GREP and select it if it is found.
4883 # Check for GNU $ac_path_GREP
4884case `"$ac_path_GREP" --version 2>&1` in
4885*GNU*)
4886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887*)
4888 ac_count=0
4889 $as_echo_n 0123456789 >"conftest.in"
4890 while :
4891 do
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 $as_echo 'GREP' >> "conftest.nl"
4896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 as_fn_arith $ac_count + 1 && ac_count=$as_val
4899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_GREP="$ac_path_GREP"
4902 ac_path_GREP_max=$ac_count
4903 fi
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
5213506e 4906 done
21be0a5a
JB
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
6de9cd9a 4909
21be0a5a
JB
4910 $ac_path_GREP_found && break 3
4911 done
4912 done
4913 done
4914IFS=$as_save_IFS
4915 if test -z "$ac_cv_path_GREP"; then
22e05272 4916 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4917 fi
6de9cd9a 4918else
21be0a5a 4919 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4920fi
4921
6de9cd9a 4922fi
21be0a5a
JB
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4924$as_echo "$ac_cv_path_GREP" >&6; }
4925 GREP="$ac_cv_path_GREP"
6de9cd9a 4926
21be0a5a
JB
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4929$as_echo_n "checking for egrep... " >&6; }
22e05272 4930if ${ac_cv_path_EGREP+:} false; then :
5213506e 4931 $as_echo_n "(cached) " >&6
6de9cd9a 4932else
21be0a5a
JB
4933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4934 then ac_cv_path_EGREP="$GREP -E"
4935 else
4936 if test -z "$EGREP"; then
4937 ac_path_EGREP_found=false
4938 # Loop through the user's path and test for each of PROGNAME-LIST
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
21be0a5a 4944 for ac_prog in egrep; do
5213506e 4945 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4947 as_fn_executable_p "$ac_path_EGREP" || continue
21be0a5a
JB
4948# Check for GNU ac_path_EGREP and select it if it is found.
4949 # Check for GNU $ac_path_EGREP
4950case `"$ac_path_EGREP" --version 2>&1` in
4951*GNU*)
4952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953*)
4954 ac_count=0
4955 $as_echo_n 0123456789 >"conftest.in"
4956 while :
4957 do
4958 cat "conftest.in" "conftest.in" >"conftest.tmp"
4959 mv "conftest.tmp" "conftest.in"
4960 cp "conftest.in" "conftest.nl"
4961 $as_echo 'EGREP' >> "conftest.nl"
4962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964 as_fn_arith $ac_count + 1 && ac_count=$as_val
4965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4966 # Best one so far, save it but keep looking for a better one
4967 ac_cv_path_EGREP="$ac_path_EGREP"
4968 ac_path_EGREP_max=$ac_count
4969 fi
4970 # 10*(2^10) chars as input seems more than enough
4971 test $ac_count -gt 10 && break
5213506e 4972 done
21be0a5a
JB
4973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974esac
6de9cd9a 4975
21be0a5a
JB
4976 $ac_path_EGREP_found && break 3
4977 done
4978 done
4979 done
4980IFS=$as_save_IFS
4981 if test -z "$ac_cv_path_EGREP"; then
22e05272 4982 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4983 fi
6de9cd9a 4984else
21be0a5a 4985 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4986fi
4987
21be0a5a 4988 fi
6de9cd9a 4989fi
21be0a5a
JB
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4991$as_echo "$ac_cv_path_EGREP" >&6; }
4992 EGREP="$ac_cv_path_EGREP"
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4996$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4997if ${ac_cv_header_stdc+:} false; then :
5213506e 4998 $as_echo_n "(cached) " >&6
6de9cd9a 4999else
21be0a5a
JB
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h. */
5002#include <stdlib.h>
5003#include <stdarg.h>
5004#include <string.h>
5005#include <float.h>
5006
5007int
5008main ()
5009{
5010
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_cv_header_stdc=yes
6de9cd9a 5017else
21be0a5a
JB
5018 ac_cv_header_stdc=no
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5021
21be0a5a
JB
5022if test $ac_cv_header_stdc = yes; then
5023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h. */
5026#include <string.h>
5027
5028_ACEOF
5029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 $EGREP "memchr" >/dev/null 2>&1; then :
5031
5032else
5033 ac_cv_header_stdc=no
6de9cd9a 5034fi
21be0a5a
JB
5035rm -f conftest*
5036
6de9cd9a 5037fi
21be0a5a
JB
5038
5039if test $ac_cv_header_stdc = yes; then
5040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h. */
5043#include <stdlib.h>
5044
5045_ACEOF
5046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047 $EGREP "free" >/dev/null 2>&1; then :
5048
6de9cd9a 5049else
21be0a5a 5050 ac_cv_header_stdc=no
6de9cd9a 5051fi
21be0a5a 5052rm -f conftest*
6de9cd9a 5053
6de9cd9a
DN
5054fi
5055
21be0a5a
JB
5056if test $ac_cv_header_stdc = yes; then
5057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5058 if test "$cross_compiling" = yes; then :
5059 :
5060else
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063#include <ctype.h>
5064#include <stdlib.h>
5065#if ((' ' & 0x0FF) == 0x020)
5066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068#else
5069# define ISLOWER(c) \
5070 (('a' <= (c) && (c) <= 'i') \
5071 || ('j' <= (c) && (c) <= 'r') \
5072 || ('s' <= (c) && (c) <= 'z'))
5073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074#endif
5075
5076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5077int
5078main ()
5079{
5080 int i;
5081 for (i = 0; i < 256; i++)
5082 if (XOR (islower (i), ISLOWER (i))
5083 || toupper (i) != TOUPPER (i))
5084 return 2;
5085 return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_run "$LINENO"; then :
5089
5090else
5091 ac_cv_header_stdc=no
5092fi
5093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5094 conftest.$ac_objext conftest.beam conftest.$ac_ext
5095fi
5096
5097fi
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5100$as_echo "$ac_cv_header_stdc" >&6; }
5101if test $ac_cv_header_stdc = yes; then
5102
5103$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5104
5105fi
5106
5107# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5108for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5109 inttypes.h stdint.h unistd.h
5110do :
5111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5113"
22e05272 5114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21be0a5a
JB
5115 cat >>confdefs.h <<_ACEOF
5116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5117_ACEOF
5118
5119fi
5120
5121done
5122
5123
5124
5125 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 5126if test "x$ac_cv_header_minix_config_h" = xyes; then :
21be0a5a
JB
5127 MINIX=yes
5128else
5129 MINIX=
5130fi
5131
5132
5133 if test "$MINIX" = yes; then
5134
5135$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5136
5137
5138$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5139
5140
5141$as_echo "#define _MINIX 1" >>confdefs.h
5142
5143 fi
5144
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5147$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 5148if ${ac_cv_safe_to_define___extensions__+:} false; then :
21be0a5a
JB
5149 $as_echo_n "(cached) " >&6
5150else
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h. */
5153
22e05272
JM
5154# define __EXTENSIONS__ 1
5155 $ac_includes_default
21be0a5a
JB
5156int
5157main ()
5158{
5159
5160 ;
5161 return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_safe_to_define___extensions__=yes
5166else
5167 ac_cv_safe_to_define___extensions__=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170fi
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5172$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5173 test $ac_cv_safe_to_define___extensions__ = yes &&
5174 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5175
5176 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5177
5178 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5179
5180 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5181
5182 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5183
5184
5185
e8e66971
MR
5186
5187# Check whether --with-toolexeclibdir was given.
5188if test "${with_toolexeclibdir+set}" = set; then :
5189 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5190 /)
5191 ;;
5192 */)
5193 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5194 ;;
5195esac
5196else
5197 with_toolexeclibdir=no
5198fi
5199
5200
5201
21be0a5a
JB
5202# Calculate toolexeclibdir
5203# Also toolexecdir, though it's only used in toolexeclibdir
5204case ${version_specific_libs} in
5205 yes)
5206 # Need the gcc compiler version to know where to install libraries
5207 # and header files if --enable-version-specific-runtime-libs option
5208 # is selected.
5209 toolexecdir='$(libdir)/gcc/$(target_alias)'
5210 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5211 ;;
5212 no)
5213 if test -n "$with_cross_host" &&
5214 test x"$with_cross_host" != x"no"; then
5215 # Install a library built with a cross compiler in tooldir, not libdir.
5216 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5217 case ${with_toolexeclibdir} in
5218 no)
5219 toolexeclibdir='$(toolexecdir)/lib'
5220 ;;
5221 *)
5222 toolexeclibdir=${with_toolexeclibdir}
5223 ;;
5224 esac
21be0a5a
JB
5225 else
5226 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5227 toolexeclibdir='$(libdir)'
5228 fi
5229 multi_os_directory=`$CC -print-multi-os-directory`
5230 case $multi_os_directory in
5231 .) ;; # Avoid trailing /.
5232 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5233 esac
5234 ;;
5235esac
5236
5237
5238
5239# Create a spec file, so that compile/link tests don't fail
5240test -f libgfortran.spec || touch libgfortran.spec
5241
60858d8a
TB
5242ac_ext=c
5243ac_cpp='$CPP $CPPFLAGS'
5244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
21be0a5a
JB
5248# Check the compiler.
5249# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5250# We must force CC to /not/ be precious variables; otherwise
5251# the wrong, non-multilib-adjusted value will be used in multilibs.
5252# As a side effect, we have to subst CFLAGS ourselves.
5253
5254
5255
5256ac_ext=c
5257ac_cpp='$CPP $CPPFLAGS'
5258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5263set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5266if ${ac_cv_prog_CC+:} false; then :
5213506e 5267 $as_echo_n "(cached) " >&6
6de9cd9a 5268else
21be0a5a
JB
5269 if test -n "$CC"; then
5270 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5271else
96b8a615
AJ
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5213506e 5277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5279 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5281 break 2
5282 fi
5283done
5213506e
RW
5284 done
5285IFS=$as_save_IFS
6de9cd9a 5286
6de9cd9a 5287fi
96b8a615 5288fi
21be0a5a
JB
5289CC=$ac_cv_prog_CC
5290if test -n "$CC"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5292$as_echo "$CC" >&6; }
96b8a615 5293else
5213506e
RW
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
96b8a615 5296fi
6de9cd9a 5297
5213506e 5298
6de9cd9a 5299fi
21be0a5a
JB
5300if test -z "$ac_cv_prog_CC"; then
5301 ac_ct_CC=$CC
5302 # Extract the first word of "gcc", so it can be a program name with args.
5303set dummy gcc; ac_word=$2
5213506e
RW
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5306if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 5307 $as_echo_n "(cached) " >&6
6de9cd9a 5308else
21be0a5a
JB
5309 if test -n "$ac_ct_CC"; then
5310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5311else
96b8a615
AJ
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5213506e 5317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5319 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5321 break 2
5322 fi
5323done
5213506e
RW
5324 done
5325IFS=$as_save_IFS
6de9cd9a 5326
6de9cd9a 5327fi
6de9cd9a 5328fi
21be0a5a
JB
5329ac_ct_CC=$ac_cv_prog_ac_ct_CC
5330if test -n "$ac_ct_CC"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5332$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5333else
5213506e
RW
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
6de9cd9a
DN
5336fi
5337
21be0a5a
JB
5338 if test "x$ac_ct_CC" = x; then
5339 CC=""
5213506e
RW
5340 else
5341 case $cross_compiling:$ac_tool_warned in
5342yes:)
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345ac_tool_warned=yes ;;
5346esac
21be0a5a 5347 CC=$ac_ct_CC
5213506e 5348 fi
96b8a615 5349else
21be0a5a 5350 CC="$ac_cv_prog_CC"
6de9cd9a 5351fi
96b8a615 5352
21be0a5a
JB
5353if test -z "$CC"; then
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}cc; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5359if ${ac_cv_prog_CC+:} false; then :
5213506e 5360 $as_echo_n "(cached) " >&6
6de9cd9a 5361else
21be0a5a
JB
5362 if test -n "$CC"; then
5363 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5364else
21be0a5a
JB
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5372 ac_cv_prog_CC="${ac_tool_prefix}cc"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376done
5377 done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382CC=$ac_cv_prog_CC
5383if test -n "$CC"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5385$as_echo "$CC" >&6; }
5386else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392 fi
5393fi
5394if test -z "$CC"; then
5395 # Extract the first word of "cc", so it can be a program name with args.
5396set dummy cc; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5399if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5400 $as_echo_n "(cached) " >&6
5401else
5402 if test -n "$CC"; then
5403 ac_cv_prog_CC="$CC" # Let the user override the test.
5404else
5405 ac_prog_rejected=no
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5414 ac_prog_rejected=yes
5415 continue
5416 fi
5417 ac_cv_prog_CC="cc"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421done
5422 done
5423IFS=$as_save_IFS
5424
5425if test $ac_prog_rejected = yes; then
5426 # We found a bogon in the path, so make sure we never use it.
5427 set dummy $ac_cv_prog_CC
5428 shift
5429 if test $# != 0; then
5430 # We chose a different compiler from the bogus one.
5431 # However, it has the same basename, so the bogon will be chosen
5432 # first if we set CC to just the basename; use the full file name.
5433 shift
5434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5435 fi
5436fi
5437fi
5438fi
5439CC=$ac_cv_prog_CC
5440if test -n "$CC"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5442$as_echo "$CC" >&6; }
5443else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
5446fi
5447
5448
5449fi
5450if test -z "$CC"; then
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in cl.exe
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5458if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5459 $as_echo_n "(cached) " >&6
5460else
5461 if test -n "$CC"; then
5462 ac_cv_prog_CC="$CC" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476 done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481CC=$ac_cv_prog_CC
5482if test -n "$CC"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5484$as_echo "$CC" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490
5491 test -n "$CC" && break
5492 done
5493fi
5494if test -z "$CC"; then
5495 ac_ct_CC=$CC
5496 for ac_prog in cl.exe
5497do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499set dummy $ac_prog; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5502if ${ac_cv_prog_ac_ct_CC+:} false; then :
21be0a5a
JB
5503 $as_echo_n "(cached) " >&6
5504else
5505 if test -n "$ac_ct_CC"; then
5506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5515 ac_cv_prog_ac_ct_CC="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520 done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525ac_ct_CC=$ac_cv_prog_ac_ct_CC
5526if test -n "$ac_ct_CC"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5528$as_echo "$ac_ct_CC" >&6; }
5529else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533
5534
5535 test -n "$ac_ct_CC" && break
5536done
5537
5538 if test "x$ac_ct_CC" = x; then
5539 CC=""
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
5546esac
5547 CC=$ac_ct_CC
5548 fi
5549fi
5550
5551fi
5552
5553
5554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5556as_fn_error $? "no acceptable C compiler found in \$PATH
5557See \`config.log' for more details" "$LINENO" 5; }
21be0a5a
JB
5558
5559# Provide some information about the compiler.
5560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5561set X $ac_compile
5562ac_compiler=$2
5563for ac_option in --version -v -V -qversion; do
5564 { { ac_try="$ac_compiler $ac_option >&5"
5565case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568esac
5569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5570$as_echo "$ac_try_echo"; } >&5
5571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5572 ac_status=$?
5573 if test -s conftest.err; then
5574 sed '10a\
5575... rest of stderr output deleted ...
5576 10q' conftest.err >conftest.er1
5577 cat conftest.er1 >&5
21be0a5a 5578 fi
22e05272 5579 rm -f conftest.er1 conftest.err
21be0a5a
JB
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }
5582done
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5585$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5586if ${ac_cv_c_compiler_gnu+:} false; then :
21be0a5a
JB
5587 $as_echo_n "(cached) " >&6
5588else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h. */
5591
5592int
5593main ()
5594{
5595#ifndef __GNUC__
5596 choke me
5597#endif
5598
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_compiler_gnu=yes
5605else
5606 ac_compiler_gnu=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609ac_cv_c_compiler_gnu=$ac_compiler_gnu
5610
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5613$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5614if test $ac_compiler_gnu = yes; then
5615 GCC=yes
5616else
5617 GCC=
5618fi
5619ac_test_CFLAGS=${CFLAGS+set}
5620ac_save_CFLAGS=$CFLAGS
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5622$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5623if ${ac_cv_prog_cc_g+:} false; then :
21be0a5a
JB
5624 $as_echo_n "(cached) " >&6
5625else
5626 ac_save_c_werror_flag=$ac_c_werror_flag
5627 ac_c_werror_flag=yes
5628 ac_cv_prog_cc_g=no
5629 CFLAGS="-g"
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632
5633int
5634main ()
5635{
5636
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_prog_cc_g=yes
5643else
5644 CFLAGS=""
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657
5658else
5659 ac_c_werror_flag=$ac_save_c_werror_flag
5660 CFLAGS="-g"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663
5664int
5665main ()
5666{
5667
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_prog_cc_g=yes
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 ac_c_werror_flag=$ac_save_c_werror_flag
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5683$as_echo "$ac_cv_prog_cc_g" >&6; }
5684if test "$ac_test_CFLAGS" = set; then
5685 CFLAGS=$ac_save_CFLAGS
5686elif test $ac_cv_prog_cc_g = yes; then
5687 if test "$GCC" = yes; then
5688 CFLAGS="-g -O2"
5689 else
5690 CFLAGS="-g"
5691 fi
5692else
5693 if test "$GCC" = yes; then
5694 CFLAGS="-O2"
5695 else
5696 CFLAGS=
5697 fi
5698fi
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5701if ${ac_cv_prog_cc_c89+:} false; then :
21be0a5a
JB
5702 $as_echo_n "(cached) " >&6
5703else
5704 ac_cv_prog_cc_c89=no
5705ac_save_CC=$CC
5706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h. */
5708#include <stdarg.h>
5709#include <stdio.h>
22e05272 5710struct stat;
21be0a5a
JB
5711/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5712struct buf { int x; };
5713FILE * (*rcsopen) (struct buf *, struct stat *, int);
5714static char *e (p, i)
5715 char **p;
5716 int i;
5717{
5718 return p[i];
5719}
5720static char *f (char * (*g) (char **, int), char **p, ...)
5721{
5722 char *s;
5723 va_list v;
5724 va_start (v,p);
5725 s = g (p, va_arg (v,int));
5726 va_end (v);
5727 return s;
5728}
5729
5730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5731 function prototypes and stuff, but not '\xHH' hex character constants.
5732 These don't provoke an error unfortunately, instead are silently treated
5733 as 'x'. The following induces an error, until -std is added to get
5734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5735 array size at least. It's necessary to write '\x00'==0 to get something
5736 that's true only with -std. */
5737int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5738
5739/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5740 inside strings and character constants. */
5741#define FOO(x) 'x'
5742int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5743
5744int test (int i, double x);
5745struct s1 {int (*f) (int a);};
5746struct s2 {int (*f) (double a);};
5747int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5748int argc;
5749char **argv;
5750int
5751main ()
5752{
5753return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5760do
5761 CC="$ac_save_CC $ac_arg"
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763 ac_cv_prog_cc_c89=$ac_arg
5764fi
5765rm -f core conftest.err conftest.$ac_objext
5766 test "x$ac_cv_prog_cc_c89" != "xno" && break
5767done
5768rm -f conftest.$ac_ext
5769CC=$ac_save_CC
5770
5771fi
5772# AC_CACHE_VAL
5773case "x$ac_cv_prog_cc_c89" in
5774 x)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5776$as_echo "none needed" >&6; } ;;
5777 xno)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5779$as_echo "unsupported" >&6; } ;;
5780 *)
5781 CC="$CC $ac_cv_prog_cc_c89"
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5783$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5784esac
5785if test "x$ac_cv_prog_cc_c89" != xno; then :
5786
5787fi
5788
5789ac_ext=c
5790ac_cpp='$CPP $CPPFLAGS'
5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794
22e05272
JM
5795ac_ext=c
5796ac_cpp='$CPP $CPPFLAGS'
5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5801$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5802if ${am_cv_prog_cc_c_o+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816 # Make sure it works both with $CC and with simple cc.
5817 # Following AC_PROG_CC_C_O, we do the test twice because some
5818 # compilers refuse to overwrite an existing .o file with -o,
5819 # though they will create one.
5820 am_cv_prog_cc_c_o=yes
5821 for am_i in 1 2; do
5822 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5823 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } \
5827 && test -f conftest2.$ac_objext; then
5828 : OK
5829 else
5830 am_cv_prog_cc_c_o=no
5831 break
5832 fi
5833 done
5834 rm -f core conftest*
5835 unset am_i
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5838$as_echo "$am_cv_prog_cc_c_o" >&6; }
5839if test "$am_cv_prog_cc_c_o" != yes; then
5840 # Losing compiler, so override with the script.
5841 # FIXME: It is wrong to rewrite CC.
5842 # But if we don't then we get into trouble of one sort or another.
5843 # A longer-term fix would be to have automake use am__CC in this case,
5844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5845 CC="$am_aux_dir/compile $CC"
5846fi
5847ac_ext=c
5848ac_cpp='$CPP $CPPFLAGS'
5849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853
21be0a5a
JB
5854depcc="$CC" am_compiler_list=
5855
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5857$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5858if ${am_cv_CC_dependencies_compiler_type+:} false; then :
21be0a5a
JB
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5862 # We make a subdir and do the tests there. Otherwise we can end up
5863 # making bogus files that we don't know about and never remove. For
5864 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5865 # making a dummy file named 'D' -- because '-MD' means "put the output
5866 # in D".
c20fdb91 5867 rm -rf conftest.dir
21be0a5a
JB
5868 mkdir conftest.dir
5869 # Copy depcomp to subdir because otherwise we won't find it if we're
5870 # using a relative directory.
5871 cp "$am_depcomp" conftest.dir
5872 cd conftest.dir
5873 # We will build objects and dependencies in a subdirectory because
5874 # it helps to detect inapplicable dependency modes. For instance
5875 # both Tru64's cc and ICC support -MD to output dependencies as a
5876 # side effect of compilation, but ICC will put the dependencies in
5877 # the current directory while Tru64 will put them in the object
5878 # directory.
5879 mkdir sub
5880
5881 am_cv_CC_dependencies_compiler_type=none
5882 if test "$am_compiler_list" = ""; then
5883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5884 fi
5885 am__universal=false
5886 case " $depcc " in #(
5887 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5888 esac
5889
5890 for depmode in $am_compiler_list; do
5891 # Setup a source with many dependencies, because some compilers
5892 # like to wrap large dependency lists on column 80 (with \), and
5893 # we should not choose a depcomp mode which is confused by this.
5894 #
5895 # We need to recreate these files for each test, as the compiler may
5896 # overwrite some of them when testing with obscure command lines.
5897 # This happens at least with the AIX C compiler.
5898 : > sub/conftest.c
5899 for i in 1 2 3 4 5 6; do
5900 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5901 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5902 # Solaris 10 /bin/sh.
5903 echo '/* dummy */' > sub/conftst$i.h
21be0a5a
JB
5904 done
5905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5906
22e05272 5907 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21be0a5a 5908 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5909 # handle '-M -o', and we need to detect this. Also, some Intel
5910 # versions had trouble with output in subdirs.
21be0a5a
JB
5911 am__obj=sub/conftest.${OBJEXT-o}
5912 am__minus_obj="-o $am__obj"
5913 case $depmode in
5914 gcc)
5915 # This depmode causes a compiler race in universal mode.
5916 test "$am__universal" = false || continue
5917 ;;
5918 nosideeffect)
22e05272
JM
5919 # After this tag, mechanisms are not by side-effect, so they'll
5920 # only be used when explicitly requested.
21be0a5a
JB
5921 if test "x$enable_dependency_tracking" = xyes; then
5922 continue
5923 else
5924 break
5925 fi
5926 ;;
c20fdb91 5927 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5928 # This compiler won't grok '-c -o', but also, the minuso test has
21be0a5a
JB
5929 # not run yet. These depmodes are late enough in the game, and
5930 # so weak that their functioning should not be impacted.
5931 am__obj=conftest.${OBJEXT-o}
5932 am__minus_obj=
5933 ;;
5934 none) break ;;
5935 esac
5936 if depmode=$depmode \
5937 source=sub/conftest.c object=$am__obj \
5938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5940 >/dev/null 2>conftest.err &&
5941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5945 # icc doesn't choke on unknown options, it will just issue warnings
5946 # or remarks (even with -Werror). So we grep stderr for any message
5947 # that says an option was ignored or not supported.
5948 # When given -MP, icc 7.0 and 7.1 complain thusly:
5949 # icc: Command line warning: ignoring option '-M'; no argument required
5950 # The diagnosis changed in icc 8.0:
5951 # icc: Command line remark: option '-MP' not supported
5952 if (grep 'ignoring option' conftest.err ||
5953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5954 am_cv_CC_dependencies_compiler_type=$depmode
5955 break
5956 fi
5957 fi
5958 done
5959
5960 cd ..
5961 rm -rf conftest.dir
5962else
5963 am_cv_CC_dependencies_compiler_type=none
5964fi
5965
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5968$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5969CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5970
5971 if
5972 test "x$enable_dependency_tracking" != xno \
5973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5974 am__fastdepCC_TRUE=
5975 am__fastdepCC_FALSE='#'
5976else
5977 am__fastdepCC_TRUE='#'
5978 am__fastdepCC_FALSE=
5979fi
5980
5981
5982
5983
60858d8a
TB
5984
5985
60858d8a
TB
5986
5987
21be0a5a 5988# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
49ad4d2c 5989have_real_17=no
21be0a5a 5990if test "x$GCC" = "xyes"; then
83aac698 5991 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5992 ## We like to use C11 and C99 routines when available. This makes
5993 ## sure that
21be0a5a 5994 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5995 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5996 ## Compile the following tests with the same system header contents
5997 ## that we'll encounter when compiling our own source files.
f7b6856f 5998 CFLAGS="-std=gnu11 $CFLAGS"
49ad4d2c
TK
5999
6000 case x$target in
6001 xpowerpc64le*-linux*)
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#if __SIZEOF_LONG_DOUBLE__ != 16
6005 #error long double is double
6006 #endif
6007int
6008main ()
6009{
6010(void) 0;
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015if ac_fn_c_try_cpp "$LINENO"; then :
a8fea8cd
TK
6016 AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6017 AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6018 CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
49ad4d2c
TK
6019 have_real_17=yes
6020fi
6021rm -f conftest.err conftest.i conftest.$ac_ext
6022 ;;
6023 *)
6024 ;;
6025 esac
6026fi
6027 if test "x$have_real_17" != xno; then
6028 HAVE_REAL_17_TRUE=
6029 HAVE_REAL_17_FALSE='#'
6030else
6031 HAVE_REAL_17_TRUE='#'
6032 HAVE_REAL_17_FALSE=
21be0a5a
JB
6033fi
6034
6f4977fc 6035
26724ef9
IT
6036# Add CET specific flags if CET is enabled
6037 # Check whether --enable-cet was given.
6038if test "${enable_cet+set}" = set; then :
6039 enableval=$enable_cet;
6040 case "$enableval" in
a0e1df88 6041 yes|no|auto) ;;
22e05272 6042 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
26724ef9
IT
6043 esac
6044
6045else
8d286dd1 6046 enable_cet=auto
26724ef9
IT
6047fi
6048
6049
14e335ed
IT
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6051$as_echo_n "checking for CET support... " >&6; }
6052
9051b548 6053# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
26724ef9
IT
6054case "$host" in
6055 i[34567]86-*-linux* | x86_64-*-linux*)
6056 case "$enable_cet" in
a0e1df88 6057 auto)
14e335ed 6058 # Check if target supports multi-byte NOPs
c0f8c22a 6059 # and if compiler and assembler support CET insn.
9051b548 6060 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 6061 CFLAGS="$CFLAGS -fcf-protection"
26724ef9
IT
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h. */
6064
6065int
6066main ()
6067{
14e335ed
IT
6068
6069#if !defined(__SSE2__)
6070#error target does not support multi-byte NOPs
6071#else
26724ef9 6072asm ("setssbsy");
14e335ed
IT
6073#endif
6074
26724ef9
IT
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080 enable_cet=yes
6081else
6082 enable_cet=no
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 6085 CFLAGS="$cet_save_CFLAGS"
26724ef9
IT
6086 ;;
6087 yes)
6088 # Check if assembler supports CET.
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h. */
6091
6092int
6093main ()
6094{
6095asm ("setssbsy");
6096 ;
6097 return 0;
6098}
6099_ACEOF
6100if ac_fn_c_try_compile "$LINENO"; then :
6101
6102else
22e05272 6103 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
26724ef9
IT
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ;;
6107 esac
6108 ;;
6109 *)
6110 enable_cet=no
6111 ;;
6112esac
6113if test x$enable_cet = xyes; then
7b47ecf2 6114 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6116$as_echo "yes" >&6; }
6117else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
26724ef9
IT
6120fi
6121
6122AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6123AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6124CFLAGS="$CFLAGS $CET_FLAGS"
6125
6126
21be0a5a
JB
6127
6128
6129
6130# Check for symbol versioning (copied from libssp).
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6132$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
6133# Check whether --enable-symvers was given.
6134if test "${enable_symvers+set}" = set; then :
6135 enableval=$enable_symvers; gfortran_use_symver=$enableval
6136else
6137 gfortran_use_symver=yes
6138fi
6139
19af62db 6140if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
6141 save_LDFLAGS="$LDFLAGS"
6142 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6143 cat > conftest.map <<EOF
21be0a5a
JB
6144FOO_1.0 {
6145 global: *foo*; bar; local: *;
6146};
6147EOF
bf382f5f 6148 if test x$gcc_no_link = xyes; then
22e05272 6149 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6150fi
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h. */
6153int foo;
6154int
6155main ()
6156{
6157
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163 gfortran_use_symver=gnu
6164else
6165 gfortran_use_symver=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6169 if test x$gfortran_use_symver = xno; then
6170 case "$target_os" in
6171 solaris2*)
6172 LDFLAGS="$save_LDFLAGS"
6173 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6174 # Sun ld cannot handle wildcards and treats all entries as undefined.
6175 cat > conftest.map <<EOF
21be0a5a
JB
6176FOO_1.0 {
6177 global: foo; local: *;
6178};
6179EOF
bf382f5f 6180 if test x$gcc_no_link = xyes; then
22e05272 6181 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6182fi
6183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185int foo;
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_link "$LINENO"; then :
6195 gfortran_use_symver=sun
6196else
6197 gfortran_use_symver=no
6198fi
6199rm -f core conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6201 ;;
6202 esac
6203 fi
6204 LDFLAGS="$save_LDFLAGS"
21be0a5a 6205fi
21be0a5a
JB
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6207$as_echo "$gfortran_use_symver" >&6; }
6208 if test "x$gfortran_use_symver" != xno; then
6209 LIBGFOR_USE_SYMVER_TRUE=
6210 LIBGFOR_USE_SYMVER_FALSE='#'
6211else
6212 LIBGFOR_USE_SYMVER_TRUE='#'
6213 LIBGFOR_USE_SYMVER_FALSE=
6214fi
6215
6216 if test "x$gfortran_use_symver" = xgnu; then
6217 LIBGFOR_USE_SYMVER_GNU_TRUE=
6218 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6219else
6220 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6221 LIBGFOR_USE_SYMVER_GNU_FALSE=
6222fi
6223
6224 if test "x$gfortran_use_symver" = xsun; then
6225 LIBGFOR_USE_SYMVER_SUN_TRUE=
6226 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6227else
6228 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6229 LIBGFOR_USE_SYMVER_SUN_FALSE=
6230fi
6231
6232
ee95f928
BS
6233# For GPU offloading, not everything in libfortran can be supported.
6234# Currently, the only target that has this problem is nvptx. The
6235# following is a (partial) list of features that are unsupportable on
6236# this particular target:
6237# * Constructors
6238# * alloca
6239# * C library support for I/O, with printf as the one notable exception
6240# * C library support for other features such as signal, environment
6241# variables, time functions
6242
b1e86e33 6243 if test "x${target_cpu}" = xnvptx; then
ee95f928
BS
6244 LIBGFOR_MINIMAL_TRUE=
6245 LIBGFOR_MINIMAL_FALSE='#'
6246else
6247 LIBGFOR_MINIMAL_TRUE='#'
6248 LIBGFOR_MINIMAL_FALSE=
6249fi
6250
6251
2e764ae1
TB
6252# Some compiler target support may have limited support for integer
6253# or floating point numbers – or may want to reduce the libgfortran size
6254# although they do have the support.
6255LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6256LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6257
2e764ae1
TB
6258
6259
6260
21be0a5a
JB
6261# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6262# similarly to how libstdc++ does it
6263ac_test_CFLAGS="${CFLAGS+set}"
6264ac_save_CFLAGS="$CFLAGS"
6265
6266# Check for -ffunction-sections -fdata-sections
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6268$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6269CFLAGS='-Werror -ffunction-sections -fdata-sections'
6270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h. */
6272
6273int
6274main ()
6275{
6276int foo;
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_compile "$LINENO"; then :
6282 ac_fdsections=yes
6283else
6284 ac_fdsections=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287if test "$ac_test_CFLAGS" = set; then
6288 CFLAGS="$ac_save_CFLAGS"
6289else
6290 # this is the suspicious part
6291 CFLAGS=""
6292fi
6293if test x"$ac_fdsections" = x"yes"; then
6294 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6297$as_echo "$ac_fdsections" >&6; }
6298
6299
66dbcf2d
RO
6300# Check linker hardware capability support.
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6302$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6303if ${ac_cv_path_SED+:} false; then :
21be0a5a
JB
6304 $as_echo_n "(cached) " >&6
6305else
66dbcf2d
RO
6306 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6307 for ac_i in 1 2 3 4 5 6 7; do
6308 ac_script="$ac_script$as_nl$ac_script"
6309 done
6310 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6311 { ac_script=; unset ac_script;}
6312 if test -z "$SED"; then
6313 ac_path_SED_found=false
6314 # Loop through the user's path and test for each of PROGNAME-LIST
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
66dbcf2d 6320 for ac_prog in sed gsed; do
21be0a5a 6321 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6322 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6323 as_fn_executable_p "$ac_path_SED" || continue
66dbcf2d
RO
6324# Check for GNU ac_path_SED and select it if it is found.
6325 # Check for GNU $ac_path_SED
6326case `"$ac_path_SED" --version 2>&1` in
6327*GNU*)
6328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6329*)
6330 ac_count=0
6331 $as_echo_n 0123456789 >"conftest.in"
6332 while :
6333 do
6334 cat "conftest.in" "conftest.in" >"conftest.tmp"
6335 mv "conftest.tmp" "conftest.in"
6336 cp "conftest.in" "conftest.nl"
6337 $as_echo '' >> "conftest.nl"
6338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6340 as_fn_arith $ac_count + 1 && ac_count=$as_val
6341 if test $ac_count -gt ${ac_path_SED_max-0}; then
6342 # Best one so far, save it but keep looking for a better one
6343 ac_cv_path_SED="$ac_path_SED"
6344 ac_path_SED_max=$ac_count
6345 fi
6346 # 10*(2^10) chars as input seems more than enough
6347 test $ac_count -gt 10 && break
21be0a5a 6348 done
66dbcf2d
RO
6349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6350esac
21be0a5a 6351
66dbcf2d
RO
6352 $ac_path_SED_found && break 3
6353 done
6354 done
21be0a5a
JB
6355 done
6356IFS=$as_save_IFS
66dbcf2d 6357 if test -z "$ac_cv_path_SED"; then
22e05272 6358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
66dbcf2d 6359 fi
21be0a5a 6360else
66dbcf2d 6361 ac_cv_path_SED=$SED
21be0a5a
JB
6362fi
6363
21be0a5a 6364fi
66dbcf2d
RO
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6366$as_echo "$ac_cv_path_SED" >&6; }
6367 SED="$ac_cv_path_SED"
6368 rm -f conftest.sed
21be0a5a 6369
66dbcf2d
RO
6370test -z "$SED" && SED=sed
6371Xsed="$SED -e 1s/^X//"
21be0a5a 6372
21be0a5a
JB
6373
6374
66dbcf2d
RO
6375
6376
6377
6378
6379
6380
6381
6382
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6384$as_echo_n "checking for fgrep... " >&6; }
22e05272 6385if ${ac_cv_path_FGREP+:} false; then :
21be0a5a
JB
6386 $as_echo_n "(cached) " >&6
6387else
66dbcf2d
RO
6388 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6389 then ac_cv_path_FGREP="$GREP -F"
6390 else
6391 if test -z "$FGREP"; then
6392 ac_path_FGREP_found=false
6393 # Loop through the user's path and test for each of PROGNAME-LIST
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
66dbcf2d 6399 for ac_prog in fgrep; do
21be0a5a 6400 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6401 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6402 as_fn_executable_p "$ac_path_FGREP" || continue
66dbcf2d
RO
6403# Check for GNU ac_path_FGREP and select it if it is found.
6404 # Check for GNU $ac_path_FGREP
6405case `"$ac_path_FGREP" --version 2>&1` in
6406*GNU*)
6407 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6408*)
6409 ac_count=0
6410 $as_echo_n 0123456789 >"conftest.in"
6411 while :
6412 do
6413 cat "conftest.in" "conftest.in" >"conftest.tmp"
6414 mv "conftest.tmp" "conftest.in"
6415 cp "conftest.in" "conftest.nl"
6416 $as_echo 'FGREP' >> "conftest.nl"
6417 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6419 as_fn_arith $ac_count + 1 && ac_count=$as_val
6420 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6421 # Best one so far, save it but keep looking for a better one
6422 ac_cv_path_FGREP="$ac_path_FGREP"
6423 ac_path_FGREP_max=$ac_count
6424 fi
6425 # 10*(2^10) chars as input seems more than enough
6426 test $ac_count -gt 10 && break
6427 done
6428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6429esac
6430
6431 $ac_path_FGREP_found && break 3
6432 done
6433 done
21be0a5a
JB
6434 done
6435IFS=$as_save_IFS
66dbcf2d 6436 if test -z "$ac_cv_path_FGREP"; then
22e05272 6437 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
66dbcf2d
RO
6438 fi
6439else
6440 ac_cv_path_FGREP=$FGREP
6441fi
21be0a5a 6442
66dbcf2d 6443 fi
21be0a5a 6444fi
66dbcf2d
RO
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6446$as_echo "$ac_cv_path_FGREP" >&6; }
6447 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6448
6449
66dbcf2d 6450test -z "$GREP" && GREP=grep
1cf3d07d
SE
6451
6452
6453
6454
6de9cd9a 6455
1cf3d07d
SE
6456
6457
6458
6459
6460
6461
6462
43e02a8a 6463
43e02a8a 6464
43e02a8a 6465
43e02a8a 6466
43e02a8a
RW
6467
6468ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6473$as_echo_n "checking how to print strings... " >&6; }
6474# Test print first, because it will be a builtin if present.
6475if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6476 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6477 ECHO='print -r --'
6478elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6479 ECHO='printf %s\n'
6480else
6481 # Use this function as a fallback that always works.
6482 func_fallback_echo ()
6483 {
6484 eval 'cat <<_LTECHO_EOF
6485$1
6486_LTECHO_EOF'
6487 }
6488 ECHO='func_fallback_echo'
6489fi
6490
6491# func_echo_all arg...
6492# Invoke $ECHO with all args, space-separated.
6493func_echo_all ()
6494{
6495 $ECHO ""
6496}
6497
6498case "$ECHO" in
6499 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6500$as_echo "printf" >&6; } ;;
6501 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6502$as_echo "print -r" >&6; } ;;
6503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6504$as_echo "cat" >&6; } ;;
6505esac
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
21be0a5a
JB
6518
6519
5213506e 6520
5213506e 6521
66dbcf2d
RO
6522# Check whether --with-gnu-ld was given.
6523if test "${with_gnu_ld+set}" = set; then :
6524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6525else
6526 with_gnu_ld=no
1cf3d07d 6527fi
21be0a5a 6528
66dbcf2d
RO
6529ac_prog=ld
6530if test "$GCC" = yes; then
6531 # Check if gcc -print-prog-name=ld gives a path.
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6533$as_echo_n "checking for ld used by $CC... " >&6; }
6534 case $host in
6535 *-*-mingw*)
6536 # gcc leaves a trailing carriage return which upsets mingw
6537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6538 *)
6539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6540 esac
6541 case $ac_prog in
6542 # Accept absolute paths.
6543 [\\/]* | ?:[\\/]*)
6544 re_direlt='/[^/][^/]*/\.\./'
6545 # Canonicalize the pathname of ld
6546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6549 done
6550 test -z "$LD" && LD="$ac_prog"
6551 ;;
6552 "")
6553 # If it fails, then pretend we aren't using GCC.
6554 ac_prog=ld
6555 ;;
6556 *)
6557 # If it is relative, then search for the first ld in PATH.
6558 with_gnu_ld=unknown
6559 ;;
6560 esac
6561elif test "$with_gnu_ld" = yes; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6563$as_echo_n "checking for GNU ld... " >&6; }
6564else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6566$as_echo_n "checking for non-GNU ld... " >&6; }
6567fi
22e05272 6568if ${lt_cv_path_LD+:} false; then :
66dbcf2d
RO
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -z "$LD"; then
6572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6573 for ac_dir in $PATH; do
6574 IFS="$lt_save_ifs"
6575 test -z "$ac_dir" && ac_dir=.
6576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6577 lt_cv_path_LD="$ac_dir/$ac_prog"
6578 # Check to see if the program is GNU ld. I'd rather use --version,
6579 # but apparently some variants of GNU ld only accept -v.
6580 # Break only if it was the GNU/non-GNU ld that we prefer.
6581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6582 *GNU* | *'with BFD'*)
6583 test "$with_gnu_ld" != no && break
6584 ;;
6585 *)
6586 test "$with_gnu_ld" != yes && break
6587 ;;
6588 esac
6589 fi
6590 done
6591 IFS="$lt_save_ifs"
6592else
6593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6594fi
6595fi
6596
6597LD="$lt_cv_path_LD"
6598if test -n "$LD"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6600$as_echo "$LD" >&6; }
6601else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
22e05272 6605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
66dbcf2d
RO
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6608if ${lt_cv_prog_gnu_ld+:} false; then :
66dbcf2d
RO
6609 $as_echo_n "(cached) " >&6
6610else
6611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6612case `$LD -v 2>&1 </dev/null` in
6613*GNU* | *'with BFD'*)
6614 lt_cv_prog_gnu_ld=yes
6615 ;;
6616*)
6617 lt_cv_prog_gnu_ld=no
6618 ;;
6619esac
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6622$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6623with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6624
6625
6626
6627
6628
6629
6630
6631
1cf3d07d
SE
6632
6633
66dbcf2d
RO
6634 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6635
6636
6637 ac_save_LDFLAGS="$LDFLAGS"
6638 LDFLAGS="$LFLAGS -mclear-hwcap"
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6641$as_echo_n "checking for -mclear-hwcap... " >&6; }
6642 if test x$gcc_no_link = xyes; then
22e05272 6643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
66dbcf2d
RO
6644fi
6645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h. */
6647
6648int
6649main ()
6650{
6651return 0;
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_link "$LINENO"; then :
6657 ac_hwcap_ldflags=yes
6658else
6659 ac_hwcap_ldflags=no
6660fi
6661rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 if test "$ac_hwcap_ldflags" = "yes"; then
6664 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6667$as_echo "$ac_hwcap_ldflags" >&6; }
6668
6669 LDFLAGS="$ac_save_LDFLAGS"
6670
6671
6672
6673 if test $ac_hwcap_ldflags != no; then
6674 HAVE_HWCAP_TRUE=
6675 HAVE_HWCAP_FALSE='#'
6676else
6677 HAVE_HWCAP_TRUE='#'
6678 HAVE_HWCAP_FALSE=
6679fi
6680
6681
6682
6683# Find other programs we need.
6684if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6686set dummy ${ac_tool_prefix}as; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6689if ${ac_cv_prog_AS+:} false; then :
5213506e 6690 $as_echo_n "(cached) " >&6
38d24731 6691else
66dbcf2d
RO
6692 if test -n "$AS"; then
6693 ac_cv_prog_AS="$AS" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
5213506e
RW
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
5213506e 6700 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6702 ac_cv_prog_AS="${ac_tool_prefix}as"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706done
5213506e 6707 done
66dbcf2d
RO
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712AS=$ac_cv_prog_AS
6713if test -n "$AS"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6715$as_echo "$AS" >&6; }
6716else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721
6722fi
6723if test -z "$ac_cv_prog_AS"; then
6724 ac_ct_AS=$AS
6725 # Extract the first word of "as", so it can be a program name with args.
6726set dummy as; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6729if ${ac_cv_prog_ac_ct_AS+:} false; then :
66dbcf2d
RO
6730 $as_echo_n "(cached) " >&6
6731else
6732 if test -n "$ac_ct_AS"; then
6733 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6742 ac_cv_prog_ac_ct_AS="as"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747 done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752ac_ct_AS=$ac_cv_prog_ac_ct_AS
6753if test -n "$ac_ct_AS"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6755$as_echo "$ac_ct_AS" >&6; }
6756else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761 if test "x$ac_ct_AS" = x; then
6762 AS=""
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765yes:)
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768ac_tool_warned=yes ;;
5213506e 6769esac
66dbcf2d
RO
6770 AS=$ac_ct_AS
6771 fi
6772else
6773 AS="$ac_cv_prog_AS"
6774fi
5213506e 6775
66dbcf2d
RO
6776if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6778set dummy ${ac_tool_prefix}ar; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6781if ${ac_cv_prog_AR+:} false; then :
66dbcf2d
RO
6782 $as_echo_n "(cached) " >&6
6783else
6784 if test -n "$AR"; then
6785 ac_cv_prog_AR="$AR" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6794 ac_cv_prog_AR="${ac_tool_prefix}ar"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
5213506e 6799 done
66dbcf2d
RO
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804AR=$ac_cv_prog_AR
6805if test -n "$AR"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6807$as_echo "$AR" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814fi
6815if test -z "$ac_cv_prog_AR"; then
6816 ac_ct_AR=$AR
6817 # Extract the first word of "ar", so it can be a program name with args.
6818set dummy ar; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6821if ${ac_cv_prog_ac_ct_AR+:} false; then :
66dbcf2d
RO
6822 $as_echo_n "(cached) " >&6
6823else
6824 if test -n "$ac_ct_AR"; then
6825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6834 ac_cv_prog_ac_ct_AR="ar"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839 done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844ac_ct_AR=$ac_cv_prog_ac_ct_AR
6845if test -n "$ac_ct_AR"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6847$as_echo "$ac_ct_AR" >&6; }
6848else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853 if test "x$ac_ct_AR" = x; then
6854 AR=""
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862 AR=$ac_ct_AR
6863 fi
6864else
6865 AR="$ac_cv_prog_AR"
6866fi
6867
6868if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6870set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6873if ${ac_cv_prog_RANLIB+:} false; then :
66dbcf2d
RO
6874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$RANLIB"; then
6877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890done
6891 done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896RANLIB=$ac_cv_prog_RANLIB
6897if test -n "$RANLIB"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6899$as_echo "$RANLIB" >&6; }
6900else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905
6906fi
6907if test -z "$ac_cv_prog_RANLIB"; then
6908 ac_ct_RANLIB=$RANLIB
6909 # Extract the first word of "ranlib", so it can be a program name with args.
6910set dummy ranlib; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6913if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
66dbcf2d
RO
6914 $as_echo_n "(cached) " >&6
6915else
6916 if test -n "$ac_ct_RANLIB"; then
6917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6926 ac_cv_prog_ac_ct_RANLIB="ranlib"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
5213506e
RW
6931 done
6932IFS=$as_save_IFS
66dbcf2d
RO
6933
6934fi
6935fi
6936ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6937if test -n "$ac_ct_RANLIB"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6939$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6940else
66dbcf2d
RO
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
1cf3d07d 6943fi
5213506e 6944
66dbcf2d
RO
6945 if test "x$ac_ct_RANLIB" = x; then
6946 RANLIB="ranlib-not-found-in-path-error"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949yes:)
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952ac_tool_warned=yes ;;
6953esac
6954 RANLIB=$ac_ct_RANLIB
6955 fi
6956else
6957 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6958fi
1cf3d07d 6959
66dbcf2d
RO
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6961$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6962set x ${MAKE-make}
6963ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 6964if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
66dbcf2d
RO
6965 $as_echo_n "(cached) " >&6
6966else
6967 cat >conftest.make <<\_ACEOF
6968SHELL = /bin/sh
6969all:
6970 @echo '@@@%%%=$(MAKE)=@@@%%%'
6971_ACEOF
22e05272 6972# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
66dbcf2d
RO
6973case `${MAKE-make} -f conftest.make 2>/dev/null` in
6974 *@@@%%%=?*=@@@%%%*)
6975 eval ac_cv_prog_make_${ac_make}_set=yes;;
6976 *)
6977 eval ac_cv_prog_make_${ac_make}_set=no;;
6978esac
6979rm -f conftest.make
6980fi
6981if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6983$as_echo "yes" >&6; }
6984 SET_MAKE=
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988 SET_MAKE="MAKE=${MAKE-make}"
6989fi
1cf3d07d
SE
6990
6991
6992
66dbcf2d
RO
6993# Configure libtool
6994#AC_MSG_NOTICE([====== Starting libtool configuration])
6995enable_dlopen=yes
1cf3d07d
SE
6996
6997
6998
66dbcf2d
RO
6999case `pwd` in
7000 *\ * | *\ *)
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7002$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7003esac
1cf3d07d
SE
7004
7005
7006
66dbcf2d
RO
7007macro_version='2.2.7a'
7008macro_revision='1.3134'
1cf3d07d
SE
7009
7010
7011
7012
7013
7014
7015
7016
5213506e 7017
96b8a615 7018
96b8a615
AJ
7019
7020
96b8a615 7021
66dbcf2d 7022ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 7023
66dbcf2d
RO
7024# Backslashify metacharacters that are still active within
7025# double-quoted strings.
7026sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 7027
66dbcf2d
RO
7028# Same as above, but do not quote variable references.
7029double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 7030
66dbcf2d
RO
7031# Sed substitution to delay expansion of an escaped shell variable in a
7032# double_quote_subst'ed string.
7033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 7034
66dbcf2d
RO
7035# Sed substitution to delay expansion of an escaped single quote.
7036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 7037
66dbcf2d
RO
7038# Sed substitution to avoid accidental globbing in evaled expressions
7039no_glob_subst='s/\*/\\\*/g'
1cf3d07d 7040
5213506e
RW
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7042$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 7043if ${lt_cv_path_NM+:} false; then :
5213506e 7044 $as_echo_n "(cached) " >&6
96b8a615
AJ
7045else
7046 if test -n "$NM"; then
7047 # Let the user override the test.
7048 lt_cv_path_NM="$NM"
7049else
1cf3d07d
SE
7050 lt_nm_to_check="${ac_tool_prefix}nm"
7051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7052 lt_nm_to_check="$lt_nm_to_check nm"
7053 fi
7054 for lt_tmp_nm in $lt_nm_to_check; do
7055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7057 IFS="$lt_save_ifs"
7058 test -z "$ac_dir" && ac_dir=.
7059 tmp_nm="$ac_dir/$lt_tmp_nm"
7060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7061 # Check to see if the nm accepts a BSD-compat flag.
7062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7063 # nm: unknown option "B" ignored
7064 # Tru64's nm complains that /dev/null is an invalid object file
7065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7066 */dev/null* | *'Invalid file or object type'*)
7067 lt_cv_path_NM="$tmp_nm -B"
7068 break
7069 ;;
7070 *)
7071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7072 */dev/null*)
7073 lt_cv_path_NM="$tmp_nm -p"
7074 break
7075 ;;
7076 *)
7077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7078 continue # so that we can try to find one that supports BSD flags
7079 ;;
7080 esac
7081 ;;
7082 esac
7083 fi
7084 done
7085 IFS="$lt_save_ifs"
7086 done
7087 : ${lt_cv_path_NM=no}
7088fi
7089fi
5213506e
RW
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7091$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7092if test "$lt_cv_path_NM" != "no"; then
7093 NM="$lt_cv_path_NM"
7094else
7095 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7096 if test -n "$DUMPBIN"; then :
7097 # Let the user override the test.
7098 else
7099 if test -n "$ac_tool_prefix"; then
7100 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7101 do
7102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7106if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 7107 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7108else
7109 if test -n "$DUMPBIN"; then
7110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
5213506e 7117 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7121 break 2
7122 fi
7123done
5213506e
RW
7124 done
7125IFS=$as_save_IFS
1cf3d07d
SE
7126
7127fi
7128fi
7129DUMPBIN=$ac_cv_prog_DUMPBIN
7130if test -n "$DUMPBIN"; then
5213506e
RW
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7132$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7133else
5213506e
RW
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
1cf3d07d
SE
7136fi
7137
5213506e 7138
1cf3d07d
SE
7139 test -n "$DUMPBIN" && break
7140 done
7141fi
7142if test -z "$DUMPBIN"; then
7143 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7144 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7145do
7146 # Extract the first word of "$ac_prog", so it can be a program name with args.
7147set dummy $ac_prog; ac_word=$2
5213506e
RW
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7150if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 7151 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7152else
7153 if test -n "$ac_ct_DUMPBIN"; then
7154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
5213506e 7161 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7165 break 2
7166 fi
7167done
5213506e
RW
7168 done
7169IFS=$as_save_IFS
1cf3d07d
SE
7170
7171fi
7172fi
7173ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7174if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7176$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7177else
5213506e
RW
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
1cf3d07d
SE
7180fi
7181
5213506e 7182
1cf3d07d
SE
7183 test -n "$ac_ct_DUMPBIN" && break
7184done
1cf3d07d 7185
5213506e
RW
7186 if test "x$ac_ct_DUMPBIN" = x; then
7187 DUMPBIN=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190yes:)
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193ac_tool_warned=yes ;;
7194esac
7195 DUMPBIN=$ac_ct_DUMPBIN
7196 fi
96b8a615 7197fi
1cf3d07d 7198
43e02a8a
RW
7199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7200 *COFF*)
7201 DUMPBIN="$DUMPBIN -symbols"
7202 ;;
7203 *)
7204 DUMPBIN=:
7205 ;;
7206 esac
7207 fi
1cf3d07d
SE
7208
7209 if test "$DUMPBIN" != ":"; then
7210 NM="$DUMPBIN"
7211 fi
96b8a615 7212fi
1cf3d07d
SE
7213test -z "$NM" && NM=nm
7214
7215
96b8a615 7216
1cf3d07d
SE
7217
7218
7219
5213506e
RW
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7221$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 7222if ${lt_cv_nm_interface+:} false; then :
5213506e 7223 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7224else
7225 lt_cv_nm_interface="BSD nm"
7226 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7228 (eval "$ac_compile" 2>conftest.err)
7229 cat conftest.err >&5
43e02a8a 7230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7232 cat conftest.err >&5
43e02a8a 7233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7234 cat conftest.out >&5
7235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7236 lt_cv_nm_interface="MS dumpbin"
7237 fi
7238 rm -f conftest*
7239fi
5213506e
RW
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7241$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 7242
5213506e
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7244$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
7245LN_S=$as_ln_s
7246if test "$LN_S" = "ln -s"; then
5213506e
RW
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7248$as_echo "yes" >&6; }
96b8a615 7249else
5213506e
RW
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7251$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
7252fi
7253
1cf3d07d 7254# find the maximum length of command line arguments
5213506e
RW
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7256$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 7257if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 7258 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7259else
7260 i=0
7261 teststring="ABCD"
7262
7263 case $build_os in
7264 msdosdjgpp*)
7265 # On DJGPP, this test can blow up pretty badly due to problems in libc
7266 # (any single argument exceeding 2000 bytes causes a buffer overrun
7267 # during glob expansion). Even if it were fixed, the result of this
7268 # check would be larger than it should be.
7269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7270 ;;
7271
7272 gnu*)
7273 # Under GNU Hurd, this test is not required because there is
7274 # no limit to the length of command line arguments.
7275 # Libtool will interpret -1 as no limit whatsoever
7276 lt_cv_sys_max_cmd_len=-1;
7277 ;;
7278
d58dead8 7279 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
7280 # On Win9x/ME, this test blows up -- it succeeds, but takes
7281 # about 5 minutes as the teststring grows exponentially.
7282 # Worse, since 9x/ME are not pre-emptively multitasking,
7283 # you end up with a "frozen" computer, even though with patience
7284 # the test eventually succeeds (with a max line length of 256k).
7285 # Instead, let's just punt: use the minimum linelength reported by
7286 # all of the supported platforms: 8192 (on NT/2K/XP).
7287 lt_cv_sys_max_cmd_len=8192;
7288 ;;
7289
43e02a8a
RW
7290 mint*)
7291 # On MiNT this can take a long time and run out of memory.
7292 lt_cv_sys_max_cmd_len=8192;
7293 ;;
7294
1cf3d07d
SE
7295 amigaos*)
7296 # On AmigaOS with pdksh, this test takes hours, literally.
7297 # So we just punt and use a minimum line length of 8192.
7298 lt_cv_sys_max_cmd_len=8192;
7299 ;;
7300
7301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7302 # This has been around since 386BSD, at least. Likely further.
7303 if test -x /sbin/sysctl; then
7304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7305 elif test -x /usr/sbin/sysctl; then
7306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7307 else
7308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7309 fi
7310 # And add a safety zone
7311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7313 ;;
7314
7315 interix*)
7316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7317 lt_cv_sys_max_cmd_len=196608
7318 ;;
7319
7320 osf*)
7321 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7322 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7323 # nice to cause kernel panics so lets avoid the loop below.
7324 # First set a reasonable default.
7325 lt_cv_sys_max_cmd_len=16384
7326 #
7327 if test -x /sbin/sysconfig; then
7328 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7329 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7330 esac
7331 fi
7332 ;;
7333 sco3.2v5*)
7334 lt_cv_sys_max_cmd_len=102400
7335 ;;
7336 sysv5* | sco5v6* | sysv4.2uw2*)
7337 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7338 if test -n "$kargmax"; then
7339 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7340 else
7341 lt_cv_sys_max_cmd_len=32768
7342 fi
7343 ;;
7344 *)
d58dead8
PG
7345 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7346 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7349 else
7350 # Make teststring a little bigger before we do anything with it.
7351 # a 1K string should be a reasonable start.
7352 for i in 1 2 3 4 5 6 7 8 ; do
7353 teststring=$teststring$teststring
7354 done
7355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7356 # If test is not a shell built-in, we'll probably end up computing a
7357 # maximum length that is only half of the actual maximum length, but
7358 # we can't tell.
43e02a8a
RW
7359 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7361 test $i != 17 # 1/2 MB should be enough
7362 do
7363 i=`expr $i + 1`
7364 teststring=$teststring$teststring
7365 done
7366 # Only check the string length outside the loop.
7367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7368 teststring=
7369 # Add a significant safety factor because C++ compilers can tack on
7370 # massive amounts of additional arguments before passing them to the
7371 # linker. It appears as though 1/2 is a usable value.
7372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7373 fi
1cf3d07d
SE
7374 ;;
7375 esac
7376
7377fi
7378
7379if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7381$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7382else
5213506e
RW
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7384$as_echo "none" >&6; }
1cf3d07d
SE
7385fi
7386max_cmd_len=$lt_cv_sys_max_cmd_len
7387
7388
7389
7390
7391
7392
1cf3d07d
SE
7393: ${CP="cp -f"}
7394: ${MV="mv -f"}
7395: ${RM="rm -f"}
7396
5213506e
RW
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7398$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7399# Try some XSI features
7400xsi_shell=no
7401( _lt_dummy="a/b/c"
7402 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7403 = c,a/b,, \
7404 && eval 'test $(( 1 + 1 )) -eq 2 \
7405 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7406 && xsi_shell=yes
5213506e
RW
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7408$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7409
7410
5213506e
RW
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7412$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7413lt_shell_append=no
7414( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7415 >/dev/null 2>&1 \
7416 && lt_shell_append=yes
5213506e
RW
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7418$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7419
7420
7421if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7422 lt_unset=unset
7423else
7424 lt_unset=false
7425fi
7426
7427
7428
7429
7430
7431# test EBCDIC or ASCII
7432case `echo X|tr X '\101'` in
7433 A) # ASCII based system
7434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7435 lt_SP2NL='tr \040 \012'
7436 lt_NL2SP='tr \015\012 \040\040'
7437 ;;
7438 *) # EBCDIC based system
7439 lt_SP2NL='tr \100 \n'
7440 lt_NL2SP='tr \r\n \100\100'
7441 ;;
7442esac
7443
7444
7445
7446
7447
7448
7449
7450
7451
5213506e
RW
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7453$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7454if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 7455 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7456else
7457 lt_cv_ld_reload_flag='-r'
7458fi
5213506e
RW
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7460$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7461reload_flag=$lt_cv_ld_reload_flag
7462case $reload_flag in
7463"" | " "*) ;;
7464*) reload_flag=" $reload_flag" ;;
7465esac
7466reload_cmds='$LD$reload_flag -o $output$reload_objs'
7467case $host_os in
7468 darwin*)
7469 if test "$GCC" = yes; then
7470 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7471 else
7472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7473 fi
7474 ;;
7475esac
7476
7477
7478
7479
7480
7481
7482
7483
7484
d58dead8
PG
7485if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7487set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7490if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 7491 $as_echo_n "(cached) " >&6
d58dead8
PG
7492else
7493 if test -n "$OBJDUMP"; then
7494 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
5213506e 7501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7503 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7505 break 2
7506 fi
7507done
5213506e
RW
7508 done
7509IFS=$as_save_IFS
d58dead8
PG
7510
7511fi
7512fi
7513OBJDUMP=$ac_cv_prog_OBJDUMP
7514if test -n "$OBJDUMP"; then
5213506e
RW
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7516$as_echo "$OBJDUMP" >&6; }
d58dead8 7517else
5213506e
RW
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
d58dead8
PG
7520fi
7521
5213506e 7522
d58dead8
PG
7523fi
7524if test -z "$ac_cv_prog_OBJDUMP"; then
7525 ac_ct_OBJDUMP=$OBJDUMP
7526 # Extract the first word of "objdump", so it can be a program name with args.
7527set dummy objdump; ac_word=$2
5213506e
RW
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7530if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 7531 $as_echo_n "(cached) " >&6
d58dead8
PG
7532else
7533 if test -n "$ac_ct_OBJDUMP"; then
7534 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
5213506e 7541 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7543 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7545 break 2
7546 fi
7547done
5213506e
RW
7548 done
7549IFS=$as_save_IFS
d58dead8 7550
d58dead8
PG
7551fi
7552fi
7553ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7554if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7556$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7557else
5213506e
RW
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
d58dead8
PG
7560fi
7561
5213506e
RW
7562 if test "x$ac_ct_OBJDUMP" = x; then
7563 OBJDUMP="false"
7564 else
7565 case $cross_compiling:$ac_tool_warned in
7566yes:)
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569ac_tool_warned=yes ;;
7570esac
7571 OBJDUMP=$ac_ct_OBJDUMP
7572 fi
d58dead8
PG
7573else
7574 OBJDUMP="$ac_cv_prog_OBJDUMP"
7575fi
7576
7577test -z "$OBJDUMP" && OBJDUMP=objdump
7578
7579
7580
7581
7582
7583
7584
7585
1cf3d07d 7586
5213506e
RW
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7588$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7589if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 7590 $as_echo_n "(cached) " >&6
96b8a615
AJ
7591else
7592 lt_cv_file_magic_cmd='$MAGIC_CMD'
7593lt_cv_file_magic_test_file=
7594lt_cv_deplibs_check_method='unknown'
7595# Need to set the preceding variable on all platforms that support
7596# interlibrary dependencies.
7597# 'none' -- dependencies not supported.
7598# `unknown' -- same as none, but documents that we really don't know.
7599# 'pass_all' -- all dependencies passed with no checks.
7600# 'test_compile' -- check by making test program.
1cf3d07d
SE
7601# 'file_magic [[regex]]' -- check by looking for files in library path
7602# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7603# If you have `file' or equivalent on your system and you're not sure
7604# whether `pass_all' will *always* work, you probably want this one.
7605
7606case $host_os in
4f6bebc3 7607aix[4-9]*)
96b8a615
AJ
7608 lt_cv_deplibs_check_method=pass_all
7609 ;;
7610
7611beos*)
7612 lt_cv_deplibs_check_method=pass_all
7613 ;;
7614
1cf3d07d 7615bsdi[45]*)
96b8a615
AJ
7616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7617 lt_cv_file_magic_cmd='/usr/bin/file -L'
7618 lt_cv_file_magic_test_file=/shlib/libc.so
7619 ;;
7620
1cf3d07d
SE
7621cygwin*)
7622 # func_win32_libid is a shell function defined in ltmain.sh
7623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7624 lt_cv_file_magic_cmd='func_win32_libid'
7625 ;;
7626
7627mingw* | pw32*)
7628 # Base MSYS/MinGW do not provide the 'file' command needed by
7629 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7630 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7631 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7632 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7634 lt_cv_file_magic_cmd='func_win32_libid'
7635 else
7636 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7637 lt_cv_file_magic_cmd='$OBJDUMP -f'
7638 fi
96b8a615
AJ
7639 ;;
7640
43e02a8a 7641cegcc*)
d58dead8
PG
7642 # use the weaker test based on 'objdump'. See mingw*.
7643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7644 lt_cv_file_magic_cmd='$OBJDUMP -f'
7645 ;;
7646
96b8a615 7647darwin* | rhapsody*)
96b8a615
AJ
7648 lt_cv_deplibs_check_method=pass_all
7649 ;;
7650
1cf3d07d
SE
7651freebsd* | dragonfly*)
7652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7653 case $host_cpu in
7654 i*86 )
7655 # Not sure whether the presence of OpenBSD here was a mistake.
7656 # Let's accept both of them until this is cleared up.
1cf3d07d 7657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7658 lt_cv_file_magic_cmd=/usr/bin/file
7659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7660 ;;
7661 esac
7662 else
7663 lt_cv_deplibs_check_method=pass_all
7664 fi
7665 ;;
7666
7667gnu*)
7668 lt_cv_deplibs_check_method=pass_all
7669 ;;
7670
43e02a8a
RW
7671haiku*)
7672 lt_cv_deplibs_check_method=pass_all
7673 ;;
7674
1cf3d07d
SE
7675hpux10.20* | hpux11*)
7676 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7677 case $host_cpu in
96b8a615
AJ
7678 ia64*)
7679 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
7680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7681 ;;
1cf3d07d 7682 hppa*64*)
43e02a8a 7683 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 7684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7685 ;;
7686 *)
43e02a8a 7687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7689 ;;
7690 esac
1cf3d07d
SE
7691 ;;
7692
7693interix[3-9]*)
7694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7696 ;;
7697
7698irix5* | irix6* | nonstopux*)
7699 case $LD in
7700 *-32|*"-32 ") libmagic=32-bit;;
7701 *-n32|*"-n32 ") libmagic=N32;;
7702 *-64|*"-64 ") libmagic=64-bit;;
7703 *) libmagic=never-match;;
7704 esac
96b8a615
AJ
7705 lt_cv_deplibs_check_method=pass_all
7706 ;;
7707
7708# This must be Linux ELF.
e9085da5 7709linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2c92e90f 7710 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7711 ;;
7712
1cf3d07d
SE
7713netbsd*)
7714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7716 else
1cf3d07d 7717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7718 fi
7719 ;;
7720
1cf3d07d 7721newos6*)
96b8a615
AJ
7722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7723 lt_cv_file_magic_cmd=/usr/bin/file
7724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7725 ;;
7726
1cf3d07d
SE
7727*nto* | *qnx*)
7728 lt_cv_deplibs_check_method=pass_all
7729 ;;
7730
7731openbsd*)
7732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7734 else
7735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7736 fi
7737 ;;
7738
96b8a615 7739osf3* | osf4* | osf5*)
96b8a615
AJ
7740 lt_cv_deplibs_check_method=pass_all
7741 ;;
7742
1cf3d07d 7743rdos*)
96b8a615
AJ
7744 lt_cv_deplibs_check_method=pass_all
7745 ;;
7746
7747solaris*)
7748 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7749 ;;
7750
1cf3d07d 7751sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7752 lt_cv_deplibs_check_method=pass_all
7753 ;;
7754
1cf3d07d 7755sysv4 | sysv4.3*)
96b8a615 7756 case $host_vendor in
96b8a615
AJ
7757 motorola)
7758 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]'
7759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7760 ;;
1cf3d07d
SE
7761 ncr)
7762 lt_cv_deplibs_check_method=pass_all
7763 ;;
7764 sequent)
7765 lt_cv_file_magic_cmd='/bin/file'
7766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7767 ;;
7768 sni)
7769 lt_cv_file_magic_cmd='/bin/file'
7770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7771 lt_cv_file_magic_test_file=/lib/libc.so
7772 ;;
7773 siemens)
7774 lt_cv_deplibs_check_method=pass_all
7775 ;;
7776 pc)
7777 lt_cv_deplibs_check_method=pass_all
7778 ;;
96b8a615
AJ
7779 esac
7780 ;;
1cf3d07d
SE
7781
7782tpf*)
7783 lt_cv_deplibs_check_method=pass_all
7784 ;;
96b8a615
AJ
7785esac
7786
7787fi
5213506e
RW
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7789$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7790file_magic_cmd=$lt_cv_file_magic_cmd
7791deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7792test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7793
7794
7795
7796
96b8a615 7797
96b8a615 7798
96b8a615 7799
96b8a615 7800
6de9cd9a 7801
6de9cd9a 7802
6de9cd9a 7803
6de9cd9a 7804
96b8a615 7805if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7810if ${ac_cv_prog_AR+:} false; then :
5213506e 7811 $as_echo_n "(cached) " >&6
6de9cd9a 7812else
1cf3d07d
SE
7813 if test -n "$AR"; then
7814 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
5213506e 7821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7823 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7825 break 2
7826 fi
7827done
5213506e
RW
7828 done
7829IFS=$as_save_IFS
6de9cd9a 7830
96b8a615
AJ
7831fi
7832fi
1cf3d07d
SE
7833AR=$ac_cv_prog_AR
7834if test -n "$AR"; then
5213506e
RW
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7836$as_echo "$AR" >&6; }
96b8a615 7837else
5213506e
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
6de9cd9a
DN
7840fi
7841
5213506e 7842
96b8a615 7843fi
1cf3d07d
SE
7844if test -z "$ac_cv_prog_AR"; then
7845 ac_ct_AR=$AR
7846 # Extract the first word of "ar", so it can be a program name with args.
7847set dummy ar; ac_word=$2
5213506e
RW
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7850if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 7851 $as_echo_n "(cached) " >&6
96b8a615 7852else
1cf3d07d
SE
7853 if test -n "$ac_ct_AR"; then
7854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
5213506e 7861 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7863 ac_cv_prog_ac_ct_AR="ar"
5213506e 7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7865 break 2
7866 fi
7867done
5213506e
RW
7868 done
7869IFS=$as_save_IFS
6de9cd9a 7870
96b8a615
AJ
7871fi
7872fi
1cf3d07d
SE
7873ac_ct_AR=$ac_cv_prog_ac_ct_AR
7874if test -n "$ac_ct_AR"; then
5213506e
RW
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7876$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7877else
5213506e
RW
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
6de9cd9a 7880fi
6de9cd9a 7881
5213506e
RW
7882 if test "x$ac_ct_AR" = x; then
7883 AR="false"
7884 else
7885 case $cross_compiling:$ac_tool_warned in
7886yes:)
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889ac_tool_warned=yes ;;
7890esac
7891 AR=$ac_ct_AR
7892 fi
96b8a615 7893else
1cf3d07d 7894 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7895fi
7896
1cf3d07d
SE
7897test -z "$AR" && AR=ar
7898test -z "$AR_FLAGS" && AR_FLAGS=cru
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
96b8a615
AJ
7910if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7915if ${ac_cv_prog_STRIP+:} false; then :
5213506e 7916 $as_echo_n "(cached) " >&6
6de9cd9a 7917else
96b8a615
AJ
7918 if test -n "$STRIP"; then
7919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
5213506e 7926 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7930 break 2
7931 fi
7932done
5213506e
RW
7933 done
7934IFS=$as_save_IFS
6de9cd9a 7935
96b8a615
AJ
7936fi
7937fi
7938STRIP=$ac_cv_prog_STRIP
7939if test -n "$STRIP"; then
5213506e
RW
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7941$as_echo "$STRIP" >&6; }
6de9cd9a 7942else
5213506e
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
96b8a615 7945fi
6de9cd9a 7946
5213506e 7947
6de9cd9a 7948fi
96b8a615
AJ
7949if test -z "$ac_cv_prog_STRIP"; then
7950 ac_ct_STRIP=$STRIP
7951 # Extract the first word of "strip", so it can be a program name with args.
7952set dummy strip; ac_word=$2
5213506e
RW
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7955if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 7956 $as_echo_n "(cached) " >&6
96b8a615
AJ
7957else
7958 if test -n "$ac_ct_STRIP"; then
7959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
5213506e 7966 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7968 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7970 break 2
7971 fi
7972done
5213506e
RW
7973 done
7974IFS=$as_save_IFS
96b8a615 7975
6de9cd9a
DN
7976fi
7977fi
96b8a615
AJ
7978ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7979if test -n "$ac_ct_STRIP"; then
5213506e
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7981$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7982else
5213506e
RW
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
6de9cd9a 7985fi
6de9cd9a 7986
5213506e
RW
7987 if test "x$ac_ct_STRIP" = x; then
7988 STRIP=":"
7989 else
7990 case $cross_compiling:$ac_tool_warned in
7991yes:)
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7994ac_tool_warned=yes ;;
7995esac
7996 STRIP=$ac_ct_STRIP
7997 fi
96b8a615
AJ
7998else
7999 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
8000fi
8001
1cf3d07d 8002test -z "$STRIP" && STRIP=:
6de9cd9a
DN
8003
8004
8005
8006
8007
8008
1cf3d07d
SE
8009if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8011set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8014if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 8015 $as_echo_n "(cached) " >&6
6de9cd9a 8016else
1cf3d07d
SE
8017 if test -n "$RANLIB"; then
8018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
5213506e 8025 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8029 break 2
8030 fi
8031done
5213506e
RW
8032 done
8033IFS=$as_save_IFS
1cf3d07d
SE
8034
8035fi
8036fi
8037RANLIB=$ac_cv_prog_RANLIB
8038if test -n "$RANLIB"; then
5213506e
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8040$as_echo "$RANLIB" >&6; }
1cf3d07d 8041else
5213506e
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
1cf3d07d
SE
8044fi
8045
5213506e 8046
1cf3d07d
SE
8047fi
8048if test -z "$ac_cv_prog_RANLIB"; then
8049 ac_ct_RANLIB=$RANLIB
8050 # Extract the first word of "ranlib", so it can be a program name with args.
8051set dummy ranlib; ac_word=$2
5213506e
RW
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8054if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 8055 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8056else
8057 if test -n "$ac_ct_RANLIB"; then
8058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8059else
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
5213506e 8065 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8067 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8069 break 2
8070 fi
8071done
5213506e
RW
8072 done
8073IFS=$as_save_IFS
1cf3d07d 8074
1cf3d07d
SE
8075fi
8076fi
8077ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8078if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8080$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 8081else
5213506e
RW
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
1cf3d07d
SE
8084fi
8085
5213506e
RW
8086 if test "x$ac_ct_RANLIB" = x; then
8087 RANLIB=":"
8088 else
8089 case $cross_compiling:$ac_tool_warned in
8090yes:)
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8093ac_tool_warned=yes ;;
8094esac
8095 RANLIB=$ac_ct_RANLIB
8096 fi
1cf3d07d
SE
8097else
8098 RANLIB="$ac_cv_prog_RANLIB"
8099fi
8100
8101test -z "$RANLIB" && RANLIB=:
8102
8103
8104
8105
8106
8107
8108# Determine commands to create old-style static archives.
d58dead8 8109old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8110old_postinstall_cmds='chmod 644 $oldlib'
8111old_postuninstall_cmds=
8112
8113if test -n "$RANLIB"; then
8114 case $host_os in
8115 openbsd*)
8116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8117 ;;
8118 *)
8119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8120 ;;
8121 esac
8122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8123fi
8124
43e02a8a
RW
8125case $host_os in
8126 darwin*)
8127 lock_old_archive_extraction=yes ;;
8128 *)
8129 lock_old_archive_extraction=no ;;
8130esac
8131
8132
8133
8134
8135
8136
1cf3d07d
SE
8137
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# If no C compiler was specified, use CC.
8171LTCC=${LTCC-"$CC"}
8172
8173# If no C compiler flags were specified, use CFLAGS.
8174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8175
8176# Allow CC to be a program name with arguments.
8177compiler=$CC
8178
8179
8180# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8182$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 8183if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 8184 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8185else
8186
8187# These are sane defaults that work on at least a few old systems.
8188# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8189
8190# Character class describing NM global symbol codes.
8191symcode='[BCDEGRST]'
8192
8193# Regexp to match symbols that can be accessed directly from C.
8194sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8195
8196# Define system-specific variables.
8197case $host_os in
8198aix*)
8199 symcode='[BCDT]'
8200 ;;
d58dead8 8201cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8202 symcode='[ABCDGISTW]'
8203 ;;
8204hpux*)
8205 if test "$host_cpu" = ia64; then
8206 symcode='[ABCDEGRST]'
8207 fi
8208 ;;
8209irix* | nonstopux*)
8210 symcode='[BCDEGRST]'
8211 ;;
8212osf*)
8213 symcode='[BCDEGQRST]'
8214 ;;
8215solaris*)
8216 symcode='[BDRT]'
8217 ;;
8218sco3.2v5*)
8219 symcode='[DT]'
8220 ;;
8221sysv4.2uw2*)
8222 symcode='[DT]'
8223 ;;
8224sysv5* | sco5v6* | unixware* | OpenUNIX*)
8225 symcode='[ABDT]'
8226 ;;
8227sysv4)
8228 symcode='[DFNSTU]'
8229 ;;
8230esac
8231
8232# If we're using GNU nm, then use its standard symbol codes.
8233case `$NM -V 2>&1` in
8234*GNU* | *'with BFD'*)
8235 symcode='[ABCDGIRSTW]' ;;
8236esac
8237
8238# Transform an extracted symbol line into a proper C declaration.
8239# Some systems (esp. on ia64) link data and code symbols differently,
8240# so use this general approach.
8241lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8242
8243# Transform an extracted symbol line into symbol name and symbol address
8244lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 8245lt_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
8246
8247# Handle CRLF in mingw tool chain
8248opt_cr=
8249case $build_os in
8250mingw*)
8251 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8252 ;;
8253esac
8254
8255# Try without a prefix underscore, then with it.
8256for ac_symprfx in "" "_"; do
8257
8258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8259 symxfrm="\\1 $ac_symprfx\\2 \\2"
8260
8261 # Write the raw and C identifiers.
8262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8263 # Fake it for dumpbin and say T for any non-static function
8264 # and D for any global variable.
8265 # Also find C++ and __fastcall symbols from MSVC++,
8266 # which start with @ or ?.
8267 lt_cv_sys_global_symbol_pipe="$AWK '"\
8268" {last_section=section; section=\$ 3};"\
8269" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8270" \$ 0!~/External *\|/{next};"\
8271" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8272" {if(hide[section]) next};"\
8273" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8274" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8275" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8276" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8277" ' prfx=^$ac_symprfx"
8278 else
8279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8280 fi
8281
8282 # Check to see that the pipe works correctly.
8283 pipe_works=no
8284
8285 rm -f conftest*
8286 cat > conftest.$ac_ext <<_LT_EOF
8287#ifdef __cplusplus
8288extern "C" {
8289#endif
8290char nm_test_var;
8291void nm_test_func(void);
8292void nm_test_func(void){}
8293#ifdef __cplusplus
8294}
8295#endif
8296int main(){nm_test_var='a';nm_test_func();return(0);}
8297_LT_EOF
8298
5213506e 8299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8300 (eval $ac_compile) 2>&5
8301 ac_status=$?
5213506e
RW
8302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8303 test $ac_status = 0; }; then
1cf3d07d
SE
8304 # Now try to grab the symbols.
8305 nlist=conftest.nm
43e02a8a
RW
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8307 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8308 ac_status=$?
5213506e
RW
8309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8311 # Try sorting and uniquifying the output.
8312 if sort "$nlist" | uniq > "$nlist"T; then
8313 mv -f "$nlist"T "$nlist"
8314 else
8315 rm -f "$nlist"T
8316 fi
8317
8318 # Make sure that we snagged all the symbols we need.
8319 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8320 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8321 cat <<_LT_EOF > conftest.$ac_ext
8322#ifdef __cplusplus
8323extern "C" {
8324#endif
8325
8326_LT_EOF
8327 # Now generate the symbol file.
8328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8329
8330 cat <<_LT_EOF >> conftest.$ac_ext
8331
8332/* The mapping between symbol names and symbols. */
8333const struct {
8334 const char *name;
8335 void *address;
8336}
8337lt__PROGRAM__LTX_preloaded_symbols[] =
8338{
8339 { "@PROGRAM@", (void *) 0 },
8340_LT_EOF
8341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8342 cat <<\_LT_EOF >> conftest.$ac_ext
8343 {0, (void *) 0}
8344};
8345
8346/* This works around a problem in FreeBSD linker */
8347#ifdef FREEBSD_WORKAROUND
8348static const void *lt_preloaded_setup() {
8349 return lt__PROGRAM__LTX_preloaded_symbols;
8350}
8351#endif
8352
8353#ifdef __cplusplus
8354}
8355#endif
8356_LT_EOF
8357 # Now try linking the two files.
8358 mv conftest.$ac_objext conftstm.$ac_objext
8359 lt_save_LIBS="$LIBS"
8360 lt_save_CFLAGS="$CFLAGS"
8361 LIBS="conftstm.$ac_objext"
8362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8364 (eval $ac_link) 2>&5
8365 ac_status=$?
5213506e
RW
8366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8368 pipe_works=yes
8369 fi
8370 LIBS="$lt_save_LIBS"
8371 CFLAGS="$lt_save_CFLAGS"
8372 else
8373 echo "cannot find nm_test_func in $nlist" >&5
8374 fi
8375 else
8376 echo "cannot find nm_test_var in $nlist" >&5
8377 fi
8378 else
8379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8380 fi
8381 else
8382 echo "$progname: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8384 fi
d58dead8 8385 rm -rf conftest* conftst*
1cf3d07d
SE
8386
8387 # Do not use the global_symbol_pipe unless it works.
8388 if test "$pipe_works" = yes; then
8389 break
8390 else
8391 lt_cv_sys_global_symbol_pipe=
8392 fi
8393done
8394
8395fi
8396
8397if test -z "$lt_cv_sys_global_symbol_pipe"; then
8398 lt_cv_sys_global_symbol_to_cdecl=
8399fi
8400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8402$as_echo "failed" >&6; }
1cf3d07d 8403else
5213506e
RW
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8405$as_echo "ok" >&6; }
1cf3d07d
SE
8406fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
d58dead8
PG
8422
8423
8424
8425
8426
1cf3d07d
SE
8427
8428
5213506e
RW
8429# Check whether --enable-libtool-lock was given.
8430if test "${enable_libtool_lock+set}" = set; then :
8431 enableval=$enable_libtool_lock;
8432fi
1cf3d07d 8433
1cf3d07d 8434test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8435
96b8a615
AJ
8436# Some flags need to be propagated to the compiler or linker for good
8437# libtool support.
8438case $host in
1cf3d07d 8439ia64-*-hpux*)
96b8a615 8440 # Find out which ABI we are using.
1cf3d07d 8441 echo 'int i;' > conftest.$ac_ext
5213506e 8442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8443 (eval $ac_compile) 2>&5
6de9cd9a 8444 ac_status=$?
5213506e
RW
8445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8446 test $ac_status = 0; }; then
96b8a615 8447 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8448 *ELF-32*)
8449 HPUX_IA64_MODE="32"
8450 ;;
8451 *ELF-64*)
8452 HPUX_IA64_MODE="64"
8453 ;;
96b8a615 8454 esac
96b8a615
AJ
8455 fi
8456 rm -rf conftest*
8457 ;;
1cf3d07d 8458*-*-irix6*)
96b8a615 8459 # Find out which ABI we are using.
43e02a8a 8460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8462 (eval $ac_compile) 2>&5
6de9cd9a 8463 ac_status=$?
5213506e
RW
8464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465 test $ac_status = 0; }; then
1cf3d07d
SE
8466 if test "$lt_cv_prog_gnu_ld" = yes; then
8467 case `/usr/bin/file conftest.$ac_objext` in
8468 *32-bit*)
8469 LD="${LD-ld} -melf32bsmip"
8470 ;;
8471 *N32*)
8472 LD="${LD-ld} -melf32bmipn32"
8473 ;;
8474 *64-bit*)
8475 LD="${LD-ld} -melf64bmip"
8476 ;;
8477 esac
8478 else
8479 case `/usr/bin/file conftest.$ac_objext` in
8480 *32-bit*)
8481 LD="${LD-ld} -32"
8482 ;;
8483 *N32*)
8484 LD="${LD-ld} -n32"
8485 ;;
8486 *64-bit*)
8487 LD="${LD-ld} -64"
8488 ;;
8489 esac
8490 fi
96b8a615
AJ
8491 fi
8492 rm -rf conftest*
8493 ;;
6de9cd9a 8494
3cbe17f7 8495x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8496s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8497 # Find out which ABI we are using.
8498 echo 'int i;' > conftest.$ac_ext
5213506e 8499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8500 (eval $ac_compile) 2>&5
6de9cd9a 8501 ac_status=$?
5213506e
RW
8502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8503 test $ac_status = 0; }; then
1cf3d07d
SE
8504 case `/usr/bin/file conftest.o` in
8505 *32-bit*)
8506 case $host in
8507 x86_64-*kfreebsd*-gnu)
8508 LD="${LD-ld} -m elf_i386_fbsd"
8509 ;;
8510 x86_64-*linux*)
e6d5f8c9
L
8511 case `/usr/bin/file conftest.o` in
8512 *x86-64*)
8513 LD="${LD-ld} -m elf32_x86_64"
8514 ;;
8515 *)
8516 LD="${LD-ld} -m elf_i386"
8517 ;;
8518 esac
1cf3d07d 8519 ;;
3cbe17f7
AM
8520 powerpc64le-*linux*)
8521 LD="${LD-ld} -m elf32lppclinux"
8522 ;;
8523 powerpc64-*linux*)
1cf3d07d
SE
8524 LD="${LD-ld} -m elf32ppclinux"
8525 ;;
8526 s390x-*linux*)
8527 LD="${LD-ld} -m elf_s390"
8528 ;;
8529 sparc64-*linux*)
8530 LD="${LD-ld} -m elf32_sparc"
8531 ;;
8532 esac
8533 ;;
8534 *64-bit*)
8535 case $host in
8536 x86_64-*kfreebsd*-gnu)
8537 LD="${LD-ld} -m elf_x86_64_fbsd"
8538 ;;
8539 x86_64-*linux*)
8540 LD="${LD-ld} -m elf_x86_64"
8541 ;;
3cbe17f7
AM
8542 powerpcle-*linux*)
8543 LD="${LD-ld} -m elf64lppc"
8544 ;;
8545 powerpc-*linux*)
1cf3d07d
SE
8546 LD="${LD-ld} -m elf64ppc"
8547 ;;
8548 s390*-*linux*|s390*-*tpf*)
8549 LD="${LD-ld} -m elf64_s390"
8550 ;;
8551 sparc*-*linux*)
8552 LD="${LD-ld} -m elf64_sparc"
8553 ;;
8554 esac
8555 ;;
96b8a615 8556 esac
6de9cd9a 8557 fi
96b8a615
AJ
8558 rm -rf conftest*
8559 ;;
6de9cd9a 8560
96b8a615
AJ
8561*-*-sco3.2v5*)
8562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8563 SAVE_CFLAGS="$CFLAGS"
8564 CFLAGS="$CFLAGS -belf"
5213506e
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8566$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8567if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 8568 $as_echo_n "(cached) " >&6
6de9cd9a 8569else
1cf3d07d 8570 ac_ext=c
96b8a615
AJ
8571ac_cpp='$CPP $CPPFLAGS'
8572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8574ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8575
f02d008e 8576 if test x$gcc_no_link = xyes; then
22e05272 8577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8578fi
5213506e 8579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8580/* end confdefs.h. */
6de9cd9a
DN
8581
8582int
8583main ()
8584{
96b8a615 8585
6de9cd9a
DN
8586 ;
8587 return 0;
8588}
8589_ACEOF
5213506e 8590if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8591 lt_cv_cc_needs_belf=yes
6de9cd9a 8592else
5213506e 8593 lt_cv_cc_needs_belf=no
6de9cd9a 8594fi
5213506e
RW
8595rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8597 ac_ext=c
8598ac_cpp='$CPP $CPPFLAGS'
8599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601ac_compiler_gnu=$ac_cv_c_compiler_gnu
8602
6de9cd9a 8603fi
5213506e
RW
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8605$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8608 CFLAGS="$SAVE_CFLAGS"
8609 fi
8610 ;;
1cf3d07d
SE
8611sparc*-*solaris*)
8612 # Find out which ABI we are using.
8613 echo 'int i;' > conftest.$ac_ext
5213506e 8614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8615 (eval $ac_compile) 2>&5
8616 ac_status=$?
5213506e
RW
8617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8618 test $ac_status = 0; }; then
1cf3d07d
SE
8619 case `/usr/bin/file conftest.o` in
8620 *64-bit*)
8621 case $lt_cv_prog_gnu_ld in
8622 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8623 *)
8624 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8625 LD="${LD-ld} -64"
8626 fi
8627 ;;
1cf3d07d
SE
8628 esac
8629 ;;
8630 esac
8631 fi
8632 rm -rf conftest*
8633 ;;
96b8a615
AJ
8634esac
8635
1cf3d07d 8636need_locks="$enable_libtool_lock"
96b8a615 8637
d58dead8
PG
8638
8639 case $host_os in
8640 rhapsody* | darwin*)
8641 if test -n "$ac_tool_prefix"; then
8642 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8643set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8646if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 8647 $as_echo_n "(cached) " >&6
d58dead8
PG
8648else
8649 if test -n "$DSYMUTIL"; then
8650 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
5213506e 8657 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 8659 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8661 break 2
8662 fi
8663done
5213506e
RW
8664 done
8665IFS=$as_save_IFS
d58dead8
PG
8666
8667fi
8668fi
8669DSYMUTIL=$ac_cv_prog_DSYMUTIL
8670if test -n "$DSYMUTIL"; then
5213506e
RW
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8672$as_echo "$DSYMUTIL" >&6; }
d58dead8 8673else
5213506e
RW
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
d58dead8
PG
8676fi
8677
5213506e 8678
d58dead8
PG
8679fi
8680if test -z "$ac_cv_prog_DSYMUTIL"; then
8681 ac_ct_DSYMUTIL=$DSYMUTIL
8682 # Extract the first word of "dsymutil", so it can be a program name with args.
8683set dummy dsymutil; ac_word=$2
5213506e
RW
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8686if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 8687 $as_echo_n "(cached) " >&6
d58dead8 8688else
21be0a5a
JB
8689 if test -n "$ac_ct_DSYMUTIL"; then
8690 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
5213506e 8697 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8699 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8701 break 2
8702 fi
8703done
5213506e
RW
8704 done
8705IFS=$as_save_IFS
d58dead8 8706
d58dead8
PG
8707fi
8708fi
21be0a5a
JB
8709ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8710if test -n "$ac_ct_DSYMUTIL"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8712$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8713else
5213506e
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
d58dead8
PG
8716fi
8717
21be0a5a
JB
8718 if test "x$ac_ct_DSYMUTIL" = x; then
8719 DSYMUTIL=":"
5213506e
RW
8720 else
8721 case $cross_compiling:$ac_tool_warned in
8722yes:)
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8725ac_tool_warned=yes ;;
8726esac
21be0a5a 8727 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8728 fi
d58dead8 8729else
21be0a5a 8730 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8731fi
8732
8733 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8735set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8738if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 8739 $as_echo_n "(cached) " >&6
d58dead8 8740else
21be0a5a
JB
8741 if test -n "$NMEDIT"; then
8742 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
5213506e 8749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8753 break 2
8754 fi
8755done
5213506e
RW
8756 done
8757IFS=$as_save_IFS
d58dead8
PG
8758
8759fi
8760fi
21be0a5a
JB
8761NMEDIT=$ac_cv_prog_NMEDIT
8762if test -n "$NMEDIT"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8764$as_echo "$NMEDIT" >&6; }
d58dead8 8765else
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
d58dead8
PG
8768fi
8769
5213506e 8770
d58dead8 8771fi
21be0a5a
JB
8772if test -z "$ac_cv_prog_NMEDIT"; then
8773 ac_ct_NMEDIT=$NMEDIT
8774 # Extract the first word of "nmedit", so it can be a program name with args.
8775set dummy nmedit; ac_word=$2
5213506e
RW
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8778if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 8779 $as_echo_n "(cached) " >&6
d58dead8 8780else
21be0a5a
JB
8781 if test -n "$ac_ct_NMEDIT"; then
8782 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
5213506e 8789 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8793 break 2
8794 fi
8795done
5213506e
RW
8796 done
8797IFS=$as_save_IFS
d58dead8 8798
d58dead8
PG
8799fi
8800fi
21be0a5a
JB
8801ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8802if test -n "$ac_ct_NMEDIT"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8804$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8805else
5213506e
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
d58dead8
PG
8808fi
8809
21be0a5a
JB
8810 if test "x$ac_ct_NMEDIT" = x; then
8811 NMEDIT=":"
5213506e
RW
8812 else
8813 case $cross_compiling:$ac_tool_warned in
8814yes:)
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817ac_tool_warned=yes ;;
8818esac
21be0a5a 8819 NMEDIT=$ac_ct_NMEDIT
5213506e 8820 fi
d58dead8 8821else
21be0a5a 8822 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8823fi
8824
8825 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8827set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8830if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8831 $as_echo_n "(cached) " >&6
d58dead8 8832else
21be0a5a
JB
8833 if test -n "$LIPO"; then
8834 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8835else
8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
5213506e 8841 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8843 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8845 break 2
8846 fi
8847done
5213506e
RW
8848 done
8849IFS=$as_save_IFS
d58dead8
PG
8850
8851fi
8852fi
21be0a5a
JB
8853LIPO=$ac_cv_prog_LIPO
8854if test -n "$LIPO"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8856$as_echo "$LIPO" >&6; }
d58dead8 8857else
5213506e
RW
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859$as_echo "no" >&6; }
d58dead8
PG
8860fi
8861
5213506e 8862
d58dead8 8863fi
21be0a5a
JB
8864if test -z "$ac_cv_prog_LIPO"; then
8865 ac_ct_LIPO=$LIPO
8866 # Extract the first word of "lipo", so it can be a program name with args.
8867set dummy lipo; ac_word=$2
5213506e
RW
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8870if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 8871 $as_echo_n "(cached) " >&6
d58dead8 8872else
21be0a5a
JB
8873 if test -n "$ac_ct_LIPO"; then
8874 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
5213506e 8881 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8883 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8885 break 2
8886 fi
8887done
5213506e
RW
8888 done
8889IFS=$as_save_IFS
d58dead8 8890
d58dead8
PG
8891fi
8892fi
21be0a5a
JB
8893ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8894if test -n "$ac_ct_LIPO"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8896$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8897else
5213506e
RW
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899$as_echo "no" >&6; }
d58dead8
PG
8900fi
8901
21be0a5a
JB
8902 if test "x$ac_ct_LIPO" = x; then
8903 LIPO=":"
5213506e
RW
8904 else
8905 case $cross_compiling:$ac_tool_warned in
8906yes:)
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8909ac_tool_warned=yes ;;
8910esac
21be0a5a 8911 LIPO=$ac_ct_LIPO
5213506e 8912 fi
d58dead8 8913else
21be0a5a 8914 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8915fi
8916
21be0a5a
JB
8917 if test -n "$ac_tool_prefix"; then
8918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8919set dummy ${ac_tool_prefix}otool; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8922if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 8923 $as_echo_n "(cached) " >&6
d58dead8 8924else
21be0a5a
JB
8925 if test -n "$OTOOL"; then
8926 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8927else
21be0a5a
JB
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
43e02a8a
RW
8942
8943fi
21be0a5a
JB
8944fi
8945OTOOL=$ac_cv_prog_OTOOL
8946if test -n "$OTOOL"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8948$as_echo "$OTOOL" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
d58dead8 8954
1cf3d07d 8955fi
21be0a5a
JB
8956if test -z "$ac_cv_prog_OTOOL"; then
8957 ac_ct_OTOOL=$OTOOL
8958 # Extract the first word of "otool", so it can be a program name with args.
8959set dummy otool; ac_word=$2
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8962if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 8963 $as_echo_n "(cached) " >&6
1cf3d07d 8964else
21be0a5a
JB
8965 if test -n "$ac_ct_OTOOL"; then
8966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
1cf3d07d 8970do
21be0a5a
JB
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8975 ac_cv_prog_ac_ct_OTOOL="otool"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979done
8980 done
8981IFS=$as_save_IFS
6de9cd9a 8982
21be0a5a
JB
8983fi
8984fi
8985ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8986if test -n "$ac_ct_OTOOL"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8988$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8989else
21be0a5a
JB
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991$as_echo "no" >&6; }
1cf3d07d 8992fi
96b8a615 8993
21be0a5a
JB
8994 if test "x$ac_ct_OTOOL" = x; then
8995 OTOOL=":"
8996 else
8997 case $cross_compiling:$ac_tool_warned in
8998yes:)
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9001ac_tool_warned=yes ;;
9002esac
9003 OTOOL=$ac_ct_OTOOL
9004 fi
1cf3d07d 9005else
21be0a5a 9006 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 9007fi
6de9cd9a 9008
21be0a5a
JB
9009 if test -n "$ac_tool_prefix"; then
9010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9011set dummy ${ac_tool_prefix}otool64; ac_word=$2
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9014if ${ac_cv_prog_OTOOL64+:} false; then :
21be0a5a
JB
9015 $as_echo_n "(cached) " >&6
9016else
9017 if test -n "$OTOOL64"; then
9018 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9019else
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9027 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
1cf3d07d 9031done
21be0a5a
JB
9032 done
9033IFS=$as_save_IFS
9034
9035fi
9036fi
9037OTOOL64=$ac_cv_prog_OTOOL64
9038if test -n "$OTOOL64"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9040$as_echo "$OTOOL64" >&6; }
9041else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043$as_echo "no" >&6; }
1cf3d07d 9044fi
6de9cd9a 9045
96b8a615 9046
1cf3d07d 9047fi
21be0a5a
JB
9048if test -z "$ac_cv_prog_OTOOL64"; then
9049 ac_ct_OTOOL64=$OTOOL64
9050 # Extract the first word of "otool64", so it can be a program name with args.
9051set dummy otool64; ac_word=$2
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9054if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
21be0a5a 9055 $as_echo_n "(cached) " >&6
96b8a615 9056else
21be0a5a
JB
9057 if test -n "$ac_ct_OTOOL64"; then
9058 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9059else
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
96b8a615 9062do
21be0a5a
JB
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9067 ac_cv_prog_ac_ct_OTOOL64="otool64"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071done
9072 done
9073IFS=$as_save_IFS
96b8a615 9074
21be0a5a
JB
9075fi
9076fi
9077ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9078if test -n "$ac_ct_OTOOL64"; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9080$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 9081else
21be0a5a
JB
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083$as_echo "no" >&6; }
96b8a615
AJ
9084fi
9085
21be0a5a
JB
9086 if test "x$ac_ct_OTOOL64" = x; then
9087 OTOOL64=":"
9088 else
9089 case $cross_compiling:$ac_tool_warned in
9090yes:)
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9093ac_tool_warned=yes ;;
9094esac
9095 OTOOL64=$ac_ct_OTOOL64
9096 fi
6de9cd9a 9097else
21be0a5a 9098 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 9099fi
6de9cd9a 9100
5213506e 9101
1cf3d07d 9102
1cf3d07d
SE
9103
9104
6de9cd9a 9105
1cf3d07d 9106
6de9cd9a 9107
1cf3d07d 9108
5213506e 9109
6de9cd9a 9110
e87045f3 9111
15e92535 9112
5213506e 9113
15e92535 9114
15e92535 9115
21be0a5a
JB
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9128$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 9129if ${lt_cv_apple_cc_single_mod+:} false; then :
21be0a5a 9130 $as_echo_n "(cached) " >&6
1cf3d07d 9131else
21be0a5a
JB
9132 lt_cv_apple_cc_single_mod=no
9133 if test -z "${LT_MULTI_MODULE}"; then
9134 # By default we will add the -single_module flag. You can override
9135 # by either setting the environment variable LT_MULTI_MODULE
9136 # non-empty at configure time, or by adding -multi_module to the
9137 # link flags.
9138 rm -rf libconftest.dylib*
9139 echo "int foo(void){return 1;}" > conftest.c
9140 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9141-dynamiclib -Wl,-single_module conftest.c" >&5
9142 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9143 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9144 _lt_result=$?
9145 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9146 lt_cv_apple_cc_single_mod=yes
9147 else
9148 cat conftest.err >&5
9149 fi
9150 rm -rf libconftest.dylib*
9151 rm -f conftest.*
9152 fi
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9155$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9157$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 9158if ${lt_cv_ld_exported_symbols_list+:} false; then :
21be0a5a
JB
9159 $as_echo_n "(cached) " >&6
9160else
9161 lt_cv_ld_exported_symbols_list=no
9162 save_LDFLAGS=$LDFLAGS
9163 echo "_main" > conftest.sym
9164 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9165 if test x$gcc_no_link = xyes; then
22e05272 9166 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
9167fi
9168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9169/* end confdefs.h. */
15e92535 9170
1cf3d07d
SE
9171int
9172main ()
9173{
21be0a5a
JB
9174
9175 ;
5213506e 9176 return 0;
1cf3d07d 9177}
15e92535 9178_ACEOF
21be0a5a
JB
9179if ac_fn_c_try_link "$LINENO"; then :
9180 lt_cv_ld_exported_symbols_list=yes
5213506e 9181else
21be0a5a 9182 lt_cv_ld_exported_symbols_list=no
1cf3d07d 9183fi
21be0a5a
JB
9184rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
9187
9188fi
21be0a5a
JB
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9190$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9192$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 9193if ${lt_cv_ld_force_load+:} false; then :
21be0a5a
JB
9194 $as_echo_n "(cached) " >&6
9195else
9196 lt_cv_ld_force_load=no
9197 cat > conftest.c << _LT_EOF
9198int forced_loaded() { return 2;}
9199_LT_EOF
9200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9202 echo "$AR cru libconftest.a conftest.o" >&5
9203 $AR cru libconftest.a conftest.o 2>&5
9204 cat > conftest.c << _LT_EOF
9205int main() { return 0;}
9206_LT_EOF
9207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9209 _lt_result=$?
9210 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9211 lt_cv_ld_force_load=yes
9212 else
9213 cat conftest.err >&5
9214 fi
9215 rm -f conftest.err libconftest.a conftest conftest.c
9216 rm -rf conftest.dSYM
1cf3d07d
SE
9217
9218fi
21be0a5a
JB
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9220$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
9221 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9222 # build without first building modern cctools / linker.
9223 case $host_cpu-$host_os in
9224 *-rhapsody* | *-darwin1.[012])
21be0a5a 9225 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 9226 *-darwin1.*)
21be0a5a 9227 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
9228 *-darwin*)
9229 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9230 # deployment target is forced to an earlier version.
9231 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9232 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9233 ;;
ebf6d33b 9234 10.[012][,.]*)
1352bc88
IS
9235 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9236 ;;
9237 *)
9238 ;;
9239 esac
21be0a5a
JB
9240 ;;
9241 esac
9242 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9243 _lt_dar_single_mod='$single_module'
9244 fi
9245 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9246 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9247 else
9248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9249 fi
9250 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9251 _lt_dsymutil='~$DSYMUTIL $lib || :'
9252 else
9253 _lt_dsymutil=
9254 fi
9255 ;;
9256 esac
1cf3d07d 9257
1cf3d07d 9258for ac_header in dlfcn.h
5213506e
RW
9259do :
9260 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9261"
22e05272 9262if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1cf3d07d 9263 cat >>confdefs.h <<_ACEOF
5213506e 9264#define HAVE_DLFCN_H 1
9cdc381b 9265_ACEOF
9cdc381b 9266
1cf3d07d
SE
9267fi
9268
9269done
9270
9271
9272
43e02a8a
RW
9273
9274
d58dead8
PG
9275# Set options
9276
9277
9278
9279
9280 enable_win32_dll=no
9281
9282
5213506e
RW
9283 # Check whether --enable-shared was given.
9284if test "${enable_shared+set}" = set; then :
9285 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
9286 case $enableval in
9287 yes) enable_shared=yes ;;
9288 no) enable_shared=no ;;
9289 *)
9290 enable_shared=no
9291 # Look at the argument we got. We use all the common list separators.
9292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9293 for pkg in $enableval; do
9294 IFS="$lt_save_ifs"
9295 if test "X$pkg" = "X$p"; then
9296 enable_shared=yes
9297 fi
9298 done
9299 IFS="$lt_save_ifs"
9300 ;;
9301 esac
9302else
9303 enable_shared=yes
5213506e
RW
9304fi
9305
d58dead8
PG
9306
9307
9308
9309
9310
9311
9312
9313
5213506e
RW
9314 # Check whether --enable-static was given.
9315if test "${enable_static+set}" = set; then :
9316 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
9317 case $enableval in
9318 yes) enable_static=yes ;;
9319 no) enable_static=no ;;
9320 *)
9321 enable_static=no
9322 # Look at the argument we got. We use all the common list separators.
9323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9324 for pkg in $enableval; do
9325 IFS="$lt_save_ifs"
9326 if test "X$pkg" = "X$p"; then
9327 enable_static=yes
9328 fi
9329 done
9330 IFS="$lt_save_ifs"
9331 ;;
9332 esac
9333else
9334 enable_static=yes
5213506e
RW
9335fi
9336
d58dead8
PG
9337
9338
9339
9340
9341
9342
9343
9344
9345
5213506e
RW
9346# Check whether --with-pic was given.
9347if test "${with_pic+set}" = set; then :
9348 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
9349else
9350 pic_mode=default
5213506e
RW
9351fi
9352
d58dead8
PG
9353
9354test -z "$pic_mode" && pic_mode=default
9355
9356
9357
9358
9359
9360
9361
5213506e
RW
9362 # Check whether --enable-fast-install was given.
9363if test "${enable_fast_install+set}" = set; then :
9364 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9365 case $enableval in
9366 yes) enable_fast_install=yes ;;
9367 no) enable_fast_install=no ;;
9368 *)
9369 enable_fast_install=no
9370 # Look at the argument we got. We use all the common list separators.
9371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9372 for pkg in $enableval; do
9373 IFS="$lt_save_ifs"
9374 if test "X$pkg" = "X$p"; then
9375 enable_fast_install=yes
9376 fi
9377 done
9378 IFS="$lt_save_ifs"
9379 ;;
9380 esac
9381else
9382 enable_fast_install=yes
5213506e
RW
9383fi
9384
d58dead8
PG
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
1cf3d07d
SE
9395# This can be used to rebuild libtool when needed
9396LIBTOOL_DEPS="$ltmain"
9397
9398# Always use our own libtool.
9399LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
43e02a8a 9423
1cf3d07d
SE
9424
9425
9426test -z "$LN_S" && LN_S="ln -s"
9427
9428
9429
9430
9431
9cdc381b 9432
1cf3d07d
SE
9433
9434
9435
9436
9437
9438
9439
9440
9441if test -n "${ZSH_VERSION+set}" ; then
9442 setopt NO_GLOB_SUBST
9cdc381b 9443fi
9cdc381b 9444
5213506e
RW
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9446$as_echo_n "checking for objdir... " >&6; }
22e05272 9447if ${lt_cv_objdir+:} false; then :
5213506e 9448 $as_echo_n "(cached) " >&6
9cdc381b 9449else
1cf3d07d
SE
9450 rm -f .libs 2>/dev/null
9451mkdir .libs 2>/dev/null
9452if test -d .libs; then
9453 lt_cv_objdir=.libs
9454else
9455 # MS-DOS does not allow filenames that begin with a dot.
9456 lt_cv_objdir=_libs
9cdc381b 9457fi
1cf3d07d 9458rmdir .libs 2>/dev/null
9cdc381b 9459fi
5213506e
RW
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9461$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9462objdir=$lt_cv_objdir
9463
9464
9465
9466
9cdc381b
BD
9467
9468cat >>confdefs.h <<_ACEOF
1cf3d07d 9469#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9470_ACEOF
9471
1cf3d07d
SE
9472
9473
9474
1cf3d07d
SE
9475case $host_os in
9476aix3*)
9477 # AIX sometimes has problems with the GCC collect2 program. For some
9478 # reason, if we set the COLLECT_NAMES environment variable, the problems
9479 # vanish in a puff of smoke.
9480 if test "X${COLLECT_NAMES+set}" != Xset; then
9481 COLLECT_NAMES=
9482 export COLLECT_NAMES
9483 fi
9484 ;;
9485esac
9486
1cf3d07d
SE
9487# Global variables:
9488ofile=libtool
9489can_build_shared=yes
9490
9491# All known linkers require a `.a' archive for static linking (except MSVC,
9492# which needs '.lib').
9493libext=a
9494
9495with_gnu_ld="$lt_cv_prog_gnu_ld"
9496
9497old_CC="$CC"
9498old_CFLAGS="$CFLAGS"
9499
9500# Set sane defaults for various variables
9501test -z "$CC" && CC=cc
9502test -z "$LTCC" && LTCC=$CC
9503test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9504test -z "$LD" && LD=ld
9505test -z "$ac_objext" && ac_objext=o
9506
9507for cc_temp in $compiler""; do
9508 case $cc_temp in
9509 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9510 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9511 \-*) ;;
9512 *) break;;
9513 esac
9514done
43e02a8a 9515cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9516
9517
9518# Only perform the check for file, if the check method requires it
9519test -z "$MAGIC_CMD" && MAGIC_CMD=file
9520case $deplibs_check_method in
9521file_magic*)
9522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9524$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9525if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9526 $as_echo_n "(cached) " >&6
9cdc381b 9527else
1cf3d07d
SE
9528 case $MAGIC_CMD in
9529[\\/*] | ?:[\\/]*)
9530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9531 ;;
9532*)
9533 lt_save_MAGIC_CMD="$MAGIC_CMD"
9534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9536 for ac_dir in $ac_dummy; do
9537 IFS="$lt_save_ifs"
9538 test -z "$ac_dir" && ac_dir=.
9539 if test -f $ac_dir/${ac_tool_prefix}file; then
9540 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9541 if test -n "$file_magic_test_file"; then
9542 case $deplibs_check_method in
9543 "file_magic "*)
9544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9547 $EGREP "$file_magic_regex" > /dev/null; then
9548 :
9549 else
9550 cat <<_LT_EOF 1>&2
9cdc381b 9551
1cf3d07d
SE
9552*** Warning: the command libtool uses to detect shared libraries,
9553*** $file_magic_cmd, produces output that libtool cannot recognize.
9554*** The result is that libtool may fail to recognize shared libraries
9555*** as such. This will affect the creation of libtool libraries that
9556*** depend on shared libraries, but programs linked with such libtool
9557*** libraries will work regardless of this problem. Nevertheless, you
9558*** may want to report the problem to your system manager and/or to
9559*** bug-libtool@gnu.org
9560
9561_LT_EOF
9562 fi ;;
9563 esac
9564 fi
9565 break
9566 fi
9567 done
9568 IFS="$lt_save_ifs"
9569 MAGIC_CMD="$lt_save_MAGIC_CMD"
9570 ;;
9571esac
9572fi
9573
9574MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9575if test -n "$MAGIC_CMD"; then
5213506e
RW
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9577$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9578else
5213506e
RW
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580$as_echo "no" >&6; }
1cf3d07d
SE
9581fi
9582
9583
9584
9585
9586
9587if test -z "$lt_cv_path_MAGIC_CMD"; then
9588 if test -n "$ac_tool_prefix"; then
5213506e
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9590$as_echo_n "checking for file... " >&6; }
22e05272 9591if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9592 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9593else
9594 case $MAGIC_CMD in
9595[\\/*] | ?:[\\/]*)
9596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9597 ;;
9598*)
9599 lt_save_MAGIC_CMD="$MAGIC_CMD"
9600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9601 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9602 for ac_dir in $ac_dummy; do
9603 IFS="$lt_save_ifs"
9604 test -z "$ac_dir" && ac_dir=.
9605 if test -f $ac_dir/file; then
9606 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9607 if test -n "$file_magic_test_file"; then
9608 case $deplibs_check_method in
9609 "file_magic "*)
9610 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9613 $EGREP "$file_magic_regex" > /dev/null; then
9614 :
9615 else
9616 cat <<_LT_EOF 1>&2
9617
9618*** Warning: the command libtool uses to detect shared libraries,
9619*** $file_magic_cmd, produces output that libtool cannot recognize.
9620*** The result is that libtool may fail to recognize shared libraries
9621*** as such. This will affect the creation of libtool libraries that
9622*** depend on shared libraries, but programs linked with such libtool
9623*** libraries will work regardless of this problem. Nevertheless, you
9624*** may want to report the problem to your system manager and/or to
9625*** bug-libtool@gnu.org
9626
9627_LT_EOF
9628 fi ;;
9629 esac
9630 fi
9631 break
9632 fi
9633 done
9634 IFS="$lt_save_ifs"
9635 MAGIC_CMD="$lt_save_MAGIC_CMD"
9636 ;;
9637esac
9638fi
9639
9640MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9641if test -n "$MAGIC_CMD"; then
5213506e
RW
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9643$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9644else
5213506e
RW
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
1cf3d07d
SE
9647fi
9648
9649
9650 else
9651 MAGIC_CMD=:
9652 fi
9653fi
9654
9655 fi
9656 ;;
9657esac
9658
9659# Use C for the default configuration in the libtool script
9660
9661lt_save_CC="$CC"
9662ac_ext=c
9663ac_cpp='$CPP $CPPFLAGS'
9664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9666ac_compiler_gnu=$ac_cv_c_compiler_gnu
9667
9668
9669# Source file extension for C test sources.
9670ac_ext=c
9671
9672# Object file extension for compiled C test sources.
9673objext=o
9674objext=$objext
9675
9676# Code to be used in simple compile tests
9677lt_simple_compile_test_code="int some_variable = 0;"
9678
9679# Code to be used in simple link tests
9680lt_simple_link_test_code='int main(){return(0);}'
9681
9682
9683
9684
9685
9686
9687
9688# If no C compiler was specified, use CC.
9689LTCC=${LTCC-"$CC"}
9690
9691# If no C compiler flags were specified, use CFLAGS.
9692LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9693
9694# Allow CC to be a program name with arguments.
9695compiler=$CC
9696
9697# Save the default compiler, since it gets overwritten when the other
9698# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9699compiler_DEFAULT=$CC
9700
9701# save warnings/boilerplate of simple test code
9702ac_outfile=conftest.$ac_objext
9703echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9704eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9705_lt_compiler_boilerplate=`cat conftest.err`
9706$RM conftest*
9707
9708ac_outfile=conftest.$ac_objext
9709echo "$lt_simple_link_test_code" >conftest.$ac_ext
9710eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9711_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9712$RM -r conftest*
1cf3d07d
SE
9713
9714
9715## CAVEAT EMPTOR:
9716## There is no encapsulation within the following macros, do not change
9717## the running order or otherwise move them around unless you know exactly
9718## what you are doing...
9719if test -n "$compiler"; then
9720
9721lt_prog_compiler_no_builtin_flag=
9722
9723if test "$GCC" = yes; then
43e02a8a
RW
9724 case $cc_basename in
9725 nvcc*)
9726 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9727 *)
9728 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9729 esac
1cf3d07d 9730
5213506e
RW
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9732$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9733if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 9734 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9735else
9736 lt_cv_prog_compiler_rtti_exceptions=no
9737 ac_outfile=conftest.$ac_objext
9738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9739 lt_compiler_flag="-fno-rtti -fno-exceptions"
9740 # Insert the option either (1) after the last *FLAGS variable, or
9741 # (2) before a word containing "conftest.", or (3) at the end.
9742 # Note that $ac_compile itself does not contain backslashes and begins
9743 # with a dollar sign (not a hyphen), so the echo should work correctly.
9744 # The option is referenced via a variable to avoid confusing sed.
9745 lt_compile=`echo "$ac_compile" | $SED \
9746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9748 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9750 (eval "$lt_compile" 2>conftest.err)
9751 ac_status=$?
9752 cat conftest.err >&5
43e02a8a 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9754 if (exit $ac_status) && test -s "$ac_outfile"; then
9755 # The compiler can only warn and ignore the option if not recognized
9756 # So say no if there are warnings other than the usual output.
43e02a8a 9757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler_rtti_exceptions=yes
9761 fi
9762 fi
9763 $RM conftest*
9764
9765fi
5213506e
RW
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9767$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9768
9769if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9770 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9771else
9772 :
9773fi
9774
9775fi
9776
9777
9778
9779
9780
9781
9782 lt_prog_compiler_wl=
9783lt_prog_compiler_pic=
9784lt_prog_compiler_static=
9785
5213506e
RW
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9787$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9788
9789 if test "$GCC" = yes; then
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_static='-static'
9792
9793 case $host_os in
9794 aix*)
9795 # All AIX code is PIC.
9796 if test "$host_cpu" = ia64; then
9797 # AIX 5 now supports IA64 processor
9798 lt_prog_compiler_static='-Bstatic'
9799 fi
bad8a4a7 9800 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9801 ;;
9802
9803 amigaos*)
d58dead8
PG
9804 case $host_cpu in
9805 powerpc)
9806 # see comment about AmigaOS4 .so support
9807 lt_prog_compiler_pic='-fPIC'
9808 ;;
9809 m68k)
9810 # FIXME: we need at least 68020 code to build shared libraries, but
9811 # adding the `-m68020' flag to GCC prevents building anything better,
9812 # like `-m68040'.
9813 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9814 ;;
9815 esac
1cf3d07d
SE
9816 ;;
9817
9818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9819 # PIC is the default for these OSes.
9820 ;;
9821
d58dead8 9822 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9823 # This hack is so that the source file can tell whether it is being
9824 # built for inclusion in a dll (and should export symbols for example).
9825 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9826 # (--disable-auto-import) libraries
9827 lt_prog_compiler_pic='-DDLL_EXPORT'
9828 ;;
9829
9830 darwin* | rhapsody*)
9831 # PIC is the default on this platform
9832 # Common symbols not allowed in MH_DYLIB files
9833 lt_prog_compiler_pic='-fno-common'
9834 ;;
9835
43e02a8a
RW
9836 haiku*)
9837 # PIC is the default for Haiku.
9838 # The "-static" flag exists, but is broken.
9839 lt_prog_compiler_static=
9840 ;;
9841
1cf3d07d 9842 hpux*)
d58dead8
PG
9843 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9844 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9845 # sets the default TLS model and affects inlining.
1cf3d07d 9846 case $host_cpu in
d58dead8 9847 hppa*64*)
1cf3d07d
SE
9848 # +Z the default
9849 ;;
9850 *)
9851 lt_prog_compiler_pic='-fPIC'
9852 ;;
9853 esac
9854 ;;
9855
9856 interix[3-9]*)
9857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9858 # Instead, we relocate shared libraries at runtime.
9859 ;;
9860
9861 msdosdjgpp*)
9862 # Just because we use GCC doesn't mean we suddenly get shared libraries
9863 # on systems that don't support them.
9864 lt_prog_compiler_can_build_shared=no
9865 enable_shared=no
9866 ;;
9867
9868 *nto* | *qnx*)
9869 # QNX uses GNU C++, but need to define -shared option too, otherwise
9870 # it will coredump.
9871 lt_prog_compiler_pic='-fPIC -shared'
9872 ;;
9873
9874 sysv4*MP*)
9875 if test -d /usr/nec; then
9876 lt_prog_compiler_pic=-Kconform_pic
9877 fi
9878 ;;
9879
9880 *)
9881 lt_prog_compiler_pic='-fPIC'
9882 ;;
9883 esac
43e02a8a
RW
9884
9885 case $cc_basename in
9886 nvcc*) # Cuda Compiler Driver 2.2
9887 lt_prog_compiler_wl='-Xlinker '
9888 lt_prog_compiler_pic='-Xcompiler -fPIC'
9889 ;;
9890 esac
1cf3d07d
SE
9891 else
9892 # PORTME Check for flag to pass linker flags through the system compiler.
9893 case $host_os in
9894 aix*)
9895 lt_prog_compiler_wl='-Wl,'
9896 if test "$host_cpu" = ia64; then
9897 # AIX 5 now supports IA64 processor
9898 lt_prog_compiler_static='-Bstatic'
9899 else
9900 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9901 fi
9902 ;;
1cf3d07d 9903
d58dead8 9904 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9905 # This hack is so that the source file can tell whether it is being
9906 # built for inclusion in a dll (and should export symbols for example).
9907 lt_prog_compiler_pic='-DDLL_EXPORT'
9908 ;;
9909
9910 hpux9* | hpux10* | hpux11*)
9911 lt_prog_compiler_wl='-Wl,'
9912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9913 # not for PA HP-UX.
9914 case $host_cpu in
9915 hppa*64*|ia64*)
9916 # +Z the default
9917 ;;
9918 *)
9919 lt_prog_compiler_pic='+Z'
9920 ;;
9921 esac
9922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9923 lt_prog_compiler_static='${wl}-a ${wl}archive'
9924 ;;
9925
9926 irix5* | irix6* | nonstopux*)
9927 lt_prog_compiler_wl='-Wl,'
9928 # PIC (with -KPIC) is the default.
9929 lt_prog_compiler_static='-non_shared'
9930 ;;
9931
7a9d3fe8 9932 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9933 case $cc_basename in
d58dead8
PG
9934 # old Intel for x86_64 which still supported -KPIC.
9935 ecc*)
1cf3d07d
SE
9936 lt_prog_compiler_wl='-Wl,'
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-static'
9939 ;;
d58dead8
PG
9940 # icc used to be incompatible with GCC.
9941 # ICC 10 doesn't accept -KPIC any more.
9942 icc* | ifort*)
9943 lt_prog_compiler_wl='-Wl,'
9944 lt_prog_compiler_pic='-fPIC'
9945 lt_prog_compiler_static='-static'
9946 ;;
9947 # Lahey Fortran 8.1.
9948 lf95*)
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_pic='--shared'
9951 lt_prog_compiler_static='--static'
9952 ;;
43e02a8a 9953 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9954 # Portland Group compilers (*not* the Pentium gcc compiler,
9955 # which looks to be a dead project)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='-fpic'
9958 lt_prog_compiler_static='-Bstatic'
9959 ;;
9960 ccc*)
9961 lt_prog_compiler_wl='-Wl,'
9962 # All Alpha code is PIC.
9963 lt_prog_compiler_static='-non_shared'
9964 ;;
43e02a8a
RW
9965 xl* | bgxl* | bgf* | mpixl*)
9966 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9967 lt_prog_compiler_wl='-Wl,'
9968 lt_prog_compiler_pic='-qpic'
9969 lt_prog_compiler_static='-qstaticlink'
9970 ;;
1cf3d07d
SE
9971 *)
9972 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9973 *Sun\ F* | *Sun*Fortran*)
9974 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9975 lt_prog_compiler_pic='-KPIC'
9976 lt_prog_compiler_static='-Bstatic'
43e02a8a 9977 lt_prog_compiler_wl=''
1cf3d07d 9978 ;;
43e02a8a
RW
9979 *Sun\ C*)
9980 # Sun C 5.9
1cf3d07d
SE
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
43e02a8a 9983 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9984 ;;
9985 esac
9986 ;;
9987 esac
9988 ;;
9989
9990 newsos6)
9991 lt_prog_compiler_pic='-KPIC'
9992 lt_prog_compiler_static='-Bstatic'
9993 ;;
9994
9995 *nto* | *qnx*)
9996 # QNX uses GNU C++, but need to define -shared option too, otherwise
9997 # it will coredump.
9998 lt_prog_compiler_pic='-fPIC -shared'
9999 ;;
10000
10001 osf3* | osf4* | osf5*)
10002 lt_prog_compiler_wl='-Wl,'
10003 # All OSF/1 code is PIC.
10004 lt_prog_compiler_static='-non_shared'
10005 ;;
10006
10007 rdos*)
10008 lt_prog_compiler_static='-non_shared'
10009 ;;
10010
10011 solaris*)
10012 lt_prog_compiler_pic='-KPIC'
10013 lt_prog_compiler_static='-Bstatic'
10014 case $cc_basename in
10015 f77* | f90* | f95*)
10016 lt_prog_compiler_wl='-Qoption ld ';;
10017 *)
10018 lt_prog_compiler_wl='-Wl,';;
10019 esac
10020 ;;
10021
10022 sunos4*)
10023 lt_prog_compiler_wl='-Qoption ld '
10024 lt_prog_compiler_pic='-PIC'
10025 lt_prog_compiler_static='-Bstatic'
10026 ;;
10027
10028 sysv4 | sysv4.2uw2* | sysv4.3*)
10029 lt_prog_compiler_wl='-Wl,'
10030 lt_prog_compiler_pic='-KPIC'
10031 lt_prog_compiler_static='-Bstatic'
10032 ;;
10033
10034 sysv4*MP*)
10035 if test -d /usr/nec ;then
10036 lt_prog_compiler_pic='-Kconform_pic'
10037 lt_prog_compiler_static='-Bstatic'
10038 fi
10039 ;;
10040
10041 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10042 lt_prog_compiler_wl='-Wl,'
10043 lt_prog_compiler_pic='-KPIC'
10044 lt_prog_compiler_static='-Bstatic'
10045 ;;
10046
10047 unicos*)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_can_build_shared=no
10050 ;;
10051
10052 uts4*)
10053 lt_prog_compiler_pic='-pic'
10054 lt_prog_compiler_static='-Bstatic'
10055 ;;
10056
10057 *)
10058 lt_prog_compiler_can_build_shared=no
10059 ;;
10060 esac
10061 fi
10062
10063case $host_os in
10064 # For platforms which do not support PIC, -DPIC is meaningless:
10065 *djgpp*)
10066 lt_prog_compiler_pic=
10067 ;;
10068 *)
10069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10070 ;;
10071esac
5213506e
RW
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10073$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10074
10075
10076
10077
10078
10079
10080#
10081# Check to make sure the PIC flag actually works.
10082#
10083if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10085$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 10086if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 10087 $as_echo_n "(cached) " >&6
1cf3d07d 10088else
d58dead8 10089 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10090 ac_outfile=conftest.$ac_objext
10091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10092 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10093 # Insert the option either (1) after the last *FLAGS variable, or
10094 # (2) before a word containing "conftest.", or (3) at the end.
10095 # Note that $ac_compile itself does not contain backslashes and begins
10096 # with a dollar sign (not a hyphen), so the echo should work correctly.
10097 # The option is referenced via a variable to avoid confusing sed.
10098 lt_compile=`echo "$ac_compile" | $SED \
10099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10101 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10103 (eval "$lt_compile" 2>conftest.err)
10104 ac_status=$?
10105 cat conftest.err >&5
43e02a8a 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10107 if (exit $ac_status) && test -s "$ac_outfile"; then
10108 # The compiler can only warn and ignore the option if not recognized
10109 # So say no if there are warnings other than the usual output.
43e02a8a 10110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10113 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10114 fi
10115 fi
10116 $RM conftest*
10117
10118fi
5213506e
RW
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10120$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 10121
d58dead8 10122if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10123 case $lt_prog_compiler_pic in
10124 "" | " "*) ;;
10125 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10126 esac
10127else
10128 lt_prog_compiler_pic=
10129 lt_prog_compiler_can_build_shared=no
10130fi
10131
10132fi
10133
10134
10135
10136
10137
10138
10139#
10140# Check to make sure the static flag actually works.
10141#
10142wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10144$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 10145if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 10146 $as_echo_n "(cached) " >&6
1cf3d07d 10147else
d58dead8 10148 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10149 save_LDFLAGS="$LDFLAGS"
10150 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10153 # The linker can only warn and ignore the option if not recognized
10154 # So say no if there are warnings
10155 if test -s conftest.err; then
10156 # Append any errors to the config.log.
10157 cat conftest.err 1>&5
43e02a8a 10158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10160 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10161 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10162 fi
10163 else
d58dead8 10164 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10165 fi
10166 fi
d58dead8 10167 $RM -r conftest*
1cf3d07d
SE
10168 LDFLAGS="$save_LDFLAGS"
10169
10170fi
5213506e
RW
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10172$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10173
d58dead8 10174if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10175 :
10176else
10177 lt_prog_compiler_static=
10178fi
10179
10180
10181
10182
10183
10184
10185
5213506e
RW
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10188if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10189 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10190else
10191 lt_cv_prog_compiler_c_o=no
10192 $RM -r conftest 2>/dev/null
10193 mkdir conftest
10194 cd conftest
10195 mkdir out
10196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197
10198 lt_compiler_flag="-o out/conftest2.$ac_objext"
10199 # Insert the option either (1) after the last *FLAGS variable, or
10200 # (2) before a word containing "conftest.", or (3) at the end.
10201 # Note that $ac_compile itself does not contain backslashes and begins
10202 # with a dollar sign (not a hyphen), so the echo should work correctly.
10203 lt_compile=`echo "$ac_compile" | $SED \
10204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10206 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10208 (eval "$lt_compile" 2>out/conftest.err)
10209 ac_status=$?
10210 cat out/conftest.err >&5
43e02a8a 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10213 then
10214 # The compiler can only warn and ignore the option if not recognized
10215 # So say no if there are warnings
43e02a8a 10216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10219 lt_cv_prog_compiler_c_o=yes
10220 fi
10221 fi
10222 chmod u+w . 2>&5
10223 $RM conftest*
10224 # SGI C++ compiler will create directory out/ii_files/ for
10225 # template instantiation
10226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10227 $RM out/* && rmdir out
10228 cd ..
10229 $RM -r conftest
10230 $RM conftest*
10231
10232fi
5213506e
RW
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10234$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10235
10236
10237
10238
10239
10240
5213506e
RW
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10242$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10243if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10244 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10245else
10246 lt_cv_prog_compiler_c_o=no
10247 $RM -r conftest 2>/dev/null
10248 mkdir conftest
10249 cd conftest
10250 mkdir out
10251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10252
10253 lt_compiler_flag="-o out/conftest2.$ac_objext"
10254 # Insert the option either (1) after the last *FLAGS variable, or
10255 # (2) before a word containing "conftest.", or (3) at the end.
10256 # Note that $ac_compile itself does not contain backslashes and begins
10257 # with a dollar sign (not a hyphen), so the echo should work correctly.
10258 lt_compile=`echo "$ac_compile" | $SED \
10259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10261 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10263 (eval "$lt_compile" 2>out/conftest.err)
10264 ac_status=$?
10265 cat out/conftest.err >&5
43e02a8a 10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10268 then
10269 # The compiler can only warn and ignore the option if not recognized
10270 # So say no if there are warnings
43e02a8a 10271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10274 lt_cv_prog_compiler_c_o=yes
10275 fi
10276 fi
10277 chmod u+w . 2>&5
10278 $RM conftest*
10279 # SGI C++ compiler will create directory out/ii_files/ for
10280 # template instantiation
10281 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10282 $RM out/* && rmdir out
10283 cd ..
10284 $RM -r conftest
10285 $RM conftest*
10286
10287fi
5213506e
RW
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10289$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10290
10291
10292
10293
10294hard_links="nottested"
10295if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10296 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10298$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10299 hard_links=yes
10300 $RM conftest*
10301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10302 touch conftest.a
10303 ln conftest.a conftest.b 2>&5 || hard_links=no
10304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10306$as_echo "$hard_links" >&6; }
1cf3d07d 10307 if test "$hard_links" = no; then
5213506e
RW
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10309$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10310 need_locks=warn
10311 fi
10312else
10313 need_locks=no
10314fi
10315
10316
10317
10318
10319
10320
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10322$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10323
10324 runpath_var=
10325 allow_undefined_flag=
10326 always_export_symbols=no
10327 archive_cmds=
10328 archive_expsym_cmds=
10329 compiler_needs_object=no
10330 enable_shared_with_static_runtimes=no
10331 export_dynamic_flag_spec=
10332 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10333 hardcode_automatic=no
10334 hardcode_direct=no
10335 hardcode_direct_absolute=no
10336 hardcode_libdir_flag_spec=
10337 hardcode_libdir_flag_spec_ld=
10338 hardcode_libdir_separator=
10339 hardcode_minus_L=no
10340 hardcode_shlibpath_var=unsupported
10341 inherit_rpath=no
10342 link_all_deplibs=unknown
10343 module_cmds=
10344 module_expsym_cmds=
10345 old_archive_from_new_cmds=
10346 old_archive_from_expsyms_cmds=
10347 thread_safe_flag_spec=
10348 whole_archive_flag_spec=
10349 # include_expsyms should be a list of space-separated symbols to be *always*
10350 # included in the symbol list
10351 include_expsyms=
10352 # exclude_expsyms can be an extended regexp of symbols to exclude
10353 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10354 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10355 # as well as any symbol that contains `d'.
d58dead8 10356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10358 # platforms (ab)use it in PIC code, but their linkers get confused if
10359 # the symbol is explicitly referenced. Since portable code cannot
10360 # rely on this symbol name, it's probably fine to never include it in
10361 # preloaded symbol tables.
d58dead8 10362 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10363 extract_expsyms_cmds=
10364
10365 case $host_os in
d58dead8 10366 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10367 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10368 # When not using gcc, we currently assume that we are using
10369 # Microsoft Visual C++.
10370 if test "$GCC" != yes; then
10371 with_gnu_ld=no
10372 fi
10373 ;;
10374 interix*)
10375 # we just hope/assume this is gcc and not c89 (= MSVC++)
10376 with_gnu_ld=yes
10377 ;;
10378 openbsd*)
10379 with_gnu_ld=no
10380 ;;
10381 esac
10382
10383 ld_shlibs=yes
43e02a8a
RW
10384
10385 # On some targets, GNU ld is compatible enough with the native linker
10386 # that we're better off using the native interface for both.
10387 lt_use_gnu_ld_interface=no
1cf3d07d 10388 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10389 case $host_os in
10390 aix*)
10391 # The AIX port of GNU ld has always aspired to compatibility
10392 # with the native linker. However, as the warning in the GNU ld
10393 # block says, versions before 2.19.5* couldn't really create working
10394 # shared libraries, regardless of the interface used.
10395 case `$LD -v 2>&1` in
10396 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10397 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10398 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10399 *)
10400 lt_use_gnu_ld_interface=yes
10401 ;;
10402 esac
10403 ;;
10404 *)
10405 lt_use_gnu_ld_interface=yes
10406 ;;
10407 esac
10408 fi
10409
10410 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10411 # If archive_cmds runs LD, not CC, wlarc should be empty
10412 wlarc='${wl}'
10413
10414 # Set some defaults for GNU ld with shared library support. These
10415 # are reset later if shared libraries are not supported. Putting them
10416 # here allows them to be overridden if necessary.
10417 runpath_var=LD_RUN_PATH
10418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10419 export_dynamic_flag_spec='${wl}--export-dynamic'
10420 # ancient GNU ld didn't support --whole-archive et. al.
10421 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10423 else
10424 whole_archive_flag_spec=
10425 fi
10426 supports_anon_versioning=no
10427 case `$LD -v 2>&1` in
43e02a8a 10428 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10429 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10432 *\ 2.11.*) ;; # other 2.11 versions
10433 *) supports_anon_versioning=yes ;;
10434 esac
10435
10436 # See if GNU ld supports shared libraries.
10437 case $host_os in
4f6bebc3 10438 aix[3-9]*)
1cf3d07d
SE
10439 # On AIX/PPC, the GNU linker is very broken
10440 if test "$host_cpu" != ia64; then
10441 ld_shlibs=no
10442 cat <<_LT_EOF 1>&2
10443
43e02a8a 10444*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10445*** to be unable to reliably create shared libraries on AIX.
10446*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10447*** really care for shared libraries, you may want to install binutils
10448*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10449*** You will then need to restart the configuration process.
1cf3d07d
SE
10450
10451_LT_EOF
10452 fi
10453 ;;
10454
10455 amigaos*)
d58dead8
PG
10456 case $host_cpu in
10457 powerpc)
10458 # see comment about AmigaOS4 .so support
10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10460 archive_expsym_cmds=''
10461 ;;
10462 m68k)
10463 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)'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 ;;
10467 esac
1cf3d07d
SE
10468 ;;
10469
10470 beos*)
10471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10472 allow_undefined_flag=unsupported
10473 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10474 # support --undefined. This deserves some investigation. FIXME
10475 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10476 else
10477 ld_shlibs=no
10478 fi
10479 ;;
10480
d58dead8 10481 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10482 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10483 # as there is no search path for DLLs.
10484 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10485 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10486 allow_undefined_flag=unsupported
10487 always_export_symbols=no
10488 enable_shared_with_static_runtimes=yes
10489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10490
10491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10493 # If the export-symbols file already is a .def file (1st line
10494 # is EXPORTS), use it as is; otherwise, prepend...
10495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10496 cp $export_symbols $output_objdir/$soname.def;
10497 else
10498 echo EXPORTS > $output_objdir/$soname.def;
10499 cat $export_symbols >> $output_objdir/$soname.def;
10500 fi~
10501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10502 else
10503 ld_shlibs=no
10504 fi
10505 ;;
10506
43e02a8a
RW
10507 haiku*)
10508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10509 link_all_deplibs=yes
10510 ;;
10511
1cf3d07d
SE
10512 interix[3-9]*)
10513 hardcode_direct=no
10514 hardcode_shlibpath_var=no
10515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10516 export_dynamic_flag_spec='${wl}-E'
10517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10518 # Instead, shared libraries are loaded at an image base (0x10000000 by
10519 # default) and relocated if they conflict, which is a slow very memory
10520 # consuming and fragmenting process. To avoid this, we pick a random,
10521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10522 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10524 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'
10525 ;;
10526
e9085da5 10527 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
10528 tmp_diet=no
10529 if test "$host_os" = linux-dietlibc; then
10530 case $cc_basename in
10531 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10532 esac
10533 fi
10534 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10535 && test "$tmp_diet" = no
10536 then
a699d672 10537 tmp_addflag=' $pic_flag'
d58dead8 10538 tmp_sharedflag='-shared'
1cf3d07d
SE
10539 case $cc_basename,$host_cpu in
10540 pgcc*) # Portland Group C compiler
43e02a8a 10541 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
10542 tmp_addflag=' $pic_flag'
10543 ;;
43e02a8a
RW
10544 pgf77* | pgf90* | pgf95* | pgfortran*)
10545 # Portland Group f77 and f90 compilers
10546 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
10547 tmp_addflag=' $pic_flag -Mnomain' ;;
10548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10549 tmp_addflag=' -i_dynamic' ;;
10550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10551 tmp_addflag=' -i_dynamic -nofor_main' ;;
10552 ifc* | ifort*) # Intel Fortran compiler
10553 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10554 lf95*) # Lahey Fortran 8.1
10555 whole_archive_flag_spec=
10556 tmp_sharedflag='--shared' ;;
43e02a8a 10557 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10558 tmp_sharedflag='-qmkshrobj'
10559 tmp_addflag= ;;
43e02a8a
RW
10560 nvcc*) # Cuda Compiler Driver 2.2
10561 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'
10562 compiler_needs_object=yes
10563 ;;
1cf3d07d
SE
10564 esac
10565 case `$CC -V 2>&1 | sed 5q` in
10566 *Sun\ C*) # Sun C 5.9
43e02a8a 10567 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
10568 compiler_needs_object=yes
10569 tmp_sharedflag='-G' ;;
10570 *Sun\ F*) # Sun Fortran 8.3
10571 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10572 esac
10573 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574
10575 if test "x$supports_anon_versioning" = xyes; then
10576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10578 echo "local: *; };" >> $output_objdir/$libname.ver~
10579 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10580 fi
d58dead8
PG
10581
10582 case $cc_basename in
43e02a8a 10583 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10586 hardcode_libdir_flag_spec=
10587 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10588 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10589 if test "x$supports_anon_versioning" = xyes; then
10590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10592 echo "local: *; };" >> $output_objdir/$libname.ver~
10593 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10594 fi
10595 ;;
10596 esac
1cf3d07d
SE
10597 else
10598 ld_shlibs=no
10599 fi
10600 ;;
10601
10602 netbsd*)
10603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10605 wlarc=
10606 else
10607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10609 fi
10610 ;;
10611
10612 solaris*)
10613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10614 ld_shlibs=no
10615 cat <<_LT_EOF 1>&2
10616
10617*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10618*** create shared libraries on Solaris systems. Therefore, libtool
10619*** is disabling shared libraries support. We urge you to upgrade GNU
10620*** binutils to release 2.9.1 or newer. Another option is to modify
10621*** your PATH or compiler configuration so that the native linker is
10622*** used, and then restart.
10623
10624_LT_EOF
10625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10628 else
10629 ld_shlibs=no
10630 fi
10631 ;;
10632
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10634 case `$LD -v 2>&1` in
10635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10636 ld_shlibs=no
10637 cat <<_LT_EOF 1>&2
10638
10639*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10640*** reliably create shared libraries on SCO systems. Therefore, libtool
10641*** is disabling shared libraries support. We urge you to upgrade GNU
10642*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10643*** your PATH or compiler configuration so that the native linker is
10644*** used, and then restart.
10645
10646_LT_EOF
10647 ;;
10648 *)
10649 # For security reasons, it is highly recommended that you always
10650 # use absolute paths for naming shared libraries, and exclude the
10651 # DT_RUNPATH tag from executables and libraries. But doing so
10652 # requires that you compile everything twice, which is a pain.
10653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10657 else
10658 ld_shlibs=no
10659 fi
10660 ;;
10661 esac
10662 ;;
10663
10664 sunos4*)
10665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666 wlarc=
10667 hardcode_direct=yes
10668 hardcode_shlibpath_var=no
10669 ;;
10670
10671 *)
10672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10675 else
10676 ld_shlibs=no
10677 fi
10678 ;;
10679 esac
10680
10681 if test "$ld_shlibs" = no; then
10682 runpath_var=
10683 hardcode_libdir_flag_spec=
10684 export_dynamic_flag_spec=
10685 whole_archive_flag_spec=
10686 fi
10687 else
10688 # PORTME fill in a description of your system's linker (not GNU ld)
10689 case $host_os in
10690 aix3*)
10691 allow_undefined_flag=unsupported
10692 always_export_symbols=yes
10693 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'
10694 # Note: this linker hardcodes the directories in LIBPATH if there
10695 # are no directories specified by -L.
10696 hardcode_minus_L=yes
10697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10698 # Neither direct hardcoding nor static linking is supported with a
10699 # broken collect2.
10700 hardcode_direct=unsupported
10701 fi
10702 ;;
10703
4f6bebc3 10704 aix[4-9]*)
1cf3d07d
SE
10705 if test "$host_cpu" = ia64; then
10706 # On IA64, the linker does run time linking by default, so we don't
10707 # have to do anything special.
10708 aix_use_runtimelinking=no
10709 exp_sym_flag='-Bexport'
10710 no_entry_flag=""
10711 else
10712 # If we're using GNU nm, then we don't want the "-C" option.
10713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10714 # Also, AIX nm treats weak defined symbols like other global
10715 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10717 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 10718 else
d3ca2257 10719 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
10720 fi
10721 aix_use_runtimelinking=no
10722
10723 # Test if we are trying to use run time linking or normal
10724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10725 # need to do runtime linking.
4f6bebc3 10726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10727 for ld_flag in $LDFLAGS; do
10728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10729 aix_use_runtimelinking=yes
10730 break
10731 fi
10732 done
10733 ;;
10734 esac
10735
10736 exp_sym_flag='-bexport'
10737 no_entry_flag='-bnoentry'
10738 fi
10739
10740 # When large executables or shared objects are built, AIX ld can
10741 # have problems creating the table of contents. If linking a library
10742 # or program results in "error TOC overflow" add -mminimal-toc to
10743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10745
10746 archive_cmds=''
10747 hardcode_direct=yes
10748 hardcode_direct_absolute=yes
10749 hardcode_libdir_separator=':'
10750 link_all_deplibs=yes
10751 file_list_spec='${wl}-f,'
10752
10753 if test "$GCC" = yes; then
10754 case $host_os in aix4.[012]|aix4.[012].*)
10755 # We only want to do this on AIX 4.2 and lower, the check
10756 # below for broken collect2 doesn't work under 4.3+
10757 collect2name=`${CC} -print-prog-name=collect2`
10758 if test -f "$collect2name" &&
10759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10760 then
10761 # We have reworked collect2
10762 :
10763 else
10764 # We have old collect2
10765 hardcode_direct=unsupported
10766 # It fails to find uninstalled libraries when the uninstalled
10767 # path is not listed in the libpath. Setting hardcode_minus_L
10768 # to unsupported forces relinking
10769 hardcode_minus_L=yes
10770 hardcode_libdir_flag_spec='-L$libdir'
10771 hardcode_libdir_separator=
10772 fi
10773 ;;
10774 esac
10775 shared_flag='-shared'
10776 if test "$aix_use_runtimelinking" = yes; then
10777 shared_flag="$shared_flag "'${wl}-G'
10778 fi
10779 else
10780 # not using gcc
10781 if test "$host_cpu" = ia64; then
10782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10783 # chokes on -Wl,-G. The following line is correct:
10784 shared_flag='-G'
10785 else
10786 if test "$aix_use_runtimelinking" = yes; then
10787 shared_flag='${wl}-G'
10788 else
10789 shared_flag='${wl}-bM:SRE'
10790 fi
10791 fi
10792 fi
10793
d58dead8 10794 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10795 # It seems that -bexpall does not export symbols beginning with
10796 # underscore (_), so it is better to generate a list of symbols to export.
10797 always_export_symbols=yes
10798 if test "$aix_use_runtimelinking" = yes; then
10799 # Warning - without using the other runtime loading flags (-brtl),
10800 # -berok will link without error, but may produce a broken library.
10801 allow_undefined_flag='-berok'
10802 # Determine the default libpath from the value encoded in an
10803 # empty executable.
10804 if test x$gcc_no_link = xyes; then
22e05272 10805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10806fi
5213506e 10807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10808/* end confdefs.h. */
10809
10810int
10811main ()
10812{
10813
10814 ;
10815 return 0;
10816}
10817_ACEOF
5213506e 10818if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10819
10820lt_aix_libpath_sed='
10821 /Import File Strings/,/^$/ {
10822 /^0/ {
10823 s/^0 *\(.*\)$/\1/
10824 p
10825 }
10826 }'
10827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10828# Check for a 64-bit object if we didn't find anything.
10829if test -z "$aix_libpath"; then
10830 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831fi
1cf3d07d 10832fi
5213506e
RW
10833rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10836
10837 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10838 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
10839 else
10840 if test "$host_cpu" = ia64; then
10841 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10842 allow_undefined_flag="-z nodefs"
10843 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"
10844 else
10845 # Determine the default libpath from the value encoded in an
10846 # empty executable.
10847 if test x$gcc_no_link = xyes; then
22e05272 10848 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10849fi
5213506e 10850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10851/* end confdefs.h. */
10852
10853int
10854main ()
10855{
10856
10857 ;
10858 return 0;
10859}
10860_ACEOF
5213506e 10861if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10862
10863lt_aix_libpath_sed='
10864 /Import File Strings/,/^$/ {
10865 /^0/ {
10866 s/^0 *\(.*\)$/\1/
10867 p
10868 }
10869 }'
10870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10871# Check for a 64-bit object if we didn't find anything.
10872if test -z "$aix_libpath"; then
10873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10874fi
1cf3d07d 10875fi
5213506e
RW
10876rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10879
10880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10881 # Warning - without using the other run time loading flags,
10882 # -berok will link without error, but may produce a broken library.
10883 no_undefined_flag=' ${wl}-bernotok'
10884 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10885 if test "$with_gnu_ld" = yes; then
10886 # We only use this code for GNU lds that support --whole-archive.
10887 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10888 else
10889 # Exported symbols can be pulled into shared objects from archives
10890 whole_archive_flag_spec='$convenience'
10891 fi
1cf3d07d
SE
10892 archive_cmds_need_lc=yes
10893 # This is similar to how AIX traditionally builds its shared libraries.
10894 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'
10895 fi
10896 fi
10897 ;;
10898
10899 amigaos*)
d58dead8
PG
10900 case $host_cpu in
10901 powerpc)
10902 # see comment about AmigaOS4 .so support
10903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10904 archive_expsym_cmds=''
10905 ;;
10906 m68k)
10907 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)'
10908 hardcode_libdir_flag_spec='-L$libdir'
10909 hardcode_minus_L=yes
10910 ;;
10911 esac
1cf3d07d
SE
10912 ;;
10913
10914 bsdi[45]*)
10915 export_dynamic_flag_spec=-rdynamic
10916 ;;
10917
d58dead8 10918 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10919 # When not using gcc, we currently assume that we are using
10920 # Microsoft Visual C++.
10921 # hardcode_libdir_flag_spec is actually meaningless, as there is
10922 # no search path for DLLs.
10923 hardcode_libdir_flag_spec=' '
10924 allow_undefined_flag=unsupported
10925 # Tell ltmain to make .lib files, not .a files.
10926 libext=lib
10927 # Tell ltmain to make .dll files, not .so files.
10928 shrext_cmds=".dll"
10929 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10930 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10931 # The linker will automatically build a .lib file if we build a DLL.
10932 old_archive_from_new_cmds='true'
10933 # FIXME: Should let the user specify the lib program.
10934 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10935 fix_srcfile_path='`cygpath -w "$srcfile"`'
10936 enable_shared_with_static_runtimes=yes
10937 ;;
10938
10939 darwin* | rhapsody*)
1cf3d07d 10940
d58dead8
PG
10941
10942 archive_cmds_need_lc=no
10943 hardcode_direct=no
10944 hardcode_automatic=yes
10945 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10946 if test "$lt_cv_ld_force_load" = "yes"; then
10947 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\"`'
10948 else
10949 whole_archive_flag_spec=''
10950 fi
d58dead8
PG
10951 link_all_deplibs=yes
10952 allow_undefined_flag="$_lt_dar_allow_undefined"
10953 case $cc_basename in
10954 ifort*) _lt_dar_can_shared=yes ;;
10955 *) _lt_dar_can_shared=$GCC ;;
10956 esac
10957 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10958 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10959 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10960 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10961 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}"
10962 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}"
10963
10964 else
10965 ld_shlibs=no
10966 fi
10967
1cf3d07d
SE
10968 ;;
10969
10970 dgux*)
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_libdir_flag_spec='-L$libdir'
10973 hardcode_shlibpath_var=no
10974 ;;
10975
1cf3d07d
SE
10976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10977 # support. Future versions do this automatically, but an explicit c++rt0.o
10978 # does not break anything, and helps significantly (at the cost of a little
10979 # extra space).
10980 freebsd2.2*)
10981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10982 hardcode_libdir_flag_spec='-R$libdir'
10983 hardcode_direct=yes
10984 hardcode_shlibpath_var=no
10985 ;;
10986
10987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10988 freebsd2.*)
1cf3d07d
SE
10989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=yes
10991 hardcode_minus_L=yes
10992 hardcode_shlibpath_var=no
10993 ;;
10994
10995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10996 freebsd* | dragonfly*)
10997 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10998 hardcode_libdir_flag_spec='-R$libdir'
10999 hardcode_direct=yes
11000 hardcode_shlibpath_var=no
11001 ;;
11002
11003 hpux9*)
11004 if test "$GCC" = yes; then
11005 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'
11006 else
11007 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'
11008 fi
11009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11010 hardcode_libdir_separator=:
11011 hardcode_direct=yes
11012
11013 # hardcode_minus_L: Not really in the search PATH,
11014 # but as the default location of the library.
11015 hardcode_minus_L=yes
11016 export_dynamic_flag_spec='${wl}-E'
11017 ;;
11018
11019 hpux10*)
43e02a8a 11020 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11022 else
11023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11024 fi
11025 if test "$with_gnu_ld" = no; then
11026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11027 hardcode_libdir_flag_spec_ld='+b $libdir'
11028 hardcode_libdir_separator=:
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 export_dynamic_flag_spec='${wl}-E'
11032 # hardcode_minus_L: Not really in the search PATH,
11033 # but as the default location of the library.
11034 hardcode_minus_L=yes
11035 fi
11036 ;;
11037
11038 hpux11*)
43e02a8a 11039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11040 case $host_cpu in
11041 hppa*64*)
4e4ba647 11042 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11043 ;;
11044 ia64*)
d58dead8 11045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11046 ;;
11047 *)
11048 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049 ;;
11050 esac
11051 else
11052 case $host_cpu in
11053 hppa*64*)
4e4ba647 11054 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11055 ;;
11056 ia64*)
11057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11058 ;;
11059 *)
43e02a8a
RW
11060
11061 # Older versions of the 11.00 compiler do not understand -b yet
11062 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11064$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 11065if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
11066 $as_echo_n "(cached) " >&6
11067else
11068 lt_cv_prog_compiler__b=no
11069 save_LDFLAGS="$LDFLAGS"
11070 LDFLAGS="$LDFLAGS -b"
11071 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11073 # The linker can only warn and ignore the option if not recognized
11074 # So say no if there are warnings
11075 if test -s conftest.err; then
11076 # Append any errors to the config.log.
11077 cat conftest.err 1>&5
11078 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080 if diff conftest.exp conftest.er2 >/dev/null; then
11081 lt_cv_prog_compiler__b=yes
11082 fi
11083 else
11084 lt_cv_prog_compiler__b=yes
11085 fi
11086 fi
11087 $RM -r conftest*
11088 LDFLAGS="$save_LDFLAGS"
11089
11090fi
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11092$as_echo "$lt_cv_prog_compiler__b" >&6; }
11093
11094if test x"$lt_cv_prog_compiler__b" = xyes; then
11095 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11096else
11097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11098fi
11099
1cf3d07d
SE
11100 ;;
11101 esac
11102 fi
11103 if test "$with_gnu_ld" = no; then
11104 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11105 hardcode_libdir_separator=:
11106
11107 case $host_cpu in
11108 hppa*64*|ia64*)
11109 hardcode_direct=no
11110 hardcode_shlibpath_var=no
11111 ;;
11112 *)
11113 hardcode_direct=yes
11114 hardcode_direct_absolute=yes
11115 export_dynamic_flag_spec='${wl}-E'
11116
11117 # hardcode_minus_L: Not really in the search PATH,
11118 # but as the default location of the library.
11119 hardcode_minus_L=yes
11120 ;;
11121 esac
11122 fi
11123 ;;
11124
11125 irix5* | irix6* | nonstopux*)
11126 if test "$GCC" = yes; then
43e02a8a 11127 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
11128 # Try to use the -exported_symbol ld option, if it does not
11129 # work, assume that -exports_file does not work either and
11130 # implicitly export all symbols.
11131 save_LDFLAGS="$LDFLAGS"
11132 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11133 if test x$gcc_no_link = xyes; then
22e05272 11134 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11135fi
5213506e
RW
11136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137/* end confdefs.h. */
1cf3d07d
SE
11138int foo(void) {}
11139_ACEOF
5213506e 11140if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11141 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 11142
1cf3d07d 11143fi
5213506e
RW
11144rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11146 LDFLAGS="$save_LDFLAGS"
11147 else
43e02a8a
RW
11148 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'
11149 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
11150 fi
11151 archive_cmds_need_lc='no'
11152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11153 hardcode_libdir_separator=:
11154 inherit_rpath=yes
11155 link_all_deplibs=yes
11156 ;;
11157
11158 netbsd*)
11159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11161 else
11162 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11163 fi
11164 hardcode_libdir_flag_spec='-R$libdir'
11165 hardcode_direct=yes
11166 hardcode_shlibpath_var=no
11167 ;;
11168
11169 newsos6)
11170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171 hardcode_direct=yes
11172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11173 hardcode_libdir_separator=:
11174 hardcode_shlibpath_var=no
11175 ;;
11176
11177 *nto* | *qnx*)
11178 ;;
11179
11180 openbsd*)
d58dead8
PG
11181 if test -f /usr/libexec/ld.so; then
11182 hardcode_direct=yes
11183 hardcode_shlibpath_var=no
11184 hardcode_direct_absolute=yes
11185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 11187 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11188 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
11189 export_dynamic_flag_spec='${wl}-E'
11190 else
11191 case $host_os in
11192 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_libdir_flag_spec='-R$libdir'
11195 ;;
11196 *)
11197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11199 ;;
11200 esac
11201 fi
11202 else
11203 ld_shlibs=no
1cf3d07d
SE
11204 fi
11205 ;;
11206
11207 os2*)
11208 hardcode_libdir_flag_spec='-L$libdir'
11209 hardcode_minus_L=yes
11210 allow_undefined_flag=unsupported
43e02a8a 11211 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
11212 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11213 ;;
11214
11215 osf3*)
11216 if test "$GCC" = yes; then
11217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11218 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
11219 else
11220 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11221 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
11222 fi
11223 archive_cmds_need_lc='no'
11224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11225 hardcode_libdir_separator=:
11226 ;;
11227
11228 osf4* | osf5*) # as osf3* with the addition of -msym flag
11229 if test "$GCC" = yes; then
11230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11231 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
11232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11233 else
11234 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11235 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 11236 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 11237 $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
11238
11239 # Both c and cxx compiler support -rpath directly
11240 hardcode_libdir_flag_spec='-rpath $libdir'
11241 fi
11242 archive_cmds_need_lc='no'
11243 hardcode_libdir_separator=:
11244 ;;
11245
11246 solaris*)
11247 no_undefined_flag=' -z defs'
11248 if test "$GCC" = yes; then
11249 wlarc='${wl}'
11250 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11252 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11253 else
11254 case `$CC -V 2>&1` in
11255 *"Compilers 5.0"*)
11256 wlarc=''
11257 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11260 ;;
11261 *)
11262 wlarc='${wl}'
11263 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11266 ;;
11267 esac
11268 fi
11269 hardcode_libdir_flag_spec='-R$libdir'
11270 hardcode_shlibpath_var=no
11271 case $host_os in
11272 solaris2.[0-5] | solaris2.[0-5].*) ;;
11273 *)
11274 # The compiler driver will combine and reorder linker options,
11275 # but understands `-z linker_flag'. GCC discards it without `$wl',
11276 # but is careful enough not to reorder.
11277 # Supported since Solaris 2.6 (maybe 2.5.1?)
11278 if test "$GCC" = yes; then
11279 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11280 else
11281 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11282 fi
11283 ;;
11284 esac
11285 link_all_deplibs=yes
11286 ;;
11287
11288 sunos4*)
11289 if test "x$host_vendor" = xsequent; then
11290 # Use $CC to link under sequent, because it throws in some extra .o
11291 # files that make .init and .fini sections work.
11292 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11293 else
11294 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11295 fi
11296 hardcode_libdir_flag_spec='-L$libdir'
11297 hardcode_direct=yes
11298 hardcode_minus_L=yes
11299 hardcode_shlibpath_var=no
11300 ;;
11301
11302 sysv4)
11303 case $host_vendor in
11304 sni)
11305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11306 hardcode_direct=yes # is this really true???
11307 ;;
11308 siemens)
11309 ## LD is ld it makes a PLAMLIB
11310 ## CC just makes a GrossModule.
11311 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11312 reload_cmds='$CC -r -o $output$reload_objs'
11313 hardcode_direct=no
11314 ;;
11315 motorola)
11316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11317 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11318 ;;
11319 esac
11320 runpath_var='LD_RUN_PATH'
11321 hardcode_shlibpath_var=no
11322 ;;
11323
11324 sysv4.3*)
11325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11326 hardcode_shlibpath_var=no
11327 export_dynamic_flag_spec='-Bexport'
11328 ;;
11329
11330 sysv4*MP*)
11331 if test -d /usr/nec; then
11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333 hardcode_shlibpath_var=no
11334 runpath_var=LD_RUN_PATH
11335 hardcode_runpath_var=yes
11336 ld_shlibs=yes
11337 fi
11338 ;;
11339
11340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11341 no_undefined_flag='${wl}-z,text'
11342 archive_cmds_need_lc=no
11343 hardcode_shlibpath_var=no
11344 runpath_var='LD_RUN_PATH'
11345
11346 if test "$GCC" = yes; then
11347 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 else
11350 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 fi
11353 ;;
11354
11355 sysv5* | sco3.2v5* | sco5v6*)
11356 # Note: We can NOT use -z defs as we might desire, because we do not
11357 # link with -lc, and that would cause any symbols used from libc to
11358 # always be unresolved, which means just about no library would
11359 # ever link correctly. If we're not using GNU ld we use -z text
11360 # though, which does catch some bad symbols but isn't as heavy-handed
11361 # as -z defs.
11362 no_undefined_flag='${wl}-z,text'
11363 allow_undefined_flag='${wl}-z,nodefs'
11364 archive_cmds_need_lc=no
11365 hardcode_shlibpath_var=no
11366 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11367 hardcode_libdir_separator=':'
11368 link_all_deplibs=yes
11369 export_dynamic_flag_spec='${wl}-Bexport'
11370 runpath_var='LD_RUN_PATH'
11371
11372 if test "$GCC" = yes; then
11373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 else
11376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 fi
11379 ;;
11380
11381 uts4*)
11382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383 hardcode_libdir_flag_spec='-L$libdir'
11384 hardcode_shlibpath_var=no
11385 ;;
11386
11387 *)
11388 ld_shlibs=no
11389 ;;
11390 esac
11391
11392 if test x$host_vendor = xsni; then
11393 case $host in
11394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11395 export_dynamic_flag_spec='${wl}-Blargedynsym'
11396 ;;
11397 esac
11398 fi
11399 fi
11400
5213506e
RW
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11402$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11403test "$ld_shlibs" = no && can_build_shared=no
11404
11405with_gnu_ld=$with_gnu_ld
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421#
11422# Do we need to explicitly link libc?
11423#
11424case "x$archive_cmds_need_lc" in
11425x|xyes)
11426 # Assume -lc should be added
11427 archive_cmds_need_lc=yes
11428
11429 if test "$enable_shared" = yes && test "$GCC" = yes; then
11430 case $archive_cmds in
11431 *'~'*)
11432 # FIXME: we may have to deal with multi-command sequences.
11433 ;;
11434 '$CC '*)
11435 # Test whether the compiler implicitly links with -lc since on some
11436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11437 # to ld, don't add -lc before -lgcc.
5213506e
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11439$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11440if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 11441 $as_echo_n "(cached) " >&6
baafc534
RW
11442else
11443 $RM conftest*
11444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11445
5213506e 11446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11447 (eval $ac_compile) 2>&5
11448 ac_status=$?
5213506e
RW
11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11451 soname=conftest
11452 lib=conftest
11453 libobjs=conftest.$ac_objext
11454 deplibs=
11455 wl=$lt_prog_compiler_wl
11456 pic_flag=$lt_prog_compiler_pic
11457 compiler_flags=-v
11458 linker_flags=-v
11459 verstring=
11460 output_objdir=.
11461 libname=conftest
11462 lt_save_allow_undefined_flag=$allow_undefined_flag
11463 allow_undefined_flag=
5213506e 11464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11465 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11466 ac_status=$?
5213506e
RW
11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468 test $ac_status = 0; }
baafc534
RW
11469 then
11470 lt_cv_archive_cmds_need_lc=no
11471 else
11472 lt_cv_archive_cmds_need_lc=yes
11473 fi
11474 allow_undefined_flag=$lt_save_allow_undefined_flag
11475 else
11476 cat conftest.err 1>&5
11477 fi
11478 $RM conftest*
11479
11480fi
5213506e
RW
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11482$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11483 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11484 ;;
11485 esac
11486 fi
11487 ;;
11488esac
11489
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
5213506e
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11647$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11648
11649if test "$GCC" = yes; then
1cf3d07d
SE
11650 case $host_os in
11651 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11652 *) lt_awk_arg="/^libraries:/" ;;
11653 esac
43e02a8a
RW
11654 case $host_os in
11655 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11656 *) lt_sed_strip_eq="s,=/,/,g" ;;
11657 esac
11658 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11659 case $lt_search_path_spec in
11660 *\;*)
1cf3d07d
SE
11661 # if the path contains ";" then we assume it to be the separator
11662 # otherwise default to the standard path separator (i.e. ":") - it is
11663 # assumed that no part of a normal pathname contains ";" but that should
11664 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11666 ;;
11667 *)
11668 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11669 ;;
11670 esac
1cf3d07d
SE
11671 # Ok, now we have the path, separated by spaces, we can step through it
11672 # and add multilib dir if necessary.
11673 lt_tmp_lt_search_path_spec=
11674 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11675 for lt_sys_path in $lt_search_path_spec; do
11676 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11677 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11678 else
11679 test -d "$lt_sys_path" && \
11680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11681 fi
11682 done
43e02a8a 11683 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11684BEGIN {RS=" "; FS="/|\n";} {
11685 lt_foo="";
11686 lt_count=0;
11687 for (lt_i = NF; lt_i > 0; lt_i--) {
11688 if ($lt_i != "" && $lt_i != ".") {
11689 if ($lt_i == "..") {
11690 lt_count++;
11691 } else {
11692 if (lt_count == 0) {
11693 lt_foo="/" $lt_i lt_foo;
11694 } else {
11695 lt_count--;
11696 }
11697 }
11698 }
11699 }
11700 if (lt_foo != "") { lt_freq[lt_foo]++; }
11701 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11702}'`
43e02a8a
RW
11703 # AWK program above erroneously prepends '/' to C:/dos/paths
11704 # for these hosts.
11705 case $host_os in
11706 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11707 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11708 esac
11709 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11710else
11711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11712fi
11713library_names_spec=
11714libname_spec='lib$name'
11715soname_spec=
11716shrext_cmds=".so"
11717postinstall_cmds=
11718postuninstall_cmds=
11719finish_cmds=
11720finish_eval=
11721shlibpath_var=
11722shlibpath_overrides_runpath=unknown
11723version_type=none
11724dynamic_linker="$host_os ld.so"
11725sys_lib_dlsearch_path_spec="/lib /usr/lib"
11726need_lib_prefix=unknown
11727hardcode_into_libs=no
11728
11729# when you set need_version to no, make sure it does not cause -set_version
11730# flags to be left without arguments
11731need_version=unknown
11732
11733case $host_os in
11734aix3*)
11735 version_type=linux
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11737 shlibpath_var=LIBPATH
11738
11739 # AIX 3 has no versioning support, so we append a major version to the name.
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 ;;
11742
4f6bebc3 11743aix[4-9]*)
1cf3d07d
SE
11744 version_type=linux
11745 need_lib_prefix=no
11746 need_version=no
11747 hardcode_into_libs=yes
11748 if test "$host_cpu" = ia64; then
11749 # AIX 5 supports IA64
11750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 else
11753 # With GCC up to 2.95.x, collect2 would create an import file
11754 # for dependence libraries. The import file would start with
11755 # the line `#! .'. This would cause the generated library to
11756 # depend on `.', always an invalid library. This was fixed in
11757 # development snapshots of GCC prior to 3.0.
11758 case $host_os in
11759 aix4 | aix4.[01] | aix4.[01].*)
11760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11761 echo ' yes '
11762 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11763 :
11764 else
11765 can_build_shared=no
11766 fi
11767 ;;
11768 esac
11769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11770 # soname into executable. Probably we can add versioning support to
11771 # collect2, so additional links can be useful in future.
11772 if test "$aix_use_runtimelinking" = yes; then
11773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11774 # instead of lib<name>.a to let people know that these are not
11775 # typical AIX shared libraries.
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 else
11778 # We preserve .a as extension for shared libraries through AIX4.2
11779 # and later when we are not doing run time linking.
11780 library_names_spec='${libname}${release}.a $libname.a'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 fi
11783 shlibpath_var=LIBPATH
11784 fi
11785 ;;
11786
11787amigaos*)
d58dead8
PG
11788 case $host_cpu in
11789 powerpc)
11790 # Since July 2007 AmigaOS4 officially supports .so libraries.
11791 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 ;;
11794 m68k)
1cf3d07d
SE
11795 library_names_spec='$libname.ixlibrary $libname.a'
11796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11797 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
11798 ;;
11799 esac
1cf3d07d
SE
11800 ;;
11801
11802beos*)
11803 library_names_spec='${libname}${shared_ext}'
11804 dynamic_linker="$host_os ld.so"
11805 shlibpath_var=LIBRARY_PATH
11806 ;;
11807
11808bsdi[45]*)
11809 version_type=linux
11810 need_version=no
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11817 # the default ld.so.conf also contains /usr/contrib/lib and
11818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11819 # libtool to hard-code these into programs
11820 ;;
11821
d58dead8 11822cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11823 version_type=windows
11824 shrext_cmds=".dll"
11825 need_version=no
11826 need_lib_prefix=no
11827
d58dead8
PG
11828 case $GCC,$host_os in
11829 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11830 library_names_spec='$libname.dll.a'
11831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11832 postinstall_cmds='base_file=`basename \${file}`~
11833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11834 dldir=$destdir/`dirname \$dlpath`~
11835 test -d \$dldir || mkdir -p \$dldir~
11836 $install_prog $dir/$dlname \$dldir/$dlname~
11837 chmod a+x \$dldir/$dlname~
11838 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11839 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11840 fi'
11841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11842 dlpath=$dir/\$dldll~
11843 $RM \$dlpath'
11844 shlibpath_overrides_runpath=yes
11845
11846 case $host_os in
11847 cygwin*)
11848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11850
11851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11852 ;;
d58dead8 11853 mingw* | cegcc*)
1cf3d07d
SE
11854 # MinGW DLLs use traditional 'lib' prefix
11855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11856 ;;
11857 pw32*)
11858 # pw32 DLLs use 'pw' prefix rather than 'lib'
11859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11860 ;;
11861 esac
11862 ;;
11863
11864 *)
11865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11866 ;;
11867 esac
11868 dynamic_linker='Win32 ld.exe'
11869 # FIXME: first we should search . and the directory the executable is in
11870 shlibpath_var=PATH
11871 ;;
11872
11873darwin* | rhapsody*)
11874 dynamic_linker="$host_os dyld"
11875 version_type=darwin
11876 need_lib_prefix=no
11877 need_version=no
11878 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11879 soname_spec='${libname}${release}${major}$shared_ext'
11880 shlibpath_overrides_runpath=yes
11881 shlibpath_var=DYLD_LIBRARY_PATH
11882 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11883
11884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11886 ;;
11887
11888dgux*)
11889 version_type=linux
11890 need_lib_prefix=no
11891 need_version=no
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 shlibpath_var=LD_LIBRARY_PATH
11895 ;;
11896
1cf3d07d
SE
11897freebsd* | dragonfly*)
11898 # DragonFly does not have aout. When/if they implement a new
11899 # versioning mechanism, adjust this.
11900 if test -x /usr/bin/objformat; then
11901 objformat=`/usr/bin/objformat`
11902 else
11903 case $host_os in
c6084f68 11904 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11905 *) objformat=elf ;;
11906 esac
11907 fi
11908 version_type=freebsd-$objformat
11909 case $version_type in
11910 freebsd-elf*)
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11912 need_version=no
11913 need_lib_prefix=no
11914 ;;
11915 freebsd-*)
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11917 need_version=yes
11918 ;;
11919 esac
11920 shlibpath_var=LD_LIBRARY_PATH
11921 case $host_os in
c6084f68 11922 freebsd2.*)
1cf3d07d
SE
11923 shlibpath_overrides_runpath=yes
11924 ;;
11925 freebsd3.[01]* | freebsdelf3.[01]*)
11926 shlibpath_overrides_runpath=yes
11927 hardcode_into_libs=yes
11928 ;;
11929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11931 shlibpath_overrides_runpath=no
11932 hardcode_into_libs=yes
11933 ;;
11934 *) # from 4.6 on, and DragonFly
11935 shlibpath_overrides_runpath=yes
11936 hardcode_into_libs=yes
11937 ;;
11938 esac
11939 ;;
11940
43e02a8a
RW
11941haiku*)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 dynamic_linker="$host_os runtime_loader"
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 shlibpath_var=LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11950 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11951 hardcode_into_libs=yes
11952 ;;
11953
1cf3d07d
SE
11954hpux9* | hpux10* | hpux11*)
11955 # Give a soname corresponding to the major version so that dld.sl refuses to
11956 # link against other versions.
11957 version_type=sunos
11958 need_lib_prefix=no
11959 need_version=no
11960 case $host_cpu in
11961 ia64*)
11962 shrext_cmds='.so'
11963 hardcode_into_libs=yes
11964 dynamic_linker="$host_os dld.so"
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 if test "X$HPUX_IA64_MODE" = X32; then
11970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11971 else
11972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11973 fi
11974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11975 ;;
11976 hppa*64*)
11977 shrext_cmds='.sl'
11978 hardcode_into_libs=yes
11979 dynamic_linker="$host_os dld.sl"
11980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11986 ;;
11987 *)
11988 shrext_cmds='.sl'
11989 dynamic_linker="$host_os dld.sl"
11990 shlibpath_var=SHLIB_PATH
11991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993 soname_spec='${libname}${release}${shared_ext}$major'
11994 ;;
11995 esac
43e02a8a 11996 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11997 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11998 # or fails outright, so override atomically:
11999 install_override_mode=555
1cf3d07d
SE
12000 ;;
12001
12002interix[3-9]*)
12003 version_type=linux
12004 need_lib_prefix=no
12005 need_version=no
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=no
12011 hardcode_into_libs=yes
12012 ;;
12013
12014irix5* | irix6* | nonstopux*)
12015 case $host_os in
12016 nonstopux*) version_type=nonstopux ;;
12017 *)
12018 if test "$lt_cv_prog_gnu_ld" = yes; then
12019 version_type=linux
12020 else
12021 version_type=irix
12022 fi ;;
12023 esac
12024 need_lib_prefix=no
12025 need_version=no
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12028 case $host_os in
12029 irix5* | nonstopux*)
12030 libsuff= shlibsuff=
12031 ;;
12032 *)
12033 case $LD in # libtool.m4 will add one of these switches to LD
12034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12035 libsuff= shlibsuff= libmagic=32-bit;;
12036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12037 libsuff=32 shlibsuff=N32 libmagic=N32;;
12038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12040 *) libsuff= shlibsuff= libmagic=never-match;;
12041 esac
12042 ;;
12043 esac
12044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12045 shlibpath_overrides_runpath=no
12046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12048 hardcode_into_libs=yes
12049 ;;
12050
12051# No shared lib support for Linux oldld, aout, or coff.
12052linux*oldld* | linux*aout* | linux*coff*)
12053 dynamic_linker=no
12054 ;;
12055
12056# This must be Linux ELF.
e9085da5
MR
12057
12058# uclinux* changes (here and below) have been submitted to the libtool
12059# project, but have not yet been accepted: they are GCC-local changes
12060# for the time being. (See
12061# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 12062linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
12063 version_type=linux
12064 need_lib_prefix=no
12065 need_version=no
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=no
baafc534 12071
1cf3d07d 12072 # Some binutils ld are patched to set DT_RUNPATH
22e05272 12073 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 12074 $as_echo_n "(cached) " >&6
baafc534
RW
12075else
12076 lt_cv_shlibpath_overrides_runpath=no
12077 save_LDFLAGS=$LDFLAGS
12078 save_libdir=$libdir
12079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12081 if test x$gcc_no_link = xyes; then
22e05272 12082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12083fi
5213506e 12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12085/* end confdefs.h. */
12086
12087int
12088main ()
12089{
12090
12091 ;
12092 return 0;
12093}
12094_ACEOF
5213506e
RW
12095if ac_fn_c_try_link "$LINENO"; then :
12096 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12097 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 12098fi
1cf3d07d 12099fi
5213506e
RW
12100rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12102 LDFLAGS=$save_LDFLAGS
12103 libdir=$save_libdir
12104
12105fi
12106
12107 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
12108
12109 # This implies no fast_install, which is unacceptable.
12110 # Some rework will be needed to allow for fast_install
12111 # before this can be enabled.
12112 hardcode_into_libs=yes
12113
12114 # Append ld.so.conf contents to the search path
12115 if test -f /etc/ld.so.conf; then
43e02a8a 12116 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
12117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12118 fi
12119
12120 # We used to test for /lib/ld.so.1 and disable shared libraries on
12121 # powerpc, because MkLinux only supported shared libraries with the
12122 # GNU dynamic linker. Since this was broken with cross compilers,
12123 # most powerpc-linux boxes support dynamic linking these days and
12124 # people can always --disable-shared, the test was removed, and we
12125 # assume the GNU/Linux dynamic linker is in use.
12126 dynamic_linker='GNU/Linux ld.so'
12127 ;;
12128
12129netbsd*)
12130 version_type=sunos
12131 need_lib_prefix=no
12132 need_version=no
12133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12136 dynamic_linker='NetBSD (a.out) ld.so'
12137 else
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 dynamic_linker='NetBSD ld.elf_so'
12141 fi
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12144 hardcode_into_libs=yes
12145 ;;
12146
12147newsos6)
12148 version_type=linux
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 shlibpath_overrides_runpath=yes
12152 ;;
12153
12154*nto* | *qnx*)
12155 version_type=qnx
12156 need_lib_prefix=no
12157 need_version=no
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 shlibpath_overrides_runpath=no
12162 hardcode_into_libs=yes
12163 dynamic_linker='ldqnx.so'
12164 ;;
12165
12166openbsd*)
12167 version_type=sunos
12168 sys_lib_dlsearch_path_spec="/usr/lib"
12169 need_lib_prefix=no
12170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12171 case $host_os in
12172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12173 *) need_version=no ;;
12174 esac
12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12179 case $host_os in
12180 openbsd2.[89] | openbsd2.[89].*)
12181 shlibpath_overrides_runpath=no
12182 ;;
12183 *)
12184 shlibpath_overrides_runpath=yes
12185 ;;
12186 esac
12187 else
12188 shlibpath_overrides_runpath=yes
12189 fi
12190 ;;
12191
12192os2*)
12193 libname_spec='$name'
12194 shrext_cmds=".dll"
12195 need_lib_prefix=no
12196 library_names_spec='$libname${shared_ext} $libname.a'
12197 dynamic_linker='OS/2 ld.exe'
12198 shlibpath_var=LIBPATH
12199 ;;
12200
12201osf3* | osf4* | osf5*)
12202 version_type=osf
12203 need_lib_prefix=no
12204 need_version=no
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12210 ;;
12211
12212rdos*)
12213 dynamic_linker=no
12214 ;;
12215
12216solaris*)
12217 version_type=linux
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12224 hardcode_into_libs=yes
12225 # ldd complains unless libraries are executable
12226 postinstall_cmds='chmod +x $lib'
12227 ;;
12228
12229sunos4*)
12230 version_type=sunos
12231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12235 if test "$with_gnu_ld" = yes; then
12236 need_lib_prefix=no
12237 fi
12238 need_version=yes
12239 ;;
12240
12241sysv4 | sysv4.3*)
12242 version_type=linux
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 case $host_vendor in
12247 sni)
12248 shlibpath_overrides_runpath=no
12249 need_lib_prefix=no
12250 runpath_var=LD_RUN_PATH
12251 ;;
12252 siemens)
12253 need_lib_prefix=no
12254 ;;
12255 motorola)
12256 need_lib_prefix=no
12257 need_version=no
12258 shlibpath_overrides_runpath=no
12259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12260 ;;
12261 esac
12262 ;;
12263
12264sysv4*MP*)
12265 if test -d /usr/nec ;then
12266 version_type=linux
12267 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12268 soname_spec='$libname${shared_ext}.$major'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 fi
12271 ;;
12272
12273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12274 version_type=freebsd-elf
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=yes
12281 hardcode_into_libs=yes
12282 if test "$with_gnu_ld" = yes; then
12283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12284 else
12285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12286 case $host_os in
12287 sco3.2v5*)
12288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12289 ;;
12290 esac
12291 fi
12292 sys_lib_dlsearch_path_spec='/usr/lib'
12293 ;;
12294
12295tpf*)
12296 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12297 version_type=linux
12298 need_lib_prefix=no
12299 need_version=no
d58dead8 12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12301 shlibpath_var=LD_LIBRARY_PATH
12302 shlibpath_overrides_runpath=no
12303 hardcode_into_libs=yes
12304 ;;
12305
12306uts4*)
12307 version_type=linux
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309 soname_spec='${libname}${release}${shared_ext}$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 ;;
12312
12313*)
12314 dynamic_linker=no
12315 ;;
12316esac
5213506e
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12318$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
12319test "$dynamic_linker" = no && can_build_shared=no
12320
12321variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12322if test "$GCC" = yes; then
12323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12324fi
12325
d58dead8
PG
12326if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12327 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12328fi
12329if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12330 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12331fi
12332
1cf3d07d
SE
12333
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
43e02a8a
RW
12413
12414
12415
12416
12417
1cf3d07d
SE
12418
12419
12420
12421
12422
12423
5213506e
RW
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12425$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12426hardcode_action=
12427if test -n "$hardcode_libdir_flag_spec" ||
12428 test -n "$runpath_var" ||
12429 test "X$hardcode_automatic" = "Xyes" ; then
12430
12431 # We can hardcode non-existent directories.
12432 if test "$hardcode_direct" != no &&
12433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12434 # have to relink, otherwise we might link with an installed library
12435 # when we should be linking with a yet-to-be-installed one
12436 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12437 test "$hardcode_minus_L" != no; then
12438 # Linking always hardcodes the temporary library directory.
12439 hardcode_action=relink
12440 else
12441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12442 hardcode_action=immediate
12443 fi
12444else
12445 # We cannot hardcode anything, or else we can only hardcode existing
12446 # directories.
12447 hardcode_action=unsupported
12448fi
5213506e
RW
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12450$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12451
12452if test "$hardcode_action" = relink ||
12453 test "$inherit_rpath" = yes; then
12454 # Fast installation is not supported
12455 enable_fast_install=no
12456elif test "$shlibpath_overrides_runpath" = yes ||
12457 test "$enable_shared" = no; then
12458 # Fast installation is not necessary
12459 enable_fast_install=needless
12460fi
12461
12462
12463
12464
12465
12466
12467 if test "x$enable_dlopen" != xyes; then
12468 enable_dlopen=unknown
12469 enable_dlopen_self=unknown
12470 enable_dlopen_self_static=unknown
12471else
12472 lt_cv_dlopen=no
12473 lt_cv_dlopen_libs=
12474
12475 case $host_os in
12476 beos*)
12477 lt_cv_dlopen="load_add_on"
12478 lt_cv_dlopen_libs=
12479 lt_cv_dlopen_self=yes
12480 ;;
12481
d58dead8 12482 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12483 lt_cv_dlopen="LoadLibrary"
12484 lt_cv_dlopen_libs=
12485 ;;
12486
12487 cygwin*)
12488 lt_cv_dlopen="dlopen"
12489 lt_cv_dlopen_libs=
12490 ;;
12491
12492 darwin*)
12493 # if libdl is installed we need to link against it
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12495$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12496if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12497 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12498else
12499 ac_check_lib_save_LIBS=$LIBS
12500LIBS="-ldl $LIBS"
12501if test x$gcc_no_link = xyes; then
22e05272 12502 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12503fi
5213506e 12504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12505/* end confdefs.h. */
12506
5213506e
RW
12507/* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12510#ifdef __cplusplus
12511extern "C"
12512#endif
1cf3d07d
SE
12513char dlopen ();
12514int
12515main ()
12516{
5213506e 12517return dlopen ();
1cf3d07d
SE
12518 ;
12519 return 0;
12520}
12521_ACEOF
5213506e 12522if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12523 ac_cv_lib_dl_dlopen=yes
12524else
5213506e 12525 ac_cv_lib_dl_dlopen=no
1cf3d07d 12526fi
5213506e
RW
12527rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12529LIBS=$ac_check_lib_save_LIBS
12530fi
5213506e
RW
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12532$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12533if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12535else
12536
12537 lt_cv_dlopen="dyld"
12538 lt_cv_dlopen_libs=
12539 lt_cv_dlopen_self=yes
12540
12541fi
12542
12543 ;;
12544
12545 *)
5213506e 12546 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12547if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
12548 lt_cv_dlopen="shl_load"
12549else
5213506e
RW
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12551$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12552if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 12553 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12554else
12555 ac_check_lib_save_LIBS=$LIBS
12556LIBS="-ldld $LIBS"
12557if test x$gcc_no_link = xyes; then
22e05272 12558 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12559fi
5213506e 12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12561/* end confdefs.h. */
12562
5213506e
RW
12563/* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12566#ifdef __cplusplus
12567extern "C"
12568#endif
1cf3d07d
SE
12569char shl_load ();
12570int
12571main ()
12572{
5213506e 12573return shl_load ();
1cf3d07d
SE
12574 ;
12575 return 0;
12576}
12577_ACEOF
5213506e 12578if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12579 ac_cv_lib_dld_shl_load=yes
12580else
5213506e 12581 ac_cv_lib_dld_shl_load=no
1cf3d07d 12582fi
5213506e
RW
12583rm -f core conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12585LIBS=$ac_check_lib_save_LIBS
12586fi
5213506e
RW
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12588$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12589if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d58dead8 12590 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12591else
5213506e 12592 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12593if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
12594 lt_cv_dlopen="dlopen"
12595else
5213506e
RW
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12597$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12598if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12599 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12600else
12601 ac_check_lib_save_LIBS=$LIBS
12602LIBS="-ldl $LIBS"
12603if test x$gcc_no_link = xyes; then
22e05272 12604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12605fi
5213506e 12606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12607/* end confdefs.h. */
12608
5213506e
RW
12609/* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12612#ifdef __cplusplus
12613extern "C"
12614#endif
1cf3d07d
SE
12615char dlopen ();
12616int
12617main ()
12618{
5213506e 12619return dlopen ();
1cf3d07d
SE
12620 ;
12621 return 0;
12622}
12623_ACEOF
5213506e 12624if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12625 ac_cv_lib_dl_dlopen=yes
12626else
5213506e 12627 ac_cv_lib_dl_dlopen=no
1cf3d07d 12628fi
5213506e
RW
12629rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12631LIBS=$ac_check_lib_save_LIBS
12632fi
5213506e
RW
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12634$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12635if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12637else
5213506e
RW
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12639$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12640if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 12641 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12642else
12643 ac_check_lib_save_LIBS=$LIBS
12644LIBS="-lsvld $LIBS"
12645if test x$gcc_no_link = xyes; then
22e05272 12646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12647fi
5213506e 12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12649/* end confdefs.h. */
12650
5213506e
RW
12651/* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12654#ifdef __cplusplus
12655extern "C"
12656#endif
1cf3d07d
SE
12657char dlopen ();
12658int
12659main ()
12660{
5213506e 12661return dlopen ();
1cf3d07d
SE
12662 ;
12663 return 0;
12664}
12665_ACEOF
5213506e 12666if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12667 ac_cv_lib_svld_dlopen=yes
12668else
5213506e 12669 ac_cv_lib_svld_dlopen=no
1cf3d07d 12670fi
5213506e
RW
12671rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12673LIBS=$ac_check_lib_save_LIBS
12674fi
5213506e
RW
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12676$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12677if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
12678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12679else
5213506e
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12681$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12682if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 12683 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12684else
12685 ac_check_lib_save_LIBS=$LIBS
12686LIBS="-ldld $LIBS"
12687if test x$gcc_no_link = xyes; then
22e05272 12688 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12689fi
5213506e 12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12691/* end confdefs.h. */
12692
5213506e
RW
12693/* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12696#ifdef __cplusplus
12697extern "C"
12698#endif
1cf3d07d
SE
12699char dld_link ();
12700int
12701main ()
12702{
5213506e 12703return dld_link ();
1cf3d07d
SE
12704 ;
12705 return 0;
12706}
12707_ACEOF
5213506e 12708if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12709 ac_cv_lib_dld_dld_link=yes
12710else
5213506e 12711 ac_cv_lib_dld_dld_link=no
1cf3d07d 12712fi
5213506e
RW
12713rm -f core conftest.err conftest.$ac_objext \
12714 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12715LIBS=$ac_check_lib_save_LIBS
12716fi
5213506e
RW
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12718$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12719if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d58dead8 12720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12721fi
12722
12723
12724fi
12725
12726
12727fi
12728
12729
12730fi
12731
12732
12733fi
12734
12735
12736fi
12737
12738 ;;
12739 esac
12740
12741 if test "x$lt_cv_dlopen" != xno; then
12742 enable_dlopen=yes
12743 else
12744 enable_dlopen=no
12745 fi
12746
12747 case $lt_cv_dlopen in
12748 dlopen)
12749 save_CPPFLAGS="$CPPFLAGS"
12750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12751
12752 save_LDFLAGS="$LDFLAGS"
12753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12754
12755 save_LIBS="$LIBS"
12756 LIBS="$lt_cv_dlopen_libs $LIBS"
12757
5213506e
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12759$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12760if ${lt_cv_dlopen_self+:} false; then :
5213506e 12761 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12762else
12763 if test "$cross_compiling" = yes; then :
12764 lt_cv_dlopen_self=cross
12765else
12766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12767 lt_status=$lt_dlunknown
12768 cat > conftest.$ac_ext <<_LT_EOF
49ad4d2c 12769#line 12769 "configure"
1cf3d07d
SE
12770#include "confdefs.h"
12771
12772#if HAVE_DLFCN_H
12773#include <dlfcn.h>
12774#endif
12775
12776#include <stdio.h>
12777
12778#ifdef RTLD_GLOBAL
12779# define LT_DLGLOBAL RTLD_GLOBAL
12780#else
12781# ifdef DL_GLOBAL
12782# define LT_DLGLOBAL DL_GLOBAL
12783# else
12784# define LT_DLGLOBAL 0
12785# endif
12786#endif
12787
12788/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12789 find out it does not work in some platform. */
12790#ifndef LT_DLLAZY_OR_NOW
12791# ifdef RTLD_LAZY
12792# define LT_DLLAZY_OR_NOW RTLD_LAZY
12793# else
12794# ifdef DL_LAZY
12795# define LT_DLLAZY_OR_NOW DL_LAZY
12796# else
12797# ifdef RTLD_NOW
12798# define LT_DLLAZY_OR_NOW RTLD_NOW
12799# else
12800# ifdef DL_NOW
12801# define LT_DLLAZY_OR_NOW DL_NOW
12802# else
12803# define LT_DLLAZY_OR_NOW 0
12804# endif
12805# endif
12806# endif
12807# endif
12808#endif
12809
43e02a8a
RW
12810/* When -fvisbility=hidden is used, assume the code has been annotated
12811 correspondingly for the symbols needed. */
12812#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12813void fnord () __attribute__((visibility("default")));
12814#endif
12815
12816void fnord () { int i=42; }
1cf3d07d
SE
12817int main ()
12818{
12819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12820 int status = $lt_dlunknown;
12821
12822 if (self)
12823 {
12824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12825 else
12826 {
12827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828 else puts (dlerror ());
12829 }
1cf3d07d
SE
12830 /* dlclose (self); */
12831 }
12832 else
12833 puts (dlerror ());
12834
d58dead8 12835 return status;
1cf3d07d
SE
12836}
12837_LT_EOF
5213506e 12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12839 (eval $ac_link) 2>&5
12840 ac_status=$?
5213506e
RW
12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12843 (./conftest; exit; ) >&5 2>/dev/null
12844 lt_status=$?
12845 case x$lt_status in
12846 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12847 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12848 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12849 esac
12850 else :
12851 # compilation failed
12852 lt_cv_dlopen_self=no
12853 fi
12854fi
12855rm -fr conftest*
12856
12857
12858fi
5213506e
RW
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12860$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12861
12862 if test "x$lt_cv_dlopen_self" = xyes; then
12863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12865$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12866if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 12867 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12868else
12869 if test "$cross_compiling" = yes; then :
12870 lt_cv_dlopen_self_static=cross
12871else
12872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873 lt_status=$lt_dlunknown
12874 cat > conftest.$ac_ext <<_LT_EOF
49ad4d2c 12875#line 12875 "configure"
1cf3d07d
SE
12876#include "confdefs.h"
12877
12878#if HAVE_DLFCN_H
12879#include <dlfcn.h>
12880#endif
12881
12882#include <stdio.h>
12883
12884#ifdef RTLD_GLOBAL
12885# define LT_DLGLOBAL RTLD_GLOBAL
12886#else
12887# ifdef DL_GLOBAL
12888# define LT_DLGLOBAL DL_GLOBAL
12889# else
12890# define LT_DLGLOBAL 0
12891# endif
12892#endif
12893
12894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895 find out it does not work in some platform. */
12896#ifndef LT_DLLAZY_OR_NOW
12897# ifdef RTLD_LAZY
12898# define LT_DLLAZY_OR_NOW RTLD_LAZY
12899# else
12900# ifdef DL_LAZY
12901# define LT_DLLAZY_OR_NOW DL_LAZY
12902# else
12903# ifdef RTLD_NOW
12904# define LT_DLLAZY_OR_NOW RTLD_NOW
12905# else
12906# ifdef DL_NOW
12907# define LT_DLLAZY_OR_NOW DL_NOW
12908# else
12909# define LT_DLLAZY_OR_NOW 0
12910# endif
12911# endif
12912# endif
12913# endif
12914#endif
12915
43e02a8a
RW
12916/* When -fvisbility=hidden is used, assume the code has been annotated
12917 correspondingly for the symbols needed. */
12918#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12919void fnord () __attribute__((visibility("default")));
12920#endif
12921
12922void fnord () { int i=42; }
1cf3d07d
SE
12923int main ()
12924{
12925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12926 int status = $lt_dlunknown;
12927
12928 if (self)
12929 {
12930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12931 else
12932 {
12933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 else puts (dlerror ());
12935 }
1cf3d07d
SE
12936 /* dlclose (self); */
12937 }
12938 else
12939 puts (dlerror ());
12940
d58dead8 12941 return status;
1cf3d07d
SE
12942}
12943_LT_EOF
5213506e 12944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12945 (eval $ac_link) 2>&5
12946 ac_status=$?
5213506e
RW
12947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12949 (./conftest; exit; ) >&5 2>/dev/null
12950 lt_status=$?
12951 case x$lt_status in
12952 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12953 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12954 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12955 esac
12956 else :
12957 # compilation failed
12958 lt_cv_dlopen_self_static=no
12959 fi
12960fi
12961rm -fr conftest*
12962
12963
12964fi
5213506e
RW
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12966$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12967 fi
12968
12969 CPPFLAGS="$save_CPPFLAGS"
12970 LDFLAGS="$save_LDFLAGS"
12971 LIBS="$save_LIBS"
12972 ;;
12973 esac
12974
12975 case $lt_cv_dlopen_self in
12976 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12977 *) enable_dlopen_self=unknown ;;
12978 esac
12979
12980 case $lt_cv_dlopen_self_static in
12981 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12982 *) enable_dlopen_self_static=unknown ;;
12983 esac
12984fi
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002striplib=
13003old_striplib=
5213506e
RW
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13005$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
13006if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13010$as_echo "yes" >&6; }
1cf3d07d
SE
13011else
13012# FIXME - insert some real tests, host_os isn't really good enough
13013 case $host_os in
13014 darwin*)
13015 if test -n "$STRIP" ; then
13016 striplib="$STRIP -x"
13017 old_striplib="$STRIP -S"
5213506e
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019$as_echo "yes" >&6; }
1cf3d07d 13020 else
5213506e
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022$as_echo "no" >&6; }
1cf3d07d
SE
13023 fi
13024 ;;
13025 *)
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
1cf3d07d
SE
13028 ;;
13029 esac
13030fi
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
43e02a8a
RW
13043 # Report which library types will actually be built
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13045$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13047$as_echo "$can_build_shared" >&6; }
1cf3d07d 13048
43e02a8a
RW
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13050$as_echo_n "checking whether to build shared libraries... " >&6; }
13051 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 13052
43e02a8a
RW
13053 # On AIX, shared libraries and static libraries use the same namespace, and
13054 # are all built from PIC.
13055 case $host_os in
13056 aix3*)
13057 test "$enable_shared" = yes && enable_static=no
13058 if test -n "$RANLIB"; then
13059 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13060 postinstall_cmds='$RANLIB $lib'
13061 fi
13062 ;;
1cf3d07d 13063
43e02a8a
RW
13064 aix[4-9]*)
13065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13066 test "$enable_shared" = yes && enable_static=no
13067 fi
13068 ;;
13069 esac
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13071$as_echo "$enable_shared" >&6; }
1cf3d07d 13072
43e02a8a
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13074$as_echo_n "checking whether to build static libraries... " >&6; }
13075 # Make sure either enable_shared or enable_static is yes.
13076 test "$enable_shared" = yes || enable_static=yes
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13078$as_echo "$enable_static" >&6; }
1cf3d07d 13079
1cf3d07d 13080
1cf3d07d 13081
1cf3d07d
SE
13082
13083fi
1cf3d07d
SE
13084ac_ext=c
13085ac_cpp='$CPP $CPPFLAGS'
13086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089
43e02a8a
RW
13090CC="$lt_save_CC"
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 ac_config_commands="$ac_config_commands libtool"
13105
13106
13107
13108
13109# Only expand once:
13110
13111
9b025925
IS
13112LIBM=
13113case $host in
13114*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13115 # These system don't have libm, or don't need it
13116 ;;
13117*-ncr-sysv4.3*)
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13119$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13120if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 ac_check_lib_save_LIBS=$LIBS
13124LIBS="-lmw $LIBS"
13125if test x$gcc_no_link = xyes; then
13126 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13127fi
13128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h. */
13130
13131/* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13134#ifdef __cplusplus
13135extern "C"
13136#endif
13137char _mwvalidcheckl ();
13138int
13139main ()
13140{
13141return _mwvalidcheckl ();
13142 ;
13143 return 0;
13144}
13145_ACEOF
13146if ac_fn_c_try_link "$LINENO"; then :
13147 ac_cv_lib_mw__mwvalidcheckl=yes
13148else
13149 ac_cv_lib_mw__mwvalidcheckl=no
13150fi
13151rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153LIBS=$ac_check_lib_save_LIBS
13154fi
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13156$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13157if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13158 LIBM="-lmw"
13159fi
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13162$as_echo_n "checking for cos in -lm... " >&6; }
13163if ${ac_cv_lib_m_cos+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165else
13166 ac_check_lib_save_LIBS=$LIBS
13167LIBS="-lm $LIBS"
13168if test x$gcc_no_link = xyes; then
13169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13170fi
13171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172/* end confdefs.h. */
13173
13174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177#ifdef __cplusplus
13178extern "C"
13179#endif
13180char cos ();
13181int
13182main ()
13183{
13184return cos ();
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_lib_m_cos=yes
13191else
13192 ac_cv_lib_m_cos=no
13193fi
13194rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196LIBS=$ac_check_lib_save_LIBS
13197fi
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13199$as_echo "$ac_cv_lib_m_cos" >&6; }
13200if test "x$ac_cv_lib_m_cos" = xyes; then :
13201 LIBM="$LIBM -lm"
13202fi
13203
13204 ;;
13205*)
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13207$as_echo_n "checking for cos in -lm... " >&6; }
13208if ${ac_cv_lib_m_cos+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210else
13211 ac_check_lib_save_LIBS=$LIBS
13212LIBS="-lm $LIBS"
13213if test x$gcc_no_link = xyes; then
13214 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13215fi
13216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217/* end confdefs.h. */
13218
13219/* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222#ifdef __cplusplus
13223extern "C"
13224#endif
13225char cos ();
13226int
13227main ()
13228{
13229return cos ();
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234if ac_fn_c_try_link "$LINENO"; then :
13235 ac_cv_lib_m_cos=yes
13236else
13237 ac_cv_lib_m_cos=no
13238fi
13239rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241LIBS=$ac_check_lib_save_LIBS
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13244$as_echo "$ac_cv_lib_m_cos" >&6; }
13245if test "x$ac_cv_lib_m_cos" = xyes; then :
13246 LIBM="-lm"
13247fi
13248
13249 ;;
13250esac
13251
13252
43e02a8a
RW
13253
13254
7de6ba7a
DK
13255
13256case $host in
13257 *-cygwin* | *-mingw*)
13258 # 'host' will be top-level target in the case of a target lib,
13259 # we must compare to with_cross_host to decide if this is a native
13260 # or cross-compiler and select where to install dlls appropriately.
13261 if test -n "$with_cross_host" &&
13262 test x"$with_cross_host" != x"no"; then
13263 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13264 else
13265 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13266 fi
13267 ;;
13268 *)
13269 lt_host_flags=
13270 ;;
13271esac
13272
13273
13274
13275
13276
43e02a8a 13277#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 13278
43e02a8a
RW
13279# We need gfortran to compile parts of the library
13280#AC_PROG_FC(gfortran)
13281FC="$GFORTRAN"
5213506e
RW
13282ac_ext=${ac_fc_srcext-f}
13283ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13284ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13285ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13286if test -n "$ac_tool_prefix"; then
43e02a8a 13287 for ac_prog in gfortran
1cf3d07d
SE
13288 do
13289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13293if ${ac_cv_prog_FC+:} false; then :
5213506e 13294 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13295else
13296 if test -n "$FC"; then
13297 ac_cv_prog_FC="$FC" # Let the user override the test.
13298else
13299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300for as_dir in $PATH
13301do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
5213506e 13304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13306 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13308 break 2
13309 fi
13310done
5213506e
RW
13311 done
13312IFS=$as_save_IFS
1cf3d07d
SE
13313
13314fi
13315fi
13316FC=$ac_cv_prog_FC
13317if test -n "$FC"; then
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13319$as_echo "$FC" >&6; }
1cf3d07d 13320else
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
1cf3d07d
SE
13323fi
13324
5213506e 13325
1cf3d07d
SE
13326 test -n "$FC" && break
13327 done
13328fi
13329if test -z "$FC"; then
13330 ac_ct_FC=$FC
43e02a8a 13331 for ac_prog in gfortran
1cf3d07d
SE
13332do
13333 # Extract the first word of "$ac_prog", so it can be a program name with args.
13334set dummy $ac_prog; ac_word=$2
5213506e
RW
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13337if ${ac_cv_prog_ac_ct_FC+:} false; then :
5213506e 13338 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13339else
13340 if test -n "$ac_ct_FC"; then
13341 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13342else
13343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
5213506e 13348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13350 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13352 break 2
13353 fi
13354done
5213506e
RW
13355 done
13356IFS=$as_save_IFS
1cf3d07d
SE
13357
13358fi
13359fi
13360ac_ct_FC=$ac_cv_prog_ac_ct_FC
13361if test -n "$ac_ct_FC"; then
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13363$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 13364else
5213506e
RW
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366$as_echo "no" >&6; }
1cf3d07d
SE
13367fi
13368
5213506e 13369
1cf3d07d 13370 test -n "$ac_ct_FC" && break
38d24731
RW
13371done
13372
5213506e
RW
13373 if test "x$ac_ct_FC" = x; then
13374 FC=""
13375 else
13376 case $cross_compiling:$ac_tool_warned in
13377yes:)
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13380ac_tool_warned=yes ;;
13381esac
13382 FC=$ac_ct_FC
13383 fi
1cf3d07d
SE
13384fi
13385
13386
13387# Provide some information about the compiler.
5213506e
RW
13388$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13389set X $ac_compile
13390ac_compiler=$2
13391for ac_option in --version -v -V -qversion; do
13392 { { ac_try="$ac_compiler $ac_option >&5"
13393case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13398$as_echo "$ac_try_echo"; } >&5
13399 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 13400 ac_status=$?
5213506e
RW
13401 if test -s conftest.err; then
13402 sed '10a\
13403... rest of stderr output deleted ...
13404 10q' conftest.err >conftest.er1
13405 cat conftest.er1 >&5
5213506e 13406 fi
22e05272 13407 rm -f conftest.er1 conftest.err
5213506e
RW
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410done
1cf3d07d
SE
13411rm -f a.out
13412
13413# If we don't use `.F' as extension, the preprocessor is not run on the
13414# input file. (Note that this only needs to work for GNU compilers.)
13415ac_save_ext=$ac_ext
13416ac_ext=F
5213506e
RW
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13418$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
22e05272 13419if ${ac_cv_fc_compiler_gnu+:} false; then :
5213506e 13420 $as_echo_n "(cached) " >&6
1cf3d07d 13421else
5213506e 13422 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13423 program main
13424#ifndef __GNUC__
13425 choke me
13426#endif
13427
13428 end
13429_ACEOF
5213506e 13430if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13431 ac_compiler_gnu=yes
13432else
5213506e 13433 ac_compiler_gnu=no
1cf3d07d 13434fi
5213506e 13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13436ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13437
13438fi
5213506e
RW
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13440$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 13441ac_ext=$ac_save_ext
5213506e
RW
13442ac_test_FCFLAGS=${FCFLAGS+set}
13443ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 13444FCFLAGS=
5213506e
RW
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13446$as_echo_n "checking whether $FC accepts -g... " >&6; }
22e05272 13447if ${ac_cv_prog_fc_g+:} false; then :
5213506e 13448 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13449else
13450 FCFLAGS=-g
5213506e 13451cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13452 program main
13453
13454 end
13455_ACEOF
5213506e 13456if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13457 ac_cv_prog_fc_g=yes
13458else
5213506e 13459 ac_cv_prog_fc_g=no
1cf3d07d 13460fi
5213506e 13461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13462
13463fi
5213506e
RW
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13465$as_echo "$ac_cv_prog_fc_g" >&6; }
13466if test "$ac_test_FCFLAGS" = set; then
13467 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
13468elif test $ac_cv_prog_fc_g = yes; then
13469 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13470 FCFLAGS="-g -O2"
13471 else
13472 FCFLAGS="-g"
13473 fi
13474else
13475 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13476 FCFLAGS="-O2"
13477 else
13478 FCFLAGS=
13479 fi
13480fi
13481
22e05272
JM
13482if test $ac_compiler_gnu = yes; then
13483 GFC=yes
13484else
13485 GFC=
13486fi
1cf3d07d
SE
13487ac_ext=c
13488ac_cpp='$CPP $CPPFLAGS'
13489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13491ac_compiler_gnu=$ac_cv_c_compiler_gnu
13492
5213506e
RW
13493 ac_ext=${ac_fc_srcext-f}
13494ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13495ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13496ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13497
13498
43e02a8a
RW
13499if test -z "$FC" || test "X$FC" = "Xno"; then
13500 _lt_disable_FC=yes
13501fi
13502
1cf3d07d
SE
13503archive_cmds_need_lc_FC=no
13504allow_undefined_flag_FC=
13505always_export_symbols_FC=no
13506archive_expsym_cmds_FC=
13507export_dynamic_flag_spec_FC=
13508hardcode_direct_FC=no
13509hardcode_direct_absolute_FC=no
13510hardcode_libdir_flag_spec_FC=
13511hardcode_libdir_flag_spec_ld_FC=
13512hardcode_libdir_separator_FC=
13513hardcode_minus_L_FC=no
13514hardcode_automatic_FC=no
13515inherit_rpath_FC=no
13516module_cmds_FC=
13517module_expsym_cmds_FC=
13518link_all_deplibs_FC=unknown
13519old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13520reload_flag_FC=$reload_flag
13521reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13522no_undefined_flag_FC=
13523whole_archive_flag_spec_FC=
13524enable_shared_with_static_runtimes_FC=no
13525
13526# Source file extension for fc test sources.
13527ac_ext=${ac_fc_srcext-f}
13528
13529# Object file extension for compiled fc test sources.
13530objext=o
13531objext_FC=$objext
13532
13533# No sense in running all these tests if we already determined that
13534# the FC compiler isn't working. Some variables (like enable_shared)
13535# are currently assumed to apply to all compilers on this platform,
13536# and will be corrupted by setting them based on a non-working compiler.
13537if test "$_lt_disable_FC" != yes; then
13538 # Code to be used in simple compile tests
13539 lt_simple_compile_test_code="\
13540 subroutine t
13541 return
13542 end
13543"
13544
13545 # Code to be used in simple link tests
13546 lt_simple_link_test_code="\
13547 program t
13548 end
13549"
13550
13551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13552
13553
13554
13555
13556
13557
13558# If no C compiler was specified, use CC.
13559LTCC=${LTCC-"$CC"}
13560
13561# If no C compiler flags were specified, use CFLAGS.
13562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13563
13564# Allow CC to be a program name with arguments.
13565compiler=$CC
13566
13567
13568 # save warnings/boilerplate of simple test code
13569 ac_outfile=conftest.$ac_objext
13570echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13572_lt_compiler_boilerplate=`cat conftest.err`
13573$RM conftest*
13574
13575 ac_outfile=conftest.$ac_objext
13576echo "$lt_simple_link_test_code" >conftest.$ac_ext
13577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13578_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13579$RM -r conftest*
1cf3d07d
SE
13580
13581
13582 # Allow CC to be a program name with arguments.
13583 lt_save_CC="$CC"
d58dead8 13584 lt_save_GCC=$GCC
1cf3d07d
SE
13585 CC=${FC-"f95"}
13586 compiler=$CC
d58dead8
PG
13587 GCC=$ac_cv_fc_compiler_gnu
13588
1cf3d07d
SE
13589 compiler_FC=$CC
13590 for cc_temp in $compiler""; do
13591 case $cc_temp in
13592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13594 \-*) ;;
13595 *) break;;
13596 esac
13597done
43e02a8a 13598cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13599
13600
13601 if test -n "$compiler"; then
5213506e
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13603$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13605$as_echo "$can_build_shared" >&6; }
1cf3d07d 13606
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13608$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13609 test "$can_build_shared" = "no" && enable_shared=no
13610
13611 # On AIX, shared libraries and static libraries use the same namespace, and
13612 # are all built from PIC.
13613 case $host_os in
13614 aix3*)
13615 test "$enable_shared" = yes && enable_static=no
13616 if test -n "$RANLIB"; then
13617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13618 postinstall_cmds='$RANLIB $lib'
13619 fi
13620 ;;
4f6bebc3 13621 aix[4-9]*)
1cf3d07d
SE
13622 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13623 test "$enable_shared" = yes && enable_static=no
13624 fi
13625 ;;
13626 esac
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13628$as_echo "$enable_shared" >&6; }
1cf3d07d 13629
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13631$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13632 # Make sure either enable_shared or enable_static is yes.
13633 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13635$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13636
13637 GCC_FC="$ac_cv_fc_compiler_gnu"
13638 LD_FC="$LD"
13639
13640 ## CAVEAT EMPTOR:
13641 ## There is no encapsulation within the following macros, do not change
13642 ## the running order or otherwise move them around unless you know exactly
13643 ## what you are doing...
13644 # Dependencies to place before and after the object being linked:
13645predep_objects_FC=
13646postdep_objects_FC=
13647predeps_FC=
13648postdeps_FC=
13649compiler_lib_search_path_FC=
13650
13651cat > conftest.$ac_ext <<_LT_EOF
13652 subroutine foo
13653 implicit none
13654 integer a
13655 a=0
13656 return
13657 end
13658_LT_EOF
13659
5213506e 13660if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
5213506e
RW
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
1cf3d07d
SE
13665 # Parse the compiler output and extract the necessary
13666 # objects, libraries and library flags.
13667
13668 # Sentinel used to keep track of whether or not we are before
13669 # the conftest object file.
13670 pre_test_object_deps_done=no
13671
d58dead8 13672 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13673 case $p in
13674
13675 -L* | -R* | -l*)
13676 # Some compilers place space between "-{L,R}" and the path.
13677 # Remove the space.
13678 if test $p = "-L" ||
13679 test $p = "-R"; then
13680 prev=$p
13681 continue
13682 else
13683 prev=
13684 fi
13685
13686 if test "$pre_test_object_deps_done" = no; then
13687 case $p in
13688 -L* | -R*)
13689 # Internal compiler library paths should come after those
13690 # provided the user. The postdeps already come after the
13691 # user supplied libs so there is no need to process them.
13692 if test -z "$compiler_lib_search_path_FC"; then
13693 compiler_lib_search_path_FC="${prev}${p}"
13694 else
13695 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13696 fi
13697 ;;
13698 # The "-l" case would never come before the object being
13699 # linked, so don't bother handling this case.
13700 esac
13701 else
13702 if test -z "$postdeps_FC"; then
13703 postdeps_FC="${prev}${p}"
13704 else
13705 postdeps_FC="${postdeps_FC} ${prev}${p}"
13706 fi
13707 fi
13708 ;;
13709
13710 *.$objext)
13711 # This assumes that the test object file only shows up
13712 # once in the compiler output.
13713 if test "$p" = "conftest.$objext"; then
13714 pre_test_object_deps_done=yes
13715 continue
13716 fi
13717
13718 if test "$pre_test_object_deps_done" = no; then
13719 if test -z "$predep_objects_FC"; then
13720 predep_objects_FC="$p"
13721 else
13722 predep_objects_FC="$predep_objects_FC $p"
13723 fi
13724 else
13725 if test -z "$postdep_objects_FC"; then
13726 postdep_objects_FC="$p"
13727 else
13728 postdep_objects_FC="$postdep_objects_FC $p"
13729 fi
13730 fi
13731 ;;
13732
13733 *) ;; # Ignore the rest.
13734
13735 esac
13736 done
13737
13738 # Clean up.
13739 rm -f a.out a.exe
13740else
13741 echo "libtool.m4: error: problem compiling FC test program"
13742fi
13743
13744$RM -f confest.$objext
13745
13746# PORTME: override above test on systems where it is broken
13747
13748
13749case " $postdeps_FC " in
13750*" -lc "*) archive_cmds_need_lc_FC=no ;;
13751esac
d58dead8
PG
13752 compiler_lib_search_dirs_FC=
13753if test -n "${compiler_lib_search_path_FC}"; then
13754 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13755fi
13756
13757
13758
13759
13760
1cf3d07d
SE
13761
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 lt_prog_compiler_wl_FC=
13788lt_prog_compiler_pic_FC=
13789lt_prog_compiler_static_FC=
13790
5213506e
RW
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13792$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13793
13794 if test "$GCC" = yes; then
13795 lt_prog_compiler_wl_FC='-Wl,'
13796 lt_prog_compiler_static_FC='-static'
13797
13798 case $host_os in
13799 aix*)
13800 # All AIX code is PIC.
13801 if test "$host_cpu" = ia64; then
13802 # AIX 5 now supports IA64 processor
13803 lt_prog_compiler_static_FC='-Bstatic'
13804 fi
bad8a4a7 13805 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13806 ;;
13807
13808 amigaos*)
d58dead8
PG
13809 case $host_cpu in
13810 powerpc)
13811 # see comment about AmigaOS4 .so support
13812 lt_prog_compiler_pic_FC='-fPIC'
13813 ;;
13814 m68k)
13815 # FIXME: we need at least 68020 code to build shared libraries, but
13816 # adding the `-m68020' flag to GCC prevents building anything better,
13817 # like `-m68040'.
13818 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13819 ;;
13820 esac
1cf3d07d
SE
13821 ;;
13822
13823 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13824 # PIC is the default for these OSes.
13825 ;;
13826
d58dead8 13827 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13828 # This hack is so that the source file can tell whether it is being
13829 # built for inclusion in a dll (and should export symbols for example).
13830 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13831 # (--disable-auto-import) libraries
13832 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13833 ;;
13834
13835 darwin* | rhapsody*)
13836 # PIC is the default on this platform
13837 # Common symbols not allowed in MH_DYLIB files
13838 lt_prog_compiler_pic_FC='-fno-common'
13839 ;;
13840
43e02a8a
RW
13841 haiku*)
13842 # PIC is the default for Haiku.
13843 # The "-static" flag exists, but is broken.
13844 lt_prog_compiler_static_FC=
13845 ;;
13846
1cf3d07d 13847 hpux*)
d58dead8
PG
13848 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13849 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13850 # sets the default TLS model and affects inlining.
1cf3d07d 13851 case $host_cpu in
d58dead8 13852 hppa*64*)
1cf3d07d
SE
13853 # +Z the default
13854 ;;
13855 *)
13856 lt_prog_compiler_pic_FC='-fPIC'
13857 ;;
13858 esac
13859 ;;
13860
13861 interix[3-9]*)
13862 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13863 # Instead, we relocate shared libraries at runtime.
13864 ;;
13865
13866 msdosdjgpp*)
13867 # Just because we use GCC doesn't mean we suddenly get shared libraries
13868 # on systems that don't support them.
13869 lt_prog_compiler_can_build_shared_FC=no
13870 enable_shared=no
13871 ;;
13872
13873 *nto* | *qnx*)
13874 # QNX uses GNU C++, but need to define -shared option too, otherwise
13875 # it will coredump.
13876 lt_prog_compiler_pic_FC='-fPIC -shared'
13877 ;;
13878
13879 sysv4*MP*)
13880 if test -d /usr/nec; then
13881 lt_prog_compiler_pic_FC=-Kconform_pic
13882 fi
13883 ;;
13884
13885 *)
13886 lt_prog_compiler_pic_FC='-fPIC'
13887 ;;
13888 esac
43e02a8a
RW
13889
13890 case $cc_basename in
13891 nvcc*) # Cuda Compiler Driver 2.2
13892 lt_prog_compiler_wl_FC='-Xlinker '
13893 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13894 ;;
13895 esac
1cf3d07d
SE
13896 else
13897 # PORTME Check for flag to pass linker flags through the system compiler.
13898 case $host_os in
13899 aix*)
13900 lt_prog_compiler_wl_FC='-Wl,'
13901 if test "$host_cpu" = ia64; then
13902 # AIX 5 now supports IA64 processor
13903 lt_prog_compiler_static_FC='-Bstatic'
13904 else
13905 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13906 fi
13907 ;;
1cf3d07d 13908
d58dead8 13909 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13910 # This hack is so that the source file can tell whether it is being
13911 # built for inclusion in a dll (and should export symbols for example).
13912 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13913 ;;
13914
13915 hpux9* | hpux10* | hpux11*)
13916 lt_prog_compiler_wl_FC='-Wl,'
13917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13918 # not for PA HP-UX.
13919 case $host_cpu in
13920 hppa*64*|ia64*)
13921 # +Z the default
13922 ;;
13923 *)
13924 lt_prog_compiler_pic_FC='+Z'
13925 ;;
13926 esac
13927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13928 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13929 ;;
13930
13931 irix5* | irix6* | nonstopux*)
13932 lt_prog_compiler_wl_FC='-Wl,'
13933 # PIC (with -KPIC) is the default.
13934 lt_prog_compiler_static_FC='-non_shared'
13935 ;;
13936
7a9d3fe8 13937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13938 case $cc_basename in
d58dead8
PG
13939 # old Intel for x86_64 which still supported -KPIC.
13940 ecc*)
1cf3d07d
SE
13941 lt_prog_compiler_wl_FC='-Wl,'
13942 lt_prog_compiler_pic_FC='-KPIC'
13943 lt_prog_compiler_static_FC='-static'
13944 ;;
d58dead8
PG
13945 # icc used to be incompatible with GCC.
13946 # ICC 10 doesn't accept -KPIC any more.
13947 icc* | ifort*)
13948 lt_prog_compiler_wl_FC='-Wl,'
13949 lt_prog_compiler_pic_FC='-fPIC'
13950 lt_prog_compiler_static_FC='-static'
13951 ;;
13952 # Lahey Fortran 8.1.
13953 lf95*)
13954 lt_prog_compiler_wl_FC='-Wl,'
13955 lt_prog_compiler_pic_FC='--shared'
13956 lt_prog_compiler_static_FC='--static'
13957 ;;
43e02a8a 13958 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13959 # Portland Group compilers (*not* the Pentium gcc compiler,
13960 # which looks to be a dead project)
13961 lt_prog_compiler_wl_FC='-Wl,'
13962 lt_prog_compiler_pic_FC='-fpic'
13963 lt_prog_compiler_static_FC='-Bstatic'
13964 ;;
13965 ccc*)
13966 lt_prog_compiler_wl_FC='-Wl,'
13967 # All Alpha code is PIC.
13968 lt_prog_compiler_static_FC='-non_shared'
13969 ;;
43e02a8a
RW
13970 xl* | bgxl* | bgf* | mpixl*)
13971 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13972 lt_prog_compiler_wl_FC='-Wl,'
13973 lt_prog_compiler_pic_FC='-qpic'
13974 lt_prog_compiler_static_FC='-qstaticlink'
13975 ;;
1cf3d07d
SE
13976 *)
13977 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13978 *Sun\ F* | *Sun*Fortran*)
13979 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13980 lt_prog_compiler_pic_FC='-KPIC'
13981 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13982 lt_prog_compiler_wl_FC=''
1cf3d07d 13983 ;;
43e02a8a
RW
13984 *Sun\ C*)
13985 # Sun C 5.9
1cf3d07d
SE
13986 lt_prog_compiler_pic_FC='-KPIC'
13987 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13988 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13989 ;;
13990 esac
13991 ;;
13992 esac
13993 ;;
13994
13995 newsos6)
13996 lt_prog_compiler_pic_FC='-KPIC'
13997 lt_prog_compiler_static_FC='-Bstatic'
13998 ;;
13999
14000 *nto* | *qnx*)
14001 # QNX uses GNU C++, but need to define -shared option too, otherwise
14002 # it will coredump.
14003 lt_prog_compiler_pic_FC='-fPIC -shared'
14004 ;;
14005
14006 osf3* | osf4* | osf5*)
14007 lt_prog_compiler_wl_FC='-Wl,'
14008 # All OSF/1 code is PIC.
14009 lt_prog_compiler_static_FC='-non_shared'
14010 ;;
14011
14012 rdos*)
14013 lt_prog_compiler_static_FC='-non_shared'
14014 ;;
14015
14016 solaris*)
14017 lt_prog_compiler_pic_FC='-KPIC'
14018 lt_prog_compiler_static_FC='-Bstatic'
14019 case $cc_basename in
14020 f77* | f90* | f95*)
14021 lt_prog_compiler_wl_FC='-Qoption ld ';;
14022 *)
14023 lt_prog_compiler_wl_FC='-Wl,';;
14024 esac
14025 ;;
14026
14027 sunos4*)
14028 lt_prog_compiler_wl_FC='-Qoption ld '
14029 lt_prog_compiler_pic_FC='-PIC'
14030 lt_prog_compiler_static_FC='-Bstatic'
14031 ;;
14032
14033 sysv4 | sysv4.2uw2* | sysv4.3*)
14034 lt_prog_compiler_wl_FC='-Wl,'
14035 lt_prog_compiler_pic_FC='-KPIC'
14036 lt_prog_compiler_static_FC='-Bstatic'
14037 ;;
14038
14039 sysv4*MP*)
14040 if test -d /usr/nec ;then
14041 lt_prog_compiler_pic_FC='-Kconform_pic'
14042 lt_prog_compiler_static_FC='-Bstatic'
14043 fi
14044 ;;
14045
14046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14047 lt_prog_compiler_wl_FC='-Wl,'
14048 lt_prog_compiler_pic_FC='-KPIC'
14049 lt_prog_compiler_static_FC='-Bstatic'
14050 ;;
14051
14052 unicos*)
14053 lt_prog_compiler_wl_FC='-Wl,'
14054 lt_prog_compiler_can_build_shared_FC=no
14055 ;;
14056
14057 uts4*)
14058 lt_prog_compiler_pic_FC='-pic'
14059 lt_prog_compiler_static_FC='-Bstatic'
14060 ;;
14061
14062 *)
14063 lt_prog_compiler_can_build_shared_FC=no
14064 ;;
14065 esac
14066 fi
14067
14068case $host_os in
14069 # For platforms which do not support PIC, -DPIC is meaningless:
14070 *djgpp*)
14071 lt_prog_compiler_pic_FC=
14072 ;;
14073 *)
14074 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14075 ;;
14076esac
5213506e
RW
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
14078$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
14079
14080
14081
14082#
14083# Check to make sure the PIC flag actually works.
14084#
14085if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14087$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22e05272 14088if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
5213506e 14089 $as_echo_n "(cached) " >&6
1cf3d07d 14090else
d58dead8 14091 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
14092 ac_outfile=conftest.$ac_objext
14093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14094 lt_compiler_flag="$lt_prog_compiler_pic_FC"
14095 # Insert the option either (1) after the last *FLAGS variable, or
14096 # (2) before a word containing "conftest.", or (3) at the end.
14097 # Note that $ac_compile itself does not contain backslashes and begins
14098 # with a dollar sign (not a hyphen), so the echo should work correctly.
14099 # The option is referenced via a variable to avoid confusing sed.
14100 lt_compile=`echo "$ac_compile" | $SED \
14101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14103 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14105 (eval "$lt_compile" 2>conftest.err)
14106 ac_status=$?
14107 cat conftest.err >&5
43e02a8a 14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14109 if (exit $ac_status) && test -s "$ac_outfile"; then
14110 # The compiler can only warn and ignore the option if not recognized
14111 # So say no if there are warnings other than the usual output.
43e02a8a 14112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
14113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14115 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
14116 fi
14117 fi
14118 $RM conftest*
14119
14120fi
5213506e
RW
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14122$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 14123
d58dead8 14124if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
14125 case $lt_prog_compiler_pic_FC in
14126 "" | " "*) ;;
14127 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14128 esac
14129else
14130 lt_prog_compiler_pic_FC=
14131 lt_prog_compiler_can_build_shared_FC=no
14132fi
14133
14134fi
14135
14136
14137
14138#
14139# Check to make sure the static flag actually works.
14140#
14141wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14143$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14144if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
5213506e 14145 $as_echo_n "(cached) " >&6
1cf3d07d 14146else
d58dead8 14147 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
14148 save_LDFLAGS="$LDFLAGS"
14149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14152 # The linker can only warn and ignore the option if not recognized
14153 # So say no if there are warnings
14154 if test -s conftest.err; then
14155 # Append any errors to the config.log.
14156 cat conftest.err 1>&5
43e02a8a 14157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
14158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14159 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14160 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14161 fi
14162 else
d58dead8 14163 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14164 fi
14165 fi
d58dead8 14166 $RM -r conftest*
1cf3d07d
SE
14167 LDFLAGS="$save_LDFLAGS"
14168
14169fi
5213506e
RW
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14171$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 14172
d58dead8 14173if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
14174 :
14175else
14176 lt_prog_compiler_static_FC=
14177fi
14178
14179
14180
14181
5213506e
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14184if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14185 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14186else
14187 lt_cv_prog_compiler_c_o_FC=no
14188 $RM -r conftest 2>/dev/null
14189 mkdir conftest
14190 cd conftest
14191 mkdir out
14192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
14194 lt_compiler_flag="-o out/conftest2.$ac_objext"
14195 # Insert the option either (1) after the last *FLAGS variable, or
14196 # (2) before a word containing "conftest.", or (3) at the end.
14197 # Note that $ac_compile itself does not contain backslashes and begins
14198 # with a dollar sign (not a hyphen), so the echo should work correctly.
14199 lt_compile=`echo "$ac_compile" | $SED \
14200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14202 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14204 (eval "$lt_compile" 2>out/conftest.err)
14205 ac_status=$?
14206 cat out/conftest.err >&5
43e02a8a 14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14209 then
14210 # The compiler can only warn and ignore the option if not recognized
14211 # So say no if there are warnings
43e02a8a 14212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14215 lt_cv_prog_compiler_c_o_FC=yes
14216 fi
14217 fi
14218 chmod u+w . 2>&5
14219 $RM conftest*
14220 # SGI C++ compiler will create directory out/ii_files/ for
14221 # template instantiation
14222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14223 $RM out/* && rmdir out
14224 cd ..
14225 $RM -r conftest
14226 $RM conftest*
14227
14228fi
5213506e
RW
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14230$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14231
14232
14233
5213506e
RW
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14235$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14236if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14237 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14238else
14239 lt_cv_prog_compiler_c_o_FC=no
14240 $RM -r conftest 2>/dev/null
14241 mkdir conftest
14242 cd conftest
14243 mkdir out
14244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14245
14246 lt_compiler_flag="-o out/conftest2.$ac_objext"
14247 # Insert the option either (1) after the last *FLAGS variable, or
14248 # (2) before a word containing "conftest.", or (3) at the end.
14249 # Note that $ac_compile itself does not contain backslashes and begins
14250 # with a dollar sign (not a hyphen), so the echo should work correctly.
14251 lt_compile=`echo "$ac_compile" | $SED \
14252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14254 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14256 (eval "$lt_compile" 2>out/conftest.err)
14257 ac_status=$?
14258 cat out/conftest.err >&5
43e02a8a 14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14261 then
14262 # The compiler can only warn and ignore the option if not recognized
14263 # So say no if there are warnings
43e02a8a 14264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14267 lt_cv_prog_compiler_c_o_FC=yes
14268 fi
14269 fi
14270 chmod u+w . 2>&5
14271 $RM conftest*
14272 # SGI C++ compiler will create directory out/ii_files/ for
14273 # template instantiation
14274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14275 $RM out/* && rmdir out
14276 cd ..
14277 $RM -r conftest
14278 $RM conftest*
14279
14280fi
5213506e
RW
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14282$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14283
14284
14285
14286
14287hard_links="nottested"
14288if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14289 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14291$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14292 hard_links=yes
14293 $RM conftest*
14294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14295 touch conftest.a
14296 ln conftest.a conftest.b 2>&5 || hard_links=no
14297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14299$as_echo "$hard_links" >&6; }
1cf3d07d 14300 if test "$hard_links" = no; then
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14302$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
14303 need_locks=warn
14304 fi
14305else
14306 need_locks=no
14307fi
14308
14309
14310
5213506e
RW
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14312$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14313
14314 runpath_var=
14315 allow_undefined_flag_FC=
14316 always_export_symbols_FC=no
14317 archive_cmds_FC=
14318 archive_expsym_cmds_FC=
14319 compiler_needs_object_FC=no
14320 enable_shared_with_static_runtimes_FC=no
14321 export_dynamic_flag_spec_FC=
14322 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14323 hardcode_automatic_FC=no
14324 hardcode_direct_FC=no
14325 hardcode_direct_absolute_FC=no
14326 hardcode_libdir_flag_spec_FC=
14327 hardcode_libdir_flag_spec_ld_FC=
14328 hardcode_libdir_separator_FC=
14329 hardcode_minus_L_FC=no
14330 hardcode_shlibpath_var_FC=unsupported
14331 inherit_rpath_FC=no
14332 link_all_deplibs_FC=unknown
14333 module_cmds_FC=
14334 module_expsym_cmds_FC=
14335 old_archive_from_new_cmds_FC=
14336 old_archive_from_expsyms_cmds_FC=
14337 thread_safe_flag_spec_FC=
14338 whole_archive_flag_spec_FC=
14339 # include_expsyms should be a list of space-separated symbols to be *always*
14340 # included in the symbol list
14341 include_expsyms_FC=
14342 # exclude_expsyms can be an extended regexp of symbols to exclude
14343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14345 # as well as any symbol that contains `d'.
d58dead8 14346 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
14347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14348 # platforms (ab)use it in PIC code, but their linkers get confused if
14349 # the symbol is explicitly referenced. Since portable code cannot
14350 # rely on this symbol name, it's probably fine to never include it in
14351 # preloaded symbol tables.
d58dead8 14352 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
14353 extract_expsyms_cmds=
14354
14355 case $host_os in
d58dead8 14356 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14358 # When not using gcc, we currently assume that we are using
14359 # Microsoft Visual C++.
14360 if test "$GCC" != yes; then
14361 with_gnu_ld=no
14362 fi
14363 ;;
14364 interix*)
14365 # we just hope/assume this is gcc and not c89 (= MSVC++)
14366 with_gnu_ld=yes
14367 ;;
14368 openbsd*)
14369 with_gnu_ld=no
14370 ;;
14371 esac
14372
14373 ld_shlibs_FC=yes
43e02a8a
RW
14374
14375 # On some targets, GNU ld is compatible enough with the native linker
14376 # that we're better off using the native interface for both.
14377 lt_use_gnu_ld_interface=no
1cf3d07d 14378 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
14379 case $host_os in
14380 aix*)
14381 # The AIX port of GNU ld has always aspired to compatibility
14382 # with the native linker. However, as the warning in the GNU ld
14383 # block says, versions before 2.19.5* couldn't really create working
14384 # shared libraries, regardless of the interface used.
14385 case `$LD -v 2>&1` in
14386 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14387 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14388 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14389 *)
14390 lt_use_gnu_ld_interface=yes
14391 ;;
14392 esac
14393 ;;
14394 *)
14395 lt_use_gnu_ld_interface=yes
14396 ;;
14397 esac
14398 fi
14399
14400 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
14401 # If archive_cmds runs LD, not CC, wlarc should be empty
14402 wlarc='${wl}'
14403
14404 # Set some defaults for GNU ld with shared library support. These
14405 # are reset later if shared libraries are not supported. Putting them
14406 # here allows them to be overridden if necessary.
14407 runpath_var=LD_RUN_PATH
14408 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14409 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14410 # ancient GNU ld didn't support --whole-archive et. al.
14411 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14412 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14413 else
14414 whole_archive_flag_spec_FC=
14415 fi
14416 supports_anon_versioning=no
14417 case `$LD -v 2>&1` in
43e02a8a 14418 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
14419 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14422 *\ 2.11.*) ;; # other 2.11 versions
14423 *) supports_anon_versioning=yes ;;
14424 esac
14425
14426 # See if GNU ld supports shared libraries.
14427 case $host_os in
4f6bebc3 14428 aix[3-9]*)
1cf3d07d
SE
14429 # On AIX/PPC, the GNU linker is very broken
14430 if test "$host_cpu" != ia64; then
14431 ld_shlibs_FC=no
14432 cat <<_LT_EOF 1>&2
14433
43e02a8a 14434*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
14435*** to be unable to reliably create shared libraries on AIX.
14436*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
14437*** really care for shared libraries, you may want to install binutils
14438*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14439*** You will then need to restart the configuration process.
1cf3d07d
SE
14440
14441_LT_EOF
14442 fi
14443 ;;
14444
14445 amigaos*)
d58dead8
PG
14446 case $host_cpu in
14447 powerpc)
14448 # see comment about AmigaOS4 .so support
14449 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14450 archive_expsym_cmds_FC=''
14451 ;;
14452 m68k)
14453 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)'
14454 hardcode_libdir_flag_spec_FC='-L$libdir'
14455 hardcode_minus_L_FC=yes
14456 ;;
14457 esac
1cf3d07d
SE
14458 ;;
14459
14460 beos*)
14461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14462 allow_undefined_flag_FC=unsupported
14463 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14464 # support --undefined. This deserves some investigation. FIXME
14465 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14466 else
14467 ld_shlibs_FC=no
14468 fi
14469 ;;
14470
d58dead8 14471 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14472 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14473 # as there is no search path for DLLs.
14474 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 14475 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
14476 allow_undefined_flag_FC=unsupported
14477 always_export_symbols_FC=no
14478 enable_shared_with_static_runtimes_FC=yes
14479 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14480
14481 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14482 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14483 # If the export-symbols file already is a .def file (1st line
14484 # is EXPORTS), use it as is; otherwise, prepend...
14485 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14486 cp $export_symbols $output_objdir/$soname.def;
14487 else
14488 echo EXPORTS > $output_objdir/$soname.def;
14489 cat $export_symbols >> $output_objdir/$soname.def;
14490 fi~
14491 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14492 else
14493 ld_shlibs_FC=no
14494 fi
14495 ;;
14496
43e02a8a
RW
14497 haiku*)
14498 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14499 link_all_deplibs_FC=yes
14500 ;;
14501
1cf3d07d
SE
14502 interix[3-9]*)
14503 hardcode_direct_FC=no
14504 hardcode_shlibpath_var_FC=no
14505 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14506 export_dynamic_flag_spec_FC='${wl}-E'
14507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14508 # Instead, shared libraries are loaded at an image base (0x10000000 by
14509 # default) and relocated if they conflict, which is a slow very memory
14510 # consuming and fragmenting process. To avoid this, we pick a random,
14511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14513 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'
14514 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'
14515 ;;
14516
e9085da5 14517 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
14518 tmp_diet=no
14519 if test "$host_os" = linux-dietlibc; then
14520 case $cc_basename in
14521 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14522 esac
14523 fi
14524 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14525 && test "$tmp_diet" = no
14526 then
a699d672 14527 tmp_addflag=' $pic_flag'
d58dead8 14528 tmp_sharedflag='-shared'
1cf3d07d
SE
14529 case $cc_basename,$host_cpu in
14530 pgcc*) # Portland Group C compiler
43e02a8a 14531 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
14532 tmp_addflag=' $pic_flag'
14533 ;;
43e02a8a
RW
14534 pgf77* | pgf90* | pgf95* | pgfortran*)
14535 # Portland Group f77 and f90 compilers
14536 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
14537 tmp_addflag=' $pic_flag -Mnomain' ;;
14538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14539 tmp_addflag=' -i_dynamic' ;;
14540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14541 tmp_addflag=' -i_dynamic -nofor_main' ;;
14542 ifc* | ifort*) # Intel Fortran compiler
14543 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14544 lf95*) # Lahey Fortran 8.1
14545 whole_archive_flag_spec_FC=
14546 tmp_sharedflag='--shared' ;;
43e02a8a 14547 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14548 tmp_sharedflag='-qmkshrobj'
14549 tmp_addflag= ;;
43e02a8a
RW
14550 nvcc*) # Cuda Compiler Driver 2.2
14551 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'
14552 compiler_needs_object_FC=yes
14553 ;;
1cf3d07d
SE
14554 esac
14555 case `$CC -V 2>&1 | sed 5q` in
14556 *Sun\ C*) # Sun C 5.9
43e02a8a 14557 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
14558 compiler_needs_object_FC=yes
14559 tmp_sharedflag='-G' ;;
14560 *Sun\ F*) # Sun Fortran 8.3
14561 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14562 esac
14563 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564
14565 if test "x$supports_anon_versioning" = xyes; then
14566 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14568 echo "local: *; };" >> $output_objdir/$libname.ver~
14569 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14570 fi
d58dead8
PG
14571
14572 case $cc_basename in
43e02a8a 14573 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14574 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14575 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14576 hardcode_libdir_flag_spec_FC=
14577 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14578 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14579 if test "x$supports_anon_versioning" = xyes; then
14580 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14581 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14582 echo "local: *; };" >> $output_objdir/$libname.ver~
14583 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14584 fi
14585 ;;
14586 esac
1cf3d07d
SE
14587 else
14588 ld_shlibs_FC=no
14589 fi
14590 ;;
14591
14592 netbsd*)
14593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14594 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14595 wlarc=
14596 else
14597 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14599 fi
14600 ;;
14601
14602 solaris*)
14603 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14604 ld_shlibs_FC=no
14605 cat <<_LT_EOF 1>&2
14606
14607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14608*** create shared libraries on Solaris systems. Therefore, libtool
14609*** is disabling shared libraries support. We urge you to upgrade GNU
14610*** binutils to release 2.9.1 or newer. Another option is to modify
14611*** your PATH or compiler configuration so that the native linker is
14612*** used, and then restart.
14613
14614_LT_EOF
14615 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14616 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14617 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14618 else
14619 ld_shlibs_FC=no
14620 fi
14621 ;;
14622
14623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14624 case `$LD -v 2>&1` in
14625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14626 ld_shlibs_FC=no
14627 cat <<_LT_EOF 1>&2
14628
14629*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14630*** reliably create shared libraries on SCO systems. Therefore, libtool
14631*** is disabling shared libraries support. We urge you to upgrade GNU
14632*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14633*** your PATH or compiler configuration so that the native linker is
14634*** used, and then restart.
14635
14636_LT_EOF
14637 ;;
14638 *)
14639 # For security reasons, it is highly recommended that you always
14640 # use absolute paths for naming shared libraries, and exclude the
14641 # DT_RUNPATH tag from executables and libraries. But doing so
14642 # requires that you compile everything twice, which is a pain.
14643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14644 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14645 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14647 else
14648 ld_shlibs_FC=no
14649 fi
14650 ;;
14651 esac
14652 ;;
14653
14654 sunos4*)
14655 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14656 wlarc=
14657 hardcode_direct_FC=yes
14658 hardcode_shlibpath_var_FC=no
14659 ;;
14660
14661 *)
14662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14663 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14664 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14665 else
14666 ld_shlibs_FC=no
14667 fi
14668 ;;
14669 esac
14670
14671 if test "$ld_shlibs_FC" = no; then
14672 runpath_var=
14673 hardcode_libdir_flag_spec_FC=
14674 export_dynamic_flag_spec_FC=
14675 whole_archive_flag_spec_FC=
14676 fi
14677 else
14678 # PORTME fill in a description of your system's linker (not GNU ld)
14679 case $host_os in
14680 aix3*)
14681 allow_undefined_flag_FC=unsupported
14682 always_export_symbols_FC=yes
14683 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'
14684 # Note: this linker hardcodes the directories in LIBPATH if there
14685 # are no directories specified by -L.
14686 hardcode_minus_L_FC=yes
14687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14688 # Neither direct hardcoding nor static linking is supported with a
14689 # broken collect2.
14690 hardcode_direct_FC=unsupported
14691 fi
14692 ;;
14693
4f6bebc3 14694 aix[4-9]*)
1cf3d07d
SE
14695 if test "$host_cpu" = ia64; then
14696 # On IA64, the linker does run time linking by default, so we don't
14697 # have to do anything special.
14698 aix_use_runtimelinking=no
14699 exp_sym_flag='-Bexport'
14700 no_entry_flag=""
14701 else
14702 # If we're using GNU nm, then we don't want the "-C" option.
14703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14704 # Also, AIX nm treats weak defined symbols like other global
14705 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14706 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14707 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 14708 else
d3ca2257 14709 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
14710 fi
14711 aix_use_runtimelinking=no
14712
14713 # Test if we are trying to use run time linking or normal
14714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14715 # need to do runtime linking.
4f6bebc3 14716 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14717 for ld_flag in $LDFLAGS; do
14718 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14719 aix_use_runtimelinking=yes
14720 break
14721 fi
14722 done
14723 ;;
14724 esac
14725
14726 exp_sym_flag='-bexport'
14727 no_entry_flag='-bnoentry'
14728 fi
14729
14730 # When large executables or shared objects are built, AIX ld can
14731 # have problems creating the table of contents. If linking a library
14732 # or program results in "error TOC overflow" add -mminimal-toc to
14733 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14734 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14735
14736 archive_cmds_FC=''
14737 hardcode_direct_FC=yes
14738 hardcode_direct_absolute_FC=yes
14739 hardcode_libdir_separator_FC=':'
14740 link_all_deplibs_FC=yes
14741 file_list_spec_FC='${wl}-f,'
14742
14743 if test "$GCC" = yes; then
14744 case $host_os in aix4.[012]|aix4.[012].*)
14745 # We only want to do this on AIX 4.2 and lower, the check
14746 # below for broken collect2 doesn't work under 4.3+
14747 collect2name=`${CC} -print-prog-name=collect2`
14748 if test -f "$collect2name" &&
14749 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14750 then
14751 # We have reworked collect2
14752 :
14753 else
14754 # We have old collect2
14755 hardcode_direct_FC=unsupported
14756 # It fails to find uninstalled libraries when the uninstalled
14757 # path is not listed in the libpath. Setting hardcode_minus_L
14758 # to unsupported forces relinking
14759 hardcode_minus_L_FC=yes
14760 hardcode_libdir_flag_spec_FC='-L$libdir'
14761 hardcode_libdir_separator_FC=
14762 fi
14763 ;;
14764 esac
14765 shared_flag='-shared'
14766 if test "$aix_use_runtimelinking" = yes; then
14767 shared_flag="$shared_flag "'${wl}-G'
14768 fi
14769 else
14770 # not using gcc
14771 if test "$host_cpu" = ia64; then
14772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14773 # chokes on -Wl,-G. The following line is correct:
14774 shared_flag='-G'
14775 else
14776 if test "$aix_use_runtimelinking" = yes; then
14777 shared_flag='${wl}-G'
14778 else
14779 shared_flag='${wl}-bM:SRE'
14780 fi
14781 fi
14782 fi
14783
d58dead8 14784 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14785 # It seems that -bexpall does not export symbols beginning with
14786 # underscore (_), so it is better to generate a list of symbols to export.
14787 always_export_symbols_FC=yes
14788 if test "$aix_use_runtimelinking" = yes; then
14789 # Warning - without using the other runtime loading flags (-brtl),
14790 # -berok will link without error, but may produce a broken library.
14791 allow_undefined_flag_FC='-berok'
14792 # Determine the default libpath from the value encoded in an
14793 # empty executable.
14794 if test x$gcc_no_link = xyes; then
22e05272 14795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14796fi
5213506e 14797cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14798 program main
14799
14800 end
14801_ACEOF
5213506e 14802if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14803
14804lt_aix_libpath_sed='
14805 /Import File Strings/,/^$/ {
14806 /^0/ {
14807 s/^0 *\(.*\)$/\1/
14808 p
14809 }
14810 }'
14811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14812# Check for a 64-bit object if we didn't find anything.
14813if test -z "$aix_libpath"; then
14814 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14815fi
1cf3d07d 14816fi
5213506e
RW
14817rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14819if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14820
14821 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14822 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
14823 else
14824 if test "$host_cpu" = ia64; then
14825 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14826 allow_undefined_flag_FC="-z nodefs"
14827 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"
14828 else
14829 # Determine the default libpath from the value encoded in an
14830 # empty executable.
14831 if test x$gcc_no_link = xyes; then
22e05272 14832 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14833fi
5213506e 14834cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14835 program main
14836
14837 end
14838_ACEOF
5213506e 14839if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14840
14841lt_aix_libpath_sed='
14842 /Import File Strings/,/^$/ {
14843 /^0/ {
14844 s/^0 *\(.*\)$/\1/
14845 p
14846 }
14847 }'
14848aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14849# Check for a 64-bit object if we didn't find anything.
14850if test -z "$aix_libpath"; then
14851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14852fi
1cf3d07d 14853fi
5213506e
RW
14854rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14857
14858 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14859 # Warning - without using the other run time loading flags,
14860 # -berok will link without error, but may produce a broken library.
14861 no_undefined_flag_FC=' ${wl}-bernotok'
14862 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14863 if test "$with_gnu_ld" = yes; then
14864 # We only use this code for GNU lds that support --whole-archive.
14865 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14866 else
14867 # Exported symbols can be pulled into shared objects from archives
14868 whole_archive_flag_spec_FC='$convenience'
14869 fi
1cf3d07d
SE
14870 archive_cmds_need_lc_FC=yes
14871 # This is similar to how AIX traditionally builds its shared libraries.
14872 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'
14873 fi
14874 fi
14875 ;;
14876
14877 amigaos*)
d58dead8
PG
14878 case $host_cpu in
14879 powerpc)
14880 # see comment about AmigaOS4 .so support
14881 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14882 archive_expsym_cmds_FC=''
14883 ;;
14884 m68k)
14885 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)'
14886 hardcode_libdir_flag_spec_FC='-L$libdir'
14887 hardcode_minus_L_FC=yes
14888 ;;
14889 esac
1cf3d07d
SE
14890 ;;
14891
14892 bsdi[45]*)
14893 export_dynamic_flag_spec_FC=-rdynamic
14894 ;;
14895
d58dead8 14896 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14897 # When not using gcc, we currently assume that we are using
14898 # Microsoft Visual C++.
14899 # hardcode_libdir_flag_spec is actually meaningless, as there is
14900 # no search path for DLLs.
14901 hardcode_libdir_flag_spec_FC=' '
14902 allow_undefined_flag_FC=unsupported
14903 # Tell ltmain to make .lib files, not .a files.
14904 libext=lib
14905 # Tell ltmain to make .dll files, not .so files.
14906 shrext_cmds=".dll"
14907 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14908 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14909 # The linker will automatically build a .lib file if we build a DLL.
14910 old_archive_from_new_cmds_FC='true'
14911 # FIXME: Should let the user specify the lib program.
14912 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14913 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14914 enable_shared_with_static_runtimes_FC=yes
14915 ;;
14916
14917 darwin* | rhapsody*)
1cf3d07d 14918
d58dead8
PG
14919
14920 archive_cmds_need_lc_FC=no
14921 hardcode_direct_FC=no
14922 hardcode_automatic_FC=yes
14923 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14924 if test "$lt_cv_ld_force_load" = "yes"; then
14925 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\"`'
14926 else
14927 whole_archive_flag_spec_FC=''
14928 fi
d58dead8
PG
14929 link_all_deplibs_FC=yes
14930 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14931 case $cc_basename in
14932 ifort*) _lt_dar_can_shared=yes ;;
14933 *) _lt_dar_can_shared=$GCC ;;
14934 esac
14935 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14936 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14937 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}"
14938 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14939 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}"
14940 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}"
14941
14942 else
14943 ld_shlibs_FC=no
14944 fi
14945
1cf3d07d
SE
14946 ;;
14947
14948 dgux*)
14949 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950 hardcode_libdir_flag_spec_FC='-L$libdir'
14951 hardcode_shlibpath_var_FC=no
14952 ;;
14953
1cf3d07d
SE
14954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14955 # support. Future versions do this automatically, but an explicit c++rt0.o
14956 # does not break anything, and helps significantly (at the cost of a little
14957 # extra space).
14958 freebsd2.2*)
14959 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14960 hardcode_libdir_flag_spec_FC='-R$libdir'
14961 hardcode_direct_FC=yes
14962 hardcode_shlibpath_var_FC=no
14963 ;;
14964
14965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14966 freebsd2.*)
1cf3d07d
SE
14967 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14968 hardcode_direct_FC=yes
14969 hardcode_minus_L_FC=yes
14970 hardcode_shlibpath_var_FC=no
14971 ;;
14972
14973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14974 freebsd* | dragonfly*)
14975 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14976 hardcode_libdir_flag_spec_FC='-R$libdir'
14977 hardcode_direct_FC=yes
14978 hardcode_shlibpath_var_FC=no
14979 ;;
14980
14981 hpux9*)
14982 if test "$GCC" = yes; then
14983 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'
14984 else
14985 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'
14986 fi
14987 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14988 hardcode_libdir_separator_FC=:
14989 hardcode_direct_FC=yes
14990
14991 # hardcode_minus_L: Not really in the search PATH,
14992 # but as the default location of the library.
14993 hardcode_minus_L_FC=yes
14994 export_dynamic_flag_spec_FC='${wl}-E'
14995 ;;
14996
14997 hpux10*)
43e02a8a 14998 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14999 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15000 else
15001 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15002 fi
15003 if test "$with_gnu_ld" = no; then
15004 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15005 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
15006 hardcode_libdir_separator_FC=:
15007 hardcode_direct_FC=yes
15008 hardcode_direct_absolute_FC=yes
15009 export_dynamic_flag_spec_FC='${wl}-E'
15010 # hardcode_minus_L: Not really in the search PATH,
15011 # but as the default location of the library.
15012 hardcode_minus_L_FC=yes
15013 fi
15014 ;;
15015
15016 hpux11*)
43e02a8a 15017 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
15018 case $host_cpu in
15019 hppa*64*)
4e4ba647 15020 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15021 ;;
15022 ia64*)
d58dead8 15023 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15024 ;;
15025 *)
15026 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15027 ;;
15028 esac
15029 else
15030 case $host_cpu in
15031 hppa*64*)
4e4ba647 15032 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15033 ;;
15034 ia64*)
15035 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15036 ;;
15037 *)
43e02a8a 15038 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15039 ;;
15040 esac
15041 fi
15042 if test "$with_gnu_ld" = no; then
15043 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15044 hardcode_libdir_separator_FC=:
15045
15046 case $host_cpu in
15047 hppa*64*|ia64*)
15048 hardcode_direct_FC=no
15049 hardcode_shlibpath_var_FC=no
15050 ;;
15051 *)
15052 hardcode_direct_FC=yes
15053 hardcode_direct_absolute_FC=yes
15054 export_dynamic_flag_spec_FC='${wl}-E'
15055
15056 # hardcode_minus_L: Not really in the search PATH,
15057 # but as the default location of the library.
15058 hardcode_minus_L_FC=yes
15059 ;;
15060 esac
15061 fi
15062 ;;
15063
15064 irix5* | irix6* | nonstopux*)
15065 if test "$GCC" = yes; then
43e02a8a 15066 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
15067 # Try to use the -exported_symbol ld option, if it does not
15068 # work, assume that -exports_file does not work either and
15069 # implicitly export all symbols.
15070 save_LDFLAGS="$LDFLAGS"
15071 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15072 if test x$gcc_no_link = xyes; then
22e05272 15073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15074fi
5213506e 15075cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15076int foo(void) {}
15077_ACEOF
5213506e 15078if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 15079 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 15080
1cf3d07d 15081fi
5213506e
RW
15082rm -f core conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15084 LDFLAGS="$save_LDFLAGS"
15085 else
43e02a8a
RW
15086 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'
15087 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
15088 fi
15089 archive_cmds_need_lc_FC='no'
15090 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15091 hardcode_libdir_separator_FC=:
15092 inherit_rpath_FC=yes
15093 link_all_deplibs_FC=yes
15094 ;;
15095
15096 netbsd*)
15097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15098 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15099 else
15100 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15101 fi
15102 hardcode_libdir_flag_spec_FC='-R$libdir'
15103 hardcode_direct_FC=yes
15104 hardcode_shlibpath_var_FC=no
15105 ;;
15106
15107 newsos6)
15108 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_direct_FC=yes
15110 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15111 hardcode_libdir_separator_FC=:
15112 hardcode_shlibpath_var_FC=no
15113 ;;
15114
15115 *nto* | *qnx*)
15116 ;;
15117
15118 openbsd*)
d58dead8
PG
15119 if test -f /usr/libexec/ld.so; then
15120 hardcode_direct_FC=yes
15121 hardcode_shlibpath_var_FC=no
15122 hardcode_direct_absolute_FC=yes
15123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 15124 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 15125 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 15126 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
15127 export_dynamic_flag_spec_FC='${wl}-E'
15128 else
15129 case $host_os in
15130 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15131 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_libdir_flag_spec_FC='-R$libdir'
15133 ;;
15134 *)
15135 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15136 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15137 ;;
15138 esac
15139 fi
15140 else
15141 ld_shlibs_FC=no
1cf3d07d
SE
15142 fi
15143 ;;
15144
15145 os2*)
15146 hardcode_libdir_flag_spec_FC='-L$libdir'
15147 hardcode_minus_L_FC=yes
15148 allow_undefined_flag_FC=unsupported
43e02a8a 15149 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
15150 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15151 ;;
15152
15153 osf3*)
15154 if test "$GCC" = yes; then
15155 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15156 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
15157 else
15158 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15159 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
15160 fi
15161 archive_cmds_need_lc_FC='no'
15162 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15163 hardcode_libdir_separator_FC=:
15164 ;;
15165
15166 osf4* | osf5*) # as osf3* with the addition of -msym flag
15167 if test "$GCC" = yes; then
15168 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15169 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
15170 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15171 else
15172 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15173 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 15174 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 15175 $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
15176
15177 # Both c and cxx compiler support -rpath directly
15178 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15179 fi
15180 archive_cmds_need_lc_FC='no'
15181 hardcode_libdir_separator_FC=:
15182 ;;
15183
15184 solaris*)
15185 no_undefined_flag_FC=' -z defs'
15186 if test "$GCC" = yes; then
15187 wlarc='${wl}'
15188 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15190 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15191 else
15192 case `$CC -V 2>&1` in
15193 *"Compilers 5.0"*)
15194 wlarc=''
15195 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15198 ;;
15199 *)
15200 wlarc='${wl}'
15201 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15202 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15203 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15204 ;;
15205 esac
15206 fi
15207 hardcode_libdir_flag_spec_FC='-R$libdir'
15208 hardcode_shlibpath_var_FC=no
15209 case $host_os in
15210 solaris2.[0-5] | solaris2.[0-5].*) ;;
15211 *)
15212 # The compiler driver will combine and reorder linker options,
15213 # but understands `-z linker_flag'. GCC discards it without `$wl',
15214 # but is careful enough not to reorder.
15215 # Supported since Solaris 2.6 (maybe 2.5.1?)
15216 if test "$GCC" = yes; then
15217 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15218 else
15219 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15220 fi
15221 ;;
15222 esac
15223 link_all_deplibs_FC=yes
15224 ;;
15225
15226 sunos4*)
15227 if test "x$host_vendor" = xsequent; then
15228 # Use $CC to link under sequent, because it throws in some extra .o
15229 # files that make .init and .fini sections work.
15230 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15231 else
15232 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15233 fi
15234 hardcode_libdir_flag_spec_FC='-L$libdir'
15235 hardcode_direct_FC=yes
15236 hardcode_minus_L_FC=yes
15237 hardcode_shlibpath_var_FC=no
15238 ;;
15239
15240 sysv4)
15241 case $host_vendor in
15242 sni)
15243 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15244 hardcode_direct_FC=yes # is this really true???
15245 ;;
15246 siemens)
15247 ## LD is ld it makes a PLAMLIB
15248 ## CC just makes a GrossModule.
15249 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15250 reload_cmds_FC='$CC -r -o $output$reload_objs'
15251 hardcode_direct_FC=no
15252 ;;
15253 motorola)
15254 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15256 ;;
15257 esac
15258 runpath_var='LD_RUN_PATH'
15259 hardcode_shlibpath_var_FC=no
15260 ;;
15261
15262 sysv4.3*)
15263 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264 hardcode_shlibpath_var_FC=no
15265 export_dynamic_flag_spec_FC='-Bexport'
15266 ;;
15267
15268 sysv4*MP*)
15269 if test -d /usr/nec; then
15270 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15271 hardcode_shlibpath_var_FC=no
15272 runpath_var=LD_RUN_PATH
15273 hardcode_runpath_var=yes
15274 ld_shlibs_FC=yes
15275 fi
15276 ;;
15277
15278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15279 no_undefined_flag_FC='${wl}-z,text'
15280 archive_cmds_need_lc_FC=no
15281 hardcode_shlibpath_var_FC=no
15282 runpath_var='LD_RUN_PATH'
15283
15284 if test "$GCC" = yes; then
15285 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15286 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15287 else
15288 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15289 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15290 fi
15291 ;;
15292
15293 sysv5* | sco3.2v5* | sco5v6*)
15294 # Note: We can NOT use -z defs as we might desire, because we do not
15295 # link with -lc, and that would cause any symbols used from libc to
15296 # always be unresolved, which means just about no library would
15297 # ever link correctly. If we're not using GNU ld we use -z text
15298 # though, which does catch some bad symbols but isn't as heavy-handed
15299 # as -z defs.
15300 no_undefined_flag_FC='${wl}-z,text'
15301 allow_undefined_flag_FC='${wl}-z,nodefs'
15302 archive_cmds_need_lc_FC=no
15303 hardcode_shlibpath_var_FC=no
15304 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15305 hardcode_libdir_separator_FC=':'
15306 link_all_deplibs_FC=yes
15307 export_dynamic_flag_spec_FC='${wl}-Bexport'
15308 runpath_var='LD_RUN_PATH'
15309
15310 if test "$GCC" = yes; then
15311 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15312 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15313 else
15314 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15315 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15316 fi
15317 ;;
15318
15319 uts4*)
15320 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_libdir_flag_spec_FC='-L$libdir'
15322 hardcode_shlibpath_var_FC=no
15323 ;;
15324
15325 *)
15326 ld_shlibs_FC=no
15327 ;;
15328 esac
15329
15330 if test x$host_vendor = xsni; then
15331 case $host in
15332 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15333 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15334 ;;
15335 esac
15336 fi
15337 fi
15338
5213506e
RW
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15340$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
15341test "$ld_shlibs_FC" = no && can_build_shared=no
15342
15343with_gnu_ld_FC=$with_gnu_ld
15344
15345
15346
15347
15348
15349
15350#
15351# Do we need to explicitly link libc?
15352#
15353case "x$archive_cmds_need_lc_FC" in
15354x|xyes)
15355 # Assume -lc should be added
15356 archive_cmds_need_lc_FC=yes
15357
15358 if test "$enable_shared" = yes && test "$GCC" = yes; then
15359 case $archive_cmds_FC in
15360 *'~'*)
15361 # FIXME: we may have to deal with multi-command sequences.
15362 ;;
15363 '$CC '*)
15364 # Test whether the compiler implicitly links with -lc since on some
15365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15366 # to ld, don't add -lc before -lgcc.
5213506e
RW
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15368$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 15369if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
5213506e 15370 $as_echo_n "(cached) " >&6
baafc534
RW
15371else
15372 $RM conftest*
15373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15374
5213506e 15375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
15376 (eval $ac_compile) 2>&5
15377 ac_status=$?
5213506e
RW
15378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15380 soname=conftest
15381 lib=conftest
15382 libobjs=conftest.$ac_objext
15383 deplibs=
15384 wl=$lt_prog_compiler_wl_FC
15385 pic_flag=$lt_prog_compiler_pic_FC
15386 compiler_flags=-v
15387 linker_flags=-v
15388 verstring=
15389 output_objdir=.
15390 libname=conftest
15391 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15392 allow_undefined_flag_FC=
5213506e 15393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15394 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 15395 ac_status=$?
5213506e
RW
15396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }
baafc534
RW
15398 then
15399 lt_cv_archive_cmds_need_lc_FC=no
15400 else
15401 lt_cv_archive_cmds_need_lc_FC=yes
15402 fi
15403 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15404 else
15405 cat conftest.err 1>&5
15406 fi
15407 $RM conftest*
15408
15409fi
5213506e
RW
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15411$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 15412 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
15413 ;;
15414 esac
15415 fi
15416 ;;
15417esac
9cdc381b 15418
9cdc381b 15419
1cf3d07d
SE
15420
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
5213506e
RW
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15483$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 15484
1cf3d07d
SE
15485library_names_spec=
15486libname_spec='lib$name'
15487soname_spec=
15488shrext_cmds=".so"
15489postinstall_cmds=
15490postuninstall_cmds=
15491finish_cmds=
15492finish_eval=
15493shlibpath_var=
15494shlibpath_overrides_runpath=unknown
15495version_type=none
15496dynamic_linker="$host_os ld.so"
15497sys_lib_dlsearch_path_spec="/lib /usr/lib"
15498need_lib_prefix=unknown
15499hardcode_into_libs=no
15500
15501# when you set need_version to no, make sure it does not cause -set_version
15502# flags to be left without arguments
15503need_version=unknown
15504
15505case $host_os in
15506aix3*)
15507 version_type=linux
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15509 shlibpath_var=LIBPATH
15510
15511 # AIX 3 has no versioning support, so we append a major version to the name.
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 ;;
15514
4f6bebc3 15515aix[4-9]*)
1cf3d07d
SE
15516 version_type=linux
15517 need_lib_prefix=no
15518 need_version=no
15519 hardcode_into_libs=yes
15520 if test "$host_cpu" = ia64; then
15521 # AIX 5 supports IA64
15522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 else
15525 # With GCC up to 2.95.x, collect2 would create an import file
15526 # for dependence libraries. The import file would start with
15527 # the line `#! .'. This would cause the generated library to
15528 # depend on `.', always an invalid library. This was fixed in
15529 # development snapshots of GCC prior to 3.0.
15530 case $host_os in
15531 aix4 | aix4.[01] | aix4.[01].*)
15532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15533 echo ' yes '
15534 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15535 :
15536 else
15537 can_build_shared=no
15538 fi
15539 ;;
15540 esac
15541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15542 # soname into executable. Probably we can add versioning support to
15543 # collect2, so additional links can be useful in future.
15544 if test "$aix_use_runtimelinking" = yes; then
15545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15546 # instead of lib<name>.a to let people know that these are not
15547 # typical AIX shared libraries.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 else
15550 # We preserve .a as extension for shared libraries through AIX4.2
15551 # and later when we are not doing run time linking.
15552 library_names_spec='${libname}${release}.a $libname.a'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 fi
15555 shlibpath_var=LIBPATH
15556 fi
15557 ;;
15558
15559amigaos*)
d58dead8
PG
15560 case $host_cpu in
15561 powerpc)
15562 # Since July 2007 AmigaOS4 officially supports .so libraries.
15563 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 ;;
15566 m68k)
1cf3d07d
SE
15567 library_names_spec='$libname.ixlibrary $libname.a'
15568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15569 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
15570 ;;
15571 esac
1cf3d07d
SE
15572 ;;
15573
15574beos*)
15575 library_names_spec='${libname}${shared_ext}'
15576 dynamic_linker="$host_os ld.so"
15577 shlibpath_var=LIBRARY_PATH
15578 ;;
15579
15580bsdi[45]*)
15581 version_type=linux
15582 need_version=no
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15589 # the default ld.so.conf also contains /usr/contrib/lib and
15590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15591 # libtool to hard-code these into programs
15592 ;;
15593
d58dead8 15594cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15595 version_type=windows
15596 shrext_cmds=".dll"
15597 need_version=no
15598 need_lib_prefix=no
15599
d58dead8
PG
15600 case $GCC,$host_os in
15601 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15602 library_names_spec='$libname.dll.a'
15603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15604 postinstall_cmds='base_file=`basename \${file}`~
15605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15606 dldir=$destdir/`dirname \$dlpath`~
15607 test -d \$dldir || mkdir -p \$dldir~
15608 $install_prog $dir/$dlname \$dldir/$dlname~
15609 chmod a+x \$dldir/$dlname~
15610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15612 fi'
15613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15614 dlpath=$dir/\$dldll~
15615 $RM \$dlpath'
15616 shlibpath_overrides_runpath=yes
15617
15618 case $host_os in
15619 cygwin*)
15620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15622
1cf3d07d 15623 ;;
d58dead8 15624 mingw* | cegcc*)
1cf3d07d
SE
15625 # MinGW DLLs use traditional 'lib' prefix
15626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15627 ;;
15628 pw32*)
15629 # pw32 DLLs use 'pw' prefix rather than 'lib'
15630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15631 ;;
15632 esac
15633 ;;
15634
15635 *)
15636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15637 ;;
15638 esac
15639 dynamic_linker='Win32 ld.exe'
15640 # FIXME: first we should search . and the directory the executable is in
15641 shlibpath_var=PATH
15642 ;;
15643
15644darwin* | rhapsody*)
15645 dynamic_linker="$host_os dyld"
15646 version_type=darwin
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15650 soname_spec='${libname}${release}${major}$shared_ext'
15651 shlibpath_overrides_runpath=yes
15652 shlibpath_var=DYLD_LIBRARY_PATH
15653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15654
15655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15656 ;;
15657
15658dgux*)
15659 version_type=linux
15660 need_lib_prefix=no
15661 need_version=no
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 ;;
15666
1cf3d07d
SE
15667freebsd* | dragonfly*)
15668 # DragonFly does not have aout. When/if they implement a new
15669 # versioning mechanism, adjust this.
15670 if test -x /usr/bin/objformat; then
15671 objformat=`/usr/bin/objformat`
15672 else
15673 case $host_os in
c6084f68 15674 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15675 *) objformat=elf ;;
15676 esac
15677 fi
15678 version_type=freebsd-$objformat
15679 case $version_type in
15680 freebsd-elf*)
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15682 need_version=no
15683 need_lib_prefix=no
15684 ;;
15685 freebsd-*)
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15687 need_version=yes
15688 ;;
15689 esac
15690 shlibpath_var=LD_LIBRARY_PATH
15691 case $host_os in
c6084f68 15692 freebsd2.*)
1cf3d07d
SE
15693 shlibpath_overrides_runpath=yes
15694 ;;
15695 freebsd3.[01]* | freebsdelf3.[01]*)
15696 shlibpath_overrides_runpath=yes
15697 hardcode_into_libs=yes
15698 ;;
15699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15701 shlibpath_overrides_runpath=no
15702 hardcode_into_libs=yes
15703 ;;
15704 *) # from 4.6 on, and DragonFly
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 ;;
15708 esac
15709 ;;
15710
43e02a8a
RW
15711haiku*)
15712 version_type=linux
15713 need_lib_prefix=no
15714 need_version=no
15715 dynamic_linker="$host_os runtime_loader"
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LIBRARY_PATH
15719 shlibpath_overrides_runpath=yes
15720 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15721 hardcode_into_libs=yes
15722 ;;
15723
1cf3d07d
SE
15724hpux9* | hpux10* | hpux11*)
15725 # Give a soname corresponding to the major version so that dld.sl refuses to
15726 # link against other versions.
15727 version_type=sunos
15728 need_lib_prefix=no
15729 need_version=no
15730 case $host_cpu in
15731 ia64*)
15732 shrext_cmds='.so'
15733 hardcode_into_libs=yes
15734 dynamic_linker="$host_os dld.so"
15735 shlibpath_var=LD_LIBRARY_PATH
15736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 if test "X$HPUX_IA64_MODE" = X32; then
15740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15741 else
15742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15743 fi
15744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15745 ;;
15746 hppa*64*)
15747 shrext_cmds='.sl'
15748 hardcode_into_libs=yes
15749 dynamic_linker="$host_os dld.sl"
15750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15756 ;;
15757 *)
15758 shrext_cmds='.sl'
15759 dynamic_linker="$host_os dld.sl"
15760 shlibpath_var=SHLIB_PATH
15761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 ;;
15765 esac
43e02a8a 15766 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15767 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15768 # or fails outright, so override atomically:
15769 install_override_mode=555
1cf3d07d
SE
15770 ;;
15771
15772interix[3-9]*)
15773 version_type=linux
15774 need_lib_prefix=no
15775 need_version=no
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=no
15781 hardcode_into_libs=yes
15782 ;;
15783
15784irix5* | irix6* | nonstopux*)
15785 case $host_os in
15786 nonstopux*) version_type=nonstopux ;;
15787 *)
15788 if test "$lt_cv_prog_gnu_ld" = yes; then
15789 version_type=linux
15790 else
15791 version_type=irix
15792 fi ;;
15793 esac
15794 need_lib_prefix=no
15795 need_version=no
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15798 case $host_os in
15799 irix5* | nonstopux*)
15800 libsuff= shlibsuff=
15801 ;;
15802 *)
15803 case $LD in # libtool.m4 will add one of these switches to LD
15804 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15805 libsuff= shlibsuff= libmagic=32-bit;;
15806 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15807 libsuff=32 shlibsuff=N32 libmagic=N32;;
15808 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15809 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15810 *) libsuff= shlibsuff= libmagic=never-match;;
15811 esac
15812 ;;
15813 esac
15814 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15815 shlibpath_overrides_runpath=no
15816 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15817 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15818 hardcode_into_libs=yes
15819 ;;
15820
15821# No shared lib support for Linux oldld, aout, or coff.
15822linux*oldld* | linux*aout* | linux*coff*)
15823 dynamic_linker=no
15824 ;;
15825
15826# This must be Linux ELF.
e9085da5
MR
15827
15828# uclinux* changes (here and below) have been submitted to the libtool
15829# project, but have not yet been accepted: they are GCC-local changes
15830# for the time being. (See
15831# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
c0f8c22a 15832linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
15833 version_type=linux
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=no
baafc534 15841
1cf3d07d 15842 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15843 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 15844 $as_echo_n "(cached) " >&6
baafc534
RW
15845else
15846 lt_cv_shlibpath_overrides_runpath=no
15847 save_LDFLAGS=$LDFLAGS
15848 save_libdir=$libdir
15849 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15850 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15851 if test x$gcc_no_link = xyes; then
22e05272 15852 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15853fi
5213506e 15854cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15855 program main
15856
15857 end
9cdc381b 15858_ACEOF
5213506e
RW
15859if ac_fn_fc_try_link "$LINENO"; then :
15860 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15861 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15862fi
9cdc381b 15863fi
5213506e
RW
15864rm -f core conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15866 LDFLAGS=$save_LDFLAGS
15867 libdir=$save_libdir
15868
15869fi
15870
15871 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15872
15873 # This implies no fast_install, which is unacceptable.
15874 # Some rework will be needed to allow for fast_install
15875 # before this can be enabled.
15876 hardcode_into_libs=yes
15877
15878 # Append ld.so.conf contents to the search path
15879 if test -f /etc/ld.so.conf; then
43e02a8a 15880 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
15881 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15882 fi
15883
15884 # We used to test for /lib/ld.so.1 and disable shared libraries on
15885 # powerpc, because MkLinux only supported shared libraries with the
15886 # GNU dynamic linker. Since this was broken with cross compilers,
15887 # most powerpc-linux boxes support dynamic linking these days and
15888 # people can always --disable-shared, the test was removed, and we
15889 # assume the GNU/Linux dynamic linker is in use.
15890 dynamic_linker='GNU/Linux ld.so'
15891 ;;
15892
15893netbsd*)
15894 version_type=sunos
15895 need_lib_prefix=no
15896 need_version=no
15897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15900 dynamic_linker='NetBSD (a.out) ld.so'
15901 else
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15903 soname_spec='${libname}${release}${shared_ext}$major'
15904 dynamic_linker='NetBSD ld.elf_so'
15905 fi
15906 shlibpath_var=LD_LIBRARY_PATH
15907 shlibpath_overrides_runpath=yes
15908 hardcode_into_libs=yes
15909 ;;
15910
15911newsos6)
15912 version_type=linux
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 shlibpath_var=LD_LIBRARY_PATH
15915 shlibpath_overrides_runpath=yes
15916 ;;
15917
15918*nto* | *qnx*)
15919 version_type=qnx
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=no
15926 hardcode_into_libs=yes
15927 dynamic_linker='ldqnx.so'
15928 ;;
15929
15930openbsd*)
15931 version_type=sunos
15932 sys_lib_dlsearch_path_spec="/usr/lib"
15933 need_lib_prefix=no
15934 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15935 case $host_os in
15936 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15937 *) need_version=no ;;
15938 esac
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15943 case $host_os in
15944 openbsd2.[89] | openbsd2.[89].*)
15945 shlibpath_overrides_runpath=no
15946 ;;
15947 *)
15948 shlibpath_overrides_runpath=yes
15949 ;;
15950 esac
15951 else
15952 shlibpath_overrides_runpath=yes
15953 fi
15954 ;;
15955
15956os2*)
15957 libname_spec='$name'
15958 shrext_cmds=".dll"
15959 need_lib_prefix=no
15960 library_names_spec='$libname${shared_ext} $libname.a'
15961 dynamic_linker='OS/2 ld.exe'
15962 shlibpath_var=LIBPATH
15963 ;;
15964
15965osf3* | osf4* | osf5*)
15966 version_type=osf
15967 need_lib_prefix=no
15968 need_version=no
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15974 ;;
15975
15976rdos*)
15977 dynamic_linker=no
15978 ;;
15979
15980solaris*)
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 hardcode_into_libs=yes
15989 # ldd complains unless libraries are executable
15990 postinstall_cmds='chmod +x $lib'
15991 ;;
15992
15993sunos4*)
15994 version_type=sunos
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15996 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes
15999 if test "$with_gnu_ld" = yes; then
16000 need_lib_prefix=no
16001 fi
16002 need_version=yes
16003 ;;
16004
16005sysv4 | sysv4.3*)
16006 version_type=linux
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 case $host_vendor in
16011 sni)
16012 shlibpath_overrides_runpath=no
16013 need_lib_prefix=no
16014 runpath_var=LD_RUN_PATH
16015 ;;
16016 siemens)
16017 need_lib_prefix=no
16018 ;;
16019 motorola)
16020 need_lib_prefix=no
16021 need_version=no
16022 shlibpath_overrides_runpath=no
16023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16024 ;;
16025 esac
16026 ;;
16027
16028sysv4*MP*)
16029 if test -d /usr/nec ;then
16030 version_type=linux
16031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16032 soname_spec='$libname${shared_ext}.$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 fi
16035 ;;
16036
16037sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16038 version_type=freebsd-elf
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=yes
16045 hardcode_into_libs=yes
16046 if test "$with_gnu_ld" = yes; then
16047 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16048 else
16049 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16050 case $host_os in
16051 sco3.2v5*)
16052 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16053 ;;
16054 esac
16055 fi
16056 sys_lib_dlsearch_path_spec='/usr/lib'
16057 ;;
16058
16059tpf*)
16060 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16061 version_type=linux
16062 need_lib_prefix=no
16063 need_version=no
d58dead8 16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=no
16067 hardcode_into_libs=yes
16068 ;;
16069
16070uts4*)
16071 version_type=linux
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 ;;
16076
16077*)
16078 dynamic_linker=no
16079 ;;
16080esac
5213506e
RW
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16082$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
16083test "$dynamic_linker" = no && can_build_shared=no
16084
16085variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16086if test "$GCC" = yes; then
16087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 16088fi
9cdc381b 16089
d58dead8
PG
16090if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16091 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16092fi
16093if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16094 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16095fi
16096
9cdc381b 16097
1cf3d07d
SE
16098
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
43e02a8a
RW
16129
16130
1cf3d07d
SE
16131
16132
16133
5213506e
RW
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16135$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16136hardcode_action_FC=
16137if test -n "$hardcode_libdir_flag_spec_FC" ||
16138 test -n "$runpath_var_FC" ||
16139 test "X$hardcode_automatic_FC" = "Xyes" ; then
16140
16141 # We can hardcode non-existent directories.
16142 if test "$hardcode_direct_FC" != no &&
16143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16144 # have to relink, otherwise we might link with an installed library
16145 # when we should be linking with a yet-to-be-installed one
16146 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
16147 test "$hardcode_minus_L_FC" != no; then
16148 # Linking always hardcodes the temporary library directory.
16149 hardcode_action_FC=relink
16150 else
16151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16152 hardcode_action_FC=immediate
16153 fi
16154else
16155 # We cannot hardcode anything, or else we can only hardcode existing
16156 # directories.
16157 hardcode_action_FC=unsupported
9cdc381b 16158fi
5213506e
RW
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16160$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
16161
16162if test "$hardcode_action_FC" = relink ||
16163 test "$inherit_rpath_FC" = yes; then
16164 # Fast installation is not supported
16165 enable_fast_install=no
16166elif test "$shlibpath_overrides_runpath" = yes ||
16167 test "$enable_shared" = no; then
16168 # Fast installation is not necessary
16169 enable_fast_install=needless
9cdc381b
BD
16170fi
16171
1cf3d07d
SE
16172
16173
16174
16175
16176
16177
16178 fi # test -n "$compiler"
16179
d58dead8 16180 GCC=$lt_save_GCC
1cf3d07d
SE
16181 CC="$lt_save_CC"
16182fi # test "$_lt_disable_FC" != yes
16183
dd46a4de 16184ac_ext=c
96b8a615
AJ
16185ac_cpp='$CPP $CPPFLAGS'
16186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16188ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
16189
16190
16191
16192# extra LD Flags which are required for targets
16193case "${host}" in
16194 *-darwin*)
16195 # Darwin needs -single_module when linking libgfortran
16196 extra_ldflags_libgfortran=-Wl,-single_module
16197 ;;
16198esac
16199
16200
16201# We need a working compiler at that point, otherwise give a clear
16202# error message and bail out.
16203
5213506e
RW
16204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16205$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16206ac_ext=${ac_fc_srcext-f}
16207ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16208ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
16209ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16210
5213506e 16211cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
16212
16213 program foo
16214 real, parameter :: bar = sin (12.34 / 2.5)
16215 end program foo
6de9cd9a 16216_ACEOF
5213506e
RW
16217if ac_fn_fc_try_compile "$LINENO"; then :
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16219$as_echo "yes" >&6; }
6de9cd9a 16220else
5213506e
RW
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
22e05272 16223 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 16224
96b8a615 16225fi
5213506e 16226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
16227ac_ext=c
16228ac_cpp='$CPP $CPPFLAGS'
16229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16231ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 16232
96b8a615 16233
1cf3d07d 16234
5213506e
RW
16235# Check whether --enable-largefile was given.
16236if test "${enable_largefile+set}" = set; then :
16237 enableval=$enable_largefile;
16238fi
1cf3d07d 16239
1cf3d07d
SE
16240if test "$enable_largefile" != no; then
16241
5213506e
RW
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16243$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 16244if ${ac_cv_sys_largefile_CC+:} false; then :
5213506e 16245 $as_echo_n "(cached) " >&6
96b8a615 16246else
1cf3d07d
SE
16247 ac_cv_sys_largefile_CC=no
16248 if test "$GCC" != yes; then
16249 ac_save_CC=$CC
16250 while :; do
5213506e
RW
16251 # IRIX 6.2 and later do not support large files by default,
16252 # so use the C compiler's -n32 option if that helps.
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 16254/* end confdefs.h. */
1cf3d07d
SE
16255#include <sys/types.h>
16256 /* Check that off_t can represent 2**63 - 1 correctly.
16257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16258 since some C++ compilers masquerading as C compilers
16259 incorrectly reject 9223372036854775807. */
e9085da5 16260#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16262 && LARGE_OFF_T % 2147483647 == 1)
16263 ? 1 : -1];
4c4b3eb0
PB
16264int
16265main ()
16266{
4c4b3eb0
PB
16267
16268 ;
16269 return 0;
16270}
16271_ACEOF
5213506e
RW
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273 break
4c4b3eb0 16274fi
5213506e
RW
16275rm -f core conftest.err conftest.$ac_objext
16276 CC="$CC -n32"
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278 ac_cv_sys_largefile_CC=' -n32'; break
16279fi
16280rm -f core conftest.err conftest.$ac_objext
16281 break
16282 done
16283 CC=$ac_save_CC
16284 rm -f conftest.$ac_ext
16285 fi
16286fi
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16288$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16289 if test "$ac_cv_sys_largefile_CC" != no; then
16290 CC=$CC$ac_cv_sys_largefile_CC
16291 fi
4c4b3eb0 16292
5213506e
RW
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16294$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 16295if ${ac_cv_sys_file_offset_bits+:} false; then :
5213506e
RW
16296 $as_echo_n "(cached) " >&6
16297else
16298 while :; do
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16300/* end confdefs.h. */
5213506e
RW
16301#include <sys/types.h>
16302 /* Check that off_t can represent 2**63 - 1 correctly.
16303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16304 since some C++ compilers masquerading as C compilers
16305 incorrectly reject 9223372036854775807. */
e9085da5 16306#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16308 && LARGE_OFF_T % 2147483647 == 1)
16309 ? 1 : -1];
4c4b3eb0
PB
16310int
16311main ()
16312{
4c4b3eb0
PB
16313
16314 ;
16315 return 0;
16316}
16317_ACEOF
5213506e
RW
16318if ac_fn_c_try_compile "$LINENO"; then :
16319 ac_cv_sys_file_offset_bits=no; break
16320fi
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16323/* end confdefs.h. */
5213506e
RW
16324#define _FILE_OFFSET_BITS 64
16325#include <sys/types.h>
16326 /* Check that off_t can represent 2**63 - 1 correctly.
16327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16328 since some C++ compilers masquerading as C compilers
16329 incorrectly reject 9223372036854775807. */
e9085da5 16330#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16332 && LARGE_OFF_T % 2147483647 == 1)
16333 ? 1 : -1];
4c4b3eb0
PB
16334int
16335main ()
16336{
4c4b3eb0
PB
16337
16338 ;
16339 return 0;
16340}
16341_ACEOF
5213506e
RW
16342if ac_fn_c_try_compile "$LINENO"; then :
16343 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 16344fi
5213506e
RW
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 ac_cv_sys_file_offset_bits=unknown
16347 break
16348done
4c4b3eb0 16349fi
5213506e
RW
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16351$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16352case $ac_cv_sys_file_offset_bits in #(
16353 no | unknown) ;;
16354 *)
16355cat >>confdefs.h <<_ACEOF
16356#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 16357_ACEOF
5213506e
RW
16358;;
16359esac
16360rm -rf conftest*
16361 if test $ac_cv_sys_file_offset_bits = unknown; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16363$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 16364if ${ac_cv_sys_large_files+:} false; then :
5213506e
RW
16365 $as_echo_n "(cached) " >&6
16366else
16367 while :; do
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16369/* end confdefs.h. */
5213506e
RW
16370#include <sys/types.h>
16371 /* Check that off_t can represent 2**63 - 1 correctly.
16372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16373 since some C++ compilers masquerading as C compilers
16374 incorrectly reject 9223372036854775807. */
e9085da5 16375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16377 && LARGE_OFF_T % 2147483647 == 1)
16378 ? 1 : -1];
4c4b3eb0
PB
16379int
16380main ()
16381{
4c4b3eb0
PB
16382
16383 ;
16384 return 0;
16385}
16386_ACEOF
5213506e
RW
16387if ac_fn_c_try_compile "$LINENO"; then :
16388 ac_cv_sys_large_files=no; break
4c4b3eb0 16389fi
5213506e
RW
16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16392/* end confdefs.h. */
5213506e
RW
16393#define _LARGE_FILES 1
16394#include <sys/types.h>
16395 /* Check that off_t can represent 2**63 - 1 correctly.
16396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16397 since some C++ compilers masquerading as C compilers
16398 incorrectly reject 9223372036854775807. */
e9085da5 16399#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16401 && LARGE_OFF_T % 2147483647 == 1)
16402 ? 1 : -1];
4c4b3eb0
PB
16403int
16404main ()
16405{
16406
4c4b3eb0
PB
16407 ;
16408 return 0;
16409}
16410_ACEOF
5213506e
RW
16411if ac_fn_c_try_compile "$LINENO"; then :
16412 ac_cv_sys_large_files=1; break
4c4b3eb0 16413fi
5213506e
RW
16414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415 ac_cv_sys_large_files=unknown
16416 break
16417done
38d24731 16418fi
5213506e
RW
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16420$as_echo "$ac_cv_sys_large_files" >&6; }
16421case $ac_cv_sys_large_files in #(
16422 no | unknown) ;;
16423 *)
4c4b3eb0 16424cat >>confdefs.h <<_ACEOF
5213506e 16425#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 16426_ACEOF
5213506e
RW
16427;;
16428esac
16429rm -rf conftest*
16430 fi
22e05272
JM
16431
16432
4c4b3eb0
PB
16433fi
16434
44720bef
JB
16435
16436# Types
5213506e 16437ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22e05272 16438if test "x$ac_cv_type_off_t" = xyes; then :
4c4b3eb0 16439
5213506e 16440else
4c4b3eb0 16441
5213506e
RW
16442cat >>confdefs.h <<_ACEOF
16443#define off_t long int
16444_ACEOF
4c4b3eb0 16445
44720bef
JB
16446fi
16447
16448
16449 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22e05272 16450if test "x$ac_cv_type_intptr_t" = xyes; then :
44720bef
JB
16451
16452$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16453
16454else
16455 for ac_type in 'int' 'long int' 'long long int'; do
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457/* end confdefs.h. */
16458$ac_includes_default
16459int
16460main ()
16461{
16462static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16463test_array [0] = 0;
16464return test_array [0];
44720bef
JB
16465
16466 ;
16467 return 0;
16468}
16469_ACEOF
16470if ac_fn_c_try_compile "$LINENO"; then :
16471
16472cat >>confdefs.h <<_ACEOF
16473#define intptr_t $ac_type
16474_ACEOF
16475
16476 ac_type=
16477fi
16478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 test -z "$ac_type" && break
16480 done
16481fi
16482
16483
16484
16485 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22e05272 16486if test "x$ac_cv_type_uintptr_t" = xyes; then :
44720bef
JB
16487
16488$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16489
16490else
16491 for ac_type in 'unsigned int' 'unsigned long int' \
16492 'unsigned long long int'; do
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h. */
16495$ac_includes_default
16496int
16497main ()
16498{
16499static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16500test_array [0] = 0;
16501return test_array [0];
44720bef
JB
16502
16503 ;
16504 return 0;
16505}
16506_ACEOF
16507if ac_fn_c_try_compile "$LINENO"; then :
16508
16509cat >>confdefs.h <<_ACEOF
16510#define uintptr_t $ac_type
16511_ACEOF
16512
16513 ac_type=
16514fi
16515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 test -z "$ac_type" && break
16517 done
16518fi
16519
16520
16521ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22e05272 16522if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
44720bef
JB
16523
16524cat >>confdefs.h <<_ACEOF
16525#define HAVE_PTRDIFF_T 1
16526_ACEOF
16527
16528
4c4b3eb0
PB
16529fi
16530
4c4b3eb0 16531
74544378 16532# check header files (we assume C89 is available, so don't check for that)
df65f093 16533
5213506e 16534
df65f093 16535
74544378
JB
16536 for ac_header in $ac_header_list
16537do :
16538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16540"
22e05272 16541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
74544378
JB
16542 cat >>confdefs.h <<_ACEOF
16543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16544_ACEOF
16545
5213506e 16546fi
df65f093 16547
74544378 16548done
864c28e1
RO
16549
16550
df65f093 16551
5213506e 16552
5213506e 16553
df65f093 16554
5213506e 16555
5213506e 16556
df65f093 16557
df65f093 16558
df65f093
SK
16559
16560
df65f093 16561
df65f093 16562
df65f093
SK
16563
16564
df65f093
SK
16565
16566
41724e6a 16567
2cbcdeba 16568
3969c39f 16569
1fb2002d
FXC
16570
16571
32aa3bff 16572
f77b6ca3 16573
f77b6ca3 16574
f77b6ca3 16575
f77b6ca3 16576
f77b6ca3 16577
f77b6ca3 16578
fa86f4f9
TB
16579
16580
9cbecd06
JB
16581
16582
edaaef60
JB
16583
16584
f77b6ca3 16585
f77b6ca3 16586
6de9cd9a 16587
c13e029b 16588inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16589
c13e029b
PB
16590acx_cv_header_stdint=stddef.h
16591acx_cv_header_stdint_kind="(already complete)"
16592for i in stdint.h $inttype_headers; do
16593 unset ac_cv_type_uintptr_t
16594 unset ac_cv_type_uintmax_t
16595 unset ac_cv_type_int_least32_t
16596 unset ac_cv_type_int_fast32_t
16597 unset ac_cv_type_uint64_t
16598 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16599 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16600#include <$i>
16601"
22e05272 16602if test "x$ac_cv_type_uintmax_t" = xyes; then :
c13e029b 16603 acx_cv_header_stdint=$i
5213506e 16604else
c13e029b 16605 continue
5213506e 16606fi
6de9cd9a 16607
c13e029b
PB
16608 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16609#include <$i>
16610"
22e05272 16611if test "x$ac_cv_type_uintptr_t" = xyes; then :
96b8a615 16612
5213506e 16613else
c13e029b 16614 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16615fi
96b8a615 16616
c13e029b
PB
16617 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16618#include <$i>
16619"
22e05272 16620if test "x$ac_cv_type_int_least32_t" = xyes; then :
c13e029b 16621
f77b6ca3 16622else
c13e029b 16623 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16624fi
5213506e 16625
c13e029b
PB
16626 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16627#include <$i>
16628"
22e05272 16629if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f77b6ca3 16630
c13e029b
PB
16631else
16632 acx_cv_header_stdint_kind="(mostly complete)"
16633fi
d72a3ac1 16634
c13e029b
PB
16635 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16636#include <$i>
16637"
22e05272 16638if test "x$ac_cv_type_uint64_t" = xyes; then :
d72a3ac1 16639
5213506e 16640else
c13e029b
PB
16641 acx_cv_header_stdint_kind="(lacks uint64_t)"
16642fi
f77b6ca3 16643
c13e029b
PB
16644 break
16645done
16646if test "$acx_cv_header_stdint" = stddef.h; then
16647 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16648 for i in stdint.h $inttype_headers; do
16649 unset ac_cv_type_uintptr_t
16650 unset ac_cv_type_uint32_t
16651 unset ac_cv_type_uint64_t
16652 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16653 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16654#include <$i>
16655"
22e05272 16656if test "x$ac_cv_type_uint32_t" = xyes; then :
c13e029b
PB
16657 acx_cv_header_stdint=$i
16658else
16659 continue
5213506e 16660fi
f77b6ca3 16661
c13e029b
PB
16662 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16663#include <$i>
16664"
22e05272 16665if test "x$ac_cv_type_uint64_t" = xyes; then :
8845001b 16666
c13e029b 16667fi
185d7d97 16668
c13e029b
PB
16669 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16670#include <$i>
16671"
22e05272 16672if test "x$ac_cv_type_uintptr_t" = xyes; then :
185d7d97 16673
c13e029b 16674fi
35059811 16675
c13e029b
PB
16676 break
16677 done
16678fi
16679if test "$acx_cv_header_stdint" = stddef.h; then
16680 acx_cv_header_stdint_kind="(u_intXX_t style)"
16681 for i in sys/types.h $inttype_headers; do
16682 unset ac_cv_type_u_int32_t
16683 unset ac_cv_type_u_int64_t
16684 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16685 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16686#include <$i>
16687"
22e05272 16688if test "x$ac_cv_type_u_int32_t" = xyes; then :
c13e029b 16689 acx_cv_header_stdint=$i
d72a3ac1 16690else
c13e029b
PB
16691 continue
16692fi
a119fc1c 16693
c13e029b
PB
16694 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16695#include <$i>
16696"
22e05272 16697if test "x$ac_cv_type_u_int64_t" = xyes; then :
a119fc1c 16698
c13e029b 16699fi
a119fc1c 16700
c13e029b
PB
16701 break
16702 done
a119fc1c 16703fi
c13e029b
PB
16704if test "$acx_cv_header_stdint" = stddef.h; then
16705 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16706fi
a119fc1c 16707
c13e029b
PB
16708test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16709test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16710test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16711test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16712test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16713
c13e029b 16714# ----------------- Summarize what we found so far
5213506e 16715
c13e029b
PB
16716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16717$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16718
c13e029b
PB
16719case `$as_basename -- gstdint.h ||
16720$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16721 Xgstdint.h : 'X\(//\)$' \| \
16722 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16723$as_echo X/gstdint.h |
16724 sed '/^.*\/\([^/][^/]*\)\/*$/{
16725 s//\1/
16726 q
16727 }
16728 /^X\/\(\/\/\)$/{
16729 s//\1/
16730 q
16731 }
16732 /^X\/\(\/\).*/{
16733 s//\1/
16734 q
16735 }
16736 s/.*/./; q'` in
16737 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16738$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16739 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16740$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16741 *) ;;
16742esac
a119fc1c 16743
c13e029b
PB
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16745$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16746
c13e029b 16747# ----------------- done included file, check C basic types --------
868d75db 16748
c13e029b
PB
16749# Lacking an uintptr_t? Test size of void *
16750case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16751 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16754# This bug is HP SR number 8606223364.
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16756$as_echo_n "checking size of void *... " >&6; }
22e05272 16757if ${ac_cv_sizeof_void_p+:} false; then :
c13e029b
PB
16758 $as_echo_n "(cached) " >&6
16759else
16760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16761
c13e029b
PB
16762else
16763 if test "$ac_cv_type_void_p" = yes; then
16764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16766as_fn_error 77 "cannot compute sizeof (void *)
16767See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16768 else
16769 ac_cv_sizeof_void_p=0
16770 fi
16771fi
d72a3ac1 16772
c13e029b
PB
16773fi
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16775$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16776
868d75db
FXC
16777
16778
d72a3ac1 16779cat >>confdefs.h <<_ACEOF
c13e029b 16780#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16781_ACEOF
d72a3ac1 16782
c13e029b
PB
16783 ;;
16784esac
d72a3ac1 16785
c13e029b
PB
16786# Lacking an uint64_t? Test size of long
16787case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16788 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16789# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16790# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16791# This bug is HP SR number 8606223364.
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16793$as_echo_n "checking size of long... " >&6; }
22e05272 16794if ${ac_cv_sizeof_long+:} false; then :
5213506e
RW
16795 $as_echo_n "(cached) " >&6
16796else
c13e029b 16797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16798
7f483eec 16799else
c13e029b
PB
16800 if test "$ac_cv_type_long" = yes; then
16801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16803as_fn_error 77 "cannot compute sizeof (long)
16804See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16805 else
16806 ac_cv_sizeof_long=0
16807 fi
5213506e 16808fi
7f483eec 16809
c13e029b
PB
16810fi
16811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16812$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16813
7f483eec 16814
d72a3ac1
PB
16815
16816cat >>confdefs.h <<_ACEOF
c13e029b 16817#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16818_ACEOF
7f483eec 16819
c13e029b
PB
16820 ;;
16821esac
29e86cb0 16822
c13e029b
PB
16823if test $acx_cv_header_stdint = stddef.h; then
16824 # Lacking a good header? Test size of everything and deduce all types.
16825 # The cast to long int works around a bug in the HP C Compiler
16826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16828# This bug is HP SR number 8606223364.
16829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16830$as_echo_n "checking size of int... " >&6; }
22e05272 16831if ${ac_cv_sizeof_int+:} false; then :
c13e029b
PB
16832 $as_echo_n "(cached) " >&6
16833else
16834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16835
c13e029b
PB
16836else
16837 if test "$ac_cv_type_int" = yes; then
16838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16840as_fn_error 77 "cannot compute sizeof (int)
16841See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16842 else
16843 ac_cv_sizeof_int=0
16844 fi
16845fi
d8163f5c 16846
c13e029b
PB
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16849$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16850
16851
868d75db 16852
d72a3ac1 16853cat >>confdefs.h <<_ACEOF
c13e029b 16854#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16855_ACEOF
16856
d72a3ac1 16857
c13e029b
PB
16858 # The cast to long int works around a bug in the HP C Compiler
16859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16861# This bug is HP SR number 8606223364.
16862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16863$as_echo_n "checking size of short... " >&6; }
22e05272 16864if ${ac_cv_sizeof_short+:} false; then :
c13e029b
PB
16865 $as_echo_n "(cached) " >&6
16866else
16867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16868
c13e029b
PB
16869else
16870 if test "$ac_cv_type_short" = yes; then
16871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16873as_fn_error 77 "cannot compute sizeof (short)
16874See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16875 else
16876 ac_cv_sizeof_short=0
16877 fi
16878fi
d72a3ac1 16879
c13e029b
PB
16880fi
16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16882$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16883
16884
16885
c13e029b
PB
16886cat >>confdefs.h <<_ACEOF
16887#define SIZEOF_SHORT $ac_cv_sizeof_short
16888_ACEOF
d72a3ac1
PB
16889
16890
c13e029b
PB
16891 # The cast to long int works around a bug in the HP C Compiler
16892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16894# This bug is HP SR number 8606223364.
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16896$as_echo_n "checking size of char... " >&6; }
22e05272 16897if ${ac_cv_sizeof_char+:} false; then :
c13e029b
PB
16898 $as_echo_n "(cached) " >&6
16899else
16900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16901
c13e029b
PB
16902else
16903 if test "$ac_cv_type_char" = yes; then
16904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16906as_fn_error 77 "cannot compute sizeof (char)
16907See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16908 else
16909 ac_cv_sizeof_char=0
16910 fi
16911fi
d72a3ac1 16912
c13e029b
PB
16913fi
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16915$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16916
16917
d72a3ac1 16918
5213506e 16919cat >>confdefs.h <<_ACEOF
c13e029b 16920#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16921_ACEOF
868d75db 16922
868d75db 16923
2017c370 16924
c13e029b
PB
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16926$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16927 case "$ac_cv_sizeof_char" in
16928 1) acx_cv_type_int8_t=char ;;
22e05272 16929 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16930 esac
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16932$as_echo "$acx_cv_type_int8_t" >&6; }
16933
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16935$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16936 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16937 2:*) acx_cv_type_int16_t=int ;;
16938 *:2) acx_cv_type_int16_t=short ;;
22e05272 16939 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16940 esac
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16942$as_echo "$acx_cv_type_int16_t" >&6; }
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16945$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16946 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16947 4:*) acx_cv_type_int32_t=int ;;
16948 *:4) acx_cv_type_int32_t=long ;;
22e05272 16949 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16950 esac
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16952$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16953fi
16954
c13e029b 16955# These tests are here to make the output prettier
d72a3ac1 16956
c13e029b
PB
16957if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16958 case "$ac_cv_sizeof_long" in
16959 8) acx_cv_type_int64_t=long ;;
16960 esac
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16962$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16964$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16965fi
16966
16967# Now we can use the above types
16968
16969if test "$ac_cv_type_uintptr_t" != yes; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16971$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16972 case $ac_cv_sizeof_void_p in
16973 2) acx_cv_type_intptr_t=int16_t ;;
16974 4) acx_cv_type_intptr_t=int32_t ;;
16975 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16976 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16977 esac
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16979$as_echo "$acx_cv_type_intptr_t" >&6; }
16980fi
d72a3ac1 16981
c13e029b 16982# ----------------- done all checks, emit header -------------
5213506e 16983ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16984
2017c370 16985
5213506e
RW
16986
16987
16988ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22e05272 16989if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5213506e
RW
16990
16991cat >>confdefs.h <<_ACEOF
16992#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16993_ACEOF
2017c370 16994
5213506e 16995
2017c370 16996fi
5213506e 16997ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22e05272 16998if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5213506e
RW
16999
17000cat >>confdefs.h <<_ACEOF
17001#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
17002_ACEOF
17003
5213506e 17004
2017c370 17005fi
5213506e 17006ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22e05272 17007if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
2017c370 17008
5213506e
RW
17009cat >>confdefs.h <<_ACEOF
17010#define HAVE_STRUCT_STAT_ST_RDEV 1
17011_ACEOF
868d75db
FXC
17012
17013
f02d008e 17014fi
5213506e
RW
17015
17016
bd459d0b
JG
17017case "${host}--x${with_newlib}" in
17018 mips*--xyes)
17019 hardwire_newlib=1;;
d3ca2257
NS
17020 nvptx*--xyes)
17021 hardwire_newlib=1;;
bd459d0b
JG
17022esac
17023
5213506e 17024# Check for library functions.
bd459d0b 17025if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
17026 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
17027 # may not work correctly, because the compiler may not be able to
17028 # link executables.
17029
17030$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17031
17032
17033$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
17034
17035
b4005c71
SE
17036$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17037
17038
b4005c71
SE
17039$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17040
17041
17042$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17043
17044
17045$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17046
cb83df66 17047
ebfedee6
HPN
17048$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17049
17050
17051$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17052
17053
cb83df66
SE
17054 # At some point, we should differentiate between architectures
17055 # like x86, which have long double versions, and alpha/powerpc/etc.,
17056 # which don't. For the time being, punt.
17057 if test x"long_double_math_on_this_cpu" = x"yes"; then
17058
17059$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
17060
17061 fi
b4005c71 17062else
f77b6ca3 17063
f77b6ca3 17064
74544378
JB
17065
17066 for ac_func in $ac_func_list
5213506e
RW
17067do :
17068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17069ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 17070if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5213506e
RW
17071 cat >>confdefs.h <<_ACEOF
17072#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17073_ACEOF
f77b6ca3 17074
5213506e
RW
17075fi
17076done
f77b6ca3 17077
f77b6ca3 17078
5213506e 17079
96b8a615 17080
5213506e 17081
5213506e 17082
5213506e 17083
6de9cd9a 17084
6de9cd9a 17085
b6e7a3d1 17086
b6e7a3d1 17087
6de9cd9a 17088
4c0c6b9f 17089
4c0c6b9f 17090
4c0c6b9f 17091
4c0c6b9f 17092
4c0c6b9f 17093
4c0c6b9f 17094
4c0c6b9f 17095
4c0c6b9f 17096
868d75db 17097
868d75db 17098
868d75db 17099
868d75db 17100
4c0c6b9f 17101
4c0c6b9f 17102
4c0c6b9f 17103
4c0c6b9f 17104
6422c112 17105
6422c112 17106
6422c112 17107
74544378
JB
17108
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
68ee9c08 17164
227e441f 17165
9cbecd06
JB
17166
17167
4269f19c
JB
17168
17169
b5b58343
UW
17170
17171
70480968
JB
17172
17173
d66d6d15
JB
17174
17175
edaaef60
JB
17176
17177
ef536b41
JB
17178
17179
17180
17181
f8886038
JB
17182
17183
227e441f 17184
8ecd1c0d
TB
17185
17186
b4005c71 17187fi
74544378 17188
4179e59a
TB
17189# Check strerror_r, cannot be above as versions with two and three arguments exist
17190
17191 ac_save_CFLAGS="$CFLAGS"
17192 CFLAGS="-Wimplicit-function-declaration -Werror"
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194/* end confdefs.h. */
17195#define _GNU_SOURCE 1
17196 #include <string.h>
17197 #include <locale.h>
17198int
17199main ()
17200{
17201char s[128]; strerror_r(5, s, 128);
17202 ;
17203 return 0;
17204}
17205_ACEOF
17206if ac_fn_c_try_compile "$LINENO"; then :
17207
17208$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17209
17210fi
17211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 CFLAGS="$ac_save_CFLAGS"
17213
17214 ac_save_CFLAGS="$CFLAGS"
17215 CFLAGS="-Wimplicit-function-declaration -Werror"
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h. */
17218#define _GNU_SOURCE 1
17219 #include <string.h>
17220 #include <locale.h>
17221int
17222main ()
17223{
17224char s[128]; strerror_r(5, s);
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229if ac_fn_c_try_compile "$LINENO"; then :
17230
17231$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17232
17233fi
17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 CFLAGS="$ac_save_CFLAGS"
6422c112 17236
4c0c6b9f 17237
453310d8 17238# Check for C99 (and other IEEE) math functions
db9f46a9
TG
17239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17240$as_echo_n "checking for sin in -lm... " >&6; }
22e05272 17241if ${ac_cv_lib_m_sin+:} false; then :
5213506e 17242 $as_echo_n "(cached) " >&6
453310d8
RS
17243else
17244 ac_check_lib_save_LIBS=$LIBS
17245LIBS="-lm $LIBS"
f02d008e 17246if test x$gcc_no_link = xyes; then
22e05272 17247 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17248fi
5213506e 17249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17250/* end confdefs.h. */
17251
5213506e
RW
17252/* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
453310d8
RS
17255#ifdef __cplusplus
17256extern "C"
17257#endif
db9f46a9 17258char sin ();
453310d8
RS
17259int
17260main ()
17261{
db9f46a9 17262return sin ();
453310d8
RS
17263 ;
17264 return 0;
17265}
17266_ACEOF
5213506e 17267if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17268 ac_cv_lib_m_sin=yes
453310d8 17269else
db9f46a9 17270 ac_cv_lib_m_sin=no
453310d8 17271fi
5213506e
RW
17272rm -f core conftest.err conftest.$ac_objext \
17273 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17274LIBS=$ac_check_lib_save_LIBS
17275fi
db9f46a9
TG
17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17277$as_echo "$ac_cv_lib_m_sin" >&6; }
22e05272 17278if test "x$ac_cv_lib_m_sin" = xyes; then :
db9f46a9
TG
17279 cat >>confdefs.h <<_ACEOF
17280#define HAVE_LIBM 1
17281_ACEOF
453310d8 17282
db9f46a9 17283 LIBS="-lm $LIBS"
453310d8
RS
17284
17285fi
17286
db9f46a9
TG
17287
17288
17289
17290
17291
17292
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17294$as_echo_n "checking for acosf... " >&6; }
22e05272 17295if ${gcc_cv_math_func_acosf+:} false; then :
5213506e 17296 $as_echo_n "(cached) " >&6
f02d008e 17297else
db9f46a9 17298 if test x$gcc_no_link = xyes; then
22e05272 17299 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17300fi
5213506e 17301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17302/* end confdefs.h. */
17303
db9f46a9
TG
17304#ifdef HAVE_COMPLEX_H
17305#include <complex.h>
17306#endif
17307#ifdef HAVE_MATH_H
17308#include <math.h>
f02d008e 17309#endif
db9f46a9
TG
17310
17311int (*ptr)() = (int (*)())acosf;
17312
f02d008e
JD
17313int
17314main ()
17315{
f02d008e
JD
17316 return 0;
17317}
db9f46a9 17318
f02d008e 17319_ACEOF
5213506e 17320if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17321 gcc_cv_math_func_acosf=yes
f02d008e 17322else
db9f46a9 17323 gcc_cv_math_func_acosf=no
f02d008e 17324fi
5213506e
RW
17325rm -f core conftest.err conftest.$ac_objext \
17326 conftest$ac_exeext conftest.$ac_ext
f02d008e 17327fi
db9f46a9
TG
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17329$as_echo "$gcc_cv_math_func_acosf" >&6; }
17330 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 17331
f38a14ca
TG
17332cat >>confdefs.h <<_ACEOF
17333#define HAVE_ACOSF 1
17334_ACEOF
db9f46a9
TG
17335
17336 fi
f02d008e 17337
f02d008e 17338
f02d008e 17339
db9f46a9
TG
17340
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17342$as_echo_n "checking for acos... " >&6; }
22e05272 17343if ${gcc_cv_math_func_acos+:} false; then :
5213506e 17344 $as_echo_n "(cached) " >&6
453310d8 17345else
db9f46a9 17346 if test x$gcc_no_link = xyes; then
22e05272 17347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17348fi
5213506e 17349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17350/* end confdefs.h. */
17351
db9f46a9
TG
17352#ifdef HAVE_COMPLEX_H
17353#include <complex.h>
453310d8 17354#endif
db9f46a9
TG
17355#ifdef HAVE_MATH_H
17356#include <math.h>
17357#endif
17358
17359int (*ptr)() = (int (*)())acos;
17360
453310d8
RS
17361int
17362main ()
17363{
453310d8
RS
17364 return 0;
17365}
db9f46a9 17366
453310d8 17367_ACEOF
5213506e 17368if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17369 gcc_cv_math_func_acos=yes
453310d8 17370else
db9f46a9 17371 gcc_cv_math_func_acos=no
453310d8 17372fi
5213506e
RW
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
453310d8 17375fi
db9f46a9
TG
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17377$as_echo "$gcc_cv_math_func_acos" >&6; }
17378 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 17379
f38a14ca
TG
17380cat >>confdefs.h <<_ACEOF
17381#define HAVE_ACOS 1
17382_ACEOF
db9f46a9
TG
17383
17384 fi
17385
453310d8 17386
453310d8 17387
453310d8 17388
db9f46a9
TG
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17390$as_echo_n "checking for acosl... " >&6; }
22e05272 17391if ${gcc_cv_math_func_acosl+:} false; then :
5213506e 17392 $as_echo_n "(cached) " >&6
f02d008e 17393else
db9f46a9 17394 if test x$gcc_no_link = xyes; then
22e05272 17395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17396fi
5213506e 17397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17398/* end confdefs.h. */
17399
db9f46a9
TG
17400#ifdef HAVE_COMPLEX_H
17401#include <complex.h>
17402#endif
17403#ifdef HAVE_MATH_H
17404#include <math.h>
f02d008e 17405#endif
db9f46a9
TG
17406
17407int (*ptr)() = (int (*)())acosl;
17408
f02d008e
JD
17409int
17410main ()
17411{
f02d008e
JD
17412 return 0;
17413}
db9f46a9 17414
f02d008e 17415_ACEOF
5213506e 17416if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17417 gcc_cv_math_func_acosl=yes
f02d008e 17418else
db9f46a9 17419 gcc_cv_math_func_acosl=no
f02d008e 17420fi
5213506e
RW
17421rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
f02d008e 17423fi
db9f46a9
TG
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17425$as_echo "$gcc_cv_math_func_acosl" >&6; }
17426 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 17427
f38a14ca
TG
17428cat >>confdefs.h <<_ACEOF
17429#define HAVE_ACOSL 1
17430_ACEOF
db9f46a9
TG
17431
17432 fi
f02d008e 17433
f02d008e 17434
f02d008e 17435
db9f46a9
TG
17436
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17438$as_echo_n "checking for acoshf... " >&6; }
22e05272 17439if ${gcc_cv_math_func_acoshf+:} false; then :
5213506e 17440 $as_echo_n "(cached) " >&6
453310d8 17441else
db9f46a9 17442 if test x$gcc_no_link = xyes; then
22e05272 17443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17444fi
5213506e 17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17446/* end confdefs.h. */
17447
db9f46a9
TG
17448#ifdef HAVE_COMPLEX_H
17449#include <complex.h>
453310d8 17450#endif
db9f46a9
TG
17451#ifdef HAVE_MATH_H
17452#include <math.h>
17453#endif
17454
17455int (*ptr)() = (int (*)())acoshf;
17456
453310d8
RS
17457int
17458main ()
17459{
453310d8
RS
17460 return 0;
17461}
db9f46a9 17462
453310d8 17463_ACEOF
5213506e 17464if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17465 gcc_cv_math_func_acoshf=yes
453310d8 17466else
db9f46a9 17467 gcc_cv_math_func_acoshf=no
453310d8 17468fi
5213506e
RW
17469rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
453310d8 17471fi
db9f46a9
TG
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17473$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17474 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 17475
f38a14ca
TG
17476cat >>confdefs.h <<_ACEOF
17477#define HAVE_ACOSHF 1
17478_ACEOF
453310d8 17479
db9f46a9 17480 fi
453310d8 17481
453310d8 17482
db9f46a9
TG
17483
17484
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17486$as_echo_n "checking for acosh... " >&6; }
22e05272 17487if ${gcc_cv_math_func_acosh+:} false; then :
5213506e 17488 $as_echo_n "(cached) " >&6
453310d8 17489else
db9f46a9 17490 if test x$gcc_no_link = xyes; then
22e05272 17491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17492fi
5213506e 17493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17494/* end confdefs.h. */
17495
db9f46a9
TG
17496#ifdef HAVE_COMPLEX_H
17497#include <complex.h>
17498#endif
17499#ifdef HAVE_MATH_H
17500#include <math.h>
453310d8 17501#endif
db9f46a9
TG
17502
17503int (*ptr)() = (int (*)())acosh;
17504
453310d8
RS
17505int
17506main ()
17507{
5213506e
RW
17508 return 0;
17509}
db9f46a9 17510
5213506e
RW
17511_ACEOF
17512if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17513 gcc_cv_math_func_acosh=yes
453310d8 17514else
db9f46a9 17515 gcc_cv_math_func_acosh=no
453310d8 17516fi
5213506e
RW
17517rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
453310d8 17519fi
db9f46a9
TG
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17521$as_echo "$gcc_cv_math_func_acosh" >&6; }
17522 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17523
f38a14ca
TG
17524cat >>confdefs.h <<_ACEOF
17525#define HAVE_ACOSH 1
17526_ACEOF
db9f46a9
TG
17527
17528 fi
453310d8 17529
453310d8 17530
453310d8 17531
db9f46a9
TG
17532
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17534$as_echo_n "checking for acoshl... " >&6; }
22e05272 17535if ${gcc_cv_math_func_acoshl+:} false; then :
5213506e 17536 $as_echo_n "(cached) " >&6
f02d008e 17537else
db9f46a9 17538 if test x$gcc_no_link = xyes; then
22e05272 17539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17540fi
5213506e 17541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17542/* end confdefs.h. */
17543
db9f46a9
TG
17544#ifdef HAVE_COMPLEX_H
17545#include <complex.h>
f02d008e 17546#endif
db9f46a9
TG
17547#ifdef HAVE_MATH_H
17548#include <math.h>
17549#endif
17550
17551int (*ptr)() = (int (*)())acoshl;
17552
f02d008e
JD
17553int
17554main ()
17555{
f02d008e
JD
17556 return 0;
17557}
db9f46a9 17558
f02d008e 17559_ACEOF
5213506e 17560if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17561 gcc_cv_math_func_acoshl=yes
f02d008e 17562else
db9f46a9 17563 gcc_cv_math_func_acoshl=no
f02d008e 17564fi
5213506e
RW
17565rm -f core conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
f02d008e 17567fi
db9f46a9
TG
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17569$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17570 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17571
f38a14ca
TG
17572cat >>confdefs.h <<_ACEOF
17573#define HAVE_ACOSHL 1
17574_ACEOF
db9f46a9
TG
17575
17576 fi
17577
f02d008e 17578
f02d008e 17579
f02d008e 17580
db9f46a9
TG
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17582$as_echo_n "checking for asinf... " >&6; }
22e05272 17583if ${gcc_cv_math_func_asinf+:} false; then :
5213506e 17584 $as_echo_n "(cached) " >&6
453310d8 17585else
db9f46a9 17586 if test x$gcc_no_link = xyes; then
22e05272 17587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17588fi
5213506e 17589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17590/* end confdefs.h. */
17591
db9f46a9
TG
17592#ifdef HAVE_COMPLEX_H
17593#include <complex.h>
17594#endif
17595#ifdef HAVE_MATH_H
17596#include <math.h>
453310d8 17597#endif
db9f46a9
TG
17598
17599int (*ptr)() = (int (*)())asinf;
17600
453310d8
RS
17601int
17602main ()
17603{
453310d8
RS
17604 return 0;
17605}
db9f46a9 17606
453310d8 17607_ACEOF
5213506e 17608if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17609 gcc_cv_math_func_asinf=yes
453310d8 17610else
db9f46a9 17611 gcc_cv_math_func_asinf=no
453310d8 17612fi
5213506e
RW
17613rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
453310d8 17615fi
db9f46a9
TG
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17617$as_echo "$gcc_cv_math_func_asinf" >&6; }
17618 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17619
f38a14ca
TG
17620cat >>confdefs.h <<_ACEOF
17621#define HAVE_ASINF 1
17622_ACEOF
db9f46a9
TG
17623
17624 fi
453310d8 17625
453310d8 17626
453310d8 17627
db9f46a9
TG
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17630$as_echo_n "checking for asin... " >&6; }
22e05272 17631if ${gcc_cv_math_func_asin+:} false; then :
5213506e 17632 $as_echo_n "(cached) " >&6
453310d8 17633else
db9f46a9 17634 if test x$gcc_no_link = xyes; then
22e05272 17635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17636fi
5213506e 17637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17638/* end confdefs.h. */
17639
db9f46a9
TG
17640#ifdef HAVE_COMPLEX_H
17641#include <complex.h>
453310d8 17642#endif
db9f46a9
TG
17643#ifdef HAVE_MATH_H
17644#include <math.h>
17645#endif
17646
17647int (*ptr)() = (int (*)())asin;
17648
453310d8
RS
17649int
17650main ()
17651{
453310d8
RS
17652 return 0;
17653}
db9f46a9 17654
453310d8 17655_ACEOF
5213506e 17656if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17657 gcc_cv_math_func_asin=yes
453310d8 17658else
db9f46a9 17659 gcc_cv_math_func_asin=no
453310d8 17660fi
5213506e
RW
17661rm -f core conftest.err conftest.$ac_objext \
17662 conftest$ac_exeext conftest.$ac_ext
453310d8 17663fi
db9f46a9
TG
17664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17665$as_echo "$gcc_cv_math_func_asin" >&6; }
17666 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17667
f38a14ca
TG
17668cat >>confdefs.h <<_ACEOF
17669#define HAVE_ASIN 1
17670_ACEOF
453310d8 17671
db9f46a9 17672 fi
453310d8 17673
453310d8 17674
db9f46a9
TG
17675
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17678$as_echo_n "checking for asinl... " >&6; }
22e05272 17679if ${gcc_cv_math_func_asinl+:} false; then :
5213506e 17680 $as_echo_n "(cached) " >&6
453310d8 17681else
db9f46a9 17682 if test x$gcc_no_link = xyes; then
22e05272 17683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17684fi
5213506e 17685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17686/* end confdefs.h. */
17687
db9f46a9
TG
17688#ifdef HAVE_COMPLEX_H
17689#include <complex.h>
17690#endif
17691#ifdef HAVE_MATH_H
17692#include <math.h>
453310d8 17693#endif
db9f46a9
TG
17694
17695int (*ptr)() = (int (*)())asinl;
17696
453310d8
RS
17697int
17698main ()
17699{
453310d8
RS
17700 return 0;
17701}
db9f46a9 17702
453310d8 17703_ACEOF
5213506e 17704if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17705 gcc_cv_math_func_asinl=yes
453310d8 17706else
db9f46a9 17707 gcc_cv_math_func_asinl=no
453310d8 17708fi
5213506e
RW
17709rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
453310d8 17711fi
db9f46a9
TG
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17713$as_echo "$gcc_cv_math_func_asinl" >&6; }
17714 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17715
f38a14ca
TG
17716cat >>confdefs.h <<_ACEOF
17717#define HAVE_ASINL 1
17718_ACEOF
db9f46a9
TG
17719
17720 fi
453310d8 17721
453310d8 17722
453310d8 17723
db9f46a9
TG
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17726$as_echo_n "checking for asinhf... " >&6; }
22e05272 17727if ${gcc_cv_math_func_asinhf+:} false; then :
5213506e 17728 $as_echo_n "(cached) " >&6
453310d8 17729else
db9f46a9 17730 if test x$gcc_no_link = xyes; then
22e05272 17731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17732fi
5213506e 17733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17734/* end confdefs.h. */
17735
db9f46a9
TG
17736#ifdef HAVE_COMPLEX_H
17737#include <complex.h>
453310d8 17738#endif
db9f46a9
TG
17739#ifdef HAVE_MATH_H
17740#include <math.h>
17741#endif
17742
17743int (*ptr)() = (int (*)())asinhf;
17744
453310d8
RS
17745int
17746main ()
17747{
453310d8
RS
17748 return 0;
17749}
db9f46a9 17750
453310d8 17751_ACEOF
5213506e 17752if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17753 gcc_cv_math_func_asinhf=yes
453310d8 17754else
db9f46a9 17755 gcc_cv_math_func_asinhf=no
453310d8 17756fi
5213506e
RW
17757rm -f core conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
453310d8 17759fi
db9f46a9
TG
17760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17761$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17762 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17763
f38a14ca
TG
17764cat >>confdefs.h <<_ACEOF
17765#define HAVE_ASINHF 1
17766_ACEOF
db9f46a9
TG
17767
17768 fi
17769
453310d8 17770
453310d8 17771
453310d8 17772
db9f46a9
TG
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17774$as_echo_n "checking for asinh... " >&6; }
22e05272 17775if ${gcc_cv_math_func_asinh+:} false; then :
5213506e 17776 $as_echo_n "(cached) " >&6
453310d8 17777else
db9f46a9 17778 if test x$gcc_no_link = xyes; then
22e05272 17779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17780fi
5213506e 17781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17782/* end confdefs.h. */
17783
db9f46a9
TG
17784#ifdef HAVE_COMPLEX_H
17785#include <complex.h>
17786#endif
17787#ifdef HAVE_MATH_H
17788#include <math.h>
453310d8 17789#endif
db9f46a9
TG
17790
17791int (*ptr)() = (int (*)())asinh;
17792
453310d8
RS
17793int
17794main ()
17795{
453310d8
RS
17796 return 0;
17797}
db9f46a9 17798
453310d8 17799_ACEOF
5213506e 17800if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17801 gcc_cv_math_func_asinh=yes
453310d8 17802else
db9f46a9 17803 gcc_cv_math_func_asinh=no
453310d8 17804fi
5213506e
RW
17805rm -f core conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
453310d8 17807fi
db9f46a9
TG
17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17809$as_echo "$gcc_cv_math_func_asinh" >&6; }
17810 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17811
f38a14ca
TG
17812cat >>confdefs.h <<_ACEOF
17813#define HAVE_ASINH 1
17814_ACEOF
db9f46a9
TG
17815
17816 fi
453310d8 17817
453310d8 17818
453310d8 17819
db9f46a9
TG
17820
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17822$as_echo_n "checking for asinhl... " >&6; }
22e05272 17823if ${gcc_cv_math_func_asinhl+:} false; then :
5213506e 17824 $as_echo_n "(cached) " >&6
6e4d9244 17825else
db9f46a9 17826 if test x$gcc_no_link = xyes; then
22e05272 17827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17828fi
5213506e 17829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17830/* end confdefs.h. */
17831
db9f46a9
TG
17832#ifdef HAVE_COMPLEX_H
17833#include <complex.h>
6e4d9244 17834#endif
db9f46a9
TG
17835#ifdef HAVE_MATH_H
17836#include <math.h>
17837#endif
17838
17839int (*ptr)() = (int (*)())asinhl;
17840
6e4d9244
EB
17841int
17842main ()
17843{
6e4d9244
EB
17844 return 0;
17845}
db9f46a9 17846
6e4d9244 17847_ACEOF
5213506e 17848if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17849 gcc_cv_math_func_asinhl=yes
6e4d9244 17850else
db9f46a9 17851 gcc_cv_math_func_asinhl=no
6e4d9244 17852fi
5213506e
RW
17853rm -f core conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17855fi
db9f46a9
TG
17856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17857$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17858 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17859
f38a14ca
TG
17860cat >>confdefs.h <<_ACEOF
17861#define HAVE_ASINHL 1
17862_ACEOF
6e4d9244 17863
db9f46a9 17864 fi
6e4d9244 17865
6e4d9244 17866
db9f46a9
TG
17867
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17870$as_echo_n "checking for atan2f... " >&6; }
22e05272 17871if ${gcc_cv_math_func_atan2f+:} false; then :
5213506e 17872 $as_echo_n "(cached) " >&6
453310d8 17873else
db9f46a9 17874 if test x$gcc_no_link = xyes; then
22e05272 17875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17876fi
5213506e 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17878/* end confdefs.h. */
17879
db9f46a9
TG
17880#ifdef HAVE_COMPLEX_H
17881#include <complex.h>
453310d8 17882#endif
db9f46a9
TG
17883#ifdef HAVE_MATH_H
17884#include <math.h>
17885#endif
17886
17887int (*ptr)() = (int (*)())atan2f;
17888
17889int
453310d8
RS
17890main ()
17891{
453310d8
RS
17892 return 0;
17893}
db9f46a9 17894
453310d8 17895_ACEOF
5213506e 17896if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17897 gcc_cv_math_func_atan2f=yes
453310d8 17898else
db9f46a9 17899 gcc_cv_math_func_atan2f=no
453310d8 17900fi
5213506e
RW
17901rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
453310d8 17903fi
db9f46a9
TG
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17905$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17906 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17907
f38a14ca
TG
17908cat >>confdefs.h <<_ACEOF
17909#define HAVE_ATAN2F 1
17910_ACEOF
db9f46a9
TG
17911
17912 fi
453310d8 17913
453310d8 17914
453310d8 17915
db9f46a9
TG
17916
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17918$as_echo_n "checking for atan2... " >&6; }
22e05272 17919if ${gcc_cv_math_func_atan2+:} false; then :
5213506e 17920 $as_echo_n "(cached) " >&6
453310d8 17921else
db9f46a9 17922 if test x$gcc_no_link = xyes; then
22e05272 17923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17924fi
5213506e 17925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17926/* end confdefs.h. */
17927
db9f46a9
TG
17928#ifdef HAVE_COMPLEX_H
17929#include <complex.h>
453310d8 17930#endif
db9f46a9
TG
17931#ifdef HAVE_MATH_H
17932#include <math.h>
17933#endif
17934
17935int (*ptr)() = (int (*)())atan2;
17936
453310d8
RS
17937int
17938main ()
17939{
453310d8
RS
17940 return 0;
17941}
db9f46a9 17942
453310d8 17943_ACEOF
5213506e 17944if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17945 gcc_cv_math_func_atan2=yes
453310d8 17946else
db9f46a9 17947 gcc_cv_math_func_atan2=no
453310d8 17948fi
5213506e
RW
17949rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
453310d8 17951fi
db9f46a9
TG
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17953$as_echo "$gcc_cv_math_func_atan2" >&6; }
17954 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17955
f38a14ca
TG
17956cat >>confdefs.h <<_ACEOF
17957#define HAVE_ATAN2 1
17958_ACEOF
453310d8 17959
db9f46a9 17960 fi
453310d8 17961
453310d8 17962
db9f46a9
TG
17963
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17966$as_echo_n "checking for atan2l... " >&6; }
22e05272 17967if ${gcc_cv_math_func_atan2l+:} false; then :
5213506e 17968 $as_echo_n "(cached) " >&6
453310d8 17969else
db9f46a9 17970 if test x$gcc_no_link = xyes; then
22e05272 17971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17972fi
5213506e 17973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17974/* end confdefs.h. */
17975
db9f46a9
TG
17976#ifdef HAVE_COMPLEX_H
17977#include <complex.h>
17978#endif
17979#ifdef HAVE_MATH_H
17980#include <math.h>
453310d8 17981#endif
db9f46a9
TG
17982
17983int (*ptr)() = (int (*)())atan2l;
17984
453310d8
RS
17985int
17986main ()
17987{
453310d8
RS
17988 return 0;
17989}
db9f46a9 17990
453310d8 17991_ACEOF
5213506e 17992if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17993 gcc_cv_math_func_atan2l=yes
453310d8 17994else
db9f46a9 17995 gcc_cv_math_func_atan2l=no
453310d8 17996fi
5213506e
RW
17997rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
453310d8 17999fi
db9f46a9
TG
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
18001$as_echo "$gcc_cv_math_func_atan2l" >&6; }
18002 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 18003
f38a14ca
TG
18004cat >>confdefs.h <<_ACEOF
18005#define HAVE_ATAN2L 1
18006_ACEOF
db9f46a9
TG
18007
18008 fi
453310d8 18009
453310d8 18010
453310d8 18011
db9f46a9
TG
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
18014$as_echo_n "checking for atanf... " >&6; }
22e05272 18015if ${gcc_cv_math_func_atanf+:} false; then :
5213506e 18016 $as_echo_n "(cached) " >&6
453310d8 18017else
db9f46a9 18018 if test x$gcc_no_link = xyes; then
22e05272 18019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18020fi
5213506e 18021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18022/* end confdefs.h. */
18023
db9f46a9
TG
18024#ifdef HAVE_COMPLEX_H
18025#include <complex.h>
453310d8 18026#endif
db9f46a9
TG
18027#ifdef HAVE_MATH_H
18028#include <math.h>
18029#endif
18030
18031int (*ptr)() = (int (*)())atanf;
18032
453310d8
RS
18033int
18034main ()
18035{
453310d8
RS
18036 return 0;
18037}
db9f46a9 18038
453310d8 18039_ACEOF
5213506e 18040if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18041 gcc_cv_math_func_atanf=yes
453310d8 18042else
db9f46a9 18043 gcc_cv_math_func_atanf=no
453310d8 18044fi
5213506e
RW
18045rm -f core conftest.err conftest.$ac_objext \
18046 conftest$ac_exeext conftest.$ac_ext
453310d8 18047fi
db9f46a9
TG
18048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
18049$as_echo "$gcc_cv_math_func_atanf" >&6; }
18050 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 18051
f38a14ca
TG
18052cat >>confdefs.h <<_ACEOF
18053#define HAVE_ATANF 1
18054_ACEOF
db9f46a9
TG
18055
18056 fi
18057
453310d8 18058
453310d8 18059
453310d8 18060
db9f46a9
TG
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
18062$as_echo_n "checking for atan... " >&6; }
22e05272 18063if ${gcc_cv_math_func_atan+:} false; then :
5213506e 18064 $as_echo_n "(cached) " >&6
453310d8 18065else
db9f46a9 18066 if test x$gcc_no_link = xyes; then
22e05272 18067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18068fi
5213506e 18069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18070/* end confdefs.h. */
18071
db9f46a9
TG
18072#ifdef HAVE_COMPLEX_H
18073#include <complex.h>
18074#endif
18075#ifdef HAVE_MATH_H
18076#include <math.h>
453310d8 18077#endif
db9f46a9
TG
18078
18079int (*ptr)() = (int (*)())atan;
18080
453310d8
RS
18081int
18082main ()
18083{
453310d8
RS
18084 return 0;
18085}
db9f46a9 18086
453310d8 18087_ACEOF
5213506e 18088if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18089 gcc_cv_math_func_atan=yes
453310d8 18090else
db9f46a9 18091 gcc_cv_math_func_atan=no
453310d8 18092fi
5213506e
RW
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
453310d8 18095fi
db9f46a9
TG
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
18097$as_echo "$gcc_cv_math_func_atan" >&6; }
18098 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 18099
f38a14ca
TG
18100cat >>confdefs.h <<_ACEOF
18101#define HAVE_ATAN 1
18102_ACEOF
db9f46a9
TG
18103
18104 fi
453310d8 18105
453310d8 18106
453310d8 18107
db9f46a9
TG
18108
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
18110$as_echo_n "checking for atanl... " >&6; }
22e05272 18111if ${gcc_cv_math_func_atanl+:} false; then :
5213506e 18112 $as_echo_n "(cached) " >&6
32aa3bff 18113else
db9f46a9 18114 if test x$gcc_no_link = xyes; then
22e05272 18115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18116fi
5213506e 18117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
18118/* end confdefs.h. */
18119
db9f46a9
TG
18120#ifdef HAVE_COMPLEX_H
18121#include <complex.h>
32aa3bff 18122#endif
db9f46a9
TG
18123#ifdef HAVE_MATH_H
18124#include <math.h>
18125#endif
18126
18127int (*ptr)() = (int (*)())atanl;
18128
32aa3bff
FXC
18129int
18130main ()
18131{
32aa3bff
FXC
18132 return 0;
18133}
db9f46a9 18134
32aa3bff 18135_ACEOF
5213506e 18136if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18137 gcc_cv_math_func_atanl=yes
32aa3bff 18138else
db9f46a9 18139 gcc_cv_math_func_atanl=no
32aa3bff 18140fi
5213506e
RW
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
32aa3bff 18143fi
db9f46a9
TG
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
18145$as_echo "$gcc_cv_math_func_atanl" >&6; }
18146 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 18147
f38a14ca
TG
18148cat >>confdefs.h <<_ACEOF
18149#define HAVE_ATANL 1
18150_ACEOF
32aa3bff 18151
db9f46a9 18152 fi
32aa3bff 18153
32aa3bff 18154
db9f46a9
TG
18155
18156
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
18158$as_echo_n "checking for atanhf... " >&6; }
22e05272 18159if ${gcc_cv_math_func_atanhf+:} false; then :
5213506e 18160 $as_echo_n "(cached) " >&6
453310d8 18161else
db9f46a9 18162 if test x$gcc_no_link = xyes; then
22e05272 18163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18164fi
5213506e 18165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18166/* end confdefs.h. */
18167
db9f46a9
TG
18168#ifdef HAVE_COMPLEX_H
18169#include <complex.h>
18170#endif
18171#ifdef HAVE_MATH_H
18172#include <math.h>
453310d8 18173#endif
db9f46a9
TG
18174
18175int (*ptr)() = (int (*)())atanhf;
18176
453310d8
RS
18177int
18178main ()
18179{
453310d8
RS
18180 return 0;
18181}
db9f46a9 18182
453310d8 18183_ACEOF
5213506e 18184if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18185 gcc_cv_math_func_atanhf=yes
453310d8 18186else
db9f46a9 18187 gcc_cv_math_func_atanhf=no
453310d8 18188fi
5213506e
RW
18189rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
453310d8 18191fi
db9f46a9
TG
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18193$as_echo "$gcc_cv_math_func_atanhf" >&6; }
18194 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 18195
f38a14ca
TG
18196cat >>confdefs.h <<_ACEOF
18197#define HAVE_ATANHF 1
18198_ACEOF
db9f46a9
TG
18199
18200 fi
453310d8 18201
453310d8 18202
453310d8 18203
db9f46a9
TG
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18206$as_echo_n "checking for atanh... " >&6; }
22e05272 18207if ${gcc_cv_math_func_atanh+:} false; then :
5213506e 18208 $as_echo_n "(cached) " >&6
453310d8 18209else
db9f46a9 18210 if test x$gcc_no_link = xyes; then
22e05272 18211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18212fi
5213506e 18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18214/* end confdefs.h. */
18215
db9f46a9
TG
18216#ifdef HAVE_COMPLEX_H
18217#include <complex.h>
453310d8 18218#endif
db9f46a9
TG
18219#ifdef HAVE_MATH_H
18220#include <math.h>
18221#endif
18222
18223int (*ptr)() = (int (*)())atanh;
18224
453310d8
RS
18225int
18226main ()
18227{
453310d8
RS
18228 return 0;
18229}
db9f46a9 18230
453310d8 18231_ACEOF
5213506e 18232if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18233 gcc_cv_math_func_atanh=yes
453310d8 18234else
db9f46a9 18235 gcc_cv_math_func_atanh=no
453310d8 18236fi
5213506e
RW
18237rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
453310d8 18239fi
db9f46a9
TG
18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18241$as_echo "$gcc_cv_math_func_atanh" >&6; }
18242 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 18243
f38a14ca
TG
18244cat >>confdefs.h <<_ACEOF
18245#define HAVE_ATANH 1
18246_ACEOF
db9f46a9
TG
18247
18248 fi
18249
453310d8 18250
453310d8 18251
453310d8 18252
db9f46a9
TG
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18254$as_echo_n "checking for atanhl... " >&6; }
22e05272 18255if ${gcc_cv_math_func_atanhl+:} false; then :
5213506e 18256 $as_echo_n "(cached) " >&6
bf4d99cf 18257else
db9f46a9 18258 if test x$gcc_no_link = xyes; then
22e05272 18259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18260fi
5213506e 18261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
18262/* end confdefs.h. */
18263
db9f46a9
TG
18264#ifdef HAVE_COMPLEX_H
18265#include <complex.h>
18266#endif
18267#ifdef HAVE_MATH_H
18268#include <math.h>
bf4d99cf 18269#endif
db9f46a9
TG
18270
18271int (*ptr)() = (int (*)())atanhl;
18272
bf4d99cf
TS
18273int
18274main ()
18275{
bf4d99cf
TS
18276 return 0;
18277}
db9f46a9 18278
bf4d99cf 18279_ACEOF
5213506e 18280if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18281 gcc_cv_math_func_atanhl=yes
bf4d99cf 18282else
db9f46a9 18283 gcc_cv_math_func_atanhl=no
bf4d99cf 18284fi
5213506e
RW
18285rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 18287fi
db9f46a9
TG
18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18289$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18290 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 18291
f38a14ca
TG
18292cat >>confdefs.h <<_ACEOF
18293#define HAVE_ATANHL 1
18294_ACEOF
db9f46a9
TG
18295
18296 fi
bf4d99cf 18297
bf4d99cf 18298
bf4d99cf 18299
db9f46a9
TG
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18302$as_echo_n "checking for cargf... " >&6; }
22e05272 18303if ${gcc_cv_math_func_cargf+:} false; then :
5213506e 18304 $as_echo_n "(cached) " >&6
a2a2059f 18305else
db9f46a9 18306 if test x$gcc_no_link = xyes; then
22e05272 18307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18308fi
5213506e 18309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18310/* end confdefs.h. */
18311
db9f46a9
TG
18312#ifdef HAVE_COMPLEX_H
18313#include <complex.h>
a2a2059f 18314#endif
db9f46a9
TG
18315#ifdef HAVE_MATH_H
18316#include <math.h>
18317#endif
18318
18319int (*ptr)() = (int (*)())cargf;
18320
453310d8
RS
18321int
18322main ()
18323{
453310d8
RS
18324 return 0;
18325}
db9f46a9 18326
453310d8 18327_ACEOF
5213506e 18328if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18329 gcc_cv_math_func_cargf=yes
453310d8 18330else
db9f46a9 18331 gcc_cv_math_func_cargf=no
453310d8 18332fi
5213506e
RW
18333rm -f core conftest.err conftest.$ac_objext \
18334 conftest$ac_exeext conftest.$ac_ext
453310d8 18335fi
db9f46a9
TG
18336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18337$as_echo "$gcc_cv_math_func_cargf" >&6; }
18338 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 18339
f38a14ca
TG
18340cat >>confdefs.h <<_ACEOF
18341#define HAVE_CARGF 1
18342_ACEOF
453310d8 18343
db9f46a9 18344 fi
453310d8 18345
453310d8 18346
db9f46a9
TG
18347
18348
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18350$as_echo_n "checking for carg... " >&6; }
22e05272 18351if ${gcc_cv_math_func_carg+:} false; then :
5213506e 18352 $as_echo_n "(cached) " >&6
453310d8 18353else
db9f46a9 18354 if test x$gcc_no_link = xyes; then
22e05272 18355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18356fi
5213506e 18357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18358/* end confdefs.h. */
18359
db9f46a9
TG
18360#ifdef HAVE_COMPLEX_H
18361#include <complex.h>
18362#endif
18363#ifdef HAVE_MATH_H
18364#include <math.h>
453310d8 18365#endif
db9f46a9
TG
18366
18367int (*ptr)() = (int (*)())carg;
18368
a2a2059f
BD
18369int
18370main ()
18371{
a2a2059f
BD
18372 return 0;
18373}
db9f46a9 18374
a2a2059f 18375_ACEOF
5213506e 18376if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18377 gcc_cv_math_func_carg=yes
a2a2059f 18378else
db9f46a9 18379 gcc_cv_math_func_carg=no
a2a2059f 18380fi
5213506e
RW
18381rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18383fi
db9f46a9
TG
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18385$as_echo "$gcc_cv_math_func_carg" >&6; }
18386 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 18387
f38a14ca
TG
18388cat >>confdefs.h <<_ACEOF
18389#define HAVE_CARG 1
18390_ACEOF
db9f46a9
TG
18391
18392 fi
a2a2059f 18393
a2a2059f 18394
a2a2059f 18395
db9f46a9
TG
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18398$as_echo_n "checking for cargl... " >&6; }
22e05272 18399if ${gcc_cv_math_func_cargl+:} false; then :
5213506e 18400 $as_echo_n "(cached) " >&6
a2a2059f 18401else
db9f46a9 18402 if test x$gcc_no_link = xyes; then
22e05272 18403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18404fi
5213506e 18405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18406/* end confdefs.h. */
18407
db9f46a9
TG
18408#ifdef HAVE_COMPLEX_H
18409#include <complex.h>
a2a2059f 18410#endif
db9f46a9
TG
18411#ifdef HAVE_MATH_H
18412#include <math.h>
18413#endif
18414
18415int (*ptr)() = (int (*)())cargl;
18416
a2a2059f
BD
18417int
18418main ()
18419{
a2a2059f
BD
18420 return 0;
18421}
db9f46a9 18422
a2a2059f 18423_ACEOF
5213506e 18424if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18425 gcc_cv_math_func_cargl=yes
a2a2059f 18426else
db9f46a9 18427 gcc_cv_math_func_cargl=no
a2a2059f 18428fi
5213506e
RW
18429rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18431fi
db9f46a9
TG
18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18433$as_echo "$gcc_cv_math_func_cargl" >&6; }
18434 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 18435
f38a14ca
TG
18436cat >>confdefs.h <<_ACEOF
18437#define HAVE_CARGL 1
18438_ACEOF
db9f46a9
TG
18439
18440 fi
18441
a2a2059f 18442
a2a2059f 18443
a2a2059f 18444
db9f46a9
TG
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18446$as_echo_n "checking for ceilf... " >&6; }
22e05272 18447if ${gcc_cv_math_func_ceilf+:} false; then :
5213506e 18448 $as_echo_n "(cached) " >&6
ae973d6a 18449else
db9f46a9 18450 if test x$gcc_no_link = xyes; then
22e05272 18451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18452fi
5213506e 18453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
18454/* end confdefs.h. */
18455
db9f46a9
TG
18456#ifdef HAVE_COMPLEX_H
18457#include <complex.h>
18458#endif
18459#ifdef HAVE_MATH_H
18460#include <math.h>
ae973d6a 18461#endif
db9f46a9
TG
18462
18463int (*ptr)() = (int (*)())ceilf;
18464
ae973d6a
FXC
18465int
18466main ()
18467{
ae973d6a
FXC
18468 return 0;
18469}
db9f46a9 18470
ae973d6a 18471_ACEOF
5213506e 18472if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18473 gcc_cv_math_func_ceilf=yes
ae973d6a 18474else
db9f46a9 18475 gcc_cv_math_func_ceilf=no
ae973d6a 18476fi
5213506e
RW
18477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
ae973d6a 18479fi
db9f46a9
TG
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18481$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18482 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 18483
f38a14ca
TG
18484cat >>confdefs.h <<_ACEOF
18485#define HAVE_CEILF 1
18486_ACEOF
db9f46a9
TG
18487
18488 fi
ae973d6a 18489
ae973d6a 18490
ae973d6a 18491
db9f46a9
TG
18492
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18494$as_echo_n "checking for ceil... " >&6; }
22e05272 18495if ${gcc_cv_math_func_ceil+:} false; then :
5213506e 18496 $as_echo_n "(cached) " >&6
a9e7b9d3 18497else
db9f46a9 18498 if test x$gcc_no_link = xyes; then
22e05272 18499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18500fi
5213506e 18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18502/* end confdefs.h. */
18503
db9f46a9
TG
18504#ifdef HAVE_COMPLEX_H
18505#include <complex.h>
a9e7b9d3 18506#endif
db9f46a9
TG
18507#ifdef HAVE_MATH_H
18508#include <math.h>
18509#endif
18510
18511int (*ptr)() = (int (*)())ceil;
18512
a9e7b9d3
PB
18513int
18514main ()
18515{
a9e7b9d3
PB
18516 return 0;
18517}
db9f46a9 18518
a9e7b9d3 18519_ACEOF
5213506e 18520if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18521 gcc_cv_math_func_ceil=yes
a9e7b9d3 18522else
db9f46a9 18523 gcc_cv_math_func_ceil=no
a9e7b9d3 18524fi
5213506e
RW
18525rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18527fi
db9f46a9
TG
18528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18529$as_echo "$gcc_cv_math_func_ceil" >&6; }
18530 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18531
f38a14ca
TG
18532cat >>confdefs.h <<_ACEOF
18533#define HAVE_CEIL 1
18534_ACEOF
a9e7b9d3 18535
db9f46a9 18536 fi
a9e7b9d3 18537
a9e7b9d3 18538
db9f46a9
TG
18539
18540
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18542$as_echo_n "checking for ceill... " >&6; }
22e05272 18543if ${gcc_cv_math_func_ceill+:} false; then :
5213506e 18544 $as_echo_n "(cached) " >&6
a9e7b9d3 18545else
db9f46a9 18546 if test x$gcc_no_link = xyes; then
22e05272 18547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18548fi
5213506e 18549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18550/* end confdefs.h. */
18551
db9f46a9
TG
18552#ifdef HAVE_COMPLEX_H
18553#include <complex.h>
18554#endif
18555#ifdef HAVE_MATH_H
18556#include <math.h>
a9e7b9d3 18557#endif
db9f46a9
TG
18558
18559int (*ptr)() = (int (*)())ceill;
18560
a9e7b9d3
PB
18561int
18562main ()
18563{
a9e7b9d3
PB
18564 return 0;
18565}
db9f46a9 18566
a9e7b9d3 18567_ACEOF
5213506e 18568if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18569 gcc_cv_math_func_ceill=yes
a9e7b9d3 18570else
db9f46a9 18571 gcc_cv_math_func_ceill=no
a9e7b9d3 18572fi
5213506e
RW
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18575fi
db9f46a9
TG
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18577$as_echo "$gcc_cv_math_func_ceill" >&6; }
18578 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18579
f38a14ca
TG
18580cat >>confdefs.h <<_ACEOF
18581#define HAVE_CEILL 1
18582_ACEOF
db9f46a9
TG
18583
18584 fi
a9e7b9d3 18585
453310d8 18586
453310d8 18587
db9f46a9
TG
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18590$as_echo_n "checking for copysignf... " >&6; }
22e05272 18591if ${gcc_cv_math_func_copysignf+:} false; then :
5213506e 18592 $as_echo_n "(cached) " >&6
453310d8 18593else
db9f46a9 18594 if test x$gcc_no_link = xyes; then
22e05272 18595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18596fi
5213506e 18597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18598/* end confdefs.h. */
18599
db9f46a9
TG
18600#ifdef HAVE_COMPLEX_H
18601#include <complex.h>
453310d8 18602#endif
db9f46a9
TG
18603#ifdef HAVE_MATH_H
18604#include <math.h>
18605#endif
18606
18607int (*ptr)() = (int (*)())copysignf;
18608
453310d8
RS
18609int
18610main ()
18611{
453310d8
RS
18612 return 0;
18613}
db9f46a9 18614
453310d8 18615_ACEOF
5213506e 18616if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18617 gcc_cv_math_func_copysignf=yes
453310d8 18618else
db9f46a9 18619 gcc_cv_math_func_copysignf=no
453310d8 18620fi
5213506e
RW
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
453310d8 18623fi
db9f46a9
TG
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18625$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18626 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18627
f38a14ca
TG
18628cat >>confdefs.h <<_ACEOF
18629#define HAVE_COPYSIGNF 1
18630_ACEOF
db9f46a9
TG
18631
18632 fi
18633
453310d8 18634
453310d8 18635
453310d8 18636
db9f46a9
TG
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18638$as_echo_n "checking for copysign... " >&6; }
22e05272 18639if ${gcc_cv_math_func_copysign+:} false; then :
5213506e 18640 $as_echo_n "(cached) " >&6
453310d8 18641else
db9f46a9 18642 if test x$gcc_no_link = xyes; then
22e05272 18643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18644fi
5213506e 18645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18646/* end confdefs.h. */
18647
db9f46a9
TG
18648#ifdef HAVE_COMPLEX_H
18649#include <complex.h>
18650#endif
18651#ifdef HAVE_MATH_H
18652#include <math.h>
453310d8 18653#endif
db9f46a9
TG
18654
18655int (*ptr)() = (int (*)())copysign;
18656
453310d8
RS
18657int
18658main ()
18659{
453310d8
RS
18660 return 0;
18661}
db9f46a9 18662
453310d8 18663_ACEOF
5213506e 18664if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18665 gcc_cv_math_func_copysign=yes
453310d8 18666else
db9f46a9 18667 gcc_cv_math_func_copysign=no
453310d8 18668fi
5213506e
RW
18669rm -f core conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
453310d8 18671fi
db9f46a9
TG
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18673$as_echo "$gcc_cv_math_func_copysign" >&6; }
18674 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18675
f38a14ca
TG
18676cat >>confdefs.h <<_ACEOF
18677#define HAVE_COPYSIGN 1
18678_ACEOF
db9f46a9
TG
18679
18680 fi
453310d8 18681
453310d8 18682
453310d8 18683
db9f46a9
TG
18684
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18686$as_echo_n "checking for copysignl... " >&6; }
22e05272 18687if ${gcc_cv_math_func_copysignl+:} false; then :
5213506e 18688 $as_echo_n "(cached) " >&6
453310d8 18689else
db9f46a9 18690 if test x$gcc_no_link = xyes; then
22e05272 18691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18692fi
5213506e 18693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18694/* end confdefs.h. */
18695
db9f46a9
TG
18696#ifdef HAVE_COMPLEX_H
18697#include <complex.h>
453310d8 18698#endif
db9f46a9
TG
18699#ifdef HAVE_MATH_H
18700#include <math.h>
18701#endif
18702
18703int (*ptr)() = (int (*)())copysignl;
18704
453310d8
RS
18705int
18706main ()
18707{
5213506e
RW
18708 return 0;
18709}
db9f46a9 18710
5213506e
RW
18711_ACEOF
18712if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18713 gcc_cv_math_func_copysignl=yes
453310d8 18714else
db9f46a9 18715 gcc_cv_math_func_copysignl=no
453310d8 18716fi
5213506e
RW
18717rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
453310d8 18719fi
db9f46a9
TG
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18721$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18722 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18723
f38a14ca
TG
18724cat >>confdefs.h <<_ACEOF
18725#define HAVE_COPYSIGNL 1
18726_ACEOF
453310d8 18727
db9f46a9 18728 fi
a9e7b9d3 18729
a9e7b9d3 18730
db9f46a9
TG
18731
18732
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18734$as_echo_n "checking for cosf... " >&6; }
22e05272 18735if ${gcc_cv_math_func_cosf+:} false; then :
5213506e 18736 $as_echo_n "(cached) " >&6
69a2d125 18737else
db9f46a9 18738 if test x$gcc_no_link = xyes; then
22e05272 18739 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18740fi
5213506e 18741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18742/* end confdefs.h. */
18743
db9f46a9
TG
18744#ifdef HAVE_COMPLEX_H
18745#include <complex.h>
18746#endif
18747#ifdef HAVE_MATH_H
18748#include <math.h>
69a2d125 18749#endif
db9f46a9
TG
18750
18751int (*ptr)() = (int (*)())cosf;
18752
69a2d125
EB
18753int
18754main ()
18755{
69a2d125
EB
18756 return 0;
18757}
db9f46a9 18758
69a2d125 18759_ACEOF
5213506e 18760if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18761 gcc_cv_math_func_cosf=yes
69a2d125 18762else
db9f46a9 18763 gcc_cv_math_func_cosf=no
69a2d125 18764fi
5213506e
RW
18765rm -f core conftest.err conftest.$ac_objext \
18766 conftest$ac_exeext conftest.$ac_ext
69a2d125 18767fi
db9f46a9
TG
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18769$as_echo "$gcc_cv_math_func_cosf" >&6; }
18770 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18771
f38a14ca
TG
18772cat >>confdefs.h <<_ACEOF
18773#define HAVE_COSF 1
18774_ACEOF
db9f46a9
TG
18775
18776 fi
69a2d125 18777
1409cd0b 18778
1409cd0b 18779
db9f46a9
TG
18780
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18782$as_echo_n "checking for cos... " >&6; }
22e05272 18783if ${gcc_cv_math_func_cos+:} false; then :
5213506e 18784 $as_echo_n "(cached) " >&6
1409cd0b 18785else
db9f46a9 18786 if test x$gcc_no_link = xyes; then
22e05272 18787 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18788fi
5213506e 18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18790/* end confdefs.h. */
18791
db9f46a9
TG
18792#ifdef HAVE_COMPLEX_H
18793#include <complex.h>
1409cd0b 18794#endif
db9f46a9
TG
18795#ifdef HAVE_MATH_H
18796#include <math.h>
18797#endif
18798
18799int (*ptr)() = (int (*)())cos;
18800
1409cd0b
FXC
18801int
18802main ()
18803{
1409cd0b
FXC
18804 return 0;
18805}
db9f46a9 18806
1409cd0b 18807_ACEOF
5213506e 18808if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18809 gcc_cv_math_func_cos=yes
1409cd0b 18810else
db9f46a9 18811 gcc_cv_math_func_cos=no
1409cd0b 18812fi
5213506e
RW
18813rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18815fi
db9f46a9
TG
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18817$as_echo "$gcc_cv_math_func_cos" >&6; }
18818 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18819
f38a14ca
TG
18820cat >>confdefs.h <<_ACEOF
18821#define HAVE_COS 1
18822_ACEOF
db9f46a9
TG
18823
18824 fi
18825
1409cd0b 18826
1409cd0b 18827
1409cd0b 18828
db9f46a9
TG
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18830$as_echo_n "checking for cosl... " >&6; }
22e05272 18831if ${gcc_cv_math_func_cosl+:} false; then :
5213506e 18832 $as_echo_n "(cached) " >&6
1409cd0b 18833else
db9f46a9 18834 if test x$gcc_no_link = xyes; then
22e05272 18835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18836fi
5213506e 18837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18838/* end confdefs.h. */
18839
db9f46a9
TG
18840#ifdef HAVE_COMPLEX_H
18841#include <complex.h>
18842#endif
18843#ifdef HAVE_MATH_H
18844#include <math.h>
1409cd0b 18845#endif
db9f46a9
TG
18846
18847int (*ptr)() = (int (*)())cosl;
18848
1409cd0b
FXC
18849int
18850main ()
18851{
1409cd0b
FXC
18852 return 0;
18853}
db9f46a9 18854
1409cd0b 18855_ACEOF
5213506e 18856if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18857 gcc_cv_math_func_cosl=yes
1409cd0b 18858else
db9f46a9 18859 gcc_cv_math_func_cosl=no
1409cd0b 18860fi
5213506e
RW
18861rm -f core conftest.err conftest.$ac_objext \
18862 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18863fi
db9f46a9
TG
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18865$as_echo "$gcc_cv_math_func_cosl" >&6; }
18866 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18867
f38a14ca
TG
18868cat >>confdefs.h <<_ACEOF
18869#define HAVE_COSL 1
18870_ACEOF
db9f46a9
TG
18871
18872 fi
1409cd0b 18873
1409cd0b 18874
1409cd0b 18875
db9f46a9
TG
18876
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18878$as_echo_n "checking for ccosf... " >&6; }
22e05272 18879if ${gcc_cv_math_func_ccosf+:} false; then :
5213506e 18880 $as_echo_n "(cached) " >&6
1409cd0b 18881else
db9f46a9 18882 if test x$gcc_no_link = xyes; then
22e05272 18883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18884fi
5213506e 18885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18886/* end confdefs.h. */
18887
db9f46a9
TG
18888#ifdef HAVE_COMPLEX_H
18889#include <complex.h>
1409cd0b 18890#endif
db9f46a9
TG
18891#ifdef HAVE_MATH_H
18892#include <math.h>
18893#endif
18894
18895int (*ptr)() = (int (*)())ccosf;
18896
1409cd0b
FXC
18897int
18898main ()
18899{
1409cd0b
FXC
18900 return 0;
18901}
db9f46a9 18902
1409cd0b 18903_ACEOF
5213506e 18904if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18905 gcc_cv_math_func_ccosf=yes
1409cd0b 18906else
db9f46a9 18907 gcc_cv_math_func_ccosf=no
1409cd0b 18908fi
5213506e
RW
18909rm -f core conftest.err conftest.$ac_objext \
18910 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18911fi
db9f46a9
TG
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18913$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18914 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18915
f38a14ca
TG
18916cat >>confdefs.h <<_ACEOF
18917#define HAVE_CCOSF 1
18918_ACEOF
1409cd0b 18919
db9f46a9 18920 fi
1409cd0b 18921
1409cd0b 18922
db9f46a9
TG
18923
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18926$as_echo_n "checking for ccos... " >&6; }
22e05272 18927if ${gcc_cv_math_func_ccos+:} false; then :
5213506e 18928 $as_echo_n "(cached) " >&6
1409cd0b 18929else
db9f46a9 18930 if test x$gcc_no_link = xyes; then
22e05272 18931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18932fi
5213506e 18933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18934/* end confdefs.h. */
18935
db9f46a9
TG
18936#ifdef HAVE_COMPLEX_H
18937#include <complex.h>
18938#endif
18939#ifdef HAVE_MATH_H
18940#include <math.h>
1409cd0b 18941#endif
db9f46a9
TG
18942
18943int (*ptr)() = (int (*)())ccos;
18944
1409cd0b
FXC
18945int
18946main ()
18947{
1409cd0b
FXC
18948 return 0;
18949}
db9f46a9 18950
1409cd0b 18951_ACEOF
5213506e 18952if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18953 gcc_cv_math_func_ccos=yes
1409cd0b 18954else
db9f46a9 18955 gcc_cv_math_func_ccos=no
1409cd0b 18956fi
5213506e
RW
18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18959fi
db9f46a9
TG
18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18961$as_echo "$gcc_cv_math_func_ccos" >&6; }
18962 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18963
f38a14ca
TG
18964cat >>confdefs.h <<_ACEOF
18965#define HAVE_CCOS 1
18966_ACEOF
db9f46a9
TG
18967
18968 fi
1409cd0b 18969
1409cd0b 18970
1409cd0b 18971
db9f46a9
TG
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18974$as_echo_n "checking for ccosl... " >&6; }
22e05272 18975if ${gcc_cv_math_func_ccosl+:} false; then :
5213506e 18976 $as_echo_n "(cached) " >&6
1409cd0b 18977else
db9f46a9 18978 if test x$gcc_no_link = xyes; then
22e05272 18979 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18980fi
5213506e 18981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18982/* end confdefs.h. */
18983
db9f46a9
TG
18984#ifdef HAVE_COMPLEX_H
18985#include <complex.h>
1409cd0b 18986#endif
db9f46a9
TG
18987#ifdef HAVE_MATH_H
18988#include <math.h>
18989#endif
18990
18991int (*ptr)() = (int (*)())ccosl;
18992
1409cd0b
FXC
18993int
18994main ()
18995{
1409cd0b
FXC
18996 return 0;
18997}
db9f46a9 18998
1409cd0b 18999_ACEOF
5213506e 19000if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19001 gcc_cv_math_func_ccosl=yes
1409cd0b 19002else
db9f46a9 19003 gcc_cv_math_func_ccosl=no
1409cd0b 19004fi
5213506e
RW
19005rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19007fi
db9f46a9
TG
19008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
19009$as_echo "$gcc_cv_math_func_ccosl" >&6; }
19010 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 19011
f38a14ca
TG
19012cat >>confdefs.h <<_ACEOF
19013#define HAVE_CCOSL 1
19014_ACEOF
db9f46a9
TG
19015
19016 fi
19017
1409cd0b 19018
1409cd0b 19019
1409cd0b 19020
db9f46a9
TG
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
19022$as_echo_n "checking for coshf... " >&6; }
22e05272 19023if ${gcc_cv_math_func_coshf+:} false; then :
5213506e 19024 $as_echo_n "(cached) " >&6
1409cd0b 19025else
db9f46a9 19026 if test x$gcc_no_link = xyes; then
22e05272 19027 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19028fi
5213506e 19029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19030/* end confdefs.h. */
19031
db9f46a9
TG
19032#ifdef HAVE_COMPLEX_H
19033#include <complex.h>
19034#endif
19035#ifdef HAVE_MATH_H
19036#include <math.h>
1409cd0b 19037#endif
db9f46a9
TG
19038
19039int (*ptr)() = (int (*)())coshf;
19040
1409cd0b
FXC
19041int
19042main ()
19043{
1409cd0b
FXC
19044 return 0;
19045}
db9f46a9 19046
1409cd0b 19047_ACEOF
5213506e 19048if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19049 gcc_cv_math_func_coshf=yes
1409cd0b 19050else
db9f46a9 19051 gcc_cv_math_func_coshf=no
1409cd0b 19052fi
5213506e
RW
19053rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19055fi
db9f46a9
TG
19056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
19057$as_echo "$gcc_cv_math_func_coshf" >&6; }
19058 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 19059
f38a14ca
TG
19060cat >>confdefs.h <<_ACEOF
19061#define HAVE_COSHF 1
19062_ACEOF
db9f46a9
TG
19063
19064 fi
1409cd0b 19065
1409cd0b 19066
1409cd0b 19067
db9f46a9
TG
19068
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
19070$as_echo_n "checking for cosh... " >&6; }
22e05272 19071if ${gcc_cv_math_func_cosh+:} false; then :
5213506e 19072 $as_echo_n "(cached) " >&6
1409cd0b 19073else
db9f46a9 19074 if test x$gcc_no_link = xyes; then
22e05272 19075 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19076fi
5213506e 19077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19078/* end confdefs.h. */
19079
db9f46a9
TG
19080#ifdef HAVE_COMPLEX_H
19081#include <complex.h>
1409cd0b 19082#endif
db9f46a9
TG
19083#ifdef HAVE_MATH_H
19084#include <math.h>
19085#endif
19086
19087int (*ptr)() = (int (*)())cosh;
19088
1409cd0b
FXC
19089int
19090main ()
19091{
1409cd0b
FXC
19092 return 0;
19093}
db9f46a9 19094
1409cd0b 19095_ACEOF
5213506e 19096if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19097 gcc_cv_math_func_cosh=yes
1409cd0b 19098else
db9f46a9 19099 gcc_cv_math_func_cosh=no
1409cd0b 19100fi
5213506e
RW
19101rm -f core conftest.err conftest.$ac_objext \
19102 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19103fi
db9f46a9
TG
19104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
19105$as_echo "$gcc_cv_math_func_cosh" >&6; }
19106 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 19107
f38a14ca
TG
19108cat >>confdefs.h <<_ACEOF
19109#define HAVE_COSH 1
19110_ACEOF
1409cd0b 19111
db9f46a9 19112 fi
1409cd0b 19113
1409cd0b 19114
db9f46a9
TG
19115
19116
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
19118$as_echo_n "checking for coshl... " >&6; }
22e05272 19119if ${gcc_cv_math_func_coshl+:} false; then :
5213506e 19120 $as_echo_n "(cached) " >&6
1409cd0b 19121else
db9f46a9 19122 if test x$gcc_no_link = xyes; then
22e05272 19123 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19124fi
5213506e 19125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19126/* end confdefs.h. */
19127
db9f46a9
TG
19128#ifdef HAVE_COMPLEX_H
19129#include <complex.h>
19130#endif
19131#ifdef HAVE_MATH_H
19132#include <math.h>
1409cd0b 19133#endif
db9f46a9
TG
19134
19135int (*ptr)() = (int (*)())coshl;
19136
1409cd0b
FXC
19137int
19138main ()
19139{
1409cd0b
FXC
19140 return 0;
19141}
db9f46a9 19142
1409cd0b 19143_ACEOF
5213506e 19144if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19145 gcc_cv_math_func_coshl=yes
1409cd0b 19146else
db9f46a9 19147 gcc_cv_math_func_coshl=no
1409cd0b 19148fi
5213506e
RW
19149rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19151fi
db9f46a9
TG
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
19153$as_echo "$gcc_cv_math_func_coshl" >&6; }
19154 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 19155
f38a14ca
TG
19156cat >>confdefs.h <<_ACEOF
19157#define HAVE_COSHL 1
19158_ACEOF
db9f46a9
TG
19159
19160 fi
1409cd0b 19161
1409cd0b 19162
1409cd0b 19163
db9f46a9
TG
19164
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19166$as_echo_n "checking for ccoshf... " >&6; }
22e05272 19167if ${gcc_cv_math_func_ccoshf+:} false; then :
5213506e 19168 $as_echo_n "(cached) " >&6
1409cd0b 19169else
db9f46a9 19170 if test x$gcc_no_link = xyes; then
22e05272 19171 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19172fi
5213506e 19173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19174/* end confdefs.h. */
19175
db9f46a9
TG
19176#ifdef HAVE_COMPLEX_H
19177#include <complex.h>
1409cd0b 19178#endif
db9f46a9
TG
19179#ifdef HAVE_MATH_H
19180#include <math.h>
19181#endif
19182
19183int (*ptr)() = (int (*)())ccoshf;
19184
1409cd0b
FXC
19185int
19186main ()
19187{
1409cd0b
FXC
19188 return 0;
19189}
db9f46a9 19190
1409cd0b 19191_ACEOF
5213506e 19192if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19193 gcc_cv_math_func_ccoshf=yes
1409cd0b 19194else
db9f46a9 19195 gcc_cv_math_func_ccoshf=no
1409cd0b 19196fi
5213506e
RW
19197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19199fi
db9f46a9
TG
19200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19201$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19202 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 19203
f38a14ca
TG
19204cat >>confdefs.h <<_ACEOF
19205#define HAVE_CCOSHF 1
19206_ACEOF
db9f46a9
TG
19207
19208 fi
19209
1409cd0b 19210
1409cd0b 19211
1409cd0b 19212
db9f46a9
TG
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19214$as_echo_n "checking for ccosh... " >&6; }
22e05272 19215if ${gcc_cv_math_func_ccosh+:} false; then :
5213506e 19216 $as_echo_n "(cached) " >&6
1409cd0b 19217else
db9f46a9 19218 if test x$gcc_no_link = xyes; then
22e05272 19219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19220fi
5213506e 19221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19222/* end confdefs.h. */
19223
db9f46a9
TG
19224#ifdef HAVE_COMPLEX_H
19225#include <complex.h>
19226#endif
19227#ifdef HAVE_MATH_H
19228#include <math.h>
1409cd0b 19229#endif
db9f46a9
TG
19230
19231int (*ptr)() = (int (*)())ccosh;
19232
1409cd0b
FXC
19233int
19234main ()
19235{
1409cd0b
FXC
19236 return 0;
19237}
db9f46a9 19238
1409cd0b 19239_ACEOF
5213506e 19240if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19241 gcc_cv_math_func_ccosh=yes
1409cd0b 19242else
db9f46a9 19243 gcc_cv_math_func_ccosh=no
1409cd0b 19244fi
5213506e
RW
19245rm -f core conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19247fi
db9f46a9
TG
19248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19249$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19250 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 19251
f38a14ca
TG
19252cat >>confdefs.h <<_ACEOF
19253#define HAVE_CCOSH 1
19254_ACEOF
db9f46a9
TG
19255
19256 fi
1409cd0b 19257
1409cd0b 19258
1409cd0b 19259
db9f46a9
TG
19260
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19262$as_echo_n "checking for ccoshl... " >&6; }
22e05272 19263if ${gcc_cv_math_func_ccoshl+:} false; then :
5213506e 19264 $as_echo_n "(cached) " >&6
1409cd0b 19265else
db9f46a9 19266 if test x$gcc_no_link = xyes; then
22e05272 19267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19268fi
5213506e 19269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19270/* end confdefs.h. */
19271
db9f46a9
TG
19272#ifdef HAVE_COMPLEX_H
19273#include <complex.h>
1409cd0b 19274#endif
db9f46a9
TG
19275#ifdef HAVE_MATH_H
19276#include <math.h>
19277#endif
19278
19279int (*ptr)() = (int (*)())ccoshl;
19280
1409cd0b
FXC
19281int
19282main ()
19283{
1409cd0b
FXC
19284 return 0;
19285}
db9f46a9 19286
1409cd0b 19287_ACEOF
5213506e 19288if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19289 gcc_cv_math_func_ccoshl=yes
1409cd0b 19290else
db9f46a9 19291 gcc_cv_math_func_ccoshl=no
1409cd0b 19292fi
5213506e
RW
19293rm -f core conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19295fi
db9f46a9
TG
19296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19297$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19298 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 19299
f38a14ca
TG
19300cat >>confdefs.h <<_ACEOF
19301#define HAVE_CCOSHL 1
19302_ACEOF
1409cd0b 19303
db9f46a9 19304 fi
1409cd0b 19305
1409cd0b 19306
db9f46a9
TG
19307
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19310$as_echo_n "checking for expf... " >&6; }
22e05272 19311if ${gcc_cv_math_func_expf+:} false; then :
5213506e 19312 $as_echo_n "(cached) " >&6
1409cd0b 19313else
db9f46a9 19314 if test x$gcc_no_link = xyes; then
22e05272 19315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19316fi
5213506e 19317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19318/* end confdefs.h. */
19319
db9f46a9
TG
19320#ifdef HAVE_COMPLEX_H
19321#include <complex.h>
19322#endif
19323#ifdef HAVE_MATH_H
19324#include <math.h>
1409cd0b 19325#endif
db9f46a9
TG
19326
19327int (*ptr)() = (int (*)())expf;
19328
1409cd0b
FXC
19329int
19330main ()
19331{
1409cd0b
FXC
19332 return 0;
19333}
db9f46a9 19334
1409cd0b 19335_ACEOF
5213506e 19336if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19337 gcc_cv_math_func_expf=yes
1409cd0b 19338else
db9f46a9 19339 gcc_cv_math_func_expf=no
1409cd0b 19340fi
5213506e
RW
19341rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19343fi
db9f46a9
TG
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19345$as_echo "$gcc_cv_math_func_expf" >&6; }
19346 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 19347
f38a14ca
TG
19348cat >>confdefs.h <<_ACEOF
19349#define HAVE_EXPF 1
19350_ACEOF
db9f46a9
TG
19351
19352 fi
1409cd0b 19353
1409cd0b 19354
1409cd0b 19355
db9f46a9
TG
19356
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19358$as_echo_n "checking for exp... " >&6; }
22e05272 19359if ${gcc_cv_math_func_exp+:} false; then :
5213506e 19360 $as_echo_n "(cached) " >&6
1409cd0b 19361else
db9f46a9 19362 if test x$gcc_no_link = xyes; then
22e05272 19363 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19364fi
5213506e 19365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19366/* end confdefs.h. */
19367
db9f46a9
TG
19368#ifdef HAVE_COMPLEX_H
19369#include <complex.h>
1409cd0b 19370#endif
db9f46a9
TG
19371#ifdef HAVE_MATH_H
19372#include <math.h>
19373#endif
19374
19375int (*ptr)() = (int (*)())exp;
19376
1409cd0b
FXC
19377int
19378main ()
19379{
1409cd0b
FXC
19380 return 0;
19381}
db9f46a9 19382
1409cd0b 19383_ACEOF
5213506e 19384if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19385 gcc_cv_math_func_exp=yes
1409cd0b 19386else
db9f46a9 19387 gcc_cv_math_func_exp=no
1409cd0b 19388fi
5213506e
RW
19389rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19391fi
db9f46a9
TG
19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19393$as_echo "$gcc_cv_math_func_exp" >&6; }
19394 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 19395
f38a14ca
TG
19396cat >>confdefs.h <<_ACEOF
19397#define HAVE_EXP 1
19398_ACEOF
db9f46a9
TG
19399
19400 fi
19401
1409cd0b 19402
1409cd0b 19403
1409cd0b 19404
db9f46a9
TG
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19406$as_echo_n "checking for expl... " >&6; }
22e05272 19407if ${gcc_cv_math_func_expl+:} false; then :
5213506e 19408 $as_echo_n "(cached) " >&6
1409cd0b 19409else
db9f46a9 19410 if test x$gcc_no_link = xyes; then
22e05272 19411 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19412fi
5213506e 19413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19414/* end confdefs.h. */
19415
db9f46a9
TG
19416#ifdef HAVE_COMPLEX_H
19417#include <complex.h>
19418#endif
19419#ifdef HAVE_MATH_H
19420#include <math.h>
1409cd0b 19421#endif
db9f46a9
TG
19422
19423int (*ptr)() = (int (*)())expl;
19424
1409cd0b
FXC
19425int
19426main ()
19427{
1409cd0b
FXC
19428 return 0;
19429}
db9f46a9 19430
1409cd0b 19431_ACEOF
5213506e 19432if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19433 gcc_cv_math_func_expl=yes
1409cd0b 19434else
db9f46a9 19435 gcc_cv_math_func_expl=no
1409cd0b 19436fi
5213506e
RW
19437rm -f core conftest.err conftest.$ac_objext \
19438 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19439fi
db9f46a9
TG
19440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19441$as_echo "$gcc_cv_math_func_expl" >&6; }
19442 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 19443
f38a14ca
TG
19444cat >>confdefs.h <<_ACEOF
19445#define HAVE_EXPL 1
19446_ACEOF
db9f46a9
TG
19447
19448 fi
1409cd0b 19449
1409cd0b 19450
1409cd0b 19451
db9f46a9
TG
19452
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19454$as_echo_n "checking for cexpf... " >&6; }
22e05272 19455if ${gcc_cv_math_func_cexpf+:} false; then :
5213506e 19456 $as_echo_n "(cached) " >&6
1409cd0b 19457else
db9f46a9 19458 if test x$gcc_no_link = xyes; then
22e05272 19459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19460fi
5213506e 19461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19462/* end confdefs.h. */
19463
db9f46a9
TG
19464#ifdef HAVE_COMPLEX_H
19465#include <complex.h>
1409cd0b 19466#endif
db9f46a9
TG
19467#ifdef HAVE_MATH_H
19468#include <math.h>
19469#endif
19470
19471int (*ptr)() = (int (*)())cexpf;
19472
1409cd0b
FXC
19473int
19474main ()
19475{
1409cd0b
FXC
19476 return 0;
19477}
db9f46a9 19478
1409cd0b 19479_ACEOF
5213506e 19480if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19481 gcc_cv_math_func_cexpf=yes
1409cd0b 19482else
db9f46a9 19483 gcc_cv_math_func_cexpf=no
1409cd0b 19484fi
5213506e
RW
19485rm -f core conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19487fi
db9f46a9
TG
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19489$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19490 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 19491
f38a14ca
TG
19492cat >>confdefs.h <<_ACEOF
19493#define HAVE_CEXPF 1
19494_ACEOF
1409cd0b 19495
db9f46a9 19496 fi
1409cd0b 19497
1409cd0b 19498
db9f46a9
TG
19499
19500
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19502$as_echo_n "checking for cexp... " >&6; }
22e05272 19503if ${gcc_cv_math_func_cexp+:} false; then :
5213506e 19504 $as_echo_n "(cached) " >&6
1409cd0b 19505else
db9f46a9 19506 if test x$gcc_no_link = xyes; then
22e05272 19507 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19508fi
5213506e 19509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19510/* end confdefs.h. */
19511
db9f46a9
TG
19512#ifdef HAVE_COMPLEX_H
19513#include <complex.h>
19514#endif
19515#ifdef HAVE_MATH_H
19516#include <math.h>
1409cd0b 19517#endif
db9f46a9
TG
19518
19519int (*ptr)() = (int (*)())cexp;
19520
1409cd0b
FXC
19521int
19522main ()
19523{
1409cd0b
FXC
19524 return 0;
19525}
db9f46a9 19526
1409cd0b 19527_ACEOF
5213506e 19528if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19529 gcc_cv_math_func_cexp=yes
1409cd0b 19530else
db9f46a9 19531 gcc_cv_math_func_cexp=no
1409cd0b 19532fi
5213506e
RW
19533rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19535fi
db9f46a9
TG
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19537$as_echo "$gcc_cv_math_func_cexp" >&6; }
19538 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19539
f38a14ca
TG
19540cat >>confdefs.h <<_ACEOF
19541#define HAVE_CEXP 1
19542_ACEOF
db9f46a9
TG
19543
19544 fi
1409cd0b 19545
1409cd0b 19546
1409cd0b 19547
db9f46a9
TG
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19550$as_echo_n "checking for cexpl... " >&6; }
22e05272 19551if ${gcc_cv_math_func_cexpl+:} false; then :
5213506e 19552 $as_echo_n "(cached) " >&6
1409cd0b 19553else
db9f46a9 19554 if test x$gcc_no_link = xyes; then
22e05272 19555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19556fi
5213506e 19557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19558/* end confdefs.h. */
19559
db9f46a9
TG
19560#ifdef HAVE_COMPLEX_H
19561#include <complex.h>
1409cd0b 19562#endif
db9f46a9
TG
19563#ifdef HAVE_MATH_H
19564#include <math.h>
19565#endif
19566
19567int (*ptr)() = (int (*)())cexpl;
19568
1409cd0b
FXC
19569int
19570main ()
19571{
1409cd0b
FXC
19572 return 0;
19573}
db9f46a9 19574
1409cd0b 19575_ACEOF
5213506e 19576if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19577 gcc_cv_math_func_cexpl=yes
1409cd0b 19578else
db9f46a9 19579 gcc_cv_math_func_cexpl=no
1409cd0b 19580fi
5213506e
RW
19581rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19583fi
db9f46a9
TG
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19585$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19586 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19587
f38a14ca
TG
19588cat >>confdefs.h <<_ACEOF
19589#define HAVE_CEXPL 1
19590_ACEOF
db9f46a9
TG
19591
19592 fi
19593
1409cd0b 19594
1409cd0b 19595
1409cd0b 19596
db9f46a9
TG
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19598$as_echo_n "checking for fabsf... " >&6; }
22e05272 19599if ${gcc_cv_math_func_fabsf+:} false; then :
5213506e 19600 $as_echo_n "(cached) " >&6
1409cd0b 19601else
db9f46a9 19602 if test x$gcc_no_link = xyes; then
22e05272 19603 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19604fi
5213506e 19605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19606/* end confdefs.h. */
19607
db9f46a9
TG
19608#ifdef HAVE_COMPLEX_H
19609#include <complex.h>
19610#endif
19611#ifdef HAVE_MATH_H
19612#include <math.h>
1409cd0b 19613#endif
db9f46a9
TG
19614
19615int (*ptr)() = (int (*)())fabsf;
19616
1409cd0b
FXC
19617int
19618main ()
19619{
1409cd0b
FXC
19620 return 0;
19621}
db9f46a9 19622
1409cd0b 19623_ACEOF
5213506e 19624if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19625 gcc_cv_math_func_fabsf=yes
1409cd0b 19626else
db9f46a9 19627 gcc_cv_math_func_fabsf=no
1409cd0b 19628fi
5213506e
RW
19629rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19631fi
db9f46a9
TG
19632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19633$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19634 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19635
f38a14ca
TG
19636cat >>confdefs.h <<_ACEOF
19637#define HAVE_FABSF 1
19638_ACEOF
db9f46a9
TG
19639
19640 fi
1409cd0b 19641
1409cd0b 19642
1409cd0b 19643
db9f46a9
TG
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19646$as_echo_n "checking for fabs... " >&6; }
22e05272 19647if ${gcc_cv_math_func_fabs+:} false; then :
5213506e 19648 $as_echo_n "(cached) " >&6
1409cd0b 19649else
db9f46a9 19650 if test x$gcc_no_link = xyes; then
22e05272 19651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19652fi
5213506e 19653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19654/* end confdefs.h. */
19655
db9f46a9
TG
19656#ifdef HAVE_COMPLEX_H
19657#include <complex.h>
1409cd0b 19658#endif
db9f46a9
TG
19659#ifdef HAVE_MATH_H
19660#include <math.h>
19661#endif
19662
19663int (*ptr)() = (int (*)())fabs;
19664
1409cd0b
FXC
19665int
19666main ()
19667{
1409cd0b
FXC
19668 return 0;
19669}
db9f46a9 19670
1409cd0b 19671_ACEOF
5213506e 19672if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19673 gcc_cv_math_func_fabs=yes
1409cd0b 19674else
db9f46a9 19675 gcc_cv_math_func_fabs=no
1409cd0b 19676fi
5213506e
RW
19677rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19679fi
db9f46a9
TG
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19681$as_echo "$gcc_cv_math_func_fabs" >&6; }
19682 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19683
f38a14ca
TG
19684cat >>confdefs.h <<_ACEOF
19685#define HAVE_FABS 1
19686_ACEOF
1409cd0b 19687
db9f46a9 19688 fi
1409cd0b 19689
1409cd0b 19690
db9f46a9
TG
19691
19692
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19694$as_echo_n "checking for fabsl... " >&6; }
22e05272 19695if ${gcc_cv_math_func_fabsl+:} false; then :
5213506e 19696 $as_echo_n "(cached) " >&6
1409cd0b 19697else
db9f46a9 19698 if test x$gcc_no_link = xyes; then
22e05272 19699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19700fi
5213506e 19701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19702/* end confdefs.h. */
19703
db9f46a9
TG
19704#ifdef HAVE_COMPLEX_H
19705#include <complex.h>
19706#endif
19707#ifdef HAVE_MATH_H
19708#include <math.h>
1409cd0b 19709#endif
db9f46a9
TG
19710
19711int (*ptr)() = (int (*)())fabsl;
19712
1409cd0b
FXC
19713int
19714main ()
19715{
1409cd0b
FXC
19716 return 0;
19717}
db9f46a9 19718
1409cd0b 19719_ACEOF
5213506e 19720if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19721 gcc_cv_math_func_fabsl=yes
1409cd0b 19722else
db9f46a9 19723 gcc_cv_math_func_fabsl=no
1409cd0b 19724fi
5213506e
RW
19725rm -f core conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19727fi
db9f46a9
TG
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19729$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19730 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19731
f38a14ca
TG
19732cat >>confdefs.h <<_ACEOF
19733#define HAVE_FABSL 1
19734_ACEOF
db9f46a9
TG
19735
19736 fi
1409cd0b 19737
1409cd0b 19738
1409cd0b 19739
db9f46a9
TG
19740
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19742$as_echo_n "checking for cabsf... " >&6; }
22e05272 19743if ${gcc_cv_math_func_cabsf+:} false; then :
5213506e 19744 $as_echo_n "(cached) " >&6
1409cd0b 19745else
db9f46a9 19746 if test x$gcc_no_link = xyes; then
22e05272 19747 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19748fi
5213506e 19749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19750/* end confdefs.h. */
19751
db9f46a9
TG
19752#ifdef HAVE_COMPLEX_H
19753#include <complex.h>
1409cd0b 19754#endif
db9f46a9
TG
19755#ifdef HAVE_MATH_H
19756#include <math.h>
19757#endif
19758
19759int (*ptr)() = (int (*)())cabsf;
19760
1409cd0b
FXC
19761int
19762main ()
19763{
1409cd0b
FXC
19764 return 0;
19765}
db9f46a9 19766
1409cd0b 19767_ACEOF
5213506e 19768if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19769 gcc_cv_math_func_cabsf=yes
1409cd0b 19770else
db9f46a9 19771 gcc_cv_math_func_cabsf=no
1409cd0b 19772fi
5213506e
RW
19773rm -f core conftest.err conftest.$ac_objext \
19774 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19775fi
db9f46a9
TG
19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19777$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19778 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19779
f38a14ca
TG
19780cat >>confdefs.h <<_ACEOF
19781#define HAVE_CABSF 1
19782_ACEOF
db9f46a9
TG
19783
19784 fi
19785
1409cd0b 19786
1409cd0b 19787
1409cd0b 19788
db9f46a9
TG
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19790$as_echo_n "checking for cabs... " >&6; }
22e05272 19791if ${gcc_cv_math_func_cabs+:} false; then :
5213506e 19792 $as_echo_n "(cached) " >&6
1409cd0b 19793else
db9f46a9 19794 if test x$gcc_no_link = xyes; then
22e05272 19795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19796fi
5213506e 19797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19798/* end confdefs.h. */
19799
db9f46a9
TG
19800#ifdef HAVE_COMPLEX_H
19801#include <complex.h>
19802#endif
19803#ifdef HAVE_MATH_H
19804#include <math.h>
1409cd0b 19805#endif
db9f46a9
TG
19806
19807int (*ptr)() = (int (*)())cabs;
19808
1409cd0b
FXC
19809int
19810main ()
19811{
1409cd0b
FXC
19812 return 0;
19813}
db9f46a9 19814
1409cd0b 19815_ACEOF
5213506e 19816if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19817 gcc_cv_math_func_cabs=yes
1409cd0b 19818else
db9f46a9 19819 gcc_cv_math_func_cabs=no
1409cd0b 19820fi
5213506e
RW
19821rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19823fi
db9f46a9
TG
19824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19825$as_echo "$gcc_cv_math_func_cabs" >&6; }
19826 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19827
f38a14ca
TG
19828cat >>confdefs.h <<_ACEOF
19829#define HAVE_CABS 1
19830_ACEOF
db9f46a9
TG
19831
19832 fi
1409cd0b 19833
1409cd0b 19834
1409cd0b 19835
db9f46a9
TG
19836
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19838$as_echo_n "checking for cabsl... " >&6; }
22e05272 19839if ${gcc_cv_math_func_cabsl+:} false; then :
5213506e 19840 $as_echo_n "(cached) " >&6
1409cd0b 19841else
db9f46a9 19842 if test x$gcc_no_link = xyes; then
22e05272 19843 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19844fi
5213506e 19845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19846/* end confdefs.h. */
19847
db9f46a9
TG
19848#ifdef HAVE_COMPLEX_H
19849#include <complex.h>
1409cd0b 19850#endif
db9f46a9
TG
19851#ifdef HAVE_MATH_H
19852#include <math.h>
19853#endif
19854
19855int (*ptr)() = (int (*)())cabsl;
19856
1409cd0b
FXC
19857int
19858main ()
19859{
1409cd0b
FXC
19860 return 0;
19861}
db9f46a9 19862
1409cd0b 19863_ACEOF
5213506e 19864if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19865 gcc_cv_math_func_cabsl=yes
1409cd0b 19866else
db9f46a9 19867 gcc_cv_math_func_cabsl=no
1409cd0b 19868fi
5213506e
RW
19869rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19871fi
db9f46a9
TG
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19873$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19874 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19875
f38a14ca
TG
19876cat >>confdefs.h <<_ACEOF
19877#define HAVE_CABSL 1
19878_ACEOF
1409cd0b 19879
db9f46a9 19880 fi
1409cd0b 19881
1409cd0b 19882
db9f46a9
TG
19883
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19886$as_echo_n "checking for floorf... " >&6; }
22e05272 19887if ${gcc_cv_math_func_floorf+:} false; then :
5213506e 19888 $as_echo_n "(cached) " >&6
1409cd0b 19889else
db9f46a9 19890 if test x$gcc_no_link = xyes; then
22e05272 19891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19892fi
5213506e 19893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19894/* end confdefs.h. */
19895
db9f46a9
TG
19896#ifdef HAVE_COMPLEX_H
19897#include <complex.h>
19898#endif
19899#ifdef HAVE_MATH_H
19900#include <math.h>
1409cd0b 19901#endif
db9f46a9
TG
19902
19903int (*ptr)() = (int (*)())floorf;
19904
1409cd0b
FXC
19905int
19906main ()
19907{
5213506e
RW
19908 return 0;
19909}
db9f46a9 19910
5213506e
RW
19911_ACEOF
19912if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19913 gcc_cv_math_func_floorf=yes
1409cd0b 19914else
db9f46a9 19915 gcc_cv_math_func_floorf=no
1409cd0b 19916fi
5213506e
RW
19917rm -f core conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19919fi
db9f46a9
TG
19920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19921$as_echo "$gcc_cv_math_func_floorf" >&6; }
19922 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19923
f38a14ca
TG
19924cat >>confdefs.h <<_ACEOF
19925#define HAVE_FLOORF 1
19926_ACEOF
db9f46a9
TG
19927
19928 fi
1409cd0b 19929
1409cd0b 19930
1409cd0b 19931
db9f46a9
TG
19932
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19934$as_echo_n "checking for floor... " >&6; }
22e05272 19935if ${gcc_cv_math_func_floor+:} false; then :
5213506e 19936 $as_echo_n "(cached) " >&6
1409cd0b 19937else
db9f46a9 19938 if test x$gcc_no_link = xyes; then
22e05272 19939 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19940fi
5213506e 19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19942/* end confdefs.h. */
19943
db9f46a9
TG
19944#ifdef HAVE_COMPLEX_H
19945#include <complex.h>
1409cd0b 19946#endif
db9f46a9
TG
19947#ifdef HAVE_MATH_H
19948#include <math.h>
19949#endif
19950
19951int (*ptr)() = (int (*)())floor;
19952
1409cd0b
FXC
19953int
19954main ()
19955{
1409cd0b
FXC
19956 return 0;
19957}
db9f46a9 19958
1409cd0b 19959_ACEOF
5213506e 19960if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19961 gcc_cv_math_func_floor=yes
1409cd0b 19962else
db9f46a9 19963 gcc_cv_math_func_floor=no
1409cd0b 19964fi
5213506e
RW
19965rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19967fi
db9f46a9
TG
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19969$as_echo "$gcc_cv_math_func_floor" >&6; }
19970 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19971
f38a14ca
TG
19972cat >>confdefs.h <<_ACEOF
19973#define HAVE_FLOOR 1
19974_ACEOF
db9f46a9
TG
19975
19976 fi
19977
1409cd0b 19978
1409cd0b 19979
1409cd0b 19980
db9f46a9
TG
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19982$as_echo_n "checking for floorl... " >&6; }
22e05272 19983if ${gcc_cv_math_func_floorl+:} false; then :
5213506e 19984 $as_echo_n "(cached) " >&6
eb647f7d 19985else
db9f46a9 19986 if test x$gcc_no_link = xyes; then
22e05272 19987 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19988fi
5213506e 19989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19990/* end confdefs.h. */
19991
db9f46a9
TG
19992#ifdef HAVE_COMPLEX_H
19993#include <complex.h>
19994#endif
19995#ifdef HAVE_MATH_H
19996#include <math.h>
eb647f7d 19997#endif
db9f46a9
TG
19998
19999int (*ptr)() = (int (*)())floorl;
20000
eb647f7d
FXC
20001int
20002main ()
20003{
eb647f7d
FXC
20004 return 0;
20005}
db9f46a9 20006
eb647f7d 20007_ACEOF
5213506e 20008if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20009 gcc_cv_math_func_floorl=yes
eb647f7d 20010else
db9f46a9 20011 gcc_cv_math_func_floorl=no
eb647f7d 20012fi
5213506e
RW
20013rm -f core conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20015fi
db9f46a9
TG
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
20017$as_echo "$gcc_cv_math_func_floorl" >&6; }
20018 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 20019
f38a14ca
TG
20020cat >>confdefs.h <<_ACEOF
20021#define HAVE_FLOORL 1
20022_ACEOF
db9f46a9
TG
20023
20024 fi
eb647f7d 20025
eb647f7d 20026
eb647f7d 20027
db9f46a9 20028
1868599f
JJ
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
20030$as_echo_n "checking for fmaf... " >&6; }
20031if ${gcc_cv_math_func_fmaf+:} false; then :
20032 $as_echo_n "(cached) " >&6
20033else
20034 if test x$gcc_no_link = xyes; then
20035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20036fi
20037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038/* end confdefs.h. */
20039
20040#ifdef HAVE_COMPLEX_H
20041#include <complex.h>
20042#endif
20043#ifdef HAVE_MATH_H
20044#include <math.h>
20045#endif
20046
20047int (*ptr)() = (int (*)())fmaf;
20048
20049int
20050main ()
20051{
20052 return 0;
20053}
20054
20055_ACEOF
20056if ac_fn_c_try_link "$LINENO"; then :
20057 gcc_cv_math_func_fmaf=yes
20058else
20059 gcc_cv_math_func_fmaf=no
20060fi
20061rm -f core conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
20063fi
20064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
20065$as_echo "$gcc_cv_math_func_fmaf" >&6; }
20066 if test $gcc_cv_math_func_fmaf = yes; then
20067
20068cat >>confdefs.h <<_ACEOF
20069#define HAVE_FMAF 1
20070_ACEOF
20071
20072 fi
20073
20074
20075
20076
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
20078$as_echo_n "checking for fma... " >&6; }
20079if ${gcc_cv_math_func_fma+:} false; then :
20080 $as_echo_n "(cached) " >&6
20081else
20082 if test x$gcc_no_link = xyes; then
20083 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20084fi
20085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086/* end confdefs.h. */
20087
20088#ifdef HAVE_COMPLEX_H
20089#include <complex.h>
20090#endif
20091#ifdef HAVE_MATH_H
20092#include <math.h>
20093#endif
20094
20095int (*ptr)() = (int (*)())fma;
20096
20097int
20098main ()
20099{
20100 return 0;
20101}
20102
20103_ACEOF
20104if ac_fn_c_try_link "$LINENO"; then :
20105 gcc_cv_math_func_fma=yes
20106else
20107 gcc_cv_math_func_fma=no
20108fi
20109rm -f core conftest.err conftest.$ac_objext \
20110 conftest$ac_exeext conftest.$ac_ext
20111fi
20112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
20113$as_echo "$gcc_cv_math_func_fma" >&6; }
20114 if test $gcc_cv_math_func_fma = yes; then
20115
20116cat >>confdefs.h <<_ACEOF
20117#define HAVE_FMA 1
20118_ACEOF
20119
20120 fi
20121
20122
20123
20124
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
20126$as_echo_n "checking for fmal... " >&6; }
20127if ${gcc_cv_math_func_fmal+:} false; then :
20128 $as_echo_n "(cached) " >&6
20129else
20130 if test x$gcc_no_link = xyes; then
20131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20132fi
20133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h. */
20135
20136#ifdef HAVE_COMPLEX_H
20137#include <complex.h>
20138#endif
20139#ifdef HAVE_MATH_H
20140#include <math.h>
20141#endif
20142
20143int (*ptr)() = (int (*)())fmal;
20144
20145int
20146main ()
20147{
20148 return 0;
20149}
20150
20151_ACEOF
20152if ac_fn_c_try_link "$LINENO"; then :
20153 gcc_cv_math_func_fmal=yes
20154else
20155 gcc_cv_math_func_fmal=no
20156fi
20157rm -f core conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
20159fi
20160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
20161$as_echo "$gcc_cv_math_func_fmal" >&6; }
20162 if test $gcc_cv_math_func_fmal = yes; then
20163
20164cat >>confdefs.h <<_ACEOF
20165#define HAVE_FMAL 1
20166_ACEOF
20167
20168 fi
20169
20170
20171
20172
db9f46a9
TG
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20174$as_echo_n "checking for fmodf... " >&6; }
22e05272 20175if ${gcc_cv_math_func_fmodf+:} false; then :
5213506e 20176 $as_echo_n "(cached) " >&6
eb647f7d 20177else
db9f46a9 20178 if test x$gcc_no_link = xyes; then
22e05272 20179 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20180fi
5213506e 20181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20182/* end confdefs.h. */
20183
db9f46a9
TG
20184#ifdef HAVE_COMPLEX_H
20185#include <complex.h>
eb647f7d 20186#endif
db9f46a9
TG
20187#ifdef HAVE_MATH_H
20188#include <math.h>
20189#endif
20190
20191int (*ptr)() = (int (*)())fmodf;
20192
eb647f7d
FXC
20193int
20194main ()
20195{
eb647f7d
FXC
20196 return 0;
20197}
db9f46a9 20198
eb647f7d 20199_ACEOF
5213506e 20200if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20201 gcc_cv_math_func_fmodf=yes
eb647f7d 20202else
db9f46a9 20203 gcc_cv_math_func_fmodf=no
eb647f7d 20204fi
5213506e
RW
20205rm -f core conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20207fi
db9f46a9
TG
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20209$as_echo "$gcc_cv_math_func_fmodf" >&6; }
20210 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 20211
f38a14ca
TG
20212cat >>confdefs.h <<_ACEOF
20213#define HAVE_FMODF 1
20214_ACEOF
eb647f7d 20215
db9f46a9 20216 fi
eb647f7d 20217
eb647f7d 20218
db9f46a9
TG
20219
20220
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20222$as_echo_n "checking for fmod... " >&6; }
22e05272 20223if ${gcc_cv_math_func_fmod+:} false; then :
5213506e 20224 $as_echo_n "(cached) " >&6
eb647f7d 20225else
db9f46a9 20226 if test x$gcc_no_link = xyes; then
22e05272 20227 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20228fi
5213506e 20229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20230/* end confdefs.h. */
20231
db9f46a9
TG
20232#ifdef HAVE_COMPLEX_H
20233#include <complex.h>
20234#endif
20235#ifdef HAVE_MATH_H
20236#include <math.h>
eb647f7d 20237#endif
db9f46a9
TG
20238
20239int (*ptr)() = (int (*)())fmod;
20240
eb647f7d
FXC
20241int
20242main ()
20243{
eb647f7d
FXC
20244 return 0;
20245}
db9f46a9 20246
eb647f7d 20247_ACEOF
5213506e 20248if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20249 gcc_cv_math_func_fmod=yes
eb647f7d 20250else
db9f46a9 20251 gcc_cv_math_func_fmod=no
eb647f7d 20252fi
5213506e
RW
20253rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20255fi
db9f46a9
TG
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20257$as_echo "$gcc_cv_math_func_fmod" >&6; }
20258 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 20259
f38a14ca
TG
20260cat >>confdefs.h <<_ACEOF
20261#define HAVE_FMOD 1
20262_ACEOF
db9f46a9
TG
20263
20264 fi
eb647f7d 20265
eb647f7d 20266
eb647f7d 20267
db9f46a9
TG
20268
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20270$as_echo_n "checking for fmodl... " >&6; }
22e05272 20271if ${gcc_cv_math_func_fmodl+:} false; then :
5213506e 20272 $as_echo_n "(cached) " >&6
1409cd0b 20273else
db9f46a9 20274 if test x$gcc_no_link = xyes; then
22e05272 20275 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20276fi
5213506e 20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20278/* end confdefs.h. */
20279
db9f46a9
TG
20280#ifdef HAVE_COMPLEX_H
20281#include <complex.h>
1409cd0b 20282#endif
db9f46a9
TG
20283#ifdef HAVE_MATH_H
20284#include <math.h>
20285#endif
20286
20287int (*ptr)() = (int (*)())fmodl;
20288
1409cd0b
FXC
20289int
20290main ()
20291{
1409cd0b
FXC
20292 return 0;
20293}
db9f46a9 20294
1409cd0b 20295_ACEOF
5213506e 20296if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20297 gcc_cv_math_func_fmodl=yes
1409cd0b 20298else
db9f46a9 20299 gcc_cv_math_func_fmodl=no
1409cd0b 20300fi
5213506e
RW
20301rm -f core conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20303fi
db9f46a9
TG
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20305$as_echo "$gcc_cv_math_func_fmodl" >&6; }
20306 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 20307
f38a14ca
TG
20308cat >>confdefs.h <<_ACEOF
20309#define HAVE_FMODL 1
20310_ACEOF
db9f46a9
TG
20311
20312 fi
20313
1409cd0b 20314
1409cd0b 20315
1409cd0b 20316
db9f46a9
TG
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20318$as_echo_n "checking for frexpf... " >&6; }
22e05272 20319if ${gcc_cv_math_func_frexpf+:} false; then :
5213506e 20320 $as_echo_n "(cached) " >&6
1409cd0b 20321else
db9f46a9 20322 if test x$gcc_no_link = xyes; then
22e05272 20323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20324fi
5213506e 20325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20326/* end confdefs.h. */
20327
db9f46a9
TG
20328#ifdef HAVE_COMPLEX_H
20329#include <complex.h>
20330#endif
20331#ifdef HAVE_MATH_H
20332#include <math.h>
1409cd0b 20333#endif
db9f46a9
TG
20334
20335int (*ptr)() = (int (*)())frexpf;
20336
1409cd0b
FXC
20337int
20338main ()
20339{
1409cd0b
FXC
20340 return 0;
20341}
db9f46a9 20342
1409cd0b 20343_ACEOF
5213506e 20344if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20345 gcc_cv_math_func_frexpf=yes
1409cd0b 20346else
db9f46a9 20347 gcc_cv_math_func_frexpf=no
1409cd0b 20348fi
5213506e
RW
20349rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20351fi
db9f46a9
TG
20352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20353$as_echo "$gcc_cv_math_func_frexpf" >&6; }
20354 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 20355
f38a14ca
TG
20356cat >>confdefs.h <<_ACEOF
20357#define HAVE_FREXPF 1
20358_ACEOF
db9f46a9
TG
20359
20360 fi
1409cd0b 20361
1409cd0b 20362
1409cd0b 20363
db9f46a9
TG
20364
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20366$as_echo_n "checking for frexp... " >&6; }
22e05272 20367if ${gcc_cv_math_func_frexp+:} false; then :
5213506e 20368 $as_echo_n "(cached) " >&6
1409cd0b 20369else
db9f46a9 20370 if test x$gcc_no_link = xyes; then
22e05272 20371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20372fi
5213506e 20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20374/* end confdefs.h. */
20375
db9f46a9
TG
20376#ifdef HAVE_COMPLEX_H
20377#include <complex.h>
1409cd0b 20378#endif
db9f46a9
TG
20379#ifdef HAVE_MATH_H
20380#include <math.h>
20381#endif
20382
20383int (*ptr)() = (int (*)())frexp;
20384
1409cd0b
FXC
20385int
20386main ()
20387{
1409cd0b
FXC
20388 return 0;
20389}
db9f46a9 20390
1409cd0b 20391_ACEOF
5213506e 20392if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20393 gcc_cv_math_func_frexp=yes
1409cd0b 20394else
db9f46a9 20395 gcc_cv_math_func_frexp=no
1409cd0b 20396fi
5213506e
RW
20397rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20399fi
db9f46a9
TG
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20401$as_echo "$gcc_cv_math_func_frexp" >&6; }
20402 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 20403
f38a14ca
TG
20404cat >>confdefs.h <<_ACEOF
20405#define HAVE_FREXP 1
20406_ACEOF
1409cd0b 20407
db9f46a9 20408 fi
1409cd0b 20409
1409cd0b 20410
db9f46a9
TG
20411
20412
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20414$as_echo_n "checking for frexpl... " >&6; }
22e05272 20415if ${gcc_cv_math_func_frexpl+:} false; then :
5213506e 20416 $as_echo_n "(cached) " >&6
1409cd0b 20417else
db9f46a9 20418 if test x$gcc_no_link = xyes; then
22e05272 20419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20420fi
5213506e 20421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20422/* end confdefs.h. */
20423
db9f46a9
TG
20424#ifdef HAVE_COMPLEX_H
20425#include <complex.h>
20426#endif
20427#ifdef HAVE_MATH_H
20428#include <math.h>
1409cd0b 20429#endif
db9f46a9
TG
20430
20431int (*ptr)() = (int (*)())frexpl;
20432
1409cd0b
FXC
20433int
20434main ()
20435{
1409cd0b
FXC
20436 return 0;
20437}
db9f46a9 20438
1409cd0b 20439_ACEOF
5213506e 20440if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20441 gcc_cv_math_func_frexpl=yes
1409cd0b 20442else
db9f46a9 20443 gcc_cv_math_func_frexpl=no
1409cd0b 20444fi
5213506e
RW
20445rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20447fi
db9f46a9
TG
20448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20449$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20450 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 20451
f38a14ca
TG
20452cat >>confdefs.h <<_ACEOF
20453#define HAVE_FREXPL 1
20454_ACEOF
db9f46a9
TG
20455
20456 fi
1409cd0b 20457
1409cd0b 20458
1409cd0b 20459
db9f46a9
TG
20460
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20462$as_echo_n "checking for hypotf... " >&6; }
22e05272 20463if ${gcc_cv_math_func_hypotf+:} false; then :
5213506e 20464 $as_echo_n "(cached) " >&6
1409cd0b 20465else
db9f46a9 20466 if test x$gcc_no_link = xyes; then
22e05272 20467 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20468fi
5213506e 20469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20470/* end confdefs.h. */
20471
db9f46a9
TG
20472#ifdef HAVE_COMPLEX_H
20473#include <complex.h>
1409cd0b 20474#endif
db9f46a9
TG
20475#ifdef HAVE_MATH_H
20476#include <math.h>
20477#endif
20478
20479int (*ptr)() = (int (*)())hypotf;
20480
1409cd0b
FXC
20481int
20482main ()
20483{
1409cd0b
FXC
20484 return 0;
20485}
db9f46a9 20486
1409cd0b 20487_ACEOF
5213506e 20488if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20489 gcc_cv_math_func_hypotf=yes
1409cd0b 20490else
db9f46a9 20491 gcc_cv_math_func_hypotf=no
1409cd0b 20492fi
5213506e
RW
20493rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20495fi
db9f46a9
TG
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20497$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20498 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 20499
f38a14ca
TG
20500cat >>confdefs.h <<_ACEOF
20501#define HAVE_HYPOTF 1
20502_ACEOF
db9f46a9
TG
20503
20504 fi
20505
1409cd0b 20506
1409cd0b 20507
1409cd0b 20508
db9f46a9
TG
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20510$as_echo_n "checking for hypot... " >&6; }
22e05272 20511if ${gcc_cv_math_func_hypot+:} false; then :
5213506e 20512 $as_echo_n "(cached) " >&6
1409cd0b 20513else
db9f46a9 20514 if test x$gcc_no_link = xyes; then
22e05272 20515 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20516fi
5213506e 20517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20518/* end confdefs.h. */
20519
db9f46a9
TG
20520#ifdef HAVE_COMPLEX_H
20521#include <complex.h>
20522#endif
20523#ifdef HAVE_MATH_H
20524#include <math.h>
1409cd0b 20525#endif
db9f46a9
TG
20526
20527int (*ptr)() = (int (*)())hypot;
20528
1409cd0b
FXC
20529int
20530main ()
20531{
1409cd0b
FXC
20532 return 0;
20533}
db9f46a9 20534
1409cd0b 20535_ACEOF
5213506e 20536if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20537 gcc_cv_math_func_hypot=yes
1409cd0b 20538else
db9f46a9 20539 gcc_cv_math_func_hypot=no
1409cd0b 20540fi
5213506e
RW
20541rm -f core conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20543fi
db9f46a9
TG
20544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20545$as_echo "$gcc_cv_math_func_hypot" >&6; }
20546 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 20547
f38a14ca
TG
20548cat >>confdefs.h <<_ACEOF
20549#define HAVE_HYPOT 1
20550_ACEOF
db9f46a9
TG
20551
20552 fi
1409cd0b 20553
1409cd0b 20554
1409cd0b 20555
db9f46a9
TG
20556
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20558$as_echo_n "checking for hypotl... " >&6; }
22e05272 20559if ${gcc_cv_math_func_hypotl+:} false; then :
5213506e 20560 $as_echo_n "(cached) " >&6
cc6d3bde 20561else
db9f46a9 20562 if test x$gcc_no_link = xyes; then
22e05272 20563 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20564fi
5213506e 20565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20566/* end confdefs.h. */
20567
db9f46a9
TG
20568#ifdef HAVE_COMPLEX_H
20569#include <complex.h>
cc6d3bde 20570#endif
db9f46a9
TG
20571#ifdef HAVE_MATH_H
20572#include <math.h>
20573#endif
20574
20575int (*ptr)() = (int (*)())hypotl;
20576
cc6d3bde
SK
20577int
20578main ()
20579{
cc6d3bde
SK
20580 return 0;
20581}
db9f46a9 20582
cc6d3bde 20583_ACEOF
5213506e 20584if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20585 gcc_cv_math_func_hypotl=yes
cc6d3bde 20586else
db9f46a9 20587 gcc_cv_math_func_hypotl=no
cc6d3bde 20588fi
5213506e
RW
20589rm -f core conftest.err conftest.$ac_objext \
20590 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20591fi
db9f46a9
TG
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20593$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20594 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 20595
f38a14ca
TG
20596cat >>confdefs.h <<_ACEOF
20597#define HAVE_HYPOTL 1
20598_ACEOF
cc6d3bde 20599
db9f46a9 20600 fi
cc6d3bde 20601
cc6d3bde 20602
db9f46a9
TG
20603
20604
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20606$as_echo_n "checking for ldexpf... " >&6; }
22e05272 20607if ${gcc_cv_math_func_ldexpf+:} false; then :
5213506e 20608 $as_echo_n "(cached) " >&6
cc6d3bde 20609else
db9f46a9 20610 if test x$gcc_no_link = xyes; then
22e05272 20611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20612fi
5213506e 20613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20614/* end confdefs.h. */
20615
db9f46a9
TG
20616#ifdef HAVE_COMPLEX_H
20617#include <complex.h>
20618#endif
20619#ifdef HAVE_MATH_H
20620#include <math.h>
cc6d3bde 20621#endif
db9f46a9
TG
20622
20623int (*ptr)() = (int (*)())ldexpf;
20624
cc6d3bde
SK
20625int
20626main ()
20627{
cc6d3bde
SK
20628 return 0;
20629}
db9f46a9 20630
cc6d3bde 20631_ACEOF
5213506e 20632if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20633 gcc_cv_math_func_ldexpf=yes
cc6d3bde 20634else
db9f46a9 20635 gcc_cv_math_func_ldexpf=no
cc6d3bde 20636fi
5213506e
RW
20637rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20639fi
db9f46a9
TG
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20641$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20642 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20643
f38a14ca
TG
20644cat >>confdefs.h <<_ACEOF
20645#define HAVE_LDEXPF 1
20646_ACEOF
db9f46a9
TG
20647
20648 fi
cc6d3bde 20649
cc6d3bde 20650
cc6d3bde 20651
db9f46a9
TG
20652
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20654$as_echo_n "checking for ldexp... " >&6; }
22e05272 20655if ${gcc_cv_math_func_ldexp+:} false; then :
5213506e 20656 $as_echo_n "(cached) " >&6
cc6d3bde 20657else
db9f46a9 20658 if test x$gcc_no_link = xyes; then
22e05272 20659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20660fi
5213506e 20661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20662/* end confdefs.h. */
20663
db9f46a9
TG
20664#ifdef HAVE_COMPLEX_H
20665#include <complex.h>
cc6d3bde 20666#endif
db9f46a9
TG
20667#ifdef HAVE_MATH_H
20668#include <math.h>
20669#endif
20670
20671int (*ptr)() = (int (*)())ldexp;
20672
cc6d3bde
SK
20673int
20674main ()
20675{
cc6d3bde
SK
20676 return 0;
20677}
db9f46a9 20678
cc6d3bde 20679_ACEOF
5213506e 20680if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20681 gcc_cv_math_func_ldexp=yes
cc6d3bde 20682else
db9f46a9 20683 gcc_cv_math_func_ldexp=no
cc6d3bde 20684fi
5213506e
RW
20685rm -f core conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20687fi
db9f46a9
TG
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20689$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20690 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20691
f38a14ca
TG
20692cat >>confdefs.h <<_ACEOF
20693#define HAVE_LDEXP 1
20694_ACEOF
db9f46a9
TG
20695
20696 fi
20697
cc6d3bde 20698
cc6d3bde 20699
cc6d3bde 20700
db9f46a9
TG
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20702$as_echo_n "checking for ldexpl... " >&6; }
22e05272 20703if ${gcc_cv_math_func_ldexpl+:} false; then :
5213506e 20704 $as_echo_n "(cached) " >&6
1409cd0b 20705else
db9f46a9 20706 if test x$gcc_no_link = xyes; then
22e05272 20707 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20708fi
5213506e 20709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20710/* end confdefs.h. */
20711
db9f46a9
TG
20712#ifdef HAVE_COMPLEX_H
20713#include <complex.h>
20714#endif
20715#ifdef HAVE_MATH_H
20716#include <math.h>
1409cd0b 20717#endif
db9f46a9
TG
20718
20719int (*ptr)() = (int (*)())ldexpl;
20720
1409cd0b
FXC
20721int
20722main ()
20723{
1409cd0b
FXC
20724 return 0;
20725}
db9f46a9 20726
1409cd0b 20727_ACEOF
5213506e 20728if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20729 gcc_cv_math_func_ldexpl=yes
1409cd0b 20730else
db9f46a9 20731 gcc_cv_math_func_ldexpl=no
1409cd0b 20732fi
5213506e
RW
20733rm -f core conftest.err conftest.$ac_objext \
20734 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20735fi
db9f46a9
TG
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20737$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20738 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20739
f38a14ca
TG
20740cat >>confdefs.h <<_ACEOF
20741#define HAVE_LDEXPL 1
20742_ACEOF
db9f46a9
TG
20743
20744 fi
1409cd0b 20745
1409cd0b 20746
1409cd0b 20747
db9f46a9
TG
20748
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20750$as_echo_n "checking for logf... " >&6; }
22e05272 20751if ${gcc_cv_math_func_logf+:} false; then :
5213506e 20752 $as_echo_n "(cached) " >&6
1409cd0b 20753else
db9f46a9 20754 if test x$gcc_no_link = xyes; then
22e05272 20755 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20756fi
5213506e 20757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20758/* end confdefs.h. */
20759
db9f46a9
TG
20760#ifdef HAVE_COMPLEX_H
20761#include <complex.h>
1409cd0b 20762#endif
db9f46a9
TG
20763#ifdef HAVE_MATH_H
20764#include <math.h>
20765#endif
20766
20767int (*ptr)() = (int (*)())logf;
20768
1409cd0b
FXC
20769int
20770main ()
20771{
1409cd0b
FXC
20772 return 0;
20773}
db9f46a9 20774
1409cd0b 20775_ACEOF
5213506e 20776if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20777 gcc_cv_math_func_logf=yes
1409cd0b 20778else
db9f46a9 20779 gcc_cv_math_func_logf=no
1409cd0b 20780fi
5213506e
RW
20781rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20783fi
db9f46a9
TG
20784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20785$as_echo "$gcc_cv_math_func_logf" >&6; }
20786 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20787
f38a14ca
TG
20788cat >>confdefs.h <<_ACEOF
20789#define HAVE_LOGF 1
20790_ACEOF
1409cd0b 20791
db9f46a9 20792 fi
1409cd0b 20793
1409cd0b 20794
db9f46a9
TG
20795
20796
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20798$as_echo_n "checking for log... " >&6; }
22e05272 20799if ${gcc_cv_math_func_log+:} false; then :
5213506e 20800 $as_echo_n "(cached) " >&6
1409cd0b 20801else
db9f46a9 20802 if test x$gcc_no_link = xyes; then
22e05272 20803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20804fi
5213506e 20805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20806/* end confdefs.h. */
20807
db9f46a9
TG
20808#ifdef HAVE_COMPLEX_H
20809#include <complex.h>
20810#endif
20811#ifdef HAVE_MATH_H
20812#include <math.h>
1409cd0b 20813#endif
db9f46a9
TG
20814
20815int (*ptr)() = (int (*)())log;
20816
1409cd0b
FXC
20817int
20818main ()
20819{
1409cd0b
FXC
20820 return 0;
20821}
db9f46a9 20822
1409cd0b 20823_ACEOF
5213506e 20824if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20825 gcc_cv_math_func_log=yes
1409cd0b 20826else
db9f46a9 20827 gcc_cv_math_func_log=no
1409cd0b 20828fi
5213506e
RW
20829rm -f core conftest.err conftest.$ac_objext \
20830 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20831fi
db9f46a9
TG
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20833$as_echo "$gcc_cv_math_func_log" >&6; }
20834 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20835
f38a14ca
TG
20836cat >>confdefs.h <<_ACEOF
20837#define HAVE_LOG 1
20838_ACEOF
db9f46a9
TG
20839
20840 fi
1409cd0b 20841
1409cd0b 20842
1409cd0b 20843
db9f46a9
TG
20844
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20846$as_echo_n "checking for logl... " >&6; }
22e05272 20847if ${gcc_cv_math_func_logl+:} false; then :
5213506e 20848 $as_echo_n "(cached) " >&6
1409cd0b 20849else
db9f46a9 20850 if test x$gcc_no_link = xyes; then
22e05272 20851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20852fi
5213506e 20853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20854/* end confdefs.h. */
20855
db9f46a9
TG
20856#ifdef HAVE_COMPLEX_H
20857#include <complex.h>
1409cd0b 20858#endif
db9f46a9
TG
20859#ifdef HAVE_MATH_H
20860#include <math.h>
20861#endif
20862
20863int (*ptr)() = (int (*)())logl;
20864
1409cd0b
FXC
20865int
20866main ()
20867{
1409cd0b
FXC
20868 return 0;
20869}
db9f46a9 20870
1409cd0b 20871_ACEOF
5213506e 20872if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20873 gcc_cv_math_func_logl=yes
1409cd0b 20874else
db9f46a9 20875 gcc_cv_math_func_logl=no
1409cd0b 20876fi
5213506e
RW
20877rm -f core conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20879fi
db9f46a9
TG
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20881$as_echo "$gcc_cv_math_func_logl" >&6; }
20882 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20883
f38a14ca
TG
20884cat >>confdefs.h <<_ACEOF
20885#define HAVE_LOGL 1
20886_ACEOF
db9f46a9
TG
20887
20888 fi
20889
1409cd0b 20890
1409cd0b 20891
1409cd0b 20892
db9f46a9
TG
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20894$as_echo_n "checking for clogf... " >&6; }
22e05272 20895if ${gcc_cv_math_func_clogf+:} false; then :
5213506e 20896 $as_echo_n "(cached) " >&6
1409cd0b 20897else
db9f46a9 20898 if test x$gcc_no_link = xyes; then
22e05272 20899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20900fi
5213506e 20901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20902/* end confdefs.h. */
20903
db9f46a9
TG
20904#ifdef HAVE_COMPLEX_H
20905#include <complex.h>
20906#endif
20907#ifdef HAVE_MATH_H
20908#include <math.h>
1409cd0b 20909#endif
db9f46a9
TG
20910
20911int (*ptr)() = (int (*)())clogf;
20912
1409cd0b
FXC
20913int
20914main ()
20915{
1409cd0b
FXC
20916 return 0;
20917}
db9f46a9 20918
1409cd0b 20919_ACEOF
5213506e 20920if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20921 gcc_cv_math_func_clogf=yes
1409cd0b 20922else
db9f46a9 20923 gcc_cv_math_func_clogf=no
1409cd0b 20924fi
5213506e
RW
20925rm -f core conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20927fi
db9f46a9
TG
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20929$as_echo "$gcc_cv_math_func_clogf" >&6; }
20930 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20931
f38a14ca
TG
20932cat >>confdefs.h <<_ACEOF
20933#define HAVE_CLOGF 1
20934_ACEOF
db9f46a9
TG
20935
20936 fi
1409cd0b 20937
1409cd0b 20938
1409cd0b 20939
db9f46a9
TG
20940
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20942$as_echo_n "checking for clog... " >&6; }
22e05272 20943if ${gcc_cv_math_func_clog+:} false; then :
5213506e 20944 $as_echo_n "(cached) " >&6
1409cd0b 20945else
db9f46a9 20946 if test x$gcc_no_link = xyes; then
22e05272 20947 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20948fi
5213506e 20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20950/* end confdefs.h. */
20951
db9f46a9
TG
20952#ifdef HAVE_COMPLEX_H
20953#include <complex.h>
1409cd0b 20954#endif
db9f46a9
TG
20955#ifdef HAVE_MATH_H
20956#include <math.h>
20957#endif
20958
20959int (*ptr)() = (int (*)())clog;
20960
1409cd0b
FXC
20961int
20962main ()
20963{
1409cd0b
FXC
20964 return 0;
20965}
db9f46a9 20966
1409cd0b 20967_ACEOF
5213506e 20968if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20969 gcc_cv_math_func_clog=yes
1409cd0b 20970else
db9f46a9 20971 gcc_cv_math_func_clog=no
1409cd0b 20972fi
5213506e
RW
20973rm -f core conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20975fi
db9f46a9
TG
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20977$as_echo "$gcc_cv_math_func_clog" >&6; }
20978 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20979
f38a14ca
TG
20980cat >>confdefs.h <<_ACEOF
20981#define HAVE_CLOG 1
20982_ACEOF
1409cd0b 20983
db9f46a9 20984 fi
1409cd0b 20985
1409cd0b 20986
db9f46a9
TG
20987
20988
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20990$as_echo_n "checking for clogl... " >&6; }
22e05272 20991if ${gcc_cv_math_func_clogl+:} false; then :
5213506e 20992 $as_echo_n "(cached) " >&6
1409cd0b 20993else
db9f46a9 20994 if test x$gcc_no_link = xyes; then
22e05272 20995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20996fi
5213506e 20997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20998/* end confdefs.h. */
20999
db9f46a9
TG
21000#ifdef HAVE_COMPLEX_H
21001#include <complex.h>
21002#endif
21003#ifdef HAVE_MATH_H
21004#include <math.h>
1409cd0b 21005#endif
db9f46a9
TG
21006
21007int (*ptr)() = (int (*)())clogl;
21008
1409cd0b
FXC
21009int
21010main ()
21011{
1409cd0b
FXC
21012 return 0;
21013}
db9f46a9 21014
1409cd0b 21015_ACEOF
5213506e 21016if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21017 gcc_cv_math_func_clogl=yes
1409cd0b 21018else
db9f46a9 21019 gcc_cv_math_func_clogl=no
1409cd0b 21020fi
5213506e
RW
21021rm -f core conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21023fi
db9f46a9
TG
21024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
21025$as_echo "$gcc_cv_math_func_clogl" >&6; }
21026 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 21027
f38a14ca
TG
21028cat >>confdefs.h <<_ACEOF
21029#define HAVE_CLOGL 1
21030_ACEOF
db9f46a9
TG
21031
21032 fi
1409cd0b 21033
1409cd0b 21034
1409cd0b 21035
db9f46a9
TG
21036
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
21038$as_echo_n "checking for log10f... " >&6; }
22e05272 21039if ${gcc_cv_math_func_log10f+:} false; then :
5213506e 21040 $as_echo_n "(cached) " >&6
1409cd0b 21041else
db9f46a9 21042 if test x$gcc_no_link = xyes; then
22e05272 21043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21044fi
5213506e 21045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21046/* end confdefs.h. */
21047
db9f46a9
TG
21048#ifdef HAVE_COMPLEX_H
21049#include <complex.h>
1409cd0b 21050#endif
db9f46a9
TG
21051#ifdef HAVE_MATH_H
21052#include <math.h>
21053#endif
21054
21055int (*ptr)() = (int (*)())log10f;
21056
1409cd0b
FXC
21057int
21058main ()
21059{
1409cd0b
FXC
21060 return 0;
21061}
db9f46a9 21062
1409cd0b 21063_ACEOF
5213506e 21064if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21065 gcc_cv_math_func_log10f=yes
1409cd0b 21066else
db9f46a9 21067 gcc_cv_math_func_log10f=no
1409cd0b 21068fi
5213506e
RW
21069rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21071fi
db9f46a9
TG
21072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
21073$as_echo "$gcc_cv_math_func_log10f" >&6; }
21074 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 21075
f38a14ca
TG
21076cat >>confdefs.h <<_ACEOF
21077#define HAVE_LOG10F 1
21078_ACEOF
db9f46a9
TG
21079
21080 fi
21081
1409cd0b 21082
1409cd0b 21083
1409cd0b 21084
db9f46a9
TG
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
21086$as_echo_n "checking for log10... " >&6; }
22e05272 21087if ${gcc_cv_math_func_log10+:} false; then :
5213506e 21088 $as_echo_n "(cached) " >&6
1409cd0b 21089else
db9f46a9 21090 if test x$gcc_no_link = xyes; then
22e05272 21091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21092fi
5213506e 21093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21094/* end confdefs.h. */
21095
db9f46a9
TG
21096#ifdef HAVE_COMPLEX_H
21097#include <complex.h>
21098#endif
21099#ifdef HAVE_MATH_H
21100#include <math.h>
1409cd0b 21101#endif
db9f46a9
TG
21102
21103int (*ptr)() = (int (*)())log10;
21104
1409cd0b
FXC
21105int
21106main ()
21107{
1409cd0b
FXC
21108 return 0;
21109}
db9f46a9 21110
1409cd0b 21111_ACEOF
5213506e 21112if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21113 gcc_cv_math_func_log10=yes
1409cd0b 21114else
db9f46a9 21115 gcc_cv_math_func_log10=no
1409cd0b 21116fi
5213506e
RW
21117rm -f core conftest.err conftest.$ac_objext \
21118 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21119fi
db9f46a9
TG
21120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
21121$as_echo "$gcc_cv_math_func_log10" >&6; }
21122 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 21123
f38a14ca
TG
21124cat >>confdefs.h <<_ACEOF
21125#define HAVE_LOG10 1
21126_ACEOF
db9f46a9
TG
21127
21128 fi
1409cd0b 21129
1409cd0b 21130
1409cd0b 21131
db9f46a9
TG
21132
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
21134$as_echo_n "checking for log10l... " >&6; }
22e05272 21135if ${gcc_cv_math_func_log10l+:} false; then :
5213506e 21136 $as_echo_n "(cached) " >&6
1409cd0b 21137else
db9f46a9 21138 if test x$gcc_no_link = xyes; then
22e05272 21139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21140fi
5213506e 21141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21142/* end confdefs.h. */
21143
db9f46a9
TG
21144#ifdef HAVE_COMPLEX_H
21145#include <complex.h>
1409cd0b 21146#endif
db9f46a9
TG
21147#ifdef HAVE_MATH_H
21148#include <math.h>
21149#endif
21150
21151int (*ptr)() = (int (*)())log10l;
21152
1409cd0b
FXC
21153int
21154main ()
21155{
1409cd0b
FXC
21156 return 0;
21157}
db9f46a9 21158
1409cd0b 21159_ACEOF
5213506e 21160if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21161 gcc_cv_math_func_log10l=yes
1409cd0b 21162else
db9f46a9 21163 gcc_cv_math_func_log10l=no
1409cd0b 21164fi
5213506e
RW
21165rm -f core conftest.err conftest.$ac_objext \
21166 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21167fi
db9f46a9
TG
21168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21169$as_echo "$gcc_cv_math_func_log10l" >&6; }
21170 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 21171
f38a14ca
TG
21172cat >>confdefs.h <<_ACEOF
21173#define HAVE_LOG10L 1
21174_ACEOF
1409cd0b 21175
db9f46a9 21176 fi
1409cd0b 21177
1409cd0b 21178
db9f46a9
TG
21179
21180
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21182$as_echo_n "checking for clog10f... " >&6; }
22e05272 21183if ${gcc_cv_math_func_clog10f+:} false; then :
5213506e 21184 $as_echo_n "(cached) " >&6
1409cd0b 21185else
db9f46a9 21186 if test x$gcc_no_link = xyes; then
22e05272 21187 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21188fi
5213506e 21189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21190/* end confdefs.h. */
21191
db9f46a9
TG
21192#ifdef HAVE_COMPLEX_H
21193#include <complex.h>
21194#endif
21195#ifdef HAVE_MATH_H
21196#include <math.h>
1409cd0b 21197#endif
db9f46a9
TG
21198
21199int (*ptr)() = (int (*)())clog10f;
21200
1409cd0b
FXC
21201int
21202main ()
21203{
1409cd0b
FXC
21204 return 0;
21205}
db9f46a9 21206
1409cd0b 21207_ACEOF
5213506e 21208if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21209 gcc_cv_math_func_clog10f=yes
1409cd0b 21210else
db9f46a9 21211 gcc_cv_math_func_clog10f=no
1409cd0b 21212fi
5213506e
RW
21213rm -f core conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21215fi
db9f46a9
TG
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21217$as_echo "$gcc_cv_math_func_clog10f" >&6; }
21218 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 21219
f38a14ca
TG
21220cat >>confdefs.h <<_ACEOF
21221#define HAVE_CLOG10F 1
21222_ACEOF
db9f46a9
TG
21223
21224 fi
1409cd0b 21225
1409cd0b 21226
1409cd0b 21227
db9f46a9
TG
21228
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21230$as_echo_n "checking for clog10... " >&6; }
22e05272 21231if ${gcc_cv_math_func_clog10+:} false; then :
5213506e 21232 $as_echo_n "(cached) " >&6
1409cd0b 21233else
db9f46a9 21234 if test x$gcc_no_link = xyes; then
22e05272 21235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21236fi
5213506e 21237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21238/* end confdefs.h. */
21239
db9f46a9
TG
21240#ifdef HAVE_COMPLEX_H
21241#include <complex.h>
1409cd0b 21242#endif
db9f46a9
TG
21243#ifdef HAVE_MATH_H
21244#include <math.h>
21245#endif
21246
21247int (*ptr)() = (int (*)())clog10;
21248
1409cd0b
FXC
21249int
21250main ()
21251{
5213506e
RW
21252 return 0;
21253}
db9f46a9 21254
5213506e
RW
21255_ACEOF
21256if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21257 gcc_cv_math_func_clog10=yes
1409cd0b 21258else
db9f46a9 21259 gcc_cv_math_func_clog10=no
1409cd0b 21260fi
5213506e
RW
21261rm -f core conftest.err conftest.$ac_objext \
21262 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21263fi
db9f46a9
TG
21264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21265$as_echo "$gcc_cv_math_func_clog10" >&6; }
21266 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 21267
f38a14ca
TG
21268cat >>confdefs.h <<_ACEOF
21269#define HAVE_CLOG10 1
21270_ACEOF
db9f46a9
TG
21271
21272 fi
21273
1409cd0b 21274
1409cd0b 21275
1409cd0b 21276
db9f46a9
TG
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21278$as_echo_n "checking for clog10l... " >&6; }
22e05272 21279if ${gcc_cv_math_func_clog10l+:} false; then :
5213506e 21280 $as_echo_n "(cached) " >&6
1409cd0b 21281else
db9f46a9 21282 if test x$gcc_no_link = xyes; then
22e05272 21283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21284fi
5213506e 21285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21286/* end confdefs.h. */
21287
db9f46a9
TG
21288#ifdef HAVE_COMPLEX_H
21289#include <complex.h>
21290#endif
21291#ifdef HAVE_MATH_H
21292#include <math.h>
1409cd0b 21293#endif
db9f46a9
TG
21294
21295int (*ptr)() = (int (*)())clog10l;
21296
1409cd0b
FXC
21297int
21298main ()
21299{
1409cd0b
FXC
21300 return 0;
21301}
db9f46a9 21302
1409cd0b 21303_ACEOF
5213506e 21304if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21305 gcc_cv_math_func_clog10l=yes
1409cd0b 21306else
db9f46a9 21307 gcc_cv_math_func_clog10l=no
1409cd0b 21308fi
5213506e
RW
21309rm -f core conftest.err conftest.$ac_objext \
21310 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21311fi
db9f46a9
TG
21312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21313$as_echo "$gcc_cv_math_func_clog10l" >&6; }
21314 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 21315
f38a14ca
TG
21316cat >>confdefs.h <<_ACEOF
21317#define HAVE_CLOG10L 1
21318_ACEOF
db9f46a9
TG
21319
21320 fi
1409cd0b 21321
1409cd0b 21322
1409cd0b 21323
db9f46a9
TG
21324
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21326$as_echo_n "checking for nextafterf... " >&6; }
22e05272 21327if ${gcc_cv_math_func_nextafterf+:} false; then :
5213506e 21328 $as_echo_n "(cached) " >&6
1409cd0b 21329else
db9f46a9 21330 if test x$gcc_no_link = xyes; then
22e05272 21331 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21332fi
5213506e 21333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21334/* end confdefs.h. */
21335
db9f46a9
TG
21336#ifdef HAVE_COMPLEX_H
21337#include <complex.h>
1409cd0b 21338#endif
db9f46a9
TG
21339#ifdef HAVE_MATH_H
21340#include <math.h>
21341#endif
21342
21343int (*ptr)() = (int (*)())nextafterf;
21344
1409cd0b
FXC
21345int
21346main ()
21347{
1409cd0b
FXC
21348 return 0;
21349}
db9f46a9 21350
1409cd0b 21351_ACEOF
5213506e 21352if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21353 gcc_cv_math_func_nextafterf=yes
1409cd0b 21354else
db9f46a9 21355 gcc_cv_math_func_nextafterf=no
1409cd0b 21356fi
5213506e
RW
21357rm -f core conftest.err conftest.$ac_objext \
21358 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21359fi
db9f46a9
TG
21360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21361$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21362 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 21363
f38a14ca
TG
21364cat >>confdefs.h <<_ACEOF
21365#define HAVE_NEXTAFTERF 1
21366_ACEOF
1409cd0b 21367
db9f46a9 21368 fi
1409cd0b 21369
1409cd0b 21370
db9f46a9
TG
21371
21372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21374$as_echo_n "checking for nextafter... " >&6; }
22e05272 21375if ${gcc_cv_math_func_nextafter+:} false; then :
5213506e 21376 $as_echo_n "(cached) " >&6
1409cd0b 21377else
db9f46a9 21378 if test x$gcc_no_link = xyes; then
22e05272 21379 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21380fi
5213506e 21381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21382/* end confdefs.h. */
21383
db9f46a9
TG
21384#ifdef HAVE_COMPLEX_H
21385#include <complex.h>
21386#endif
21387#ifdef HAVE_MATH_H
21388#include <math.h>
1409cd0b 21389#endif
db9f46a9
TG
21390
21391int (*ptr)() = (int (*)())nextafter;
21392
1409cd0b
FXC
21393int
21394main ()
21395{
1409cd0b
FXC
21396 return 0;
21397}
db9f46a9 21398
1409cd0b 21399_ACEOF
5213506e 21400if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21401 gcc_cv_math_func_nextafter=yes
1409cd0b 21402else
db9f46a9 21403 gcc_cv_math_func_nextafter=no
1409cd0b 21404fi
5213506e
RW
21405rm -f core conftest.err conftest.$ac_objext \
21406 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21407fi
db9f46a9
TG
21408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21409$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21410 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 21411
f38a14ca
TG
21412cat >>confdefs.h <<_ACEOF
21413#define HAVE_NEXTAFTER 1
21414_ACEOF
db9f46a9
TG
21415
21416 fi
1409cd0b 21417
1409cd0b 21418
1409cd0b 21419
db9f46a9
TG
21420
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21422$as_echo_n "checking for nextafterl... " >&6; }
22e05272 21423if ${gcc_cv_math_func_nextafterl+:} false; then :
5213506e 21424 $as_echo_n "(cached) " >&6
1409cd0b 21425else
db9f46a9 21426 if test x$gcc_no_link = xyes; then
22e05272 21427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21428fi
5213506e 21429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21430/* end confdefs.h. */
21431
db9f46a9
TG
21432#ifdef HAVE_COMPLEX_H
21433#include <complex.h>
1409cd0b 21434#endif
db9f46a9
TG
21435#ifdef HAVE_MATH_H
21436#include <math.h>
21437#endif
21438
21439int (*ptr)() = (int (*)())nextafterl;
21440
1409cd0b
FXC
21441int
21442main ()
21443{
1409cd0b
FXC
21444 return 0;
21445}
db9f46a9 21446
1409cd0b 21447_ACEOF
5213506e 21448if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21449 gcc_cv_math_func_nextafterl=yes
1409cd0b 21450else
db9f46a9 21451 gcc_cv_math_func_nextafterl=no
1409cd0b 21452fi
5213506e
RW
21453rm -f core conftest.err conftest.$ac_objext \
21454 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21455fi
db9f46a9
TG
21456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21457$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21458 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 21459
f38a14ca
TG
21460cat >>confdefs.h <<_ACEOF
21461#define HAVE_NEXTAFTERL 1
21462_ACEOF
db9f46a9
TG
21463
21464 fi
21465
1409cd0b 21466
1409cd0b 21467
1409cd0b 21468
db9f46a9
TG
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21470$as_echo_n "checking for powf... " >&6; }
22e05272 21471if ${gcc_cv_math_func_powf+:} false; then :
5213506e 21472 $as_echo_n "(cached) " >&6
1409cd0b 21473else
db9f46a9 21474 if test x$gcc_no_link = xyes; then
22e05272 21475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21476fi
5213506e 21477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21478/* end confdefs.h. */
21479
db9f46a9
TG
21480#ifdef HAVE_COMPLEX_H
21481#include <complex.h>
21482#endif
21483#ifdef HAVE_MATH_H
21484#include <math.h>
1409cd0b 21485#endif
db9f46a9
TG
21486
21487int (*ptr)() = (int (*)())powf;
21488
1409cd0b
FXC
21489int
21490main ()
21491{
1409cd0b
FXC
21492 return 0;
21493}
db9f46a9 21494
1409cd0b 21495_ACEOF
5213506e 21496if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21497 gcc_cv_math_func_powf=yes
1409cd0b 21498else
db9f46a9 21499 gcc_cv_math_func_powf=no
1409cd0b 21500fi
5213506e
RW
21501rm -f core conftest.err conftest.$ac_objext \
21502 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21503fi
db9f46a9
TG
21504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21505$as_echo "$gcc_cv_math_func_powf" >&6; }
21506 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 21507
f38a14ca
TG
21508cat >>confdefs.h <<_ACEOF
21509#define HAVE_POWF 1
21510_ACEOF
db9f46a9
TG
21511
21512 fi
1409cd0b 21513
1409cd0b 21514
1409cd0b 21515
db9f46a9
TG
21516
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21518$as_echo_n "checking for pow... " >&6; }
22e05272 21519if ${gcc_cv_math_func_pow+:} false; then :
5213506e 21520 $as_echo_n "(cached) " >&6
1409cd0b 21521else
db9f46a9 21522 if test x$gcc_no_link = xyes; then
22e05272 21523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21524fi
5213506e 21525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21526/* end confdefs.h. */
21527
db9f46a9
TG
21528#ifdef HAVE_COMPLEX_H
21529#include <complex.h>
1409cd0b 21530#endif
db9f46a9
TG
21531#ifdef HAVE_MATH_H
21532#include <math.h>
21533#endif
21534
21535int (*ptr)() = (int (*)())pow;
21536
1409cd0b
FXC
21537int
21538main ()
21539{
1409cd0b
FXC
21540 return 0;
21541}
db9f46a9 21542
1409cd0b 21543_ACEOF
5213506e 21544if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21545 gcc_cv_math_func_pow=yes
1409cd0b 21546else
db9f46a9 21547 gcc_cv_math_func_pow=no
1409cd0b 21548fi
5213506e
RW
21549rm -f core conftest.err conftest.$ac_objext \
21550 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21551fi
db9f46a9
TG
21552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21553$as_echo "$gcc_cv_math_func_pow" >&6; }
21554 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 21555
f38a14ca
TG
21556cat >>confdefs.h <<_ACEOF
21557#define HAVE_POW 1
21558_ACEOF
1409cd0b 21559
db9f46a9 21560 fi
1409cd0b 21561
1409cd0b 21562
db9f46a9
TG
21563
21564
db9f46a9
TG
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21566$as_echo_n "checking for cpowf... " >&6; }
22e05272 21567if ${gcc_cv_math_func_cpowf+:} false; then :
5213506e 21568 $as_echo_n "(cached) " >&6
1409cd0b 21569else
db9f46a9 21570 if test x$gcc_no_link = xyes; then
22e05272 21571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21572fi
5213506e 21573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21574/* end confdefs.h. */
21575
db9f46a9
TG
21576#ifdef HAVE_COMPLEX_H
21577#include <complex.h>
1409cd0b 21578#endif
db9f46a9
TG
21579#ifdef HAVE_MATH_H
21580#include <math.h>
21581#endif
21582
21583int (*ptr)() = (int (*)())cpowf;
21584
1409cd0b
FXC
21585int
21586main ()
21587{
1409cd0b
FXC
21588 return 0;
21589}
db9f46a9 21590
1409cd0b 21591_ACEOF
5213506e 21592if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21593 gcc_cv_math_func_cpowf=yes
1409cd0b 21594else
db9f46a9 21595 gcc_cv_math_func_cpowf=no
1409cd0b 21596fi
5213506e
RW
21597rm -f core conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21599fi
db9f46a9
TG
21600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21601$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21602 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 21603
f38a14ca
TG
21604cat >>confdefs.h <<_ACEOF
21605#define HAVE_CPOWF 1
21606_ACEOF
db9f46a9
TG
21607
21608 fi
21609
1409cd0b 21610
1409cd0b 21611
1409cd0b 21612
db9f46a9
TG
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21614$as_echo_n "checking for cpow... " >&6; }
22e05272 21615if ${gcc_cv_math_func_cpow+:} false; then :
5213506e 21616 $as_echo_n "(cached) " >&6
1409cd0b 21617else
db9f46a9 21618 if test x$gcc_no_link = xyes; then
22e05272 21619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21620fi
5213506e 21621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21622/* end confdefs.h. */
21623
db9f46a9
TG
21624#ifdef HAVE_COMPLEX_H
21625#include <complex.h>
21626#endif
21627#ifdef HAVE_MATH_H
21628#include <math.h>
1409cd0b 21629#endif
db9f46a9
TG
21630
21631int (*ptr)() = (int (*)())cpow;
21632
1409cd0b
FXC
21633int
21634main ()
21635{
1409cd0b
FXC
21636 return 0;
21637}
db9f46a9 21638
1409cd0b 21639_ACEOF
5213506e 21640if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21641 gcc_cv_math_func_cpow=yes
1409cd0b 21642else
db9f46a9 21643 gcc_cv_math_func_cpow=no
1409cd0b 21644fi
5213506e
RW
21645rm -f core conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21647fi
db9f46a9
TG
21648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21649$as_echo "$gcc_cv_math_func_cpow" >&6; }
21650 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21651
f38a14ca
TG
21652cat >>confdefs.h <<_ACEOF
21653#define HAVE_CPOW 1
21654_ACEOF
db9f46a9
TG
21655
21656 fi
1409cd0b 21657
1409cd0b 21658
1409cd0b 21659
db9f46a9
TG
21660
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21662$as_echo_n "checking for cpowl... " >&6; }
22e05272 21663if ${gcc_cv_math_func_cpowl+:} false; then :
5213506e 21664 $as_echo_n "(cached) " >&6
1409cd0b 21665else
db9f46a9 21666 if test x$gcc_no_link = xyes; then
22e05272 21667 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21668fi
5213506e 21669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21670/* end confdefs.h. */
21671
db9f46a9
TG
21672#ifdef HAVE_COMPLEX_H
21673#include <complex.h>
1409cd0b 21674#endif
db9f46a9
TG
21675#ifdef HAVE_MATH_H
21676#include <math.h>
21677#endif
21678
21679int (*ptr)() = (int (*)())cpowl;
21680
1409cd0b
FXC
21681int
21682main ()
21683{
1409cd0b
FXC
21684 return 0;
21685}
db9f46a9 21686
1409cd0b 21687_ACEOF
5213506e 21688if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21689 gcc_cv_math_func_cpowl=yes
1409cd0b 21690else
db9f46a9 21691 gcc_cv_math_func_cpowl=no
1409cd0b 21692fi
5213506e
RW
21693rm -f core conftest.err conftest.$ac_objext \
21694 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21695fi
db9f46a9
TG
21696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21697$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21698 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21699
f38a14ca
TG
21700cat >>confdefs.h <<_ACEOF
21701#define HAVE_CPOWL 1
21702_ACEOF
1409cd0b 21703
db9f46a9 21704 fi
1409cd0b 21705
1409cd0b 21706
db9f46a9
TG
21707
21708
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21710$as_echo_n "checking for roundf... " >&6; }
22e05272 21711if ${gcc_cv_math_func_roundf+:} false; then :
5213506e 21712 $as_echo_n "(cached) " >&6
1409cd0b 21713else
db9f46a9 21714 if test x$gcc_no_link = xyes; then
22e05272 21715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21716fi
5213506e 21717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21718/* end confdefs.h. */
21719
db9f46a9
TG
21720#ifdef HAVE_COMPLEX_H
21721#include <complex.h>
21722#endif
21723#ifdef HAVE_MATH_H
21724#include <math.h>
1409cd0b 21725#endif
db9f46a9
TG
21726
21727int (*ptr)() = (int (*)())roundf;
21728
1409cd0b
FXC
21729int
21730main ()
21731{
1409cd0b
FXC
21732 return 0;
21733}
db9f46a9 21734
1409cd0b 21735_ACEOF
5213506e 21736if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21737 gcc_cv_math_func_roundf=yes
1409cd0b 21738else
db9f46a9 21739 gcc_cv_math_func_roundf=no
1409cd0b 21740fi
5213506e
RW
21741rm -f core conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21743fi
db9f46a9
TG
21744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21745$as_echo "$gcc_cv_math_func_roundf" >&6; }
21746 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21747
f38a14ca
TG
21748cat >>confdefs.h <<_ACEOF
21749#define HAVE_ROUNDF 1
21750_ACEOF
db9f46a9
TG
21751
21752 fi
1409cd0b 21753
1409cd0b 21754
1409cd0b 21755
db9f46a9
TG
21756
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21758$as_echo_n "checking for round... " >&6; }
22e05272 21759if ${gcc_cv_math_func_round+:} false; then :
5213506e 21760 $as_echo_n "(cached) " >&6
1409cd0b 21761else
db9f46a9 21762 if test x$gcc_no_link = xyes; then
22e05272 21763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21764fi
5213506e 21765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21766/* end confdefs.h. */
21767
db9f46a9
TG
21768#ifdef HAVE_COMPLEX_H
21769#include <complex.h>
1409cd0b 21770#endif
db9f46a9
TG
21771#ifdef HAVE_MATH_H
21772#include <math.h>
21773#endif
21774
21775int (*ptr)() = (int (*)())round;
21776
1409cd0b
FXC
21777int
21778main ()
21779{
1409cd0b
FXC
21780 return 0;
21781}
db9f46a9 21782
1409cd0b 21783_ACEOF
5213506e 21784if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21785 gcc_cv_math_func_round=yes
1409cd0b 21786else
db9f46a9 21787 gcc_cv_math_func_round=no
1409cd0b 21788fi
5213506e
RW
21789rm -f core conftest.err conftest.$ac_objext \
21790 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21791fi
db9f46a9
TG
21792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21793$as_echo "$gcc_cv_math_func_round" >&6; }
21794 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21795
f38a14ca
TG
21796cat >>confdefs.h <<_ACEOF
21797#define HAVE_ROUND 1
21798_ACEOF
db9f46a9
TG
21799
21800 fi
21801
1409cd0b 21802
1409cd0b 21803
1409cd0b 21804
db9f46a9
TG
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21806$as_echo_n "checking for roundl... " >&6; }
22e05272 21807if ${gcc_cv_math_func_roundl+:} false; then :
5213506e 21808 $as_echo_n "(cached) " >&6
94f548c2 21809else
db9f46a9 21810 if test x$gcc_no_link = xyes; then
22e05272 21811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21812fi
5213506e 21813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21814/* end confdefs.h. */
21815
db9f46a9
TG
21816#ifdef HAVE_COMPLEX_H
21817#include <complex.h>
21818#endif
21819#ifdef HAVE_MATH_H
21820#include <math.h>
94f548c2 21821#endif
db9f46a9
TG
21822
21823int (*ptr)() = (int (*)())roundl;
21824
94f548c2
FXC
21825int
21826main ()
21827{
94f548c2
FXC
21828 return 0;
21829}
db9f46a9 21830
94f548c2 21831_ACEOF
5213506e 21832if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21833 gcc_cv_math_func_roundl=yes
94f548c2 21834else
db9f46a9 21835 gcc_cv_math_func_roundl=no
94f548c2 21836fi
5213506e
RW
21837rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
94f548c2 21839fi
db9f46a9
TG
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21841$as_echo "$gcc_cv_math_func_roundl" >&6; }
21842 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21843
f38a14ca
TG
21844cat >>confdefs.h <<_ACEOF
21845#define HAVE_ROUNDL 1
21846_ACEOF
db9f46a9
TG
21847
21848 fi
94f548c2 21849
94f548c2 21850
94f548c2 21851
db9f46a9
TG
21852
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21854$as_echo_n "checking for lroundf... " >&6; }
22e05272 21855if ${gcc_cv_math_func_lroundf+:} false; then :
5213506e 21856 $as_echo_n "(cached) " >&6
94f548c2 21857else
db9f46a9 21858 if test x$gcc_no_link = xyes; then
22e05272 21859 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21860fi
5213506e 21861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21862/* end confdefs.h. */
21863
db9f46a9
TG
21864#ifdef HAVE_COMPLEX_H
21865#include <complex.h>
94f548c2 21866#endif
db9f46a9
TG
21867#ifdef HAVE_MATH_H
21868#include <math.h>
21869#endif
21870
21871int (*ptr)() = (int (*)())lroundf;
21872
94f548c2
FXC
21873int
21874main ()
21875{
94f548c2
FXC
21876 return 0;
21877}
db9f46a9 21878
94f548c2 21879_ACEOF
5213506e 21880if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21881 gcc_cv_math_func_lroundf=yes
94f548c2 21882else
db9f46a9 21883 gcc_cv_math_func_lroundf=no
94f548c2 21884fi
5213506e
RW
21885rm -f core conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext conftest.$ac_ext
94f548c2 21887fi
db9f46a9
TG
21888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21889$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21890 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21891
f38a14ca
TG
21892cat >>confdefs.h <<_ACEOF
21893#define HAVE_LROUNDF 1
21894_ACEOF
94f548c2 21895
db9f46a9 21896 fi
94f548c2 21897
94f548c2 21898
db9f46a9
TG
21899
21900
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21902$as_echo_n "checking for lround... " >&6; }
22e05272 21903if ${gcc_cv_math_func_lround+:} false; then :
5213506e 21904 $as_echo_n "(cached) " >&6
94f548c2 21905else
db9f46a9 21906 if test x$gcc_no_link = xyes; then
22e05272 21907 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21908fi
5213506e 21909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21910/* end confdefs.h. */
21911
db9f46a9
TG
21912#ifdef HAVE_COMPLEX_H
21913#include <complex.h>
21914#endif
21915#ifdef HAVE_MATH_H
21916#include <math.h>
94f548c2 21917#endif
db9f46a9
TG
21918
21919int (*ptr)() = (int (*)())lround;
21920
94f548c2
FXC
21921int
21922main ()
21923{
94f548c2
FXC
21924 return 0;
21925}
db9f46a9 21926
94f548c2 21927_ACEOF
5213506e 21928if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21929 gcc_cv_math_func_lround=yes
94f548c2 21930else
db9f46a9 21931 gcc_cv_math_func_lround=no
94f548c2 21932fi
5213506e
RW
21933rm -f core conftest.err conftest.$ac_objext \
21934 conftest$ac_exeext conftest.$ac_ext
94f548c2 21935fi
db9f46a9
TG
21936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21937$as_echo "$gcc_cv_math_func_lround" >&6; }
21938 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21939
f38a14ca
TG
21940cat >>confdefs.h <<_ACEOF
21941#define HAVE_LROUND 1
21942_ACEOF
db9f46a9
TG
21943
21944 fi
21945
94f548c2 21946
94f548c2 21947
94f548c2 21948
db9f46a9
TG
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21950$as_echo_n "checking for lroundl... " >&6; }
22e05272 21951if ${gcc_cv_math_func_lroundl+:} false; then :
5213506e 21952 $as_echo_n "(cached) " >&6
94f548c2 21953else
db9f46a9 21954 if test x$gcc_no_link = xyes; then
22e05272 21955 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21956fi
5213506e 21957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21958/* end confdefs.h. */
21959
db9f46a9
TG
21960#ifdef HAVE_COMPLEX_H
21961#include <complex.h>
21962#endif
21963#ifdef HAVE_MATH_H
21964#include <math.h>
94f548c2 21965#endif
db9f46a9
TG
21966
21967int (*ptr)() = (int (*)())lroundl;
21968
94f548c2
FXC
21969int
21970main ()
21971{
94f548c2
FXC
21972 return 0;
21973}
db9f46a9 21974
94f548c2 21975_ACEOF
5213506e 21976if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21977 gcc_cv_math_func_lroundl=yes
94f548c2 21978else
db9f46a9 21979 gcc_cv_math_func_lroundl=no
94f548c2 21980fi
5213506e
RW
21981rm -f core conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext conftest.$ac_ext
94f548c2 21983fi
db9f46a9
TG
21984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21985$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21986 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21987
f38a14ca
TG
21988cat >>confdefs.h <<_ACEOF
21989#define HAVE_LROUNDL 1
21990_ACEOF
94f548c2 21991
db9f46a9 21992 fi
94f548c2 21993
94f548c2 21994
db9f46a9
TG
21995
21996
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21998$as_echo_n "checking for llroundf... " >&6; }
22e05272 21999if ${gcc_cv_math_func_llroundf+:} false; then :
5213506e 22000 $as_echo_n "(cached) " >&6
94f548c2 22001else
db9f46a9 22002 if test x$gcc_no_link = xyes; then
22e05272 22003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22004fi
5213506e 22005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22006/* end confdefs.h. */
22007
db9f46a9
TG
22008#ifdef HAVE_COMPLEX_H
22009#include <complex.h>
94f548c2 22010#endif
db9f46a9
TG
22011#ifdef HAVE_MATH_H
22012#include <math.h>
22013#endif
22014
22015int (*ptr)() = (int (*)())llroundf;
22016
94f548c2
FXC
22017int
22018main ()
22019{
94f548c2
FXC
22020 return 0;
22021}
db9f46a9 22022
94f548c2 22023_ACEOF
5213506e 22024if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22025 gcc_cv_math_func_llroundf=yes
94f548c2 22026else
db9f46a9 22027 gcc_cv_math_func_llroundf=no
94f548c2 22028fi
5213506e
RW
22029rm -f core conftest.err conftest.$ac_objext \
22030 conftest$ac_exeext conftest.$ac_ext
94f548c2 22031fi
db9f46a9
TG
22032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
22033$as_echo "$gcc_cv_math_func_llroundf" >&6; }
22034 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 22035
f38a14ca
TG
22036cat >>confdefs.h <<_ACEOF
22037#define HAVE_LLROUNDF 1
22038_ACEOF
94f548c2 22039
db9f46a9 22040 fi
94f548c2 22041
94f548c2 22042
db9f46a9
TG
22043
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
22046$as_echo_n "checking for llround... " >&6; }
22e05272 22047if ${gcc_cv_math_func_llround+:} false; then :
5213506e 22048 $as_echo_n "(cached) " >&6
94f548c2 22049else
db9f46a9 22050 if test x$gcc_no_link = xyes; then
22e05272 22051 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22052fi
5213506e 22053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22054/* end confdefs.h. */
22055
db9f46a9
TG
22056#ifdef HAVE_COMPLEX_H
22057#include <complex.h>
22058#endif
22059#ifdef HAVE_MATH_H
22060#include <math.h>
94f548c2 22061#endif
db9f46a9
TG
22062
22063int (*ptr)() = (int (*)())llround;
22064
94f548c2
FXC
22065int
22066main ()
22067{
94f548c2
FXC
22068 return 0;
22069}
db9f46a9 22070
94f548c2 22071_ACEOF
5213506e 22072if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22073 gcc_cv_math_func_llround=yes
94f548c2 22074else
db9f46a9 22075 gcc_cv_math_func_llround=no
94f548c2 22076fi
5213506e
RW
22077rm -f core conftest.err conftest.$ac_objext \
22078 conftest$ac_exeext conftest.$ac_ext
94f548c2 22079fi
db9f46a9
TG
22080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
22081$as_echo "$gcc_cv_math_func_llround" >&6; }
22082 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 22083
f38a14ca
TG
22084cat >>confdefs.h <<_ACEOF
22085#define HAVE_LLROUND 1
22086_ACEOF
db9f46a9
TG
22087
22088 fi
22089
94f548c2 22090
94f548c2 22091
94f548c2 22092
db9f46a9
TG
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
22094$as_echo_n "checking for llroundl... " >&6; }
22e05272 22095if ${gcc_cv_math_func_llroundl+:} false; then :
5213506e 22096 $as_echo_n "(cached) " >&6
1409cd0b 22097else
db9f46a9 22098 if test x$gcc_no_link = xyes; then
22e05272 22099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22100fi
5213506e 22101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22102/* end confdefs.h. */
22103
db9f46a9
TG
22104#ifdef HAVE_COMPLEX_H
22105#include <complex.h>
22106#endif
22107#ifdef HAVE_MATH_H
22108#include <math.h>
1409cd0b 22109#endif
db9f46a9
TG
22110
22111int (*ptr)() = (int (*)())llroundl;
22112
1409cd0b
FXC
22113int
22114main ()
22115{
1409cd0b
FXC
22116 return 0;
22117}
db9f46a9 22118
1409cd0b 22119_ACEOF
5213506e 22120if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22121 gcc_cv_math_func_llroundl=yes
1409cd0b 22122else
db9f46a9 22123 gcc_cv_math_func_llroundl=no
1409cd0b 22124fi
5213506e
RW
22125rm -f core conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22127fi
db9f46a9
TG
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
22129$as_echo "$gcc_cv_math_func_llroundl" >&6; }
22130 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 22131
f38a14ca
TG
22132cat >>confdefs.h <<_ACEOF
22133#define HAVE_LLROUNDL 1
22134_ACEOF
1409cd0b 22135
db9f46a9 22136 fi
1409cd0b 22137
1409cd0b 22138
db9f46a9
TG
22139
22140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
22142$as_echo_n "checking for scalbnf... " >&6; }
22e05272 22143if ${gcc_cv_math_func_scalbnf+:} false; then :
5213506e 22144 $as_echo_n "(cached) " >&6
1409cd0b 22145else
db9f46a9 22146 if test x$gcc_no_link = xyes; then
22e05272 22147 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22148fi
5213506e 22149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22150/* end confdefs.h. */
22151
db9f46a9
TG
22152#ifdef HAVE_COMPLEX_H
22153#include <complex.h>
1409cd0b 22154#endif
db9f46a9
TG
22155#ifdef HAVE_MATH_H
22156#include <math.h>
22157#endif
22158
22159int (*ptr)() = (int (*)())scalbnf;
22160
1409cd0b
FXC
22161int
22162main ()
22163{
1409cd0b
FXC
22164 return 0;
22165}
db9f46a9 22166
1409cd0b 22167_ACEOF
5213506e 22168if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22169 gcc_cv_math_func_scalbnf=yes
1409cd0b 22170else
db9f46a9 22171 gcc_cv_math_func_scalbnf=no
1409cd0b 22172fi
5213506e
RW
22173rm -f core conftest.err conftest.$ac_objext \
22174 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22175fi
db9f46a9
TG
22176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22177$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22178 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 22179
f38a14ca
TG
22180cat >>confdefs.h <<_ACEOF
22181#define HAVE_SCALBNF 1
22182_ACEOF
1409cd0b 22183
db9f46a9 22184 fi
1409cd0b 22185
1409cd0b 22186
db9f46a9
TG
22187
22188
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22190$as_echo_n "checking for scalbn... " >&6; }
22e05272 22191if ${gcc_cv_math_func_scalbn+:} false; then :
5213506e 22192 $as_echo_n "(cached) " >&6
1409cd0b 22193else
db9f46a9 22194 if test x$gcc_no_link = xyes; then
22e05272 22195 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22196fi
5213506e 22197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22198/* end confdefs.h. */
22199
db9f46a9
TG
22200#ifdef HAVE_COMPLEX_H
22201#include <complex.h>
22202#endif
22203#ifdef HAVE_MATH_H
22204#include <math.h>
1409cd0b 22205#endif
db9f46a9
TG
22206
22207int (*ptr)() = (int (*)())scalbn;
22208
1409cd0b
FXC
22209int
22210main ()
22211{
1409cd0b
FXC
22212 return 0;
22213}
db9f46a9 22214
1409cd0b 22215_ACEOF
5213506e 22216if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22217 gcc_cv_math_func_scalbn=yes
1409cd0b 22218else
db9f46a9 22219 gcc_cv_math_func_scalbn=no
1409cd0b 22220fi
5213506e
RW
22221rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22223fi
db9f46a9
TG
22224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22225$as_echo "$gcc_cv_math_func_scalbn" >&6; }
22226 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 22227
f38a14ca
TG
22228cat >>confdefs.h <<_ACEOF
22229#define HAVE_SCALBN 1
22230_ACEOF
db9f46a9
TG
22231
22232 fi
22233
1409cd0b 22234
1409cd0b 22235
1409cd0b 22236
db9f46a9
TG
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22238$as_echo_n "checking for scalbnl... " >&6; }
22e05272 22239if ${gcc_cv_math_func_scalbnl+:} false; then :
5213506e 22240 $as_echo_n "(cached) " >&6
1409cd0b 22241else
db9f46a9 22242 if test x$gcc_no_link = xyes; then
22e05272 22243 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22244fi
5213506e 22245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22246/* end confdefs.h. */
22247
db9f46a9
TG
22248#ifdef HAVE_COMPLEX_H
22249#include <complex.h>
22250#endif
22251#ifdef HAVE_MATH_H
22252#include <math.h>
1409cd0b 22253#endif
db9f46a9
TG
22254
22255int (*ptr)() = (int (*)())scalbnl;
22256
1409cd0b
FXC
22257int
22258main ()
22259{
1409cd0b
FXC
22260 return 0;
22261}
db9f46a9 22262
1409cd0b 22263_ACEOF
5213506e 22264if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22265 gcc_cv_math_func_scalbnl=yes
1409cd0b 22266else
db9f46a9 22267 gcc_cv_math_func_scalbnl=no
1409cd0b 22268fi
5213506e
RW
22269rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22271fi
db9f46a9
TG
22272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22273$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22274 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 22275
f38a14ca
TG
22276cat >>confdefs.h <<_ACEOF
22277#define HAVE_SCALBNL 1
22278_ACEOF
1409cd0b 22279
db9f46a9 22280 fi
1409cd0b 22281
1409cd0b 22282
db9f46a9
TG
22283
22284
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22286$as_echo_n "checking for sinf... " >&6; }
22e05272 22287if ${gcc_cv_math_func_sinf+:} false; then :
5213506e 22288 $as_echo_n "(cached) " >&6
1409cd0b 22289else
db9f46a9 22290 if test x$gcc_no_link = xyes; then
22e05272 22291 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22292fi
5213506e 22293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22294/* end confdefs.h. */
22295
db9f46a9
TG
22296#ifdef HAVE_COMPLEX_H
22297#include <complex.h>
1409cd0b 22298#endif
db9f46a9
TG
22299#ifdef HAVE_MATH_H
22300#include <math.h>
22301#endif
22302
22303int (*ptr)() = (int (*)())sinf;
22304
1409cd0b
FXC
22305int
22306main ()
22307{
1409cd0b
FXC
22308 return 0;
22309}
db9f46a9 22310
1409cd0b 22311_ACEOF
5213506e 22312if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22313 gcc_cv_math_func_sinf=yes
1409cd0b 22314else
db9f46a9 22315 gcc_cv_math_func_sinf=no
1409cd0b 22316fi
5213506e
RW
22317rm -f core conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22319fi
db9f46a9
TG
22320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22321$as_echo "$gcc_cv_math_func_sinf" >&6; }
22322 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 22323
f38a14ca
TG
22324cat >>confdefs.h <<_ACEOF
22325#define HAVE_SINF 1
22326_ACEOF
1409cd0b 22327
db9f46a9 22328 fi
1409cd0b 22329
1409cd0b 22330
db9f46a9
TG
22331
22332
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22334$as_echo_n "checking for sin... " >&6; }
22e05272 22335if ${gcc_cv_math_func_sin+:} false; then :
5213506e 22336 $as_echo_n "(cached) " >&6
1409cd0b 22337else
db9f46a9 22338 if test x$gcc_no_link = xyes; then
22e05272 22339 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22340fi
5213506e 22341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22342/* end confdefs.h. */
22343
db9f46a9
TG
22344#ifdef HAVE_COMPLEX_H
22345#include <complex.h>
1409cd0b 22346#endif
db9f46a9
TG
22347#ifdef HAVE_MATH_H
22348#include <math.h>
22349#endif
22350
22351int (*ptr)() = (int (*)())sin;
22352
1409cd0b
FXC
22353int
22354main ()
22355{
1409cd0b
FXC
22356 return 0;
22357}
db9f46a9 22358
1409cd0b 22359_ACEOF
5213506e 22360if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22361 gcc_cv_math_func_sin=yes
1409cd0b 22362else
db9f46a9 22363 gcc_cv_math_func_sin=no
1409cd0b 22364fi
5213506e
RW
22365rm -f core conftest.err conftest.$ac_objext \
22366 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22367fi
db9f46a9
TG
22368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22369$as_echo "$gcc_cv_math_func_sin" >&6; }
22370 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 22371
f38a14ca
TG
22372cat >>confdefs.h <<_ACEOF
22373#define HAVE_SIN 1
22374_ACEOF
db9f46a9
TG
22375
22376 fi
22377
1409cd0b 22378
1409cd0b 22379
1409cd0b 22380
db9f46a9
TG
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22382$as_echo_n "checking for sinl... " >&6; }
22e05272 22383if ${gcc_cv_math_func_sinl+:} false; then :
5213506e 22384 $as_echo_n "(cached) " >&6
1409cd0b 22385else
db9f46a9 22386 if test x$gcc_no_link = xyes; then
22e05272 22387 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22388fi
5213506e 22389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22390/* end confdefs.h. */
22391
db9f46a9
TG
22392#ifdef HAVE_COMPLEX_H
22393#include <complex.h>
1409cd0b 22394#endif
db9f46a9
TG
22395#ifdef HAVE_MATH_H
22396#include <math.h>
22397#endif
22398
22399int (*ptr)() = (int (*)())sinl;
22400
1409cd0b
FXC
22401int
22402main ()
22403{
5213506e
RW
22404 return 0;
22405}
db9f46a9 22406
5213506e
RW
22407_ACEOF
22408if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22409 gcc_cv_math_func_sinl=yes
1409cd0b 22410else
db9f46a9 22411 gcc_cv_math_func_sinl=no
1409cd0b 22412fi
5213506e
RW
22413rm -f core conftest.err conftest.$ac_objext \
22414 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22415fi
db9f46a9
TG
22416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22417$as_echo "$gcc_cv_math_func_sinl" >&6; }
22418 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 22419
f38a14ca
TG
22420cat >>confdefs.h <<_ACEOF
22421#define HAVE_SINL 1
22422_ACEOF
db9f46a9
TG
22423
22424 fi
1409cd0b 22425
1409cd0b 22426
1409cd0b 22427
db9f46a9
TG
22428
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22430$as_echo_n "checking for csinf... " >&6; }
22e05272 22431if ${gcc_cv_math_func_csinf+:} false; then :
5213506e 22432 $as_echo_n "(cached) " >&6
1409cd0b 22433else
db9f46a9 22434 if test x$gcc_no_link = xyes; then
22e05272 22435 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22436fi
5213506e 22437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22438/* end confdefs.h. */
22439
db9f46a9
TG
22440#ifdef HAVE_COMPLEX_H
22441#include <complex.h>
22442#endif
22443#ifdef HAVE_MATH_H
22444#include <math.h>
1409cd0b 22445#endif
db9f46a9
TG
22446
22447int (*ptr)() = (int (*)())csinf;
22448
1409cd0b
FXC
22449int
22450main ()
22451{
1409cd0b
FXC
22452 return 0;
22453}
db9f46a9 22454
1409cd0b 22455_ACEOF
5213506e 22456if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22457 gcc_cv_math_func_csinf=yes
1409cd0b 22458else
db9f46a9 22459 gcc_cv_math_func_csinf=no
1409cd0b 22460fi
5213506e
RW
22461rm -f core conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22463fi
db9f46a9
TG
22464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22465$as_echo "$gcc_cv_math_func_csinf" >&6; }
22466 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 22467
f38a14ca
TG
22468cat >>confdefs.h <<_ACEOF
22469#define HAVE_CSINF 1
22470_ACEOF
1409cd0b 22471
db9f46a9 22472 fi
1409cd0b 22473
1409cd0b 22474
db9f46a9
TG
22475
22476
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22478$as_echo_n "checking for csin... " >&6; }
22e05272 22479if ${gcc_cv_math_func_csin+:} false; then :
5213506e 22480 $as_echo_n "(cached) " >&6
1409cd0b 22481else
db9f46a9 22482 if test x$gcc_no_link = xyes; then
22e05272 22483 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22484fi
5213506e 22485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22486/* end confdefs.h. */
22487
db9f46a9
TG
22488#ifdef HAVE_COMPLEX_H
22489#include <complex.h>
1409cd0b 22490#endif
db9f46a9
TG
22491#ifdef HAVE_MATH_H
22492#include <math.h>
22493#endif
22494
22495int (*ptr)() = (int (*)())csin;
22496
1409cd0b
FXC
22497int
22498main ()
22499{
1409cd0b
FXC
22500 return 0;
22501}
db9f46a9 22502
1409cd0b 22503_ACEOF
5213506e 22504if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22505 gcc_cv_math_func_csin=yes
1409cd0b 22506else
db9f46a9 22507 gcc_cv_math_func_csin=no
1409cd0b 22508fi
5213506e
RW
22509rm -f core conftest.err conftest.$ac_objext \
22510 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22511fi
db9f46a9
TG
22512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22513$as_echo "$gcc_cv_math_func_csin" >&6; }
22514 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 22515
f38a14ca
TG
22516cat >>confdefs.h <<_ACEOF
22517#define HAVE_CSIN 1
22518_ACEOF
db9f46a9
TG
22519
22520 fi
22521
1409cd0b 22522
1409cd0b 22523
1409cd0b 22524
db9f46a9
TG
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22526$as_echo_n "checking for csinl... " >&6; }
22e05272 22527if ${gcc_cv_math_func_csinl+:} false; then :
5213506e 22528 $as_echo_n "(cached) " >&6
1409cd0b 22529else
db9f46a9 22530 if test x$gcc_no_link = xyes; then
22e05272 22531 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22532fi
5213506e 22533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22534/* end confdefs.h. */
22535
db9f46a9
TG
22536#ifdef HAVE_COMPLEX_H
22537#include <complex.h>
1409cd0b 22538#endif
db9f46a9
TG
22539#ifdef HAVE_MATH_H
22540#include <math.h>
22541#endif
22542
22543int (*ptr)() = (int (*)())csinl;
22544
1409cd0b
FXC
22545int
22546main ()
22547{
1409cd0b
FXC
22548 return 0;
22549}
db9f46a9 22550
1409cd0b 22551_ACEOF
5213506e 22552if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22553 gcc_cv_math_func_csinl=yes
1409cd0b 22554else
db9f46a9 22555 gcc_cv_math_func_csinl=no
1409cd0b 22556fi
5213506e
RW
22557rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22559fi
db9f46a9
TG
22560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22561$as_echo "$gcc_cv_math_func_csinl" >&6; }
22562 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 22563
f38a14ca
TG
22564cat >>confdefs.h <<_ACEOF
22565#define HAVE_CSINL 1
22566_ACEOF
db9f46a9
TG
22567
22568 fi
1409cd0b 22569
1409cd0b 22570
1409cd0b 22571
db9f46a9
TG
22572
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22574$as_echo_n "checking for sinhf... " >&6; }
22e05272 22575if ${gcc_cv_math_func_sinhf+:} false; then :
5213506e 22576 $as_echo_n "(cached) " >&6
1409cd0b 22577else
db9f46a9 22578 if test x$gcc_no_link = xyes; then
22e05272 22579 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22580fi
5213506e 22581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22582/* end confdefs.h. */
22583
db9f46a9
TG
22584#ifdef HAVE_COMPLEX_H
22585#include <complex.h>
22586#endif
22587#ifdef HAVE_MATH_H
22588#include <math.h>
1409cd0b 22589#endif
db9f46a9
TG
22590
22591int (*ptr)() = (int (*)())sinhf;
22592
1409cd0b
FXC
22593int
22594main ()
22595{
1409cd0b
FXC
22596 return 0;
22597}
db9f46a9 22598
1409cd0b 22599_ACEOF
5213506e 22600if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22601 gcc_cv_math_func_sinhf=yes
1409cd0b 22602else
db9f46a9 22603 gcc_cv_math_func_sinhf=no
1409cd0b 22604fi
5213506e
RW
22605rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22607fi
db9f46a9
TG
22608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22609$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22610 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 22611
f38a14ca
TG
22612cat >>confdefs.h <<_ACEOF
22613#define HAVE_SINHF 1
22614_ACEOF
1409cd0b 22615
db9f46a9 22616 fi
1409cd0b 22617
1409cd0b 22618
db9f46a9
TG
22619
22620
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22622$as_echo_n "checking for sinh... " >&6; }
22e05272 22623if ${gcc_cv_math_func_sinh+:} false; then :
5213506e 22624 $as_echo_n "(cached) " >&6
1409cd0b 22625else
db9f46a9 22626 if test x$gcc_no_link = xyes; then
22e05272 22627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22628fi
5213506e 22629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22630/* end confdefs.h. */
22631
db9f46a9
TG
22632#ifdef HAVE_COMPLEX_H
22633#include <complex.h>
1409cd0b 22634#endif
db9f46a9
TG
22635#ifdef HAVE_MATH_H
22636#include <math.h>
22637#endif
22638
22639int (*ptr)() = (int (*)())sinh;
22640
1409cd0b
FXC
22641int
22642main ()
22643{
1409cd0b
FXC
22644 return 0;
22645}
db9f46a9 22646
1409cd0b 22647_ACEOF
5213506e 22648if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22649 gcc_cv_math_func_sinh=yes
1409cd0b 22650else
db9f46a9 22651 gcc_cv_math_func_sinh=no
1409cd0b 22652fi
5213506e
RW
22653rm -f core conftest.err conftest.$ac_objext \
22654 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22655fi
db9f46a9
TG
22656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22657$as_echo "$gcc_cv_math_func_sinh" >&6; }
22658 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22659
f38a14ca
TG
22660cat >>confdefs.h <<_ACEOF
22661#define HAVE_SINH 1
22662_ACEOF
db9f46a9
TG
22663
22664 fi
22665
1409cd0b 22666
1409cd0b 22667
1409cd0b 22668
db9f46a9
TG
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22670$as_echo_n "checking for sinhl... " >&6; }
22e05272 22671if ${gcc_cv_math_func_sinhl+:} false; then :
5213506e 22672 $as_echo_n "(cached) " >&6
1409cd0b 22673else
db9f46a9 22674 if test x$gcc_no_link = xyes; then
22e05272 22675 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22676fi
5213506e 22677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22678/* end confdefs.h. */
22679
db9f46a9
TG
22680#ifdef HAVE_COMPLEX_H
22681#include <complex.h>
1409cd0b 22682#endif
db9f46a9
TG
22683#ifdef HAVE_MATH_H
22684#include <math.h>
22685#endif
22686
22687int (*ptr)() = (int (*)())sinhl;
22688
1409cd0b
FXC
22689int
22690main ()
22691{
1409cd0b
FXC
22692 return 0;
22693}
db9f46a9 22694
1409cd0b 22695_ACEOF
5213506e 22696if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22697 gcc_cv_math_func_sinhl=yes
1409cd0b 22698else
db9f46a9 22699 gcc_cv_math_func_sinhl=no
1409cd0b 22700fi
5213506e
RW
22701rm -f core conftest.err conftest.$ac_objext \
22702 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22703fi
db9f46a9
TG
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22705$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22706 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22707
f38a14ca
TG
22708cat >>confdefs.h <<_ACEOF
22709#define HAVE_SINHL 1
22710_ACEOF
db9f46a9
TG
22711
22712 fi
1409cd0b 22713
1409cd0b 22714
1409cd0b 22715
db9f46a9
TG
22716
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22718$as_echo_n "checking for csinhf... " >&6; }
22e05272 22719if ${gcc_cv_math_func_csinhf+:} false; then :
5213506e 22720 $as_echo_n "(cached) " >&6
1409cd0b 22721else
db9f46a9 22722 if test x$gcc_no_link = xyes; then
22e05272 22723 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22724fi
5213506e 22725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22726/* end confdefs.h. */
22727
db9f46a9
TG
22728#ifdef HAVE_COMPLEX_H
22729#include <complex.h>
22730#endif
22731#ifdef HAVE_MATH_H
22732#include <math.h>
1409cd0b 22733#endif
db9f46a9
TG
22734
22735int (*ptr)() = (int (*)())csinhf;
22736
1409cd0b
FXC
22737int
22738main ()
22739{
1409cd0b
FXC
22740 return 0;
22741}
db9f46a9 22742
1409cd0b 22743_ACEOF
5213506e 22744if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22745 gcc_cv_math_func_csinhf=yes
1409cd0b 22746else
db9f46a9 22747 gcc_cv_math_func_csinhf=no
1409cd0b 22748fi
5213506e
RW
22749rm -f core conftest.err conftest.$ac_objext \
22750 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22751fi
db9f46a9
TG
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22753$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22754 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22755
f38a14ca
TG
22756cat >>confdefs.h <<_ACEOF
22757#define HAVE_CSINHF 1
22758_ACEOF
1409cd0b 22759
db9f46a9 22760 fi
1409cd0b 22761
1409cd0b 22762
db9f46a9
TG
22763
22764
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22766$as_echo_n "checking for csinh... " >&6; }
22e05272 22767if ${gcc_cv_math_func_csinh+:} false; then :
5213506e 22768 $as_echo_n "(cached) " >&6
1409cd0b 22769else
db9f46a9 22770 if test x$gcc_no_link = xyes; then
22e05272 22771 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22772fi
5213506e 22773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22774/* end confdefs.h. */
22775
db9f46a9
TG
22776#ifdef HAVE_COMPLEX_H
22777#include <complex.h>
1409cd0b 22778#endif
db9f46a9
TG
22779#ifdef HAVE_MATH_H
22780#include <math.h>
22781#endif
22782
22783int (*ptr)() = (int (*)())csinh;
22784
1409cd0b
FXC
22785int
22786main ()
22787{
1409cd0b
FXC
22788 return 0;
22789}
db9f46a9 22790
1409cd0b 22791_ACEOF
5213506e 22792if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22793 gcc_cv_math_func_csinh=yes
1409cd0b 22794else
db9f46a9 22795 gcc_cv_math_func_csinh=no
1409cd0b 22796fi
5213506e
RW
22797rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22799fi
db9f46a9
TG
22800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22801$as_echo "$gcc_cv_math_func_csinh" >&6; }
22802 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22803
f38a14ca
TG
22804cat >>confdefs.h <<_ACEOF
22805#define HAVE_CSINH 1
22806_ACEOF
db9f46a9
TG
22807
22808 fi
22809
1409cd0b 22810
1409cd0b 22811
1409cd0b 22812
db9f46a9
TG
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22814$as_echo_n "checking for csinhl... " >&6; }
22e05272 22815if ${gcc_cv_math_func_csinhl+:} false; then :
5213506e 22816 $as_echo_n "(cached) " >&6
1409cd0b 22817else
db9f46a9 22818 if test x$gcc_no_link = xyes; then
22e05272 22819 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22820fi
5213506e 22821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22822/* end confdefs.h. */
22823
db9f46a9
TG
22824#ifdef HAVE_COMPLEX_H
22825#include <complex.h>
1409cd0b 22826#endif
db9f46a9
TG
22827#ifdef HAVE_MATH_H
22828#include <math.h>
22829#endif
22830
22831int (*ptr)() = (int (*)())csinhl;
22832
1409cd0b
FXC
22833int
22834main ()
22835{
1409cd0b
FXC
22836 return 0;
22837}
db9f46a9 22838
1409cd0b 22839_ACEOF
5213506e 22840if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22841 gcc_cv_math_func_csinhl=yes
1409cd0b 22842else
db9f46a9 22843 gcc_cv_math_func_csinhl=no
1409cd0b 22844fi
5213506e
RW
22845rm -f core conftest.err conftest.$ac_objext \
22846 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22847fi
db9f46a9
TG
22848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22849$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22850 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22851
f38a14ca
TG
22852cat >>confdefs.h <<_ACEOF
22853#define HAVE_CSINHL 1
22854_ACEOF
db9f46a9
TG
22855
22856 fi
1409cd0b 22857
1409cd0b 22858
1409cd0b 22859
db9f46a9
TG
22860
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22862$as_echo_n "checking for sqrtf... " >&6; }
22e05272 22863if ${gcc_cv_math_func_sqrtf+:} false; then :
5213506e 22864 $as_echo_n "(cached) " >&6
1409cd0b 22865else
db9f46a9 22866 if test x$gcc_no_link = xyes; then
22e05272 22867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22868fi
5213506e 22869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22870/* end confdefs.h. */
22871
db9f46a9
TG
22872#ifdef HAVE_COMPLEX_H
22873#include <complex.h>
22874#endif
22875#ifdef HAVE_MATH_H
22876#include <math.h>
1409cd0b 22877#endif
db9f46a9
TG
22878
22879int (*ptr)() = (int (*)())sqrtf;
22880
1409cd0b
FXC
22881int
22882main ()
22883{
1409cd0b
FXC
22884 return 0;
22885}
db9f46a9 22886
1409cd0b 22887_ACEOF
5213506e 22888if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22889 gcc_cv_math_func_sqrtf=yes
1409cd0b 22890else
db9f46a9 22891 gcc_cv_math_func_sqrtf=no
1409cd0b 22892fi
5213506e
RW
22893rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22895fi
db9f46a9
TG
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22897$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22898 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22899
f38a14ca
TG
22900cat >>confdefs.h <<_ACEOF
22901#define HAVE_SQRTF 1
22902_ACEOF
db9f46a9
TG
22903
22904 fi
1409cd0b 22905
1409cd0b 22906
db9f46a9
TG
22907
22908
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22910$as_echo_n "checking for sqrt... " >&6; }
22e05272 22911if ${gcc_cv_math_func_sqrt+:} false; then :
db9f46a9
TG
22912 $as_echo_n "(cached) " >&6
22913else
22914 if test x$gcc_no_link = xyes; then
22e05272 22915 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22916fi
db9f46a9
TG
22917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918/* end confdefs.h. */
22919
22920#ifdef HAVE_COMPLEX_H
22921#include <complex.h>
22922#endif
22923#ifdef HAVE_MATH_H
22924#include <math.h>
22925#endif
22926
22927int (*ptr)() = (int (*)())sqrt;
22928
22929int
22930main ()
22931{
22932 return 0;
22933}
22934
22935_ACEOF
22936if ac_fn_c_try_link "$LINENO"; then :
22937 gcc_cv_math_func_sqrt=yes
22938else
22939 gcc_cv_math_func_sqrt=no
22940fi
22941rm -f core conftest.err conftest.$ac_objext \
22942 conftest$ac_exeext conftest.$ac_ext
22943fi
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22945$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22946 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22947
f38a14ca
TG
22948cat >>confdefs.h <<_ACEOF
22949#define HAVE_SQRT 1
22950_ACEOF
db9f46a9
TG
22951
22952 fi
1409cd0b 22953
db9f46a9
TG
22954
22955
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22958$as_echo_n "checking for sqrtl... " >&6; }
22e05272 22959if ${gcc_cv_math_func_sqrtl+:} false; then :
5213506e 22960 $as_echo_n "(cached) " >&6
1409cd0b 22961else
db9f46a9 22962 if test x$gcc_no_link = xyes; then
22e05272 22963 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22964fi
5213506e 22965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22966/* end confdefs.h. */
22967
db9f46a9
TG
22968#ifdef HAVE_COMPLEX_H
22969#include <complex.h>
22970#endif
22971#ifdef HAVE_MATH_H
22972#include <math.h>
1409cd0b 22973#endif
db9f46a9
TG
22974
22975int (*ptr)() = (int (*)())sqrtl;
22976
1409cd0b
FXC
22977int
22978main ()
22979{
1409cd0b
FXC
22980 return 0;
22981}
db9f46a9 22982
1409cd0b 22983_ACEOF
5213506e 22984if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22985 gcc_cv_math_func_sqrtl=yes
1409cd0b 22986else
db9f46a9 22987 gcc_cv_math_func_sqrtl=no
1409cd0b 22988fi
5213506e
RW
22989rm -f core conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22991fi
db9f46a9
TG
22992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22993$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22994 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22995
f38a14ca
TG
22996cat >>confdefs.h <<_ACEOF
22997#define HAVE_SQRTL 1
22998_ACEOF
db9f46a9
TG
22999
23000 fi
1409cd0b 23001
1409cd0b 23002
1409cd0b 23003
db9f46a9
TG
23004
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
23006$as_echo_n "checking for csqrtf... " >&6; }
22e05272 23007if ${gcc_cv_math_func_csqrtf+:} false; then :
5213506e 23008 $as_echo_n "(cached) " >&6
1409cd0b 23009else
db9f46a9 23010 if test x$gcc_no_link = xyes; then
22e05272 23011 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23012fi
5213506e 23013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23014/* end confdefs.h. */
23015
db9f46a9
TG
23016#ifdef HAVE_COMPLEX_H
23017#include <complex.h>
1409cd0b 23018#endif
db9f46a9
TG
23019#ifdef HAVE_MATH_H
23020#include <math.h>
23021#endif
23022
23023int (*ptr)() = (int (*)())csqrtf;
23024
1409cd0b
FXC
23025int
23026main ()
23027{
1409cd0b
FXC
23028 return 0;
23029}
db9f46a9 23030
1409cd0b 23031_ACEOF
5213506e 23032if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23033 gcc_cv_math_func_csqrtf=yes
1409cd0b 23034else
db9f46a9 23035 gcc_cv_math_func_csqrtf=no
1409cd0b 23036fi
5213506e
RW
23037rm -f core conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23039fi
db9f46a9
TG
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
23041$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
23042 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 23043
f38a14ca
TG
23044cat >>confdefs.h <<_ACEOF
23045#define HAVE_CSQRTF 1
23046_ACEOF
1409cd0b 23047
db9f46a9 23048 fi
1409cd0b 23049
1409cd0b 23050
db9f46a9
TG
23051
23052
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
23054$as_echo_n "checking for csqrt... " >&6; }
22e05272 23055if ${gcc_cv_math_func_csqrt+:} false; then :
5213506e 23056 $as_echo_n "(cached) " >&6
1409cd0b 23057else
db9f46a9 23058 if test x$gcc_no_link = xyes; then
22e05272 23059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23060fi
5213506e 23061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23062/* end confdefs.h. */
23063
db9f46a9
TG
23064#ifdef HAVE_COMPLEX_H
23065#include <complex.h>
23066#endif
23067#ifdef HAVE_MATH_H
23068#include <math.h>
1409cd0b 23069#endif
db9f46a9
TG
23070
23071int (*ptr)() = (int (*)())csqrt;
23072
1409cd0b
FXC
23073int
23074main ()
23075{
1409cd0b
FXC
23076 return 0;
23077}
db9f46a9 23078
1409cd0b 23079_ACEOF
5213506e 23080if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23081 gcc_cv_math_func_csqrt=yes
1409cd0b 23082else
db9f46a9 23083 gcc_cv_math_func_csqrt=no
1409cd0b 23084fi
5213506e
RW
23085rm -f core conftest.err conftest.$ac_objext \
23086 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23087fi
db9f46a9
TG
23088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
23089$as_echo "$gcc_cv_math_func_csqrt" >&6; }
23090 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 23091
f38a14ca
TG
23092cat >>confdefs.h <<_ACEOF
23093#define HAVE_CSQRT 1
23094_ACEOF
db9f46a9
TG
23095
23096 fi
1409cd0b 23097
1409cd0b 23098
1409cd0b 23099
db9f46a9
TG
23100
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
23102$as_echo_n "checking for csqrtl... " >&6; }
22e05272 23103if ${gcc_cv_math_func_csqrtl+:} false; then :
5213506e 23104 $as_echo_n "(cached) " >&6
1409cd0b 23105else
db9f46a9 23106 if test x$gcc_no_link = xyes; then
22e05272 23107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23108fi
5213506e 23109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23110/* end confdefs.h. */
23111
db9f46a9
TG
23112#ifdef HAVE_COMPLEX_H
23113#include <complex.h>
1409cd0b 23114#endif
db9f46a9
TG
23115#ifdef HAVE_MATH_H
23116#include <math.h>
23117#endif
23118
23119int (*ptr)() = (int (*)())csqrtl;
23120
1409cd0b
FXC
23121int
23122main ()
23123{
1409cd0b
FXC
23124 return 0;
23125}
db9f46a9 23126
1409cd0b 23127_ACEOF
5213506e 23128if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23129 gcc_cv_math_func_csqrtl=yes
1409cd0b 23130else
db9f46a9 23131 gcc_cv_math_func_csqrtl=no
1409cd0b 23132fi
5213506e
RW
23133rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23135fi
db9f46a9
TG
23136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
23137$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
23138 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 23139
f38a14ca
TG
23140cat >>confdefs.h <<_ACEOF
23141#define HAVE_CSQRTL 1
23142_ACEOF
db9f46a9
TG
23143
23144 fi
23145
1409cd0b 23146
1409cd0b 23147
1409cd0b 23148
db9f46a9
TG
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
23150$as_echo_n "checking for tanf... " >&6; }
22e05272 23151if ${gcc_cv_math_func_tanf+:} false; then :
5213506e 23152 $as_echo_n "(cached) " >&6
1409cd0b 23153else
db9f46a9 23154 if test x$gcc_no_link = xyes; then
22e05272 23155 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23156fi
5213506e 23157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23158/* end confdefs.h. */
23159
db9f46a9
TG
23160#ifdef HAVE_COMPLEX_H
23161#include <complex.h>
23162#endif
23163#ifdef HAVE_MATH_H
23164#include <math.h>
1409cd0b 23165#endif
db9f46a9
TG
23166
23167int (*ptr)() = (int (*)())tanf;
23168
1409cd0b
FXC
23169int
23170main ()
23171{
1409cd0b
FXC
23172 return 0;
23173}
db9f46a9 23174
1409cd0b 23175_ACEOF
5213506e 23176if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23177 gcc_cv_math_func_tanf=yes
1409cd0b 23178else
db9f46a9 23179 gcc_cv_math_func_tanf=no
1409cd0b 23180fi
5213506e
RW
23181rm -f core conftest.err conftest.$ac_objext \
23182 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23183fi
db9f46a9
TG
23184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23185$as_echo "$gcc_cv_math_func_tanf" >&6; }
23186 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 23187
f38a14ca
TG
23188cat >>confdefs.h <<_ACEOF
23189#define HAVE_TANF 1
23190_ACEOF
db9f46a9
TG
23191
23192 fi
1409cd0b 23193
1409cd0b 23194
1409cd0b 23195
db9f46a9
TG
23196
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23198$as_echo_n "checking for tan... " >&6; }
22e05272 23199if ${gcc_cv_math_func_tan+:} false; then :
5213506e 23200 $as_echo_n "(cached) " >&6
1409cd0b 23201else
db9f46a9 23202 if test x$gcc_no_link = xyes; then
22e05272 23203 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23204fi
5213506e 23205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23206/* end confdefs.h. */
23207
db9f46a9
TG
23208#ifdef HAVE_COMPLEX_H
23209#include <complex.h>
1409cd0b 23210#endif
db9f46a9
TG
23211#ifdef HAVE_MATH_H
23212#include <math.h>
23213#endif
23214
23215int (*ptr)() = (int (*)())tan;
23216
1409cd0b
FXC
23217int
23218main ()
23219{
1409cd0b
FXC
23220 return 0;
23221}
db9f46a9 23222
1409cd0b 23223_ACEOF
5213506e 23224if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23225 gcc_cv_math_func_tan=yes
1409cd0b 23226else
db9f46a9 23227 gcc_cv_math_func_tan=no
1409cd0b 23228fi
5213506e
RW
23229rm -f core conftest.err conftest.$ac_objext \
23230 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23231fi
db9f46a9
TG
23232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23233$as_echo "$gcc_cv_math_func_tan" >&6; }
23234 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 23235
f38a14ca
TG
23236cat >>confdefs.h <<_ACEOF
23237#define HAVE_TAN 1
23238_ACEOF
1409cd0b 23239
db9f46a9 23240 fi
1409cd0b 23241
1409cd0b 23242
db9f46a9
TG
23243
23244
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23246$as_echo_n "checking for tanl... " >&6; }
22e05272 23247if ${gcc_cv_math_func_tanl+:} false; then :
5213506e 23248 $as_echo_n "(cached) " >&6
1409cd0b 23249else
db9f46a9 23250 if test x$gcc_no_link = xyes; then
22e05272 23251 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23252fi
5213506e 23253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23254/* end confdefs.h. */
23255
db9f46a9
TG
23256#ifdef HAVE_COMPLEX_H
23257#include <complex.h>
23258#endif
23259#ifdef HAVE_MATH_H
23260#include <math.h>
1409cd0b 23261#endif
db9f46a9
TG
23262
23263int (*ptr)() = (int (*)())tanl;
23264
1409cd0b
FXC
23265int
23266main ()
23267{
1409cd0b
FXC
23268 return 0;
23269}
db9f46a9 23270
1409cd0b 23271_ACEOF
5213506e 23272if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23273 gcc_cv_math_func_tanl=yes
1409cd0b 23274else
db9f46a9 23275 gcc_cv_math_func_tanl=no
1409cd0b 23276fi
5213506e
RW
23277rm -f core conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23279fi
db9f46a9
TG
23280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23281$as_echo "$gcc_cv_math_func_tanl" >&6; }
23282 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 23283
f38a14ca
TG
23284cat >>confdefs.h <<_ACEOF
23285#define HAVE_TANL 1
23286_ACEOF
db9f46a9
TG
23287
23288 fi
1409cd0b 23289
1409cd0b 23290
1409cd0b 23291
db9f46a9
TG
23292
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23294$as_echo_n "checking for ctanf... " >&6; }
22e05272 23295if ${gcc_cv_math_func_ctanf+:} false; then :
5213506e 23296 $as_echo_n "(cached) " >&6
1409cd0b 23297else
db9f46a9 23298 if test x$gcc_no_link = xyes; then
22e05272 23299 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23300fi
5213506e 23301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23302/* end confdefs.h. */
23303
db9f46a9
TG
23304#ifdef HAVE_COMPLEX_H
23305#include <complex.h>
1409cd0b 23306#endif
db9f46a9
TG
23307#ifdef HAVE_MATH_H
23308#include <math.h>
23309#endif
23310
23311int (*ptr)() = (int (*)())ctanf;
23312
1409cd0b
FXC
23313int
23314main ()
23315{
1409cd0b
FXC
23316 return 0;
23317}
db9f46a9 23318
1409cd0b 23319_ACEOF
5213506e 23320if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23321 gcc_cv_math_func_ctanf=yes
1409cd0b 23322else
db9f46a9 23323 gcc_cv_math_func_ctanf=no
1409cd0b 23324fi
5213506e
RW
23325rm -f core conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23327fi
db9f46a9
TG
23328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23329$as_echo "$gcc_cv_math_func_ctanf" >&6; }
23330 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 23331
f38a14ca
TG
23332cat >>confdefs.h <<_ACEOF
23333#define HAVE_CTANF 1
23334_ACEOF
db9f46a9
TG
23335
23336 fi
23337
1409cd0b 23338
1409cd0b 23339
1409cd0b 23340
db9f46a9
TG
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23342$as_echo_n "checking for ctan... " >&6; }
22e05272 23343if ${gcc_cv_math_func_ctan+:} false; then :
5213506e 23344 $as_echo_n "(cached) " >&6
1409cd0b 23345else
db9f46a9 23346 if test x$gcc_no_link = xyes; then
22e05272 23347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23348fi
5213506e 23349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23350/* end confdefs.h. */
23351
db9f46a9
TG
23352#ifdef HAVE_COMPLEX_H
23353#include <complex.h>
23354#endif
23355#ifdef HAVE_MATH_H
23356#include <math.h>
1409cd0b 23357#endif
db9f46a9
TG
23358
23359int (*ptr)() = (int (*)())ctan;
23360
1409cd0b
FXC
23361int
23362main ()
23363{
1409cd0b
FXC
23364 return 0;
23365}
db9f46a9 23366
1409cd0b 23367_ACEOF
5213506e 23368if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23369 gcc_cv_math_func_ctan=yes
1409cd0b 23370else
db9f46a9 23371 gcc_cv_math_func_ctan=no
1409cd0b 23372fi
5213506e
RW
23373rm -f core conftest.err conftest.$ac_objext \
23374 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23375fi
db9f46a9
TG
23376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23377$as_echo "$gcc_cv_math_func_ctan" >&6; }
23378 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 23379
f38a14ca
TG
23380cat >>confdefs.h <<_ACEOF
23381#define HAVE_CTAN 1
23382_ACEOF
db9f46a9
TG
23383
23384 fi
1409cd0b 23385
1409cd0b 23386
1409cd0b 23387
db9f46a9
TG
23388
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23390$as_echo_n "checking for ctanl... " >&6; }
22e05272 23391if ${gcc_cv_math_func_ctanl+:} false; then :
5213506e 23392 $as_echo_n "(cached) " >&6
1409cd0b 23393else
db9f46a9 23394 if test x$gcc_no_link = xyes; then
22e05272 23395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23396fi
5213506e 23397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23398/* end confdefs.h. */
23399
db9f46a9
TG
23400#ifdef HAVE_COMPLEX_H
23401#include <complex.h>
1409cd0b 23402#endif
db9f46a9
TG
23403#ifdef HAVE_MATH_H
23404#include <math.h>
23405#endif
23406
23407int (*ptr)() = (int (*)())ctanl;
23408
1409cd0b
FXC
23409int
23410main ()
23411{
1409cd0b
FXC
23412 return 0;
23413}
db9f46a9 23414
1409cd0b 23415_ACEOF
5213506e 23416if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23417 gcc_cv_math_func_ctanl=yes
1409cd0b 23418else
db9f46a9 23419 gcc_cv_math_func_ctanl=no
1409cd0b 23420fi
5213506e
RW
23421rm -f core conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23423fi
db9f46a9
TG
23424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23425$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23426 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 23427
f38a14ca
TG
23428cat >>confdefs.h <<_ACEOF
23429#define HAVE_CTANL 1
23430_ACEOF
1409cd0b 23431
db9f46a9 23432 fi
1409cd0b 23433
1409cd0b 23434
db9f46a9
TG
23435
23436
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23438$as_echo_n "checking for tanhf... " >&6; }
22e05272 23439if ${gcc_cv_math_func_tanhf+:} false; then :
5213506e 23440 $as_echo_n "(cached) " >&6
1409cd0b 23441else
db9f46a9 23442 if test x$gcc_no_link = xyes; then
22e05272 23443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23444fi
5213506e 23445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23446/* end confdefs.h. */
23447
db9f46a9
TG
23448#ifdef HAVE_COMPLEX_H
23449#include <complex.h>
23450#endif
23451#ifdef HAVE_MATH_H
23452#include <math.h>
1409cd0b 23453#endif
db9f46a9
TG
23454
23455int (*ptr)() = (int (*)())tanhf;
23456
1409cd0b
FXC
23457int
23458main ()
23459{
1409cd0b
FXC
23460 return 0;
23461}
db9f46a9 23462
1409cd0b 23463_ACEOF
5213506e 23464if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23465 gcc_cv_math_func_tanhf=yes
1409cd0b 23466else
db9f46a9 23467 gcc_cv_math_func_tanhf=no
1409cd0b 23468fi
5213506e
RW
23469rm -f core conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23471fi
db9f46a9
TG
23472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23473$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23474 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 23475
f38a14ca
TG
23476cat >>confdefs.h <<_ACEOF
23477#define HAVE_TANHF 1
23478_ACEOF
db9f46a9
TG
23479
23480 fi
1409cd0b 23481
1409cd0b 23482
1409cd0b 23483
db9f46a9
TG
23484
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23486$as_echo_n "checking for tanh... " >&6; }
22e05272 23487if ${gcc_cv_math_func_tanh+:} false; then :
5213506e 23488 $as_echo_n "(cached) " >&6
1409cd0b 23489else
db9f46a9 23490 if test x$gcc_no_link = xyes; then
22e05272 23491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23492fi
5213506e 23493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23494/* end confdefs.h. */
23495
db9f46a9
TG
23496#ifdef HAVE_COMPLEX_H
23497#include <complex.h>
1409cd0b 23498#endif
db9f46a9
TG
23499#ifdef HAVE_MATH_H
23500#include <math.h>
23501#endif
23502
23503int (*ptr)() = (int (*)())tanh;
23504
1409cd0b
FXC
23505int
23506main ()
23507{
1409cd0b
FXC
23508 return 0;
23509}
db9f46a9 23510
1409cd0b 23511_ACEOF
5213506e 23512if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23513 gcc_cv_math_func_tanh=yes
1409cd0b 23514else
db9f46a9 23515 gcc_cv_math_func_tanh=no
1409cd0b 23516fi
5213506e
RW
23517rm -f core conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23519fi
db9f46a9
TG
23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23521$as_echo "$gcc_cv_math_func_tanh" >&6; }
23522 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 23523
f38a14ca
TG
23524cat >>confdefs.h <<_ACEOF
23525#define HAVE_TANH 1
23526_ACEOF
db9f46a9
TG
23527
23528 fi
23529
1409cd0b 23530
1409cd0b 23531
1409cd0b 23532
db9f46a9
TG
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23534$as_echo_n "checking for tanhl... " >&6; }
22e05272 23535if ${gcc_cv_math_func_tanhl+:} false; then :
5213506e 23536 $as_echo_n "(cached) " >&6
1409cd0b 23537else
db9f46a9 23538 if test x$gcc_no_link = xyes; then
22e05272 23539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23540fi
5213506e 23541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23542/* end confdefs.h. */
23543
db9f46a9
TG
23544#ifdef HAVE_COMPLEX_H
23545#include <complex.h>
23546#endif
23547#ifdef HAVE_MATH_H
23548#include <math.h>
1409cd0b 23549#endif
db9f46a9
TG
23550
23551int (*ptr)() = (int (*)())tanhl;
23552
1409cd0b
FXC
23553int
23554main ()
23555{
1409cd0b
FXC
23556 return 0;
23557}
db9f46a9 23558
1409cd0b 23559_ACEOF
5213506e 23560if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23561 gcc_cv_math_func_tanhl=yes
1409cd0b 23562else
db9f46a9 23563 gcc_cv_math_func_tanhl=no
1409cd0b 23564fi
5213506e
RW
23565rm -f core conftest.err conftest.$ac_objext \
23566 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23567fi
db9f46a9
TG
23568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23569$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23570 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 23571
f38a14ca
TG
23572cat >>confdefs.h <<_ACEOF
23573#define HAVE_TANHL 1
23574_ACEOF
db9f46a9
TG
23575
23576 fi
1409cd0b 23577
1409cd0b 23578
1409cd0b 23579
db9f46a9
TG
23580
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23582$as_echo_n "checking for ctanhf... " >&6; }
22e05272 23583if ${gcc_cv_math_func_ctanhf+:} false; then :
5213506e 23584 $as_echo_n "(cached) " >&6
1409cd0b 23585else
db9f46a9 23586 if test x$gcc_no_link = xyes; then
22e05272 23587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
23588fi
23589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23590/* end confdefs.h. */
23591
23592#ifdef HAVE_COMPLEX_H
23593#include <complex.h>
1409cd0b 23594#endif
db9f46a9
TG
23595#ifdef HAVE_MATH_H
23596#include <math.h>
23597#endif
23598
23599int (*ptr)() = (int (*)())ctanhf;
23600
1409cd0b
FXC
23601int
23602main ()
23603{
1409cd0b
FXC
23604 return 0;
23605}
db9f46a9 23606
1409cd0b 23607_ACEOF
5213506e 23608if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23609 gcc_cv_math_func_ctanhf=yes
1409cd0b 23610else
db9f46a9 23611 gcc_cv_math_func_ctanhf=no
1409cd0b 23612fi
5213506e
RW
23613rm -f core conftest.err conftest.$ac_objext \
23614 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23615fi
db9f46a9
TG
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23617$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23618 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 23619
f38a14ca
TG
23620cat >>confdefs.h <<_ACEOF
23621#define HAVE_CTANHF 1
23622_ACEOF
1409cd0b 23623
db9f46a9 23624 fi
1409cd0b 23625
1409cd0b 23626
db9f46a9
TG
23627
23628
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23630$as_echo_n "checking for ctanh... " >&6; }
22e05272 23631if ${gcc_cv_math_func_ctanh+:} false; then :
5213506e 23632 $as_echo_n "(cached) " >&6
1409cd0b 23633else
db9f46a9 23634 if test x$gcc_no_link = xyes; then
22e05272 23635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23636fi
5213506e 23637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23638/* end confdefs.h. */
23639
db9f46a9
TG
23640#ifdef HAVE_COMPLEX_H
23641#include <complex.h>
23642#endif
23643#ifdef HAVE_MATH_H
23644#include <math.h>
1409cd0b 23645#endif
db9f46a9
TG
23646
23647int (*ptr)() = (int (*)())ctanh;
23648
1409cd0b
FXC
23649int
23650main ()
23651{
5213506e
RW
23652 return 0;
23653}
db9f46a9 23654
5213506e
RW
23655_ACEOF
23656if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23657 gcc_cv_math_func_ctanh=yes
1409cd0b 23658else
db9f46a9 23659 gcc_cv_math_func_ctanh=no
1409cd0b 23660fi
5213506e
RW
23661rm -f core conftest.err conftest.$ac_objext \
23662 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23663fi
db9f46a9
TG
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23665$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23666 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23667
f38a14ca
TG
23668cat >>confdefs.h <<_ACEOF
23669#define HAVE_CTANH 1
23670_ACEOF
db9f46a9
TG
23671
23672 fi
1409cd0b 23673
1409cd0b 23674
1409cd0b 23675
db9f46a9
TG
23676
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23678$as_echo_n "checking for ctanhl... " >&6; }
22e05272 23679if ${gcc_cv_math_func_ctanhl+:} false; then :
5213506e 23680 $as_echo_n "(cached) " >&6
1409cd0b 23681else
db9f46a9 23682 if test x$gcc_no_link = xyes; then
22e05272 23683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23684fi
5213506e 23685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23686/* end confdefs.h. */
23687
db9f46a9
TG
23688#ifdef HAVE_COMPLEX_H
23689#include <complex.h>
1409cd0b 23690#endif
db9f46a9
TG
23691#ifdef HAVE_MATH_H
23692#include <math.h>
23693#endif
23694
23695int (*ptr)() = (int (*)())ctanhl;
23696
1409cd0b
FXC
23697int
23698main ()
23699{
1409cd0b
FXC
23700 return 0;
23701}
db9f46a9 23702
1409cd0b 23703_ACEOF
5213506e 23704if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23705 gcc_cv_math_func_ctanhl=yes
1409cd0b 23706else
db9f46a9 23707 gcc_cv_math_func_ctanhl=no
1409cd0b 23708fi
5213506e
RW
23709rm -f core conftest.err conftest.$ac_objext \
23710 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23711fi
db9f46a9
TG
23712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23713$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23714 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23715
f38a14ca
TG
23716cat >>confdefs.h <<_ACEOF
23717#define HAVE_CTANHL 1
23718_ACEOF
db9f46a9
TG
23719
23720 fi
23721
1409cd0b 23722
69a2d125 23723
69a2d125 23724
db9f46a9
TG
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23726$as_echo_n "checking for truncf... " >&6; }
22e05272 23727if ${gcc_cv_math_func_truncf+:} false; then :
5213506e 23728 $as_echo_n "(cached) " >&6
69a2d125 23729else
db9f46a9 23730 if test x$gcc_no_link = xyes; then
22e05272 23731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23732fi
5213506e 23733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23734/* end confdefs.h. */
23735
db9f46a9
TG
23736#ifdef HAVE_COMPLEX_H
23737#include <complex.h>
23738#endif
23739#ifdef HAVE_MATH_H
23740#include <math.h>
69a2d125 23741#endif
db9f46a9
TG
23742
23743int (*ptr)() = (int (*)())truncf;
23744
1409cd0b
FXC
23745int
23746main ()
23747{
1409cd0b
FXC
23748 return 0;
23749}
db9f46a9 23750
1409cd0b 23751_ACEOF
5213506e 23752if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23753 gcc_cv_math_func_truncf=yes
1409cd0b 23754else
db9f46a9 23755 gcc_cv_math_func_truncf=no
1409cd0b 23756fi
5213506e
RW
23757rm -f core conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23759fi
db9f46a9
TG
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23761$as_echo "$gcc_cv_math_func_truncf" >&6; }
23762 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23763
f38a14ca
TG
23764cat >>confdefs.h <<_ACEOF
23765#define HAVE_TRUNCF 1
23766_ACEOF
db9f46a9
TG
23767
23768 fi
1409cd0b 23769
1409cd0b 23770
1409cd0b 23771
db9f46a9
TG
23772
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23774$as_echo_n "checking for trunc... " >&6; }
22e05272 23775if ${gcc_cv_math_func_trunc+:} false; then :
5213506e 23776 $as_echo_n "(cached) " >&6
1409cd0b 23777else
db9f46a9 23778 if test x$gcc_no_link = xyes; then
22e05272 23779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23780fi
5213506e 23781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23782/* end confdefs.h. */
23783
db9f46a9
TG
23784#ifdef HAVE_COMPLEX_H
23785#include <complex.h>
1409cd0b 23786#endif
db9f46a9
TG
23787#ifdef HAVE_MATH_H
23788#include <math.h>
23789#endif
23790
23791int (*ptr)() = (int (*)())trunc;
23792
1409cd0b
FXC
23793int
23794main ()
23795{
1409cd0b
FXC
23796 return 0;
23797}
db9f46a9 23798
1409cd0b 23799_ACEOF
5213506e 23800if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23801 gcc_cv_math_func_trunc=yes
1409cd0b 23802else
db9f46a9 23803 gcc_cv_math_func_trunc=no
1409cd0b 23804fi
5213506e
RW
23805rm -f core conftest.err conftest.$ac_objext \
23806 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23807fi
db9f46a9
TG
23808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23809$as_echo "$gcc_cv_math_func_trunc" >&6; }
23810 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23811
f38a14ca
TG
23812cat >>confdefs.h <<_ACEOF
23813#define HAVE_TRUNC 1
23814_ACEOF
1409cd0b 23815
db9f46a9 23816 fi
1409cd0b 23817
1409cd0b 23818
db9f46a9
TG
23819
23820
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23822$as_echo_n "checking for truncl... " >&6; }
22e05272 23823if ${gcc_cv_math_func_truncl+:} false; then :
5213506e 23824 $as_echo_n "(cached) " >&6
1409cd0b 23825else
db9f46a9 23826 if test x$gcc_no_link = xyes; then
22e05272 23827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23828fi
5213506e 23829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23830/* end confdefs.h. */
23831
db9f46a9
TG
23832#ifdef HAVE_COMPLEX_H
23833#include <complex.h>
23834#endif
23835#ifdef HAVE_MATH_H
23836#include <math.h>
1409cd0b 23837#endif
db9f46a9
TG
23838
23839int (*ptr)() = (int (*)())truncl;
23840
1409cd0b
FXC
23841int
23842main ()
23843{
1409cd0b
FXC
23844 return 0;
23845}
db9f46a9 23846
1409cd0b 23847_ACEOF
5213506e 23848if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23849 gcc_cv_math_func_truncl=yes
1409cd0b 23850else
db9f46a9 23851 gcc_cv_math_func_truncl=no
1409cd0b 23852fi
5213506e
RW
23853rm -f core conftest.err conftest.$ac_objext \
23854 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23855fi
db9f46a9
TG
23856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23857$as_echo "$gcc_cv_math_func_truncl" >&6; }
23858 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23859
f38a14ca
TG
23860cat >>confdefs.h <<_ACEOF
23861#define HAVE_TRUNCL 1
23862_ACEOF
db9f46a9
TG
23863
23864 fi
1409cd0b 23865
1409cd0b 23866
1409cd0b 23867
db9f46a9
TG
23868
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23870$as_echo_n "checking for erff... " >&6; }
22e05272 23871if ${gcc_cv_math_func_erff+:} false; then :
5213506e 23872 $as_echo_n "(cached) " >&6
1409cd0b 23873else
db9f46a9 23874 if test x$gcc_no_link = xyes; then
22e05272 23875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23876fi
5213506e 23877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23878/* end confdefs.h. */
23879
db9f46a9
TG
23880#ifdef HAVE_COMPLEX_H
23881#include <complex.h>
1409cd0b 23882#endif
db9f46a9
TG
23883#ifdef HAVE_MATH_H
23884#include <math.h>
23885#endif
23886
23887int (*ptr)() = (int (*)())erff;
23888
1409cd0b
FXC
23889int
23890main ()
23891{
1409cd0b
FXC
23892 return 0;
23893}
db9f46a9 23894
1409cd0b 23895_ACEOF
5213506e 23896if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23897 gcc_cv_math_func_erff=yes
1409cd0b 23898else
db9f46a9 23899 gcc_cv_math_func_erff=no
1409cd0b 23900fi
5213506e
RW
23901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23903fi
db9f46a9
TG
23904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23905$as_echo "$gcc_cv_math_func_erff" >&6; }
23906 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23907
f38a14ca
TG
23908cat >>confdefs.h <<_ACEOF
23909#define HAVE_ERFF 1
23910_ACEOF
db9f46a9
TG
23911
23912 fi
23913
1409cd0b 23914
1409cd0b 23915
1409cd0b 23916
db9f46a9
TG
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23918$as_echo_n "checking for erf... " >&6; }
22e05272 23919if ${gcc_cv_math_func_erf+:} false; then :
5213506e 23920 $as_echo_n "(cached) " >&6
1409cd0b 23921else
db9f46a9 23922 if test x$gcc_no_link = xyes; then
22e05272 23923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23924fi
5213506e 23925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23926/* end confdefs.h. */
23927
db9f46a9
TG
23928#ifdef HAVE_COMPLEX_H
23929#include <complex.h>
23930#endif
23931#ifdef HAVE_MATH_H
23932#include <math.h>
1409cd0b 23933#endif
db9f46a9
TG
23934
23935int (*ptr)() = (int (*)())erf;
23936
1409cd0b
FXC
23937int
23938main ()
23939{
1409cd0b
FXC
23940 return 0;
23941}
db9f46a9 23942
1409cd0b 23943_ACEOF
5213506e 23944if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23945 gcc_cv_math_func_erf=yes
1409cd0b 23946else
db9f46a9 23947 gcc_cv_math_func_erf=no
1409cd0b 23948fi
5213506e
RW
23949rm -f core conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23951fi
db9f46a9
TG
23952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23953$as_echo "$gcc_cv_math_func_erf" >&6; }
23954 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23955
f38a14ca
TG
23956cat >>confdefs.h <<_ACEOF
23957#define HAVE_ERF 1
23958_ACEOF
db9f46a9
TG
23959
23960 fi
1409cd0b 23961
1409cd0b 23962
1409cd0b 23963
db9f46a9 23964
db9f46a9
TG
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23966$as_echo_n "checking for erfcf... " >&6; }
22e05272 23967if ${gcc_cv_math_func_erfcf+:} false; then :
5213506e 23968 $as_echo_n "(cached) " >&6
1409cd0b 23969else
db9f46a9 23970 if test x$gcc_no_link = xyes; then
22e05272 23971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23972fi
5213506e 23973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23974/* end confdefs.h. */
23975
db9f46a9
TG
23976#ifdef HAVE_COMPLEX_H
23977#include <complex.h>
23978#endif
23979#ifdef HAVE_MATH_H
23980#include <math.h>
1409cd0b 23981#endif
db9f46a9
TG
23982
23983int (*ptr)() = (int (*)())erfcf;
23984
1409cd0b
FXC
23985int
23986main ()
23987{
1409cd0b
FXC
23988 return 0;
23989}
db9f46a9 23990
1409cd0b 23991_ACEOF
5213506e 23992if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23993 gcc_cv_math_func_erfcf=yes
1409cd0b 23994else
db9f46a9 23995 gcc_cv_math_func_erfcf=no
1409cd0b 23996fi
5213506e
RW
23997rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23999fi
db9f46a9
TG
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
24001$as_echo "$gcc_cv_math_func_erfcf" >&6; }
24002 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 24003
f38a14ca
TG
24004cat >>confdefs.h <<_ACEOF
24005#define HAVE_ERFCF 1
24006_ACEOF
db9f46a9
TG
24007
24008 fi
1409cd0b 24009
1409cd0b 24010
1409cd0b 24011
db9f46a9
TG
24012
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
24014$as_echo_n "checking for erfc... " >&6; }
22e05272 24015if ${gcc_cv_math_func_erfc+:} false; then :
5213506e 24016 $as_echo_n "(cached) " >&6
1409cd0b 24017else
db9f46a9 24018 if test x$gcc_no_link = xyes; then
22e05272 24019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24020fi
5213506e 24021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24022/* end confdefs.h. */
24023
db9f46a9
TG
24024#ifdef HAVE_COMPLEX_H
24025#include <complex.h>
1409cd0b 24026#endif
db9f46a9
TG
24027#ifdef HAVE_MATH_H
24028#include <math.h>
24029#endif
24030
24031int (*ptr)() = (int (*)())erfc;
24032
69a2d125
EB
24033int
24034main ()
24035{
69a2d125
EB
24036 return 0;
24037}
db9f46a9 24038
69a2d125 24039_ACEOF
5213506e 24040if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24041 gcc_cv_math_func_erfc=yes
69a2d125 24042else
db9f46a9 24043 gcc_cv_math_func_erfc=no
69a2d125 24044fi
5213506e
RW
24045rm -f core conftest.err conftest.$ac_objext \
24046 conftest$ac_exeext conftest.$ac_ext
69a2d125 24047fi
db9f46a9
TG
24048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
24049$as_echo "$gcc_cv_math_func_erfc" >&6; }
24050 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 24051
f38a14ca
TG
24052cat >>confdefs.h <<_ACEOF
24053#define HAVE_ERFC 1
24054_ACEOF
db9f46a9
TG
24055
24056 fi
24057
69a2d125 24058
69a2d125 24059
69a2d125 24060
db9f46a9
TG
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
24062$as_echo_n "checking for erfcl... " >&6; }
22e05272 24063if ${gcc_cv_math_func_erfcl+:} false; then :
5213506e 24064 $as_echo_n "(cached) " >&6
e8525382 24065else
db9f46a9 24066 if test x$gcc_no_link = xyes; then
22e05272 24067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24068fi
5213506e 24069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24070/* end confdefs.h. */
24071
db9f46a9
TG
24072#ifdef HAVE_COMPLEX_H
24073#include <complex.h>
24074#endif
24075#ifdef HAVE_MATH_H
24076#include <math.h>
e8525382 24077#endif
db9f46a9
TG
24078
24079int (*ptr)() = (int (*)())erfcl;
24080
e8525382
SK
24081int
24082main ()
24083{
e8525382
SK
24084 return 0;
24085}
db9f46a9 24086
e8525382 24087_ACEOF
5213506e 24088if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24089 gcc_cv_math_func_erfcl=yes
e8525382 24090else
db9f46a9 24091 gcc_cv_math_func_erfcl=no
e8525382 24092fi
5213506e
RW
24093rm -f core conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
e8525382 24095fi
db9f46a9
TG
24096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
24097$as_echo "$gcc_cv_math_func_erfcl" >&6; }
24098 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 24099
f38a14ca
TG
24100cat >>confdefs.h <<_ACEOF
24101#define HAVE_ERFCL 1
24102_ACEOF
db9f46a9
TG
24103
24104 fi
e8525382 24105
e8525382 24106
e8525382 24107
db9f46a9
TG
24108
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
24110$as_echo_n "checking for j0f... " >&6; }
22e05272 24111if ${gcc_cv_math_func_j0f+:} false; then :
5213506e 24112 $as_echo_n "(cached) " >&6
e8525382 24113else
db9f46a9 24114 if test x$gcc_no_link = xyes; then
22e05272 24115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24116fi
5213506e 24117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24118/* end confdefs.h. */
24119
db9f46a9
TG
24120#ifdef HAVE_COMPLEX_H
24121#include <complex.h>
e8525382 24122#endif
db9f46a9
TG
24123#ifdef HAVE_MATH_H
24124#include <math.h>
24125#endif
24126
24127int (*ptr)() = (int (*)())j0f;
24128
e8525382
SK
24129int
24130main ()
24131{
e8525382
SK
24132 return 0;
24133}
db9f46a9 24134
e8525382 24135_ACEOF
5213506e 24136if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24137 gcc_cv_math_func_j0f=yes
e8525382 24138else
db9f46a9 24139 gcc_cv_math_func_j0f=no
1409cd0b 24140fi
5213506e
RW
24141rm -f core conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24143fi
db9f46a9
TG
24144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
24145$as_echo "$gcc_cv_math_func_j0f" >&6; }
24146 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 24147
f38a14ca
TG
24148cat >>confdefs.h <<_ACEOF
24149#define HAVE_J0F 1
24150_ACEOF
1409cd0b 24151
db9f46a9 24152 fi
1409cd0b 24153
1409cd0b 24154
db9f46a9
TG
24155
24156
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
24158$as_echo_n "checking for j0... " >&6; }
22e05272 24159if ${gcc_cv_math_func_j0+:} false; then :
5213506e 24160 $as_echo_n "(cached) " >&6
1409cd0b 24161else
db9f46a9 24162 if test x$gcc_no_link = xyes; then
22e05272 24163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24164fi
5213506e 24165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24166/* end confdefs.h. */
24167
db9f46a9
TG
24168#ifdef HAVE_COMPLEX_H
24169#include <complex.h>
24170#endif
24171#ifdef HAVE_MATH_H
24172#include <math.h>
1409cd0b 24173#endif
db9f46a9
TG
24174
24175int (*ptr)() = (int (*)())j0;
24176
1409cd0b
FXC
24177int
24178main ()
24179{
1409cd0b
FXC
24180 return 0;
24181}
db9f46a9 24182
1409cd0b 24183_ACEOF
5213506e 24184if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24185 gcc_cv_math_func_j0=yes
1409cd0b 24186else
db9f46a9 24187 gcc_cv_math_func_j0=no
1409cd0b 24188fi
5213506e
RW
24189rm -f core conftest.err conftest.$ac_objext \
24190 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24191fi
db9f46a9
TG
24192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24193$as_echo "$gcc_cv_math_func_j0" >&6; }
24194 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 24195
f38a14ca
TG
24196cat >>confdefs.h <<_ACEOF
24197#define HAVE_J0 1
24198_ACEOF
db9f46a9
TG
24199
24200 fi
1409cd0b 24201
1409cd0b 24202
1409cd0b 24203
db9f46a9 24204
db9f46a9
TG
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24206$as_echo_n "checking for j1f... " >&6; }
22e05272 24207if ${gcc_cv_math_func_j1f+:} false; then :
5213506e 24208 $as_echo_n "(cached) " >&6
1409cd0b 24209else
db9f46a9 24210 if test x$gcc_no_link = xyes; then
22e05272 24211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24212fi
5213506e 24213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24214/* end confdefs.h. */
24215
db9f46a9
TG
24216#ifdef HAVE_COMPLEX_H
24217#include <complex.h>
24218#endif
24219#ifdef HAVE_MATH_H
24220#include <math.h>
1409cd0b 24221#endif
db9f46a9
TG
24222
24223int (*ptr)() = (int (*)())j1f;
24224
1409cd0b
FXC
24225int
24226main ()
24227{
1409cd0b
FXC
24228 return 0;
24229}
db9f46a9 24230
1409cd0b 24231_ACEOF
5213506e 24232if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24233 gcc_cv_math_func_j1f=yes
1409cd0b 24234else
db9f46a9 24235 gcc_cv_math_func_j1f=no
e8525382 24236fi
5213506e
RW
24237rm -f core conftest.err conftest.$ac_objext \
24238 conftest$ac_exeext conftest.$ac_ext
e8525382 24239fi
db9f46a9
TG
24240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24241$as_echo "$gcc_cv_math_func_j1f" >&6; }
24242 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 24243
f38a14ca
TG
24244cat >>confdefs.h <<_ACEOF
24245#define HAVE_J1F 1
24246_ACEOF
db9f46a9
TG
24247
24248 fi
e8525382 24249
e8525382 24250
e8525382 24251
db9f46a9
TG
24252
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24254$as_echo_n "checking for j1... " >&6; }
22e05272 24255if ${gcc_cv_math_func_j1+:} false; then :
5213506e 24256 $as_echo_n "(cached) " >&6
e8525382 24257else
db9f46a9 24258 if test x$gcc_no_link = xyes; then
22e05272 24259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24260fi
5213506e 24261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24262/* end confdefs.h. */
24263
db9f46a9
TG
24264#ifdef HAVE_COMPLEX_H
24265#include <complex.h>
e8525382 24266#endif
db9f46a9
TG
24267#ifdef HAVE_MATH_H
24268#include <math.h>
24269#endif
24270
24271int (*ptr)() = (int (*)())j1;
24272
e8525382
SK
24273int
24274main ()
24275{
e8525382
SK
24276 return 0;
24277}
db9f46a9 24278
e8525382 24279_ACEOF
5213506e 24280if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24281 gcc_cv_math_func_j1=yes
e8525382 24282else
db9f46a9 24283 gcc_cv_math_func_j1=no
e8525382 24284fi
5213506e
RW
24285rm -f core conftest.err conftest.$ac_objext \
24286 conftest$ac_exeext conftest.$ac_ext
e8525382 24287fi
db9f46a9
TG
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24289$as_echo "$gcc_cv_math_func_j1" >&6; }
24290 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 24291
f38a14ca
TG
24292cat >>confdefs.h <<_ACEOF
24293#define HAVE_J1 1
24294_ACEOF
e8525382 24295
db9f46a9 24296 fi
e8525382 24297
e8525382 24298
db9f46a9
TG
24299
24300
db9f46a9
TG
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24302$as_echo_n "checking for jnf... " >&6; }
22e05272 24303if ${gcc_cv_math_func_jnf+:} false; then :
5213506e 24304 $as_echo_n "(cached) " >&6
e8525382 24305else
db9f46a9 24306 if test x$gcc_no_link = xyes; then
22e05272 24307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24308fi
5213506e 24309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24310/* end confdefs.h. */
24311
db9f46a9
TG
24312#ifdef HAVE_COMPLEX_H
24313#include <complex.h>
e8525382 24314#endif
db9f46a9
TG
24315#ifdef HAVE_MATH_H
24316#include <math.h>
24317#endif
24318
24319int (*ptr)() = (int (*)())jnf;
24320
e8525382
SK
24321int
24322main ()
24323{
e8525382
SK
24324 return 0;
24325}
db9f46a9 24326
e8525382 24327_ACEOF
5213506e 24328if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24329 gcc_cv_math_func_jnf=yes
e8525382 24330else
db9f46a9 24331 gcc_cv_math_func_jnf=no
e8525382 24332fi
5213506e
RW
24333rm -f core conftest.err conftest.$ac_objext \
24334 conftest$ac_exeext conftest.$ac_ext
e8525382 24335fi
db9f46a9
TG
24336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24337$as_echo "$gcc_cv_math_func_jnf" >&6; }
24338 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 24339
f38a14ca
TG
24340cat >>confdefs.h <<_ACEOF
24341#define HAVE_JNF 1
24342_ACEOF
db9f46a9
TG
24343
24344 fi
24345
e8525382 24346
e8525382 24347
e8525382 24348
db9f46a9
TG
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24350$as_echo_n "checking for jn... " >&6; }
22e05272 24351if ${gcc_cv_math_func_jn+:} false; then :
5213506e 24352 $as_echo_n "(cached) " >&6
e8525382 24353else
db9f46a9 24354 if test x$gcc_no_link = xyes; then
22e05272 24355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24356fi
5213506e 24357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24358/* end confdefs.h. */
24359
db9f46a9
TG
24360#ifdef HAVE_COMPLEX_H
24361#include <complex.h>
24362#endif
24363#ifdef HAVE_MATH_H
24364#include <math.h>
e8525382 24365#endif
db9f46a9
TG
24366
24367int (*ptr)() = (int (*)())jn;
24368
e8525382
SK
24369int
24370main ()
24371{
e8525382
SK
24372 return 0;
24373}
db9f46a9 24374
e8525382 24375_ACEOF
5213506e 24376if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24377 gcc_cv_math_func_jn=yes
e8525382 24378else
db9f46a9 24379 gcc_cv_math_func_jn=no
e8525382 24380fi
5213506e
RW
24381rm -f core conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
e8525382 24383fi
db9f46a9
TG
24384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24385$as_echo "$gcc_cv_math_func_jn" >&6; }
24386 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 24387
f38a14ca
TG
24388cat >>confdefs.h <<_ACEOF
24389#define HAVE_JN 1
24390_ACEOF
db9f46a9
TG
24391
24392 fi
e8525382 24393
e8525382 24394
e8525382 24395
db9f46a9
TG
24396
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24398$as_echo_n "checking for jnl... " >&6; }
22e05272 24399if ${gcc_cv_math_func_jnl+:} false; then :
5213506e 24400 $as_echo_n "(cached) " >&6
e8525382 24401else
db9f46a9 24402 if test x$gcc_no_link = xyes; then
22e05272 24403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24404fi
5213506e 24405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24406/* end confdefs.h. */
24407
db9f46a9
TG
24408#ifdef HAVE_COMPLEX_H
24409#include <complex.h>
e8525382 24410#endif
db9f46a9
TG
24411#ifdef HAVE_MATH_H
24412#include <math.h>
24413#endif
24414
24415int (*ptr)() = (int (*)())jnl;
24416
e8525382
SK
24417int
24418main ()
24419{
e8525382
SK
24420 return 0;
24421}
db9f46a9 24422
e8525382 24423_ACEOF
5213506e 24424if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24425 gcc_cv_math_func_jnl=yes
e8525382 24426else
db9f46a9 24427 gcc_cv_math_func_jnl=no
e8525382 24428fi
5213506e
RW
24429rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
e8525382 24431fi
db9f46a9
TG
24432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24433$as_echo "$gcc_cv_math_func_jnl" >&6; }
24434 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 24435
f38a14ca
TG
24436cat >>confdefs.h <<_ACEOF
24437#define HAVE_JNL 1
24438_ACEOF
e8525382 24439
db9f46a9 24440 fi
e8525382 24441
e8525382 24442
db9f46a9
TG
24443
24444
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24446$as_echo_n "checking for y0f... " >&6; }
22e05272 24447if ${gcc_cv_math_func_y0f+:} false; then :
5213506e 24448 $as_echo_n "(cached) " >&6
e8525382 24449else
db9f46a9 24450 if test x$gcc_no_link = xyes; then
22e05272 24451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24452fi
5213506e 24453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24454/* end confdefs.h. */
24455
db9f46a9
TG
24456#ifdef HAVE_COMPLEX_H
24457#include <complex.h>
24458#endif
24459#ifdef HAVE_MATH_H
24460#include <math.h>
e8525382 24461#endif
db9f46a9
TG
24462
24463int (*ptr)() = (int (*)())y0f;
24464
e8525382
SK
24465int
24466main ()
24467{
e8525382
SK
24468 return 0;
24469}
db9f46a9 24470
e8525382 24471_ACEOF
5213506e 24472if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24473 gcc_cv_math_func_y0f=yes
e8525382 24474else
db9f46a9 24475 gcc_cv_math_func_y0f=no
e8525382 24476fi
5213506e
RW
24477rm -f core conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
e8525382 24479fi
db9f46a9
TG
24480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24481$as_echo "$gcc_cv_math_func_y0f" >&6; }
24482 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 24483
f38a14ca
TG
24484cat >>confdefs.h <<_ACEOF
24485#define HAVE_Y0F 1
24486_ACEOF
db9f46a9
TG
24487
24488 fi
e8525382 24489
e8525382 24490
e8525382 24491
db9f46a9
TG
24492
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24494$as_echo_n "checking for y0... " >&6; }
22e05272 24495if ${gcc_cv_math_func_y0+:} false; then :
5213506e 24496 $as_echo_n "(cached) " >&6
e8525382 24497else
db9f46a9 24498 if test x$gcc_no_link = xyes; then
22e05272 24499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24500fi
5213506e 24501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24502/* end confdefs.h. */
24503
db9f46a9
TG
24504#ifdef HAVE_COMPLEX_H
24505#include <complex.h>
e8525382 24506#endif
db9f46a9
TG
24507#ifdef HAVE_MATH_H
24508#include <math.h>
24509#endif
24510
24511int (*ptr)() = (int (*)())y0;
24512
e8525382
SK
24513int
24514main ()
24515{
e8525382
SK
24516 return 0;
24517}
db9f46a9 24518
e8525382 24519_ACEOF
5213506e 24520if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24521 gcc_cv_math_func_y0=yes
e8525382 24522else
db9f46a9 24523 gcc_cv_math_func_y0=no
e8525382 24524fi
5213506e
RW
24525rm -f core conftest.err conftest.$ac_objext \
24526 conftest$ac_exeext conftest.$ac_ext
e8525382 24527fi
db9f46a9
TG
24528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24529$as_echo "$gcc_cv_math_func_y0" >&6; }
24530 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 24531
f38a14ca
TG
24532cat >>confdefs.h <<_ACEOF
24533#define HAVE_Y0 1
24534_ACEOF
db9f46a9
TG
24535
24536 fi
24537
e8525382 24538
e8525382 24539
e8525382 24540
db9f46a9
TG
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24542$as_echo_n "checking for y1f... " >&6; }
22e05272 24543if ${gcc_cv_math_func_y1f+:} false; then :
5213506e 24544 $as_echo_n "(cached) " >&6
e8525382 24545else
db9f46a9 24546 if test x$gcc_no_link = xyes; then
22e05272 24547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24548fi
5213506e 24549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24550/* end confdefs.h. */
24551
db9f46a9
TG
24552#ifdef HAVE_COMPLEX_H
24553#include <complex.h>
e8525382 24554#endif
db9f46a9
TG
24555#ifdef HAVE_MATH_H
24556#include <math.h>
24557#endif
24558
24559int (*ptr)() = (int (*)())y1f;
24560
e8525382
SK
24561int
24562main ()
24563{
e8525382
SK
24564 return 0;
24565}
db9f46a9 24566
e8525382 24567_ACEOF
5213506e 24568if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24569 gcc_cv_math_func_y1f=yes
e8525382 24570else
db9f46a9 24571 gcc_cv_math_func_y1f=no
e8525382 24572fi
5213506e
RW
24573rm -f core conftest.err conftest.$ac_objext \
24574 conftest$ac_exeext conftest.$ac_ext
e8525382 24575fi
db9f46a9
TG
24576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24577$as_echo "$gcc_cv_math_func_y1f" >&6; }
24578 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24579
f38a14ca
TG
24580cat >>confdefs.h <<_ACEOF
24581#define HAVE_Y1F 1
24582_ACEOF
e8525382 24583
db9f46a9 24584 fi
e8525382 24585
e8525382 24586
db9f46a9
TG
24587
24588
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24590$as_echo_n "checking for y1... " >&6; }
22e05272 24591if ${gcc_cv_math_func_y1+:} false; then :
5213506e 24592 $as_echo_n "(cached) " >&6
e8525382 24593else
db9f46a9 24594 if test x$gcc_no_link = xyes; then
22e05272 24595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24596fi
5213506e 24597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24598/* end confdefs.h. */
24599
db9f46a9
TG
24600#ifdef HAVE_COMPLEX_H
24601#include <complex.h>
24602#endif
24603#ifdef HAVE_MATH_H
24604#include <math.h>
e8525382 24605#endif
db9f46a9
TG
24606
24607int (*ptr)() = (int (*)())y1;
24608
e8525382
SK
24609int
24610main ()
24611{
e8525382
SK
24612 return 0;
24613}
db9f46a9 24614
e8525382 24615_ACEOF
5213506e 24616if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24617 gcc_cv_math_func_y1=yes
e8525382 24618else
db9f46a9 24619 gcc_cv_math_func_y1=no
e8525382 24620fi
5213506e
RW
24621rm -f core conftest.err conftest.$ac_objext \
24622 conftest$ac_exeext conftest.$ac_ext
e8525382 24623fi
db9f46a9
TG
24624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24625$as_echo "$gcc_cv_math_func_y1" >&6; }
24626 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24627
f38a14ca
TG
24628cat >>confdefs.h <<_ACEOF
24629#define HAVE_Y1 1
24630_ACEOF
db9f46a9
TG
24631
24632 fi
e8525382 24633
e8525382 24634
e8525382 24635
db9f46a9 24636
db9f46a9
TG
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24638$as_echo_n "checking for ynf... " >&6; }
22e05272 24639if ${gcc_cv_math_func_ynf+:} false; then :
5213506e 24640 $as_echo_n "(cached) " >&6
db9f46a9
TG
24641else
24642 if test x$gcc_no_link = xyes; then
22e05272 24643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24644fi
5213506e 24645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24646/* end confdefs.h. */
24647
db9f46a9
TG
24648#ifdef HAVE_COMPLEX_H
24649#include <complex.h>
24650#endif
24651#ifdef HAVE_MATH_H
24652#include <math.h>
e8525382 24653#endif
db9f46a9
TG
24654
24655int (*ptr)() = (int (*)())ynf;
24656
e8525382
SK
24657int
24658main ()
24659{
e8525382
SK
24660 return 0;
24661}
db9f46a9 24662
e8525382 24663_ACEOF
5213506e 24664if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24665 gcc_cv_math_func_ynf=yes
e8525382 24666else
db9f46a9 24667 gcc_cv_math_func_ynf=no
e8525382 24668fi
5213506e
RW
24669rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
e8525382 24671fi
db9f46a9
TG
24672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24673$as_echo "$gcc_cv_math_func_ynf" >&6; }
24674 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24675
f38a14ca
TG
24676cat >>confdefs.h <<_ACEOF
24677#define HAVE_YNF 1
24678_ACEOF
db9f46a9
TG
24679
24680 fi
e8525382 24681
e8525382 24682
e8525382 24683
db9f46a9
TG
24684
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24686$as_echo_n "checking for yn... " >&6; }
22e05272 24687if ${gcc_cv_math_func_yn+:} false; then :
5213506e 24688 $as_echo_n "(cached) " >&6
e8525382 24689else
db9f46a9 24690 if test x$gcc_no_link = xyes; then
22e05272 24691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24692fi
5213506e 24693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24694/* end confdefs.h. */
24695
db9f46a9
TG
24696#ifdef HAVE_COMPLEX_H
24697#include <complex.h>
e8525382 24698#endif
db9f46a9
TG
24699#ifdef HAVE_MATH_H
24700#include <math.h>
24701#endif
24702
24703int (*ptr)() = (int (*)())yn;
24704
e8525382
SK
24705int
24706main ()
24707{
e8525382
SK
24708 return 0;
24709}
db9f46a9 24710
e8525382 24711_ACEOF
5213506e 24712if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24713 gcc_cv_math_func_yn=yes
e8525382 24714else
db9f46a9 24715 gcc_cv_math_func_yn=no
e8525382 24716fi
5213506e
RW
24717rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
e8525382 24719fi
db9f46a9
TG
24720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24721$as_echo "$gcc_cv_math_func_yn" >&6; }
24722 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24723
f38a14ca
TG
24724cat >>confdefs.h <<_ACEOF
24725#define HAVE_YN 1
24726_ACEOF
db9f46a9
TG
24727
24728 fi
24729
e8525382 24730
e8525382 24731
e8525382 24732
db9f46a9
TG
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24734$as_echo_n "checking for ynl... " >&6; }
22e05272 24735if ${gcc_cv_math_func_ynl+:} false; then :
5213506e 24736 $as_echo_n "(cached) " >&6
e8525382 24737else
db9f46a9 24738 if test x$gcc_no_link = xyes; then
22e05272 24739 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24740fi
5213506e 24741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24742/* end confdefs.h. */
24743
db9f46a9
TG
24744#ifdef HAVE_COMPLEX_H
24745#include <complex.h>
24746#endif
24747#ifdef HAVE_MATH_H
24748#include <math.h>
e8525382 24749#endif
db9f46a9
TG
24750
24751int (*ptr)() = (int (*)())ynl;
24752
e8525382
SK
24753int
24754main ()
24755{
e8525382
SK
24756 return 0;
24757}
db9f46a9 24758
e8525382 24759_ACEOF
5213506e 24760if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24761 gcc_cv_math_func_ynl=yes
e8525382 24762else
db9f46a9 24763 gcc_cv_math_func_ynl=no
e8525382 24764fi
5213506e
RW
24765rm -f core conftest.err conftest.$ac_objext \
24766 conftest$ac_exeext conftest.$ac_ext
e8525382 24767fi
db9f46a9
TG
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24769$as_echo "$gcc_cv_math_func_ynl" >&6; }
24770 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24771
f38a14ca
TG
24772cat >>confdefs.h <<_ACEOF
24773#define HAVE_YNL 1
24774_ACEOF
db9f46a9
TG
24775
24776 fi
e8525382 24777
e8525382 24778
e8525382 24779
db9f46a9
TG
24780
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24782$as_echo_n "checking for tgamma... " >&6; }
22e05272 24783if ${gcc_cv_math_func_tgamma+:} false; then :
5213506e 24784 $as_echo_n "(cached) " >&6
fb0a0e15 24785else
db9f46a9 24786 if test x$gcc_no_link = xyes; then
22e05272 24787 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24788fi
5213506e 24789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24790/* end confdefs.h. */
24791
db9f46a9
TG
24792#ifdef HAVE_COMPLEX_H
24793#include <complex.h>
fb0a0e15 24794#endif
db9f46a9
TG
24795#ifdef HAVE_MATH_H
24796#include <math.h>
24797#endif
24798
24799int (*ptr)() = (int (*)())tgamma;
24800
fb0a0e15
FXC
24801int
24802main ()
24803{
fb0a0e15
FXC
24804 return 0;
24805}
db9f46a9 24806
fb0a0e15 24807_ACEOF
5213506e 24808if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24809 gcc_cv_math_func_tgamma=yes
fb0a0e15 24810else
db9f46a9 24811 gcc_cv_math_func_tgamma=no
fb0a0e15 24812fi
5213506e
RW
24813rm -f core conftest.err conftest.$ac_objext \
24814 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24815fi
db9f46a9
TG
24816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24817$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24818 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24819
f38a14ca
TG
24820cat >>confdefs.h <<_ACEOF
24821#define HAVE_TGAMMA 1
24822_ACEOF
fb0a0e15 24823
db9f46a9 24824 fi
fb0a0e15 24825
fb0a0e15 24826
db9f46a9
TG
24827
24828
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24830$as_echo_n "checking for tgammaf... " >&6; }
22e05272 24831if ${gcc_cv_math_func_tgammaf+:} false; then :
5213506e 24832 $as_echo_n "(cached) " >&6
fb0a0e15 24833else
db9f46a9 24834 if test x$gcc_no_link = xyes; then
22e05272 24835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24836fi
5213506e 24837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24838/* end confdefs.h. */
24839
db9f46a9
TG
24840#ifdef HAVE_COMPLEX_H
24841#include <complex.h>
24842#endif
24843#ifdef HAVE_MATH_H
24844#include <math.h>
fb0a0e15 24845#endif
db9f46a9
TG
24846
24847int (*ptr)() = (int (*)())tgammaf;
24848
fb0a0e15
FXC
24849int
24850main ()
24851{
fb0a0e15
FXC
24852 return 0;
24853}
db9f46a9 24854
fb0a0e15 24855_ACEOF
5213506e 24856if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24857 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24858else
db9f46a9 24859 gcc_cv_math_func_tgammaf=no
fb0a0e15 24860fi
5213506e
RW
24861rm -f core conftest.err conftest.$ac_objext \
24862 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24863fi
db9f46a9
TG
24864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24865$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24866 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24867
f38a14ca
TG
24868cat >>confdefs.h <<_ACEOF
24869#define HAVE_TGAMMAF 1
24870_ACEOF
db9f46a9
TG
24871
24872 fi
fb0a0e15 24873
fb0a0e15 24874
fb0a0e15 24875
db9f46a9 24876
db9f46a9
TG
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24878$as_echo_n "checking for lgamma... " >&6; }
22e05272 24879if ${gcc_cv_math_func_lgamma+:} false; then :
5213506e 24880 $as_echo_n "(cached) " >&6
fb0a0e15 24881else
db9f46a9 24882 if test x$gcc_no_link = xyes; then
22e05272 24883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24884fi
5213506e 24885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24886/* end confdefs.h. */
24887
db9f46a9
TG
24888#ifdef HAVE_COMPLEX_H
24889#include <complex.h>
24890#endif
24891#ifdef HAVE_MATH_H
24892#include <math.h>
fb0a0e15 24893#endif
db9f46a9
TG
24894
24895int (*ptr)() = (int (*)())lgamma;
24896
fb0a0e15
FXC
24897int
24898main ()
24899{
fb0a0e15
FXC
24900 return 0;
24901}
db9f46a9 24902
fb0a0e15 24903_ACEOF
5213506e 24904if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24905 gcc_cv_math_func_lgamma=yes
fb0a0e15 24906else
db9f46a9 24907 gcc_cv_math_func_lgamma=no
fb0a0e15 24908fi
5213506e
RW
24909rm -f core conftest.err conftest.$ac_objext \
24910 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24911fi
db9f46a9
TG
24912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24913$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24914 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24915
f38a14ca
TG
24916cat >>confdefs.h <<_ACEOF
24917#define HAVE_LGAMMA 1
24918_ACEOF
db9f46a9
TG
24919
24920 fi
fb0a0e15 24921
fb0a0e15 24922
fb0a0e15 24923
db9f46a9
TG
24924
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24926$as_echo_n "checking for lgammaf... " >&6; }
22e05272 24927if ${gcc_cv_math_func_lgammaf+:} false; then :
5213506e 24928 $as_echo_n "(cached) " >&6
fb0a0e15 24929else
db9f46a9 24930 if test x$gcc_no_link = xyes; then
22e05272 24931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24932fi
5213506e 24933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24934/* end confdefs.h. */
24935
db9f46a9
TG
24936#ifdef HAVE_COMPLEX_H
24937#include <complex.h>
fb0a0e15 24938#endif
db9f46a9
TG
24939#ifdef HAVE_MATH_H
24940#include <math.h>
24941#endif
24942
24943int (*ptr)() = (int (*)())lgammaf;
24944
fb0a0e15
FXC
24945int
24946main ()
24947{
fb0a0e15
FXC
24948 return 0;
24949}
db9f46a9 24950
fb0a0e15 24951_ACEOF
5213506e 24952if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24953 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24954else
db9f46a9 24955 gcc_cv_math_func_lgammaf=no
fb0a0e15 24956fi
5213506e
RW
24957rm -f core conftest.err conftest.$ac_objext \
24958 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24959fi
db9f46a9
TG
24960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24961$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24962 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24963
f38a14ca
TG
24964cat >>confdefs.h <<_ACEOF
24965#define HAVE_LGAMMAF 1
24966_ACEOF
fb0a0e15 24967
db9f46a9 24968 fi
fb0a0e15 24969
fb0a0e15 24970
db1cf15c 24971# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24972
24973
24974
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24976$as_echo_n "checking for cacos... " >&6; }
22e05272 24977if ${gcc_cv_math_func_cacos+:} false; then :
db1cf15c
IS
24978 $as_echo_n "(cached) " >&6
24979else
db9f46a9 24980 if test x$gcc_no_link = xyes; then
22e05272 24981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
24982fi
24983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984/* end confdefs.h. */
24985
db9f46a9
TG
24986#ifdef HAVE_COMPLEX_H
24987#include <complex.h>
db1cf15c 24988#endif
db9f46a9
TG
24989#ifdef HAVE_MATH_H
24990#include <math.h>
24991#endif
24992
24993int (*ptr)() = (int (*)())cacos;
24994
db1cf15c
IS
24995int
24996main ()
24997{
db1cf15c
IS
24998 return 0;
24999}
db9f46a9 25000
db1cf15c
IS
25001_ACEOF
25002if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25003 gcc_cv_math_func_cacos=yes
db1cf15c 25004else
db9f46a9 25005 gcc_cv_math_func_cacos=no
db1cf15c
IS
25006fi
25007rm -f core conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25009fi
db9f46a9
TG
25010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
25011$as_echo "$gcc_cv_math_func_cacos" >&6; }
25012 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 25013
f38a14ca
TG
25014cat >>confdefs.h <<_ACEOF
25015#define HAVE_CACOS 1
25016_ACEOF
db1cf15c 25017
db9f46a9 25018 fi
db1cf15c 25019
db1cf15c 25020
db9f46a9
TG
25021
25022
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
25024$as_echo_n "checking for cacosf... " >&6; }
22e05272 25025if ${gcc_cv_math_func_cacosf+:} false; then :
db1cf15c
IS
25026 $as_echo_n "(cached) " >&6
25027else
db9f46a9 25028 if test x$gcc_no_link = xyes; then
22e05272 25029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25030fi
25031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25032/* end confdefs.h. */
25033
db9f46a9
TG
25034#ifdef HAVE_COMPLEX_H
25035#include <complex.h>
25036#endif
25037#ifdef HAVE_MATH_H
25038#include <math.h>
db1cf15c 25039#endif
db9f46a9
TG
25040
25041int (*ptr)() = (int (*)())cacosf;
25042
db1cf15c
IS
25043int
25044main ()
25045{
db1cf15c
IS
25046 return 0;
25047}
db9f46a9 25048
db1cf15c
IS
25049_ACEOF
25050if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25051 gcc_cv_math_func_cacosf=yes
db1cf15c 25052else
db9f46a9 25053 gcc_cv_math_func_cacosf=no
db1cf15c
IS
25054fi
25055rm -f core conftest.err conftest.$ac_objext \
25056 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25057fi
db9f46a9
TG
25058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
25059$as_echo "$gcc_cv_math_func_cacosf" >&6; }
25060 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 25061
f38a14ca
TG
25062cat >>confdefs.h <<_ACEOF
25063#define HAVE_CACOSF 1
25064_ACEOF
db9f46a9
TG
25065
25066 fi
db1cf15c 25067
db1cf15c 25068
db1cf15c 25069
db9f46a9
TG
25070
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
25072$as_echo_n "checking for cacosh... " >&6; }
22e05272 25073if ${gcc_cv_math_func_cacosh+:} false; then :
db1cf15c
IS
25074 $as_echo_n "(cached) " >&6
25075else
db9f46a9 25076 if test x$gcc_no_link = xyes; then
22e05272 25077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25078fi
25079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080/* end confdefs.h. */
25081
db9f46a9
TG
25082#ifdef HAVE_COMPLEX_H
25083#include <complex.h>
db1cf15c 25084#endif
db9f46a9
TG
25085#ifdef HAVE_MATH_H
25086#include <math.h>
25087#endif
25088
25089int (*ptr)() = (int (*)())cacosh;
25090
db1cf15c
IS
25091int
25092main ()
25093{
db1cf15c
IS
25094 return 0;
25095}
db9f46a9 25096
db1cf15c
IS
25097_ACEOF
25098if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25099 gcc_cv_math_func_cacosh=yes
db1cf15c 25100else
db9f46a9 25101 gcc_cv_math_func_cacosh=no
db1cf15c
IS
25102fi
25103rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25105fi
db9f46a9
TG
25106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
25107$as_echo "$gcc_cv_math_func_cacosh" >&6; }
25108 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 25109
f38a14ca
TG
25110cat >>confdefs.h <<_ACEOF
25111#define HAVE_CACOSH 1
25112_ACEOF
db9f46a9
TG
25113
25114 fi
25115
db1cf15c 25116
db1cf15c 25117
db1cf15c 25118
db9f46a9
TG
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
25120$as_echo_n "checking for cacoshf... " >&6; }
22e05272 25121if ${gcc_cv_math_func_cacoshf+:} false; then :
db1cf15c
IS
25122 $as_echo_n "(cached) " >&6
25123else
db9f46a9 25124 if test x$gcc_no_link = xyes; then
22e05272 25125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25126fi
25127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128/* end confdefs.h. */
25129
db9f46a9
TG
25130#ifdef HAVE_COMPLEX_H
25131#include <complex.h>
25132#endif
25133#ifdef HAVE_MATH_H
25134#include <math.h>
db1cf15c 25135#endif
db9f46a9
TG
25136
25137int (*ptr)() = (int (*)())cacoshf;
25138
db1cf15c
IS
25139int
25140main ()
25141{
db1cf15c
IS
25142 return 0;
25143}
db9f46a9 25144
db1cf15c
IS
25145_ACEOF
25146if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25147 gcc_cv_math_func_cacoshf=yes
db1cf15c 25148else
db9f46a9 25149 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
25150fi
25151rm -f core conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25153fi
db9f46a9
TG
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
25155$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
25156 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 25157
f38a14ca
TG
25158cat >>confdefs.h <<_ACEOF
25159#define HAVE_CACOSHF 1
25160_ACEOF
db9f46a9
TG
25161
25162 fi
db1cf15c 25163
db1cf15c 25164
db1cf15c 25165
db9f46a9
TG
25166
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25168$as_echo_n "checking for cacoshl... " >&6; }
22e05272 25169if ${gcc_cv_math_func_cacoshl+:} false; then :
db1cf15c
IS
25170 $as_echo_n "(cached) " >&6
25171else
db9f46a9 25172 if test x$gcc_no_link = xyes; then
22e05272 25173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25174fi
25175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25176/* end confdefs.h. */
25177
db9f46a9
TG
25178#ifdef HAVE_COMPLEX_H
25179#include <complex.h>
db1cf15c 25180#endif
db9f46a9
TG
25181#ifdef HAVE_MATH_H
25182#include <math.h>
25183#endif
25184
25185int (*ptr)() = (int (*)())cacoshl;
25186
db1cf15c
IS
25187int
25188main ()
25189{
db1cf15c
IS
25190 return 0;
25191}
db9f46a9 25192
db1cf15c
IS
25193_ACEOF
25194if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25195 gcc_cv_math_func_cacoshl=yes
db1cf15c 25196else
db9f46a9 25197 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
25198fi
25199rm -f core conftest.err conftest.$ac_objext \
25200 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25201fi
db9f46a9
TG
25202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25203$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25204 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 25205
f38a14ca
TG
25206cat >>confdefs.h <<_ACEOF
25207#define HAVE_CACOSHL 1
25208_ACEOF
db1cf15c 25209
db9f46a9 25210 fi
db1cf15c 25211
db1cf15c 25212
db9f46a9
TG
25213
25214
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25216$as_echo_n "checking for cacosl... " >&6; }
22e05272 25217if ${gcc_cv_math_func_cacosl+:} false; then :
db1cf15c
IS
25218 $as_echo_n "(cached) " >&6
25219else
db9f46a9 25220 if test x$gcc_no_link = xyes; then
22e05272 25221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25222fi
25223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224/* end confdefs.h. */
25225
db9f46a9
TG
25226#ifdef HAVE_COMPLEX_H
25227#include <complex.h>
25228#endif
25229#ifdef HAVE_MATH_H
25230#include <math.h>
db1cf15c 25231#endif
db9f46a9
TG
25232
25233int (*ptr)() = (int (*)())cacosl;
25234
db1cf15c
IS
25235int
25236main ()
25237{
db1cf15c
IS
25238 return 0;
25239}
db9f46a9 25240
db1cf15c
IS
25241_ACEOF
25242if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25243 gcc_cv_math_func_cacosl=yes
db1cf15c 25244else
db9f46a9 25245 gcc_cv_math_func_cacosl=no
db1cf15c
IS
25246fi
25247rm -f core conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25249fi
db9f46a9
TG
25250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25251$as_echo "$gcc_cv_math_func_cacosl" >&6; }
25252 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 25253
f38a14ca
TG
25254cat >>confdefs.h <<_ACEOF
25255#define HAVE_CACOSL 1
25256_ACEOF
db9f46a9
TG
25257
25258 fi
db1cf15c 25259
db1cf15c 25260
db1cf15c 25261
db9f46a9
TG
25262
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25264$as_echo_n "checking for casin... " >&6; }
22e05272 25265if ${gcc_cv_math_func_casin+:} false; then :
db1cf15c
IS
25266 $as_echo_n "(cached) " >&6
25267else
db9f46a9 25268 if test x$gcc_no_link = xyes; then
22e05272 25269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25270fi
25271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272/* end confdefs.h. */
25273
db9f46a9
TG
25274#ifdef HAVE_COMPLEX_H
25275#include <complex.h>
db1cf15c 25276#endif
db9f46a9
TG
25277#ifdef HAVE_MATH_H
25278#include <math.h>
25279#endif
25280
25281int (*ptr)() = (int (*)())casin;
25282
db1cf15c
IS
25283int
25284main ()
25285{
db1cf15c
IS
25286 return 0;
25287}
db9f46a9 25288
db1cf15c
IS
25289_ACEOF
25290if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25291 gcc_cv_math_func_casin=yes
db1cf15c 25292else
db9f46a9 25293 gcc_cv_math_func_casin=no
db1cf15c
IS
25294fi
25295rm -f core conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25297fi
db9f46a9
TG
25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25299$as_echo "$gcc_cv_math_func_casin" >&6; }
25300 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 25301
f38a14ca
TG
25302cat >>confdefs.h <<_ACEOF
25303#define HAVE_CASIN 1
25304_ACEOF
db9f46a9
TG
25305
25306 fi
25307
db1cf15c 25308
db1cf15c 25309
db1cf15c 25310
db9f46a9
TG
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25312$as_echo_n "checking for casinf... " >&6; }
22e05272 25313if ${gcc_cv_math_func_casinf+:} false; then :
db1cf15c
IS
25314 $as_echo_n "(cached) " >&6
25315else
db9f46a9 25316 if test x$gcc_no_link = xyes; then
22e05272 25317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25318fi
25319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25320/* end confdefs.h. */
25321
db9f46a9
TG
25322#ifdef HAVE_COMPLEX_H
25323#include <complex.h>
25324#endif
25325#ifdef HAVE_MATH_H
25326#include <math.h>
db1cf15c 25327#endif
db9f46a9
TG
25328
25329int (*ptr)() = (int (*)())casinf;
25330
db1cf15c
IS
25331int
25332main ()
25333{
db1cf15c
IS
25334 return 0;
25335}
db9f46a9 25336
db1cf15c
IS
25337_ACEOF
25338if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25339 gcc_cv_math_func_casinf=yes
db1cf15c 25340else
db9f46a9 25341 gcc_cv_math_func_casinf=no
db1cf15c
IS
25342fi
25343rm -f core conftest.err conftest.$ac_objext \
25344 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25345fi
db9f46a9
TG
25346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25347$as_echo "$gcc_cv_math_func_casinf" >&6; }
25348 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 25349
f38a14ca
TG
25350cat >>confdefs.h <<_ACEOF
25351#define HAVE_CASINF 1
25352_ACEOF
db9f46a9
TG
25353
25354 fi
db1cf15c 25355
db1cf15c 25356
db1cf15c 25357
db9f46a9
TG
25358
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25360$as_echo_n "checking for casinh... " >&6; }
22e05272 25361if ${gcc_cv_math_func_casinh+:} false; then :
db1cf15c
IS
25362 $as_echo_n "(cached) " >&6
25363else
db9f46a9 25364 if test x$gcc_no_link = xyes; then
22e05272 25365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25366fi
25367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368/* end confdefs.h. */
25369
db9f46a9
TG
25370#ifdef HAVE_COMPLEX_H
25371#include <complex.h>
db1cf15c 25372#endif
db9f46a9
TG
25373#ifdef HAVE_MATH_H
25374#include <math.h>
25375#endif
25376
25377int (*ptr)() = (int (*)())casinh;
25378
db1cf15c
IS
25379int
25380main ()
25381{
db1cf15c
IS
25382 return 0;
25383}
db9f46a9 25384
db1cf15c
IS
25385_ACEOF
25386if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25387 gcc_cv_math_func_casinh=yes
db1cf15c 25388else
db9f46a9 25389 gcc_cv_math_func_casinh=no
db1cf15c
IS
25390fi
25391rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25393fi
db9f46a9
TG
25394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25395$as_echo "$gcc_cv_math_func_casinh" >&6; }
25396 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 25397
f38a14ca
TG
25398cat >>confdefs.h <<_ACEOF
25399#define HAVE_CASINH 1
25400_ACEOF
db1cf15c 25401
db9f46a9 25402 fi
db1cf15c 25403
db1cf15c 25404
db9f46a9
TG
25405
25406
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25408$as_echo_n "checking for casinhf... " >&6; }
22e05272 25409if ${gcc_cv_math_func_casinhf+:} false; then :
db1cf15c
IS
25410 $as_echo_n "(cached) " >&6
25411else
db9f46a9 25412 if test x$gcc_no_link = xyes; then
22e05272 25413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25414fi
25415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416/* end confdefs.h. */
25417
db9f46a9
TG
25418#ifdef HAVE_COMPLEX_H
25419#include <complex.h>
25420#endif
25421#ifdef HAVE_MATH_H
25422#include <math.h>
db1cf15c 25423#endif
db9f46a9
TG
25424
25425int (*ptr)() = (int (*)())casinhf;
25426
db1cf15c
IS
25427int
25428main ()
25429{
db1cf15c
IS
25430 return 0;
25431}
db9f46a9 25432
db1cf15c
IS
25433_ACEOF
25434if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25435 gcc_cv_math_func_casinhf=yes
db1cf15c 25436else
db9f46a9 25437 gcc_cv_math_func_casinhf=no
db1cf15c
IS
25438fi
25439rm -f core conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25441fi
db9f46a9
TG
25442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25443$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25444 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 25445
f38a14ca
TG
25446cat >>confdefs.h <<_ACEOF
25447#define HAVE_CASINHF 1
25448_ACEOF
db9f46a9
TG
25449
25450 fi
db1cf15c 25451
db1cf15c 25452
db1cf15c 25453
db9f46a9
TG
25454
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25456$as_echo_n "checking for casinhl... " >&6; }
22e05272 25457if ${gcc_cv_math_func_casinhl+:} false; then :
db1cf15c
IS
25458 $as_echo_n "(cached) " >&6
25459else
db9f46a9 25460 if test x$gcc_no_link = xyes; then
22e05272 25461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25462fi
25463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464/* end confdefs.h. */
25465
db9f46a9
TG
25466#ifdef HAVE_COMPLEX_H
25467#include <complex.h>
db1cf15c 25468#endif
db9f46a9
TG
25469#ifdef HAVE_MATH_H
25470#include <math.h>
25471#endif
25472
25473int (*ptr)() = (int (*)())casinhl;
25474
db1cf15c
IS
25475int
25476main ()
25477{
db1cf15c
IS
25478 return 0;
25479}
db9f46a9 25480
db1cf15c
IS
25481_ACEOF
25482if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25483 gcc_cv_math_func_casinhl=yes
db1cf15c 25484else
db9f46a9 25485 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25486fi
25487rm -f core conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25489fi
db9f46a9
TG
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25491$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25492 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25493
f38a14ca
TG
25494cat >>confdefs.h <<_ACEOF
25495#define HAVE_CASINHL 1
25496_ACEOF
db9f46a9
TG
25497
25498 fi
25499
db1cf15c 25500
db1cf15c 25501
db1cf15c 25502
db9f46a9
TG
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25504$as_echo_n "checking for casinl... " >&6; }
22e05272 25505if ${gcc_cv_math_func_casinl+:} false; then :
db1cf15c
IS
25506 $as_echo_n "(cached) " >&6
25507else
db9f46a9 25508 if test x$gcc_no_link = xyes; then
22e05272 25509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25510fi
25511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h. */
25513
db9f46a9
TG
25514#ifdef HAVE_COMPLEX_H
25515#include <complex.h>
25516#endif
25517#ifdef HAVE_MATH_H
25518#include <math.h>
db1cf15c 25519#endif
db9f46a9
TG
25520
25521int (*ptr)() = (int (*)())casinl;
25522
db1cf15c
IS
25523int
25524main ()
25525{
db1cf15c
IS
25526 return 0;
25527}
db9f46a9 25528
db1cf15c
IS
25529_ACEOF
25530if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25531 gcc_cv_math_func_casinl=yes
db1cf15c 25532else
db9f46a9 25533 gcc_cv_math_func_casinl=no
db1cf15c
IS
25534fi
25535rm -f core conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25537fi
db9f46a9
TG
25538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25539$as_echo "$gcc_cv_math_func_casinl" >&6; }
25540 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25541
f38a14ca
TG
25542cat >>confdefs.h <<_ACEOF
25543#define HAVE_CASINL 1
25544_ACEOF
db9f46a9
TG
25545
25546 fi
db1cf15c 25547
db1cf15c 25548
db1cf15c 25549
db9f46a9
TG
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25552$as_echo_n "checking for catan... " >&6; }
22e05272 25553if ${gcc_cv_math_func_catan+:} false; then :
db1cf15c
IS
25554 $as_echo_n "(cached) " >&6
25555else
db9f46a9 25556 if test x$gcc_no_link = xyes; then
22e05272 25557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25558fi
25559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560/* end confdefs.h. */
25561
db9f46a9
TG
25562#ifdef HAVE_COMPLEX_H
25563#include <complex.h>
db1cf15c 25564#endif
db9f46a9
TG
25565#ifdef HAVE_MATH_H
25566#include <math.h>
25567#endif
25568
25569int (*ptr)() = (int (*)())catan;
25570
db1cf15c
IS
25571int
25572main ()
25573{
db1cf15c
IS
25574 return 0;
25575}
db9f46a9 25576
db1cf15c
IS
25577_ACEOF
25578if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25579 gcc_cv_math_func_catan=yes
db1cf15c 25580else
db9f46a9 25581 gcc_cv_math_func_catan=no
db1cf15c
IS
25582fi
25583rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25585fi
db9f46a9
TG
25586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25587$as_echo "$gcc_cv_math_func_catan" >&6; }
25588 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25589
f38a14ca
TG
25590cat >>confdefs.h <<_ACEOF
25591#define HAVE_CATAN 1
25592_ACEOF
db1cf15c 25593
db9f46a9 25594 fi
db1cf15c 25595
db1cf15c 25596
db9f46a9
TG
25597
25598
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25600$as_echo_n "checking for catanf... " >&6; }
22e05272 25601if ${gcc_cv_math_func_catanf+:} false; then :
db1cf15c
IS
25602 $as_echo_n "(cached) " >&6
25603else
db9f46a9 25604 if test x$gcc_no_link = xyes; then
22e05272 25605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25606fi
25607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25608/* end confdefs.h. */
25609
db9f46a9
TG
25610#ifdef HAVE_COMPLEX_H
25611#include <complex.h>
25612#endif
25613#ifdef HAVE_MATH_H
25614#include <math.h>
db1cf15c 25615#endif
db9f46a9
TG
25616
25617int (*ptr)() = (int (*)())catanf;
25618
db1cf15c
IS
25619int
25620main ()
25621{
db1cf15c
IS
25622 return 0;
25623}
db9f46a9 25624
db1cf15c
IS
25625_ACEOF
25626if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25627 gcc_cv_math_func_catanf=yes
db1cf15c 25628else
db9f46a9 25629 gcc_cv_math_func_catanf=no
db1cf15c
IS
25630fi
25631rm -f core conftest.err conftest.$ac_objext \
25632 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25633fi
db9f46a9
TG
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25635$as_echo "$gcc_cv_math_func_catanf" >&6; }
25636 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25637
f38a14ca
TG
25638cat >>confdefs.h <<_ACEOF
25639#define HAVE_CATANF 1
25640_ACEOF
db9f46a9
TG
25641
25642 fi
db1cf15c 25643
db1cf15c 25644
db1cf15c 25645
db9f46a9
TG
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25648$as_echo_n "checking for catanh... " >&6; }
22e05272 25649if ${gcc_cv_math_func_catanh+:} false; then :
db1cf15c
IS
25650 $as_echo_n "(cached) " >&6
25651else
db9f46a9 25652 if test x$gcc_no_link = xyes; then
22e05272 25653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25654fi
25655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656/* end confdefs.h. */
25657
db9f46a9
TG
25658#ifdef HAVE_COMPLEX_H
25659#include <complex.h>
db1cf15c 25660#endif
db9f46a9
TG
25661#ifdef HAVE_MATH_H
25662#include <math.h>
25663#endif
25664
25665int (*ptr)() = (int (*)())catanh;
25666
db1cf15c
IS
25667int
25668main ()
25669{
db1cf15c
IS
25670 return 0;
25671}
db9f46a9 25672
db1cf15c
IS
25673_ACEOF
25674if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25675 gcc_cv_math_func_catanh=yes
db1cf15c 25676else
db9f46a9 25677 gcc_cv_math_func_catanh=no
db1cf15c
IS
25678fi
25679rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25681fi
db9f46a9
TG
25682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25683$as_echo "$gcc_cv_math_func_catanh" >&6; }
25684 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25685
f38a14ca
TG
25686cat >>confdefs.h <<_ACEOF
25687#define HAVE_CATANH 1
25688_ACEOF
db9f46a9
TG
25689
25690 fi
25691
db1cf15c 25692
db1cf15c 25693
db1cf15c 25694
db9f46a9
TG
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25696$as_echo_n "checking for catanhf... " >&6; }
22e05272 25697if ${gcc_cv_math_func_catanhf+:} false; then :
db1cf15c
IS
25698 $as_echo_n "(cached) " >&6
25699else
db9f46a9 25700 if test x$gcc_no_link = xyes; then
22e05272 25701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25702fi
25703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25704/* end confdefs.h. */
25705
db9f46a9
TG
25706#ifdef HAVE_COMPLEX_H
25707#include <complex.h>
25708#endif
25709#ifdef HAVE_MATH_H
25710#include <math.h>
db1cf15c 25711#endif
db9f46a9
TG
25712
25713int (*ptr)() = (int (*)())catanhf;
25714
db1cf15c
IS
25715int
25716main ()
25717{
db1cf15c
IS
25718 return 0;
25719}
db9f46a9 25720
db1cf15c
IS
25721_ACEOF
25722if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25723 gcc_cv_math_func_catanhf=yes
db1cf15c 25724else
db9f46a9 25725 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25726fi
25727rm -f core conftest.err conftest.$ac_objext \
25728 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25729fi
db9f46a9
TG
25730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25731$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25732 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25733
f38a14ca
TG
25734cat >>confdefs.h <<_ACEOF
25735#define HAVE_CATANHF 1
25736_ACEOF
db9f46a9
TG
25737
25738 fi
db1cf15c 25739
db1cf15c 25740
db1cf15c 25741
db9f46a9
TG
25742
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25744$as_echo_n "checking for catanhl... " >&6; }
22e05272 25745if ${gcc_cv_math_func_catanhl+:} false; then :
db1cf15c
IS
25746 $as_echo_n "(cached) " >&6
25747else
db9f46a9 25748 if test x$gcc_no_link = xyes; then
22e05272 25749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25750fi
25751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25752/* end confdefs.h. */
25753
db9f46a9
TG
25754#ifdef HAVE_COMPLEX_H
25755#include <complex.h>
db1cf15c 25756#endif
db9f46a9
TG
25757#ifdef HAVE_MATH_H
25758#include <math.h>
25759#endif
25760
25761int (*ptr)() = (int (*)())catanhl;
25762
db1cf15c
IS
25763int
25764main ()
25765{
db1cf15c
IS
25766 return 0;
25767}
db9f46a9 25768
db1cf15c
IS
25769_ACEOF
25770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25771 gcc_cv_math_func_catanhl=yes
db1cf15c 25772else
db9f46a9 25773 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25774fi
25775rm -f core conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25777fi
db9f46a9
TG
25778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25779$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25780 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25781
f38a14ca
TG
25782cat >>confdefs.h <<_ACEOF
25783#define HAVE_CATANHL 1
25784_ACEOF
db1cf15c 25785
db9f46a9 25786 fi
db1cf15c 25787
db1cf15c 25788
db9f46a9
TG
25789
25790
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25792$as_echo_n "checking for catanl... " >&6; }
22e05272 25793if ${gcc_cv_math_func_catanl+:} false; then :
db1cf15c
IS
25794 $as_echo_n "(cached) " >&6
25795else
db9f46a9 25796 if test x$gcc_no_link = xyes; then
22e05272 25797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25798fi
25799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800/* end confdefs.h. */
25801
db9f46a9
TG
25802#ifdef HAVE_COMPLEX_H
25803#include <complex.h>
25804#endif
25805#ifdef HAVE_MATH_H
25806#include <math.h>
db1cf15c 25807#endif
db9f46a9
TG
25808
25809int (*ptr)() = (int (*)())catanl;
25810
db1cf15c
IS
25811int
25812main ()
25813{
db1cf15c
IS
25814 return 0;
25815}
db9f46a9 25816
db1cf15c
IS
25817_ACEOF
25818if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25819 gcc_cv_math_func_catanl=yes
db1cf15c 25820else
db9f46a9 25821 gcc_cv_math_func_catanl=no
db1cf15c
IS
25822fi
25823rm -f core conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25825fi
db9f46a9
TG
25826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25827$as_echo "$gcc_cv_math_func_catanl" >&6; }
25828 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25829
f38a14ca
TG
25830cat >>confdefs.h <<_ACEOF
25831#define HAVE_CATANL 1
25832_ACEOF
db1cf15c 25833
db9f46a9 25834 fi
db1cf15c
IS
25835
25836
6f4977fc
TK
25837# For POWER, check the ieee128 math functions
25838
25839if test "x$have_real_17" = "xyes"; then
25840
a8fea8cd
TK
25841cat >>confdefs.h <<_ACEOF
25842#define HAVE_REAL_17 1
25843_ACEOF
25844
25845
25846
6f4977fc
TK
25847
25848
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5
25850$as_echo_n "checking for __acoshieee128... " >&6; }
25851if ${gcc_cv_math_func___acoshieee128+:} false; then :
25852 $as_echo_n "(cached) " >&6
25853else
25854 if test x$gcc_no_link = xyes; then
25855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25856fi
25857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858/* end confdefs.h. */
25859
25860__float128 __acoshieee128 (__float128);
25861__float128 (*ptr)(__float128) = __acoshieee128;
25862
25863int
25864main ()
25865{
25866 return 0;
25867}
25868
25869_ACEOF
25870if ac_fn_c_try_link "$LINENO"; then :
25871 gcc_cv_math_func___acoshieee128=yes
25872else
25873 gcc_cv_math_func___acoshieee128=no
25874fi
25875rm -f core conftest.err conftest.$ac_objext \
25876 conftest$ac_exeext conftest.$ac_ext
25877fi
25878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5
25879$as_echo "$gcc_cv_math_func___acoshieee128" >&6; }
25880 if test $gcc_cv_math_func___acoshieee128 = yes; then
25881
25882cat >>confdefs.h <<_ACEOF
25883#define HAVE___ACOSHIEEE128 1
25884_ACEOF
25885
25886 fi
25887
25888
25889
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5
25892$as_echo_n "checking for __acosieee128... " >&6; }
25893if ${gcc_cv_math_func___acosieee128+:} false; then :
25894 $as_echo_n "(cached) " >&6
25895else
25896 if test x$gcc_no_link = xyes; then
25897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25898fi
25899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900/* end confdefs.h. */
25901
25902__float128 __acosieee128 (__float128);
25903__float128 (*ptr)(__float128) = __acosieee128;
25904
25905int
25906main ()
25907{
25908 return 0;
25909}
25910
25911_ACEOF
25912if ac_fn_c_try_link "$LINENO"; then :
25913 gcc_cv_math_func___acosieee128=yes
25914else
25915 gcc_cv_math_func___acosieee128=no
25916fi
25917rm -f core conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25919fi
25920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5
25921$as_echo "$gcc_cv_math_func___acosieee128" >&6; }
25922 if test $gcc_cv_math_func___acosieee128 = yes; then
25923
25924cat >>confdefs.h <<_ACEOF
25925#define HAVE___ACOSIEEE128 1
25926_ACEOF
25927
25928 fi
25929
25930
25931
25932
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5
25934$as_echo_n "checking for __asinhieee128... " >&6; }
25935if ${gcc_cv_math_func___asinhieee128+:} false; then :
25936 $as_echo_n "(cached) " >&6
25937else
25938 if test x$gcc_no_link = xyes; then
25939 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25940fi
25941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25942/* end confdefs.h. */
25943
25944__float128 __asinhieee128 (__float128);
25945__float128 (*ptr)(__float128) = __asinhieee128;
25946
25947int
25948main ()
25949{
25950 return 0;
25951}
25952
25953_ACEOF
25954if ac_fn_c_try_link "$LINENO"; then :
25955 gcc_cv_math_func___asinhieee128=yes
25956else
25957 gcc_cv_math_func___asinhieee128=no
25958fi
25959rm -f core conftest.err conftest.$ac_objext \
25960 conftest$ac_exeext conftest.$ac_ext
25961fi
25962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5
25963$as_echo "$gcc_cv_math_func___asinhieee128" >&6; }
25964 if test $gcc_cv_math_func___asinhieee128 = yes; then
25965
25966cat >>confdefs.h <<_ACEOF
25967#define HAVE___ASINHIEEE128 1
25968_ACEOF
25969
25970 fi
25971
25972
25973
25974
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5
25976$as_echo_n "checking for __asinieee128... " >&6; }
25977if ${gcc_cv_math_func___asinieee128+:} false; then :
25978 $as_echo_n "(cached) " >&6
25979else
25980 if test x$gcc_no_link = xyes; then
25981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25982fi
25983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25984/* end confdefs.h. */
25985
25986__float128 __asinieee128 (__float128);
25987__float128 (*ptr)(__float128) = __asinieee128;
25988
25989int
25990main ()
25991{
25992 return 0;
25993}
25994
25995_ACEOF
25996if ac_fn_c_try_link "$LINENO"; then :
25997 gcc_cv_math_func___asinieee128=yes
25998else
25999 gcc_cv_math_func___asinieee128=no
26000fi
26001rm -f core conftest.err conftest.$ac_objext \
26002 conftest$ac_exeext conftest.$ac_ext
26003fi
26004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5
26005$as_echo "$gcc_cv_math_func___asinieee128" >&6; }
26006 if test $gcc_cv_math_func___asinieee128 = yes; then
26007
26008cat >>confdefs.h <<_ACEOF
26009#define HAVE___ASINIEEE128 1
26010_ACEOF
26011
26012 fi
26013
26014
26015
26016
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5
26018$as_echo_n "checking for __atan2ieee128... " >&6; }
26019if ${gcc_cv_math_func___atan2ieee128+:} false; then :
26020 $as_echo_n "(cached) " >&6
26021else
26022 if test x$gcc_no_link = xyes; then
26023 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26024fi
26025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026/* end confdefs.h. */
26027
26028__float128 __atan2ieee128 (__float128);
26029__float128 (*ptr)(__float128) = __atan2ieee128;
26030
26031int
26032main ()
26033{
26034 return 0;
26035}
26036
26037_ACEOF
26038if ac_fn_c_try_link "$LINENO"; then :
26039 gcc_cv_math_func___atan2ieee128=yes
26040else
26041 gcc_cv_math_func___atan2ieee128=no
26042fi
26043rm -f core conftest.err conftest.$ac_objext \
26044 conftest$ac_exeext conftest.$ac_ext
26045fi
26046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5
26047$as_echo "$gcc_cv_math_func___atan2ieee128" >&6; }
26048 if test $gcc_cv_math_func___atan2ieee128 = yes; then
26049
26050cat >>confdefs.h <<_ACEOF
26051#define HAVE___ATAN2IEEE128 1
26052_ACEOF
26053
26054 fi
26055
26056
26057
26058
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5
26060$as_echo_n "checking for __atanhieee128... " >&6; }
26061if ${gcc_cv_math_func___atanhieee128+:} false; then :
26062 $as_echo_n "(cached) " >&6
26063else
26064 if test x$gcc_no_link = xyes; then
26065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26066fi
26067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26068/* end confdefs.h. */
26069
26070__float128 __atanhieee128 (__float128);
26071__float128 (*ptr)(__float128) = __atanhieee128;
26072
26073int
26074main ()
26075{
26076 return 0;
26077}
26078
26079_ACEOF
26080if ac_fn_c_try_link "$LINENO"; then :
26081 gcc_cv_math_func___atanhieee128=yes
26082else
26083 gcc_cv_math_func___atanhieee128=no
26084fi
26085rm -f core conftest.err conftest.$ac_objext \
26086 conftest$ac_exeext conftest.$ac_ext
26087fi
26088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5
26089$as_echo "$gcc_cv_math_func___atanhieee128" >&6; }
26090 if test $gcc_cv_math_func___atanhieee128 = yes; then
26091
26092cat >>confdefs.h <<_ACEOF
26093#define HAVE___ATANHIEEE128 1
26094_ACEOF
26095
26096 fi
26097
26098
26099
26100
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5
26102$as_echo_n "checking for __atanieee128... " >&6; }
26103if ${gcc_cv_math_func___atanieee128+:} false; then :
26104 $as_echo_n "(cached) " >&6
26105else
26106 if test x$gcc_no_link = xyes; then
26107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26108fi
26109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26110/* end confdefs.h. */
26111
26112__float128 __atanieee128 (__float128);
26113__float128 (*ptr)(__float128) = __atanieee128;
26114
26115int
26116main ()
26117{
26118 return 0;
26119}
26120
26121_ACEOF
26122if ac_fn_c_try_link "$LINENO"; then :
26123 gcc_cv_math_func___atanieee128=yes
26124else
26125 gcc_cv_math_func___atanieee128=no
26126fi
26127rm -f core conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
26129fi
26130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5
26131$as_echo "$gcc_cv_math_func___atanieee128" >&6; }
26132 if test $gcc_cv_math_func___atanieee128 = yes; then
26133
26134cat >>confdefs.h <<_ACEOF
26135#define HAVE___ATANIEEE128 1
26136_ACEOF
26137
26138 fi
26139
26140
26141
26142
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5
26144$as_echo_n "checking for __coshieee128... " >&6; }
26145if ${gcc_cv_math_func___coshieee128+:} false; then :
26146 $as_echo_n "(cached) " >&6
26147else
26148 if test x$gcc_no_link = xyes; then
26149 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26150fi
26151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152/* end confdefs.h. */
26153
26154__float128 __coshieee128 (__float128);
26155__float128 (*ptr)(__float128) = __coshieee128;
26156
26157int
26158main ()
26159{
26160 return 0;
26161}
26162
26163_ACEOF
26164if ac_fn_c_try_link "$LINENO"; then :
26165 gcc_cv_math_func___coshieee128=yes
26166else
26167 gcc_cv_math_func___coshieee128=no
26168fi
26169rm -f core conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
26171fi
26172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5
26173$as_echo "$gcc_cv_math_func___coshieee128" >&6; }
26174 if test $gcc_cv_math_func___coshieee128 = yes; then
26175
26176cat >>confdefs.h <<_ACEOF
26177#define HAVE___COSHIEEE128 1
26178_ACEOF
26179
26180 fi
26181
26182
26183
26184
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5
26186$as_echo_n "checking for __cosieee128... " >&6; }
26187if ${gcc_cv_math_func___cosieee128+:} false; then :
26188 $as_echo_n "(cached) " >&6
26189else
26190 if test x$gcc_no_link = xyes; then
26191 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26192fi
26193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194/* end confdefs.h. */
26195
26196__float128 __cosieee128 (__float128);
26197__float128 (*ptr)(__float128) = __cosieee128;
26198
26199int
26200main ()
26201{
26202 return 0;
26203}
26204
26205_ACEOF
26206if ac_fn_c_try_link "$LINENO"; then :
26207 gcc_cv_math_func___cosieee128=yes
26208else
26209 gcc_cv_math_func___cosieee128=no
26210fi
26211rm -f core conftest.err conftest.$ac_objext \
26212 conftest$ac_exeext conftest.$ac_ext
26213fi
26214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5
26215$as_echo "$gcc_cv_math_func___cosieee128" >&6; }
26216 if test $gcc_cv_math_func___cosieee128 = yes; then
26217
26218cat >>confdefs.h <<_ACEOF
26219#define HAVE___COSIEEE128 1
26220_ACEOF
26221
26222 fi
26223
26224
26225
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5
26228$as_echo_n "checking for __erfieee128... " >&6; }
26229if ${gcc_cv_math_func___erfieee128+:} false; then :
26230 $as_echo_n "(cached) " >&6
26231else
26232 if test x$gcc_no_link = xyes; then
26233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26234fi
26235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236/* end confdefs.h. */
26237
26238__float128 __erfieee128 (__float128);
26239__float128 (*ptr)(__float128) = __erfieee128;
26240
26241int
26242main ()
26243{
26244 return 0;
26245}
26246
26247_ACEOF
26248if ac_fn_c_try_link "$LINENO"; then :
26249 gcc_cv_math_func___erfieee128=yes
26250else
26251 gcc_cv_math_func___erfieee128=no
26252fi
26253rm -f core conftest.err conftest.$ac_objext \
26254 conftest$ac_exeext conftest.$ac_ext
26255fi
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5
26257$as_echo "$gcc_cv_math_func___erfieee128" >&6; }
26258 if test $gcc_cv_math_func___erfieee128 = yes; then
26259
26260cat >>confdefs.h <<_ACEOF
26261#define HAVE___ERFIEEE128 1
26262_ACEOF
26263
26264 fi
26265
26266
26267
26268
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5
26270$as_echo_n "checking for __expieee128... " >&6; }
26271if ${gcc_cv_math_func___expieee128+:} false; then :
26272 $as_echo_n "(cached) " >&6
26273else
26274 if test x$gcc_no_link = xyes; then
26275 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26276fi
26277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278/* end confdefs.h. */
26279
26280__float128 __expieee128 (__float128);
26281__float128 (*ptr)(__float128) = __expieee128;
26282
26283int
26284main ()
26285{
26286 return 0;
26287}
26288
26289_ACEOF
26290if ac_fn_c_try_link "$LINENO"; then :
26291 gcc_cv_math_func___expieee128=yes
26292else
26293 gcc_cv_math_func___expieee128=no
26294fi
26295rm -f core conftest.err conftest.$ac_objext \
26296 conftest$ac_exeext conftest.$ac_ext
26297fi
26298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5
26299$as_echo "$gcc_cv_math_func___expieee128" >&6; }
26300 if test $gcc_cv_math_func___expieee128 = yes; then
26301
26302cat >>confdefs.h <<_ACEOF
26303#define HAVE___EXPIEEE128 1
26304_ACEOF
26305
26306 fi
26307
26308
26309
26310
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5
26312$as_echo_n "checking for __fabsieee128... " >&6; }
26313if ${gcc_cv_math_func___fabsieee128+:} false; then :
26314 $as_echo_n "(cached) " >&6
26315else
26316 if test x$gcc_no_link = xyes; then
26317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26318fi
26319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320/* end confdefs.h. */
26321
26322__float128 __fabsieee128 (__float128);
26323__float128 (*ptr)(__float128) = __fabsieee128;
26324
26325int
26326main ()
26327{
26328 return 0;
26329}
26330
26331_ACEOF
26332if ac_fn_c_try_link "$LINENO"; then :
26333 gcc_cv_math_func___fabsieee128=yes
26334else
26335 gcc_cv_math_func___fabsieee128=no
26336fi
26337rm -f core conftest.err conftest.$ac_objext \
26338 conftest$ac_exeext conftest.$ac_ext
26339fi
26340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5
26341$as_echo "$gcc_cv_math_func___fabsieee128" >&6; }
26342 if test $gcc_cv_math_func___fabsieee128 = yes; then
26343
26344cat >>confdefs.h <<_ACEOF
26345#define HAVE___FABSIEEE128 1
26346_ACEOF
26347
26348 fi
26349
26350
26351
26352
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5
26354$as_echo_n "checking for __jnieee128... " >&6; }
26355if ${gcc_cv_math_func___jnieee128+:} false; then :
26356 $as_echo_n "(cached) " >&6
26357else
26358 if test x$gcc_no_link = xyes; then
26359 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26360fi
26361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362/* end confdefs.h. */
26363
26364__float128 __jnieee128 (__float128);
26365__float128 (*ptr)(__float128) = __jnieee128;
26366
26367int
26368main ()
26369{
26370 return 0;
26371}
26372
26373_ACEOF
26374if ac_fn_c_try_link "$LINENO"; then :
26375 gcc_cv_math_func___jnieee128=yes
26376else
26377 gcc_cv_math_func___jnieee128=no
26378fi
26379rm -f core conftest.err conftest.$ac_objext \
26380 conftest$ac_exeext conftest.$ac_ext
26381fi
26382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5
26383$as_echo "$gcc_cv_math_func___jnieee128" >&6; }
26384 if test $gcc_cv_math_func___jnieee128 = yes; then
26385
26386cat >>confdefs.h <<_ACEOF
26387#define HAVE___JNIEEE128 1
26388_ACEOF
26389
26390 fi
26391
26392
26393
26394
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5
26396$as_echo_n "checking for __log10ieee128... " >&6; }
26397if ${gcc_cv_math_func___log10ieee128+:} false; then :
26398 $as_echo_n "(cached) " >&6
26399else
26400 if test x$gcc_no_link = xyes; then
26401 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26402fi
26403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26404/* end confdefs.h. */
26405
26406__float128 __log10ieee128 (__float128);
26407__float128 (*ptr)(__float128) = __log10ieee128;
26408
26409int
26410main ()
26411{
26412 return 0;
26413}
26414
26415_ACEOF
26416if ac_fn_c_try_link "$LINENO"; then :
26417 gcc_cv_math_func___log10ieee128=yes
26418else
26419 gcc_cv_math_func___log10ieee128=no
26420fi
26421rm -f core conftest.err conftest.$ac_objext \
26422 conftest$ac_exeext conftest.$ac_ext
26423fi
26424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5
26425$as_echo "$gcc_cv_math_func___log10ieee128" >&6; }
26426 if test $gcc_cv_math_func___log10ieee128 = yes; then
26427
26428cat >>confdefs.h <<_ACEOF
26429#define HAVE___LOG10IEEE128 1
26430_ACEOF
26431
26432 fi
26433
26434
26435
26436
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5
26438$as_echo_n "checking for __logieee128... " >&6; }
26439if ${gcc_cv_math_func___logieee128+:} false; then :
26440 $as_echo_n "(cached) " >&6
26441else
26442 if test x$gcc_no_link = xyes; then
26443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26444fi
26445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26446/* end confdefs.h. */
26447
26448__float128 __logieee128 (__float128);
26449__float128 (*ptr)(__float128) = __logieee128;
26450
26451int
26452main ()
26453{
26454 return 0;
26455}
26456
26457_ACEOF
26458if ac_fn_c_try_link "$LINENO"; then :
26459 gcc_cv_math_func___logieee128=yes
26460else
26461 gcc_cv_math_func___logieee128=no
26462fi
26463rm -f core conftest.err conftest.$ac_objext \
26464 conftest$ac_exeext conftest.$ac_ext
26465fi
26466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5
26467$as_echo "$gcc_cv_math_func___logieee128" >&6; }
26468 if test $gcc_cv_math_func___logieee128 = yes; then
26469
26470cat >>confdefs.h <<_ACEOF
26471#define HAVE___LOGIEEE128 1
26472_ACEOF
26473
26474 fi
26475
26476
26477
26478
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5
26480$as_echo_n "checking for __powieee128... " >&6; }
26481if ${gcc_cv_math_func___powieee128+:} false; then :
26482 $as_echo_n "(cached) " >&6
26483else
26484 if test x$gcc_no_link = xyes; then
26485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26486fi
26487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488/* end confdefs.h. */
26489
26490__float128 __powieee128 (__float128);
26491__float128 (*ptr)(__float128) = __powieee128;
26492
26493int
26494main ()
26495{
26496 return 0;
26497}
26498
26499_ACEOF
26500if ac_fn_c_try_link "$LINENO"; then :
26501 gcc_cv_math_func___powieee128=yes
26502else
26503 gcc_cv_math_func___powieee128=no
26504fi
26505rm -f core conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
26507fi
26508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5
26509$as_echo "$gcc_cv_math_func___powieee128" >&6; }
26510 if test $gcc_cv_math_func___powieee128 = yes; then
26511
26512cat >>confdefs.h <<_ACEOF
26513#define HAVE___POWIEEE128 1
26514_ACEOF
26515
26516 fi
26517
26518
26519
26520
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5
26522$as_echo_n "checking for __sinhieee128... " >&6; }
26523if ${gcc_cv_math_func___sinhieee128+:} false; then :
26524 $as_echo_n "(cached) " >&6
26525else
26526 if test x$gcc_no_link = xyes; then
26527 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26528fi
26529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530/* end confdefs.h. */
26531
26532__float128 __sinhieee128 (__float128);
26533__float128 (*ptr)(__float128) = __sinhieee128;
26534
26535int
26536main ()
26537{
26538 return 0;
26539}
26540
26541_ACEOF
26542if ac_fn_c_try_link "$LINENO"; then :
26543 gcc_cv_math_func___sinhieee128=yes
26544else
26545 gcc_cv_math_func___sinhieee128=no
26546fi
26547rm -f core conftest.err conftest.$ac_objext \
26548 conftest$ac_exeext conftest.$ac_ext
26549fi
26550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5
26551$as_echo "$gcc_cv_math_func___sinhieee128" >&6; }
26552 if test $gcc_cv_math_func___sinhieee128 = yes; then
26553
26554cat >>confdefs.h <<_ACEOF
26555#define HAVE___SINHIEEE128 1
26556_ACEOF
26557
26558 fi
26559
26560
26561
26562
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5
26564$as_echo_n "checking for __sinieee128... " >&6; }
26565if ${gcc_cv_math_func___sinieee128+:} false; then :
26566 $as_echo_n "(cached) " >&6
26567else
26568 if test x$gcc_no_link = xyes; then
26569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26570fi
26571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572/* end confdefs.h. */
26573
26574__float128 __sinieee128 (__float128);
26575__float128 (*ptr)(__float128) = __sinieee128;
26576
26577int
26578main ()
26579{
26580 return 0;
26581}
26582
26583_ACEOF
26584if ac_fn_c_try_link "$LINENO"; then :
26585 gcc_cv_math_func___sinieee128=yes
26586else
26587 gcc_cv_math_func___sinieee128=no
26588fi
26589rm -f core conftest.err conftest.$ac_objext \
26590 conftest$ac_exeext conftest.$ac_ext
26591fi
26592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5
26593$as_echo "$gcc_cv_math_func___sinieee128" >&6; }
26594 if test $gcc_cv_math_func___sinieee128 = yes; then
26595
26596cat >>confdefs.h <<_ACEOF
26597#define HAVE___SINIEEE128 1
26598_ACEOF
26599
26600 fi
26601
26602
26603
26604
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5
26606$as_echo_n "checking for __sqrtieee128... " >&6; }
26607if ${gcc_cv_math_func___sqrtieee128+:} false; then :
26608 $as_echo_n "(cached) " >&6
26609else
26610 if test x$gcc_no_link = xyes; then
26611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26612fi
26613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26614/* end confdefs.h. */
26615
26616__float128 __sqrtieee128 (__float128);
26617__float128 (*ptr)(__float128) = __sqrtieee128;
26618
26619int
26620main ()
26621{
26622 return 0;
26623}
26624
26625_ACEOF
26626if ac_fn_c_try_link "$LINENO"; then :
26627 gcc_cv_math_func___sqrtieee128=yes
26628else
26629 gcc_cv_math_func___sqrtieee128=no
26630fi
26631rm -f core conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
26633fi
26634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5
26635$as_echo "$gcc_cv_math_func___sqrtieee128" >&6; }
26636 if test $gcc_cv_math_func___sqrtieee128 = yes; then
26637
26638cat >>confdefs.h <<_ACEOF
26639#define HAVE___SQRTIEEE128 1
26640_ACEOF
26641
26642 fi
26643
26644
26645
26646
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5
26648$as_echo_n "checking for __tanhieee128... " >&6; }
26649if ${gcc_cv_math_func___tanhieee128+:} false; then :
26650 $as_echo_n "(cached) " >&6
26651else
26652 if test x$gcc_no_link = xyes; then
26653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26654fi
26655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26656/* end confdefs.h. */
26657
26658__float128 __tanhieee128 (__float128);
26659__float128 (*ptr)(__float128) = __tanhieee128;
26660
26661int
26662main ()
26663{
26664 return 0;
26665}
26666
26667_ACEOF
26668if ac_fn_c_try_link "$LINENO"; then :
26669 gcc_cv_math_func___tanhieee128=yes
26670else
26671 gcc_cv_math_func___tanhieee128=no
26672fi
26673rm -f core conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
26675fi
26676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5
26677$as_echo "$gcc_cv_math_func___tanhieee128" >&6; }
26678 if test $gcc_cv_math_func___tanhieee128 = yes; then
26679
26680cat >>confdefs.h <<_ACEOF
26681#define HAVE___TANHIEEE128 1
26682_ACEOF
26683
26684 fi
26685
26686
26687
26688
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5
26690$as_echo_n "checking for __tanieee128... " >&6; }
26691if ${gcc_cv_math_func___tanieee128+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693else
26694 if test x$gcc_no_link = xyes; then
26695 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26696fi
26697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26698/* end confdefs.h. */
26699
26700__float128 __tanieee128 (__float128);
26701__float128 (*ptr)(__float128) = __tanieee128;
26702
26703int
26704main ()
26705{
26706 return 0;
26707}
26708
26709_ACEOF
26710if ac_fn_c_try_link "$LINENO"; then :
26711 gcc_cv_math_func___tanieee128=yes
26712else
26713 gcc_cv_math_func___tanieee128=no
26714fi
26715rm -f core conftest.err conftest.$ac_objext \
26716 conftest$ac_exeext conftest.$ac_ext
26717fi
26718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5
26719$as_echo "$gcc_cv_math_func___tanieee128" >&6; }
26720 if test $gcc_cv_math_func___tanieee128 = yes; then
26721
26722cat >>confdefs.h <<_ACEOF
26723#define HAVE___TANIEEE128 1
26724_ACEOF
26725
26726 fi
26727
26728
26729
26730
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5
26732$as_echo_n "checking for __ynieee128... " >&6; }
26733if ${gcc_cv_math_func___ynieee128+:} false; then :
26734 $as_echo_n "(cached) " >&6
26735else
26736 if test x$gcc_no_link = xyes; then
26737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26738fi
26739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740/* end confdefs.h. */
26741
26742__float128 __ynieee128 (__float128);
26743__float128 (*ptr)(__float128) = __ynieee128;
26744
26745int
26746main ()
26747{
26748 return 0;
26749}
26750
26751_ACEOF
26752if ac_fn_c_try_link "$LINENO"; then :
26753 gcc_cv_math_func___ynieee128=yes
26754else
26755 gcc_cv_math_func___ynieee128=no
26756fi
26757rm -f core conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
26759fi
26760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5
26761$as_echo "$gcc_cv_math_func___ynieee128" >&6; }
26762 if test $gcc_cv_math_func___ynieee128 = yes; then
26763
26764cat >>confdefs.h <<_ACEOF
26765#define HAVE___YNIEEE128 1
26766_ACEOF
26767
26768 fi
26769
26770fi
26771
118ea208 26772# On AIX, clog is present in libm as __clog
5213506e
RW
26773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
26774$as_echo_n "checking for __clog in -lm... " >&6; }
22e05272 26775if ${ac_cv_lib_m___clog+:} false; then :
5213506e 26776 $as_echo_n "(cached) " >&6
e097b4f1
DE
26777else
26778 ac_check_lib_save_LIBS=$LIBS
26779LIBS="-lm $LIBS"
26780if test x$gcc_no_link = xyes; then
22e05272 26781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 26782fi
5213506e 26783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
26784/* end confdefs.h. */
26785
5213506e
RW
26786/* Override any GCC internal prototype to avoid an error.
26787 Use char because int might match the return type of a GCC
26788 builtin and then its argument prototype would still apply. */
e097b4f1
DE
26789#ifdef __cplusplus
26790extern "C"
26791#endif
e097b4f1
DE
26792char __clog ();
26793int
26794main ()
26795{
5213506e 26796return __clog ();
e097b4f1
DE
26797 ;
26798 return 0;
26799}
26800_ACEOF
5213506e 26801if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
26802 ac_cv_lib_m___clog=yes
26803else
5213506e 26804 ac_cv_lib_m___clog=no
e097b4f1 26805fi
5213506e
RW
26806rm -f core conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
26808LIBS=$ac_check_lib_save_LIBS
26809fi
5213506e
RW
26810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
26811$as_echo "$ac_cv_lib_m___clog" >&6; }
22e05272 26812if test "x$ac_cv_lib_m___clog" = xyes; then :
e097b4f1 26813
5213506e 26814$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
26815
26816fi
26817
26818
1868599f
JJ
26819
26820
26821if test $gcc_cv_math_func_copysign = no; then
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
26823$as_echo_n "checking for inline __builtin_copysign... " >&6; }
26824if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
26825 $as_echo_n "(cached) " >&6
26826else
26827 if test x$gcc_no_link = xyes; then
26828 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26829fi
26830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26831/* end confdefs.h. */
26832
26833double
26834copysign_fallback (double x, double y)
26835{
26836 return __builtin_copysign (x, y);
26837}
26838
26839int
26840main ()
26841{
26842 return 0;
26843}
26844
26845_ACEOF
26846if ac_fn_c_try_link "$LINENO"; then :
26847 gcc_cv_math_inline_builtin_copysign=yes
26848else
26849 gcc_cv_math_inline_builtin_copysign=no
26850fi
26851rm -f core conftest.err conftest.$ac_objext \
26852 conftest$ac_exeext conftest.$ac_ext
26853fi
26854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
26855$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
26856 if test $gcc_cv_math_inline_builtin_copysign = yes; then
26857
26858cat >>confdefs.h <<_ACEOF
26859#define HAVE_INLINE_BUILTIN_COPYSIGN 1
26860_ACEOF
26861
26862 fi
26863fi
26864
26865
26866if test $gcc_cv_math_func_copysignl = no; then
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
26868$as_echo_n "checking for inline __builtin_copysignl... " >&6; }
26869if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
26870 $as_echo_n "(cached) " >&6
26871else
26872 if test x$gcc_no_link = xyes; then
26873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26874fi
26875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876/* end confdefs.h. */
26877
26878long double
26879copysignl_fallback (long double x, long double y)
26880{
26881 return __builtin_copysignl (x, y);
26882}
26883
26884int
26885main ()
26886{
26887 return 0;
26888}
26889
26890_ACEOF
26891if ac_fn_c_try_link "$LINENO"; then :
26892 gcc_cv_math_inline_builtin_copysignl=yes
26893else
26894 gcc_cv_math_inline_builtin_copysignl=no
26895fi
26896rm -f core conftest.err conftest.$ac_objext \
26897 conftest$ac_exeext conftest.$ac_ext
26898fi
26899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
26900$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
26901 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
26902
26903cat >>confdefs.h <<_ACEOF
26904#define HAVE_INLINE_BUILTIN_COPYSIGNL 1
26905_ACEOF
26906
26907 fi
26908fi
26909
26910
26911if test $gcc_cv_math_func_fabs = no; then
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
26913$as_echo_n "checking for inline __builtin_fabs... " >&6; }
26914if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
26915 $as_echo_n "(cached) " >&6
26916else
26917 if test x$gcc_no_link = xyes; then
26918 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26919fi
26920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921/* end confdefs.h. */
26922
26923double
26924fabs_fallback (double x)
26925{
26926 return __builtin_fabs (x);
26927}
26928
26929int
26930main ()
26931{
26932 return 0;
26933}
26934
26935_ACEOF
26936if ac_fn_c_try_link "$LINENO"; then :
26937 gcc_cv_math_inline_builtin_fabs=yes
26938else
26939 gcc_cv_math_inline_builtin_fabs=no
26940fi
26941rm -f core conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
26943fi
26944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
26945$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
26946 if test $gcc_cv_math_inline_builtin_fabs = yes; then
26947
26948cat >>confdefs.h <<_ACEOF
26949#define HAVE_INLINE_BUILTIN_FABS 1
26950_ACEOF
26951
26952 fi
26953fi
26954
26955
26956if test $gcc_cv_math_func_fabsl = no; then
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
26958$as_echo_n "checking for inline __builtin_fabsl... " >&6; }
26959if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
26960 $as_echo_n "(cached) " >&6
26961else
26962 if test x$gcc_no_link = xyes; then
26963 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26964fi
26965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26966/* end confdefs.h. */
26967
26968long double
26969fabsl_fallback (long double x)
26970{
26971 return __builtin_fabsl (x);
26972}
26973
26974int
26975main ()
26976{
26977 return 0;
26978}
26979
26980_ACEOF
26981if ac_fn_c_try_link "$LINENO"; then :
26982 gcc_cv_math_inline_builtin_fabsl=yes
26983else
26984 gcc_cv_math_inline_builtin_fabsl=no
26985fi
26986rm -f core conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
26988fi
26989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
26990$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
26991 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
26992
26993cat >>confdefs.h <<_ACEOF
26994#define HAVE_INLINE_BUILTIN_FABSL 1
26995_ACEOF
26996
26997 fi
26998fi
26999
ad238e4f
FXC
27000# Check whether the system has a working stat()
27001
5213506e
RW
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
27003$as_echo_n "checking whether the target stat is reliable... " >&6; }
22e05272 27004if ${libgfor_cv_have_working_stat+:} false; then :
5213506e 27005 $as_echo_n "(cached) " >&6
ad238e4f
FXC
27006else
27007
5213506e 27008 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
27009
27010case "${target}" in
6d26724a
RW
27011 *mingw*) libgfor_cv_have_working_stat=no ;;
27012 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
27013esac
27014else
5213506e 27015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
27016/* end confdefs.h. */
27017
27018#include <stdio.h>
27019#include <sys/types.h>
27020#include <sys/stat.h>
27021#include <unistd.h>
27022
27023int main ()
27024{
27025 FILE *f, *g;
27026 struct stat st1, st2;
27027
27028 f = fopen ("foo", "w");
27029 g = fopen ("bar", "w");
27030 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
27031 return 1;
27032 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
27033 return 1;
27034 fclose(f);
27035 fclose(g);
27036 return 0;
27037}
27038_ACEOF
5213506e 27039if ac_fn_c_try_run "$LINENO"; then :
6d26724a 27040 libgfor_cv_have_working_stat=yes
ad238e4f 27041else
5213506e 27042 libgfor_cv_have_working_stat=no
ad238e4f 27043fi
5213506e
RW
27044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27045 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 27046fi
5213506e 27047
ad238e4f 27048fi
5213506e
RW
27049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
27050$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 27051if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 27052
5213506e 27053$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
27054
27055fi
27056
db8092dc
FXC
27057# Check whether __mingw_snprintf() is present
27058
5213506e
RW
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
27060$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
22e05272 27061if ${libgfor_cv_have_mingw_snprintf+:} false; then :
5213506e 27062 $as_echo_n "(cached) " >&6
db8092dc
FXC
27063else
27064
27065 if test x$gcc_no_link = xyes; then
22e05272 27066 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 27067fi
5213506e 27068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
27069/* end confdefs.h. */
27070
27071#include <stdio.h>
27072extern int __mingw_snprintf (char *, size_t, const char *, ...);
27073
27074int
27075main ()
27076{
27077
27078__mingw_snprintf (NULL, 0, "%d\n", 1);
27079
27080 ;
27081 return 0;
27082}
27083_ACEOF
5213506e 27084if ac_fn_c_try_link "$LINENO"; then :
6d26724a 27085 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 27086else
5213506e 27087 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 27088fi
5213506e
RW
27089rm -f core conftest.err conftest.$ac_objext \
27090 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
27091
27092fi
5213506e
RW
27093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
27094$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 27095 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 27096
5213506e 27097$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
27098
27099 fi
27100
27101
87e6d9dc
TB
27102# Check whether libquadmath should be used
27103# Check whether --enable-libquadmath-support was given.
27104if test "${enable_libquadmath_support+set}" = set; then :
27105 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27106else
27107 ENABLE_LIBQUADMATH_SUPPORT=yes
27108fi
27109
27110enable_libquadmath_support=
27111if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
27112 enable_libquadmath_support=no
27113fi
27114
27115# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
27116
27117 LIBQUADSPEC=
87e6d9dc
TB
27118
27119 if test "x$enable_libquadmath_support" != xno; then
27120
1ec601bf
FXC
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
27122$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
22e05272 27123if ${libgfor_cv_have_float128+:} false; then :
1ec601bf
FXC
27124 $as_echo_n "(cached) " >&6
27125else
27126
69eb61d4
TB
27127 if test x$gcc_no_link = xyes; then
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
27129/* end confdefs.h. */
27130
69eb61d4
TB
27131 typedef _Complex float __attribute__((mode(TC))) __complex128;
27132
27133 __float128 foo (__float128 x)
27134 {
27135
27136 __complex128 z1, z2;
27137
27138 z1 = x;
27139 z2 = x / 7.Q;
27140 z2 /= z1;
27141
27142 return (__float128) z2;
27143 }
27144
27145 __float128 bar (__float128 x)
27146 {
27147 return x * __builtin_huge_valq ();
27148 }
1ec601bf
FXC
27149
27150int
27151main ()
27152{
27153
69eb61d4
TB
27154 foo (1.2Q);
27155 bar (1.2Q);
1ec601bf 27156
69eb61d4
TB
27157 ;
27158 return 0;
27159}
27160_ACEOF
27161if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 27162
69eb61d4 27163 libgfor_cv_have_float128=yes
1ec601bf 27164
69eb61d4
TB
27165else
27166
27167 libgfor_cv_have_float128=no
27168
27169fi
27170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171else
27172 if test x$gcc_no_link = xyes; then
22e05272 27173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
69eb61d4
TB
27174fi
27175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27176/* end confdefs.h. */
27177
27178 typedef _Complex float __attribute__((mode(TC))) __complex128;
27179
27180 __float128 foo (__float128 x)
27181 {
27182
27183 __complex128 z1, z2;
27184
27185 z1 = x;
27186 z2 = x / 7.Q;
27187 z2 /= z1;
27188
27189 return (__float128) z2;
27190 }
27191
27192 __float128 bar (__float128 x)
27193 {
27194 return x * __builtin_huge_valq ();
27195 }
27196
27197int
27198main ()
27199{
27200
27201 foo (1.2Q);
27202 bar (1.2Q);
1ec601bf
FXC
27203
27204 ;
27205 return 0;
27206}
27207_ACEOF
27208if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
27209
27210 libgfor_cv_have_float128=yes
27211
1ec601bf 27212else
69eb61d4
TB
27213
27214 libgfor_cv_have_float128=no
27215
1ec601bf
FXC
27216fi
27217rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
69eb61d4 27219fi
1ec601bf
FXC
27220fi
27221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
27222$as_echo "$libgfor_cv_have_float128" >&6; }
27223
27224 if test "x$libgfor_cv_have_float128" = xyes; then
27225
27226$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
27227
27228
27229 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
27231$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
22e05272 27232if ${libgfor_cv_have_as_needed+:} false; then :
1ec601bf
FXC
27233 $as_echo_n "(cached) " >&6
27234else
27235
828012a5
RO
27236 # Test for native Solaris options first.
27237 # No whitespace after -z to pass it through -Wl.
27238 libgfor_cv_as_needed_option="-zignore"
27239 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 27240 save_LDFLAGS="$LDFLAGS"
828012a5 27241 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
27242 libgfor_cv_have_as_needed=no
27243
27244ac_c_werror_flag=yes
27245 if test x$gcc_no_link = xyes; then
22e05272 27246 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf
FXC
27247fi
27248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27249/* end confdefs.h. */
27250
27251int
27252main ()
27253{
27254
27255 ;
27256 return 0;
27257}
27258_ACEOF
27259if ac_fn_c_try_link "$LINENO"; then :
27260 libgfor_cv_have_as_needed=yes
27261else
27262 libgfor_cv_have_as_needed=no
27263fi
27264rm -f core conftest.err conftest.$ac_objext \
27265 conftest$ac_exeext conftest.$ac_ext
27266 LDFLAGS="$save_LDFLAGS"
828012a5
RO
27267 if test "x$libgfor_cv_have_as_needed" = xno; then
27268 libgfor_cv_as_needed_option="--as-needed"
27269 libgfor_cv_no_as_needed_option="--no-as-needed"
27270 save_LDFLAGS="$LDFLAGS"
27271 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
27272 libgfor_cv_have_as_needed=no
27273
27274ac_c_werror_flag=yes
27275 if test x$gcc_no_link = xyes; then
22e05272 27276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
828012a5
RO
27277fi
27278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27279/* end confdefs.h. */
27280
27281int
27282main ()
27283{
27284
27285 ;
27286 return 0;
27287}
27288_ACEOF
27289if ac_fn_c_try_link "$LINENO"; then :
27290 libgfor_cv_have_as_needed=yes
27291else
27292 libgfor_cv_have_as_needed=no
27293fi
27294rm -f core conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
27296 LDFLAGS="$save_LDFLAGS"
27297 fi
1ec601bf
FXC
27298 ac_c_werror_flag=$ac_xsave_c_werror_flag
27299
27300fi
27301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
27302$as_echo "$libgfor_cv_have_as_needed" >&6; }
27303
27304 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 27305 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
27306 else
27307 LIBQUADSPEC="-lquadmath"
27308 fi
27309 if test -f ../libquadmath/libquadmath.la; then
27310 LIBQUADLIB=../libquadmath/libquadmath.la
27311 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
27312 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
27313 else
27314 LIBQUADLIB="-lquadmath"
27315 LIBQUADLIB_DEP=
27316 LIBQUADINCLUDE=
27317 fi
27318 fi
87e6d9dc
TB
27319 else
27320 # for --disable-quadmath
27321 LIBQUADLIB=
27322 LIBQUADLIB_DEP=
27323 LIBQUADINCLUDE=
27324 fi
1ec601bf
FXC
27325
27326
27327
27328
27329
27330
27331 if test "x$libgfor_cv_have_float128" = xyes; then
27332 LIBGFOR_BUILD_QUAD_TRUE=
27333 LIBGFOR_BUILD_QUAD_FALSE='#'
27334else
27335 LIBGFOR_BUILD_QUAD_TRUE='#'
27336 LIBGFOR_BUILD_QUAD_FALSE=
27337fi
27338
27339
27340
944b8b35 27341# Check for GNU libc feenableexcept
5213506e
RW
27342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
27343$as_echo_n "checking for feenableexcept in -lm... " >&6; }
22e05272 27344if ${ac_cv_lib_m_feenableexcept+:} false; then :
5213506e 27345 $as_echo_n "(cached) " >&6
944b8b35
FXC
27346else
27347 ac_check_lib_save_LIBS=$LIBS
27348LIBS="-lm $LIBS"
27349if test x$gcc_no_link = xyes; then
22e05272 27350 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 27351fi
5213506e 27352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
27353/* end confdefs.h. */
27354
5213506e
RW
27355/* Override any GCC internal prototype to avoid an error.
27356 Use char because int might match the return type of a GCC
27357 builtin and then its argument prototype would still apply. */
944b8b35
FXC
27358#ifdef __cplusplus
27359extern "C"
27360#endif
944b8b35
FXC
27361char feenableexcept ();
27362int
27363main ()
27364{
5213506e 27365return feenableexcept ();
944b8b35
FXC
27366 ;
27367 return 0;
27368}
27369_ACEOF
5213506e 27370if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
27371 ac_cv_lib_m_feenableexcept=yes
27372else
5213506e 27373 ac_cv_lib_m_feenableexcept=no
944b8b35 27374fi
5213506e
RW
27375rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
27377LIBS=$ac_check_lib_save_LIBS
27378fi
5213506e
RW
27379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
27380$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
22e05272 27381if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
944b8b35 27382 have_feenableexcept=yes
5213506e 27383$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
27384
27385fi
27386
3b14f664 27387
5c30094f 27388# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
27389# pull that in if it still doesn't give us the function we want. This
27390# test is copied from libgomp, and modified to not link in -lrt as
27391# libgfortran calls clock_gettime via a weak reference if it's found
27392# in librt.
deb9dd74 27393if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
27395$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 27396if ${ac_cv_lib_rt_clock_gettime+:} false; then :
b6e7a3d1
JB
27397 $as_echo_n "(cached) " >&6
27398else
27399 ac_check_lib_save_LIBS=$LIBS
27400LIBS="-lrt $LIBS"
27401if test x$gcc_no_link = xyes; then
22e05272 27402 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b6e7a3d1
JB
27403fi
27404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27405/* end confdefs.h. */
27406
27407/* Override any GCC internal prototype to avoid an error.
27408 Use char because int might match the return type of a GCC
27409 builtin and then its argument prototype would still apply. */
27410#ifdef __cplusplus
27411extern "C"
27412#endif
27413char clock_gettime ();
27414int
27415main ()
27416{
27417return clock_gettime ();
27418 ;
27419 return 0;
27420}
27421_ACEOF
27422if ac_fn_c_try_link "$LINENO"; then :
27423 ac_cv_lib_rt_clock_gettime=yes
27424else
27425 ac_cv_lib_rt_clock_gettime=no
27426fi
27427rm -f core conftest.err conftest.$ac_objext \
27428 conftest$ac_exeext conftest.$ac_ext
27429LIBS=$ac_check_lib_save_LIBS
27430fi
27431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
27432$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 27433if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
b6e7a3d1 27434
2aadeae2 27435$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
27436
27437fi
27438
27439fi
27440
5213506e 27441# Check for SysV fpsetmask
3b14f664 27442
5213506e
RW
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
27444$as_echo_n "checking whether fpsetmask is present... " >&6; }
22e05272 27445if ${libgfor_cv_have_fpsetmask+:} false; then :
5213506e
RW
27446 $as_echo_n "(cached) " >&6
27447else
3b14f664 27448
5213506e 27449 if test x$gcc_no_link = xyes; then
22e05272 27450 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
27451fi
27452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27453/* end confdefs.h. */
3b14f664 27454
5213506e
RW
27455#if HAVE_FLOATINGPOINT_H
27456# include <floatingpoint.h>
27457#endif /* HAVE_FLOATINGPOINT_H */
27458#if HAVE_IEEEFP_H
27459# include <ieeefp.h>
27460#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
27461int
27462main ()
27463{
5213506e 27464fpsetmask(0);
3b14f664
FXC
27465 ;
27466 return 0;
27467}
27468_ACEOF
5213506e
RW
27469if ac_fn_c_try_link "$LINENO"; then :
27470 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 27471else
5213506e
RW
27472 eval "libgfor_cv_have_fpsetmask=no"
27473fi
27474rm -f core conftest.err conftest.$ac_objext \
27475 conftest$ac_exeext conftest.$ac_ext
3b14f664 27476
3b14f664 27477fi
5213506e
RW
27478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
27479$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
27480 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 27481 have_fpsetmask=yes
5213506e
RW
27482
27483$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
27484
27485 fi
27486
6faf4751 27487ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 27488#ifdef HAVE_IEEEFP_H
6faf4751 27489#include <ieeefp.h>
67c4c164 27490#endif
6faf4751
FXC
27491#include <math.h>
27492
7ae346c3 27493"
22e05272 27494if test "x$ac_cv_type_fp_except" = xyes; then :
7ae346c3
TB
27495
27496cat >>confdefs.h <<_ACEOF
27497#define HAVE_FP_EXCEPT 1
27498_ACEOF
27499
27500
27501fi
6faf4751 27502ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 27503#ifdef HAVE_IEEEFP_H
6faf4751 27504#include <ieeefp.h>
67c4c164 27505#endif
6faf4751
FXC
27506#include <math.h>
27507
7ae346c3 27508"
22e05272 27509if test "x$ac_cv_type_fp_except_t" = xyes; then :
7ae346c3
TB
27510
27511cat >>confdefs.h <<_ACEOF
27512#define HAVE_FP_EXCEPT_T 1
27513_ACEOF
27514
27515
82a4f54c
TB
27516fi
27517
6faf4751 27518ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 27519#ifdef HAVE_IEEEFP_H
6faf4751 27520#include <ieeefp.h>
67c4c164 27521#endif
6faf4751
FXC
27522#include <math.h>
27523
82a4f54c 27524"
22e05272 27525if test "x$ac_cv_type_fp_rnd" = xyes; then :
82a4f54c
TB
27526
27527cat >>confdefs.h <<_ACEOF
27528#define HAVE_FP_RND 1
27529_ACEOF
27530
27531
27532fi
6faf4751 27533ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 27534#ifdef HAVE_IEEEFP_H
6faf4751 27535#include <ieeefp.h>
67c4c164 27536#endif
6faf4751
FXC
27537#include <math.h>
27538
82a4f54c 27539"
22e05272 27540if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
82a4f54c
TB
27541
27542cat >>confdefs.h <<_ACEOF
27543#define HAVE_FP_RND_T 1
27544_ACEOF
27545
27546
7ae346c3
TB
27547fi
27548
5213506e 27549
de51fc1b
RO
27550# Check whether we have fpsetsticky or fpresetsticky
27551ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
22e05272 27552if test "x$ac_cv_func_fpsetsticky" = xyes; then :
de51fc1b
RO
27553 have_fpsetsticky=yes
27554$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
27555
27556fi
27557
27558ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
22e05272 27559if test "x$ac_cv_func_fpresetsticky" = xyes; then :
de51fc1b
RO
27560 have_fpresetsticky=yes
27561$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
27562
27563fi
27564
27565
5213506e
RW
27566# Check for AIX fp_trap and fp_enable
27567ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
22e05272 27568if test "x$ac_cv_func_fp_trap" = xyes; then :
5213506e
RW
27569 have_fp_trap=yes
27570$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
27571
3b14f664 27572fi
5213506e
RW
27573
27574ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
22e05272 27575if test "x$ac_cv_func_fp_enable" = xyes; then :
3b14f664 27576 have_fp_enable=yes
5213506e 27577$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
27578
27579fi
27580
27581
7b32a8f6
UB
27582# Check if _SOFT_FLOAT is defined
27583
27584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
27585$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
22e05272 27586if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
7b32a8f6
UB
27587 $as_echo_n "(cached) " >&6
27588else
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590/* end confdefs.h. */
27591
27592int
27593main ()
27594{
27595
27596 #ifdef _SOFT_FLOAT
27597 int ok;
27598 #else
27599 choke me
27600 #endif
27601
27602 ;
27603 return 0;
27604}
27605_ACEOF
27606if ac_fn_c_try_compile "$LINENO"; then :
27607 ac_cv_defined__SOFT_FLOAT=yes
27608else
27609 ac_cv_defined__SOFT_FLOAT=no
27610fi
27611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612fi
27613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
27614$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
27615if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
27616 have_soft_float=yes
27617fi
27618
944b8b35
FXC
27619# Runs configure.host to set up necessary host-dependent shell variables.
27620# We then display a message about it, and propagate them through the
27621# build chain.
27622. ${srcdir}/configure.host
5213506e
RW
27623{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
27624$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
27625{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
27626$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
27627FPU_HOST_HEADER=config/${fpu_host}.h
27628
27629
8b198102
FXC
27630# Whether we will build the IEEE modules
27631 if test x${ieee_support} = xyes; then
27632 IEEE_SUPPORT_TRUE=
27633 IEEE_SUPPORT_FALSE='#'
27634else
27635 IEEE_SUPPORT_TRUE='#'
27636 IEEE_SUPPORT_FALSE=
27637fi
27638
27639
27640
9fc77574
KK
27641# Some targets require additional compiler options for IEEE compatibility.
27642IEEE_FLAGS="${ieee_flags}"
27643
27644
47ddb895
DE
27645# Conditionalize the makefile for this target machine.
27646tmake_file_=
27647for f in ${tmake_file}
27648do
27649 if test -f ${srcdir}/config/$f
27650 then
27651 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
27652 fi
27653done
27654tmake_file="${tmake_file_}"
27655
27656
23e6d4a5
JB
27657
27658# Check for POSIX getpwuid_r
27659#
27660# There are two versions of getpwuid_r, the POSIX one with 5
27661# arguments, and another one with 4 arguments used by at least HP-UX
27662# 10.2.
27663if test "$ac_cv_func_getpwuid_r" = "yes"; then
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
27665$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
22e05272 27666if ${libgfor_cv_posix_getpwuid_r+:} false; then :
23e6d4a5
JB
27667 $as_echo_n "(cached) " >&6
27668else
27669
27670 if test x$gcc_no_link = xyes; then
22e05272 27671 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23e6d4a5
JB
27672fi
27673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27674/* end confdefs.h. */
27675
27676#include <stdio.h>
27677#include <sys/types.h>
27678#include <pwd.h>
27679int
27680main ()
27681{
27682
27683 getpwuid_r(0, NULL, NULL, 0, NULL);
27684
27685 ;
27686 return 0;
27687}
27688_ACEOF
27689if ac_fn_c_try_link "$LINENO"; then :
27690 libgfor_cv_posix_getpwuid_r="yes"
27691else
27692 libgfor_cv_posix_getpwuid_r="no"
27693fi
27694rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
27696fi
27697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
27698$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
27699fi
27700if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
27701
27702$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
27703
27704fi
27705
27706
7d7b8bfe
RH
27707# Check out attribute support.
27708
5213506e
RW
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
27710$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 27711if ${libgfor_cv_have_attribute_visibility+:} false; then :
5213506e 27712 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
27713else
27714
27715 save_CFLAGS="$CFLAGS"
27716 CFLAGS="$CFLAGS -Werror"
5213506e 27717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
27718/* end confdefs.h. */
27719void __attribute__((visibility("hidden"))) foo(void) { }
27720int
27721main ()
27722{
27723
27724 ;
27725 return 0;
27726}
27727_ACEOF
5213506e 27728if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 27729 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 27730else
5213506e 27731 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 27732fi
5213506e 27733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
27734 CFLAGS="$save_CFLAGS"
27735fi
5213506e
RW
27736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
27737$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 27738 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 27739
5213506e 27740$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
27741
27742 fi
27743
5213506e
RW
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
27745$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 27746if ${libgfor_cv_have_attribute_alias+:} false; then :
5213506e 27747 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
27748else
27749
f02d008e 27750 if test x$gcc_no_link = xyes; then
22e05272 27751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 27752fi
5213506e 27753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
27754/* end confdefs.h. */
27755
7d7b8bfe 27756void foo(void) { }
16a314a9 27757extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
27758int
27759main ()
27760{
27761bar();
27762 ;
27763 return 0;
27764}
27765_ACEOF
5213506e 27766if ac_fn_c_try_link "$LINENO"; then :
6d26724a 27767 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 27768else
5213506e 27769 libgfor_cv_have_attribute_alias=no
7d7b8bfe 27770fi
5213506e
RW
27771rm -f core conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 27773fi
5213506e
RW
27774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
27775$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 27776 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 27777
5213506e 27778$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
27779
27780 fi
27781
0536d5b3 27782# Check out atomic builtins support.
5e805e44 27783
0536d5b3
JB
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
27785$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
27786if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
5213506e 27787 $as_echo_n "(cached) " >&6
5e805e44
JJ
27788else
27789
27790 if test x$gcc_no_link = xyes; then
22e05272 27791 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 27792fi
5213506e 27793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
27794/* end confdefs.h. */
27795int foovar = 0;
27796int
27797main ()
27798{
27799
0536d5b3
JB
27800if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
27801if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
5e805e44
JJ
27802 ;
27803 return 0;
27804}
27805_ACEOF
5213506e 27806if ac_fn_c_try_link "$LINENO"; then :
0536d5b3 27807 libgfor_cv_have_atomic_fetch_add=yes
5e805e44 27808else
0536d5b3 27809 libgfor_cv_have_atomic_fetch_add=no
5e805e44 27810fi
5213506e
RW
27811rm -f core conftest.err conftest.$ac_objext \
27812 conftest$ac_exeext conftest.$ac_ext
5e805e44 27813fi
0536d5b3
JB
27814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
27815$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
27816 if test $libgfor_cv_have_atomic_fetch_add = yes; then
5e805e44 27817
0536d5b3 27818$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
5e805e44
JJ
27819
27820 fi
27821
6a822a74
FXC
27822# Check out #pragma weak.
27823
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
27825$as_echo_n "checking whether pragma weak works... " >&6; }
22e05272 27826if ${libgfor_cv_have_pragma_weak+:} false; then :
6a822a74
FXC
27827 $as_echo_n "(cached) " >&6
27828else
27829
27830 gfor_save_CFLAGS="$CFLAGS"
27831 CFLAGS="$CFLAGS -Wunknown-pragmas"
27832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833/* end confdefs.h. */
27834
27835void foo (void);
27836#pragma weak foo
27837
27838int
27839main ()
27840{
27841if (foo) foo ();
27842 ;
27843 return 0;
27844}
27845_ACEOF
27846if ac_fn_c_try_compile "$LINENO"; then :
27847 libgfor_cv_have_pragma_weak=yes
27848else
27849 libgfor_cv_have_pragma_weak=no
27850fi
27851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27852fi
27853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
27854$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
27855 if test $libgfor_cv_have_pragma_weak = yes; then
27856
27857$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
27858
27859 fi
27860 case "$host" in
27861 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
27862
27863$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
27864
27865 ;;
27866 esac
27867
e7854993 27868# Check out weakref support.
5e805e44 27869
e7854993
FXC
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
27871$as_echo_n "checking whether the target supports weakref... " >&6; }
22e05272 27872if ${libgfor_cv_have_weakref+:} false; then :
5213506e 27873 $as_echo_n "(cached) " >&6
5e805e44
JJ
27874else
27875
e7854993
FXC
27876 save_CFLAGS="$CFLAGS"
27877 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
27878 if test x$gcc_no_link = xyes; then
22e05272 27879 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e7854993
FXC
27880fi
27881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 27882/* end confdefs.h. */
de15ea94 27883
e7854993 27884static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 27885
5e805e44
JJ
27886int
27887main ()
27888{
e7854993 27889return (mytoto != 0);
5e805e44
JJ
27890 ;
27891 return 0;
27892}
27893_ACEOF
e7854993
FXC
27894if ac_fn_c_try_link "$LINENO"; then :
27895 libgfor_cv_have_weakref=yes
5e805e44 27896else
e7854993 27897 libgfor_cv_have_weakref=no
5e805e44 27898fi
e7854993
FXC
27899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
27901 CFLAGS="$save_CFLAGS"
5e805e44 27902fi
e7854993
FXC
27903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
27904$as_echo "$libgfor_cv_have_weakref" >&6; }
27905 if test $libgfor_cv_have_weakref = yes; then
5e805e44 27906
e7854993 27907$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
27908
27909 fi
27910
10c682a0
FXC
27911# Various other checks on target
27912
5213506e
RW
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
27914$as_echo_n "checking whether the target can unlink an open file... " >&6; }
22e05272 27915if ${libgfor_cv_have_unlink_open_file+:} false; then :
5213506e 27916 $as_echo_n "(cached) " >&6
10c682a0
FXC
27917else
27918
5213506e 27919 if test "$cross_compiling" = yes; then :
10c682a0
FXC
27920
27921case "${target}" in
6d26724a
RW
27922 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
27923 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
27924esac
27925else
5213506e 27926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
27927/* end confdefs.h. */
27928
27929#include <errno.h>
27930#include <fcntl.h>
27931#include <unistd.h>
27932#include <sys/stat.h>
27933
27934int main ()
27935{
27936 int fd;
27937
42dfafa9 27938 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
27939 if (fd <= 0)
27940 return 0;
27941 if (unlink ("testfile") == -1)
27942 return 1;
27943 write (fd, "This is a test\n", 15);
27944 close (fd);
27945
42dfafa9 27946 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
27947 return 0;
27948 else
27949 return 1;
27950}
27951_ACEOF
5213506e 27952if ac_fn_c_try_run "$LINENO"; then :
6d26724a 27953 libgfor_cv_have_unlink_open_file=yes
10c682a0 27954else
5213506e 27955 libgfor_cv_have_unlink_open_file=no
10c682a0 27956fi
5213506e
RW
27957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27958 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 27959fi
5213506e 27960
10c682a0 27961fi
5213506e
RW
27962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
27963$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 27964if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 27965
5213506e 27966$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
27967
27968fi
27969
3c127520
FXC
27970# Check whether line terminator is LF or CRLF
27971
5213506e
RW
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
27973$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
22e05272 27974if ${libgfor_cv_have_crlf+:} false; then :
5213506e 27975 $as_echo_n "(cached) " >&6
3c127520
FXC
27976else
27977
5213506e 27978 if test "$cross_compiling" = yes; then :
3c127520
FXC
27979
27980case "${target}" in
6d26724a
RW
27981 *mingw*) libgfor_cv_have_crlf=yes ;;
27982 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
27983esac
27984else
5213506e 27985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
27986/* end confdefs.h. */
27987
27988/* This test program should exit with status 0 if system uses a CRLF as
27989 line terminator, and status 1 otherwise.
27990 Since it is used to check for mingw systems, and should return 0 in any
27991 other case, in case of a failure we will not use CRLF. */
27992#include <sys/stat.h>
27993#include <stdlib.h>
27994#include <fcntl.h>
27995#include <stdio.h>
27996
27997int main ()
27998{
27999#ifndef O_BINARY
28000 exit(1);
28001#else
28002 int fd, bytes;
28003 char buff[5];
28004
28005 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
28006 if (fd < 0)
28007 exit(1);
28008 if (write (fd, "\n", 1) < 0)
28009 perror ("write");
28010
28011 close (fd);
28012
28013 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
28014 exit(1);
28015 bytes = read (fd, buff, 5);
28016 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
28017 exit(0);
28018 else
28019 exit(1);
28020#endif
28021}
28022_ACEOF
5213506e 28023if ac_fn_c_try_run "$LINENO"; then :
6d26724a 28024 libgfor_cv_have_crlf=yes
3c127520 28025else
5213506e 28026 libgfor_cv_have_crlf=no
3c127520 28027fi
5213506e
RW
28028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28029 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 28030fi
5213506e 28031
3c127520 28032fi
5213506e
RW
28033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
28034$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 28035if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 28036
5213506e 28037$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
28038
28039fi
28040
31cfd832
TK
28041# Check whether we support AVX extensions
28042
28043 ac_save_CFLAGS="$CFLAGS"
28044 CFLAGS="-O2 -mavx"
28045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28046/* end confdefs.h. */
28047
28048 void _mm256_zeroall (void)
28049 {
28050 __builtin_ia32_vzeroall ();
28051 }
28052int
28053main ()
28054{
28055
28056 ;
28057 return 0;
28058}
28059_ACEOF
28060if ac_fn_c_try_compile "$LINENO"; then :
28061
28062$as_echo "#define HAVE_AVX 1" >>confdefs.h
28063
28064fi
28065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28066 CFLAGS="$ac_save_CFLAGS"
28067
28068
49ad4d2c 28069# Check whether we support AVX2 extensions
31cfd832
TK
28070
28071 ac_save_CFLAGS="$CFLAGS"
28072 CFLAGS="-O2 -mavx2"
28073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28074/* end confdefs.h. */
28075
28076 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
28077 __v4di
28078 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
28079 {
28080 return __builtin_ia32_andnotsi256 (__X, __Y);
28081 }
28082int
28083main ()
28084{
28085
28086 ;
28087 return 0;
28088}
28089_ACEOF
28090if ac_fn_c_try_compile "$LINENO"; then :
28091
28092$as_echo "#define HAVE_AVX2 1" >>confdefs.h
28093
28094fi
28095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096 CFLAGS="$ac_save_CFLAGS"
28097
28098
49ad4d2c 28099# Check whether we support AVX512f extensions
31cfd832
TK
28100
28101 ac_save_CFLAGS="$CFLAGS"
28102 CFLAGS="-O2 -mavx512f"
28103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28104/* end confdefs.h. */
28105
28106 typedef double __m512d __attribute__ ((__vector_size__ (64)));
28107 __m512d _mm512_add (__m512d a)
28108 {
9db0a8c2
JJ
28109 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
28110 /* For -m64/-mx32 also verify that code will work even if
28111 the target uses call saved zmm16+ and needs to emit
28112 unwind info for them (e.g. on mingw). See PR79127. */
28113#ifdef __x86_64__
28114 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
28115#endif
28116 return b;
31cfd832
TK
28117 }
28118int
28119main ()
28120{
28121
28122 ;
28123 return 0;
28124}
28125_ACEOF
28126if ac_fn_c_try_compile "$LINENO"; then :
28127
28128$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
28129
28130fi
28131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 CFLAGS="$ac_save_CFLAGS"
28133
28134
1d5cf7fc
TK
28135# Check for FMA3 extensions
28136
28137 ac_save_CFLAGS="$CFLAGS"
28138 CFLAGS="-O2 -mfma -mno-fma4"
28139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28140/* end confdefs.h. */
28141
9698e1bb
RO
28142 typedef float __m128 __attribute__ ((__vector_size__ (16)));
28143 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
28144 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 28145 {
9698e1bb
RO
28146 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
28147 (__v4sf)__B,
28148 (__v4sf)__C);
1d5cf7fc
TK
28149 }
28150int
28151main ()
28152{
28153
28154 ;
28155 return 0;
28156}
28157_ACEOF
28158if ac_fn_c_try_compile "$LINENO"; then :
28159
28160$as_echo "#define HAVE_FMA3 1" >>confdefs.h
28161
28162fi
28163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 CFLAGS="$ac_save_CFLAGS"
28165
28166
28167# Check for FMA4 extensions
28168
28169 ac_save_CFLAGS="$CFLAGS"
28170 CFLAGS="-O2 -mfma4 -mno-fma"
28171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28172/* end confdefs.h. */
28173
9698e1bb
RO
28174 typedef float __m128 __attribute__ ((__vector_size__ (16)));
28175 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
28176 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 28177 {
9698e1bb
RO
28178 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
28179 (__v4sf)__B,
28180 (__v4sf)__C);
1d5cf7fc
TK
28181 }
28182int
28183main ()
28184{
28185
28186 ;
28187 return 0;
28188}
28189_ACEOF
28190if ac_fn_c_try_compile "$LINENO"; then :
28191
28192$as_echo "#define HAVE_FMA4 1" >>confdefs.h
28193
28194fi
28195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28196 CFLAGS="$ac_save_CFLAGS"
28197
28198
28199# Check if AVX128 works
28200
28201 ac_save_CFLAGS="$CFLAGS"
28202 CFLAGS="-O2 -mavx -mprefer-avx128"
28203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28204/* end confdefs.h. */
28205
28206 void foo()
28207 {
28208 }
28209int
28210main ()
28211{
28212
28213 ;
28214 return 0;
28215}
28216_ACEOF
28217if ac_fn_c_try_compile "$LINENO"; then :
28218
28219$as_echo "#define HAVE_AVX128 1" >>confdefs.h
28220
28221 if true; then
28222 HAVE_AVX128_TRUE=
28223 HAVE_AVX128_FALSE='#'
28224else
28225 HAVE_AVX128_TRUE='#'
28226 HAVE_AVX128_FALSE=
28227fi
28228
5596d26a
TK
28229else
28230 if false; then
28231 HAVE_AVX128_TRUE=
28232 HAVE_AVX128_FALSE='#'
28233else
28234 HAVE_AVX128_TRUE='#'
28235 HAVE_AVX128_FALSE=
28236fi
28237
1d5cf7fc
TK
28238fi
28239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 CFLAGS="$ac_save_CFLAGS"
28241
28242
3c36aa6b
JJ
28243# Determine what GCC version number to use in filesystem paths.
28244
28245 get_gcc_base_ver="cat"
28246
28247# Check whether --with-gcc-major-version-only was given.
28248if test "${with_gcc_major_version_only+set}" = set; then :
28249 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 28250 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
28251 fi
28252
28253fi
28254
28255
28256
28257
6de9cd9a
DN
28258cat >confcache <<\_ACEOF
28259# This file is a shell script that caches the results of configure
28260# tests run on this system so they can be shared between configure
28261# scripts and configure runs, see configure's option --config-cache.
28262# It is not useful on other systems. If it contains results you don't
28263# want to keep, you may remove or edit it.
28264#
28265# config.status only pays attention to the cache file if you give it
28266# the --recheck option to rerun configure.
28267#
28268# `ac_cv_env_foo' variables (set or unset) will be overridden when
28269# loading this file, other *unset* `ac_cv_foo' will be assigned the
28270# following values.
28271
28272_ACEOF
28273
28274# The following way of writing the cache mishandles newlines in values,
28275# but we know of no workaround that is simple, portable, and efficient.
5213506e 28276# So, we kill variables containing newlines.
6de9cd9a
DN
28277# Ultrix sh set writes to stderr and can't be redirected directly,
28278# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
28279(
28280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28281 eval ac_val=\$$ac_var
28282 case $ac_val in #(
28283 *${as_nl}*)
28284 case $ac_var in #(
28285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28286$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28287 esac
28288 case $ac_var in #(
28289 _ | IFS | as_nl) ;; #(
28290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28291 *) { eval $ac_var=; unset $ac_var;} ;;
28292 esac ;;
28293 esac
28294 done
28295
6de9cd9a 28296 (set) 2>&1 |
5213506e
RW
28297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28298 *${as_nl}ac_space=\ *)
28299 # `set' does not quote correctly, so add quotes: double-quote
28300 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
28301 sed -n \
28302 "s/'/'\\\\''/g;
28303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 28304 ;; #(
6de9cd9a
DN
28305 *)
28306 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 28307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 28308 ;;
5213506e
RW
28309 esac |
28310 sort
28311) |
6de9cd9a 28312 sed '
5213506e 28313 /^ac_cv_env_/b end
6de9cd9a 28314 t clear
5213506e 28315 :clear
6de9cd9a
DN
28316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28317 t end
5213506e
RW
28318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28319 :end' >>confcache
28320if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28321 if test -w "$cache_file"; then
22e05272 28322 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28324$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
28325 if test ! -f "$cache_file" || test -h "$cache_file"; then
28326 cat confcache >"$cache_file"
28327 else
28328 case $cache_file in #(
28329 */* | ?:*)
28330 mv -f confcache "$cache_file"$$ &&
28331 mv -f "$cache_file"$$ "$cache_file" ;; #(
28332 *)
28333 mv -f confcache "$cache_file" ;;
28334 esac
28335 fi
28336 fi
6de9cd9a 28337 else
5213506e
RW
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28339$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
28340 fi
28341fi
28342rm -f confcache
28343
96b8a615
AJ
28344if test ${multilib} = yes; then
28345 multilib_arg="--enable-multilib"
6de9cd9a 28346else
96b8a615 28347 multilib_arg=
6de9cd9a 28348fi
6de9cd9a 28349
1ec601bf
FXC
28350# Write our Makefile and spec file.
28351ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 28352
6de9cd9a
DN
28353cat >confcache <<\_ACEOF
28354# This file is a shell script that caches the results of configure
28355# tests run on this system so they can be shared between configure
28356# scripts and configure runs, see configure's option --config-cache.
28357# It is not useful on other systems. If it contains results you don't
28358# want to keep, you may remove or edit it.
28359#
28360# config.status only pays attention to the cache file if you give it
28361# the --recheck option to rerun configure.
28362#
28363# `ac_cv_env_foo' variables (set or unset) will be overridden when
28364# loading this file, other *unset* `ac_cv_foo' will be assigned the
28365# following values.
28366
28367_ACEOF
28368
28369# The following way of writing the cache mishandles newlines in values,
28370# but we know of no workaround that is simple, portable, and efficient.
5213506e 28371# So, we kill variables containing newlines.
6de9cd9a
DN
28372# Ultrix sh set writes to stderr and can't be redirected directly,
28373# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
28374(
28375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28376 eval ac_val=\$$ac_var
28377 case $ac_val in #(
28378 *${as_nl}*)
28379 case $ac_var in #(
28380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28382 esac
28383 case $ac_var in #(
28384 _ | IFS | as_nl) ;; #(
28385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28386 *) { eval $ac_var=; unset $ac_var;} ;;
28387 esac ;;
28388 esac
28389 done
28390
6de9cd9a 28391 (set) 2>&1 |
5213506e
RW
28392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28393 *${as_nl}ac_space=\ *)
28394 # `set' does not quote correctly, so add quotes: double-quote
28395 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
28396 sed -n \
28397 "s/'/'\\\\''/g;
28398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 28399 ;; #(
6de9cd9a
DN
28400 *)
28401 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 28402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 28403 ;;
5213506e
RW
28404 esac |
28405 sort
28406) |
6de9cd9a 28407 sed '
5213506e 28408 /^ac_cv_env_/b end
6de9cd9a 28409 t clear
5213506e 28410 :clear
6de9cd9a
DN
28411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28412 t end
5213506e
RW
28413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28414 :end' >>confcache
28415if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28416 if test -w "$cache_file"; then
22e05272 28417 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28419$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
28420 if test ! -f "$cache_file" || test -h "$cache_file"; then
28421 cat confcache >"$cache_file"
28422 else
28423 case $cache_file in #(
28424 */* | ?:*)
28425 mv -f confcache "$cache_file"$$ &&
28426 mv -f "$cache_file"$$ "$cache_file" ;; #(
28427 *)
28428 mv -f confcache "$cache_file" ;;
28429 esac
28430 fi
28431 fi
6de9cd9a 28432 else
5213506e
RW
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28434$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
28435 fi
28436fi
28437rm -f confcache
28438
28439test "x$prefix" = xNONE && prefix=$ac_default_prefix
28440# Let make expand exec_prefix.
28441test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28442
6de9cd9a
DN
28443DEFS=-DHAVE_CONFIG_H
28444
28445ac_libobjs=
28446ac_ltlibobjs=
22e05272 28447U=
6de9cd9a
DN
28448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28449 # 1. Remove the extension, and $U if already installed.
5213506e
RW
28450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28453 # will be set to the directory where LIBOBJS objects are built.
28454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
28456done
28457LIBOBJS=$ac_libobjs
28458
28459LTLIBOBJS=$ac_ltlibobjs
28460
28461
b808ac33 28462if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
22e05272 28463 as_fn_error $? "conditional \"onestep\" was never defined.
5213506e
RW
28464Usually this means the macro was only invoked conditionally." "$LINENO" 5
28465fi
22e05272
JM
28466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28467$as_echo_n "checking that generated files are newer than configure... " >&6; }
28468 if test -n "$am_sleep_pid"; then
28469 # Hide warnings about reused PIDs.
28470 wait $am_sleep_pid 2>/dev/null
28471 fi
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28473$as_echo "done" >&6; }
5213506e
RW
28474 if test -n "$EXEEXT"; then
28475 am__EXEEXT_TRUE=
28476 am__EXEEXT_FALSE='#'
28477else
28478 am__EXEEXT_TRUE='#'
28479 am__EXEEXT_FALSE=
b808ac33 28480fi
5213506e 28481
6de9cd9a 28482if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 28483 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 28484Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 28485fi
679c0f9a 28486if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 28487 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 28488Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
28489fi
28490if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 28491 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 28492Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 28493fi
21be0a5a 28494if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 28495 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21be0a5a
JB
28496Usually this means the macro was only invoked conditionally." "$LINENO" 5
28497fi
49ad4d2c
TK
28498if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then
28499 as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined.
28500Usually this means the macro was only invoked conditionally." "$LINENO" 5
28501fi
c0e7e2bf 28502if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
22e05272 28503 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
5213506e 28504Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 28505fi
49ea7a0e 28506if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
22e05272 28507 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
49ea7a0e
RO
28508Usually this means the macro was only invoked conditionally." "$LINENO" 5
28509fi
28510if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
22e05272 28511 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
49ea7a0e
RO
28512Usually this means the macro was only invoked conditionally." "$LINENO" 5
28513fi
ee95f928 28514if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
22e05272 28515 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
ee95f928
BS
28516Usually this means the macro was only invoked conditionally." "$LINENO" 5
28517fi
66dbcf2d 28518if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
22e05272 28519 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
66dbcf2d
RO
28520Usually this means the macro was only invoked conditionally." "$LINENO" 5
28521fi
1ec601bf 28522if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
22e05272 28523 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
1ec601bf
FXC
28524Usually this means the macro was only invoked conditionally." "$LINENO" 5
28525fi
8b198102 28526if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
22e05272 28527 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
8b198102
FXC
28528Usually this means the macro was only invoked conditionally." "$LINENO" 5
28529fi
1d5cf7fc 28530if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 28531 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
1d5cf7fc
TK
28532Usually this means the macro was only invoked conditionally." "$LINENO" 5
28533fi
5596d26a 28534if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 28535 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
5596d26a
TK
28536Usually this means the macro was only invoked conditionally." "$LINENO" 5
28537fi
6de9cd9a 28538
22e05272 28539: "${CONFIG_STATUS=./config.status}"
5213506e 28540ac_write_fail=0
6de9cd9a
DN
28541ac_clean_files_save=$ac_clean_files
28542ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
28543{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28544$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28545as_write_fail=0
28546cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
28547#! $SHELL
28548# Generated by $as_me.
28549# Run this file to recreate the current configuration.
28550# Compiler output produced by configure, useful for debugging
28551# configure, is in config.log if it exists.
28552
28553debug=false
28554ac_cs_recheck=false
28555ac_cs_silent=false
6de9cd9a 28556
5213506e
RW
28557SHELL=\${CONFIG_SHELL-$SHELL}
28558export SHELL
28559_ASEOF
28560cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28561## -------------------- ##
28562## M4sh Initialization. ##
28563## -------------------- ##
28564
28565# Be more Bourne compatible
28566DUALCASE=1; export DUALCASE # for MKS sh
28567if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
28568 emulate sh
28569 NULLCMD=:
5213506e 28570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
28571 # is contrary to our usage. Disable this feature.
28572 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
28573 setopt NO_GLOB_SUBST
28574else
28575 case `(set -o) 2>/dev/null` in #(
28576 *posix*) :
28577 set -o posix ;; #(
28578 *) :
28579 ;;
28580esac
6de9cd9a 28581fi
6de9cd9a 28582
5213506e
RW
28583
28584as_nl='
28585'
28586export as_nl
28587# Printing a long string crashes Solaris 7 /usr/bin/printf.
28588as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28590as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28591# Prefer a ksh shell builtin over an external printf program on Solaris,
28592# but without wasting forks for bash or zsh.
28593if test -z "$BASH_VERSION$ZSH_VERSION" \
28594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28595 as_echo='print -r --'
28596 as_echo_n='print -rn --'
28597elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28598 as_echo='printf %s\n'
28599 as_echo_n='printf %s'
28600else
28601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28602 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28603 as_echo_n='/usr/ucb/echo -n'
28604 else
28605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28606 as_echo_n_body='eval
28607 arg=$1;
28608 case $arg in #(
28609 *"$as_nl"*)
28610 expr "X$arg" : "X\\(.*\\)$as_nl";
28611 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28612 esac;
28613 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28614 '
28615 export as_echo_n_body
28616 as_echo_n='sh -c $as_echo_n_body as_echo'
28617 fi
28618 export as_echo_body
28619 as_echo='sh -c $as_echo_body as_echo'
28620fi
28621
28622# The user is always right.
28623if test "${PATH_SEPARATOR+set}" != set; then
28624 PATH_SEPARATOR=:
28625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28627 PATH_SEPARATOR=';'
28628 }
6de9cd9a
DN
28629fi
28630
28631
5213506e
RW
28632# IFS
28633# We need space, tab and new line, in precisely that order. Quoting is
28634# there to prevent editors from complaining about space-tab.
28635# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28636# splitting by setting IFS to empty value.)
28637IFS=" "" $as_nl"
28638
28639# Find who we are. Look in the path if we contain no directory separator.
22e05272 28640as_myself=
5213506e
RW
28641case $0 in #((
28642 *[\\/]* ) as_myself=$0 ;;
28643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28644for as_dir in $PATH
28645do
28646 IFS=$as_save_IFS
28647 test -z "$as_dir" && as_dir=.
28648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28649 done
28650IFS=$as_save_IFS
28651
28652 ;;
28653esac
28654# We did not find ourselves, most probably we were run as `sh COMMAND'
28655# in which case we are not to be found in the path.
28656if test "x$as_myself" = x; then
28657 as_myself=$0
28658fi
28659if test ! -f "$as_myself"; then
28660 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28661 exit 1
28662fi
28663
28664# Unset variables that we do not need and which cause bugs (e.g. in
28665# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28666# suppresses any "Segmentation fault" message there. '((' could
28667# trigger a bug in pdksh 5.2.14.
28668for as_var in BASH_ENV ENV MAIL MAILPATH
28669do eval test x\${$as_var+set} = xset \
28670 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28671done
6de9cd9a
DN
28672PS1='$ '
28673PS2='> '
28674PS4='+ '
28675
28676# NLS nuisances.
5213506e
RW
28677LC_ALL=C
28678export LC_ALL
28679LANGUAGE=C
28680export LANGUAGE
28681
28682# CDPATH.
28683(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28684
28685
22e05272
JM
28686# as_fn_error STATUS ERROR [LINENO LOG_FD]
28687# ----------------------------------------
5213506e
RW
28688# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28689# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 28690# script with STATUS, using 1 if that was 0.
5213506e
RW
28691as_fn_error ()
28692{
22e05272
JM
28693 as_status=$1; test $as_status -eq 0 && as_status=1
28694 if test "$4"; then
28695 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28696 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6de9cd9a 28697 fi
22e05272 28698 $as_echo "$as_me: error: $2" >&2
5213506e
RW
28699 as_fn_exit $as_status
28700} # as_fn_error
28701
28702
28703# as_fn_set_status STATUS
28704# -----------------------
28705# Set $? to STATUS, without forking.
28706as_fn_set_status ()
28707{
28708 return $1
28709} # as_fn_set_status
28710
28711# as_fn_exit STATUS
28712# -----------------
28713# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28714as_fn_exit ()
28715{
28716 set +e
28717 as_fn_set_status $1
28718 exit $1
28719} # as_fn_exit
28720
28721# as_fn_unset VAR
28722# ---------------
28723# Portably unset VAR.
28724as_fn_unset ()
28725{
28726 { eval $1=; unset $1;}
28727}
28728as_unset=as_fn_unset
28729# as_fn_append VAR VALUE
28730# ----------------------
28731# Append the text in VALUE to the end of the definition contained in VAR. Take
28732# advantage of any shell optimizations that allow amortized linear growth over
28733# repeated appends, instead of the typical quadratic growth present in naive
28734# implementations.
28735if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28736 eval 'as_fn_append ()
28737 {
28738 eval $1+=\$2
28739 }'
28740else
28741 as_fn_append ()
28742 {
28743 eval $1=\$$1\$2
28744 }
28745fi # as_fn_append
28746
28747# as_fn_arith ARG...
28748# ------------------
28749# Perform arithmetic evaluation on the ARGs, and store the result in the
28750# global $as_val. Take advantage of shells that can avoid forks. The arguments
28751# must be portable across $(()) and expr.
28752if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28753 eval 'as_fn_arith ()
28754 {
28755 as_val=$(( $* ))
28756 }'
28757else
28758 as_fn_arith ()
28759 {
28760 as_val=`expr "$@" || test $? -eq 1`
28761 }
28762fi # as_fn_arith
6de9cd9a 28763
5213506e
RW
28764
28765if expr a : '\(a\)' >/dev/null 2>&1 &&
28766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
28767 as_expr=expr
28768else
28769 as_expr=false
28770fi
28771
5213506e 28772if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
28773 as_basename=basename
28774else
28775 as_basename=false
28776fi
28777
5213506e
RW
28778if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28779 as_dirname=dirname
28780else
28781 as_dirname=false
28782fi
6de9cd9a 28783
5213506e 28784as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
28785$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28786 X"$0" : 'X\(//\)$' \| \
5213506e
RW
28787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28788$as_echo X/"$0" |
28789 sed '/^.*\/\([^/][^/]*\)\/*$/{
28790 s//\1/
28791 q
28792 }
28793 /^X\/\(\/\/\)$/{
28794 s//\1/
28795 q
28796 }
28797 /^X\/\(\/\).*/{
28798 s//\1/
28799 q
28800 }
28801 s/.*/./; q'`
38d24731 28802
38d24731
RW
28803# Avoid depending upon Character Ranges.
28804as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28806as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28807as_cr_digits='0123456789'
28808as_cr_alnum=$as_cr_Letters$as_cr_digits
28809
5213506e
RW
28810ECHO_C= ECHO_N= ECHO_T=
28811case `echo -n x` in #(((((
28812-n*)
28813 case `echo 'xy\c'` in
28814 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28815 xy) ECHO_C='\c';;
28816 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28817 ECHO_T=' ';;
28818 esac;;
28819*)
28820 ECHO_N='-n';;
6de9cd9a
DN
28821esac
28822
5213506e
RW
28823rm -f conf$$ conf$$.exe conf$$.file
28824if test -d conf$$.dir; then
28825 rm -f conf$$.dir/conf$$.file
6de9cd9a 28826else
5213506e
RW
28827 rm -f conf$$.dir
28828 mkdir conf$$.dir 2>/dev/null
6de9cd9a 28829fi
5213506e
RW
28830if (echo >conf$$.file) 2>/dev/null; then
28831 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 28832 as_ln_s='ln -s'
5213506e
RW
28833 # ... but there are two gotchas:
28834 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28835 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 28836 # In both cases, we have to default to `cp -pR'.
5213506e 28837 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 28838 as_ln_s='cp -pR'
5213506e
RW
28839 elif ln conf$$.file conf$$ 2>/dev/null; then
28840 as_ln_s=ln
28841 else
22e05272 28842 as_ln_s='cp -pR'
38d24731 28843 fi
6de9cd9a 28844else
22e05272 28845 as_ln_s='cp -pR'
6de9cd9a 28846fi
5213506e
RW
28847rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28848rmdir conf$$.dir 2>/dev/null
28849
28850
28851# as_fn_mkdir_p
28852# -------------
28853# Create "$as_dir" as a directory, including parents if necessary.
28854as_fn_mkdir_p ()
28855{
28856
28857 case $as_dir in #(
28858 -*) as_dir=./$as_dir;;
28859 esac
28860 test -d "$as_dir" || eval $as_mkdir_p || {
28861 as_dirs=
28862 while :; do
28863 case $as_dir in #(
28864 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28865 *) as_qdir=$as_dir;;
28866 esac
28867 as_dirs="'$as_qdir' $as_dirs"
28868 as_dir=`$as_dirname -- "$as_dir" ||
28869$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28870 X"$as_dir" : 'X\(//\)[^/]' \| \
28871 X"$as_dir" : 'X\(//\)$' \| \
28872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28873$as_echo X"$as_dir" |
28874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28875 s//\1/
28876 q
28877 }
28878 /^X\(\/\/\)[^/].*/{
28879 s//\1/
28880 q
28881 }
28882 /^X\(\/\/\)$/{
28883 s//\1/
28884 q
28885 }
28886 /^X\(\/\).*/{
28887 s//\1/
28888 q
28889 }
28890 s/.*/./; q'`
28891 test -d "$as_dir" && break
28892 done
28893 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 28894 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 28895
6de9cd9a 28896
5213506e 28897} # as_fn_mkdir_p
6de9cd9a 28898if mkdir -p . 2>/dev/null; then
5213506e 28899 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
28900else
28901 test -d ./-p && rmdir ./-p
28902 as_mkdir_p=false
28903fi
28904
22e05272
JM
28905
28906# as_fn_executable_p FILE
28907# -----------------------
28908# Test if FILE is an executable regular file.
28909as_fn_executable_p ()
28910{
28911 test -f "$1" && test -x "$1"
28912} # as_fn_executable_p
28913as_test_x='test -x'
28914as_executable_p=as_fn_executable_p
6de9cd9a
DN
28915
28916# Sed expression to map a string onto a valid CPP name.
28917as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28918
28919# Sed expression to map a string onto a valid variable name.
28920as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28921
28922
6de9cd9a 28923exec 6>&1
5213506e
RW
28924## ----------------------------------- ##
28925## Main body of $CONFIG_STATUS script. ##
28926## ----------------------------------- ##
28927_ASEOF
28928test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28929
28930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28931# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 28932# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
28933# values after options handling.
28934ac_log="
0dce3ca1 28935This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 28936generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a
DN
28937
28938 CONFIG_FILES = $CONFIG_FILES
28939 CONFIG_HEADERS = $CONFIG_HEADERS
28940 CONFIG_LINKS = $CONFIG_LINKS
28941 CONFIG_COMMANDS = $CONFIG_COMMANDS
28942 $ $0 $@
28943
5213506e
RW
28944on `(hostname || uname -n) 2>/dev/null | sed 1q`
28945"
28946
6de9cd9a
DN
28947_ACEOF
28948
5213506e
RW
28949case $ac_config_files in *"
28950"*) set x $ac_config_files; shift; ac_config_files=$*;;
28951esac
78511f8b 28952
5213506e
RW
28953case $ac_config_headers in *"
28954"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28955esac
38d24731 28956
38d24731 28957
5213506e
RW
28958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28959# Files that config.status was made for.
28960config_files="$ac_config_files"
28961config_headers="$ac_config_headers"
28962config_commands="$ac_config_commands"
6de9cd9a 28963
5213506e 28964_ACEOF
38d24731 28965
5213506e 28966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 28967ac_cs_usage="\
5213506e
RW
28968\`$as_me' instantiates files and other configuration actions
28969from templates according to the current configuration. Unless the files
28970and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 28971
5213506e 28972Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
28973
28974 -h, --help print this help, then exit
5213506e 28975 -V, --version print version number and configuration settings, then exit
22e05272 28976 --config print configuration, then exit
5213506e
RW
28977 -q, --quiet, --silent
28978 do not print progress messages
6de9cd9a
DN
28979 -d, --debug don't remove temporary files
28980 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
28981 --file=FILE[:TEMPLATE]
28982 instantiate the configuration file FILE
28983 --header=FILE[:TEMPLATE]
28984 instantiate the configuration header FILE
6de9cd9a
DN
28985
28986Configuration files:
28987$config_files
28988
28989Configuration headers:
28990$config_headers
28991
28992Configuration commands:
28993$config_commands
28994
5213506e
RW
28995Report bugs to the package provider.
28996GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
28997General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 28998
5213506e
RW
28999_ACEOF
29000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 29001ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6de9cd9a 29002ac_cs_version="\\
0dce3ca1 29003GNU Fortran Runtime Library config.status 0.3
22e05272
JM
29004configured by $0, generated by GNU Autoconf 2.69,
29005 with options \\"\$ac_cs_config\\"
6de9cd9a 29006
22e05272 29007Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
29008This config.status script is free software; the Free Software Foundation
29009gives unlimited permission to copy, distribute and modify it."
5213506e
RW
29010
29011ac_pwd='$ac_pwd'
29012srcdir='$srcdir'
29013INSTALL='$INSTALL'
29014MKDIR_P='$MKDIR_P'
29015AWK='$AWK'
29016test -n "\$AWK" || AWK=awk
6de9cd9a
DN
29017_ACEOF
29018
5213506e
RW
29019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29020# The default lists apply if the user does not specify any file.
6de9cd9a
DN
29021ac_need_defaults=:
29022while test $# != 0
29023do
29024 case $1 in
22e05272 29025 --*=?*)
5213506e
RW
29026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29027 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
29028 ac_shift=:
29029 ;;
22e05272
JM
29030 --*=)
29031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29032 ac_optarg=
29033 ac_shift=:
29034 ;;
5213506e 29035 *)
6de9cd9a
DN
29036 ac_option=$1
29037 ac_optarg=$2
29038 ac_shift=shift
29039 ;;
6de9cd9a
DN
29040 esac
29041
29042 case $ac_option in
29043 # Handling of the options.
6de9cd9a
DN
29044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29045 ac_cs_recheck=: ;;
5213506e
RW
29046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29047 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
29048 --config | --confi | --conf | --con | --co | --c )
29049 $as_echo "$ac_cs_config"; exit ;;
5213506e 29050 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
29051 debug=: ;;
29052 --file | --fil | --fi | --f )
29053 $ac_shift
5213506e
RW
29054 case $ac_optarg in
29055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 29056 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
29057 esac
29058 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
29059 ac_need_defaults=false;;
29060 --header | --heade | --head | --hea )
29061 $ac_shift
5213506e
RW
29062 case $ac_optarg in
29063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29064 esac
29065 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 29066 ac_need_defaults=false;;
5213506e
RW
29067 --he | --h)
29068 # Conflict between --help and --header
22e05272 29069 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
29070Try \`$0 --help' for more information.";;
29071 --help | --hel | -h )
29072 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
29073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29074 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29075 ac_cs_silent=: ;;
29076
29077 # This is an error.
22e05272 29078 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 29079Try \`$0 --help' for more information." ;;
6de9cd9a 29080
5213506e
RW
29081 *) as_fn_append ac_config_targets " $1"
29082 ac_need_defaults=false ;;
6de9cd9a
DN
29083
29084 esac
29085 shift
29086done
29087
29088ac_configure_extra_args=
29089
29090if $ac_cs_silent; then
29091 exec 6>/dev/null
29092 ac_configure_extra_args="$ac_configure_extra_args --silent"
29093fi
29094
29095_ACEOF
5213506e 29096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 29097if \$ac_cs_recheck; then
22e05272 29098 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
29099 shift
29100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29101 CONFIG_SHELL='$SHELL'
29102 export CONFIG_SHELL
29103 exec "\$@"
6de9cd9a
DN
29104fi
29105
1cf3d07d 29106_ACEOF
5213506e
RW
29107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29108exec 5>>config.log
29109{
29110 echo
29111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29112## Running $as_me. ##
29113_ASBOX
29114 $as_echo "$ac_log"
29115} >&5
1cf3d07d 29116
5213506e
RW
29117_ACEOF
29118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 29119#
5213506e 29120# INIT-COMMANDS
1cf3d07d
SE
29121#
29122
1cf3d07d
SE
29123srcdir="$srcdir"
29124host="$host"
29125target="$target"
29126with_multisubdir="$with_multisubdir"
29127with_multisrctop="$with_multisrctop"
29128with_target_subdir="$with_target_subdir"
29129ac_configure_args="${multilib_arg} ${ac_configure_args}"
29130multi_basedir="$multi_basedir"
29131CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29132CC="$CC"
2017c370
JB
29133CXX="$CXX"
29134GFORTRAN="$GFORTRAN"
22e05272 29135GDC="$GDC"
1cf3d07d
SE
29136AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29137
29138
29139# The HP-UX ksh and POSIX shell print the target directory to stdout
29140# if CDPATH is set.
29141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29142
29143sed_quote_subst='$sed_quote_subst'
29144double_quote_subst='$double_quote_subst'
29145delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
29146SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29147Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29148GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29149EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29150FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29151SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29152ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29153LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
29154macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29155macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29156enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29157enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29158pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29159enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
29160host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29161host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29162host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29163build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29164build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29165build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
29166NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29167LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29168max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29169ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29170exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29171lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29172lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29173lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29174reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29175reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29176OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29177deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29178file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29179AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29180AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29181STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29182RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29183old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29184old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29185old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29186lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29187CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29188CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29189compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29190GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29191lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29192lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29193lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29194lt_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"`'
29195objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29196MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29197lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29198lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29199lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29200lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29201lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29202need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29203DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29204NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29205LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29206OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29207OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29208libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29209shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29210extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29211archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29212enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29213export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29214whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29215compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29216old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29217old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29218archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29219archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29220module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29221module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29222with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29223allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29224no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29225hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29226hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
29227hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29228hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29229hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29230hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29231hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29232hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29233inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29234link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29235fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
29236always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29237export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29238exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29239include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29240prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29241file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29242variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29243need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29244need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29245version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29246runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29247shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29248shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29249libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29250library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29251soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29252install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29253postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29254postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29255finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29256finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29257hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29258sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29259sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29260hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29261enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29262enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29263enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29264old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29265striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29266compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29267predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29268postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29269predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29270postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29271compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29272LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
29273reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
29274reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
29275old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
29276compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
29277GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
29278lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
29279lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
29280lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
29281lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
29282lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
29283archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
29284enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
29285export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
29286whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
29287compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
29288old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
29289old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
29290archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
29291archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
29292module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
29293module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
29294with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
29295allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
29296no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
29297hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
29298hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
29299hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
29300hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
29301hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
29302hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
29303hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
29304hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
29305inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
29306link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
29307fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
29308always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
29309export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
29310exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
29311include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
29312prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
29313file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
29314hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
29315compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
29316predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
29317postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
29318predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
29319postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
29320compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
29321
29322LTCC='$LTCC'
29323LTCFLAGS='$LTCFLAGS'
29324compiler='$compiler_DEFAULT'
29325
43e02a8a
RW
29326# A function that is used when there is no print builtin or printf.
29327func_fallback_echo ()
29328{
29329 eval 'cat <<_LTECHO_EOF
29330\$1
29331_LTECHO_EOF'
29332}
29333
1cf3d07d 29334# Quote evaled strings.
66dbcf2d 29335for var in SED \
1cf3d07d
SE
29336GREP \
29337EGREP \
29338FGREP \
66dbcf2d
RO
29339SHELL \
29340ECHO \
1cf3d07d
SE
29341LD \
29342NM \
29343LN_S \
29344lt_SP2NL \
29345lt_NL2SP \
29346reload_flag \
d58dead8 29347OBJDUMP \
1cf3d07d
SE
29348deplibs_check_method \
29349file_magic_cmd \
29350AR \
29351AR_FLAGS \
29352STRIP \
29353RANLIB \
29354CC \
29355CFLAGS \
29356compiler \
29357lt_cv_sys_global_symbol_pipe \
29358lt_cv_sys_global_symbol_to_cdecl \
29359lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 29360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
29361lt_prog_compiler_no_builtin_flag \
29362lt_prog_compiler_wl \
29363lt_prog_compiler_pic \
29364lt_prog_compiler_static \
29365lt_cv_prog_compiler_c_o \
29366need_locks \
d58dead8
PG
29367DSYMUTIL \
29368NMEDIT \
29369LIPO \
29370OTOOL \
29371OTOOL64 \
1cf3d07d
SE
29372shrext_cmds \
29373export_dynamic_flag_spec \
29374whole_archive_flag_spec \
29375compiler_needs_object \
29376with_gnu_ld \
29377allow_undefined_flag \
29378no_undefined_flag \
29379hardcode_libdir_flag_spec \
29380hardcode_libdir_flag_spec_ld \
29381hardcode_libdir_separator \
29382fix_srcfile_path \
29383exclude_expsyms \
29384include_expsyms \
29385file_list_spec \
29386variables_saved_for_relink \
29387libname_spec \
29388library_names_spec \
29389soname_spec \
43e02a8a 29390install_override_mode \
1cf3d07d
SE
29391finish_eval \
29392old_striplib \
29393striplib \
d58dead8 29394compiler_lib_search_dirs \
1cf3d07d
SE
29395predep_objects \
29396postdep_objects \
29397predeps \
29398postdeps \
29399compiler_lib_search_path \
29400LD_FC \
43e02a8a 29401reload_flag_FC \
1cf3d07d
SE
29402compiler_FC \
29403lt_prog_compiler_no_builtin_flag_FC \
29404lt_prog_compiler_wl_FC \
29405lt_prog_compiler_pic_FC \
29406lt_prog_compiler_static_FC \
29407lt_cv_prog_compiler_c_o_FC \
29408export_dynamic_flag_spec_FC \
29409whole_archive_flag_spec_FC \
29410compiler_needs_object_FC \
29411with_gnu_ld_FC \
29412allow_undefined_flag_FC \
29413no_undefined_flag_FC \
29414hardcode_libdir_flag_spec_FC \
29415hardcode_libdir_flag_spec_ld_FC \
29416hardcode_libdir_separator_FC \
29417fix_srcfile_path_FC \
29418exclude_expsyms_FC \
29419include_expsyms_FC \
29420file_list_spec_FC \
d58dead8 29421compiler_lib_search_dirs_FC \
1cf3d07d
SE
29422predep_objects_FC \
29423postdep_objects_FC \
29424predeps_FC \
29425postdeps_FC \
29426compiler_lib_search_path_FC; do
43e02a8a 29427 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 29428 *[\\\\\\\`\\"\\\$]*)
43e02a8a 29429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
29430 ;;
29431 *)
29432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29433 ;;
29434 esac
29435done
29436
29437# Double-quote double-evaled strings.
29438for var in reload_cmds \
29439old_postinstall_cmds \
29440old_postuninstall_cmds \
29441old_archive_cmds \
29442extract_expsyms_cmds \
29443old_archive_from_new_cmds \
29444old_archive_from_expsyms_cmds \
29445archive_cmds \
29446archive_expsym_cmds \
29447module_cmds \
29448module_expsym_cmds \
29449export_symbols_cmds \
29450prelink_cmds \
29451postinstall_cmds \
29452postuninstall_cmds \
29453finish_cmds \
29454sys_lib_search_path_spec \
29455sys_lib_dlsearch_path_spec \
43e02a8a 29456reload_cmds_FC \
1cf3d07d
SE
29457old_archive_cmds_FC \
29458old_archive_from_new_cmds_FC \
29459old_archive_from_expsyms_cmds_FC \
29460archive_cmds_FC \
29461archive_expsym_cmds_FC \
29462module_cmds_FC \
29463module_expsym_cmds_FC \
29464export_symbols_cmds_FC \
29465prelink_cmds_FC; do
43e02a8a 29466 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 29467 *[\\\\\\\`\\"\\\$]*)
43e02a8a 29468 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
29469 ;;
29470 *)
29471 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29472 ;;
29473 esac
29474done
29475
1cf3d07d
SE
29476ac_aux_dir='$ac_aux_dir'
29477xsi_shell='$xsi_shell'
29478lt_shell_append='$lt_shell_append'
29479
29480# See if we are running on zsh, and set the options which allow our
29481# commands through without removal of \ escapes INIT.
29482if test -n "\${ZSH_VERSION+set}" ; then
29483 setopt NO_GLOB_SUBST
29484fi
29485
29486
29487 PACKAGE='$PACKAGE'
29488 VERSION='$VERSION'
29489 TIMESTAMP='$TIMESTAMP'
29490 RM='$RM'
29491 ofile='$ofile'
29492
29493
6de9cd9a 29494
6de9cd9a 29495
78511f8b 29496
6de9cd9a 29497
c13e029b
PB
29498GCC="$GCC"
29499CC="$CC"
29500acx_cv_header_stdint="$acx_cv_header_stdint"
29501acx_cv_type_int8_t="$acx_cv_type_int8_t"
29502acx_cv_type_int16_t="$acx_cv_type_int16_t"
29503acx_cv_type_int32_t="$acx_cv_type_int32_t"
29504acx_cv_type_int64_t="$acx_cv_type_int64_t"
29505acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29506ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29507ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29508ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29509ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29510ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
29511ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29512ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 29513ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
29514
29515
6de9cd9a
DN
29516_ACEOF
29517
5213506e 29518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 29519
5213506e 29520# Handling of arguments.
6de9cd9a
DN
29521for ac_config_target in $ac_config_targets
29522do
5213506e
RW
29523 case $ac_config_target in
29524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29525 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29528 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
29529 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 29530 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e 29531
22e05272 29532 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
29533 esac
29534done
29535
5213506e 29536
6de9cd9a
DN
29537# If the user did not use the arguments to specify the items to instantiate,
29538# then the envvar interface is used. Set only those that are not.
29539# We use the long form for the default assignment because of an extremely
29540# bizarre bug on SunOS 4.1.3.
29541if $ac_need_defaults; then
29542 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29543 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29544 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29545fi
29546
29547# Have a temporary directory for convenience. Make it in the build tree
5213506e 29548# simply because there is no reason against having it here, and in addition,
6de9cd9a 29549# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
29550# Hook for its removal unless debugging.
29551# Note that there is a small window in which the directory will not be cleaned:
29552# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
29553$debug ||
29554{
22e05272 29555 tmp= ac_tmp=
5213506e 29556 trap 'exit_status=$?
22e05272
JM
29557 : "${ac_tmp:=$tmp}"
29558 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
29559' 0
29560 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 29561}
6de9cd9a
DN
29562# Create a (secure) tmp directory for tmp files.
29563
29564{
5213506e 29565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 29566 test -d "$tmp"
6de9cd9a
DN
29567} ||
29568{
5213506e
RW
29569 tmp=./conf$$-$RANDOM
29570 (umask 077 && mkdir "$tmp")
22e05272
JM
29571} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29572ac_tmp=$tmp
5213506e
RW
29573
29574# Set up the scripts for CONFIG_FILES section.
29575# No need to generate them if there are no CONFIG_FILES.
29576# This happens for instance with `./config.status config.h'.
29577if test -n "$CONFIG_FILES"; then
29578
29579
29580ac_cr=`echo X | tr X '\015'`
29581# On cygwin, bash can eat \r inside `` if the user requested igncr.
29582# But we know of no other shell where ac_cr would be empty at this
29583# point, so we can use a bashism as a fallback.
29584if test "x$ac_cr" = x; then
29585 eval ac_cr=\$\'\\r\'
29586fi
29587ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29588if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 29589 ac_cs_awk_cr='\\r'
5213506e
RW
29590else
29591 ac_cs_awk_cr=$ac_cr
29592fi
29593
22e05272 29594echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
29595_ACEOF
29596
29597
6de9cd9a 29598{
5213506e
RW
29599 echo "cat >conf$$subs.awk <<_ACEOF" &&
29600 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29601 echo "_ACEOF"
29602} >conf$$subs.sh ||
22e05272
JM
29603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29604ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
29605ac_delim='%!_!# '
29606for ac_last_try in false false false false false :; do
29607 . ./conf$$subs.sh ||
22e05272 29608 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
29609
29610 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29611 if test $ac_delim_n = $ac_delim_num; then
29612 break
29613 elif $ac_last_try; then
22e05272 29614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
29615 else
29616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29617 fi
29618done
29619rm -f conf$$subs.sh
29620
29621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 29622cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
29623_ACEOF
29624sed -n '
29625h
29626s/^/S["/; s/!.*/"]=/
29627p
29628g
29629s/^[^!]*!//
29630:repl
29631t repl
29632s/'"$ac_delim"'$//
29633t delim
29634:nl
29635h
22e05272 29636s/\(.\{148\}\)..*/\1/
5213506e
RW
29637t more1
29638s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29639p
29640n
29641b repl
29642:more1
29643s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29644p
29645g
29646s/.\{148\}//
29647t nl
29648:delim
29649h
22e05272 29650s/\(.\{148\}\)..*/\1/
5213506e
RW
29651t more2
29652s/["\\]/\\&/g; s/^/"/; s/$/"/
29653p
29654b
29655:more2
29656s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29657p
29658g
29659s/.\{148\}//
29660t delim
29661' <conf$$subs.awk | sed '
29662/^[^""]/{
29663 N
29664 s/\n//
29665}
29666' >>$CONFIG_STATUS || ac_write_fail=1
29667rm -f conf$$subs.awk
29668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29669_ACAWK
22e05272 29670cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
29671 for (key in S) S_is_set[key] = 1
29672 FS = "\a"
29673
29674}
29675{
29676 line = $ 0
29677 nfields = split(line, field, "@")
29678 substed = 0
29679 len = length(field[1])
29680 for (i = 2; i < nfields; i++) {
29681 key = field[i]
29682 keylen = length(key)
29683 if (S_is_set[key]) {
29684 value = S[key]
29685 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29686 len += length(value) + length(field[++i])
29687 substed = 1
29688 } else
29689 len += 1 + keylen
29690 }
29691
29692 print line
6de9cd9a
DN
29693}
29694
5213506e
RW
29695_ACAWK
29696_ACEOF
29697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29698if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29700else
29701 cat
22e05272
JM
29702fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29703 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38d24731
RW
29704_ACEOF
29705
22e05272
JM
29706# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29707# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
29708# trailing colons and then remove the whole line if VPATH becomes empty
29709# (actually we leave an empty line to preserve line numbers).
29710if test "x$srcdir" = x.; then
22e05272
JM
29711 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29712h
29713s///
29714s/^/:/
29715s/[ ]*$/:/
29716s/:\$(srcdir):/:/g
29717s/:\${srcdir}:/:/g
29718s/:@srcdir@:/:/g
29719s/^:*//
5213506e 29720s/:*$//
22e05272
JM
29721x
29722s/\(=[ ]*\).*/\1/
29723G
29724s/\n//
5213506e
RW
29725s/^[^=]*=[ ]*$//
29726}'
29727fi
38d24731 29728
5213506e
RW
29729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29730fi # test -n "$CONFIG_FILES"
6de9cd9a 29731
5213506e
RW
29732# Set up the scripts for CONFIG_HEADERS section.
29733# No need to generate them if there are no CONFIG_HEADERS.
29734# This happens for instance with `./config.status Makefile'.
29735if test -n "$CONFIG_HEADERS"; then
22e05272 29736cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e
RW
29737BEGIN {
29738_ACEOF
29739
29740# Transform confdefs.h into an awk script `defines.awk', embedded as
29741# here-document in config.status, that substitutes the proper values into
29742# config.h.in to produce config.h.
29743
29744# Create a delimiter string that does not exist in confdefs.h, to ease
29745# handling of long lines.
29746ac_delim='%!_!# '
29747for ac_last_try in false false :; do
22e05272
JM
29748 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29749 if test -z "$ac_tt"; then
5213506e
RW
29750 break
29751 elif $ac_last_try; then
22e05272 29752 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5213506e
RW
29753 else
29754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 29755 fi
5213506e 29756done
c0e7e2bf 29757
5213506e
RW
29758# For the awk script, D is an array of macro values keyed by name,
29759# likewise P contains macro parameters if any. Preserve backslash
29760# newline sequences.
29761
29762ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29763sed -n '
29764s/.\{148\}/&'"$ac_delim"'/g
29765t rset
29766:rset
29767s/^[ ]*#[ ]*define[ ][ ]*/ /
29768t def
29769d
29770:def
29771s/\\$//
29772t bsnl
29773s/["\\]/\\&/g
29774s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29775D["\1"]=" \3"/p
29776s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29777d
29778:bsnl
29779s/["\\]/\\&/g
29780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29781D["\1"]=" \3\\\\\\n"\\/p
29782t cont
29783s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29784t cont
29785d
29786:cont
29787n
29788s/.\{148\}/&'"$ac_delim"'/g
29789t clear
29790:clear
29791s/\\$//
29792t bsnlc
29793s/["\\]/\\&/g; s/^/"/; s/$/"/p
29794d
29795:bsnlc
29796s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29797b cont
29798' <confdefs.h | sed '
29799s/'"$ac_delim"'/"\\\
29800"/g' >>$CONFIG_STATUS || ac_write_fail=1
29801
29802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29803 for (key in D) D_is_set[key] = 1
29804 FS = "\a"
29805}
29806/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29807 line = \$ 0
29808 split(line, arg, " ")
29809 if (arg[1] == "#") {
29810 defundef = arg[2]
29811 mac1 = arg[3]
29812 } else {
29813 defundef = substr(arg[1], 2)
29814 mac1 = arg[2]
29815 }
29816 split(mac1, mac2, "(") #)
29817 macro = mac2[1]
29818 prefix = substr(line, 1, index(line, defundef) - 1)
29819 if (D_is_set[macro]) {
29820 # Preserve the white space surrounding the "#".
29821 print prefix "define", macro P[macro] D[macro]
29822 next
29823 } else {
29824 # Replace #undef with comments. This is necessary, for example,
29825 # in the case of _POSIX_SOURCE, which is predefined and required
29826 # on some systems where configure will not decide to define it.
29827 if (defundef == "undef") {
29828 print "/*", prefix defundef, macro, "*/"
29829 next
29830 }
29831 }
29832}
29833{ print }
29834_ACAWK
6de9cd9a 29835_ACEOF
5213506e 29836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 29837 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e
RW
29838fi # test -n "$CONFIG_HEADERS"
29839
29840
29841eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29842shift
29843for ac_tag
29844do
29845 case $ac_tag in
29846 :[FHLC]) ac_mode=$ac_tag; continue;;
29847 esac
29848 case $ac_mode$ac_tag in
29849 :[FHL]*:*);;
22e05272 29850 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
29851 :[FH]-) ac_tag=-:-;;
29852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29853 esac
29854 ac_save_IFS=$IFS
29855 IFS=:
29856 set x $ac_tag
29857 IFS=$ac_save_IFS
29858 shift
29859 ac_file=$1
29860 shift
29861
29862 case $ac_mode in
29863 :L) ac_source=$1;;
29864 :[FH])
29865 ac_file_inputs=
29866 for ac_f
29867 do
29868 case $ac_f in
22e05272 29869 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
29870 *) # Look for the file first in the build tree, then in the source tree
29871 # (if the path is not absolute). The absolute path cannot be DOS-style,
29872 # because $ac_f cannot contain `:'.
29873 test -f "$ac_f" ||
29874 case $ac_f in
29875 [\\/$]*) false;;
29876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29877 esac ||
22e05272 29878 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
29879 esac
29880 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29881 as_fn_append ac_file_inputs " '$ac_f'"
29882 done
29883
29884 # Let's still pretend it is `configure' which instantiates (i.e., don't
29885 # use $as_me), people would be surprised to read:
29886 # /* config.h. Generated by config.status. */
29887 configure_input='Generated from '`
29888 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29889 `' by configure.'
29890 if test x"$ac_file" != x-; then
29891 configure_input="$ac_file. $configure_input"
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29893$as_echo "$as_me: creating $ac_file" >&6;}
29894 fi
29895 # Neutralize special characters interpreted by sed in replacement strings.
29896 case $configure_input in #(
29897 *\&* | *\|* | *\\* )
29898 ac_sed_conf_input=`$as_echo "$configure_input" |
29899 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29900 *) ac_sed_conf_input=$configure_input;;
29901 esac
29902
29903 case $ac_tag in
22e05272
JM
29904 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
29906 esac
29907 ;;
6de9cd9a
DN
29908 esac
29909
5213506e 29910 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
29911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29912 X"$ac_file" : 'X\(//\)[^/]' \| \
29913 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
29914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29915$as_echo X"$ac_file" |
29916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29917 s//\1/
29918 q
29919 }
29920 /^X\(\/\/\)[^/].*/{
29921 s//\1/
29922 q
29923 }
29924 /^X\(\/\/\)$/{
29925 s//\1/
29926 q
29927 }
29928 /^X\(\/\).*/{
29929 s//\1/
29930 q
29931 }
29932 s/.*/./; q'`
29933 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
29934 ac_builddir=.
29935
5213506e
RW
29936case "$ac_dir" in
29937.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29938*)
29939 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29940 # A ".." for each directory in $ac_dir_suffix.
29941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29942 case $ac_top_builddir_sub in
29943 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29944 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29945 esac ;;
29946esac
29947ac_abs_top_builddir=$ac_pwd
29948ac_abs_builddir=$ac_pwd$ac_dir_suffix
29949# for backward compatibility:
29950ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
29951
29952case $srcdir in
5213506e 29953 .) # We are building in place.
6de9cd9a 29954 ac_srcdir=.
5213506e
RW
29955 ac_top_srcdir=$ac_top_builddir_sub
29956 ac_abs_top_srcdir=$ac_pwd ;;
29957 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 29958 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
29959 ac_top_srcdir=$srcdir
29960 ac_abs_top_srcdir=$srcdir ;;
29961 *) # Relative name.
29962 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29963 ac_top_srcdir=$ac_top_build_prefix$srcdir
29964 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 29965esac
5213506e 29966ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 29967
6de9cd9a 29968
5213506e
RW
29969 case $ac_mode in
29970 :F)
29971 #
29972 # CONFIG_FILE
29973 #
6de9cd9a
DN
29974
29975 case $INSTALL in
29976 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
29977 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29978 esac
29979 ac_MKDIR_P=$MKDIR_P
29980 case $MKDIR_P in
29981 [\\/$]* | ?:[\\/]* ) ;;
29982 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 29983 esac
5213506e 29984_ACEOF
6de9cd9a 29985
5213506e
RW
29986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29987# If the template does not know about datarootdir, expand it.
29988# FIXME: This hack should be removed a few years after 2.60.
29989ac_datarootdir_hack=; ac_datarootdir_seen=
29990ac_sed_dataroot='
29991/datarootdir/ {
29992 p
29993 q
29994}
29995/@datadir@/p
29996/@docdir@/p
29997/@infodir@/p
29998/@localedir@/p
29999/@mandir@/p'
30000case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30001*datarootdir*) ac_datarootdir_seen=yes;;
30002*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30004$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30005_ACEOF
30006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30007 ac_datarootdir_hack='
30008 s&@datadir@&$datadir&g
30009 s&@docdir@&$docdir&g
30010 s&@infodir@&$infodir&g
30011 s&@localedir@&$localedir&g
30012 s&@mandir@&$mandir&g
30013 s&\\\${datarootdir}&$datarootdir&g' ;;
30014esac
78511f8b 30015_ACEOF
5213506e
RW
30016
30017# Neutralize VPATH when `$srcdir' = `.'.
30018# Shell code in configure.ac might set extrasub.
30019# FIXME: do we really want to maintain this feature?
30020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30021ac_sed_extra="$ac_vpsub
6de9cd9a
DN
30022$extrasub
30023_ACEOF
5213506e 30024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
30025:t
30026/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
30027s|@configure_input@|$ac_sed_conf_input|;t t
30028s&@top_builddir@&$ac_top_builddir_sub&;t t
30029s&@top_build_prefix@&$ac_top_build_prefix&;t t
30030s&@srcdir@&$ac_srcdir&;t t
30031s&@abs_srcdir@&$ac_abs_srcdir&;t t
30032s&@top_srcdir@&$ac_top_srcdir&;t t
30033s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30034s&@builddir@&$ac_builddir&;t t
30035s&@abs_builddir@&$ac_abs_builddir&;t t
30036s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30037s&@INSTALL@&$ac_INSTALL&;t t
30038s&@MKDIR_P@&$ac_MKDIR_P&;t t
30039$ac_datarootdir_hack
30040"
22e05272
JM
30041eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30042 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
30043
30044test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
30045 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30047 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 30048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 30049which seems to be undefined. Please make sure it is defined" >&5
5213506e 30050$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 30051which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 30052
22e05272 30053 rm -f "$ac_tmp/stdin"
6de9cd9a 30054 case $ac_file in
22e05272
JM
30055 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30056 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 30057 esac \
22e05272 30058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
30059 ;;
30060 :H)
30061 #
30062 # CONFIG_HEADER
30063 #
6de9cd9a 30064 if test x"$ac_file" != x-; then
5213506e
RW
30065 {
30066 $as_echo "/* $configure_input */" \
22e05272
JM
30067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30068 } >"$ac_tmp/config.h" \
30069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30070 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30072$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 30073 else
5213506e 30074 rm -f "$ac_file"
22e05272
JM
30075 mv "$ac_tmp/config.h" "$ac_file" \
30076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
30077 fi
30078 else
5213506e 30079 $as_echo "/* $configure_input */" \
22e05272
JM
30080 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30081 || as_fn_error $? "could not create -" "$LINENO" 5
6de9cd9a 30082 fi
5213506e
RW
30083# Compute "$ac_file"'s index in $config_headers.
30084_am_arg="$ac_file"
6de9cd9a
DN
30085_am_stamp_count=1
30086for _am_header in $config_headers :; do
30087 case $_am_header in
5213506e 30088 $_am_arg | $_am_arg:* )
6de9cd9a
DN
30089 break ;;
30090 * )
30091 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30092 esac
30093done
5213506e
RW
30094echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30095$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30096 X"$_am_arg" : 'X\(//\)[^/]' \| \
30097 X"$_am_arg" : 'X\(//\)$' \| \
30098 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30099$as_echo X"$_am_arg" |
30100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30101 s//\1/
30102 q
30103 }
30104 /^X\(\/\/\)[^/].*/{
30105 s//\1/
30106 q
30107 }
30108 /^X\(\/\/\)$/{
30109 s//\1/
30110 q
30111 }
30112 /^X\(\/\).*/{
30113 s//\1/
30114 q
30115 }
30116 s/.*/./; q'`/stamp-h$_am_stamp_count
30117 ;;
38d24731 30118
5213506e
RW
30119 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30120$as_echo "$as_me: executing $ac_file commands" >&6;}
30121 ;;
30122 esac
6de9cd9a
DN
30123
30124
5213506e
RW
30125 case $ac_file$ac_mode in
30126 "default-1":C)
96b8a615
AJ
30127# Only add multilib support code if we just rebuilt the top-level
30128# Makefile.
30129case " $CONFIG_FILES " in
30130 *" Makefile "*)
30131 ac_file=Makefile . ${multi_basedir}/config-ml.in
30132 ;;
30133esac ;;
5213506e 30134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 30135 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
30136 # are listed without --file. Let's play safe and only enable the eval
30137 # if we detect the quoting.
30138 case $CONFIG_FILES in
30139 *\'*) eval set x "$CONFIG_FILES" ;;
30140 *) set x $CONFIG_FILES ;;
30141 esac
30142 shift
30143 for mf
30144 do
30145 # Strip MF so we end up with the name of the file.
30146 mf=`echo "$mf" | sed -e 's/:.*$//'`
30147 # Check whether this is an Automake generated Makefile or not.
22e05272 30148 # We used to match only the files named 'Makefile.in', but
5213506e
RW
30149 # some people rename them; so instead we look at the file content.
30150 # Grep'ing the first line is not enough: some people post-process
30151 # each Makefile.in and add a new line on top of each file to say so.
30152 # Grep'ing the whole file is not good either: AIX grep has a line
30153 # limit of 2048, but all sed's we know have understand at least 4000.
30154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30155 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
30156$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30157 X"$mf" : 'X\(//\)[^/]' \| \
30158 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
30159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30160$as_echo X"$mf" |
30161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30162 s//\1/
30163 q
30164 }
30165 /^X\(\/\/\)[^/].*/{
30166 s//\1/
30167 q
30168 }
30169 /^X\(\/\/\)$/{
30170 s//\1/
30171 q
30172 }
30173 /^X\(\/\).*/{
30174 s//\1/
30175 q
30176 }
30177 s/.*/./; q'`
30178 else
30179 continue
30180 fi
30181 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 30182 # from the Makefile without running 'make'.
5213506e
RW
30183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30184 test -z "$DEPDIR" && continue
30185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 30186 test -z "$am__include" && continue
5213506e 30187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
30188 # Find all dependency output files, they are included files with
30189 # $(DEPDIR) in their names. We invoke sed twice because it is the
30190 # simplest approach to changing $(DEPDIR) to its actual value in the
30191 # expansion.
30192 for file in `sed -n "
30193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 30194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
30195 # Make sure the directory exists.
30196 test -f "$dirpart/$file" && continue
30197 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
30198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30199 X"$file" : 'X\(//\)[^/]' \| \
30200 X"$file" : 'X\(//\)$' \| \
5213506e
RW
30201 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30202$as_echo X"$file" |
30203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30204 s//\1/
30205 q
30206 }
30207 /^X\(\/\/\)[^/].*/{
30208 s//\1/
30209 q
30210 }
30211 /^X\(\/\/\)$/{
30212 s//\1/
30213 q
30214 }
30215 /^X\(\/\).*/{
30216 s//\1/
30217 q
30218 }
30219 s/.*/./; q'`
30220 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30221 # echo "creating $dirpart/$file"
30222 echo '# dummy' > "$dirpart/$file"
679c0f9a 30223 done
679c0f9a 30224 done
5213506e 30225}
1cf3d07d 30226 ;;
5213506e 30227 "libtool":C)
1cf3d07d
SE
30228
30229 # See if we are running on zsh, and set the options which allow our
30230 # commands through without removal of \ escapes.
30231 if test -n "${ZSH_VERSION+set}" ; then
30232 setopt NO_GLOB_SUBST
30233 fi
30234
30235 cfgfile="${ofile}T"
30236 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30237 $RM "$cfgfile"
30238
30239 cat <<_LT_EOF >> "$cfgfile"
30240#! $SHELL
30241
30242# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 30243# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
30244# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30245# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30246#
d58dead8 30247# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 30248# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 30249# Written by Gordon Matzigkeit, 1996
1cf3d07d 30250#
d58dead8 30251# This file is part of GNU Libtool.
1cf3d07d 30252#
d58dead8
PG
30253# GNU Libtool is free software; you can redistribute it and/or
30254# modify it under the terms of the GNU General Public License as
30255# published by the Free Software Foundation; either version 2 of
30256# the License, or (at your option) any later version.
1cf3d07d 30257#
d58dead8
PG
30258# As a special exception to the GNU General Public License,
30259# if you distribute this file as part of a program or library that
30260# is built using GNU Libtool, you may include this file under the
30261# same distribution terms that you use for the rest of that program.
1cf3d07d 30262#
d58dead8
PG
30263# GNU Libtool is distributed in the hope that it will be useful,
30264# but WITHOUT ANY WARRANTY; without even the implied warranty of
30265# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30266# GNU General Public License for more details.
1cf3d07d 30267#
d58dead8
PG
30268# You should have received a copy of the GNU General Public License
30269# along with GNU Libtool; see the file COPYING. If not, a copy
30270# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30271# obtained by writing to the Free Software Foundation, Inc.,
30272# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
30273
30274
30275# The names of the tagged configurations supported by this script.
30276available_tags="FC "
30277
30278# ### BEGIN LIBTOOL CONFIG
30279
66dbcf2d
RO
30280# A sed program that does not truncate output.
30281SED=$lt_SED
30282
30283# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30284Xsed="\$SED -e 1s/^X//"
30285
30286# A grep program that handles long lines.
30287GREP=$lt_GREP
30288
30289# An ERE matcher.
30290EGREP=$lt_EGREP
30291
30292# A literal string matcher.
30293FGREP=$lt_FGREP
30294
30295# Shell to use when invoking shell scripts.
30296SHELL=$lt_SHELL
30297
30298# An echo program that protects backslashes.
30299ECHO=$lt_ECHO
30300
1cf3d07d
SE
30301# Which release of libtool.m4 was used?
30302macro_version=$macro_version
30303macro_revision=$macro_revision
30304
30305# Whether or not to build shared libraries.
30306build_libtool_libs=$enable_shared
30307
30308# Whether or not to build static libraries.
30309build_old_libs=$enable_static
30310
30311# What type of objects to build.
30312pic_mode=$pic_mode
30313
30314# Whether or not to optimize for fast installation.
30315fast_install=$enable_fast_install
30316
30317# The host system.
30318host_alias=$host_alias
30319host=$host
30320host_os=$host_os
30321
30322# The build system.
30323build_alias=$build_alias
30324build=$build
30325build_os=$build_os
30326
1cf3d07d
SE
30327# A BSD- or MS-compatible name lister.
30328NM=$lt_NM
30329
30330# Whether we need soft or hard links.
30331LN_S=$lt_LN_S
30332
30333# What is the maximum length of a command?
30334max_cmd_len=$max_cmd_len
30335
30336# Object file suffix (normally "o").
30337objext=$ac_objext
30338
30339# Executable file suffix (normally "").
30340exeext=$exeext
30341
30342# whether the shell understands "unset".
30343lt_unset=$lt_unset
30344
30345# turn spaces into newlines.
30346SP2NL=$lt_lt_SP2NL
30347
30348# turn newlines into spaces.
30349NL2SP=$lt_lt_NL2SP
30350
d58dead8
PG
30351# An object symbol dumper.
30352OBJDUMP=$lt_OBJDUMP
30353
1cf3d07d
SE
30354# Method to check whether dependent libraries are shared objects.
30355deplibs_check_method=$lt_deplibs_check_method
30356
30357# Command to use when deplibs_check_method == "file_magic".
30358file_magic_cmd=$lt_file_magic_cmd
30359
30360# The archiver.
30361AR=$lt_AR
30362AR_FLAGS=$lt_AR_FLAGS
30363
30364# A symbol stripping program.
30365STRIP=$lt_STRIP
30366
30367# Commands used to install an old-style archive.
30368RANLIB=$lt_RANLIB
30369old_postinstall_cmds=$lt_old_postinstall_cmds
30370old_postuninstall_cmds=$lt_old_postuninstall_cmds
30371
43e02a8a
RW
30372# Whether to use a lock for old archive extraction.
30373lock_old_archive_extraction=$lock_old_archive_extraction
30374
1cf3d07d
SE
30375# A C compiler.
30376LTCC=$lt_CC
30377
30378# LTCC compiler flags.
30379LTCFLAGS=$lt_CFLAGS
30380
30381# Take the output of nm and produce a listing of raw symbols and C names.
30382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30383
30384# Transform the output of nm in a proper C declaration.
30385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30386
30387# Transform the output of nm in a C name address pair.
30388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30389
d58dead8
PG
30390# Transform the output of nm in a C name address pair when lib prefix is needed.
30391global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30392
1cf3d07d
SE
30393# The name of the directory that contains temporary libtool files.
30394objdir=$objdir
30395
1cf3d07d
SE
30396# Used to examine libraries when file_magic_cmd begins with "file".
30397MAGIC_CMD=$MAGIC_CMD
30398
30399# Must we lock files when doing compilation?
30400need_locks=$lt_need_locks
30401
d58dead8
PG
30402# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30403DSYMUTIL=$lt_DSYMUTIL
30404
30405# Tool to change global to local symbols on Mac OS X.
30406NMEDIT=$lt_NMEDIT
30407
30408# Tool to manipulate fat objects and archives on Mac OS X.
30409LIPO=$lt_LIPO
30410
30411# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30412OTOOL=$lt_OTOOL
30413
30414# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30415OTOOL64=$lt_OTOOL64
30416
1cf3d07d
SE
30417# Old archive suffix (normally "a").
30418libext=$libext
30419
30420# Shared library suffix (normally ".so").
30421shrext_cmds=$lt_shrext_cmds
30422
30423# The commands to extract the exported symbol list from a shared archive.
30424extract_expsyms_cmds=$lt_extract_expsyms_cmds
30425
30426# Variables whose values should be saved in libtool wrapper scripts and
30427# restored at link time.
30428variables_saved_for_relink=$lt_variables_saved_for_relink
30429
30430# Do we need the "lib" prefix for modules?
30431need_lib_prefix=$need_lib_prefix
30432
30433# Do we need a version for libraries?
30434need_version=$need_version
30435
30436# Library versioning type.
30437version_type=$version_type
30438
30439# Shared library runtime path variable.
30440runpath_var=$runpath_var
30441
30442# Shared library path variable.
30443shlibpath_var=$shlibpath_var
30444
30445# Is shlibpath searched before the hard-coded library search path?
30446shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30447
30448# Format of library name prefix.
30449libname_spec=$lt_libname_spec
30450
30451# List of archive names. First name is the real one, the rest are links.
30452# The last name is the one that the linker finds with -lNAME
30453library_names_spec=$lt_library_names_spec
30454
30455# The coded name of the library, if different from the real name.
30456soname_spec=$lt_soname_spec
30457
43e02a8a
RW
30458# Permission mode override for installation of shared libraries.
30459install_override_mode=$lt_install_override_mode
30460
1cf3d07d
SE
30461# Command to use after installation of a shared archive.
30462postinstall_cmds=$lt_postinstall_cmds
30463
30464# Command to use after uninstallation of a shared archive.
30465postuninstall_cmds=$lt_postuninstall_cmds
30466
30467# Commands used to finish a libtool library installation in a directory.
30468finish_cmds=$lt_finish_cmds
30469
30470# As "finish_cmds", except a single script fragment to be evaled but
30471# not shown.
30472finish_eval=$lt_finish_eval
30473
30474# Whether we should hardcode library paths into libraries.
30475hardcode_into_libs=$hardcode_into_libs
30476
30477# Compile-time system search path for libraries.
30478sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30479
30480# Run-time system search path for libraries.
30481sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30482
30483# Whether dlopen is supported.
30484dlopen_support=$enable_dlopen
30485
30486# Whether dlopen of programs is supported.
30487dlopen_self=$enable_dlopen_self
30488
30489# Whether dlopen of statically linked programs is supported.
30490dlopen_self_static=$enable_dlopen_self_static
30491
30492# Commands to strip libraries.
30493old_striplib=$lt_old_striplib
30494striplib=$lt_striplib
30495
30496
30497# The linker used to build libraries.
30498LD=$lt_LD
30499
43e02a8a
RW
30500# How to create reloadable object files.
30501reload_flag=$lt_reload_flag
30502reload_cmds=$lt_reload_cmds
30503
1cf3d07d
SE
30504# Commands used to build an old-style archive.
30505old_archive_cmds=$lt_old_archive_cmds
30506
30507# A language specific compiler.
30508CC=$lt_compiler
30509
30510# Is the compiler the GNU compiler?
30511with_gcc=$GCC
30512
30513# Compiler flag to turn off builtin functions.
30514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30515
30516# How to pass a linker flag through the compiler.
30517wl=$lt_lt_prog_compiler_wl
30518
30519# Additional compiler flags for building library objects.
30520pic_flag=$lt_lt_prog_compiler_pic
30521
30522# Compiler flag to prevent dynamic linking.
30523link_static_flag=$lt_lt_prog_compiler_static
30524
30525# Does compiler simultaneously support -c and -o options?
30526compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30527
30528# Whether or not to add -lc for building shared libraries.
30529build_libtool_need_lc=$archive_cmds_need_lc
30530
30531# Whether or not to disallow shared libs when runtime libs are static.
30532allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30533
30534# Compiler flag to allow reflexive dlopens.
30535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30536
30537# Compiler flag to generate shared objects directly from archives.
30538whole_archive_flag_spec=$lt_whole_archive_flag_spec
30539
30540# Whether the compiler copes with passing no objects directly.
30541compiler_needs_object=$lt_compiler_needs_object
30542
30543# Create an old-style archive from a shared archive.
30544old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30545
30546# Create a temporary old-style archive to link instead of a shared archive.
30547old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30548
30549# Commands used to build a shared archive.
30550archive_cmds=$lt_archive_cmds
30551archive_expsym_cmds=$lt_archive_expsym_cmds
30552
30553# Commands used to build a loadable module if different from building
30554# a shared archive.
30555module_cmds=$lt_module_cmds
30556module_expsym_cmds=$lt_module_expsym_cmds
30557
30558# Whether we are building with GNU ld or not.
30559with_gnu_ld=$lt_with_gnu_ld
30560
30561# Flag that allows shared libraries with undefined symbols to be built.
30562allow_undefined_flag=$lt_allow_undefined_flag
30563
30564# Flag that enforces no undefined symbols.
30565no_undefined_flag=$lt_no_undefined_flag
30566
30567# Flag to hardcode \$libdir into a binary during linking.
30568# This must work even if \$libdir does not exist
30569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30570
30571# If ld is used when linking, flag to hardcode \$libdir into a binary
30572# during linking. This must work even if \$libdir does not exist.
30573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30574
30575# Whether we need a single "-rpath" flag with a separated argument.
30576hardcode_libdir_separator=$lt_hardcode_libdir_separator
30577
30578# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30579# DIR into the resulting binary.
30580hardcode_direct=$hardcode_direct
30581
30582# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30583# DIR into the resulting binary and the resulting library dependency is
30584# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30585# library is relocated.
30586hardcode_direct_absolute=$hardcode_direct_absolute
30587
30588# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30589# into the resulting binary.
30590hardcode_minus_L=$hardcode_minus_L
30591
30592# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30593# into the resulting binary.
30594hardcode_shlibpath_var=$hardcode_shlibpath_var
30595
30596# Set to "yes" if building a shared library automatically hardcodes DIR
30597# into the library and all subsequent libraries and executables linked
30598# against it.
30599hardcode_automatic=$hardcode_automatic
30600
30601# Set to yes if linker adds runtime paths of dependent libraries
30602# to runtime path list.
30603inherit_rpath=$inherit_rpath
30604
30605# Whether libtool must link a program against all its dependency libraries.
30606link_all_deplibs=$link_all_deplibs
30607
30608# Fix the shell variable \$srcfile for the compiler.
30609fix_srcfile_path=$lt_fix_srcfile_path
30610
30611# Set to "yes" if exported symbols are required.
30612always_export_symbols=$always_export_symbols
30613
30614# The commands to list exported symbols.
30615export_symbols_cmds=$lt_export_symbols_cmds
30616
30617# Symbols that should not be listed in the preloaded symbols.
30618exclude_expsyms=$lt_exclude_expsyms
30619
30620# Symbols that must always be exported.
30621include_expsyms=$lt_include_expsyms
30622
30623# Commands necessary for linking programs (against libraries) with templates.
30624prelink_cmds=$lt_prelink_cmds
30625
30626# Specify filename containing input files.
30627file_list_spec=$lt_file_list_spec
30628
30629# How to hardcode a shared library path into an executable.
30630hardcode_action=$hardcode_action
30631
d58dead8
PG
30632# The directories searched by this compiler when creating a shared library.
30633compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30634
1cf3d07d
SE
30635# Dependencies to place before and after the objects being linked to
30636# create a shared library.
30637predep_objects=$lt_predep_objects
30638postdep_objects=$lt_postdep_objects
30639predeps=$lt_predeps
30640postdeps=$lt_postdeps
30641
30642# The library search path used internally by the compiler when linking
30643# a shared library.
30644compiler_lib_search_path=$lt_compiler_lib_search_path
30645
30646# ### END LIBTOOL CONFIG
30647
30648_LT_EOF
30649
30650 case $host_os in
30651 aix3*)
30652 cat <<\_LT_EOF >> "$cfgfile"
30653# AIX sometimes has problems with the GCC collect2 program. For some
30654# reason, if we set the COLLECT_NAMES environment variable, the problems
30655# vanish in a puff of smoke.
30656if test "X${COLLECT_NAMES+set}" != Xset; then
30657 COLLECT_NAMES=
30658 export COLLECT_NAMES
30659fi
30660_LT_EOF
30661 ;;
30662 esac
30663
30664
30665ltmain="$ac_aux_dir/ltmain.sh"
30666
30667
30668 # We use sed instead of cat because bash on DJGPP gets confused if
30669 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30670 # text mode, it properly converts lines to CR/LF. This bash problem
30671 # is reportedly fixed, but why not run on old versions too?
30672 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30673 || (rm -f "$cfgfile"; exit 1)
30674
30675 case $xsi_shell in
30676 yes)
30677 cat << \_LT_EOF >> "$cfgfile"
d58dead8 30678
1cf3d07d
SE
30679# func_dirname file append nondir_replacement
30680# Compute the dirname of FILE. If nonempty, add APPEND to the result,
30681# otherwise set result to NONDIR_REPLACEMENT.
30682func_dirname ()
30683{
30684 case ${1} in
30685 */*) func_dirname_result="${1%/*}${2}" ;;
30686 * ) func_dirname_result="${3}" ;;
30687 esac
30688}
30689
30690# func_basename file
30691func_basename ()
30692{
30693 func_basename_result="${1##*/}"
30694}
30695
d58dead8
PG
30696# func_dirname_and_basename file append nondir_replacement
30697# perform func_basename and func_dirname in a single function
30698# call:
30699# dirname: Compute the dirname of FILE. If nonempty,
30700# add APPEND to the result, otherwise set result
30701# to NONDIR_REPLACEMENT.
30702# value returned in "$func_dirname_result"
30703# basename: Compute filename of FILE.
30704# value retuned in "$func_basename_result"
30705# Implementation must be kept synchronized with func_dirname
30706# and func_basename. For efficiency, we do not delegate to
30707# those functions but instead duplicate the functionality here.
30708func_dirname_and_basename ()
30709{
30710 case ${1} in
30711 */*) func_dirname_result="${1%/*}${2}" ;;
30712 * ) func_dirname_result="${3}" ;;
30713 esac
30714 func_basename_result="${1##*/}"
30715}
30716
1cf3d07d
SE
30717# func_stripname prefix suffix name
30718# strip PREFIX and SUFFIX off of NAME.
30719# PREFIX and SUFFIX must not contain globbing or regex special
30720# characters, hashes, percent signs, but SUFFIX may contain a leading
30721# dot (in which case that matches only a dot).
30722func_stripname ()
30723{
30724 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30725 # positional parameters, so assign one to ordinary parameter first.
30726 func_stripname_result=${3}
30727 func_stripname_result=${func_stripname_result#"${1}"}
30728 func_stripname_result=${func_stripname_result%"${2}"}
30729}
30730
30731# func_opt_split
30732func_opt_split ()
30733{
30734 func_opt_split_opt=${1%%=*}
30735 func_opt_split_arg=${1#*=}
30736}
30737
30738# func_lo2o object
30739func_lo2o ()
30740{
30741 case ${1} in
30742 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30743 *) func_lo2o_result=${1} ;;
30744 esac
30745}
d58dead8
PG
30746
30747# func_xform libobj-or-source
30748func_xform ()
30749{
30750 func_xform_result=${1%.*}.lo
30751}
30752
30753# func_arith arithmetic-term...
30754func_arith ()
30755{
30756 func_arith_result=$(( $* ))
30757}
30758
30759# func_len string
30760# STRING may not start with a hyphen.
30761func_len ()
30762{
30763 func_len_result=${#1}
30764}
30765
1cf3d07d
SE
30766_LT_EOF
30767 ;;
30768 *) # Bourne compatible functions.
30769 cat << \_LT_EOF >> "$cfgfile"
d58dead8 30770
1cf3d07d
SE
30771# func_dirname file append nondir_replacement
30772# Compute the dirname of FILE. If nonempty, add APPEND to the result,
30773# otherwise set result to NONDIR_REPLACEMENT.
30774func_dirname ()
30775{
30776 # Extract subdirectory from the argument.
43e02a8a 30777 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
30778 if test "X$func_dirname_result" = "X${1}"; then
30779 func_dirname_result="${3}"
30780 else
30781 func_dirname_result="$func_dirname_result${2}"
30782 fi
30783}
30784
30785# func_basename file
30786func_basename ()
30787{
43e02a8a 30788 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
30789}
30790
d58dead8 30791
1cf3d07d
SE
30792# func_stripname prefix suffix name
30793# strip PREFIX and SUFFIX off of NAME.
30794# PREFIX and SUFFIX must not contain globbing or regex special
30795# characters, hashes, percent signs, but SUFFIX may contain a leading
30796# dot (in which case that matches only a dot).
30797# func_strip_suffix prefix name
30798func_stripname ()
30799{
30800 case ${2} in
43e02a8a
RW
30801 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
30802 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
30803 esac
30804}
30805
30806# sed scripts:
30807my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30808my_sed_long_arg='1s/^-[^=]*=//'
30809
30810# func_opt_split
30811func_opt_split ()
30812{
43e02a8a
RW
30813 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
30814 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
30815}
30816
30817# func_lo2o object
30818func_lo2o ()
30819{
43e02a8a 30820 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 30821}
d58dead8
PG
30822
30823# func_xform libobj-or-source
30824func_xform ()
30825{
43e02a8a 30826 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
30827}
30828
30829# func_arith arithmetic-term...
30830func_arith ()
30831{
30832 func_arith_result=`expr "$@"`
30833}
30834
30835# func_len string
30836# STRING may not start with a hyphen.
30837func_len ()
30838{
30839 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30840}
30841
1cf3d07d
SE
30842_LT_EOF
30843esac
30844
30845case $lt_shell_append in
30846 yes)
30847 cat << \_LT_EOF >> "$cfgfile"
30848
30849# func_append var value
30850# Append VALUE to the end of shell variable VAR.
30851func_append ()
30852{
30853 eval "$1+=\$2"
30854}
30855_LT_EOF
30856 ;;
30857 *)
30858 cat << \_LT_EOF >> "$cfgfile"
30859
30860# func_append var value
30861# Append VALUE to the end of shell variable VAR.
30862func_append ()
30863{
30864 eval "$1=\$$1\$2"
30865}
d58dead8 30866
1cf3d07d
SE
30867_LT_EOF
30868 ;;
30869 esac
30870
30871
30872 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30873 || (rm -f "$cfgfile"; exit 1)
30874
30875 mv -f "$cfgfile" "$ofile" ||
30876 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30877 chmod +x "$ofile"
30878
30879
30880 cat <<_LT_EOF >> "$ofile"
30881
30882# ### BEGIN LIBTOOL TAG CONFIG: FC
30883
30884# The linker used to build libraries.
30885LD=$lt_LD_FC
30886
43e02a8a
RW
30887# How to create reloadable object files.
30888reload_flag=$lt_reload_flag_FC
30889reload_cmds=$lt_reload_cmds_FC
30890
1cf3d07d
SE
30891# Commands used to build an old-style archive.
30892old_archive_cmds=$lt_old_archive_cmds_FC
30893
30894# A language specific compiler.
30895CC=$lt_compiler_FC
30896
30897# Is the compiler the GNU compiler?
30898with_gcc=$GCC_FC
30899
30900# Compiler flag to turn off builtin functions.
30901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
30902
30903# How to pass a linker flag through the compiler.
30904wl=$lt_lt_prog_compiler_wl_FC
30905
30906# Additional compiler flags for building library objects.
30907pic_flag=$lt_lt_prog_compiler_pic_FC
30908
30909# Compiler flag to prevent dynamic linking.
30910link_static_flag=$lt_lt_prog_compiler_static_FC
30911
30912# Does compiler simultaneously support -c and -o options?
30913compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
30914
30915# Whether or not to add -lc for building shared libraries.
30916build_libtool_need_lc=$archive_cmds_need_lc_FC
30917
30918# Whether or not to disallow shared libs when runtime libs are static.
30919allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
30920
30921# Compiler flag to allow reflexive dlopens.
30922export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
30923
30924# Compiler flag to generate shared objects directly from archives.
30925whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
30926
30927# Whether the compiler copes with passing no objects directly.
30928compiler_needs_object=$lt_compiler_needs_object_FC
30929
30930# Create an old-style archive from a shared archive.
30931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
30932
30933# Create a temporary old-style archive to link instead of a shared archive.
30934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
30935
30936# Commands used to build a shared archive.
30937archive_cmds=$lt_archive_cmds_FC
30938archive_expsym_cmds=$lt_archive_expsym_cmds_FC
30939
30940# Commands used to build a loadable module if different from building
30941# a shared archive.
30942module_cmds=$lt_module_cmds_FC
30943module_expsym_cmds=$lt_module_expsym_cmds_FC
30944
30945# Whether we are building with GNU ld or not.
30946with_gnu_ld=$lt_with_gnu_ld_FC
30947
30948# Flag that allows shared libraries with undefined symbols to be built.
30949allow_undefined_flag=$lt_allow_undefined_flag_FC
30950
30951# Flag that enforces no undefined symbols.
30952no_undefined_flag=$lt_no_undefined_flag_FC
30953
30954# Flag to hardcode \$libdir into a binary during linking.
30955# This must work even if \$libdir does not exist
30956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
30957
30958# If ld is used when linking, flag to hardcode \$libdir into a binary
30959# during linking. This must work even if \$libdir does not exist.
30960hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
30961
30962# Whether we need a single "-rpath" flag with a separated argument.
30963hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
30964
30965# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30966# DIR into the resulting binary.
30967hardcode_direct=$hardcode_direct_FC
30968
30969# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30970# DIR into the resulting binary and the resulting library dependency is
30971# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30972# library is relocated.
30973hardcode_direct_absolute=$hardcode_direct_absolute_FC
30974
30975# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30976# into the resulting binary.
30977hardcode_minus_L=$hardcode_minus_L_FC
30978
30979# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30980# into the resulting binary.
30981hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
30982
30983# Set to "yes" if building a shared library automatically hardcodes DIR
30984# into the library and all subsequent libraries and executables linked
30985# against it.
30986hardcode_automatic=$hardcode_automatic_FC
30987
30988# Set to yes if linker adds runtime paths of dependent libraries
30989# to runtime path list.
30990inherit_rpath=$inherit_rpath_FC
30991
30992# Whether libtool must link a program against all its dependency libraries.
30993link_all_deplibs=$link_all_deplibs_FC
30994
30995# Fix the shell variable \$srcfile for the compiler.
30996fix_srcfile_path=$lt_fix_srcfile_path_FC
30997
30998# Set to "yes" if exported symbols are required.
30999always_export_symbols=$always_export_symbols_FC
31000
31001# The commands to list exported symbols.
31002export_symbols_cmds=$lt_export_symbols_cmds_FC
31003
31004# Symbols that should not be listed in the preloaded symbols.
31005exclude_expsyms=$lt_exclude_expsyms_FC
31006
31007# Symbols that must always be exported.
31008include_expsyms=$lt_include_expsyms_FC
31009
31010# Commands necessary for linking programs (against libraries) with templates.
31011prelink_cmds=$lt_prelink_cmds_FC
31012
31013# Specify filename containing input files.
31014file_list_spec=$lt_file_list_spec_FC
31015
31016# How to hardcode a shared library path into an executable.
31017hardcode_action=$hardcode_action_FC
31018
d58dead8
PG
31019# The directories searched by this compiler when creating a shared library.
31020compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
31021
1cf3d07d
SE
31022# Dependencies to place before and after the objects being linked to
31023# create a shared library.
31024predep_objects=$lt_predep_objects_FC
31025postdep_objects=$lt_postdep_objects_FC
31026predeps=$lt_predeps_FC
31027postdeps=$lt_postdeps_FC
31028
31029# The library search path used internally by the compiler when linking
31030# a shared library.
31031compiler_lib_search_path=$lt_compiler_lib_search_path_FC
31032
31033# ### END LIBTOOL TAG CONFIG: FC
31034_LT_EOF
31035
679c0f9a 31036 ;;
5213506e 31037 "gstdint.h":C)
c13e029b
PB
31038if test "$GCC" = yes; then
31039 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
31040else
31041 echo "/* generated for $CC */" > tmp-stdint.h
31042fi
4c4b3eb0 31043
c13e029b
PB
31044sed 's/^ *//' >> tmp-stdint.h <<EOF
31045
31046 #ifndef GCC_GENERATED_STDINT_H
31047 #define GCC_GENERATED_STDINT_H 1
31048
31049 #include <sys/types.h>
4c4b3eb0 31050EOF
4c4b3eb0 31051
c13e029b
PB
31052if test "$acx_cv_header_stdint" != stdint.h; then
31053 echo "#include <stddef.h>" >> tmp-stdint.h
31054fi
31055if test "$acx_cv_header_stdint" != stddef.h; then
31056 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
31057fi
31058
31059sed 's/^ *//' >> tmp-stdint.h <<EOF
31060 /* glibc uses these symbols as guards to prevent redefinitions. */
31061 #ifdef __int8_t_defined
31062 #define _INT8_T
31063 #define _INT16_T
31064 #define _INT32_T
31065 #endif
31066 #ifdef __uint32_t_defined
31067 #define _UINT32_T
31068 #endif
31069
31070EOF
31071
31072# ----------------- done header, emit basic int types -------------
31073if test "$acx_cv_header_stdint" = stddef.h; then
31074 sed 's/^ *//' >> tmp-stdint.h <<EOF
31075
31076 #ifndef _UINT8_T
31077 #define _UINT8_T
31078 #ifndef __uint8_t_defined
31079 #define __uint8_t_defined
b9497ab5 31080 #ifndef uint8_t
c13e029b
PB
31081 typedef unsigned $acx_cv_type_int8_t uint8_t;
31082 #endif
31083 #endif
b9497ab5 31084 #endif
c13e029b
PB
31085
31086 #ifndef _UINT16_T
31087 #define _UINT16_T
31088 #ifndef __uint16_t_defined
31089 #define __uint16_t_defined
b9497ab5 31090 #ifndef uint16_t
c13e029b
PB
31091 typedef unsigned $acx_cv_type_int16_t uint16_t;
31092 #endif
31093 #endif
b9497ab5 31094 #endif
c13e029b
PB
31095
31096 #ifndef _UINT32_T
31097 #define _UINT32_T
31098 #ifndef __uint32_t_defined
31099 #define __uint32_t_defined
b9497ab5 31100 #ifndef uint32_t
c13e029b
PB
31101 typedef unsigned $acx_cv_type_int32_t uint32_t;
31102 #endif
31103 #endif
b9497ab5 31104 #endif
c13e029b
PB
31105
31106 #ifndef _INT8_T
31107 #define _INT8_T
31108 #ifndef __int8_t_defined
31109 #define __int8_t_defined
b9497ab5 31110 #ifndef int8_t
c13e029b
PB
31111 typedef $acx_cv_type_int8_t int8_t;
31112 #endif
31113 #endif
b9497ab5 31114 #endif
c13e029b
PB
31115
31116 #ifndef _INT16_T
31117 #define _INT16_T
31118 #ifndef __int16_t_defined
31119 #define __int16_t_defined
b9497ab5 31120 #ifndef int16_t
c13e029b
PB
31121 typedef $acx_cv_type_int16_t int16_t;
31122 #endif
31123 #endif
b9497ab5 31124 #endif
c13e029b
PB
31125
31126 #ifndef _INT32_T
31127 #define _INT32_T
31128 #ifndef __int32_t_defined
31129 #define __int32_t_defined
b9497ab5 31130 #ifndef int32_t
c13e029b
PB
31131 typedef $acx_cv_type_int32_t int32_t;
31132 #endif
31133 #endif
b9497ab5 31134 #endif
c13e029b
PB
31135EOF
31136elif test "$ac_cv_type_u_int32_t" = yes; then
31137 sed 's/^ *//' >> tmp-stdint.h <<EOF
31138
31139 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
31140 #ifndef _INT8_T
31141 #define _INT8_T
31142 #endif
31143 #ifndef _INT16_T
31144 #define _INT16_T
31145 #endif
31146 #ifndef _INT32_T
31147 #define _INT32_T
31148 #endif
31149
31150 #ifndef _UINT8_T
31151 #define _UINT8_T
31152 #ifndef __uint8_t_defined
31153 #define __uint8_t_defined
b9497ab5 31154 #ifndef uint8_t
c13e029b
PB
31155 typedef u_int8_t uint8_t;
31156 #endif
31157 #endif
b9497ab5 31158 #endif
c13e029b
PB
31159
31160 #ifndef _UINT16_T
31161 #define _UINT16_T
31162 #ifndef __uint16_t_defined
31163 #define __uint16_t_defined
b9497ab5 31164 #ifndef uint16_t
c13e029b
PB
31165 typedef u_int16_t uint16_t;
31166 #endif
31167 #endif
b9497ab5 31168 #endif
c13e029b
PB
31169
31170 #ifndef _UINT32_T
31171 #define _UINT32_T
31172 #ifndef __uint32_t_defined
31173 #define __uint32_t_defined
b9497ab5 31174 #ifndef uint32_t
c13e029b
PB
31175 typedef u_int32_t uint32_t;
31176 #endif
31177 #endif
b9497ab5 31178 #endif
c13e029b
PB
31179EOF
31180else
31181 sed 's/^ *//' >> tmp-stdint.h <<EOF
31182
31183 /* Some systems have guard macros to prevent redefinitions, define them. */
31184 #ifndef _INT8_T
31185 #define _INT8_T
31186 #endif
31187 #ifndef _INT16_T
31188 #define _INT16_T
31189 #endif
31190 #ifndef _INT32_T
31191 #define _INT32_T
31192 #endif
31193 #ifndef _UINT8_T
31194 #define _UINT8_T
31195 #endif
31196 #ifndef _UINT16_T
31197 #define _UINT16_T
31198 #endif
31199 #ifndef _UINT32_T
31200 #define _UINT32_T
31201 #endif
31202EOF
31203fi
31204
31205# ------------- done basic int types, emit int64_t types ------------
31206if test "$ac_cv_type_uint64_t" = yes; then
31207 sed 's/^ *//' >> tmp-stdint.h <<EOF
31208
31209 /* system headers have good uint64_t and int64_t */
31210 #ifndef _INT64_T
31211 #define _INT64_T
31212 #endif
31213 #ifndef _UINT64_T
31214 #define _UINT64_T
31215 #endif
31216EOF
31217elif test "$ac_cv_type_u_int64_t" = yes; then
31218 sed 's/^ *//' >> tmp-stdint.h <<EOF
31219
31220 /* system headers have an u_int64_t (and int64_t) */
31221 #ifndef _INT64_T
31222 #define _INT64_T
31223 #endif
31224 #ifndef _UINT64_T
31225 #define _UINT64_T
31226 #ifndef __uint64_t_defined
31227 #define __uint64_t_defined
b9497ab5 31228 #ifndef uint64_t
c13e029b
PB
31229 typedef u_int64_t uint64_t;
31230 #endif
31231 #endif
b9497ab5 31232 #endif
c13e029b
PB
31233EOF
31234elif test -n "$acx_cv_type_int64_t"; then
31235 sed 's/^ *//' >> tmp-stdint.h <<EOF
31236
31237 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
31238 #ifndef _INT64_T
31239 #define _INT64_T
b9497ab5 31240 #ifndef int64_t
c13e029b
PB
31241 typedef $acx_cv_type_int64_t int64_t;
31242 #endif
b9497ab5 31243 #endif
c13e029b
PB
31244 #ifndef _UINT64_T
31245 #define _UINT64_T
31246 #ifndef __uint64_t_defined
31247 #define __uint64_t_defined
b9497ab5 31248 #ifndef uint64_t
c13e029b
PB
31249 typedef unsigned $acx_cv_type_int64_t uint64_t;
31250 #endif
31251 #endif
b9497ab5 31252 #endif
c13e029b
PB
31253EOF
31254else
31255 sed 's/^ *//' >> tmp-stdint.h <<EOF
31256
31257 /* some common heuristics for int64_t, using compiler-specific tests */
31258 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
31259 #ifndef _INT64_T
31260 #define _INT64_T
31261 #ifndef __int64_t_defined
b9497ab5 31262 #ifndef int64_t
c13e029b
PB
31263 typedef long long int64_t;
31264 #endif
31265 #endif
b9497ab5 31266 #endif
c13e029b
PB
31267 #ifndef _UINT64_T
31268 #define _UINT64_T
b9497ab5 31269 #ifndef uint64_t
c13e029b
PB
31270 typedef unsigned long long uint64_t;
31271 #endif
b9497ab5 31272 #endif
c13e029b
PB
31273
31274 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
31275 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
31276 does not implement __extension__. But that compiler doesn't define
31277 __GNUC_MINOR__. */
31278 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
31279 # define __extension__
31280 # endif
31281
31282 # ifndef _INT64_T
31283 # define _INT64_T
b9497ab5 31284 # ifndef int64_t
c13e029b
PB
31285 __extension__ typedef long long int64_t;
31286 # endif
b9497ab5 31287 # endif
c13e029b
PB
31288 # ifndef _UINT64_T
31289 # define _UINT64_T
b9497ab5 31290 # ifndef uint64_t
c13e029b
PB
31291 __extension__ typedef unsigned long long uint64_t;
31292 # endif
b9497ab5 31293 # endif
c13e029b
PB
31294
31295 #elif !defined __STRICT_ANSI__
31296 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
31297
31298 # ifndef _INT64_T
31299 # define _INT64_T
b9497ab5 31300 # ifndef int64_t
c13e029b
PB
31301 typedef __int64 int64_t;
31302 # endif
b9497ab5 31303 # endif
c13e029b
PB
31304 # ifndef _UINT64_T
31305 # define _UINT64_T
b9497ab5 31306 # ifndef uint64_t
c13e029b
PB
31307 typedef unsigned __int64 uint64_t;
31308 # endif
b9497ab5 31309 # endif
c13e029b
PB
31310 # endif /* compiler */
31311
31312 #endif /* ANSI version */
31313EOF
31314fi
31315
31316# ------------- done int64_t types, emit intptr types ------------
31317if test "$ac_cv_type_uintptr_t" != yes; then
31318 sed 's/^ *//' >> tmp-stdint.h <<EOF
31319
31320 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
31321 #ifndef __uintptr_t_defined
b9497ab5 31322 #ifndef uintptr_t
c13e029b
PB
31323 typedef u$acx_cv_type_intptr_t uintptr_t;
31324 #endif
b9497ab5 31325 #endif
c13e029b 31326 #ifndef __intptr_t_defined
b9497ab5 31327 #ifndef intptr_t
c13e029b
PB
31328 typedef $acx_cv_type_intptr_t intptr_t;
31329 #endif
b9497ab5 31330 #endif
c13e029b
PB
31331EOF
31332fi
31333
31334# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 31335if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 31336 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
31337
31338 /* Define int_least types */
31339 typedef int8_t int_least8_t;
31340 typedef int16_t int_least16_t;
31341 typedef int32_t int_least32_t;
c13e029b 31342 #ifdef _INT64_T
4c4b3eb0 31343 typedef int64_t int_least64_t;
c13e029b 31344 #endif
4c4b3eb0
PB
31345
31346 typedef uint8_t uint_least8_t;
31347 typedef uint16_t uint_least16_t;
31348 typedef uint32_t uint_least32_t;
c13e029b 31349 #ifdef _UINT64_T
4c4b3eb0 31350 typedef uint64_t uint_least64_t;
c13e029b 31351 #endif
4c4b3eb0
PB
31352EOF
31353fi
31354
c13e029b 31355# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 31356if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 31357 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
31358
31359 /* Define int_fast types. short is often slow */
31360 typedef int8_t int_fast8_t;
31361 typedef int int_fast16_t;
31362 typedef int32_t int_fast32_t;
c13e029b 31363 #ifdef _INT64_T
4c4b3eb0 31364 typedef int64_t int_fast64_t;
c13e029b 31365 #endif
4c4b3eb0
PB
31366
31367 typedef uint8_t uint_fast8_t;
31368 typedef unsigned int uint_fast16_t;
31369 typedef uint32_t uint_fast32_t;
c13e029b 31370 #ifdef _UINT64_T
4c4b3eb0 31371 typedef uint64_t uint_fast64_t;
c13e029b
PB
31372 #endif
31373EOF
31374fi
31375
31376if test "$ac_cv_type_uintmax_t" != yes; then
31377 sed 's/^ *//' >> tmp-stdint.h <<EOF
31378
31379 /* Define intmax based on what we found */
b9497ab5 31380 #ifndef intmax_t
c13e029b
PB
31381 #ifdef _INT64_T
31382 typedef int64_t intmax_t;
31383 #else
31384 typedef long intmax_t;
31385 #endif
b9497ab5
RO
31386 #endif
31387 #ifndef uintmax_t
c13e029b
PB
31388 #ifdef _UINT64_T
31389 typedef uint64_t uintmax_t;
31390 #else
31391 typedef unsigned long uintmax_t;
31392 #endif
b9497ab5 31393 #endif
4c4b3eb0
PB
31394EOF
31395fi
31396
c13e029b
PB
31397sed 's/^ *//' >> tmp-stdint.h <<EOF
31398
31399 #endif /* GCC_GENERATED_STDINT_H */
31400EOF
4c4b3eb0 31401
c13e029b
PB
31402if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
31403 rm -f tmp-stdint.h
4c4b3eb0 31404else
c13e029b 31405 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
31406fi
31407
31408 ;;
5213506e 31409
6de9cd9a 31410 esac
5213506e 31411done # for ac_tag
6de9cd9a 31412
6de9cd9a 31413
5213506e 31414as_fn_exit 0
6de9cd9a 31415_ACEOF
6de9cd9a
DN
31416ac_clean_files=$ac_clean_files_save
31417
5213506e 31418test $ac_write_fail = 0 ||
22e05272 31419 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 31420
6de9cd9a
DN
31421
31422# configure is writing to config.log, and then calls config.status.
31423# config.status does its own redirection, appending to config.log.
31424# Unfortunately, on DOS this fails, as config.log is still kept open
31425# by configure, so config.status won't be able to write to it; its
31426# output is simply discarded. So we exec the FD to /dev/null,
31427# effectively closing config.log, so it can be properly (re)opened and
31428# appended to by config.status. When coming back to configure, we
31429# need to make the FD available again.
31430if test "$no_create" != yes; then
31431 ac_cs_success=:
31432 ac_config_status_args=
31433 test "$silent" = yes &&
31434 ac_config_status_args="$ac_config_status_args --quiet"
31435 exec 5>/dev/null
31436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31437 exec 5>>config.log
31438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31439 # would make configure fail if this is the last instruction.
22e05272 31440 $ac_cs_success || as_fn_exit 1
5213506e
RW
31441fi
31442if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31444$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
31445fi
31446