]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
Fortran: Fix -Wno-missing-include-dirs handling [PR55534]
[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
21be0a5a
JB
695toolexeclibdir
696toolexecdir
697EGREP
698GREP
699CPP
5213506e
RW
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
c20fdb91 703am__nodep
5213506e
RW
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
5213506e
RW
717multi_basedir
718MAINT
719MAINTAINER_MODE_FALSE
720MAINTAINER_MODE_TRUE
22e05272
JM
721AM_BACKSLASH
722AM_DEFAULT_VERBOSITY
723AM_DEFAULT_V
724AM_V
5213506e
RW
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
60858d8a 748target_noncanonical
5213506e
RW
749target_os
750target_vendor
751target_cpu
752target
753host_os
754host_vendor
755host_cpu
756host
757onestep
758onestep_FALSE
759onestep_TRUE
760target_subdir
761host_subdir
762build_subdir
763build_libsubdir
764build_os
765build_vendor
766build_cpu
767build
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
6de9cd9a 806ac_subst_files=''
5213506e
RW
807ac_user_opts='
808enable_option_checking
809with_build_libsubdir
810enable_version_specific_runtime_libs
811enable_intermodule
22e05272 812enable_silent_rules
5213506e
RW
813enable_maintainer_mode
814enable_multilib
815enable_dependency_tracking
e8e66971 816with_toolexeclibdir
26724ef9 817enable_cet
bf382f5f 818enable_symvers
66dbcf2d 819with_gnu_ld
5213506e
RW
820enable_shared
821enable_static
822with_pic
823enable_fast_install
5213506e
RW
824enable_libtool_lock
825enable_largefile
87e6d9dc 826enable_libquadmath_support
3c36aa6b 827with_gcc_major_version_only
5213506e
RW
828'
829 ac_precious_vars='build_alias
830host_alias
831target_alias
21be0a5a
JB
832CC
833CFLAGS
834LDFLAGS
835LIBS
5213506e 836CPPFLAGS
21be0a5a 837CPP
5213506e 838FC
21be0a5a 839FCFLAGS'
5213506e 840
6de9cd9a
DN
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
5213506e
RW
845ac_unrecognized_opts=
846ac_unrecognized_sep=
6de9cd9a
DN
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 869# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
5213506e
RW
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
6de9cd9a
DN
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
6de9cd9a
DN
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
5213506e
RW
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
6de9cd9a
DN
889
890ac_prev=
5213506e 891ac_dashdash=
6de9cd9a
DN
892for ac_option
893do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
5213506e 896 eval $ac_prev=\$ac_option
6de9cd9a
DN
897 ac_prev=
898 continue
899 fi
900
5213506e 901 case $ac_option in
22e05272
JM
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
5213506e 905 esac
6de9cd9a
DN
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
5213506e
RW
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
6de9cd9a
DN
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
5213506e 933 -datadir | --datadir | --datadi | --datad)
6de9cd9a 934 ac_prev=datadir ;;
5213506e 935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
936 datadir=$ac_optarg ;;
937
5213506e
RW
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
6de9cd9a 945 -disable-* | --disable-*)
5213506e 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 947 # Reject names that are not valid shell variable names.
5213506e 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 949 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
6de9cd9a
DN
970
971 -enable-* | --enable-*)
5213506e 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 973 # Reject names that are not valid shell variable names.
5213506e 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 975 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
38d24731 984 esac
5213506e 985 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1006
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1011
5213506e
RW
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
6de9cd9a
DN
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1041
5213506e
RW
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
6de9cd9a 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1048 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1052 localstatedir=$ac_optarg ;;
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1115
5213506e
RW
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
6de9cd9a
DN
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1146
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1156
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1163
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1174
1175 -with-* | --with-*)
5213506e 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1177 # Reject names that are not valid shell variable names.
5213506e 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1179 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
38d24731 1188 esac
5213506e 1189 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1190
1191 -without-* | --without-*)
5213506e 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1193 # Reject names that are not valid shell variable names.
5213506e 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1195 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1224
22e05272
JM
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
6de9cd9a
DN
1227 ;;
1228
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
5213506e
RW
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1235 esac
1236 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1237 export $ac_envvar ;;
1238
1239 *)
1240 # FIXME: should be removed in autoconf 3.0.
5213506e 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
6de9cd9a
DN
1245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1252 as_fn_error $? "missing argument to $ac_option"
6de9cd9a
DN
1253fi
1254
5213506e
RW
1255if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
22e05272 1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1260 esac
5213506e 1261fi
38d24731 1262
5213506e
RW
1263# Check all directory arguments for consistency.
1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e9085da5 1267 libdir localedir mandir
38d24731 1268do
5213506e
RW
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
38d24731 1277 case $ac_val in
5213506e
RW
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1280 esac
22e05272 1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
6de9cd9a
DN
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
5213506e
RW
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1309 as_fn_error $? "working directory cannot be determined"
5213506e 1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1311 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1312
1313
6de9cd9a
DN
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
5213506e
RW
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
6de9cd9a 1341 srcdir=$ac_confdir
5213506e 1342 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1343 srcdir=..
1344 fi
1345else
1346 ac_srcdir_defaulted=no
1347fi
5213506e
RW
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
22e05272 1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1355 pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371done
6de9cd9a
DN
1372
1373#
1374# Report the --help message.
1375#
1376if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
0dce3ca1 1380\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1381
1382Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385VAR=VALUE. See below for descriptions of some of the useful variables.
1386
1387Defaults for the options are specified in brackets.
1388
1389Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
22e05272 1394 -q, --quiet, --silent do not print \`checking ...' messages
6de9cd9a
DN
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399
6de9cd9a
DN
1400Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1402 [$ac_default_prefix]
6de9cd9a 1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1404 [PREFIX]
6de9cd9a
DN
1405
1406By default, \`make install' will install all the files in
1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409for instance \`--prefix=\$HOME'.
1410
1411For better control, use the options below.
1412
1413Fine tuning of the installation directories:
5213506e
RW
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1433_ACEOF
1434
1435 cat <<\_ACEOF
1436
1437Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
1442System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1445 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
1450 case $ac_init_help in
0dce3ca1 1451 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1452 esac
1453 cat <<\_ACEOF
1454
1455Optional Features:
5213506e 1456 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1459 --enable-version-specific-runtime-libs
1460 specify that runtime libraries should be installed
1461 in a compiler-specific directory
b808ac33 1462 --enable-intermodule build the library in one step
22e05272
JM
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
96b8a615 1468 --enable-multilib build many library versions (default)
22e05272
JM
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
8d286dd1 1473 --enable-cet enable Intel CET in target libraries [default=auto]
bf382f5f 1474 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
6de9cd9a 1479 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1480 --disable-largefile omit support for large files
87e6d9dc
TB
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
6de9cd9a
DN
1483
1484Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1487 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8e66971
MR
1488 --with-toolexeclibdir=DIR
1489 install libraries built with a cross compiler within
1490 DIR
66dbcf2d 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1493 both]
3c36aa6b
JJ
1494 --with-gcc-major-version-only
1495 use only GCC major number in filesystem paths
6de9cd9a
DN
1496
1497Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
5213506e 1502 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1504 you have headers in a nonstandard directory <include dir>
1cf3d07d 1505 CPP C preprocessor
c7a35fe9
AS
1506 FC Fortran compiler command
1507 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1508
1509Use these variables to override the choices made by `configure' or to help
1510it to find libraries and programs with nonstandard names/locations.
1511
5213506e
RW
1512Report bugs to the package provider.
1513GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1514General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1515_ACEOF
5213506e 1516ac_status=$?
6de9cd9a
DN
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
6de9cd9a 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
6de9cd9a
DN
1525 ac_builddir=.
1526
5213506e
RW
1527case "$ac_dir" in
1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529*)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1542
1543case $srcdir in
5213506e 1544 .) # We are building in place.
6de9cd9a 1545 ac_srcdir=.
5213506e
RW
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1549 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1556esac
5213506e
RW
1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1567 else
5213506e
RW
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1571 done
1572fi
1573
5213506e 1574test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1575if $ac_init_version; then
1576 cat <<\_ACEOF
0dce3ca1 1577GNU Fortran Runtime Library configure 0.3
22e05272 1578generated by GNU Autoconf 2.69
6de9cd9a 1579
22e05272 1580Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
5213506e 1584 exit
6de9cd9a 1585fi
6de9cd9a 1586
5213506e
RW
1587## ------------------------ ##
1588## Autoconf initialization. ##
1589## ------------------------ ##
6de9cd9a 1590
5213506e
RW
1591# ac_fn_c_try_compile LINENO
1592# --------------------------
1593# Try to compile conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_compile ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1621
5213506e
RW
1622 ac_retval=1
1623fi
22e05272
JM
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
5213506e
RW
1626
1627} # ac_fn_c_try_compile
1628
21be0a5a
JB
1629# ac_fn_c_try_cpp LINENO
1630# ----------------------
1631# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_cpp ()
6de9cd9a 1633{
5213506e 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
21be0a5a 1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1650 test $ac_status = 0; } > conftest.i && {
21be0a5a 1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1652 test ! -s conftest.err
5213506e
RW
1653 }; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1658
21be0a5a 1659 ac_retval=1
5213506e 1660fi
22e05272
JM
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
6de9cd9a 1663
21be0a5a 1664} # ac_fn_c_try_cpp
6de9cd9a 1665
21be0a5a 1666# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1667# -------------------------------------------------------
21be0a5a
JB
1668# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1669# the include files in INCLUDES and setting the cache variable VAR
1670# accordingly.
1671ac_fn_c_check_header_mongrel ()
5213506e
RW
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1674 if eval \${$3+:} false; then :
5213506e
RW
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
22e05272 1677if eval \${$3+:} false; then :
5213506e 1678 $as_echo_n "(cached) " >&6
21be0a5a
JB
1679fi
1680eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682$as_echo "$ac_res" >&6; }
5213506e 1683else
21be0a5a
JB
1684 # Is the header compilable?
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1686$as_echo_n "checking $2 usability... " >&6; }
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1688/* end confdefs.h. */
1689$4
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1693 ac_header_compiler=yes
5213506e 1694else
21be0a5a 1695 ac_header_compiler=no
5213506e
RW
1696fi
1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1699$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1700
21be0a5a
JB
1701# Is the header present?
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1703$as_echo_n "checking $2 presence... " >&6; }
1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h. */
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_cpp "$LINENO"; then :
1709 ac_header_preproc=yes
1710else
1711 ac_header_preproc=no
1712fi
22e05272 1713rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1715$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1716
21be0a5a
JB
1717# So? What about this header?
1718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719 yes:no: )
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1721$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 ;;
1725 no:yes:* )
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1727$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1729$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1731$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1733$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 ;;
5213506e 1737esac
21be0a5a
JB
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
22e05272 1740if eval \${$3+:} false; then :
21be0a5a 1741 $as_echo_n "(cached) " >&6
5213506e 1742else
21be0a5a
JB
1743 eval "$3=\$ac_header_compiler"
1744fi
1745eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747$as_echo "$ac_res" >&6; }
5213506e 1748fi
22e05272 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1750
21be0a5a 1751} # ac_fn_c_check_header_mongrel
6de9cd9a 1752
5213506e
RW
1753# ac_fn_c_try_run LINENO
1754# ----------------------
1755# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756# that executables *can* be run.
1757ac_fn_c_try_run ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_link"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771 { { case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_try") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; }; }; then :
1781 ac_retval=0
1782else
1783 $as_echo "$as_me: program exited with status $ac_status" >&5
1784 $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1786
5213506e
RW
1787 ac_retval=$ac_status
1788fi
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
6de9cd9a 1792
5213506e 1793} # ac_fn_c_try_run
6de9cd9a 1794
21be0a5a
JB
1795# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists and can be compiled using the include files in
1798# INCLUDES, setting the cache variable VAR accordingly.
1799ac_fn_c_check_header_compile ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
22e05272 1804if eval \${$3+:} false; then :
21be0a5a
JB
1805 $as_echo_n "(cached) " >&6
1806else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809$4
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_compile "$LINENO"; then :
1813 eval "$3=yes"
1814else
1815 eval "$3=no"
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
22e05272 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21be0a5a
JB
1823
1824} # ac_fn_c_check_header_compile
1825
1826# ac_fn_c_try_link LINENO
1827# -----------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded.
1829ac_fn_c_try_link ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
22e05272 1853 test -x conftest$ac_exeext
21be0a5a
JB
1854 }; then :
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861fi
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
21be0a5a
JB
1869
1870} # ac_fn_c_try_link
1871
5213506e
RW
1872# ac_fn_c_check_func LINENO FUNC VAR
1873# ----------------------------------
1874# Tests whether FUNC exists, setting the cache variable VAR accordingly
1875ac_fn_c_check_func ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
22e05272 1880if eval \${$3+:} false; then :
5213506e
RW
1881 $as_echo_n "(cached) " >&6
1882else
1883 if test x$gcc_no_link = xyes; then
22e05272 1884 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1885fi
1886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890#define $2 innocuous_$2
6de9cd9a 1891
5213506e
RW
1892/* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1896
5213506e
RW
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
6de9cd9a 1902
5213506e
RW
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
38d24731 1921{
5213506e
RW
1922return $2 ();
1923 ;
1924 return 0;
38d24731 1925}
5213506e
RW
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
22e05272 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1939
5213506e 1940} # ac_fn_c_check_func
6de9cd9a 1941
5213506e
RW
1942# ac_fn_fc_try_compile LINENO
1943# ---------------------------
1944# Try to compile conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_fc_try_compile ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext
1949 if { { ac_try="$ac_compile"
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_compile") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_fc_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest.$ac_objext; then :
1968 ac_retval=0
1969else
1970 $as_echo "$as_me: failed program was:" >&5
1971sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1972
5213506e
RW
1973 ac_retval=1
1974fi
22e05272
JM
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
6de9cd9a 1977
5213506e 1978} # ac_fn_fc_try_compile
6de9cd9a 1979
5213506e
RW
1980# ac_fn_fc_try_link LINENO
1981# ------------------------
1982# Try to link conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_fc_try_link ()
1984{
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 rm -f conftest.$ac_objext conftest$ac_exeext
1987 if { { ac_try="$ac_link"
1988case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991esac
1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993$as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>conftest.err
1995 ac_status=$?
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2000 fi
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && {
2003 test -z "$ac_fc_werror_flag" ||
2004 test ! -s conftest.err
2005 } && test -s conftest$ac_exeext && {
2006 test "$cross_compiling" = yes ||
22e05272 2007 test -x conftest$ac_exeext
5213506e
RW
2008 }; then :
2009 ac_retval=0
2010else
2011 $as_echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 2013
5213506e
RW
2014 ac_retval=1
2015fi
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
6de9cd9a 2023
5213506e 2024} # ac_fn_fc_try_link
6de9cd9a 2025
5213506e
RW
2026# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027# -------------------------------------------
2028# Tests whether TYPE exists after having included INCLUDES, setting cache
2029# variable VAR accordingly.
2030ac_fn_c_check_type ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
22e05272 2035if eval \${$3+:} false; then :
5213506e
RW
2036 $as_echo_n "(cached) " >&6
2037else
2038 eval "$3=no"
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
2045if (sizeof ($2))
2046 return 0;
2047 ;
2048 return 0;
2049}
6de9cd9a 2050_ACEOF
5213506e
RW
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058if (sizeof (($2)))
2059 return 0;
2060 ;
2061 return 0;
2062}
6de9cd9a 2063_ACEOF
5213506e 2064if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2065
5213506e
RW
2066else
2067 eval "$3=yes"
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
22e05272 2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2077
5213506e 2078} # ac_fn_c_check_type
6de9cd9a 2079
21be0a5a
JB
2080# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081# --------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_c_compute_int ()
5213506e
RW
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2091/* end confdefs.h. */
c13e029b 2092$4
5213506e
RW
2093int
2094main ()
2095{
c13e029b 2096static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2097test_array [0] = 0;
2098return test_array [0];
6de9cd9a 2099
5213506e
RW
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2105 ac_lo=0 ac_mid=0
2106 while :; do
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2108/* end confdefs.h. */
c13e029b 2109$4
5213506e
RW
2110int
2111main ()
2112{
c13e029b 2113static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2114test_array [0] = 0;
2115return test_array [0];
6de9cd9a 2116
5213506e
RW
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2122 ac_hi=$ac_mid; break
5213506e 2123else
c13e029b
PB
2124 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2125 if test $ac_lo -le $ac_mid; then
2126 ac_lo= ac_hi=
2127 break
2128 fi
2129 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2132 done
2133else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2141test_array [0] = 0;
2142return test_array [0];
c13e029b
PB
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=-1 ac_mid=-1
2150 while :; do
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154int
2155main ()
2156{
2157static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2158test_array [0] = 0;
2159return test_array [0];
c13e029b
PB
2160
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2167else
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2170 ac_lo= ac_hi=
2171 break
2172 fi
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2176 done
d72a3ac1 2177else
c13e029b 2178 ac_lo= ac_hi=
5213506e 2179fi
c13e029b 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2181fi
c13e029b
PB
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183# Binary search between lo and hi bounds.
2184while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2187/* end confdefs.h. */
c13e029b 2188$4
5213506e
RW
2189int
2190main ()
2191{
c13e029b 2192static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2193test_array [0] = 0;
2194return test_array [0];
6de9cd9a 2195
5213506e
RW
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2201 ac_hi=$ac_mid
2202else
2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2206done
2207case $ac_lo in #((
2208?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2209'') ac_retval=1 ;;
2210esac
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215static long int longval () { return $2; }
2216static unsigned long int ulongval () { return $2; }
2217#include <stdio.h>
2218#include <stdlib.h>
2219int
2220main ()
2221{
6de9cd9a 2222
c13e029b
PB
2223 FILE *f = fopen ("conftest.val", "w");
2224 if (! f)
2225 return 1;
2226 if (($2) < 0)
2227 {
2228 long int i = longval ();
2229 if (i != ($2))
2230 return 1;
2231 fprintf (f, "%ld", i);
2232 }
2233 else
2234 {
2235 unsigned long int i = ulongval ();
2236 if (i != ($2))
2237 return 1;
2238 fprintf (f, "%lu", i);
2239 }
2240 /* Do not output a trailing newline, as this causes \r\n confusion
2241 on some platforms. */
2242 return ferror (f) || fclose (f) != 0;
2243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_run "$LINENO"; then :
2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2250else
c13e029b 2251 ac_retval=1
d72a3ac1 2252fi
c13e029b
PB
2253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2254 conftest.$ac_objext conftest.beam conftest.$ac_ext
2255rm -f conftest.val
2256
2257 fi
22e05272
JM
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
6de9cd9a 2260
c13e029b 2261} # ac_fn_c_compute_int
6de9cd9a 2262
5213506e
RW
2263# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2264# ----------------------------------------------------
2265# Tries to find if the field MEMBER exists in type AGGR, after including
2266# INCLUDES, setting cache variable VAR accordingly.
2267ac_fn_c_check_member ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2271$as_echo_n "checking for $2.$3... " >&6; }
22e05272 2272if eval \${$4+:} false; then :
5213506e
RW
2273 $as_echo_n "(cached) " >&6
2274else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277$5
2278int
2279main ()
2280{
2281static $2 ac_aggr;
2282if (ac_aggr.$3)
2283return 0;
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289 eval "$4=yes"
2290else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h. */
2293$5
2294int
2295main ()
2296{
2297static $2 ac_aggr;
2298if (sizeof ac_aggr.$3)
2299return 0;
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$4=yes"
2306else
2307 eval "$4=no"
2308fi
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313eval ac_res=\$$4
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315$as_echo "$ac_res" >&6; }
22e05272 2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2317
5213506e
RW
2318} # ac_fn_c_check_member
2319cat >config.log <<_ACEOF
2320This file contains any messages produced by compilers while
2321running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2322
5213506e 2323It was created by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 2324generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a 2325
5213506e 2326 $ $0 $@
6de9cd9a 2327
5213506e
RW
2328_ACEOF
2329exec 5>>config.log
2330{
2331cat <<_ASUNAME
2332## --------- ##
2333## Platform. ##
2334## --------- ##
6de9cd9a 2335
5213506e
RW
2336hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2337uname -m = `(uname -m) 2>/dev/null || echo unknown`
2338uname -r = `(uname -r) 2>/dev/null || echo unknown`
2339uname -s = `(uname -s) 2>/dev/null || echo unknown`
2340uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2341
5213506e
RW
2342/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2343/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2344
5213506e
RW
2345/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2346/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2347/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2348/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2349/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2350/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2351/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2352
5213506e 2353_ASUNAME
18c04407 2354
5213506e
RW
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 $as_echo "PATH: $as_dir"
2361 done
2362IFS=$as_save_IFS
18c04407 2363
5213506e 2364} >&5
18c04407 2365
5213506e 2366cat >&5 <<_ACEOF
6de9cd9a
DN
2367
2368
5213506e
RW
2369## ----------- ##
2370## Core tests. ##
2371## ----------- ##
78511f8b 2372
5213506e 2373_ACEOF
38d24731 2374
96b8a615 2375
5213506e
RW
2376# Keep a trace of the command line.
2377# Strip out --no-create and --no-recursion so they do not pile up.
2378# Strip out --silent because we don't want to record it for future runs.
2379# Also quote any args containing shell meta-characters.
2380# Make two passes to allow for proper duplicate-argument suppression.
2381ac_configure_args=
2382ac_configure_args0=
2383ac_configure_args1=
2384ac_must_keep_next=false
2385for ac_pass in 1 2
2386do
2387 for ac_arg
2388 do
2389 case $ac_arg in
2390 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2392 | -silent | --silent | --silen | --sile | --sil)
2393 continue ;;
2394 *\'*)
2395 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2396 esac
2397 case $ac_pass in
2398 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 2)
2400 as_fn_append ac_configure_args1 " '$ac_arg'"
2401 if test $ac_must_keep_next = true; then
2402 ac_must_keep_next=false # Got value, back to normal.
2403 else
2404 case $ac_arg in
2405 *=* | --config-cache | -C | -disable-* | --disable-* \
2406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2408 | -with-* | --with-* | -without-* | --without-* | --x)
2409 case "$ac_configure_args0 " in
2410 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2411 esac
2412 ;;
2413 -* ) ac_must_keep_next=true ;;
2414 esac
2415 fi
2416 as_fn_append ac_configure_args " '$ac_arg'"
2417 ;;
2418 esac
2419 done
6de9cd9a 2420done
5213506e
RW
2421{ ac_configure_args0=; unset ac_configure_args0;}
2422{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2423
5213506e
RW
2424# When interrupted or exit'd, cleanup temporary files, and complete
2425# config.log. We remove comments because anyway the quotes in there
2426# would cause problems or look ugly.
2427# WARNING: Use '\'' to represent an apostrophe within the trap.
2428# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2429trap 'exit_status=$?
2430 # Save into config.log some information that might help in debugging.
2431 {
2432 echo
96b8a615 2433
22e05272 2434 $as_echo "## ---------------- ##
5213506e 2435## Cache variables. ##
22e05272 2436## ---------------- ##"
5213506e
RW
2437 echo
2438 # The following way of writing the cache mishandles newlines in values,
2439(
2440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in #(
2443 *${as_nl}*)
2444 case $ac_var in #(
2445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2447 esac
2448 case $ac_var in #(
2449 _ | IFS | as_nl) ;; #(
2450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2451 *) { eval $ac_var=; unset $ac_var;} ;;
2452 esac ;;
2453 esac
2454 done
2455 (set) 2>&1 |
2456 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2457 *${as_nl}ac_space=\ *)
2458 sed -n \
2459 "s/'\''/'\''\\\\'\'''\''/g;
2460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2461 ;; #(
2462 *)
2463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 ;;
2465 esac |
2466 sort
2467)
2468 echo
2469
22e05272 2470 $as_echo "## ----------------- ##
5213506e 2471## Output variables. ##
22e05272 2472## ----------------- ##"
5213506e
RW
2473 echo
2474 for ac_var in $ac_subst_vars
2475 do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 esac
2480 $as_echo "$ac_var='\''$ac_val'\''"
2481 done | sort
2482 echo
2483
2484 if test -n "$ac_subst_files"; then
22e05272 2485 $as_echo "## ------------------- ##
5213506e 2486## File substitutions. ##
22e05272 2487## ------------------- ##"
5213506e
RW
2488 echo
2489 for ac_var in $ac_subst_files
2490 do
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 $as_echo "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2498 fi
2499
2500 if test -s confdefs.h; then
22e05272 2501 $as_echo "## ----------- ##
5213506e 2502## confdefs.h. ##
22e05272 2503## ----------- ##"
5213506e
RW
2504 echo
2505 cat confdefs.h
2506 echo
2507 fi
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2515' 0
2516for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518done
2519ac_signal=0
2520
2521# confdefs.h avoids OS command line length limits that DEFS can exceed.
2522rm -f -r conftest* confdefs.h
2523
2524$as_echo "/* confdefs.h */" > confdefs.h
2525
2526# Predefined preprocessor variables.
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_NAME "$PACKAGE_NAME"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_VERSION "$PACKAGE_VERSION"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_STRING "$PACKAGE_STRING"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_URL "$PACKAGE_URL"
2550_ACEOF
2551
2552
2553# Let the site file select an alternate cache file if it wants to.
2554# Prefer an explicitly selected file to automatically selected ones.
2555ac_site_file1=NONE
2556ac_site_file2=NONE
2557if test -n "$CONFIG_SITE"; then
22e05272
JM
2558 # We do not want a PATH search for config.site.
2559 case $CONFIG_SITE in #((
2560 -*) ac_site_file1=./$CONFIG_SITE;;
2561 */*) ac_site_file1=$CONFIG_SITE;;
2562 *) ac_site_file1=./$CONFIG_SITE;;
2563 esac
5213506e
RW
2564elif test "x$prefix" != xNONE; then
2565 ac_site_file1=$prefix/share/config.site
2566 ac_site_file2=$prefix/etc/config.site
2567else
2568 ac_site_file1=$ac_default_prefix/share/config.site
2569 ac_site_file2=$ac_default_prefix/etc/config.site
2570fi
2571for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572do
2573 test "x$ac_site_file" = xNONE && continue
22e05272 2574 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2578 . "$ac_site_file" \
2579 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581as_fn_error $? "failed to load site script $ac_site_file
2582See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
2583 fi
2584done
2585
2586if test -r "$cache_file"; then
22e05272
JM
2587 # Some versions of bash will fail to source /dev/null (special files
2588 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2589 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2591$as_echo "$as_me: loading cache $cache_file" >&6;}
2592 case $cache_file in
2593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2594 *) . "./$cache_file";;
2595 esac
2596 fi
2597else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2599$as_echo "$as_me: creating cache $cache_file" >&6;}
2600 >$cache_file
2601fi
2602
74544378 2603as_fn_append ac_header_list " unistd.h"
864c28e1 2604as_fn_append ac_header_list " sys/random.h"
74544378
JB
2605as_fn_append ac_header_list " sys/time.h"
2606as_fn_append ac_header_list " sys/times.h"
2607as_fn_append ac_header_list " sys/resource.h"
2608as_fn_append ac_header_list " sys/types.h"
2609as_fn_append ac_header_list " sys/stat.h"
edaaef60 2610as_fn_append ac_header_list " sys/uio.h"
74544378
JB
2611as_fn_append ac_header_list " sys/wait.h"
2612as_fn_append ac_header_list " floatingpoint.h"
2613as_fn_append ac_header_list " ieeefp.h"
2614as_fn_append ac_header_list " fenv.h"
2615as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2616as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2617as_fn_append ac_header_list " pwd.h"
2618as_fn_append ac_header_list " complex.h"
9cbecd06 2619as_fn_append ac_header_list " xlocale.h"
74544378
JB
2620as_fn_append ac_func_list " getrusage"
2621as_fn_append ac_func_list " times"
2622as_fn_append ac_func_list " mkstemp"
2623as_fn_append ac_func_list " strtof"
2624as_fn_append ac_func_list " strtold"
2625as_fn_append ac_func_list " snprintf"
2626as_fn_append ac_func_list " ftruncate"
2627as_fn_append ac_func_list " chsize"
2628as_fn_append ac_func_list " chdir"
d66d6d15 2629as_fn_append ac_func_list " getentropy"
74544378
JB
2630as_fn_append ac_func_list " getlogin"
2631as_fn_append ac_func_list " gethostname"
2632as_fn_append ac_func_list " kill"
2633as_fn_append ac_func_list " link"
2634as_fn_append ac_func_list " symlink"
2635as_fn_append ac_func_list " sleep"
2636as_fn_append ac_func_list " ttyname"
ef536b41
JB
2637as_fn_append ac_func_list " sigaction"
2638as_fn_append ac_func_list " waitpid"
74544378
JB
2639as_fn_append ac_func_list " alarm"
2640as_fn_append ac_func_list " access"
2641as_fn_append ac_func_list " fork"
f8886038 2642as_fn_append ac_func_list " posix_spawn"
74544378 2643as_fn_append ac_func_list " setmode"
b5b58343 2644as_fn_append ac_func_list " fcntl"
edaaef60 2645as_fn_append ac_func_list " writev"
74544378
JB
2646as_fn_append ac_func_list " gettimeofday"
2647as_fn_append ac_func_list " stat"
2648as_fn_append ac_func_list " fstat"
2649as_fn_append ac_func_list " lstat"
2650as_fn_append ac_func_list " getpwuid"
2651as_fn_append ac_func_list " vsnprintf"
2652as_fn_append ac_func_list " dup"
2653as_fn_append ac_func_list " getcwd"
2654as_fn_append ac_func_list " localtime_r"
2655as_fn_append ac_func_list " gmtime_r"
74544378
JB
2656as_fn_append ac_func_list " getpwuid_r"
2657as_fn_append ac_func_list " ttyname_r"
2658as_fn_append ac_func_list " clock_gettime"
74544378
JB
2659as_fn_append ac_func_list " getgid"
2660as_fn_append ac_func_list " getpid"
74544378
JB
2661as_fn_append ac_func_list " getuid"
2662as_fn_append ac_func_list " geteuid"
8ecd1c0d 2663as_fn_append ac_func_list " umask"
68ee9c08 2664as_fn_append ac_func_list " getegid"
227e441f 2665as_fn_append ac_func_list " secure_getenv"
68ee9c08 2666as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2667as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2668as_fn_append ac_func_list " strnlen"
2669as_fn_append ac_func_list " strndup"
9cbecd06
JB
2670as_fn_append ac_func_list " newlocale"
2671as_fn_append ac_func_list " freelocale"
2672as_fn_append ac_func_list " uselocale"
2673as_fn_append ac_func_list " strerror_l"
db9f46a9 2674as_fn_append ac_header_list " math.h"
5213506e
RW
2675# Check that the precious variables saved in the cache have kept the same
2676# value.
2677ac_cache_corrupted=false
2678for ac_var in $ac_precious_vars; do
2679 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2680 eval ac_new_set=\$ac_env_${ac_var}_set
2681 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2682 eval ac_new_val=\$ac_env_${ac_var}_value
2683 case $ac_old_set,$ac_new_set in
2684 set,)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2686$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,set)
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2690$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2691 ac_cache_corrupted=: ;;
2692 ,);;
2693 *)
2694 if test "x$ac_old_val" != "x$ac_new_val"; then
2695 # differences in whitespace do not lead to failure.
2696 ac_old_val_w=`echo x $ac_old_val`
2697 ac_new_val_w=`echo x $ac_new_val`
2698 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2700$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2701 ac_cache_corrupted=:
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2704$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2705 eval $ac_var=\$ac_old_val
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2708$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2710$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2711 fi;;
2712 esac
2713 # Pass precious variables to config.status.
2714 if test "$ac_new_set" = set; then
2715 case $ac_new_val in
2716 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2717 *) ac_arg=$ac_var=$ac_new_val ;;
2718 esac
2719 case " $ac_configure_args " in
2720 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2721 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722 esac
2723 fi
2724done
2725if $ac_cache_corrupted; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2729$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2730 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5213506e
RW
2731fi
2732## -------------------- ##
2733## Main body of script. ##
2734## -------------------- ##
2735
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742
2743
2744
2745
2746ac_config_headers="$ac_config_headers config.h"
2747
2748ac_aux_dir=
2749for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2750 if test -f "$ac_dir/install-sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install-sh -c"
2753 break
2754 elif test -f "$ac_dir/install.sh"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/install.sh -c"
2757 break
2758 elif test -f "$ac_dir/shtool"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/shtool install -c"
2761 break
2762 fi
5213506e
RW
2763done
2764if test -z "$ac_aux_dir"; then
22e05272 2765 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5213506e
RW
2766fi
2767
2768# These three variables are undocumented and unsupported,
2769# and are intended to be withdrawn in a future Autoconf release.
2770# They can cause serious problems if a builder's source tree is in a directory
2771# whose full name contains unusual characters.
2772ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2773ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2774ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2775
2776
2777# Make sure we can run config.sub.
2778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2782$as_echo_n "checking build system type... " >&6; }
22e05272 2783if ${ac_cv_build+:} false; then :
5213506e
RW
2784 $as_echo_n "(cached) " >&6
2785else
2786 ac_build_alias=$build_alias
2787test "x$ac_build_alias" = x &&
2788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789test "x$ac_build_alias" = x &&
22e05272 2790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2793
2794fi
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2796$as_echo "$ac_cv_build" >&6; }
2797case $ac_cv_build in
2798*-*-*) ;;
22e05272 2799*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e
RW
2800esac
2801build=$ac_cv_build
2802ac_save_IFS=$IFS; IFS='-'
2803set x $ac_cv_build
2804shift
2805build_cpu=$1
2806build_vendor=$2
2807shift; shift
2808# Remember, the first character of IFS is used to create $*,
2809# except with old shells:
2810build_os=$*
2811IFS=$ac_save_IFS
2812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2813
2814
2815 case ${build_alias} in
2816 "") build_noncanonical=${build} ;;
2817 *) build_noncanonical=${build_alias} ;;
2818esac
891c05b1
JJ
2819
2820 case ${host_alias} in
2821 "") host_noncanonical=${build_noncanonical} ;;
2822 *) host_noncanonical=${host_alias} ;;
2823esac
2824
2825 case ${target_alias} in
2826 "") target_noncanonical=${host_noncanonical} ;;
2827 *) target_noncanonical=${target_alias} ;;
2828esac
2829
57255173
PB
2830
2831# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2832# have matching libraries, they should use host libraries: Makefile.tpl
2833# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2834# However, they still use the build modules, because the corresponding
2835# host modules (e.g. bison) are only built for the host when bootstrap
2836# finishes. So:
2837# - build_subdir is where we find build modules, and never changes.
2838# - build_libsubdir is where we find build libraries, and can be overridden.
2839
2840# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2841build_subdir="build-${build_noncanonical}"
57255173 2842
5213506e
RW
2843# Check whether --with-build-libsubdir was given.
2844if test "${with_build_libsubdir+set}" = set; then :
2845 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2846else
2847 build_libsubdir="$build_subdir"
5213506e
RW
2848fi
2849
891c05b1
JJ
2850# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2851if ( test $srcdir = . && test -d gcc ) \
2852 || test -d $srcdir/../host-${host_noncanonical}; then
2853 host_subdir="host-${host_noncanonical}"
2854else
2855 host_subdir=.
2856fi
2857# No prefix.
2858target_subdir=${target_noncanonical}
2859
2860
2861# -------
2862# Options
2863# -------
2864
5213506e
RW
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2866$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2867# Check whether --enable-version-specific-runtime-libs was given.
2868if test "${enable_version_specific_runtime_libs+set}" = set; then :
2869 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2870 yes) version_specific_libs=yes ;;
2871 no) version_specific_libs=no ;;
22e05272 2872 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2873 esac
2874else
2875 version_specific_libs=no
5213506e
RW
2876fi
2877
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2879$as_echo "$version_specific_libs" >&6; }
891c05b1 2880
b808ac33 2881# Build with intermodule optimisations
5213506e
RW
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2883$as_echo_n "checking for --enable-intermodule... " >&6; }
2884# Check whether --enable-intermodule was given.
2885if test "${enable_intermodule+set}" = set; then :
2886 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2887 yes) onestep="-onestep";;
2888 *) onestep="";;
2889esac
2890else
2891 onestep=""
5213506e 2892fi
b808ac33 2893
5213506e
RW
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2895$as_echo "$enable_intermodule" >&6; }
2896 if test x$onestep = x-onestep; then
b808ac33
BF
2897 onestep_TRUE=
2898 onestep_FALSE='#'
2899else
2900 onestep_TRUE='#'
2901 onestep_FALSE=
2902fi
2903
2904
891c05b1
JJ
2905
2906# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2907#
2908# You will slowly go insane if you do not grok the following fact: when
2909# building this library, the top-level /target/ becomes the library's /host/.
2910#
2911# configure then causes --target to default to --host, exactly like any
2912# other package using autoconf. Therefore, 'target' and 'host' will
2913# always be the same. This makes sense both for native and cross compilers
2914# just think about it for a little while. :-)
2915#
2916# Also, if this library is being configured as part of a cross compiler, the
2917# top-level configure script will pass the "real" host as $with_cross_host.
2918#
2919# Do not delete or change the following two lines. For why, see
2920# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922$as_echo_n "checking host system type... " >&6; }
22e05272 2923if ${ac_cv_host+:} false; then :
5213506e
RW
2924 $as_echo_n "(cached) " >&6
2925else
2926 if test "x$host_alias" = x; then
2927 ac_cv_host=$ac_cv_build
2928else
2929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e
RW
2931fi
2932
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935$as_echo "$ac_cv_host" >&6; }
2936case $ac_cv_host in
2937*-*-*) ;;
22e05272 2938*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2939esac
96b8a615 2940host=$ac_cv_host
5213506e
RW
2941ac_save_IFS=$IFS; IFS='-'
2942set x $ac_cv_host
2943shift
2944host_cpu=$1
2945host_vendor=$2
2946shift; shift
2947# Remember, the first character of IFS is used to create $*,
2948# except with old shells:
2949host_os=$*
2950IFS=$ac_save_IFS
2951case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2952
2953
5213506e
RW
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2955$as_echo_n "checking target system type... " >&6; }
22e05272 2956if ${ac_cv_target+:} false; then :
5213506e 2957 $as_echo_n "(cached) " >&6
96b8a615 2958else
5213506e
RW
2959 if test "x$target_alias" = x; then
2960 ac_cv_target=$ac_cv_host
2961else
2962 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2964fi
96b8a615
AJ
2965
2966fi
5213506e
RW
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2968$as_echo "$ac_cv_target" >&6; }
2969case $ac_cv_target in
2970*-*-*) ;;
22e05272 2971*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2972esac
96b8a615 2973target=$ac_cv_target
5213506e
RW
2974ac_save_IFS=$IFS; IFS='-'
2975set x $ac_cv_target
2976shift
2977target_cpu=$1
2978target_vendor=$2
2979shift; shift
2980# Remember, the first character of IFS is used to create $*,
2981# except with old shells:
2982target_os=$*
2983IFS=$ac_save_IFS
2984case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2985
2986
2987# The aliases save the names the user supplied, while $host etc.
2988# will get canonicalized.
2989test -n "$target_alias" &&
2990 test "$program_prefix$program_suffix$program_transform_name" = \
2991 NONENONEs,x,x, &&
2992 program_prefix=${target_alias}-
5213506e 2993
60858d8a
TB
2994
2995
2996
96b8a615
AJ
2997target_alias=${target_alias-$host_alias}
2998
60858d8a 2999
96b8a615
AJ
3000# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3001# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 3002# 1.9.6: minimum required version
96b8a615
AJ
3003# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3004# of other PACKAGE_* variables will, however, and there's nothing
3005# we can do about that; they come from AC_INIT).
3006# foreign: we don't follow the normal rules for GNU packages (no COPYING
3007# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 3008# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
3009# -Wall: turns on all automake warnings...
3010# -Wno-portability: ...except this one, since GNU make is required.
22e05272 3011am__api_version='1.15'
5213506e 3012
6de9cd9a
DN
3013# Find a good install program. We prefer a C program (faster),
3014# so one script is as good as another. But avoid the broken or
3015# incompatible versions:
3016# SysV /etc/install, /usr/sbin/install
3017# SunOS /usr/etc/install
3018# IRIX /sbin/install
3019# AIX /bin/install
3020# AmigaOS /C/install, which installs bootblocks on floppy discs
3021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024# OS/2's system install, which has a completely different semantic
3025# ./install, which can be erroneously created by make from ./install.sh.
38d24731 3026# Reject install programs that cannot install multiple files.
5213506e
RW
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3028$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 3029if test -z "$INSTALL"; then
22e05272 3030if ${ac_cv_path_install+:} false; then :
5213506e 3031 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3032else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
5213506e
RW
3038 # Account for people who put trailing slashes in PATH elements.
3039case $as_dir/ in #((
3040 ./ | .// | /[cC]/* | \
6de9cd9a 3041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3042 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
3043 /usr/ucb/* ) ;;
3044 *)
3045 # OSF1 and SCO ODT 3.0 have their own names for install.
3046 # Don't use installbsd from OSF since it installs stuff as root
3047 # by default.
3048 for ac_prog in ginstall scoinst install; do
3049 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3050 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6de9cd9a
DN
3051 if test $ac_prog = install &&
3052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053 # AIX install. It has an incompatible calling convention.
3054 :
3055 elif test $ac_prog = install &&
3056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3057 # program-specific install script used by HP pwplus--don't use.
3058 :
3059 else
38d24731
RW
3060 rm -rf conftest.one conftest.two conftest.dir
3061 echo one > conftest.one
3062 echo two > conftest.two
3063 mkdir conftest.dir
3064 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3065 test -s conftest.one && test -s conftest.two &&
3066 test -s conftest.dir/conftest.one &&
3067 test -s conftest.dir/conftest.two
3068 then
3069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070 break 3
3071 fi
6de9cd9a
DN
3072 fi
3073 fi
3074 done
3075 done
3076 ;;
3077esac
5213506e
RW
3078
3079 done
3080IFS=$as_save_IFS
6de9cd9a 3081
38d24731 3082rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3083
3084fi
3085 if test "${ac_cv_path_install+set}" = set; then
3086 INSTALL=$ac_cv_path_install
3087 else
f489fba1
FXC
3088 # As a last resort, use the slow shell script. Don't cache a
3089 # value for INSTALL within a source directory, because that will
6de9cd9a 3090 # break other packages using the cache if that directory is
f489fba1 3091 # removed, or if the value is a relative name.
6de9cd9a
DN
3092 INSTALL=$ac_install_sh
3093 fi
3094fi
5213506e
RW
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3096$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3097
3098# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3099# It thinks the first close brace ends the variable substitution.
3100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3101
3102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3103
3104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3105
5213506e
RW
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3107$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
3108# Reject unsafe characters in $srcdir or the absolute working directory
3109# name. Accept space and tab only in the latter.
3110am_lf='
3111'
3112case `pwd` in
3113 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 3114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
3115esac
3116case $srcdir in
3117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 3118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
3119esac
3120
22e05272 3121# Do 'set' in a subshell so we don't clobber the current shell's
6de9cd9a
DN
3122# arguments. Must try -L first in case configure is actually a
3123# symlink; some systems play weird games with the mod time of symlinks
3124# (eg FreeBSD returns the mod time of the symlink's containing
3125# directory).
3126if (
22e05272
JM
3127 am_has_slept=no
3128 for am_try in 1 2; do
3129 echo "timestamp, slept: $am_has_slept" > conftest.file
3130 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3131 if test "$*" = "X"; then
3132 # -L didn't work.
3133 set X `ls -t "$srcdir/configure" conftest.file`
3134 fi
3135 if test "$*" != "X $srcdir/configure conftest.file" \
3136 && test "$*" != "X conftest.file $srcdir/configure"; then
3137
3138 # If neither matched, then we have a broken ls. This can happen
3139 # if, for instance, CONFIG_SHELL is bash and it inherits a
3140 # broken ls alias from the environment. This has actually
3141 # happened. Such a system could not be considered "sane".
3142 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3143 alias in your environment" "$LINENO" 5
3144 fi
3145 if test "$2" = conftest.file || test $am_try -eq 2; then
3146 break
3147 fi
3148 # Just in case.
3149 sleep 1
3150 am_has_slept=yes
3151 done
6de9cd9a
DN
3152 test "$2" = conftest.file
3153 )
3154then
3155 # Ok.
3156 :
3157else
22e05272 3158 as_fn_error $? "newly created file is older than distributed files!
5213506e 3159Check your system clock" "$LINENO" 5
6de9cd9a 3160fi
5213506e
RW
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162$as_echo "yes" >&6; }
22e05272
JM
3163# If we didn't sleep, we still need to ensure time stamps of config.status and
3164# generated files are strictly newer.
3165am_sleep_pid=
3166if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3167 ( sleep 1 ) &
3168 am_sleep_pid=$!
3169fi
3170
3171rm -f conftest.file
3172
6de9cd9a 3173test "$program_prefix" != NONE &&
5213506e 3174 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3175# Use a double $ so make ignores it.
3176test "$program_suffix" != NONE &&
5213506e
RW
3177 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3178# Double any \ or $.
6de9cd9a 3179# By default was `s,x,x', remove it if useless.
5213506e
RW
3180ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3181program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a 3182
22e05272
JM
3183# Expand $ac_aux_dir to an absolute path.
3184am_aux_dir=`cd "$ac_aux_dir" && pwd`
6de9cd9a 3185
5213506e
RW
3186if test x"${MISSING+set}" != xset; then
3187 case $am_aux_dir in
3188 *\ * | *\ *)
3189 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3190 *)
3191 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3192 esac
3193fi
6de9cd9a 3194# Use eval to expand $SHELL
22e05272
JM
3195if eval "$MISSING --is-lightweight"; then
3196 am_missing_run="$MISSING "
6de9cd9a
DN
3197else
3198 am_missing_run=
22e05272
JM
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3200$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6de9cd9a
DN
3201fi
3202
22e05272 3203if test x"${install_sh+set}" != xset; then
5213506e
RW
3204 case $am_aux_dir in
3205 *\ * | *\ *)
3206 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3207 *)
3208 install_sh="\${SHELL} $am_aux_dir/install-sh"
3209 esac
3210fi
3211
22e05272
JM
3212# Installed binaries are usually stripped using 'strip' when the user
3213# run "make install-strip". However 'strip' might not be the right
5213506e 3214# tool to use in cross-compilation environments, therefore Automake
22e05272 3215# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
3216if test "$cross_compiling" != no; then
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3219set dummy ${ac_tool_prefix}strip; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3222if ${ac_cv_prog_STRIP+:} false; then :
5213506e 3223 $as_echo_n "(cached) " >&6
6de9cd9a 3224else
5213506e
RW
3225 if test -n "$STRIP"; then
3226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
5213506e 3233 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3237 break 2
3238 fi
3239done
5213506e
RW
3240 done
3241IFS=$as_save_IFS
6de9cd9a
DN
3242
3243fi
3244fi
5213506e
RW
3245STRIP=$ac_cv_prog_STRIP
3246if test -n "$STRIP"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3248$as_echo "$STRIP" >&6; }
6de9cd9a 3249else
5213506e
RW
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
6de9cd9a
DN
3252fi
3253
6de9cd9a 3254
5213506e
RW
3255fi
3256if test -z "$ac_cv_prog_STRIP"; then
3257 ac_ct_STRIP=$STRIP
3258 # Extract the first word of "strip", so it can be a program name with args.
3259set dummy strip; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3262if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 3263 $as_echo_n "(cached) " >&6
6de9cd9a 3264else
5213506e
RW
3265 if test -n "$ac_ct_STRIP"; then
3266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3267else
5213506e
RW
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3275 ac_cv_prog_ac_ct_STRIP="strip"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279done
3280 done
3281IFS=$as_save_IFS
3282
38d24731 3283fi
6de9cd9a 3284fi
5213506e
RW
3285ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3286if test -n "$ac_ct_STRIP"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3288$as_echo "$ac_ct_STRIP" >&6; }
3289else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294 if test "x$ac_ct_STRIP" = x; then
3295 STRIP=":"
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298yes:)
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301ac_tool_warned=yes ;;
3302esac
3303 STRIP=$ac_ct_STRIP
3304 fi
3305else
3306 STRIP="$ac_cv_prog_STRIP"
3307fi
3308
3309fi
3310INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3311
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3313$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3314if test -z "$MKDIR_P"; then
22e05272 3315 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
3316 $as_echo_n "(cached) " >&6
3317else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3320do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_prog in mkdir gmkdir; do
3324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3325 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
3326 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3327 'mkdir (GNU coreutils) '* | \
3328 'mkdir (coreutils) '* | \
3329 'mkdir (fileutils) '4.1*)
3330 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3331 break 3;;
3332 esac
3333 done
3334 done
3335 done
3336IFS=$as_save_IFS
3337
3338fi
3339
22e05272 3340 test -d ./--version && rmdir ./--version
5213506e
RW
3341 if test "${ac_cv_path_mkdir+set}" = set; then
3342 MKDIR_P="$ac_cv_path_mkdir -p"
3343 else
3344 # As a last resort, use the slow shell script. Don't cache a
3345 # value for MKDIR_P within a source directory, because that will
3346 # break other packages using the cache if that directory is
3347 # removed, or if the value is a relative name.
5213506e
RW
3348 MKDIR_P="$ac_install_sh -d"
3349 fi
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3352$as_echo "$MKDIR_P" >&6; }
3353
5213506e
RW
3354for ac_prog in gawk mawk nawk awk
3355do
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357set dummy $ac_prog; ac_word=$2
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3360if ${ac_cv_prog_AWK+:} false; then :
5213506e
RW
3361 $as_echo_n "(cached) " >&6
3362else
3363 if test -n "$AWK"; then
3364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3373 ac_cv_prog_AWK="$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378 done
3379IFS=$as_save_IFS
3380
3381fi
3382fi
3383AWK=$ac_cv_prog_AWK
3384if test -n "$AWK"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3386$as_echo "$AWK" >&6; }
3387else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390fi
3391
3392
3393 test -n "$AWK" && break
3394done
3395
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3397$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3398set x ${MAKE-make}
3399ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3400if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
3401 $as_echo_n "(cached) " >&6
3402else
3403 cat >conftest.make <<\_ACEOF
3404SHELL = /bin/sh
3405all:
3406 @echo '@@@%%%=$(MAKE)=@@@%%%'
3407_ACEOF
22e05272 3408# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
3409case `${MAKE-make} -f conftest.make 2>/dev/null` in
3410 *@@@%%%=?*=@@@%%%*)
3411 eval ac_cv_prog_make_${ac_make}_set=yes;;
3412 *)
3413 eval ac_cv_prog_make_${ac_make}_set=no;;
3414esac
3415rm -f conftest.make
3416fi
3417if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3419$as_echo "yes" >&6; }
6de9cd9a
DN
3420 SET_MAKE=
3421else
5213506e
RW
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
6de9cd9a
DN
3424 SET_MAKE="MAKE=${MAKE-make}"
3425fi
3426
3427rm -rf .tst 2>/dev/null
3428mkdir .tst 2>/dev/null
3429if test -d .tst; then
3430 am__leading_dot=.
3431else
3432 am__leading_dot=_
3433fi
3434rmdir .tst 2>/dev/null
3435
22e05272
JM
3436# Check whether --enable-silent-rules was given.
3437if test "${enable_silent_rules+set}" = set; then :
3438 enableval=$enable_silent_rules;
3439fi
3440
3441case $enable_silent_rules in # (((
3442 yes) AM_DEFAULT_VERBOSITY=0;;
3443 no) AM_DEFAULT_VERBOSITY=1;;
3444 *) AM_DEFAULT_VERBOSITY=1;;
3445esac
3446am_make=${MAKE-make}
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3448$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3449if ${am_cv_make_support_nested_variables+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451else
3452 if $as_echo 'TRUE=$(BAR$(V))
3453BAR0=false
3454BAR1=true
3455V=1
3456am__doit:
3457 @$(TRUE)
3458.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3459 am_cv_make_support_nested_variables=yes
3460else
3461 am_cv_make_support_nested_variables=no
3462fi
3463fi
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3465$as_echo "$am_cv_make_support_nested_variables" >&6; }
3466if test $am_cv_make_support_nested_variables = yes; then
3467 AM_V='$(V)'
3468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3469else
3470 AM_V=$AM_DEFAULT_VERBOSITY
3471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3472fi
3473AM_BACKSLASH='\'
3474
5213506e
RW
3475if test "`cd $srcdir && pwd`" != "`pwd`"; then
3476 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3477 # is not polluted with repeated "-I."
3478 am__isrc=' -I$(srcdir)'
3479 # test to see if srcdir already configured
3480 if test -f $srcdir/config.status; then
22e05272 3481 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 3482 fi
6de9cd9a
DN
3483fi
3484
3485# test whether we have cygpath
3486if test -z "$CYGPATH_W"; then
3487 if (cygpath --version) >/dev/null 2>/dev/null; then
3488 CYGPATH_W='cygpath -w'
3489 else
3490 CYGPATH_W=echo
3491 fi
3492fi
3493
3494
3495# Define the identity of the package.
3496 PACKAGE='libgfortran'
0dce3ca1 3497 VERSION='0.3'
6de9cd9a
DN
3498
3499
6de9cd9a
DN
3500# Some tools Automake needs.
3501
3502ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3503
3504
3505AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3506
3507
3508AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3509
3510
3511AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3512
3513
3514MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3515
22e05272
JM
3516# For better backward compatibility. To be removed once Automake 1.9.x
3517# dies out for good. For more background, see:
3518# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3519# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3520mkdir_p='$(MKDIR_P)'
3521
3522# We need awk for the "check" target (and possibly the TAP driver). The
3523# system "awk" is bad on some platforms.
c20fdb91
JB
3524# Always define AMTAR for backward compatibility. Yes, it's still used
3525# in the wild :-( We should find a proper way to deprecate it ...
3526AMTAR='$${TAR-tar}'
d49ec2d1 3527
22e05272
JM
3528
3529# We'll loop over all known methods to create a tar archive until one works.
3530_am_tools='gnutar pax cpio none'
3531
c20fdb91 3532am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3533
3534
6de9cd9a
DN
3535
3536
3537
6de9cd9a 3538
22e05272
JM
3539# POSIX will say in a future version that running "rm -f" with no argument
3540# is OK; and we want to be able to make that assumption in our Makefile
3541# recipes. So use an aggressive probe to check that the usage we want is
3542# actually supported "in the wild" to an acceptable degree.
3543# See automake bug#10828.
3544# To make any issue more visible, cause the running configure to be aborted
3545# by default if the 'rm' program in use doesn't match our expectations; the
3546# user can still override this though.
3547if rm -f && rm -fr && rm -rf; then : OK; else
3548 cat >&2 <<'END'
3549Oops!
3550
3551Your 'rm' program seems unable to run without file operands specified
3552on the command line, even when the '-f' option is present. This is contrary
3553to the behaviour of most rm programs out there, and not conforming with
3554the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3555
3556Please tell bug-automake@gnu.org about your system, including the value
3557of your $PATH and any error possibly output before this message. This
3558can help us improve future automake versions.
3559
3560END
3561 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3562 echo 'Configuration will proceed anyway, since you have set the' >&2
3563 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3564 echo >&2
3565 else
3566 cat >&2 <<'END'
3567Aborting the configuration process, to ensure you take notice of the issue.
3568
3569You can download and install GNU coreutils to get an 'rm' implementation
3570that behaves properly: <http://www.gnu.org/software/coreutils/>.
3571
3572If you want to complete the configuration process using your problematic
3573'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3574to "yes", and re-run configure.
3575
3576END
3577 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3578 fi
3579fi
3580
3581
5213506e
RW
3582
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3584$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3585 # Check whether --enable-maintainer-mode was given.
3586if test "${enable_maintainer_mode+set}" = set; then :
3587 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3588else
3589 USE_MAINTAINER_MODE=no
5213506e 3590fi
6de9cd9a 3591
5213506e
RW
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3593$as_echo "$USE_MAINTAINER_MODE" >&6; }
3594 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3595 MAINTAINER_MODE_TRUE=
3596 MAINTAINER_MODE_FALSE='#'
3597else
3598 MAINTAINER_MODE_TRUE='#'
3599 MAINTAINER_MODE_FALSE=
3600fi
3601
3602 MAINT=$MAINTAINER_MODE_TRUE
3603
3604
96b8a615 3605# Default to --enable-multilib
5213506e
RW
3606# Check whether --enable-multilib was given.
3607if test "${enable_multilib+set}" = set; then :
3608 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3609 yes) multilib=yes ;;
3610 no) multilib=no ;;
22e05272 3611 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3612 esac
3613else
3614 multilib=yes
5213506e
RW
3615fi
3616
96b8a615
AJ
3617
3618# We may get other options which we leave undocumented:
3619# --with-target-subdir, --with-multisrctop, --with-multisubdir
3620# See config-ml.in if you want the gory details.
3621
3622if test "$srcdir" = "."; then
3623 if test "$with_target_subdir" != "."; then
3624 multi_basedir="$srcdir/$with_multisrctop../.."
3625 else
3626 multi_basedir="$srcdir/$with_multisrctop.."
3627 fi
3628else
3629 multi_basedir="$srcdir/.."
3630fi
3631
3632
9f9ef303
FXC
3633# Even if the default multilib is not a cross compilation,
3634# it may be that some of the other multilibs are.
3635if test $cross_compiling = no && test $multilib = yes \
3636 && test "x${with_multisubdir}" != x ; then
3637 cross_compiling=maybe
3638fi
3639
5213506e 3640ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3641
3642
3643# Handy for debugging:
3644#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3645
3646# Are we being configured with some form of cross compiler?
3647# NB: We don't actually need to know this just now, but when, say, a test
3648# suite is included, we'll have to know.
3649if test "$build" != "$host"; then
3650 LIBGFOR_IS_NATIVE=false
f02d008e 3651
96b8a615
AJ
3652else
3653 LIBGFOR_IS_NATIVE=true
3654fi
3655
21be0a5a 3656DEPDIR="${am__leading_dot}deps"
96b8a615 3657
21be0a5a 3658ac_config_commands="$ac_config_commands depfiles"
96b8a615 3659
6de9cd9a 3660
21be0a5a
JB
3661am_make=${MAKE-make}
3662cat > confinc << 'END'
3663am__doit:
3664 @echo this is the am__doit target
3665.PHONY: am__doit
3666END
3667# If we don't find an include directive, just comment out the code.
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3669$as_echo_n "checking for style of include used by $am_make... " >&6; }
3670am__include="#"
3671am__quote=
3672_am_result=none
3673# First try GNU make style include.
3674echo "include confinc" > confmf
22e05272 3675# Ignore all kinds of additional output from 'make'.
21be0a5a
JB
3676case `$am_make -s -f confmf 2> /dev/null` in #(
3677*the\ am__doit\ target*)
3678 am__include=include
3679 am__quote=
3680 _am_result=GNU
3681 ;;
3682esac
3683# Now try BSD make style include.
3684if test "$am__include" = "#"; then
3685 echo '.include "confinc"' > confmf
3686 case `$am_make -s -f confmf 2> /dev/null` in #(
3687 *the\ am__doit\ target*)
3688 am__include=.include
3689 am__quote="\""
3690 _am_result=BSD
3691 ;;
3692 esac
3693fi
1ec601bf 3694
6de9cd9a 3695
21be0a5a
JB
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3697$as_echo "$_am_result" >&6; }
3698rm -f confinc confmf
3699
3700# Check whether --enable-dependency-tracking was given.
3701if test "${enable_dependency_tracking+set}" = set; then :
3702 enableval=$enable_dependency_tracking;
3703fi
3704
3705if test "x$enable_dependency_tracking" != xno; then
3706 am_depcomp="$ac_aux_dir/depcomp"
3707 AMDEPBACKSLASH='\'
c20fdb91 3708 am__nodep='_no'
21be0a5a
JB
3709fi
3710 if test "x$enable_dependency_tracking" != xno; then
3711 AMDEP_TRUE=
3712 AMDEP_FALSE='#'
3713else
3714 AMDEP_TRUE='#'
3715 AMDEP_FALSE=
3716fi
6de9cd9a
DN
3717
3718
6de9cd9a
DN
3719ac_ext=c
3720ac_cpp='$CPP $CPPFLAGS'
3721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3726set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3729if ${ac_cv_prog_CC+:} false; then :
5213506e 3730 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3731else
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
5213506e 3740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3744 break 2
3745 fi
3746done
5213506e
RW
3747 done
3748IFS=$as_save_IFS
6de9cd9a
DN
3749
3750fi
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
5213506e
RW
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755$as_echo "$CC" >&6; }
6de9cd9a 3756else
5213506e
RW
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
6de9cd9a
DN
3759fi
3760
5213506e 3761
6de9cd9a
DN
3762fi
3763if test -z "$ac_cv_prog_CC"; then
3764 ac_ct_CC=$CC
3765 # Extract the first word of "gcc", so it can be a program name with args.
3766set dummy gcc; ac_word=$2
5213506e
RW
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3769if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3770 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3771else
3772 if test -n "$ac_ct_CC"; then
3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
5213506e 3780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3782 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3784 break 2
3785 fi
3786done
5213506e
RW
3787 done
3788IFS=$as_save_IFS
6de9cd9a
DN
3789
3790fi
3791fi
3792ac_ct_CC=$ac_cv_prog_ac_ct_CC
3793if test -n "$ac_ct_CC"; then
5213506e
RW
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3795$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3796else
5213506e
RW
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798$as_echo "no" >&6; }
6de9cd9a
DN
3799fi
3800
5213506e
RW
3801 if test "x$ac_ct_CC" = x; then
3802 CC=""
3803 else
3804 case $cross_compiling:$ac_tool_warned in
3805yes:)
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808ac_tool_warned=yes ;;
3809esac
3810 CC=$ac_ct_CC
3811 fi
6de9cd9a
DN
3812else
3813 CC="$ac_cv_prog_CC"
3814fi
3815
3816if test -z "$CC"; then
5213506e
RW
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3819set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3822if ${ac_cv_prog_CC+:} false; then :
5213506e 3823 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3824else
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
5213506e 3833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3835 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3837 break 2
3838 fi
3839done
5213506e
RW
3840 done
3841IFS=$as_save_IFS
6de9cd9a
DN
3842
3843fi
3844fi
3845CC=$ac_cv_prog_CC
3846if test -n "$CC"; then
5213506e
RW
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848$as_echo "$CC" >&6; }
38d24731 3849else
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
38d24731
RW
3852fi
3853
38d24731 3854
5213506e 3855 fi
6de9cd9a
DN
3856fi
3857if test -z "$CC"; then
3858 # Extract the first word of "cc", so it can be a program name with args.
3859set dummy cc; ac_word=$2
5213506e
RW
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3862if ${ac_cv_prog_CC+:} false; then :
5213506e 3863 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3864else
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3867else
3868 ac_prog_rejected=no
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
5213506e 3874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
3876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3877 ac_prog_rejected=yes
3878 continue
3879 fi
3880 ac_cv_prog_CC="cc"
5213506e 3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3882 break 2
3883 fi
3884done
5213506e
RW
3885 done
3886IFS=$as_save_IFS
6de9cd9a
DN
3887
3888if test $ac_prog_rejected = yes; then
3889 # We found a bogon in the path, so make sure we never use it.
3890 set dummy $ac_cv_prog_CC
3891 shift
3892 if test $# != 0; then
3893 # We chose a different compiler from the bogus one.
3894 # However, it has the same basename, so the bogon will be chosen
3895 # first if we set CC to just the basename; use the full file name.
3896 shift
3897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3898 fi
3899fi
3900fi
3901fi
3902CC=$ac_cv_prog_CC
3903if test -n "$CC"; then
5213506e
RW
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905$as_echo "$CC" >&6; }
6de9cd9a 3906else
5213506e
RW
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
6de9cd9a
DN
3909fi
3910
5213506e 3911
6de9cd9a
DN
3912fi
3913if test -z "$CC"; then
3914 if test -n "$ac_tool_prefix"; then
5213506e 3915 for ac_prog in cl.exe
6de9cd9a
DN
3916 do
3917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3921if ${ac_cv_prog_CC+:} false; then :
5213506e 3922 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3923else
3924 if test -n "$CC"; then
3925 ac_cv_prog_CC="$CC" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
5213506e 3932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3936 break 2
3937 fi
3938done
5213506e
RW
3939 done
3940IFS=$as_save_IFS
6de9cd9a
DN
3941
3942fi
3943fi
3944CC=$ac_cv_prog_CC
3945if test -n "$CC"; then
5213506e
RW
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947$as_echo "$CC" >&6; }
6de9cd9a 3948else
5213506e
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950$as_echo "no" >&6; }
6de9cd9a
DN
3951fi
3952
5213506e 3953
6de9cd9a
DN
3954 test -n "$CC" && break
3955 done
3956fi
3957if test -z "$CC"; then
3958 ac_ct_CC=$CC
5213506e 3959 for ac_prog in cl.exe
6de9cd9a
DN
3960do
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962set dummy $ac_prog; ac_word=$2
5213506e
RW
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3965if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3966 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3967else
3968 if test -n "$ac_ct_CC"; then
3969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970else
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
5213506e 3976 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3978 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3980 break 2
3981 fi
3982done
5213506e
RW
3983 done
3984IFS=$as_save_IFS
6de9cd9a
DN
3985
3986fi
3987fi
3988ac_ct_CC=$ac_cv_prog_ac_ct_CC
3989if test -n "$ac_ct_CC"; then
5213506e
RW
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3991$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3992else
5213506e
RW
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994$as_echo "no" >&6; }
6de9cd9a
DN
3995fi
3996
5213506e 3997
6de9cd9a
DN
3998 test -n "$ac_ct_CC" && break
3999done
4000
5213506e
RW
4001 if test "x$ac_ct_CC" = x; then
4002 CC=""
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005yes:)
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008ac_tool_warned=yes ;;
4009esac
4010 CC=$ac_ct_CC
4011 fi
6de9cd9a
DN
4012fi
4013
4014fi
4015
4016
5213506e
RW
4017test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4019as_fn_error $? "no acceptable C compiler found in \$PATH
4020See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a
DN
4021
4022# Provide some information about the compiler.
5213506e
RW
4023$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4024set X $ac_compile
4025ac_compiler=$2
4026for ac_option in --version -v -V -qversion; do
4027 { { ac_try="$ac_compiler $ac_option >&5"
4028case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 4035 ac_status=$?
5213506e
RW
4036 if test -s conftest.err; then
4037 sed '10a\
4038... rest of stderr output deleted ...
4039 10q' conftest.err >conftest.er1
4040 cat conftest.er1 >&5
5213506e 4041 fi
22e05272 4042 rm -f conftest.er1 conftest.err
5213506e
RW
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045done
6de9cd9a 4046
5213506e 4047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4048/* end confdefs.h. */
02ce382c 4049#include <stdio.h>
f02d008e
JD
4050int
4051main ()
4052{
02ce382c 4053printf ("hello world\n");
f02d008e
JD
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058# FIXME: Cleanup?
5213506e 4059if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
4060 (eval $ac_link) 2>&5
4061 ac_status=$?
5213506e
RW
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
f02d008e
JD
4064 gcc_no_link=no
4065else
4066 gcc_no_link=yes
4067fi
f02d008e
JD
4068if test x$gcc_no_link = xyes; then
4069 # Setting cross_compile will disable run tests; it will
4070 # also disable AC_CHECK_FILE but that's generally
4071 # correct if we can't link.
4072 cross_compiling=yes
4073 EXEEXT=
4074else
5213506e 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
4076/* end confdefs.h. */
4077
6de9cd9a
DN
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086ac_clean_files_save=$ac_clean_files
22e05272 4087ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6de9cd9a
DN
4088# Try to create an executable without -o first, disregard a.out.
4089# It will help us diagnose broken compilers, and finding out an intuition
4090# of exeext.
22e05272
JM
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4092$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4093ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4094
4095# The possible output files:
4096ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4097
4098ac_rmfiles=
4099for ac_file in $ac_files
4100do
4101 case $ac_file in
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4104 esac
4105done
4106rm -f $ac_rmfiles
4107
4108if { { ac_try="$ac_link_default"
4109case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114$as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_link_default") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; then :
4119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4121# in a Makefile. We should not override ac_cv_exeext if it was cached,
4122# so that the user can short-circuit this test for compilers unknown to
4123# Autoconf.
4124for ac_file in $ac_files ''
6de9cd9a
DN
4125do
4126 test -f "$ac_file" || continue
4127 case $ac_file in
5213506e 4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
4129 ;;
4130 [ab].out )
4131 # We found the default executable, but exeext='' is most
4132 # certainly right.
4133 break;;
4134 *.* )
5213506e
RW
4135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4136 then :; else
4137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4138 fi
4139 # We set ac_cv_exeext here because the later test for it is not
4140 # safe: cross compilers may not add the suffix if given an `-o'
4141 # argument, so we may need to know it at that point already.
4142 # Even if this section looks crufty: it has the advantage of
4143 # actually working.
6de9cd9a
DN
4144 break;;
4145 * )
4146 break;;
4147 esac
4148done
5213506e
RW
4149test "$ac_cv_exeext" = no && ac_cv_exeext=
4150
6de9cd9a 4151else
5213506e
RW
4152 ac_file=''
4153fi
5213506e 4154if test -z "$ac_file"; then :
22e05272
JM
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156$as_echo "no" >&6; }
4157$as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
5213506e
RW
4160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4162as_fn_error 77 "C compiler cannot create executables
4163See \`config.log' for more details" "$LINENO" 5; }
4164else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166$as_echo "yes" >&6; }
6de9cd9a 4167fi
22e05272
JM
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4169$as_echo_n "checking for C compiler default output file name... " >&6; }
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4171$as_echo "$ac_file" >&6; }
6de9cd9a 4172ac_exeext=$ac_cv_exeext
6de9cd9a 4173
22e05272 4174rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6de9cd9a 4175ac_clean_files=$ac_clean_files_save
5213506e
RW
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4177$as_echo_n "checking for suffix of executables... " >&6; }
4178if { { ac_try="$ac_link"
4179case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184$as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_link") 2>&5
6de9cd9a 4186 ac_status=$?
5213506e
RW
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }; then :
6de9cd9a
DN
4189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4190# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4191# work properly (i.e., refer to `conftest.exe'), while it won't with
4192# `rm'.
4193for ac_file in conftest.exe conftest conftest.*; do
4194 test -f "$ac_file" || continue
4195 case $ac_file in
5213506e 4196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4198 break;;
4199 * ) break;;
4200 esac
4201done
4202else
5213506e
RW
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4205as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4206See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a 4207fi
22e05272 4208rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4210$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4211
4212rm -f conftest.$ac_ext
4213EXEEXT=$ac_cv_exeext
4214ac_exeext=$EXEEXT
22e05272
JM
4215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h. */
4217#include <stdio.h>
4218int
4219main ()
4220{
4221FILE *f = fopen ("conftest.out", "w");
4222 return ferror (f) || fclose (f) != 0;
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228ac_clean_files="$ac_clean_files conftest.out"
4229# Check that the compiler produces executables we can run. If not, either
4230# the compiler is broken, or we cross compile.
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4232$as_echo_n "checking whether we are cross compiling... " >&6; }
4233if test "$cross_compiling" != yes; then
4234 { { ac_try="$ac_link"
4235case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240$as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_link") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }
4245 if { ac_try='./conftest$ac_cv_exeext'
4246 { { case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251$as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; }; }; then
4256 cross_compiling=no
4257 else
4258 if test "$cross_compiling" = maybe; then
4259 cross_compiling=yes
4260 else
4261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4263as_fn_error $? "cannot run C compiled programs.
4264If you meant to cross compile, use \`--host'.
4265See \`config.log' for more details" "$LINENO" 5; }
4266 fi
4267 fi
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4270$as_echo "$cross_compiling" >&6; }
4271
4272rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4273ac_clean_files=$ac_clean_files_save
f02d008e 4274fi
5213506e
RW
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4276$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4277if ${ac_cv_objext+:} false; then :
5213506e 4278 $as_echo_n "(cached) " >&6
6de9cd9a 4279else
5213506e 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4281/* end confdefs.h. */
4282
4283int
4284main ()
4285{
4286
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291rm -f conftest.o conftest.obj
5213506e
RW
4292if { { ac_try="$ac_compile"
4293case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298$as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compile") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }; then :
4303 for ac_file in conftest.o conftest.obj conftest.*; do
4304 test -f "$ac_file" || continue;
6de9cd9a 4305 case $ac_file in
5213506e 4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4308 break;;
4309 esac
4310done
4311else
5213506e 4312 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
5213506e
RW
4315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4317as_fn_error $? "cannot compute suffix of object files: cannot compile
4318See \`config.log' for more details" "$LINENO" 5; }
78511f8b 4319fi
78511f8b
JB
4320rm -f conftest.$ac_cv_objext conftest.$ac_ext
4321fi
5213506e
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4323$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4324OBJEXT=$ac_cv_objext
4325ac_objext=$OBJEXT
5213506e
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4328if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4329 $as_echo_n "(cached) " >&6
78511f8b 4330else
5213506e 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4332/* end confdefs.h. */
6de9cd9a 4333
6de9cd9a
DN
4334int
4335main ()
4336{
78511f8b
JB
4337#ifndef __GNUC__
4338 choke me
4339#endif
c0e7e2bf 4340
6de9cd9a
DN
4341 ;
4342 return 0;
4343}
4344_ACEOF
5213506e 4345if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4346 ac_compiler_gnu=yes
6de9cd9a 4347else
5213506e 4348 ac_compiler_gnu=no
78511f8b 4349fi
5213506e 4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4351ac_cv_c_compiler_gnu=$ac_compiler_gnu
4352
4353fi
5213506e
RW
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356if test $ac_compiler_gnu = yes; then
4357 GCC=yes
4358else
4359 GCC=
4360fi
78511f8b
JB
4361ac_test_CFLAGS=${CFLAGS+set}
4362ac_save_CFLAGS=$CFLAGS
5213506e
RW
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4365if ${ac_cv_prog_cc_g+:} false; then :
5213506e 4366 $as_echo_n "(cached) " >&6
78511f8b 4367else
5213506e
RW
4368 ac_save_c_werror_flag=$ac_c_werror_flag
4369 ac_c_werror_flag=yes
4370 ac_cv_prog_cc_g=no
4371 CFLAGS="-g"
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4373/* end confdefs.h. */
c0e7e2bf 4374
6de9cd9a
DN
4375int
4376main ()
4377{
c0e7e2bf 4378
6de9cd9a
DN
4379 ;
4380 return 0;
4381}
4382_ACEOF
5213506e 4383if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4384 ac_cv_prog_cc_g=yes
4385else
5213506e
RW
4386 CFLAGS=""
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h. */
4389
4390int
4391main ()
4392{
4393
4394 ;
4395 return 0;
4396}
4397_ACEOF
4398if ac_fn_c_try_compile "$LINENO"; then :
4399
4400else
4401 ac_c_werror_flag=$ac_save_c_werror_flag
4402 CFLAGS="-g"
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
f489fba1 4405
5213506e
RW
4406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_g=yes
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4418fi
5213506e 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4420fi
5213506e
RW
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 ac_c_werror_flag=$ac_save_c_werror_flag
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4426if test "$ac_test_CFLAGS" = set; then
4427 CFLAGS=$ac_save_CFLAGS
4428elif test $ac_cv_prog_cc_g = yes; then
4429 if test "$GCC" = yes; then
4430 CFLAGS="-g -O2"
4431 else
4432 CFLAGS="-g"
4433 fi
4434else
4435 if test "$GCC" = yes; then
4436 CFLAGS="-O2"
4437 else
4438 CFLAGS=
4439 fi
4440fi
5213506e
RW
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4443if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4444 $as_echo_n "(cached) " >&6
38d24731 4445else
5213506e 4446 ac_cv_prog_cc_c89=no
38d24731 4447ac_save_CC=$CC
5213506e 4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4449/* end confdefs.h. */
38d24731
RW
4450#include <stdarg.h>
4451#include <stdio.h>
22e05272 4452struct stat;
38d24731
RW
4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454struct buf { int x; };
4455FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456static char *e (p, i)
4457 char **p;
4458 int i;
4459{
4460 return p[i];
4461}
4462static char *f (char * (*g) (char **, int), char **p, ...)
4463{
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4470}
f489fba1 4471
38d24731
RW
4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
5213506e 4475 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4478 that's true only with -std. */
38d24731
RW
4479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
5213506e
RW
4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483#define FOO(x) 'x'
4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
38d24731
RW
4486int test (int i, double x);
4487struct s1 {int (*f) (int a);};
4488struct s2 {int (*f) (double a);};
4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490int argc;
4491char **argv;
f489fba1
FXC
4492int
4493main ()
4494{
38d24731 4495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4496 ;
4497 return 0;
4498}
4499_ACEOF
5213506e
RW
4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4502do
4503 CC="$ac_save_CC $ac_arg"
5213506e
RW
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
38d24731 4506fi
5213506e
RW
4507rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4509done
5213506e 4510rm -f conftest.$ac_ext
38d24731
RW
4511CC=$ac_save_CC
4512
4513fi
5213506e
RW
4514# AC_CACHE_VAL
4515case "x$ac_cv_prog_cc_c89" in
4516 x)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518$as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521$as_echo "unsupported" >&6; } ;;
38d24731 4522 *)
5213506e
RW
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4526esac
5213506e 4527if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4528
4529fi
6de9cd9a 4530
6de9cd9a
DN
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4536
22e05272
JM
4537ac_ext=c
4538ac_cpp='$CPP $CPPFLAGS'
4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4543$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4544if ${am_cv_prog_cc_c_o+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546else
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h. */
4549
4550int
4551main ()
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558 # Make sure it works both with $CC and with simple cc.
4559 # Following AC_PROG_CC_C_O, we do the test twice because some
4560 # compilers refuse to overwrite an existing .o file with -o,
4561 # though they will create one.
4562 am_cv_prog_cc_c_o=yes
4563 for am_i in 1 2; do
4564 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4565 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } \
4569 && test -f conftest2.$ac_objext; then
4570 : OK
4571 else
4572 am_cv_prog_cc_c_o=no
4573 break
4574 fi
4575 done
4576 rm -f core conftest*
4577 unset am_i
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4580$as_echo "$am_cv_prog_cc_c_o" >&6; }
4581if test "$am_cv_prog_cc_c_o" != yes; then
4582 # Losing compiler, so override with the script.
4583 # FIXME: It is wrong to rewrite CC.
4584 # But if we don't then we get into trouble of one sort or another.
4585 # A longer-term fix would be to have automake use am__CC in this case,
4586 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4587 CC="$am_aux_dir/compile $CC"
4588fi
4589ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595
679c0f9a
TT
4596depcc="$CC" am_compiler_list=
4597
5213506e
RW
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4599$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4600if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4601 $as_echo_n "(cached) " >&6
679c0f9a
TT
4602else
4603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4604 # We make a subdir and do the tests there. Otherwise we can end up
4605 # making bogus files that we don't know about and never remove. For
4606 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4607 # making a dummy file named 'D' -- because '-MD' means "put the output
4608 # in D".
c20fdb91 4609 rm -rf conftest.dir
679c0f9a
TT
4610 mkdir conftest.dir
4611 # Copy depcomp to subdir because otherwise we won't find it if we're
4612 # using a relative directory.
4613 cp "$am_depcomp" conftest.dir
4614 cd conftest.dir
4615 # We will build objects and dependencies in a subdirectory because
4616 # it helps to detect inapplicable dependency modes. For instance
4617 # both Tru64's cc and ICC support -MD to output dependencies as a
4618 # side effect of compilation, but ICC will put the dependencies in
4619 # the current directory while Tru64 will put them in the object
4620 # directory.
4621 mkdir sub
4622
4623 am_cv_CC_dependencies_compiler_type=none
4624 if test "$am_compiler_list" = ""; then
4625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4626 fi
5213506e
RW
4627 am__universal=false
4628 case " $depcc " in #(
4629 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630 esac
4631
679c0f9a
TT
4632 for depmode in $am_compiler_list; do
4633 # Setup a source with many dependencies, because some compilers
4634 # like to wrap large dependency lists on column 80 (with \), and
4635 # we should not choose a depcomp mode which is confused by this.
4636 #
4637 # We need to recreate these files for each test, as the compiler may
4638 # overwrite some of them when testing with obscure command lines.
4639 # This happens at least with the AIX C compiler.
4640 : > sub/conftest.c
4641 for i in 1 2 3 4 5 6; do
4642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4643 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4644 # Solaris 10 /bin/sh.
4645 echo '/* dummy */' > sub/conftst$i.h
679c0f9a
TT
4646 done
4647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4648
22e05272 4649 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4650 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4651 # handle '-M -o', and we need to detect this. Also, some Intel
4652 # versions had trouble with output in subdirs.
5213506e
RW
4653 am__obj=sub/conftest.${OBJEXT-o}
4654 am__minus_obj="-o $am__obj"
679c0f9a 4655 case $depmode in
5213506e
RW
4656 gcc)
4657 # This depmode causes a compiler race in universal mode.
4658 test "$am__universal" = false || continue
4659 ;;
679c0f9a 4660 nosideeffect)
22e05272
JM
4661 # After this tag, mechanisms are not by side-effect, so they'll
4662 # only be used when explicitly requested.
679c0f9a
TT
4663 if test "x$enable_dependency_tracking" = xyes; then
4664 continue
4665 else
4666 break
4667 fi
4668 ;;
c20fdb91 4669 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4670 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4671 # not run yet. These depmodes are late enough in the game, and
4672 # so weak that their functioning should not be impacted.
4673 am__obj=conftest.${OBJEXT-o}
4674 am__minus_obj=
4675 ;;
679c0f9a
TT
4676 none) break ;;
4677 esac
679c0f9a 4678 if depmode=$depmode \
5213506e 4679 source=sub/conftest.c object=$am__obj \
679c0f9a 4680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4681 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4682 >/dev/null 2>conftest.err &&
5213506e 4683 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4685 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687 # icc doesn't choke on unknown options, it will just issue warnings
4688 # or remarks (even with -Werror). So we grep stderr for any message
4689 # that says an option was ignored or not supported.
4690 # When given -MP, icc 7.0 and 7.1 complain thusly:
4691 # icc: Command line warning: ignoring option '-M'; no argument required
4692 # The diagnosis changed in icc 8.0:
4693 # icc: Command line remark: option '-MP' not supported
4694 if (grep 'ignoring option' conftest.err ||
4695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696 am_cv_CC_dependencies_compiler_type=$depmode
4697 break
4698 fi
4699 fi
4700 done
4701
4702 cd ..
4703 rm -rf conftest.dir
4704else
4705 am_cv_CC_dependencies_compiler_type=none
4706fi
4707
4708fi
5213506e
RW
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4710$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4711CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4712
5213506e 4713 if
679c0f9a
TT
4714 test "x$enable_dependency_tracking" != xno \
4715 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716 am__fastdepCC_TRUE=
4717 am__fastdepCC_FALSE='#'
4718else
4719 am__fastdepCC_TRUE='#'
4720 am__fastdepCC_FALSE=
4721fi
4722
6de9cd9a 4723
6de9cd9a 4724
21be0a5a
JB
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4731$as_echo_n "checking how to run the C preprocessor... " >&6; }
4732# On Suns, sometimes $CPP names a directory.
4733if test -n "$CPP" && test -d "$CPP"; then
4734 CPP=
6de9cd9a 4735fi
21be0a5a 4736if test -z "$CPP"; then
22e05272 4737 if ${ac_cv_prog_CPP+:} false; then :
21be0a5a
JB
4738 $as_echo_n "(cached) " >&6
4739else
4740 # Double quotes because CPP needs to be expanded
4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742 do
4743 ac_preproc_ok=false
4744for ac_c_preproc_warn_flag in '' yes
4745do
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4753/* end confdefs.h. */
21be0a5a
JB
4754#ifdef __STDC__
4755# include <limits.h>
4756#else
4757# include <assert.h>
4758#endif
4759 Syntax error
c0e7e2bf 4760_ACEOF
21be0a5a
JB
4761if ac_fn_c_try_cpp "$LINENO"; then :
4762
49ea7a0e 4763else
21be0a5a
JB
4764 # Broken: fails on valid input.
4765continue
49ea7a0e 4766fi
22e05272 4767rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4768
21be0a5a
JB
4769 # OK, works on sane cases. Now check whether nonexistent headers
4770 # can be detected and how.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#include <ac_nonexistent.h>
49ea7a0e 4774_ACEOF
21be0a5a
JB
4775if ac_fn_c_try_cpp "$LINENO"; then :
4776 # Broken: success on invalid input.
4777continue
c0e7e2bf 4778else
21be0a5a
JB
4779 # Passes both tests.
4780ac_preproc_ok=:
4781break
49ea7a0e 4782fi
22e05272 4783rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4784
4785done
4786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4787rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4788if $ac_preproc_ok; then :
4789 break
c0e7e2bf
JB
4790fi
4791
21be0a5a
JB
4792 done
4793 ac_cv_prog_CPP=$CPP
4794
4795fi
4796 CPP=$ac_cv_prog_CPP
49ea7a0e 4797else
21be0a5a 4798 ac_cv_prog_CPP=$CPP
49ea7a0e 4799fi
21be0a5a
JB
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4801$as_echo "$CPP" >&6; }
4802ac_preproc_ok=false
4803for ac_c_preproc_warn_flag in '' yes
4804do
4805 # Use a header file that comes with gcc, so configuring glibc
4806 # with a fresh cross-compiler works.
4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808 # <limits.h> exists even on freestanding compilers.
4809 # On the NeXT, cc -E runs the code through the compiler's parser,
4810 # not just through cpp. "Syntax error" is here to catch this case.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h. */
4813#ifdef __STDC__
4814# include <limits.h>
4815#else
4816# include <assert.h>
4817#endif
4818 Syntax error
4819_ACEOF
4820if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4821
49ea7a0e 4822else
21be0a5a
JB
4823 # Broken: fails on valid input.
4824continue
49ea7a0e 4825fi
22e05272 4826rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4827
21be0a5a
JB
4828 # OK, works on sane cases. Now check whether nonexistent headers
4829 # can be detected and how.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4831/* end confdefs.h. */
21be0a5a 4832#include <ac_nonexistent.h>
c049309d 4833_ACEOF
21be0a5a
JB
4834if ac_fn_c_try_cpp "$LINENO"; then :
4835 # Broken: success on invalid input.
4836continue
c049309d 4837else
21be0a5a
JB
4838 # Passes both tests.
4839ac_preproc_ok=:
4840break
c049309d 4841fi
22e05272 4842rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4843
4844done
4845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4846rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4847if $ac_preproc_ok; then :
4848
c049309d 4849else
21be0a5a
JB
4850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4852as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4853See \`config.log' for more details" "$LINENO" 5; }
c049309d 4854fi
c049309d 4855
21be0a5a
JB
4856ac_ext=c
4857ac_cpp='$CPP $CPPFLAGS'
4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4861
21be0a5a
JB
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4865if ${ac_cv_path_GREP+:} false; then :
5213506e 4866 $as_echo_n "(cached) " >&6
6de9cd9a 4867else
21be0a5a
JB
4868 if test -z "$GREP"; then
4869 ac_path_GREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
21be0a5a 4876 for ac_prog in grep ggrep; do
5213506e 4877 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4879 as_fn_executable_p "$ac_path_GREP" || continue
21be0a5a
JB
4880# Check for GNU ac_path_GREP and select it if it is found.
4881 # Check for GNU $ac_path_GREP
4882case `"$ac_path_GREP" --version 2>&1` in
4883*GNU*)
4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4885*)
4886 ac_count=0
4887 $as_echo_n 0123456789 >"conftest.in"
4888 while :
4889 do
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'GREP' >> "conftest.nl"
4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_GREP="$ac_path_GREP"
4900 ac_path_GREP_max=$ac_count
4901 fi
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
5213506e 4904 done
21be0a5a
JB
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906esac
6de9cd9a 4907
21be0a5a
JB
4908 $ac_path_GREP_found && break 3
4909 done
4910 done
4911 done
4912IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_GREP"; then
22e05272 4914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4915 fi
6de9cd9a 4916else
21be0a5a 4917 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4918fi
4919
6de9cd9a 4920fi
21be0a5a
JB
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922$as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
6de9cd9a 4924
21be0a5a
JB
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927$as_echo_n "checking for egrep... " >&6; }
22e05272 4928if ${ac_cv_path_EGREP+:} false; then :
5213506e 4929 $as_echo_n "(cached) " >&6
6de9cd9a 4930else
21be0a5a
JB
4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932 then ac_cv_path_EGREP="$GREP -E"
4933 else
4934 if test -z "$EGREP"; then
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
21be0a5a 4942 for ac_prog in egrep; do
5213506e 4943 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4945 as_fn_executable_p "$ac_path_EGREP" || continue
21be0a5a
JB
4946# Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948case `"$ac_path_EGREP" --version 2>&1` in
4949*GNU*)
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4951*)
4952 ac_count=0
4953 $as_echo_n 0123456789 >"conftest.in"
4954 while :
4955 do
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4967 fi
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
5213506e 4970 done
21be0a5a
JB
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972esac
6de9cd9a 4973
21be0a5a
JB
4974 $ac_path_EGREP_found && break 3
4975 done
4976 done
4977 done
4978IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_EGREP"; then
22e05272 4980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4981 fi
6de9cd9a 4982else
21be0a5a 4983 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4984fi
4985
21be0a5a 4986 fi
6de9cd9a 4987fi
21be0a5a
JB
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989$as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4991
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4994$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4995if ${ac_cv_header_stdc+:} false; then :
5213506e 4996 $as_echo_n "(cached) " >&6
6de9cd9a 4997else
21be0a5a
JB
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h. */
5000#include <stdlib.h>
5001#include <stdarg.h>
5002#include <string.h>
5003#include <float.h>
5004
5005int
5006main ()
5007{
5008
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_header_stdc=yes
6de9cd9a 5015else
21be0a5a
JB
5016 ac_cv_header_stdc=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5019
21be0a5a
JB
5020if test $ac_cv_header_stdc = yes; then
5021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h. */
5024#include <string.h>
5025
5026_ACEOF
5027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5028 $EGREP "memchr" >/dev/null 2>&1; then :
5029
5030else
5031 ac_cv_header_stdc=no
6de9cd9a 5032fi
21be0a5a
JB
5033rm -f conftest*
5034
6de9cd9a 5035fi
21be0a5a
JB
5036
5037if test $ac_cv_header_stdc = yes; then
5038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h. */
5041#include <stdlib.h>
5042
5043_ACEOF
5044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5045 $EGREP "free" >/dev/null 2>&1; then :
5046
6de9cd9a 5047else
21be0a5a 5048 ac_cv_header_stdc=no
6de9cd9a 5049fi
21be0a5a 5050rm -f conftest*
6de9cd9a 5051
6de9cd9a
DN
5052fi
5053
21be0a5a
JB
5054if test $ac_cv_header_stdc = yes; then
5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5056 if test "$cross_compiling" = yes; then :
5057 :
5058else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h. */
5061#include <ctype.h>
5062#include <stdlib.h>
5063#if ((' ' & 0x0FF) == 0x020)
5064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5066#else
5067# define ISLOWER(c) \
5068 (('a' <= (c) && (c) <= 'i') \
5069 || ('j' <= (c) && (c) <= 'r') \
5070 || ('s' <= (c) && (c) <= 'z'))
5071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5072#endif
5073
5074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5075int
5076main ()
5077{
5078 int i;
5079 for (i = 0; i < 256; i++)
5080 if (XOR (islower (i), ISLOWER (i))
5081 || toupper (i) != TOUPPER (i))
5082 return 2;
5083 return 0;
5084}
5085_ACEOF
5086if ac_fn_c_try_run "$LINENO"; then :
5087
5088else
5089 ac_cv_header_stdc=no
5090fi
5091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5092 conftest.$ac_objext conftest.beam conftest.$ac_ext
5093fi
5094
5095fi
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5098$as_echo "$ac_cv_header_stdc" >&6; }
5099if test $ac_cv_header_stdc = yes; then
5100
5101$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5102
5103fi
5104
5105# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107 inttypes.h stdint.h unistd.h
5108do :
5109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5111"
22e05272 5112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21be0a5a
JB
5113 cat >>confdefs.h <<_ACEOF
5114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5115_ACEOF
5116
5117fi
5118
5119done
5120
5121
5122
5123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 5124if test "x$ac_cv_header_minix_config_h" = xyes; then :
21be0a5a
JB
5125 MINIX=yes
5126else
5127 MINIX=
5128fi
5129
5130
5131 if test "$MINIX" = yes; then
5132
5133$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5134
5135
5136$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5137
5138
5139$as_echo "#define _MINIX 1" >>confdefs.h
5140
5141 fi
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5145$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 5146if ${ac_cv_safe_to_define___extensions__+:} false; then :
21be0a5a
JB
5147 $as_echo_n "(cached) " >&6
5148else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151
22e05272
JM
5152# define __EXTENSIONS__ 1
5153 $ac_includes_default
21be0a5a
JB
5154int
5155main ()
5156{
5157
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163 ac_cv_safe_to_define___extensions__=yes
5164else
5165 ac_cv_safe_to_define___extensions__=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5170$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5171 test $ac_cv_safe_to_define___extensions__ = yes &&
5172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5173
5174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5175
5176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5177
5178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5179
5180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5181
5182
5183
e8e66971
MR
5184
5185# Check whether --with-toolexeclibdir was given.
5186if test "${with_toolexeclibdir+set}" = set; then :
5187 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5188 /)
5189 ;;
5190 */)
5191 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5192 ;;
5193esac
5194else
5195 with_toolexeclibdir=no
5196fi
5197
5198
5199
21be0a5a
JB
5200# Calculate toolexeclibdir
5201# Also toolexecdir, though it's only used in toolexeclibdir
5202case ${version_specific_libs} in
5203 yes)
5204 # Need the gcc compiler version to know where to install libraries
5205 # and header files if --enable-version-specific-runtime-libs option
5206 # is selected.
5207 toolexecdir='$(libdir)/gcc/$(target_alias)'
5208 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5209 ;;
5210 no)
5211 if test -n "$with_cross_host" &&
5212 test x"$with_cross_host" != x"no"; then
5213 # Install a library built with a cross compiler in tooldir, not libdir.
5214 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5215 case ${with_toolexeclibdir} in
5216 no)
5217 toolexeclibdir='$(toolexecdir)/lib'
5218 ;;
5219 *)
5220 toolexeclibdir=${with_toolexeclibdir}
5221 ;;
5222 esac
21be0a5a
JB
5223 else
5224 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5225 toolexeclibdir='$(libdir)'
5226 fi
5227 multi_os_directory=`$CC -print-multi-os-directory`
5228 case $multi_os_directory in
5229 .) ;; # Avoid trailing /.
5230 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5231 esac
5232 ;;
5233esac
5234
5235
5236
5237# Create a spec file, so that compile/link tests don't fail
5238test -f libgfortran.spec || touch libgfortran.spec
5239
60858d8a
TB
5240ac_ext=c
5241ac_cpp='$CPP $CPPFLAGS'
5242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245
21be0a5a
JB
5246# Check the compiler.
5247# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5248# We must force CC to /not/ be precious variables; otherwise
5249# the wrong, non-multilib-adjusted value will be used in multilibs.
5250# As a side effect, we have to subst CFLAGS ourselves.
5251
5252
5253
5254ac_ext=c
5255ac_cpp='$CPP $CPPFLAGS'
5256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5261set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5264if ${ac_cv_prog_CC+:} false; then :
5213506e 5265 $as_echo_n "(cached) " >&6
6de9cd9a 5266else
21be0a5a
JB
5267 if test -n "$CC"; then
5268 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5269else
96b8a615
AJ
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5213506e 5275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5279 break 2
5280 fi
5281done
5213506e
RW
5282 done
5283IFS=$as_save_IFS
6de9cd9a 5284
6de9cd9a 5285fi
96b8a615 5286fi
21be0a5a
JB
5287CC=$ac_cv_prog_CC
5288if test -n "$CC"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5290$as_echo "$CC" >&6; }
96b8a615 5291else
5213506e
RW
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
96b8a615 5294fi
6de9cd9a 5295
5213506e 5296
6de9cd9a 5297fi
21be0a5a
JB
5298if test -z "$ac_cv_prog_CC"; then
5299 ac_ct_CC=$CC
5300 # Extract the first word of "gcc", so it can be a program name with args.
5301set dummy gcc; ac_word=$2
5213506e
RW
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5304if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 5305 $as_echo_n "(cached) " >&6
6de9cd9a 5306else
21be0a5a
JB
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5309else
96b8a615
AJ
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5213506e 5315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5317 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5319 break 2
5320 fi
5321done
5213506e
RW
5322 done
5323IFS=$as_save_IFS
6de9cd9a 5324
6de9cd9a 5325fi
6de9cd9a 5326fi
21be0a5a
JB
5327ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328if test -n "$ac_ct_CC"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5330$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5331else
5213506e
RW
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }
6de9cd9a
DN
5334fi
5335
21be0a5a
JB
5336 if test "x$ac_ct_CC" = x; then
5337 CC=""
5213506e
RW
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340yes:)
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343ac_tool_warned=yes ;;
5344esac
21be0a5a 5345 CC=$ac_ct_CC
5213506e 5346 fi
96b8a615 5347else
21be0a5a 5348 CC="$ac_cv_prog_CC"
6de9cd9a 5349fi
96b8a615 5350
21be0a5a
JB
5351if test -z "$CC"; then
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5354set dummy ${ac_tool_prefix}cc; ac_word=$2
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5357if ${ac_cv_prog_CC+:} false; then :
5213506e 5358 $as_echo_n "(cached) " >&6
6de9cd9a 5359else
21be0a5a
JB
5360 if test -n "$CC"; then
5361 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5362else
21be0a5a
JB
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5370 ac_cv_prog_CC="${ac_tool_prefix}cc"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374done
5375 done
5376IFS=$as_save_IFS
5377
5378fi
5379fi
5380CC=$ac_cv_prog_CC
5381if test -n "$CC"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5383$as_echo "$CC" >&6; }
5384else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386$as_echo "no" >&6; }
5387fi
5388
5389
5390 fi
5391fi
5392if test -z "$CC"; then
5393 # Extract the first word of "cc", so it can be a program name with args.
5394set dummy cc; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5397if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5398 $as_echo_n "(cached) " >&6
5399else
5400 if test -n "$CC"; then
5401 ac_cv_prog_CC="$CC" # Let the user override the test.
5402else
5403 ac_prog_rejected=no
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5412 ac_prog_rejected=yes
5413 continue
5414 fi
5415 ac_cv_prog_CC="cc"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419done
5420 done
5421IFS=$as_save_IFS
5422
5423if test $ac_prog_rejected = yes; then
5424 # We found a bogon in the path, so make sure we never use it.
5425 set dummy $ac_cv_prog_CC
5426 shift
5427 if test $# != 0; then
5428 # We chose a different compiler from the bogus one.
5429 # However, it has the same basename, so the bogon will be chosen
5430 # first if we set CC to just the basename; use the full file name.
5431 shift
5432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5433 fi
5434fi
5435fi
5436fi
5437CC=$ac_cv_prog_CC
5438if test -n "$CC"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5440$as_echo "$CC" >&6; }
5441else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446
5447fi
5448if test -z "$CC"; then
5449 if test -n "$ac_tool_prefix"; then
5450 for ac_prog in cl.exe
5451 do
5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5456if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5457 $as_echo_n "(cached) " >&6
5458else
5459 if test -n "$CC"; then
5460 ac_cv_prog_CC="$CC" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473done
5474 done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479CC=$ac_cv_prog_CC
5480if test -n "$CC"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5482$as_echo "$CC" >&6; }
5483else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488
5489 test -n "$CC" && break
5490 done
5491fi
5492if test -z "$CC"; then
5493 ac_ct_CC=$CC
5494 for ac_prog in cl.exe
5495do
5496 # Extract the first word of "$ac_prog", so it can be a program name with args.
5497set dummy $ac_prog; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5500if ${ac_cv_prog_ac_ct_CC+:} false; then :
21be0a5a
JB
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_CC"; then
5504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5513 ac_cv_prog_ac_ct_CC="$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518 done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_CC=$ac_cv_prog_ac_ct_CC
5524if test -n "$ac_ct_CC"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5526$as_echo "$ac_ct_CC" >&6; }
5527else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532
5533 test -n "$ac_ct_CC" && break
5534done
5535
5536 if test "x$ac_ct_CC" = x; then
5537 CC=""
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540yes:)
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543ac_tool_warned=yes ;;
5544esac
5545 CC=$ac_ct_CC
5546 fi
5547fi
5548
5549fi
5550
5551
5552test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5554as_fn_error $? "no acceptable C compiler found in \$PATH
5555See \`config.log' for more details" "$LINENO" 5; }
21be0a5a
JB
5556
5557# Provide some information about the compiler.
5558$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5559set X $ac_compile
5560ac_compiler=$2
5561for ac_option in --version -v -V -qversion; do
5562 { { ac_try="$ac_compiler $ac_option >&5"
5563case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566esac
5567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5568$as_echo "$ac_try_echo"; } >&5
5569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5570 ac_status=$?
5571 if test -s conftest.err; then
5572 sed '10a\
5573... rest of stderr output deleted ...
5574 10q' conftest.err >conftest.er1
5575 cat conftest.er1 >&5
21be0a5a 5576 fi
22e05272 5577 rm -f conftest.er1 conftest.err
21be0a5a
JB
5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579 test $ac_status = 0; }
5580done
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5583$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5584if ${ac_cv_c_compiler_gnu+:} false; then :
21be0a5a
JB
5585 $as_echo_n "(cached) " >&6
5586else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h. */
5589
5590int
5591main ()
5592{
5593#ifndef __GNUC__
5594 choke me
5595#endif
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_compiler_gnu=yes
5603else
5604 ac_compiler_gnu=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607ac_cv_c_compiler_gnu=$ac_compiler_gnu
5608
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5611$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5612if test $ac_compiler_gnu = yes; then
5613 GCC=yes
5614else
5615 GCC=
5616fi
5617ac_test_CFLAGS=${CFLAGS+set}
5618ac_save_CFLAGS=$CFLAGS
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5620$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5621if ${ac_cv_prog_cc_g+:} false; then :
21be0a5a
JB
5622 $as_echo_n "(cached) " >&6
5623else
5624 ac_save_c_werror_flag=$ac_c_werror_flag
5625 ac_c_werror_flag=yes
5626 ac_cv_prog_cc_g=no
5627 CFLAGS="-g"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630
5631int
5632main ()
5633{
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_compile "$LINENO"; then :
5640 ac_cv_prog_cc_g=yes
5641else
5642 CFLAGS=""
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645
5646int
5647main ()
5648{
5649
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655
5656else
5657 ac_c_werror_flag=$ac_save_c_werror_flag
5658 CFLAGS="-g"
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661
5662int
5663main ()
5664{
5665
5666 ;
5667 return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_prog_cc_g=yes
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_c_werror_flag=$ac_save_c_werror_flag
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5681$as_echo "$ac_cv_prog_cc_g" >&6; }
5682if test "$ac_test_CFLAGS" = set; then
5683 CFLAGS=$ac_save_CFLAGS
5684elif test $ac_cv_prog_cc_g = yes; then
5685 if test "$GCC" = yes; then
5686 CFLAGS="-g -O2"
5687 else
5688 CFLAGS="-g"
5689 fi
5690else
5691 if test "$GCC" = yes; then
5692 CFLAGS="-O2"
5693 else
5694 CFLAGS=
5695 fi
5696fi
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5698$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5699if ${ac_cv_prog_cc_c89+:} false; then :
21be0a5a
JB
5700 $as_echo_n "(cached) " >&6
5701else
5702 ac_cv_prog_cc_c89=no
5703ac_save_CC=$CC
5704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <stdarg.h>
5707#include <stdio.h>
22e05272 5708struct stat;
21be0a5a
JB
5709/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5710struct buf { int x; };
5711FILE * (*rcsopen) (struct buf *, struct stat *, int);
5712static char *e (p, i)
5713 char **p;
5714 int i;
5715{
5716 return p[i];
5717}
5718static char *f (char * (*g) (char **, int), char **p, ...)
5719{
5720 char *s;
5721 va_list v;
5722 va_start (v,p);
5723 s = g (p, va_arg (v,int));
5724 va_end (v);
5725 return s;
5726}
5727
5728/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5729 function prototypes and stuff, but not '\xHH' hex character constants.
5730 These don't provoke an error unfortunately, instead are silently treated
5731 as 'x'. The following induces an error, until -std is added to get
5732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5733 array size at least. It's necessary to write '\x00'==0 to get something
5734 that's true only with -std. */
5735int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5736
5737/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5738 inside strings and character constants. */
5739#define FOO(x) 'x'
5740int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5741
5742int test (int i, double x);
5743struct s1 {int (*f) (int a);};
5744struct s2 {int (*f) (double a);};
5745int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5746int argc;
5747char **argv;
5748int
5749main ()
5750{
5751return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5758do
5759 CC="$ac_save_CC $ac_arg"
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_prog_cc_c89=$ac_arg
5762fi
5763rm -f core conftest.err conftest.$ac_objext
5764 test "x$ac_cv_prog_cc_c89" != "xno" && break
5765done
5766rm -f conftest.$ac_ext
5767CC=$ac_save_CC
5768
5769fi
5770# AC_CACHE_VAL
5771case "x$ac_cv_prog_cc_c89" in
5772 x)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5774$as_echo "none needed" >&6; } ;;
5775 xno)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5777$as_echo "unsupported" >&6; } ;;
5778 *)
5779 CC="$CC $ac_cv_prog_cc_c89"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5781$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5782esac
5783if test "x$ac_cv_prog_cc_c89" != xno; then :
5784
5785fi
5786
5787ac_ext=c
5788ac_cpp='$CPP $CPPFLAGS'
5789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792
22e05272
JM
5793ac_ext=c
5794ac_cpp='$CPP $CPPFLAGS'
5795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5799$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5800if ${am_cv_prog_cc_c_o+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h. */
5805
5806int
5807main ()
5808{
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
5814 # Make sure it works both with $CC and with simple cc.
5815 # Following AC_PROG_CC_C_O, we do the test twice because some
5816 # compilers refuse to overwrite an existing .o file with -o,
5817 # though they will create one.
5818 am_cv_prog_cc_c_o=yes
5819 for am_i in 1 2; do
5820 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5821 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } \
5825 && test -f conftest2.$ac_objext; then
5826 : OK
5827 else
5828 am_cv_prog_cc_c_o=no
5829 break
5830 fi
5831 done
5832 rm -f core conftest*
5833 unset am_i
5834fi
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5836$as_echo "$am_cv_prog_cc_c_o" >&6; }
5837if test "$am_cv_prog_cc_c_o" != yes; then
5838 # Losing compiler, so override with the script.
5839 # FIXME: It is wrong to rewrite CC.
5840 # But if we don't then we get into trouble of one sort or another.
5841 # A longer-term fix would be to have automake use am__CC in this case,
5842 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5843 CC="$am_aux_dir/compile $CC"
5844fi
5845ac_ext=c
5846ac_cpp='$CPP $CPPFLAGS'
5847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850
5851
21be0a5a
JB
5852depcc="$CC" am_compiler_list=
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5855$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5856if ${am_cv_CC_dependencies_compiler_type+:} false; then :
21be0a5a
JB
5857 $as_echo_n "(cached) " >&6
5858else
5859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5860 # We make a subdir and do the tests there. Otherwise we can end up
5861 # making bogus files that we don't know about and never remove. For
5862 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5863 # making a dummy file named 'D' -- because '-MD' means "put the output
5864 # in D".
c20fdb91 5865 rm -rf conftest.dir
21be0a5a
JB
5866 mkdir conftest.dir
5867 # Copy depcomp to subdir because otherwise we won't find it if we're
5868 # using a relative directory.
5869 cp "$am_depcomp" conftest.dir
5870 cd conftest.dir
5871 # We will build objects and dependencies in a subdirectory because
5872 # it helps to detect inapplicable dependency modes. For instance
5873 # both Tru64's cc and ICC support -MD to output dependencies as a
5874 # side effect of compilation, but ICC will put the dependencies in
5875 # the current directory while Tru64 will put them in the object
5876 # directory.
5877 mkdir sub
5878
5879 am_cv_CC_dependencies_compiler_type=none
5880 if test "$am_compiler_list" = ""; then
5881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5882 fi
5883 am__universal=false
5884 case " $depcc " in #(
5885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5886 esac
5887
5888 for depmode in $am_compiler_list; do
5889 # Setup a source with many dependencies, because some compilers
5890 # like to wrap large dependency lists on column 80 (with \), and
5891 # we should not choose a depcomp mode which is confused by this.
5892 #
5893 # We need to recreate these files for each test, as the compiler may
5894 # overwrite some of them when testing with obscure command lines.
5895 # This happens at least with the AIX C compiler.
5896 : > sub/conftest.c
5897 for i in 1 2 3 4 5 6; do
5898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5900 # Solaris 10 /bin/sh.
5901 echo '/* dummy */' > sub/conftst$i.h
21be0a5a
JB
5902 done
5903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5904
22e05272 5905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21be0a5a 5906 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5907 # handle '-M -o', and we need to detect this. Also, some Intel
5908 # versions had trouble with output in subdirs.
21be0a5a
JB
5909 am__obj=sub/conftest.${OBJEXT-o}
5910 am__minus_obj="-o $am__obj"
5911 case $depmode in
5912 gcc)
5913 # This depmode causes a compiler race in universal mode.
5914 test "$am__universal" = false || continue
5915 ;;
5916 nosideeffect)
22e05272
JM
5917 # After this tag, mechanisms are not by side-effect, so they'll
5918 # only be used when explicitly requested.
21be0a5a
JB
5919 if test "x$enable_dependency_tracking" = xyes; then
5920 continue
5921 else
5922 break
5923 fi
5924 ;;
c20fdb91 5925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5926 # This compiler won't grok '-c -o', but also, the minuso test has
21be0a5a
JB
5927 # not run yet. These depmodes are late enough in the game, and
5928 # so weak that their functioning should not be impacted.
5929 am__obj=conftest.${OBJEXT-o}
5930 am__minus_obj=
5931 ;;
5932 none) break ;;
5933 esac
5934 if depmode=$depmode \
5935 source=sub/conftest.c object=$am__obj \
5936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5938 >/dev/null 2>conftest.err &&
5939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5943 # icc doesn't choke on unknown options, it will just issue warnings
5944 # or remarks (even with -Werror). So we grep stderr for any message
5945 # that says an option was ignored or not supported.
5946 # When given -MP, icc 7.0 and 7.1 complain thusly:
5947 # icc: Command line warning: ignoring option '-M'; no argument required
5948 # The diagnosis changed in icc 8.0:
5949 # icc: Command line remark: option '-MP' not supported
5950 if (grep 'ignoring option' conftest.err ||
5951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5952 am_cv_CC_dependencies_compiler_type=$depmode
5953 break
5954 fi
5955 fi
5956 done
5957
5958 cd ..
5959 rm -rf conftest.dir
5960else
5961 am_cv_CC_dependencies_compiler_type=none
5962fi
5963
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5966$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5967CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5968
5969 if
5970 test "x$enable_dependency_tracking" != xno \
5971 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5972 am__fastdepCC_TRUE=
5973 am__fastdepCC_FALSE='#'
5974else
5975 am__fastdepCC_TRUE='#'
5976 am__fastdepCC_FALSE=
5977fi
5978
5979
5980
5981
60858d8a
TB
5982
5983
60858d8a
TB
5984
5985
21be0a5a
JB
5986# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5987if test "x$GCC" = "xyes"; then
417ea5c0 5988 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -Wno-missing-include-dirs"
f7b6856f
JB
5989 ## We like to use C11 and C99 routines when available. This makes
5990 ## sure that
21be0a5a 5991 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5992 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5993 ## Compile the following tests with the same system header contents
5994 ## that we'll encounter when compiling our own source files.
f7b6856f 5995 CFLAGS="-std=gnu11 $CFLAGS"
21be0a5a
JB
5996fi
5997
26724ef9
IT
5998# Add CET specific flags if CET is enabled
5999 # Check whether --enable-cet was given.
6000if test "${enable_cet+set}" = set; then :
6001 enableval=$enable_cet;
6002 case "$enableval" in
a0e1df88 6003 yes|no|auto) ;;
22e05272 6004 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
26724ef9
IT
6005 esac
6006
6007else
8d286dd1 6008 enable_cet=auto
26724ef9
IT
6009fi
6010
6011
14e335ed
IT
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6013$as_echo_n "checking for CET support... " >&6; }
6014
9051b548 6015# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
26724ef9
IT
6016case "$host" in
6017 i[34567]86-*-linux* | x86_64-*-linux*)
6018 case "$enable_cet" in
a0e1df88 6019 auto)
14e335ed 6020 # Check if target supports multi-byte NOPs
c0f8c22a 6021 # and if compiler and assembler support CET insn.
9051b548 6022 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 6023 CFLAGS="$CFLAGS -fcf-protection"
26724ef9
IT
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h. */
6026
6027int
6028main ()
6029{
14e335ed
IT
6030
6031#if !defined(__SSE2__)
6032#error target does not support multi-byte NOPs
6033#else
26724ef9 6034asm ("setssbsy");
14e335ed
IT
6035#endif
6036
26724ef9
IT
6037 ;
6038 return 0;
6039}
6040_ACEOF
6041if ac_fn_c_try_compile "$LINENO"; then :
6042 enable_cet=yes
6043else
6044 enable_cet=no
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 6047 CFLAGS="$cet_save_CFLAGS"
26724ef9
IT
6048 ;;
6049 yes)
6050 # Check if assembler supports CET.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052/* end confdefs.h. */
6053
6054int
6055main ()
6056{
6057asm ("setssbsy");
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062if ac_fn_c_try_compile "$LINENO"; then :
6063
6064else
22e05272 6065 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
26724ef9
IT
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ;;
6069 esac
6070 ;;
6071 *)
6072 enable_cet=no
6073 ;;
6074esac
6075if test x$enable_cet = xyes; then
7b47ecf2 6076 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6078$as_echo "yes" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
26724ef9
IT
6082fi
6083
6084AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6085AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6086CFLAGS="$CFLAGS $CET_FLAGS"
6087
6088
21be0a5a
JB
6089
6090
6091
6092# Check for symbol versioning (copied from libssp).
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6094$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
6095# Check whether --enable-symvers was given.
6096if test "${enable_symvers+set}" = set; then :
6097 enableval=$enable_symvers; gfortran_use_symver=$enableval
6098else
6099 gfortran_use_symver=yes
6100fi
6101
19af62db 6102if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
6103 save_LDFLAGS="$LDFLAGS"
6104 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6105 cat > conftest.map <<EOF
21be0a5a
JB
6106FOO_1.0 {
6107 global: *foo*; bar; local: *;
6108};
6109EOF
bf382f5f 6110 if test x$gcc_no_link = xyes; then
22e05272 6111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6112fi
6113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h. */
6115int foo;
6116int
6117main ()
6118{
6119
6120 ;
6121 return 0;
6122}
6123_ACEOF
6124if ac_fn_c_try_link "$LINENO"; then :
6125 gfortran_use_symver=gnu
6126else
6127 gfortran_use_symver=no
6128fi
6129rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6131 if test x$gfortran_use_symver = xno; then
6132 case "$target_os" in
6133 solaris2*)
6134 LDFLAGS="$save_LDFLAGS"
6135 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6136 # Sun ld cannot handle wildcards and treats all entries as undefined.
6137 cat > conftest.map <<EOF
21be0a5a
JB
6138FOO_1.0 {
6139 global: foo; local: *;
6140};
6141EOF
bf382f5f 6142 if test x$gcc_no_link = xyes; then
22e05272 6143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6144fi
6145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h. */
6147int foo;
6148int
6149main ()
6150{
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_link "$LINENO"; then :
6157 gfortran_use_symver=sun
6158else
6159 gfortran_use_symver=no
6160fi
6161rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6163 ;;
6164 esac
6165 fi
6166 LDFLAGS="$save_LDFLAGS"
21be0a5a 6167fi
21be0a5a
JB
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6169$as_echo "$gfortran_use_symver" >&6; }
6170 if test "x$gfortran_use_symver" != xno; then
6171 LIBGFOR_USE_SYMVER_TRUE=
6172 LIBGFOR_USE_SYMVER_FALSE='#'
6173else
6174 LIBGFOR_USE_SYMVER_TRUE='#'
6175 LIBGFOR_USE_SYMVER_FALSE=
6176fi
6177
6178 if test "x$gfortran_use_symver" = xgnu; then
6179 LIBGFOR_USE_SYMVER_GNU_TRUE=
6180 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6181else
6182 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6183 LIBGFOR_USE_SYMVER_GNU_FALSE=
6184fi
6185
6186 if test "x$gfortran_use_symver" = xsun; then
6187 LIBGFOR_USE_SYMVER_SUN_TRUE=
6188 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6189else
6190 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6191 LIBGFOR_USE_SYMVER_SUN_FALSE=
6192fi
6193
6194
ee95f928
BS
6195# For GPU offloading, not everything in libfortran can be supported.
6196# Currently, the only target that has this problem is nvptx. The
6197# following is a (partial) list of features that are unsupportable on
6198# this particular target:
6199# * Constructors
6200# * alloca
6201# * C library support for I/O, with printf as the one notable exception
6202# * C library support for other features such as signal, environment
6203# variables, time functions
6204
b1e86e33 6205 if test "x${target_cpu}" = xnvptx; then
ee95f928
BS
6206 LIBGFOR_MINIMAL_TRUE=
6207 LIBGFOR_MINIMAL_FALSE='#'
6208else
6209 LIBGFOR_MINIMAL_TRUE='#'
6210 LIBGFOR_MINIMAL_FALSE=
6211fi
6212
6213
2e764ae1
TB
6214# Some compiler target support may have limited support for integer
6215# or floating point numbers – or may want to reduce the libgfortran size
6216# although they do have the support.
6217LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6218LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6219
2e764ae1
TB
6220
6221
6222
21be0a5a
JB
6223# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6224# similarly to how libstdc++ does it
6225ac_test_CFLAGS="${CFLAGS+set}"
6226ac_save_CFLAGS="$CFLAGS"
6227
6228# Check for -ffunction-sections -fdata-sections
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6230$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6231CFLAGS='-Werror -ffunction-sections -fdata-sections'
6232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h. */
6234
6235int
6236main ()
6237{
6238int foo;
6239 ;
6240 return 0;
6241}
6242_ACEOF
6243if ac_fn_c_try_compile "$LINENO"; then :
6244 ac_fdsections=yes
6245else
6246 ac_fdsections=no
6247fi
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249if test "$ac_test_CFLAGS" = set; then
6250 CFLAGS="$ac_save_CFLAGS"
6251else
6252 # this is the suspicious part
6253 CFLAGS=""
6254fi
6255if test x"$ac_fdsections" = x"yes"; then
6256 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6259$as_echo "$ac_fdsections" >&6; }
6260
6261
66dbcf2d
RO
6262# Check linker hardware capability support.
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6264$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6265if ${ac_cv_path_SED+:} false; then :
21be0a5a
JB
6266 $as_echo_n "(cached) " >&6
6267else
66dbcf2d
RO
6268 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6269 for ac_i in 1 2 3 4 5 6 7; do
6270 ac_script="$ac_script$as_nl$ac_script"
6271 done
6272 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6273 { ac_script=; unset ac_script;}
6274 if test -z "$SED"; then
6275 ac_path_SED_found=false
6276 # Loop through the user's path and test for each of PROGNAME-LIST
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
66dbcf2d 6282 for ac_prog in sed gsed; do
21be0a5a 6283 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6284 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6285 as_fn_executable_p "$ac_path_SED" || continue
66dbcf2d
RO
6286# Check for GNU ac_path_SED and select it if it is found.
6287 # Check for GNU $ac_path_SED
6288case `"$ac_path_SED" --version 2>&1` in
6289*GNU*)
6290 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6291*)
6292 ac_count=0
6293 $as_echo_n 0123456789 >"conftest.in"
6294 while :
6295 do
6296 cat "conftest.in" "conftest.in" >"conftest.tmp"
6297 mv "conftest.tmp" "conftest.in"
6298 cp "conftest.in" "conftest.nl"
6299 $as_echo '' >> "conftest.nl"
6300 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6302 as_fn_arith $ac_count + 1 && ac_count=$as_val
6303 if test $ac_count -gt ${ac_path_SED_max-0}; then
6304 # Best one so far, save it but keep looking for a better one
6305 ac_cv_path_SED="$ac_path_SED"
6306 ac_path_SED_max=$ac_count
6307 fi
6308 # 10*(2^10) chars as input seems more than enough
6309 test $ac_count -gt 10 && break
21be0a5a 6310 done
66dbcf2d
RO
6311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6312esac
21be0a5a 6313
66dbcf2d
RO
6314 $ac_path_SED_found && break 3
6315 done
6316 done
21be0a5a
JB
6317 done
6318IFS=$as_save_IFS
66dbcf2d 6319 if test -z "$ac_cv_path_SED"; then
22e05272 6320 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
66dbcf2d 6321 fi
21be0a5a 6322else
66dbcf2d 6323 ac_cv_path_SED=$SED
21be0a5a
JB
6324fi
6325
21be0a5a 6326fi
66dbcf2d
RO
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6328$as_echo "$ac_cv_path_SED" >&6; }
6329 SED="$ac_cv_path_SED"
6330 rm -f conftest.sed
21be0a5a 6331
66dbcf2d
RO
6332test -z "$SED" && SED=sed
6333Xsed="$SED -e 1s/^X//"
21be0a5a 6334
21be0a5a
JB
6335
6336
66dbcf2d
RO
6337
6338
6339
6340
6341
6342
6343
6344
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6346$as_echo_n "checking for fgrep... " >&6; }
22e05272 6347if ${ac_cv_path_FGREP+:} false; then :
21be0a5a
JB
6348 $as_echo_n "(cached) " >&6
6349else
66dbcf2d
RO
6350 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6351 then ac_cv_path_FGREP="$GREP -F"
6352 else
6353 if test -z "$FGREP"; then
6354 ac_path_FGREP_found=false
6355 # Loop through the user's path and test for each of PROGNAME-LIST
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
66dbcf2d 6361 for ac_prog in fgrep; do
21be0a5a 6362 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6363 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6364 as_fn_executable_p "$ac_path_FGREP" || continue
66dbcf2d
RO
6365# Check for GNU ac_path_FGREP and select it if it is found.
6366 # Check for GNU $ac_path_FGREP
6367case `"$ac_path_FGREP" --version 2>&1` in
6368*GNU*)
6369 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6370*)
6371 ac_count=0
6372 $as_echo_n 0123456789 >"conftest.in"
6373 while :
6374 do
6375 cat "conftest.in" "conftest.in" >"conftest.tmp"
6376 mv "conftest.tmp" "conftest.in"
6377 cp "conftest.in" "conftest.nl"
6378 $as_echo 'FGREP' >> "conftest.nl"
6379 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6381 as_fn_arith $ac_count + 1 && ac_count=$as_val
6382 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6383 # Best one so far, save it but keep looking for a better one
6384 ac_cv_path_FGREP="$ac_path_FGREP"
6385 ac_path_FGREP_max=$ac_count
6386 fi
6387 # 10*(2^10) chars as input seems more than enough
6388 test $ac_count -gt 10 && break
6389 done
6390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391esac
6392
6393 $ac_path_FGREP_found && break 3
6394 done
6395 done
21be0a5a
JB
6396 done
6397IFS=$as_save_IFS
66dbcf2d 6398 if test -z "$ac_cv_path_FGREP"; then
22e05272 6399 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
66dbcf2d
RO
6400 fi
6401else
6402 ac_cv_path_FGREP=$FGREP
6403fi
21be0a5a 6404
66dbcf2d 6405 fi
21be0a5a 6406fi
66dbcf2d
RO
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6408$as_echo "$ac_cv_path_FGREP" >&6; }
6409 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6410
6411
66dbcf2d 6412test -z "$GREP" && GREP=grep
1cf3d07d
SE
6413
6414
6415
6416
6de9cd9a 6417
1cf3d07d
SE
6418
6419
6420
6421
6422
6423
6424
43e02a8a 6425
43e02a8a 6426
43e02a8a 6427
43e02a8a 6428
43e02a8a
RW
6429
6430ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6431ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6432ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6435$as_echo_n "checking how to print strings... " >&6; }
6436# Test print first, because it will be a builtin if present.
6437if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6438 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6439 ECHO='print -r --'
6440elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6441 ECHO='printf %s\n'
6442else
6443 # Use this function as a fallback that always works.
6444 func_fallback_echo ()
6445 {
6446 eval 'cat <<_LTECHO_EOF
6447$1
6448_LTECHO_EOF'
6449 }
6450 ECHO='func_fallback_echo'
6451fi
6452
6453# func_echo_all arg...
6454# Invoke $ECHO with all args, space-separated.
6455func_echo_all ()
6456{
6457 $ECHO ""
6458}
6459
6460case "$ECHO" in
6461 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6462$as_echo "printf" >&6; } ;;
6463 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6464$as_echo "print -r" >&6; } ;;
6465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6466$as_echo "cat" >&6; } ;;
6467esac
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
21be0a5a
JB
6480
6481
5213506e 6482
5213506e 6483
66dbcf2d
RO
6484# Check whether --with-gnu-ld was given.
6485if test "${with_gnu_ld+set}" = set; then :
6486 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6487else
6488 with_gnu_ld=no
1cf3d07d 6489fi
21be0a5a 6490
66dbcf2d
RO
6491ac_prog=ld
6492if test "$GCC" = yes; then
6493 # Check if gcc -print-prog-name=ld gives a path.
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6495$as_echo_n "checking for ld used by $CC... " >&6; }
6496 case $host in
6497 *-*-mingw*)
6498 # gcc leaves a trailing carriage return which upsets mingw
6499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6500 *)
6501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6502 esac
6503 case $ac_prog in
6504 # Accept absolute paths.
6505 [\\/]* | ?:[\\/]*)
6506 re_direlt='/[^/][^/]*/\.\./'
6507 # Canonicalize the pathname of ld
6508 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6509 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6510 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6511 done
6512 test -z "$LD" && LD="$ac_prog"
6513 ;;
6514 "")
6515 # If it fails, then pretend we aren't using GCC.
6516 ac_prog=ld
6517 ;;
6518 *)
6519 # If it is relative, then search for the first ld in PATH.
6520 with_gnu_ld=unknown
6521 ;;
6522 esac
6523elif test "$with_gnu_ld" = yes; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6525$as_echo_n "checking for GNU ld... " >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6528$as_echo_n "checking for non-GNU ld... " >&6; }
6529fi
22e05272 6530if ${lt_cv_path_LD+:} false; then :
66dbcf2d
RO
6531 $as_echo_n "(cached) " >&6
6532else
6533 if test -z "$LD"; then
6534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6535 for ac_dir in $PATH; do
6536 IFS="$lt_save_ifs"
6537 test -z "$ac_dir" && ac_dir=.
6538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6539 lt_cv_path_LD="$ac_dir/$ac_prog"
6540 # Check to see if the program is GNU ld. I'd rather use --version,
6541 # but apparently some variants of GNU ld only accept -v.
6542 # Break only if it was the GNU/non-GNU ld that we prefer.
6543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6544 *GNU* | *'with BFD'*)
6545 test "$with_gnu_ld" != no && break
6546 ;;
6547 *)
6548 test "$with_gnu_ld" != yes && break
6549 ;;
6550 esac
6551 fi
6552 done
6553 IFS="$lt_save_ifs"
6554else
6555 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6556fi
6557fi
6558
6559LD="$lt_cv_path_LD"
6560if test -n "$LD"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6562$as_echo "$LD" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
22e05272 6567test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
66dbcf2d
RO
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6569$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6570if ${lt_cv_prog_gnu_ld+:} false; then :
66dbcf2d
RO
6571 $as_echo_n "(cached) " >&6
6572else
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574case `$LD -v 2>&1 </dev/null` in
6575*GNU* | *'with BFD'*)
6576 lt_cv_prog_gnu_ld=yes
6577 ;;
6578*)
6579 lt_cv_prog_gnu_ld=no
6580 ;;
6581esac
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6584$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6585with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6586
6587
6588
6589
6590
6591
6592
6593
1cf3d07d
SE
6594
6595
66dbcf2d
RO
6596 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6597
6598
6599 ac_save_LDFLAGS="$LDFLAGS"
6600 LDFLAGS="$LFLAGS -mclear-hwcap"
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6603$as_echo_n "checking for -mclear-hwcap... " >&6; }
6604 if test x$gcc_no_link = xyes; then
22e05272 6605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
66dbcf2d
RO
6606fi
6607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h. */
6609
6610int
6611main ()
6612{
6613return 0;
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618if ac_fn_c_try_link "$LINENO"; then :
6619 ac_hwcap_ldflags=yes
6620else
6621 ac_hwcap_ldflags=no
6622fi
6623rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 if test "$ac_hwcap_ldflags" = "yes"; then
6626 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6629$as_echo "$ac_hwcap_ldflags" >&6; }
6630
6631 LDFLAGS="$ac_save_LDFLAGS"
6632
6633
6634
6635 if test $ac_hwcap_ldflags != no; then
6636 HAVE_HWCAP_TRUE=
6637 HAVE_HWCAP_FALSE='#'
6638else
6639 HAVE_HWCAP_TRUE='#'
6640 HAVE_HWCAP_FALSE=
6641fi
6642
6643
6644
6645# Find other programs we need.
6646if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}as; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6651if ${ac_cv_prog_AS+:} false; then :
5213506e 6652 $as_echo_n "(cached) " >&6
38d24731 6653else
66dbcf2d
RO
6654 if test -n "$AS"; then
6655 ac_cv_prog_AS="$AS" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
5213506e
RW
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
5213506e 6662 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6664 ac_cv_prog_AS="${ac_tool_prefix}as"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
5213506e 6669 done
66dbcf2d
RO
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674AS=$ac_cv_prog_AS
6675if test -n "$AS"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6677$as_echo "$AS" >&6; }
6678else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_AS"; then
6686 ac_ct_AS=$AS
6687 # Extract the first word of "as", so it can be a program name with args.
6688set dummy as; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6691if ${ac_cv_prog_ac_ct_AS+:} false; then :
66dbcf2d
RO
6692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$ac_ct_AS"; then
6695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6704 ac_cv_prog_ac_ct_AS="as"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_AS=$ac_cv_prog_ac_ct_AS
6715if test -n "$ac_ct_AS"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6717$as_echo "$ac_ct_AS" >&6; }
6718else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723 if test "x$ac_ct_AS" = x; then
6724 AS=""
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
5213506e 6731esac
66dbcf2d
RO
6732 AS=$ac_ct_AS
6733 fi
6734else
6735 AS="$ac_cv_prog_AS"
6736fi
5213506e 6737
66dbcf2d
RO
6738if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6740set dummy ${ac_tool_prefix}ar; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6743if ${ac_cv_prog_AR+:} false; then :
66dbcf2d
RO
6744 $as_echo_n "(cached) " >&6
6745else
6746 if test -n "$AR"; then
6747 ac_cv_prog_AR="$AR" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6756 ac_cv_prog_AR="${ac_tool_prefix}ar"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
5213506e 6761 done
66dbcf2d
RO
6762IFS=$as_save_IFS
6763
6764fi
6765fi
6766AR=$ac_cv_prog_AR
6767if test -n "$AR"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6769$as_echo "$AR" >&6; }
6770else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776fi
6777if test -z "$ac_cv_prog_AR"; then
6778 ac_ct_AR=$AR
6779 # Extract the first word of "ar", so it can be a program name with args.
6780set dummy ar; ac_word=$2
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6783if ${ac_cv_prog_ac_ct_AR+:} false; then :
66dbcf2d
RO
6784 $as_echo_n "(cached) " >&6
6785else
6786 if test -n "$ac_ct_AR"; then
6787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6796 ac_cv_prog_ac_ct_AR="ar"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801 done
6802IFS=$as_save_IFS
6803
6804fi
6805fi
6806ac_ct_AR=$ac_cv_prog_ac_ct_AR
6807if test -n "$ac_ct_AR"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6809$as_echo "$ac_ct_AR" >&6; }
6810else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815 if test "x$ac_ct_AR" = x; then
6816 AR=""
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819yes:)
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822ac_tool_warned=yes ;;
6823esac
6824 AR=$ac_ct_AR
6825 fi
6826else
6827 AR="$ac_cv_prog_AR"
6828fi
6829
6830if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6832set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6835if ${ac_cv_prog_RANLIB+:} false; then :
66dbcf2d
RO
6836 $as_echo_n "(cached) " >&6
6837else
6838 if test -n "$RANLIB"; then
6839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852done
6853 done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858RANLIB=$ac_cv_prog_RANLIB
6859if test -n "$RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6861$as_echo "$RANLIB" >&6; }
6862else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867
6868fi
6869if test -z "$ac_cv_prog_RANLIB"; then
6870 ac_ct_RANLIB=$RANLIB
6871 # Extract the first word of "ranlib", so it can be a program name with args.
6872set dummy ranlib; ac_word=$2
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6875if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
66dbcf2d
RO
6876 $as_echo_n "(cached) " >&6
6877else
6878 if test -n "$ac_ct_RANLIB"; then
6879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6888 ac_cv_prog_ac_ct_RANLIB="ranlib"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892done
5213506e
RW
6893 done
6894IFS=$as_save_IFS
66dbcf2d
RO
6895
6896fi
6897fi
6898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6899if test -n "$ac_ct_RANLIB"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6901$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6902else
66dbcf2d
RO
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904$as_echo "no" >&6; }
1cf3d07d 6905fi
5213506e 6906
66dbcf2d
RO
6907 if test "x$ac_ct_RANLIB" = x; then
6908 RANLIB="ranlib-not-found-in-path-error"
6909 else
6910 case $cross_compiling:$ac_tool_warned in
6911yes:)
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914ac_tool_warned=yes ;;
6915esac
6916 RANLIB=$ac_ct_RANLIB
6917 fi
6918else
6919 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6920fi
1cf3d07d 6921
66dbcf2d
RO
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6923$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6924set x ${MAKE-make}
6925ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 6926if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
66dbcf2d
RO
6927 $as_echo_n "(cached) " >&6
6928else
6929 cat >conftest.make <<\_ACEOF
6930SHELL = /bin/sh
6931all:
6932 @echo '@@@%%%=$(MAKE)=@@@%%%'
6933_ACEOF
22e05272 6934# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
66dbcf2d
RO
6935case `${MAKE-make} -f conftest.make 2>/dev/null` in
6936 *@@@%%%=?*=@@@%%%*)
6937 eval ac_cv_prog_make_${ac_make}_set=yes;;
6938 *)
6939 eval ac_cv_prog_make_${ac_make}_set=no;;
6940esac
6941rm -f conftest.make
6942fi
6943if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945$as_echo "yes" >&6; }
6946 SET_MAKE=
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950 SET_MAKE="MAKE=${MAKE-make}"
6951fi
1cf3d07d
SE
6952
6953
6954
66dbcf2d
RO
6955# Configure libtool
6956#AC_MSG_NOTICE([====== Starting libtool configuration])
6957enable_dlopen=yes
1cf3d07d
SE
6958
6959
6960
66dbcf2d
RO
6961case `pwd` in
6962 *\ * | *\ *)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6964$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6965esac
1cf3d07d
SE
6966
6967
6968
66dbcf2d
RO
6969macro_version='2.2.7a'
6970macro_revision='1.3134'
1cf3d07d
SE
6971
6972
6973
6974
6975
6976
6977
6978
5213506e 6979
96b8a615 6980
96b8a615
AJ
6981
6982
96b8a615 6983
66dbcf2d 6984ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6985
66dbcf2d
RO
6986# Backslashify metacharacters that are still active within
6987# double-quoted strings.
6988sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 6989
66dbcf2d
RO
6990# Same as above, but do not quote variable references.
6991double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 6992
66dbcf2d
RO
6993# Sed substitution to delay expansion of an escaped shell variable in a
6994# double_quote_subst'ed string.
6995delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 6996
66dbcf2d
RO
6997# Sed substitution to delay expansion of an escaped single quote.
6998delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 6999
66dbcf2d
RO
7000# Sed substitution to avoid accidental globbing in evaled expressions
7001no_glob_subst='s/\*/\\\*/g'
1cf3d07d 7002
5213506e
RW
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7004$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 7005if ${lt_cv_path_NM+:} false; then :
5213506e 7006 $as_echo_n "(cached) " >&6
96b8a615
AJ
7007else
7008 if test -n "$NM"; then
7009 # Let the user override the test.
7010 lt_cv_path_NM="$NM"
7011else
1cf3d07d
SE
7012 lt_nm_to_check="${ac_tool_prefix}nm"
7013 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7014 lt_nm_to_check="$lt_nm_to_check nm"
7015 fi
7016 for lt_tmp_nm in $lt_nm_to_check; do
7017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7018 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7019 IFS="$lt_save_ifs"
7020 test -z "$ac_dir" && ac_dir=.
7021 tmp_nm="$ac_dir/$lt_tmp_nm"
7022 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7023 # Check to see if the nm accepts a BSD-compat flag.
7024 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7025 # nm: unknown option "B" ignored
7026 # Tru64's nm complains that /dev/null is an invalid object file
7027 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7028 */dev/null* | *'Invalid file or object type'*)
7029 lt_cv_path_NM="$tmp_nm -B"
7030 break
7031 ;;
7032 *)
7033 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7034 */dev/null*)
7035 lt_cv_path_NM="$tmp_nm -p"
7036 break
7037 ;;
7038 *)
7039 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7040 continue # so that we can try to find one that supports BSD flags
7041 ;;
7042 esac
7043 ;;
7044 esac
7045 fi
7046 done
7047 IFS="$lt_save_ifs"
7048 done
7049 : ${lt_cv_path_NM=no}
7050fi
7051fi
5213506e
RW
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7053$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7054if test "$lt_cv_path_NM" != "no"; then
7055 NM="$lt_cv_path_NM"
7056else
7057 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7058 if test -n "$DUMPBIN"; then :
7059 # Let the user override the test.
7060 else
7061 if test -n "$ac_tool_prefix"; then
7062 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7063 do
7064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7068if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 7069 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7070else
7071 if test -n "$DUMPBIN"; then
7072 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
5213506e 7079 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7081 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7083 break 2
7084 fi
7085done
5213506e
RW
7086 done
7087IFS=$as_save_IFS
1cf3d07d
SE
7088
7089fi
7090fi
7091DUMPBIN=$ac_cv_prog_DUMPBIN
7092if test -n "$DUMPBIN"; then
5213506e
RW
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7094$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7095else
5213506e
RW
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
1cf3d07d
SE
7098fi
7099
5213506e 7100
1cf3d07d
SE
7101 test -n "$DUMPBIN" && break
7102 done
7103fi
7104if test -z "$DUMPBIN"; then
7105 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7106 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7107do
7108 # Extract the first word of "$ac_prog", so it can be a program name with args.
7109set dummy $ac_prog; ac_word=$2
5213506e
RW
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7112if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 7113 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7114else
7115 if test -n "$ac_ct_DUMPBIN"; then
7116 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
5213506e 7123 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7125 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7127 break 2
7128 fi
7129done
5213506e
RW
7130 done
7131IFS=$as_save_IFS
1cf3d07d
SE
7132
7133fi
7134fi
7135ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7136if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7138$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7139else
5213506e
RW
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
1cf3d07d
SE
7142fi
7143
5213506e 7144
1cf3d07d
SE
7145 test -n "$ac_ct_DUMPBIN" && break
7146done
1cf3d07d 7147
5213506e
RW
7148 if test "x$ac_ct_DUMPBIN" = x; then
7149 DUMPBIN=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157 DUMPBIN=$ac_ct_DUMPBIN
7158 fi
96b8a615 7159fi
1cf3d07d 7160
43e02a8a
RW
7161 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7162 *COFF*)
7163 DUMPBIN="$DUMPBIN -symbols"
7164 ;;
7165 *)
7166 DUMPBIN=:
7167 ;;
7168 esac
7169 fi
1cf3d07d
SE
7170
7171 if test "$DUMPBIN" != ":"; then
7172 NM="$DUMPBIN"
7173 fi
96b8a615 7174fi
1cf3d07d
SE
7175test -z "$NM" && NM=nm
7176
7177
96b8a615 7178
1cf3d07d
SE
7179
7180
7181
5213506e
RW
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7183$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 7184if ${lt_cv_nm_interface+:} false; then :
5213506e 7185 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7186else
7187 lt_cv_nm_interface="BSD nm"
7188 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7189 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7190 (eval "$ac_compile" 2>conftest.err)
7191 cat conftest.err >&5
43e02a8a 7192 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7193 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7194 cat conftest.err >&5
43e02a8a 7195 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7196 cat conftest.out >&5
7197 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7198 lt_cv_nm_interface="MS dumpbin"
7199 fi
7200 rm -f conftest*
7201fi
5213506e
RW
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7203$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 7204
5213506e
RW
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7206$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
7207LN_S=$as_ln_s
7208if test "$LN_S" = "ln -s"; then
5213506e
RW
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7210$as_echo "yes" >&6; }
96b8a615 7211else
5213506e
RW
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7213$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
7214fi
7215
1cf3d07d 7216# find the maximum length of command line arguments
5213506e
RW
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7218$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 7219if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 7220 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7221else
7222 i=0
7223 teststring="ABCD"
7224
7225 case $build_os in
7226 msdosdjgpp*)
7227 # On DJGPP, this test can blow up pretty badly due to problems in libc
7228 # (any single argument exceeding 2000 bytes causes a buffer overrun
7229 # during glob expansion). Even if it were fixed, the result of this
7230 # check would be larger than it should be.
7231 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7232 ;;
7233
7234 gnu*)
7235 # Under GNU Hurd, this test is not required because there is
7236 # no limit to the length of command line arguments.
7237 # Libtool will interpret -1 as no limit whatsoever
7238 lt_cv_sys_max_cmd_len=-1;
7239 ;;
7240
d58dead8 7241 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
7242 # On Win9x/ME, this test blows up -- it succeeds, but takes
7243 # about 5 minutes as the teststring grows exponentially.
7244 # Worse, since 9x/ME are not pre-emptively multitasking,
7245 # you end up with a "frozen" computer, even though with patience
7246 # the test eventually succeeds (with a max line length of 256k).
7247 # Instead, let's just punt: use the minimum linelength reported by
7248 # all of the supported platforms: 8192 (on NT/2K/XP).
7249 lt_cv_sys_max_cmd_len=8192;
7250 ;;
7251
43e02a8a
RW
7252 mint*)
7253 # On MiNT this can take a long time and run out of memory.
7254 lt_cv_sys_max_cmd_len=8192;
7255 ;;
7256
1cf3d07d
SE
7257 amigaos*)
7258 # On AmigaOS with pdksh, this test takes hours, literally.
7259 # So we just punt and use a minimum line length of 8192.
7260 lt_cv_sys_max_cmd_len=8192;
7261 ;;
7262
7263 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7264 # This has been around since 386BSD, at least. Likely further.
7265 if test -x /sbin/sysctl; then
7266 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7267 elif test -x /usr/sbin/sysctl; then
7268 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7269 else
7270 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7271 fi
7272 # And add a safety zone
7273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7275 ;;
7276
7277 interix*)
7278 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7279 lt_cv_sys_max_cmd_len=196608
7280 ;;
7281
7282 osf*)
7283 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7284 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7285 # nice to cause kernel panics so lets avoid the loop below.
7286 # First set a reasonable default.
7287 lt_cv_sys_max_cmd_len=16384
7288 #
7289 if test -x /sbin/sysconfig; then
7290 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7291 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7292 esac
7293 fi
7294 ;;
7295 sco3.2v5*)
7296 lt_cv_sys_max_cmd_len=102400
7297 ;;
7298 sysv5* | sco5v6* | sysv4.2uw2*)
7299 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7300 if test -n "$kargmax"; then
7301 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7302 else
7303 lt_cv_sys_max_cmd_len=32768
7304 fi
7305 ;;
7306 *)
d58dead8
PG
7307 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7308 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7311 else
7312 # Make teststring a little bigger before we do anything with it.
7313 # a 1K string should be a reasonable start.
7314 for i in 1 2 3 4 5 6 7 8 ; do
7315 teststring=$teststring$teststring
7316 done
7317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7318 # If test is not a shell built-in, we'll probably end up computing a
7319 # maximum length that is only half of the actual maximum length, but
7320 # we can't tell.
43e02a8a
RW
7321 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7322 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7323 test $i != 17 # 1/2 MB should be enough
7324 do
7325 i=`expr $i + 1`
7326 teststring=$teststring$teststring
7327 done
7328 # Only check the string length outside the loop.
7329 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7330 teststring=
7331 # Add a significant safety factor because C++ compilers can tack on
7332 # massive amounts of additional arguments before passing them to the
7333 # linker. It appears as though 1/2 is a usable value.
7334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7335 fi
1cf3d07d
SE
7336 ;;
7337 esac
7338
7339fi
7340
7341if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7343$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7344else
5213506e
RW
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7346$as_echo "none" >&6; }
1cf3d07d
SE
7347fi
7348max_cmd_len=$lt_cv_sys_max_cmd_len
7349
7350
7351
7352
7353
7354
1cf3d07d
SE
7355: ${CP="cp -f"}
7356: ${MV="mv -f"}
7357: ${RM="rm -f"}
7358
5213506e
RW
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7360$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7361# Try some XSI features
7362xsi_shell=no
7363( _lt_dummy="a/b/c"
7364 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7365 = c,a/b,, \
7366 && eval 'test $(( 1 + 1 )) -eq 2 \
7367 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7368 && xsi_shell=yes
5213506e
RW
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7370$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7371
7372
5213506e
RW
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7374$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7375lt_shell_append=no
7376( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7377 >/dev/null 2>&1 \
7378 && lt_shell_append=yes
5213506e
RW
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7380$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7381
7382
7383if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7384 lt_unset=unset
7385else
7386 lt_unset=false
7387fi
7388
7389
7390
7391
7392
7393# test EBCDIC or ASCII
7394case `echo X|tr X '\101'` in
7395 A) # ASCII based system
7396 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7397 lt_SP2NL='tr \040 \012'
7398 lt_NL2SP='tr \015\012 \040\040'
7399 ;;
7400 *) # EBCDIC based system
7401 lt_SP2NL='tr \100 \n'
7402 lt_NL2SP='tr \r\n \100\100'
7403 ;;
7404esac
7405
7406
7407
7408
7409
7410
7411
7412
7413
5213506e
RW
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7415$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7416if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 7417 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7418else
7419 lt_cv_ld_reload_flag='-r'
7420fi
5213506e
RW
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7422$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7423reload_flag=$lt_cv_ld_reload_flag
7424case $reload_flag in
7425"" | " "*) ;;
7426*) reload_flag=" $reload_flag" ;;
7427esac
7428reload_cmds='$LD$reload_flag -o $output$reload_objs'
7429case $host_os in
7430 darwin*)
7431 if test "$GCC" = yes; then
7432 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7433 else
7434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7435 fi
7436 ;;
7437esac
7438
7439
7440
7441
7442
7443
7444
7445
7446
d58dead8
PG
7447if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7449set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7452if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 7453 $as_echo_n "(cached) " >&6
d58dead8
PG
7454else
7455 if test -n "$OBJDUMP"; then
7456 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7457else
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
5213506e 7463 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7465 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7467 break 2
7468 fi
7469done
5213506e
RW
7470 done
7471IFS=$as_save_IFS
d58dead8
PG
7472
7473fi
7474fi
7475OBJDUMP=$ac_cv_prog_OBJDUMP
7476if test -n "$OBJDUMP"; then
5213506e
RW
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7478$as_echo "$OBJDUMP" >&6; }
d58dead8 7479else
5213506e
RW
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481$as_echo "no" >&6; }
d58dead8
PG
7482fi
7483
5213506e 7484
d58dead8
PG
7485fi
7486if test -z "$ac_cv_prog_OBJDUMP"; then
7487 ac_ct_OBJDUMP=$OBJDUMP
7488 # Extract the first word of "objdump", so it can be a program name with args.
7489set dummy objdump; ac_word=$2
5213506e
RW
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7492if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 7493 $as_echo_n "(cached) " >&6
d58dead8
PG
7494else
7495 if test -n "$ac_ct_OBJDUMP"; then
7496 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
5213506e 7503 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7505 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7507 break 2
7508 fi
7509done
5213506e
RW
7510 done
7511IFS=$as_save_IFS
d58dead8 7512
d58dead8
PG
7513fi
7514fi
7515ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7516if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7518$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7519else
5213506e
RW
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
d58dead8
PG
7522fi
7523
5213506e
RW
7524 if test "x$ac_ct_OBJDUMP" = x; then
7525 OBJDUMP="false"
7526 else
7527 case $cross_compiling:$ac_tool_warned in
7528yes:)
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7531ac_tool_warned=yes ;;
7532esac
7533 OBJDUMP=$ac_ct_OBJDUMP
7534 fi
d58dead8
PG
7535else
7536 OBJDUMP="$ac_cv_prog_OBJDUMP"
7537fi
7538
7539test -z "$OBJDUMP" && OBJDUMP=objdump
7540
7541
7542
7543
7544
7545
7546
7547
1cf3d07d 7548
5213506e
RW
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7550$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7551if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 7552 $as_echo_n "(cached) " >&6
96b8a615
AJ
7553else
7554 lt_cv_file_magic_cmd='$MAGIC_CMD'
7555lt_cv_file_magic_test_file=
7556lt_cv_deplibs_check_method='unknown'
7557# Need to set the preceding variable on all platforms that support
7558# interlibrary dependencies.
7559# 'none' -- dependencies not supported.
7560# `unknown' -- same as none, but documents that we really don't know.
7561# 'pass_all' -- all dependencies passed with no checks.
7562# 'test_compile' -- check by making test program.
1cf3d07d
SE
7563# 'file_magic [[regex]]' -- check by looking for files in library path
7564# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7565# If you have `file' or equivalent on your system and you're not sure
7566# whether `pass_all' will *always* work, you probably want this one.
7567
7568case $host_os in
4f6bebc3 7569aix[4-9]*)
96b8a615
AJ
7570 lt_cv_deplibs_check_method=pass_all
7571 ;;
7572
7573beos*)
7574 lt_cv_deplibs_check_method=pass_all
7575 ;;
7576
1cf3d07d 7577bsdi[45]*)
96b8a615
AJ
7578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7579 lt_cv_file_magic_cmd='/usr/bin/file -L'
7580 lt_cv_file_magic_test_file=/shlib/libc.so
7581 ;;
7582
1cf3d07d
SE
7583cygwin*)
7584 # func_win32_libid is a shell function defined in ltmain.sh
7585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7586 lt_cv_file_magic_cmd='func_win32_libid'
7587 ;;
7588
7589mingw* | pw32*)
7590 # Base MSYS/MinGW do not provide the 'file' command needed by
7591 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7592 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7593 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7594 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7596 lt_cv_file_magic_cmd='func_win32_libid'
7597 else
7598 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7599 lt_cv_file_magic_cmd='$OBJDUMP -f'
7600 fi
96b8a615
AJ
7601 ;;
7602
43e02a8a 7603cegcc*)
d58dead8
PG
7604 # use the weaker test based on 'objdump'. See mingw*.
7605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7606 lt_cv_file_magic_cmd='$OBJDUMP -f'
7607 ;;
7608
96b8a615 7609darwin* | rhapsody*)
96b8a615
AJ
7610 lt_cv_deplibs_check_method=pass_all
7611 ;;
7612
1cf3d07d
SE
7613freebsd* | dragonfly*)
7614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7615 case $host_cpu in
7616 i*86 )
7617 # Not sure whether the presence of OpenBSD here was a mistake.
7618 # Let's accept both of them until this is cleared up.
1cf3d07d 7619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7620 lt_cv_file_magic_cmd=/usr/bin/file
7621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7622 ;;
7623 esac
7624 else
7625 lt_cv_deplibs_check_method=pass_all
7626 fi
7627 ;;
7628
7629gnu*)
7630 lt_cv_deplibs_check_method=pass_all
7631 ;;
7632
43e02a8a
RW
7633haiku*)
7634 lt_cv_deplibs_check_method=pass_all
7635 ;;
7636
1cf3d07d
SE
7637hpux10.20* | hpux11*)
7638 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7639 case $host_cpu in
96b8a615
AJ
7640 ia64*)
7641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
96b8a615
AJ
7642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7643 ;;
1cf3d07d 7644 hppa*64*)
43e02a8a 7645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d 7646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7647 ;;
7648 *)
43e02a8a 7649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7651 ;;
7652 esac
1cf3d07d
SE
7653 ;;
7654
7655interix[3-9]*)
7656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7658 ;;
7659
7660irix5* | irix6* | nonstopux*)
7661 case $LD in
7662 *-32|*"-32 ") libmagic=32-bit;;
7663 *-n32|*"-n32 ") libmagic=N32;;
7664 *-64|*"-64 ") libmagic=64-bit;;
7665 *) libmagic=never-match;;
7666 esac
96b8a615
AJ
7667 lt_cv_deplibs_check_method=pass_all
7668 ;;
7669
7670# This must be Linux ELF.
e9085da5 7671linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2c92e90f 7672 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7673 ;;
7674
1cf3d07d
SE
7675netbsd*)
7676 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7678 else
1cf3d07d 7679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7680 fi
7681 ;;
7682
1cf3d07d 7683newos6*)
96b8a615
AJ
7684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7685 lt_cv_file_magic_cmd=/usr/bin/file
7686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7687 ;;
7688
1cf3d07d
SE
7689*nto* | *qnx*)
7690 lt_cv_deplibs_check_method=pass_all
7691 ;;
7692
7693openbsd*)
7694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7696 else
7697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7698 fi
7699 ;;
7700
96b8a615 7701osf3* | osf4* | osf5*)
96b8a615
AJ
7702 lt_cv_deplibs_check_method=pass_all
7703 ;;
7704
1cf3d07d 7705rdos*)
96b8a615
AJ
7706 lt_cv_deplibs_check_method=pass_all
7707 ;;
7708
7709solaris*)
7710 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7711 ;;
7712
1cf3d07d 7713sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7714 lt_cv_deplibs_check_method=pass_all
7715 ;;
7716
1cf3d07d 7717sysv4 | sysv4.3*)
96b8a615 7718 case $host_vendor in
96b8a615
AJ
7719 motorola)
7720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7722 ;;
1cf3d07d
SE
7723 ncr)
7724 lt_cv_deplibs_check_method=pass_all
7725 ;;
7726 sequent)
7727 lt_cv_file_magic_cmd='/bin/file'
7728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7729 ;;
7730 sni)
7731 lt_cv_file_magic_cmd='/bin/file'
7732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7733 lt_cv_file_magic_test_file=/lib/libc.so
7734 ;;
7735 siemens)
7736 lt_cv_deplibs_check_method=pass_all
7737 ;;
7738 pc)
7739 lt_cv_deplibs_check_method=pass_all
7740 ;;
96b8a615
AJ
7741 esac
7742 ;;
1cf3d07d
SE
7743
7744tpf*)
7745 lt_cv_deplibs_check_method=pass_all
7746 ;;
96b8a615
AJ
7747esac
7748
7749fi
5213506e
RW
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7751$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7752file_magic_cmd=$lt_cv_file_magic_cmd
7753deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7754test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7755
7756
7757
7758
96b8a615 7759
96b8a615 7760
96b8a615 7761
96b8a615 7762
6de9cd9a 7763
6de9cd9a 7764
6de9cd9a 7765
6de9cd9a 7766
96b8a615 7767if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7769set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7772if ${ac_cv_prog_AR+:} false; then :
5213506e 7773 $as_echo_n "(cached) " >&6
6de9cd9a 7774else
1cf3d07d
SE
7775 if test -n "$AR"; then
7776 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
5213506e 7783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7785 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7787 break 2
7788 fi
7789done
5213506e
RW
7790 done
7791IFS=$as_save_IFS
6de9cd9a 7792
96b8a615
AJ
7793fi
7794fi
1cf3d07d
SE
7795AR=$ac_cv_prog_AR
7796if test -n "$AR"; then
5213506e
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7798$as_echo "$AR" >&6; }
96b8a615 7799else
5213506e
RW
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
6de9cd9a
DN
7802fi
7803
5213506e 7804
96b8a615 7805fi
1cf3d07d
SE
7806if test -z "$ac_cv_prog_AR"; then
7807 ac_ct_AR=$AR
7808 # Extract the first word of "ar", so it can be a program name with args.
7809set dummy ar; ac_word=$2
5213506e
RW
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7812if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 7813 $as_echo_n "(cached) " >&6
96b8a615 7814else
1cf3d07d
SE
7815 if test -n "$ac_ct_AR"; then
7816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
5213506e 7823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7825 ac_cv_prog_ac_ct_AR="ar"
5213506e 7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7827 break 2
7828 fi
7829done
5213506e
RW
7830 done
7831IFS=$as_save_IFS
6de9cd9a 7832
96b8a615
AJ
7833fi
7834fi
1cf3d07d
SE
7835ac_ct_AR=$ac_cv_prog_ac_ct_AR
7836if test -n "$ac_ct_AR"; then
5213506e
RW
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7838$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7839else
5213506e
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
6de9cd9a 7842fi
6de9cd9a 7843
5213506e
RW
7844 if test "x$ac_ct_AR" = x; then
7845 AR="false"
7846 else
7847 case $cross_compiling:$ac_tool_warned in
7848yes:)
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851ac_tool_warned=yes ;;
7852esac
7853 AR=$ac_ct_AR
7854 fi
96b8a615 7855else
1cf3d07d 7856 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7857fi
7858
1cf3d07d
SE
7859test -z "$AR" && AR=ar
7860test -z "$AR_FLAGS" && AR_FLAGS=cru
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
96b8a615
AJ
7872if test -n "$ac_tool_prefix"; then
7873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7874set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7877if ${ac_cv_prog_STRIP+:} false; then :
5213506e 7878 $as_echo_n "(cached) " >&6
6de9cd9a 7879else
96b8a615
AJ
7880 if test -n "$STRIP"; then
7881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
5213506e 7888 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7892 break 2
7893 fi
7894done
5213506e
RW
7895 done
7896IFS=$as_save_IFS
6de9cd9a 7897
96b8a615
AJ
7898fi
7899fi
7900STRIP=$ac_cv_prog_STRIP
7901if test -n "$STRIP"; then
5213506e
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7903$as_echo "$STRIP" >&6; }
6de9cd9a 7904else
5213506e
RW
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
96b8a615 7907fi
6de9cd9a 7908
5213506e 7909
6de9cd9a 7910fi
96b8a615
AJ
7911if test -z "$ac_cv_prog_STRIP"; then
7912 ac_ct_STRIP=$STRIP
7913 # Extract the first word of "strip", so it can be a program name with args.
7914set dummy strip; ac_word=$2
5213506e
RW
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7917if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 7918 $as_echo_n "(cached) " >&6
96b8a615
AJ
7919else
7920 if test -n "$ac_ct_STRIP"; then
7921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
5213506e 7928 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7930 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7932 break 2
7933 fi
7934done
5213506e
RW
7935 done
7936IFS=$as_save_IFS
96b8a615 7937
6de9cd9a
DN
7938fi
7939fi
96b8a615
AJ
7940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7941if test -n "$ac_ct_STRIP"; then
5213506e
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7943$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7944else
5213506e
RW
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
6de9cd9a 7947fi
6de9cd9a 7948
5213506e
RW
7949 if test "x$ac_ct_STRIP" = x; then
7950 STRIP=":"
7951 else
7952 case $cross_compiling:$ac_tool_warned in
7953yes:)
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7956ac_tool_warned=yes ;;
7957esac
7958 STRIP=$ac_ct_STRIP
7959 fi
96b8a615
AJ
7960else
7961 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7962fi
7963
1cf3d07d 7964test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7965
7966
7967
7968
7969
7970
1cf3d07d
SE
7971if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7976if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 7977 $as_echo_n "(cached) " >&6
6de9cd9a 7978else
1cf3d07d
SE
7979 if test -n "$RANLIB"; then
7980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
5213506e 7987 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7991 break 2
7992 fi
7993done
5213506e
RW
7994 done
7995IFS=$as_save_IFS
1cf3d07d
SE
7996
7997fi
7998fi
7999RANLIB=$ac_cv_prog_RANLIB
8000if test -n "$RANLIB"; then
5213506e
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8002$as_echo "$RANLIB" >&6; }
1cf3d07d 8003else
5213506e
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
1cf3d07d
SE
8006fi
8007
5213506e 8008
1cf3d07d
SE
8009fi
8010if test -z "$ac_cv_prog_RANLIB"; then
8011 ac_ct_RANLIB=$RANLIB
8012 # Extract the first word of "ranlib", so it can be a program name with args.
8013set dummy ranlib; ac_word=$2
5213506e
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8016if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 8017 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8018else
8019 if test -n "$ac_ct_RANLIB"; then
8020 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
5213506e 8027 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8029 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8031 break 2
8032 fi
8033done
5213506e
RW
8034 done
8035IFS=$as_save_IFS
1cf3d07d 8036
1cf3d07d
SE
8037fi
8038fi
8039ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8040if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8042$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 8043else
5213506e
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
1cf3d07d
SE
8046fi
8047
5213506e
RW
8048 if test "x$ac_ct_RANLIB" = x; then
8049 RANLIB=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057 RANLIB=$ac_ct_RANLIB
8058 fi
1cf3d07d
SE
8059else
8060 RANLIB="$ac_cv_prog_RANLIB"
8061fi
8062
8063test -z "$RANLIB" && RANLIB=:
8064
8065
8066
8067
8068
8069
8070# Determine commands to create old-style static archives.
d58dead8 8071old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8072old_postinstall_cmds='chmod 644 $oldlib'
8073old_postuninstall_cmds=
8074
8075if test -n "$RANLIB"; then
8076 case $host_os in
8077 openbsd*)
8078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8079 ;;
8080 *)
8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8082 ;;
8083 esac
8084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8085fi
8086
43e02a8a
RW
8087case $host_os in
8088 darwin*)
8089 lock_old_archive_extraction=yes ;;
8090 *)
8091 lock_old_archive_extraction=no ;;
8092esac
8093
8094
8095
8096
8097
8098
1cf3d07d
SE
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132# If no C compiler was specified, use CC.
8133LTCC=${LTCC-"$CC"}
8134
8135# If no C compiler flags were specified, use CFLAGS.
8136LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8137
8138# Allow CC to be a program name with arguments.
8139compiler=$CC
8140
8141
8142# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8144$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 8145if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 8146 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8147else
8148
8149# These are sane defaults that work on at least a few old systems.
8150# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8151
8152# Character class describing NM global symbol codes.
8153symcode='[BCDEGRST]'
8154
8155# Regexp to match symbols that can be accessed directly from C.
8156sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8157
8158# Define system-specific variables.
8159case $host_os in
8160aix*)
8161 symcode='[BCDT]'
8162 ;;
d58dead8 8163cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8164 symcode='[ABCDGISTW]'
8165 ;;
8166hpux*)
8167 if test "$host_cpu" = ia64; then
8168 symcode='[ABCDEGRST]'
8169 fi
8170 ;;
8171irix* | nonstopux*)
8172 symcode='[BCDEGRST]'
8173 ;;
8174osf*)
8175 symcode='[BCDEGQRST]'
8176 ;;
8177solaris*)
8178 symcode='[BDRT]'
8179 ;;
8180sco3.2v5*)
8181 symcode='[DT]'
8182 ;;
8183sysv4.2uw2*)
8184 symcode='[DT]'
8185 ;;
8186sysv5* | sco5v6* | unixware* | OpenUNIX*)
8187 symcode='[ABDT]'
8188 ;;
8189sysv4)
8190 symcode='[DFNSTU]'
8191 ;;
8192esac
8193
8194# If we're using GNU nm, then use its standard symbol codes.
8195case `$NM -V 2>&1` in
8196*GNU* | *'with BFD'*)
8197 symcode='[ABCDGIRSTW]' ;;
8198esac
8199
8200# Transform an extracted symbol line into a proper C declaration.
8201# Some systems (esp. on ia64) link data and code symbols differently,
8202# so use this general approach.
8203lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8204
8205# Transform an extracted symbol line into symbol name and symbol address
8206lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 8207lt_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
8208
8209# Handle CRLF in mingw tool chain
8210opt_cr=
8211case $build_os in
8212mingw*)
8213 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8214 ;;
8215esac
8216
8217# Try without a prefix underscore, then with it.
8218for ac_symprfx in "" "_"; do
8219
8220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8221 symxfrm="\\1 $ac_symprfx\\2 \\2"
8222
8223 # Write the raw and C identifiers.
8224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8225 # Fake it for dumpbin and say T for any non-static function
8226 # and D for any global variable.
8227 # Also find C++ and __fastcall symbols from MSVC++,
8228 # which start with @ or ?.
8229 lt_cv_sys_global_symbol_pipe="$AWK '"\
8230" {last_section=section; section=\$ 3};"\
8231" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8232" \$ 0!~/External *\|/{next};"\
8233" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8234" {if(hide[section]) next};"\
8235" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8236" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8237" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8238" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8239" ' prfx=^$ac_symprfx"
8240 else
8241 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8242 fi
8243
8244 # Check to see that the pipe works correctly.
8245 pipe_works=no
8246
8247 rm -f conftest*
8248 cat > conftest.$ac_ext <<_LT_EOF
8249#ifdef __cplusplus
8250extern "C" {
8251#endif
8252char nm_test_var;
8253void nm_test_func(void);
8254void nm_test_func(void){}
8255#ifdef __cplusplus
8256}
8257#endif
8258int main(){nm_test_var='a';nm_test_func();return(0);}
8259_LT_EOF
8260
5213506e 8261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8262 (eval $ac_compile) 2>&5
8263 ac_status=$?
5213506e
RW
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; }; then
1cf3d07d
SE
8266 # Now try to grab the symbols.
8267 nlist=conftest.nm
43e02a8a
RW
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8269 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8270 ac_status=$?
5213506e
RW
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8273 # Try sorting and uniquifying the output.
8274 if sort "$nlist" | uniq > "$nlist"T; then
8275 mv -f "$nlist"T "$nlist"
8276 else
8277 rm -f "$nlist"T
8278 fi
8279
8280 # Make sure that we snagged all the symbols we need.
8281 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8282 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8283 cat <<_LT_EOF > conftest.$ac_ext
8284#ifdef __cplusplus
8285extern "C" {
8286#endif
8287
8288_LT_EOF
8289 # Now generate the symbol file.
8290 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8291
8292 cat <<_LT_EOF >> conftest.$ac_ext
8293
8294/* The mapping between symbol names and symbols. */
8295const struct {
8296 const char *name;
8297 void *address;
8298}
8299lt__PROGRAM__LTX_preloaded_symbols[] =
8300{
8301 { "@PROGRAM@", (void *) 0 },
8302_LT_EOF
8303 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8304 cat <<\_LT_EOF >> conftest.$ac_ext
8305 {0, (void *) 0}
8306};
8307
8308/* This works around a problem in FreeBSD linker */
8309#ifdef FREEBSD_WORKAROUND
8310static const void *lt_preloaded_setup() {
8311 return lt__PROGRAM__LTX_preloaded_symbols;
8312}
8313#endif
8314
8315#ifdef __cplusplus
8316}
8317#endif
8318_LT_EOF
8319 # Now try linking the two files.
8320 mv conftest.$ac_objext conftstm.$ac_objext
8321 lt_save_LIBS="$LIBS"
8322 lt_save_CFLAGS="$CFLAGS"
8323 LIBS="conftstm.$ac_objext"
8324 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8326 (eval $ac_link) 2>&5
8327 ac_status=$?
5213506e
RW
8328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8329 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8330 pipe_works=yes
8331 fi
8332 LIBS="$lt_save_LIBS"
8333 CFLAGS="$lt_save_CFLAGS"
8334 else
8335 echo "cannot find nm_test_func in $nlist" >&5
8336 fi
8337 else
8338 echo "cannot find nm_test_var in $nlist" >&5
8339 fi
8340 else
8341 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8342 fi
8343 else
8344 echo "$progname: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8346 fi
d58dead8 8347 rm -rf conftest* conftst*
1cf3d07d
SE
8348
8349 # Do not use the global_symbol_pipe unless it works.
8350 if test "$pipe_works" = yes; then
8351 break
8352 else
8353 lt_cv_sys_global_symbol_pipe=
8354 fi
8355done
8356
8357fi
8358
8359if test -z "$lt_cv_sys_global_symbol_pipe"; then
8360 lt_cv_sys_global_symbol_to_cdecl=
8361fi
8362if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8364$as_echo "failed" >&6; }
1cf3d07d 8365else
5213506e
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8367$as_echo "ok" >&6; }
1cf3d07d
SE
8368fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
d58dead8
PG
8384
8385
8386
8387
8388
1cf3d07d
SE
8389
8390
5213506e
RW
8391# Check whether --enable-libtool-lock was given.
8392if test "${enable_libtool_lock+set}" = set; then :
8393 enableval=$enable_libtool_lock;
8394fi
1cf3d07d 8395
1cf3d07d 8396test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8397
96b8a615
AJ
8398# Some flags need to be propagated to the compiler or linker for good
8399# libtool support.
8400case $host in
1cf3d07d 8401ia64-*-hpux*)
96b8a615 8402 # Find out which ABI we are using.
1cf3d07d 8403 echo 'int i;' > conftest.$ac_ext
5213506e 8404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8405 (eval $ac_compile) 2>&5
6de9cd9a 8406 ac_status=$?
5213506e
RW
8407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8408 test $ac_status = 0; }; then
96b8a615 8409 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8410 *ELF-32*)
8411 HPUX_IA64_MODE="32"
8412 ;;
8413 *ELF-64*)
8414 HPUX_IA64_MODE="64"
8415 ;;
96b8a615 8416 esac
96b8a615
AJ
8417 fi
8418 rm -rf conftest*
8419 ;;
1cf3d07d 8420*-*-irix6*)
96b8a615 8421 # Find out which ABI we are using.
43e02a8a 8422 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8424 (eval $ac_compile) 2>&5
6de9cd9a 8425 ac_status=$?
5213506e
RW
8426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427 test $ac_status = 0; }; then
1cf3d07d
SE
8428 if test "$lt_cv_prog_gnu_ld" = yes; then
8429 case `/usr/bin/file conftest.$ac_objext` in
8430 *32-bit*)
8431 LD="${LD-ld} -melf32bsmip"
8432 ;;
8433 *N32*)
8434 LD="${LD-ld} -melf32bmipn32"
8435 ;;
8436 *64-bit*)
8437 LD="${LD-ld} -melf64bmip"
8438 ;;
8439 esac
8440 else
8441 case `/usr/bin/file conftest.$ac_objext` in
8442 *32-bit*)
8443 LD="${LD-ld} -32"
8444 ;;
8445 *N32*)
8446 LD="${LD-ld} -n32"
8447 ;;
8448 *64-bit*)
8449 LD="${LD-ld} -64"
8450 ;;
8451 esac
8452 fi
96b8a615
AJ
8453 fi
8454 rm -rf conftest*
8455 ;;
6de9cd9a 8456
3cbe17f7 8457x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8458s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8459 # Find out which ABI we are using.
8460 echo 'int i;' > 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 case `/usr/bin/file conftest.o` in
8467 *32-bit*)
8468 case $host in
8469 x86_64-*kfreebsd*-gnu)
8470 LD="${LD-ld} -m elf_i386_fbsd"
8471 ;;
8472 x86_64-*linux*)
e6d5f8c9
L
8473 case `/usr/bin/file conftest.o` in
8474 *x86-64*)
8475 LD="${LD-ld} -m elf32_x86_64"
8476 ;;
8477 *)
8478 LD="${LD-ld} -m elf_i386"
8479 ;;
8480 esac
1cf3d07d 8481 ;;
3cbe17f7
AM
8482 powerpc64le-*linux*)
8483 LD="${LD-ld} -m elf32lppclinux"
8484 ;;
8485 powerpc64-*linux*)
1cf3d07d
SE
8486 LD="${LD-ld} -m elf32ppclinux"
8487 ;;
8488 s390x-*linux*)
8489 LD="${LD-ld} -m elf_s390"
8490 ;;
8491 sparc64-*linux*)
8492 LD="${LD-ld} -m elf32_sparc"
8493 ;;
8494 esac
8495 ;;
8496 *64-bit*)
8497 case $host in
8498 x86_64-*kfreebsd*-gnu)
8499 LD="${LD-ld} -m elf_x86_64_fbsd"
8500 ;;
8501 x86_64-*linux*)
8502 LD="${LD-ld} -m elf_x86_64"
8503 ;;
3cbe17f7
AM
8504 powerpcle-*linux*)
8505 LD="${LD-ld} -m elf64lppc"
8506 ;;
8507 powerpc-*linux*)
1cf3d07d
SE
8508 LD="${LD-ld} -m elf64ppc"
8509 ;;
8510 s390*-*linux*|s390*-*tpf*)
8511 LD="${LD-ld} -m elf64_s390"
8512 ;;
8513 sparc*-*linux*)
8514 LD="${LD-ld} -m elf64_sparc"
8515 ;;
8516 esac
8517 ;;
96b8a615 8518 esac
6de9cd9a 8519 fi
96b8a615
AJ
8520 rm -rf conftest*
8521 ;;
6de9cd9a 8522
96b8a615
AJ
8523*-*-sco3.2v5*)
8524 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8525 SAVE_CFLAGS="$CFLAGS"
8526 CFLAGS="$CFLAGS -belf"
5213506e
RW
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8528$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8529if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 8530 $as_echo_n "(cached) " >&6
6de9cd9a 8531else
1cf3d07d 8532 ac_ext=c
96b8a615
AJ
8533ac_cpp='$CPP $CPPFLAGS'
8534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8537
f02d008e 8538 if test x$gcc_no_link = xyes; then
22e05272 8539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8540fi
5213506e 8541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8542/* end confdefs.h. */
6de9cd9a
DN
8543
8544int
8545main ()
8546{
96b8a615 8547
6de9cd9a
DN
8548 ;
8549 return 0;
8550}
8551_ACEOF
5213506e 8552if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8553 lt_cv_cc_needs_belf=yes
6de9cd9a 8554else
5213506e 8555 lt_cv_cc_needs_belf=no
6de9cd9a 8556fi
5213506e
RW
8557rm -f core conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8559 ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
6de9cd9a 8565fi
5213506e
RW
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8567$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8568 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8569 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8570 CFLAGS="$SAVE_CFLAGS"
8571 fi
8572 ;;
1cf3d07d
SE
8573sparc*-*solaris*)
8574 # Find out which ABI we are using.
8575 echo 'int i;' > conftest.$ac_ext
5213506e 8576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8577 (eval $ac_compile) 2>&5
8578 ac_status=$?
5213506e
RW
8579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580 test $ac_status = 0; }; then
1cf3d07d
SE
8581 case `/usr/bin/file conftest.o` in
8582 *64-bit*)
8583 case $lt_cv_prog_gnu_ld in
8584 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8585 *)
8586 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8587 LD="${LD-ld} -64"
8588 fi
8589 ;;
1cf3d07d
SE
8590 esac
8591 ;;
8592 esac
8593 fi
8594 rm -rf conftest*
8595 ;;
96b8a615
AJ
8596esac
8597
1cf3d07d 8598need_locks="$enable_libtool_lock"
96b8a615 8599
d58dead8
PG
8600
8601 case $host_os in
8602 rhapsody* | darwin*)
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8605set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8608if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 8609 $as_echo_n "(cached) " >&6
d58dead8
PG
8610else
8611 if test -n "$DSYMUTIL"; then
8612 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
5213506e 8619 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 8621 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8623 break 2
8624 fi
8625done
5213506e
RW
8626 done
8627IFS=$as_save_IFS
d58dead8
PG
8628
8629fi
8630fi
8631DSYMUTIL=$ac_cv_prog_DSYMUTIL
8632if test -n "$DSYMUTIL"; then
5213506e
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8634$as_echo "$DSYMUTIL" >&6; }
d58dead8 8635else
5213506e
RW
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637$as_echo "no" >&6; }
d58dead8
PG
8638fi
8639
5213506e 8640
d58dead8
PG
8641fi
8642if test -z "$ac_cv_prog_DSYMUTIL"; then
8643 ac_ct_DSYMUTIL=$DSYMUTIL
8644 # Extract the first word of "dsymutil", so it can be a program name with args.
8645set dummy dsymutil; ac_word=$2
5213506e
RW
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8648if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 8649 $as_echo_n "(cached) " >&6
d58dead8 8650else
21be0a5a
JB
8651 if test -n "$ac_ct_DSYMUTIL"; then
8652 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
5213506e 8659 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8661 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8663 break 2
8664 fi
8665done
5213506e
RW
8666 done
8667IFS=$as_save_IFS
d58dead8 8668
d58dead8
PG
8669fi
8670fi
21be0a5a
JB
8671ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8672if test -n "$ac_ct_DSYMUTIL"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8674$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8675else
5213506e
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
d58dead8
PG
8678fi
8679
21be0a5a
JB
8680 if test "x$ac_ct_DSYMUTIL" = x; then
8681 DSYMUTIL=":"
5213506e
RW
8682 else
8683 case $cross_compiling:$ac_tool_warned in
8684yes:)
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687ac_tool_warned=yes ;;
8688esac
21be0a5a 8689 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8690 fi
d58dead8 8691else
21be0a5a 8692 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8693fi
8694
8695 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8696 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8697set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8700if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 8701 $as_echo_n "(cached) " >&6
d58dead8 8702else
21be0a5a
JB
8703 if test -n "$NMEDIT"; then
8704 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
5213506e 8711 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8713 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8715 break 2
8716 fi
8717done
5213506e
RW
8718 done
8719IFS=$as_save_IFS
d58dead8
PG
8720
8721fi
8722fi
21be0a5a
JB
8723NMEDIT=$ac_cv_prog_NMEDIT
8724if test -n "$NMEDIT"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8726$as_echo "$NMEDIT" >&6; }
d58dead8 8727else
5213506e
RW
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729$as_echo "no" >&6; }
d58dead8
PG
8730fi
8731
5213506e 8732
d58dead8 8733fi
21be0a5a
JB
8734if test -z "$ac_cv_prog_NMEDIT"; then
8735 ac_ct_NMEDIT=$NMEDIT
8736 # Extract the first word of "nmedit", so it can be a program name with args.
8737set dummy nmedit; ac_word=$2
5213506e
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8740if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 8741 $as_echo_n "(cached) " >&6
d58dead8 8742else
21be0a5a
JB
8743 if test -n "$ac_ct_NMEDIT"; then
8744 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
5213506e 8751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8753 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8755 break 2
8756 fi
8757done
5213506e
RW
8758 done
8759IFS=$as_save_IFS
d58dead8 8760
d58dead8
PG
8761fi
8762fi
21be0a5a
JB
8763ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8764if test -n "$ac_ct_NMEDIT"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8766$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8767else
5213506e
RW
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
d58dead8
PG
8770fi
8771
21be0a5a
JB
8772 if test "x$ac_ct_NMEDIT" = x; then
8773 NMEDIT=":"
5213506e
RW
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776yes:)
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779ac_tool_warned=yes ;;
8780esac
21be0a5a 8781 NMEDIT=$ac_ct_NMEDIT
5213506e 8782 fi
d58dead8 8783else
21be0a5a 8784 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8785fi
8786
8787 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8788 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8789set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8792if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8793 $as_echo_n "(cached) " >&6
d58dead8 8794else
21be0a5a
JB
8795 if test -n "$LIPO"; then
8796 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8797else
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
5213506e 8803 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8805 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8807 break 2
8808 fi
8809done
5213506e
RW
8810 done
8811IFS=$as_save_IFS
d58dead8
PG
8812
8813fi
8814fi
21be0a5a
JB
8815LIPO=$ac_cv_prog_LIPO
8816if test -n "$LIPO"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8818$as_echo "$LIPO" >&6; }
d58dead8 8819else
5213506e
RW
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821$as_echo "no" >&6; }
d58dead8
PG
8822fi
8823
5213506e 8824
d58dead8 8825fi
21be0a5a
JB
8826if test -z "$ac_cv_prog_LIPO"; then
8827 ac_ct_LIPO=$LIPO
8828 # Extract the first word of "lipo", so it can be a program name with args.
8829set dummy lipo; ac_word=$2
5213506e
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8832if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 8833 $as_echo_n "(cached) " >&6
d58dead8 8834else
21be0a5a
JB
8835 if test -n "$ac_ct_LIPO"; then
8836 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
5213506e 8843 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8845 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8847 break 2
8848 fi
8849done
5213506e
RW
8850 done
8851IFS=$as_save_IFS
d58dead8 8852
d58dead8
PG
8853fi
8854fi
21be0a5a
JB
8855ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8856if test -n "$ac_ct_LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8858$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8859else
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
d58dead8
PG
8862fi
8863
21be0a5a
JB
8864 if test "x$ac_ct_LIPO" = x; then
8865 LIPO=":"
5213506e
RW
8866 else
8867 case $cross_compiling:$ac_tool_warned in
8868yes:)
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871ac_tool_warned=yes ;;
8872esac
21be0a5a 8873 LIPO=$ac_ct_LIPO
5213506e 8874 fi
d58dead8 8875else
21be0a5a 8876 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8877fi
8878
21be0a5a
JB
8879 if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8881set dummy ${ac_tool_prefix}otool; ac_word=$2
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8884if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 8885 $as_echo_n "(cached) " >&6
d58dead8 8886else
21be0a5a
JB
8887 if test -n "$OTOOL"; then
8888 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8889else
21be0a5a
JB
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8897 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8900 fi
8901done
8902 done
8903IFS=$as_save_IFS
43e02a8a
RW
8904
8905fi
21be0a5a
JB
8906fi
8907OTOOL=$ac_cv_prog_OTOOL
8908if test -n "$OTOOL"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8910$as_echo "$OTOOL" >&6; }
8911else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
8914fi
8915
d58dead8 8916
1cf3d07d 8917fi
21be0a5a
JB
8918if test -z "$ac_cv_prog_OTOOL"; then
8919 ac_ct_OTOOL=$OTOOL
8920 # Extract the first word of "otool", so it can be a program name with args.
8921set dummy otool; ac_word=$2
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8924if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 8925 $as_echo_n "(cached) " >&6
1cf3d07d 8926else
21be0a5a
JB
8927 if test -n "$ac_ct_OTOOL"; then
8928 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
1cf3d07d 8932do
21be0a5a
JB
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8937 ac_cv_prog_ac_ct_OTOOL="otool"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8940 fi
8941done
8942 done
8943IFS=$as_save_IFS
6de9cd9a 8944
21be0a5a
JB
8945fi
8946fi
8947ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8948if test -n "$ac_ct_OTOOL"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8950$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8951else
21be0a5a
JB
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
1cf3d07d 8954fi
96b8a615 8955
21be0a5a
JB
8956 if test "x$ac_ct_OTOOL" = x; then
8957 OTOOL=":"
8958 else
8959 case $cross_compiling:$ac_tool_warned in
8960yes:)
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963ac_tool_warned=yes ;;
8964esac
8965 OTOOL=$ac_ct_OTOOL
8966 fi
1cf3d07d 8967else
21be0a5a 8968 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8969fi
6de9cd9a 8970
21be0a5a
JB
8971 if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8973set dummy ${ac_tool_prefix}otool64; ac_word=$2
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8976if ${ac_cv_prog_OTOOL64+:} false; then :
21be0a5a
JB
8977 $as_echo_n "(cached) " >&6
8978else
8979 if test -n "$OTOOL64"; then
8980 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8989 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
1cf3d07d 8993done
21be0a5a
JB
8994 done
8995IFS=$as_save_IFS
8996
8997fi
8998fi
8999OTOOL64=$ac_cv_prog_OTOOL64
9000if test -n "$OTOOL64"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9002$as_echo "$OTOOL64" >&6; }
9003else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
1cf3d07d 9006fi
6de9cd9a 9007
96b8a615 9008
1cf3d07d 9009fi
21be0a5a
JB
9010if test -z "$ac_cv_prog_OTOOL64"; then
9011 ac_ct_OTOOL64=$OTOOL64
9012 # Extract the first word of "otool64", so it can be a program name with args.
9013set dummy otool64; ac_word=$2
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9016if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
21be0a5a 9017 $as_echo_n "(cached) " >&6
96b8a615 9018else
21be0a5a
JB
9019 if test -n "$ac_ct_OTOOL64"; then
9020 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9021else
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
96b8a615 9024do
21be0a5a
JB
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9029 ac_cv_prog_ac_ct_OTOOL64="otool64"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9032 fi
9033done
9034 done
9035IFS=$as_save_IFS
96b8a615 9036
21be0a5a
JB
9037fi
9038fi
9039ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9040if test -n "$ac_ct_OTOOL64"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9042$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 9043else
21be0a5a
JB
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
96b8a615
AJ
9046fi
9047
21be0a5a
JB
9048 if test "x$ac_ct_OTOOL64" = x; then
9049 OTOOL64=":"
9050 else
9051 case $cross_compiling:$ac_tool_warned in
9052yes:)
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9055ac_tool_warned=yes ;;
9056esac
9057 OTOOL64=$ac_ct_OTOOL64
9058 fi
6de9cd9a 9059else
21be0a5a 9060 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 9061fi
6de9cd9a 9062
5213506e 9063
1cf3d07d 9064
1cf3d07d
SE
9065
9066
6de9cd9a 9067
1cf3d07d 9068
6de9cd9a 9069
1cf3d07d 9070
5213506e 9071
6de9cd9a 9072
e87045f3 9073
15e92535 9074
5213506e 9075
15e92535 9076
15e92535 9077
21be0a5a
JB
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9090$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 9091if ${lt_cv_apple_cc_single_mod+:} false; then :
21be0a5a 9092 $as_echo_n "(cached) " >&6
1cf3d07d 9093else
21be0a5a
JB
9094 lt_cv_apple_cc_single_mod=no
9095 if test -z "${LT_MULTI_MODULE}"; then
9096 # By default we will add the -single_module flag. You can override
9097 # by either setting the environment variable LT_MULTI_MODULE
9098 # non-empty at configure time, or by adding -multi_module to the
9099 # link flags.
9100 rm -rf libconftest.dylib*
9101 echo "int foo(void){return 1;}" > conftest.c
9102 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9103-dynamiclib -Wl,-single_module conftest.c" >&5
9104 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9105 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9106 _lt_result=$?
9107 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9108 lt_cv_apple_cc_single_mod=yes
9109 else
9110 cat conftest.err >&5
9111 fi
9112 rm -rf libconftest.dylib*
9113 rm -f conftest.*
9114 fi
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9117$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9119$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 9120if ${lt_cv_ld_exported_symbols_list+:} false; then :
21be0a5a
JB
9121 $as_echo_n "(cached) " >&6
9122else
9123 lt_cv_ld_exported_symbols_list=no
9124 save_LDFLAGS=$LDFLAGS
9125 echo "_main" > conftest.sym
9126 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9127 if test x$gcc_no_link = xyes; then
22e05272 9128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
9129fi
9130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9131/* end confdefs.h. */
15e92535 9132
1cf3d07d
SE
9133int
9134main ()
9135{
21be0a5a
JB
9136
9137 ;
5213506e 9138 return 0;
1cf3d07d 9139}
15e92535 9140_ACEOF
21be0a5a
JB
9141if ac_fn_c_try_link "$LINENO"; then :
9142 lt_cv_ld_exported_symbols_list=yes
5213506e 9143else
21be0a5a 9144 lt_cv_ld_exported_symbols_list=no
1cf3d07d 9145fi
21be0a5a
JB
9146rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
9149
9150fi
21be0a5a
JB
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9152$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9154$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 9155if ${lt_cv_ld_force_load+:} false; then :
21be0a5a
JB
9156 $as_echo_n "(cached) " >&6
9157else
9158 lt_cv_ld_force_load=no
9159 cat > conftest.c << _LT_EOF
9160int forced_loaded() { return 2;}
9161_LT_EOF
9162 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9163 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9164 echo "$AR cru libconftest.a conftest.o" >&5
9165 $AR cru libconftest.a conftest.o 2>&5
9166 cat > conftest.c << _LT_EOF
9167int main() { return 0;}
9168_LT_EOF
9169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9171 _lt_result=$?
9172 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9173 lt_cv_ld_force_load=yes
9174 else
9175 cat conftest.err >&5
9176 fi
9177 rm -f conftest.err libconftest.a conftest conftest.c
9178 rm -rf conftest.dSYM
1cf3d07d
SE
9179
9180fi
21be0a5a
JB
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9182$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
9183 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9184 # build without first building modern cctools / linker.
9185 case $host_cpu-$host_os in
9186 *-rhapsody* | *-darwin1.[012])
21be0a5a 9187 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 9188 *-darwin1.*)
21be0a5a 9189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
9190 *-darwin*)
9191 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9192 # deployment target is forced to an earlier version.
9193 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9194 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9195 ;;
ebf6d33b 9196 10.[012][,.]*)
1352bc88
IS
9197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9198 ;;
9199 *)
9200 ;;
9201 esac
21be0a5a
JB
9202 ;;
9203 esac
9204 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9205 _lt_dar_single_mod='$single_module'
9206 fi
9207 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9208 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9209 else
9210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9211 fi
9212 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9213 _lt_dsymutil='~$DSYMUTIL $lib || :'
9214 else
9215 _lt_dsymutil=
9216 fi
9217 ;;
9218 esac
1cf3d07d 9219
1cf3d07d 9220for ac_header in dlfcn.h
5213506e
RW
9221do :
9222 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9223"
22e05272 9224if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1cf3d07d 9225 cat >>confdefs.h <<_ACEOF
5213506e 9226#define HAVE_DLFCN_H 1
9cdc381b 9227_ACEOF
9cdc381b 9228
1cf3d07d
SE
9229fi
9230
9231done
9232
9233
9234
43e02a8a
RW
9235
9236
d58dead8
PG
9237# Set options
9238
9239
9240
9241
9242 enable_win32_dll=no
9243
9244
5213506e
RW
9245 # Check whether --enable-shared was given.
9246if test "${enable_shared+set}" = set; then :
9247 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
9248 case $enableval in
9249 yes) enable_shared=yes ;;
9250 no) enable_shared=no ;;
9251 *)
9252 enable_shared=no
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255 for pkg in $enableval; do
9256 IFS="$lt_save_ifs"
9257 if test "X$pkg" = "X$p"; then
9258 enable_shared=yes
9259 fi
9260 done
9261 IFS="$lt_save_ifs"
9262 ;;
9263 esac
9264else
9265 enable_shared=yes
5213506e
RW
9266fi
9267
d58dead8
PG
9268
9269
9270
9271
9272
9273
9274
9275
5213506e
RW
9276 # Check whether --enable-static was given.
9277if test "${enable_static+set}" = set; then :
9278 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
9279 case $enableval in
9280 yes) enable_static=yes ;;
9281 no) enable_static=no ;;
9282 *)
9283 enable_static=no
9284 # Look at the argument we got. We use all the common list separators.
9285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9286 for pkg in $enableval; do
9287 IFS="$lt_save_ifs"
9288 if test "X$pkg" = "X$p"; then
9289 enable_static=yes
9290 fi
9291 done
9292 IFS="$lt_save_ifs"
9293 ;;
9294 esac
9295else
9296 enable_static=yes
5213506e
RW
9297fi
9298
d58dead8
PG
9299
9300
9301
9302
9303
9304
9305
9306
9307
5213506e
RW
9308# Check whether --with-pic was given.
9309if test "${with_pic+set}" = set; then :
9310 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
9311else
9312 pic_mode=default
5213506e
RW
9313fi
9314
d58dead8
PG
9315
9316test -z "$pic_mode" && pic_mode=default
9317
9318
9319
9320
9321
9322
9323
5213506e
RW
9324 # Check whether --enable-fast-install was given.
9325if test "${enable_fast_install+set}" = set; then :
9326 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9327 case $enableval in
9328 yes) enable_fast_install=yes ;;
9329 no) enable_fast_install=no ;;
9330 *)
9331 enable_fast_install=no
9332 # Look at the argument we got. We use all the common list separators.
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for pkg in $enableval; do
9335 IFS="$lt_save_ifs"
9336 if test "X$pkg" = "X$p"; then
9337 enable_fast_install=yes
9338 fi
9339 done
9340 IFS="$lt_save_ifs"
9341 ;;
9342 esac
9343else
9344 enable_fast_install=yes
5213506e
RW
9345fi
9346
d58dead8
PG
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
1cf3d07d
SE
9357# This can be used to rebuild libtool when needed
9358LIBTOOL_DEPS="$ltmain"
9359
9360# Always use our own libtool.
9361LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
43e02a8a 9385
1cf3d07d
SE
9386
9387
9388test -z "$LN_S" && LN_S="ln -s"
9389
9390
9391
9392
9393
9cdc381b 9394
1cf3d07d
SE
9395
9396
9397
9398
9399
9400
9401
9402
9403if test -n "${ZSH_VERSION+set}" ; then
9404 setopt NO_GLOB_SUBST
9cdc381b 9405fi
9cdc381b 9406
5213506e
RW
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9408$as_echo_n "checking for objdir... " >&6; }
22e05272 9409if ${lt_cv_objdir+:} false; then :
5213506e 9410 $as_echo_n "(cached) " >&6
9cdc381b 9411else
1cf3d07d
SE
9412 rm -f .libs 2>/dev/null
9413mkdir .libs 2>/dev/null
9414if test -d .libs; then
9415 lt_cv_objdir=.libs
9416else
9417 # MS-DOS does not allow filenames that begin with a dot.
9418 lt_cv_objdir=_libs
9cdc381b 9419fi
1cf3d07d 9420rmdir .libs 2>/dev/null
9cdc381b 9421fi
5213506e
RW
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9423$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9424objdir=$lt_cv_objdir
9425
9426
9427
9428
9cdc381b
BD
9429
9430cat >>confdefs.h <<_ACEOF
1cf3d07d 9431#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9432_ACEOF
9433
1cf3d07d
SE
9434
9435
9436
1cf3d07d
SE
9437case $host_os in
9438aix3*)
9439 # AIX sometimes has problems with the GCC collect2 program. For some
9440 # reason, if we set the COLLECT_NAMES environment variable, the problems
9441 # vanish in a puff of smoke.
9442 if test "X${COLLECT_NAMES+set}" != Xset; then
9443 COLLECT_NAMES=
9444 export COLLECT_NAMES
9445 fi
9446 ;;
9447esac
9448
1cf3d07d
SE
9449# Global variables:
9450ofile=libtool
9451can_build_shared=yes
9452
9453# All known linkers require a `.a' archive for static linking (except MSVC,
9454# which needs '.lib').
9455libext=a
9456
9457with_gnu_ld="$lt_cv_prog_gnu_ld"
9458
9459old_CC="$CC"
9460old_CFLAGS="$CFLAGS"
9461
9462# Set sane defaults for various variables
9463test -z "$CC" && CC=cc
9464test -z "$LTCC" && LTCC=$CC
9465test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9466test -z "$LD" && LD=ld
9467test -z "$ac_objext" && ac_objext=o
9468
9469for cc_temp in $compiler""; do
9470 case $cc_temp in
9471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9473 \-*) ;;
9474 *) break;;
9475 esac
9476done
43e02a8a 9477cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9478
9479
9480# Only perform the check for file, if the check method requires it
9481test -z "$MAGIC_CMD" && MAGIC_CMD=file
9482case $deplibs_check_method in
9483file_magic*)
9484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9486$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9487if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9488 $as_echo_n "(cached) " >&6
9cdc381b 9489else
1cf3d07d
SE
9490 case $MAGIC_CMD in
9491[\\/*] | ?:[\\/]*)
9492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9493 ;;
9494*)
9495 lt_save_MAGIC_CMD="$MAGIC_CMD"
9496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9498 for ac_dir in $ac_dummy; do
9499 IFS="$lt_save_ifs"
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f $ac_dir/${ac_tool_prefix}file; then
9502 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9503 if test -n "$file_magic_test_file"; then
9504 case $deplibs_check_method in
9505 "file_magic "*)
9506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9509 $EGREP "$file_magic_regex" > /dev/null; then
9510 :
9511 else
9512 cat <<_LT_EOF 1>&2
9cdc381b 9513
1cf3d07d
SE
9514*** Warning: the command libtool uses to detect shared libraries,
9515*** $file_magic_cmd, produces output that libtool cannot recognize.
9516*** The result is that libtool may fail to recognize shared libraries
9517*** as such. This will affect the creation of libtool libraries that
9518*** depend on shared libraries, but programs linked with such libtool
9519*** libraries will work regardless of this problem. Nevertheless, you
9520*** may want to report the problem to your system manager and/or to
9521*** bug-libtool@gnu.org
9522
9523_LT_EOF
9524 fi ;;
9525 esac
9526 fi
9527 break
9528 fi
9529 done
9530 IFS="$lt_save_ifs"
9531 MAGIC_CMD="$lt_save_MAGIC_CMD"
9532 ;;
9533esac
9534fi
9535
9536MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9537if test -n "$MAGIC_CMD"; then
5213506e
RW
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9539$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9540else
5213506e
RW
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542$as_echo "no" >&6; }
1cf3d07d
SE
9543fi
9544
9545
9546
9547
9548
9549if test -z "$lt_cv_path_MAGIC_CMD"; then
9550 if test -n "$ac_tool_prefix"; then
5213506e
RW
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9552$as_echo_n "checking for file... " >&6; }
22e05272 9553if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9554 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9555else
9556 case $MAGIC_CMD in
9557[\\/*] | ?:[\\/]*)
9558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9559 ;;
9560*)
9561 lt_save_MAGIC_CMD="$MAGIC_CMD"
9562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9564 for ac_dir in $ac_dummy; do
9565 IFS="$lt_save_ifs"
9566 test -z "$ac_dir" && ac_dir=.
9567 if test -f $ac_dir/file; then
9568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9569 if test -n "$file_magic_test_file"; then
9570 case $deplibs_check_method in
9571 "file_magic "*)
9572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9575 $EGREP "$file_magic_regex" > /dev/null; then
9576 :
9577 else
9578 cat <<_LT_EOF 1>&2
9579
9580*** Warning: the command libtool uses to detect shared libraries,
9581*** $file_magic_cmd, produces output that libtool cannot recognize.
9582*** The result is that libtool may fail to recognize shared libraries
9583*** as such. This will affect the creation of libtool libraries that
9584*** depend on shared libraries, but programs linked with such libtool
9585*** libraries will work regardless of this problem. Nevertheless, you
9586*** may want to report the problem to your system manager and/or to
9587*** bug-libtool@gnu.org
9588
9589_LT_EOF
9590 fi ;;
9591 esac
9592 fi
9593 break
9594 fi
9595 done
9596 IFS="$lt_save_ifs"
9597 MAGIC_CMD="$lt_save_MAGIC_CMD"
9598 ;;
9599esac
9600fi
9601
9602MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9603if test -n "$MAGIC_CMD"; then
5213506e
RW
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9605$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9606else
5213506e
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608$as_echo "no" >&6; }
1cf3d07d
SE
9609fi
9610
9611
9612 else
9613 MAGIC_CMD=:
9614 fi
9615fi
9616
9617 fi
9618 ;;
9619esac
9620
9621# Use C for the default configuration in the libtool script
9622
9623lt_save_CC="$CC"
9624ac_ext=c
9625ac_cpp='$CPP $CPPFLAGS'
9626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9628ac_compiler_gnu=$ac_cv_c_compiler_gnu
9629
9630
9631# Source file extension for C test sources.
9632ac_ext=c
9633
9634# Object file extension for compiled C test sources.
9635objext=o
9636objext=$objext
9637
9638# Code to be used in simple compile tests
9639lt_simple_compile_test_code="int some_variable = 0;"
9640
9641# Code to be used in simple link tests
9642lt_simple_link_test_code='int main(){return(0);}'
9643
9644
9645
9646
9647
9648
9649
9650# If no C compiler was specified, use CC.
9651LTCC=${LTCC-"$CC"}
9652
9653# If no C compiler flags were specified, use CFLAGS.
9654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9655
9656# Allow CC to be a program name with arguments.
9657compiler=$CC
9658
9659# Save the default compiler, since it gets overwritten when the other
9660# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9661compiler_DEFAULT=$CC
9662
9663# save warnings/boilerplate of simple test code
9664ac_outfile=conftest.$ac_objext
9665echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9667_lt_compiler_boilerplate=`cat conftest.err`
9668$RM conftest*
9669
9670ac_outfile=conftest.$ac_objext
9671echo "$lt_simple_link_test_code" >conftest.$ac_ext
9672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9673_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9674$RM -r conftest*
1cf3d07d
SE
9675
9676
9677## CAVEAT EMPTOR:
9678## There is no encapsulation within the following macros, do not change
9679## the running order or otherwise move them around unless you know exactly
9680## what you are doing...
9681if test -n "$compiler"; then
9682
9683lt_prog_compiler_no_builtin_flag=
9684
9685if test "$GCC" = yes; then
43e02a8a
RW
9686 case $cc_basename in
9687 nvcc*)
9688 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9689 *)
9690 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9691 esac
1cf3d07d 9692
5213506e
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9694$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9695if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 9696 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9697else
9698 lt_cv_prog_compiler_rtti_exceptions=no
9699 ac_outfile=conftest.$ac_objext
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 lt_compiler_flag="-fno-rtti -fno-exceptions"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 # The option is referenced via a variable to avoid confusing sed.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9712 (eval "$lt_compile" 2>conftest.err)
9713 ac_status=$?
9714 cat conftest.err >&5
43e02a8a 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9716 if (exit $ac_status) && test -s "$ac_outfile"; then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings other than the usual output.
43e02a8a 9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_rtti_exceptions=yes
9723 fi
9724 fi
9725 $RM conftest*
9726
9727fi
5213506e
RW
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9729$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9730
9731if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9733else
9734 :
9735fi
9736
9737fi
9738
9739
9740
9741
9742
9743
9744 lt_prog_compiler_wl=
9745lt_prog_compiler_pic=
9746lt_prog_compiler_static=
9747
5213506e
RW
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9749$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9750
9751 if test "$GCC" = yes; then
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_static='-static'
9754
9755 case $host_os in
9756 aix*)
9757 # All AIX code is PIC.
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 now supports IA64 processor
9760 lt_prog_compiler_static='-Bstatic'
9761 fi
bad8a4a7 9762 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9763 ;;
9764
9765 amigaos*)
d58dead8
PG
9766 case $host_cpu in
9767 powerpc)
9768 # see comment about AmigaOS4 .so support
9769 lt_prog_compiler_pic='-fPIC'
9770 ;;
9771 m68k)
9772 # FIXME: we need at least 68020 code to build shared libraries, but
9773 # adding the `-m68020' flag to GCC prevents building anything better,
9774 # like `-m68040'.
9775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9776 ;;
9777 esac
1cf3d07d
SE
9778 ;;
9779
9780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9781 # PIC is the default for these OSes.
9782 ;;
9783
d58dead8 9784 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9785 # This hack is so that the source file can tell whether it is being
9786 # built for inclusion in a dll (and should export symbols for example).
9787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9788 # (--disable-auto-import) libraries
9789 lt_prog_compiler_pic='-DDLL_EXPORT'
9790 ;;
9791
9792 darwin* | rhapsody*)
9793 # PIC is the default on this platform
9794 # Common symbols not allowed in MH_DYLIB files
9795 lt_prog_compiler_pic='-fno-common'
9796 ;;
9797
43e02a8a
RW
9798 haiku*)
9799 # PIC is the default for Haiku.
9800 # The "-static" flag exists, but is broken.
9801 lt_prog_compiler_static=
9802 ;;
9803
1cf3d07d 9804 hpux*)
d58dead8
PG
9805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9807 # sets the default TLS model and affects inlining.
1cf3d07d 9808 case $host_cpu in
d58dead8 9809 hppa*64*)
1cf3d07d
SE
9810 # +Z the default
9811 ;;
9812 *)
9813 lt_prog_compiler_pic='-fPIC'
9814 ;;
9815 esac
9816 ;;
9817
9818 interix[3-9]*)
9819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9820 # Instead, we relocate shared libraries at runtime.
9821 ;;
9822
9823 msdosdjgpp*)
9824 # Just because we use GCC doesn't mean we suddenly get shared libraries
9825 # on systems that don't support them.
9826 lt_prog_compiler_can_build_shared=no
9827 enable_shared=no
9828 ;;
9829
9830 *nto* | *qnx*)
9831 # QNX uses GNU C++, but need to define -shared option too, otherwise
9832 # it will coredump.
9833 lt_prog_compiler_pic='-fPIC -shared'
9834 ;;
9835
9836 sysv4*MP*)
9837 if test -d /usr/nec; then
9838 lt_prog_compiler_pic=-Kconform_pic
9839 fi
9840 ;;
9841
9842 *)
9843 lt_prog_compiler_pic='-fPIC'
9844 ;;
9845 esac
43e02a8a
RW
9846
9847 case $cc_basename in
9848 nvcc*) # Cuda Compiler Driver 2.2
9849 lt_prog_compiler_wl='-Xlinker '
9850 lt_prog_compiler_pic='-Xcompiler -fPIC'
9851 ;;
9852 esac
1cf3d07d
SE
9853 else
9854 # PORTME Check for flag to pass linker flags through the system compiler.
9855 case $host_os in
9856 aix*)
9857 lt_prog_compiler_wl='-Wl,'
9858 if test "$host_cpu" = ia64; then
9859 # AIX 5 now supports IA64 processor
9860 lt_prog_compiler_static='-Bstatic'
9861 else
9862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9863 fi
9864 ;;
1cf3d07d 9865
d58dead8 9866 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9867 # This hack is so that the source file can tell whether it is being
9868 # built for inclusion in a dll (and should export symbols for example).
9869 lt_prog_compiler_pic='-DDLL_EXPORT'
9870 ;;
9871
9872 hpux9* | hpux10* | hpux11*)
9873 lt_prog_compiler_wl='-Wl,'
9874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9875 # not for PA HP-UX.
9876 case $host_cpu in
9877 hppa*64*|ia64*)
9878 # +Z the default
9879 ;;
9880 *)
9881 lt_prog_compiler_pic='+Z'
9882 ;;
9883 esac
9884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9885 lt_prog_compiler_static='${wl}-a ${wl}archive'
9886 ;;
9887
9888 irix5* | irix6* | nonstopux*)
9889 lt_prog_compiler_wl='-Wl,'
9890 # PIC (with -KPIC) is the default.
9891 lt_prog_compiler_static='-non_shared'
9892 ;;
9893
7a9d3fe8 9894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9895 case $cc_basename in
d58dead8
PG
9896 # old Intel for x86_64 which still supported -KPIC.
9897 ecc*)
1cf3d07d
SE
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-KPIC'
9900 lt_prog_compiler_static='-static'
9901 ;;
d58dead8
PG
9902 # icc used to be incompatible with GCC.
9903 # ICC 10 doesn't accept -KPIC any more.
9904 icc* | ifort*)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-fPIC'
9907 lt_prog_compiler_static='-static'
9908 ;;
9909 # Lahey Fortran 8.1.
9910 lf95*)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='--shared'
9913 lt_prog_compiler_static='--static'
9914 ;;
43e02a8a 9915 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9916 # Portland Group compilers (*not* the Pentium gcc compiler,
9917 # which looks to be a dead project)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fpic'
9920 lt_prog_compiler_static='-Bstatic'
9921 ;;
9922 ccc*)
9923 lt_prog_compiler_wl='-Wl,'
9924 # All Alpha code is PIC.
9925 lt_prog_compiler_static='-non_shared'
9926 ;;
43e02a8a
RW
9927 xl* | bgxl* | bgf* | mpixl*)
9928 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9929 lt_prog_compiler_wl='-Wl,'
9930 lt_prog_compiler_pic='-qpic'
9931 lt_prog_compiler_static='-qstaticlink'
9932 ;;
1cf3d07d
SE
9933 *)
9934 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9935 *Sun\ F* | *Sun*Fortran*)
9936 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
43e02a8a 9939 lt_prog_compiler_wl=''
1cf3d07d 9940 ;;
43e02a8a
RW
9941 *Sun\ C*)
9942 # Sun C 5.9
1cf3d07d
SE
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
43e02a8a 9945 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9946 ;;
9947 esac
9948 ;;
9949 esac
9950 ;;
9951
9952 newsos6)
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 ;;
9956
9957 *nto* | *qnx*)
9958 # QNX uses GNU C++, but need to define -shared option too, otherwise
9959 # it will coredump.
9960 lt_prog_compiler_pic='-fPIC -shared'
9961 ;;
9962
9963 osf3* | osf4* | osf5*)
9964 lt_prog_compiler_wl='-Wl,'
9965 # All OSF/1 code is PIC.
9966 lt_prog_compiler_static='-non_shared'
9967 ;;
9968
9969 rdos*)
9970 lt_prog_compiler_static='-non_shared'
9971 ;;
9972
9973 solaris*)
9974 lt_prog_compiler_pic='-KPIC'
9975 lt_prog_compiler_static='-Bstatic'
9976 case $cc_basename in
9977 f77* | f90* | f95*)
9978 lt_prog_compiler_wl='-Qoption ld ';;
9979 *)
9980 lt_prog_compiler_wl='-Wl,';;
9981 esac
9982 ;;
9983
9984 sunos4*)
9985 lt_prog_compiler_wl='-Qoption ld '
9986 lt_prog_compiler_pic='-PIC'
9987 lt_prog_compiler_static='-Bstatic'
9988 ;;
9989
9990 sysv4 | sysv4.2uw2* | sysv4.3*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_pic='-KPIC'
9993 lt_prog_compiler_static='-Bstatic'
9994 ;;
9995
9996 sysv4*MP*)
9997 if test -d /usr/nec ;then
9998 lt_prog_compiler_pic='-Kconform_pic'
9999 lt_prog_compiler_static='-Bstatic'
10000 fi
10001 ;;
10002
10003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10004 lt_prog_compiler_wl='-Wl,'
10005 lt_prog_compiler_pic='-KPIC'
10006 lt_prog_compiler_static='-Bstatic'
10007 ;;
10008
10009 unicos*)
10010 lt_prog_compiler_wl='-Wl,'
10011 lt_prog_compiler_can_build_shared=no
10012 ;;
10013
10014 uts4*)
10015 lt_prog_compiler_pic='-pic'
10016 lt_prog_compiler_static='-Bstatic'
10017 ;;
10018
10019 *)
10020 lt_prog_compiler_can_build_shared=no
10021 ;;
10022 esac
10023 fi
10024
10025case $host_os in
10026 # For platforms which do not support PIC, -DPIC is meaningless:
10027 *djgpp*)
10028 lt_prog_compiler_pic=
10029 ;;
10030 *)
10031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10032 ;;
10033esac
5213506e
RW
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10035$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10036
10037
10038
10039
10040
10041
10042#
10043# Check to make sure the PIC flag actually works.
10044#
10045if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10047$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 10048if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 10049 $as_echo_n "(cached) " >&6
1cf3d07d 10050else
d58dead8 10051 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10052 ac_outfile=conftest.$ac_objext
10053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10055 # Insert the option either (1) after the last *FLAGS variable, or
10056 # (2) before a word containing "conftest.", or (3) at the end.
10057 # Note that $ac_compile itself does not contain backslashes and begins
10058 # with a dollar sign (not a hyphen), so the echo should work correctly.
10059 # The option is referenced via a variable to avoid confusing sed.
10060 lt_compile=`echo "$ac_compile" | $SED \
10061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10063 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10065 (eval "$lt_compile" 2>conftest.err)
10066 ac_status=$?
10067 cat conftest.err >&5
43e02a8a 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10069 if (exit $ac_status) && test -s "$ac_outfile"; then
10070 # The compiler can only warn and ignore the option if not recognized
10071 # So say no if there are warnings other than the usual output.
43e02a8a 10072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10075 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10076 fi
10077 fi
10078 $RM conftest*
10079
10080fi
5213506e
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10082$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 10083
d58dead8 10084if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10085 case $lt_prog_compiler_pic in
10086 "" | " "*) ;;
10087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10088 esac
10089else
10090 lt_prog_compiler_pic=
10091 lt_prog_compiler_can_build_shared=no
10092fi
10093
10094fi
10095
10096
10097
10098
10099
10100
10101#
10102# Check to make sure the static flag actually works.
10103#
10104wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10106$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 10107if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 10108 $as_echo_n "(cached) " >&6
1cf3d07d 10109else
d58dead8 10110 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10111 save_LDFLAGS="$LDFLAGS"
10112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10115 # The linker can only warn and ignore the option if not recognized
10116 # So say no if there are warnings
10117 if test -s conftest.err; then
10118 # Append any errors to the config.log.
10119 cat conftest.err 1>&5
43e02a8a 10120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10122 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10123 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10124 fi
10125 else
d58dead8 10126 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10127 fi
10128 fi
d58dead8 10129 $RM -r conftest*
1cf3d07d
SE
10130 LDFLAGS="$save_LDFLAGS"
10131
10132fi
5213506e
RW
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10134$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10135
d58dead8 10136if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10137 :
10138else
10139 lt_prog_compiler_static=
10140fi
10141
10142
10143
10144
10145
10146
10147
5213506e
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10150if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10151 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10152else
10153 lt_cv_prog_compiler_c_o=no
10154 $RM -r conftest 2>/dev/null
10155 mkdir conftest
10156 cd conftest
10157 mkdir out
10158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10159
10160 lt_compiler_flag="-o out/conftest2.$ac_objext"
10161 # Insert the option either (1) after the last *FLAGS variable, or
10162 # (2) before a word containing "conftest.", or (3) at the end.
10163 # Note that $ac_compile itself does not contain backslashes and begins
10164 # with a dollar sign (not a hyphen), so the echo should work correctly.
10165 lt_compile=`echo "$ac_compile" | $SED \
10166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10170 (eval "$lt_compile" 2>out/conftest.err)
10171 ac_status=$?
10172 cat out/conftest.err >&5
43e02a8a 10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10175 then
10176 # The compiler can only warn and ignore the option if not recognized
10177 # So say no if there are warnings
43e02a8a 10178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10181 lt_cv_prog_compiler_c_o=yes
10182 fi
10183 fi
10184 chmod u+w . 2>&5
10185 $RM conftest*
10186 # SGI C++ compiler will create directory out/ii_files/ for
10187 # template instantiation
10188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10189 $RM out/* && rmdir out
10190 cd ..
10191 $RM -r conftest
10192 $RM conftest*
10193
10194fi
5213506e
RW
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10196$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10197
10198
10199
10200
10201
10202
5213506e
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10204$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10205if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10206 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10207else
10208 lt_cv_prog_compiler_c_o=no
10209 $RM -r conftest 2>/dev/null
10210 mkdir conftest
10211 cd conftest
10212 mkdir out
10213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214
10215 lt_compiler_flag="-o out/conftest2.$ac_objext"
10216 # Insert the option either (1) after the last *FLAGS variable, or
10217 # (2) before a word containing "conftest.", or (3) at the end.
10218 # Note that $ac_compile itself does not contain backslashes and begins
10219 # with a dollar sign (not a hyphen), so the echo should work correctly.
10220 lt_compile=`echo "$ac_compile" | $SED \
10221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10223 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10225 (eval "$lt_compile" 2>out/conftest.err)
10226 ac_status=$?
10227 cat out/conftest.err >&5
43e02a8a 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10230 then
10231 # The compiler can only warn and ignore the option if not recognized
10232 # So say no if there are warnings
43e02a8a 10233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10236 lt_cv_prog_compiler_c_o=yes
10237 fi
10238 fi
10239 chmod u+w . 2>&5
10240 $RM conftest*
10241 # SGI C++ compiler will create directory out/ii_files/ for
10242 # template instantiation
10243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10244 $RM out/* && rmdir out
10245 cd ..
10246 $RM -r conftest
10247 $RM conftest*
10248
10249fi
5213506e
RW
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10251$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10252
10253
10254
10255
10256hard_links="nottested"
10257if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10258 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10260$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10261 hard_links=yes
10262 $RM conftest*
10263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264 touch conftest.a
10265 ln conftest.a conftest.b 2>&5 || hard_links=no
10266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10268$as_echo "$hard_links" >&6; }
1cf3d07d 10269 if test "$hard_links" = no; then
5213506e
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10271$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10272 need_locks=warn
10273 fi
10274else
10275 need_locks=no
10276fi
10277
10278
10279
10280
10281
10282
5213506e
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10284$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10285
10286 runpath_var=
10287 allow_undefined_flag=
10288 always_export_symbols=no
10289 archive_cmds=
10290 archive_expsym_cmds=
10291 compiler_needs_object=no
10292 enable_shared_with_static_runtimes=no
10293 export_dynamic_flag_spec=
10294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10295 hardcode_automatic=no
10296 hardcode_direct=no
10297 hardcode_direct_absolute=no
10298 hardcode_libdir_flag_spec=
10299 hardcode_libdir_flag_spec_ld=
10300 hardcode_libdir_separator=
10301 hardcode_minus_L=no
10302 hardcode_shlibpath_var=unsupported
10303 inherit_rpath=no
10304 link_all_deplibs=unknown
10305 module_cmds=
10306 module_expsym_cmds=
10307 old_archive_from_new_cmds=
10308 old_archive_from_expsyms_cmds=
10309 thread_safe_flag_spec=
10310 whole_archive_flag_spec=
10311 # include_expsyms should be a list of space-separated symbols to be *always*
10312 # included in the symbol list
10313 include_expsyms=
10314 # exclude_expsyms can be an extended regexp of symbols to exclude
10315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10317 # as well as any symbol that contains `d'.
d58dead8 10318 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10320 # platforms (ab)use it in PIC code, but their linkers get confused if
10321 # the symbol is explicitly referenced. Since portable code cannot
10322 # rely on this symbol name, it's probably fine to never include it in
10323 # preloaded symbol tables.
d58dead8 10324 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10325 extract_expsyms_cmds=
10326
10327 case $host_os in
d58dead8 10328 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10330 # When not using gcc, we currently assume that we are using
10331 # Microsoft Visual C++.
10332 if test "$GCC" != yes; then
10333 with_gnu_ld=no
10334 fi
10335 ;;
10336 interix*)
10337 # we just hope/assume this is gcc and not c89 (= MSVC++)
10338 with_gnu_ld=yes
10339 ;;
10340 openbsd*)
10341 with_gnu_ld=no
10342 ;;
10343 esac
10344
10345 ld_shlibs=yes
43e02a8a
RW
10346
10347 # On some targets, GNU ld is compatible enough with the native linker
10348 # that we're better off using the native interface for both.
10349 lt_use_gnu_ld_interface=no
1cf3d07d 10350 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10351 case $host_os in
10352 aix*)
10353 # The AIX port of GNU ld has always aspired to compatibility
10354 # with the native linker. However, as the warning in the GNU ld
10355 # block says, versions before 2.19.5* couldn't really create working
10356 # shared libraries, regardless of the interface used.
10357 case `$LD -v 2>&1` in
10358 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10359 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10360 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10361 *)
10362 lt_use_gnu_ld_interface=yes
10363 ;;
10364 esac
10365 ;;
10366 *)
10367 lt_use_gnu_ld_interface=yes
10368 ;;
10369 esac
10370 fi
10371
10372 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10373 # If archive_cmds runs LD, not CC, wlarc should be empty
10374 wlarc='${wl}'
10375
10376 # Set some defaults for GNU ld with shared library support. These
10377 # are reset later if shared libraries are not supported. Putting them
10378 # here allows them to be overridden if necessary.
10379 runpath_var=LD_RUN_PATH
10380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381 export_dynamic_flag_spec='${wl}--export-dynamic'
10382 # ancient GNU ld didn't support --whole-archive et. al.
10383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10384 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10385 else
10386 whole_archive_flag_spec=
10387 fi
10388 supports_anon_versioning=no
10389 case `$LD -v 2>&1` in
43e02a8a 10390 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10394 *\ 2.11.*) ;; # other 2.11 versions
10395 *) supports_anon_versioning=yes ;;
10396 esac
10397
10398 # See if GNU ld supports shared libraries.
10399 case $host_os in
4f6bebc3 10400 aix[3-9]*)
1cf3d07d
SE
10401 # On AIX/PPC, the GNU linker is very broken
10402 if test "$host_cpu" != ia64; then
10403 ld_shlibs=no
10404 cat <<_LT_EOF 1>&2
10405
43e02a8a 10406*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10407*** to be unable to reliably create shared libraries on AIX.
10408*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10409*** really care for shared libraries, you may want to install binutils
10410*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10411*** You will then need to restart the configuration process.
1cf3d07d
SE
10412
10413_LT_EOF
10414 fi
10415 ;;
10416
10417 amigaos*)
d58dead8
PG
10418 case $host_cpu in
10419 powerpc)
10420 # see comment about AmigaOS4 .so support
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 archive_expsym_cmds=''
10423 ;;
10424 m68k)
10425 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_minus_L=yes
10428 ;;
10429 esac
1cf3d07d
SE
10430 ;;
10431
10432 beos*)
10433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434 allow_undefined_flag=unsupported
10435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10436 # support --undefined. This deserves some investigation. FIXME
10437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438 else
10439 ld_shlibs=no
10440 fi
10441 ;;
10442
d58dead8 10443 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10444 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10445 # as there is no search path for DLLs.
10446 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10447 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=no
10450 enable_shared_with_static_runtimes=yes
10451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10452
10453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 # If the export-symbols file already is a .def file (1st line
10456 # is EXPORTS), use it as is; otherwise, prepend...
10457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458 cp $export_symbols $output_objdir/$soname.def;
10459 else
10460 echo EXPORTS > $output_objdir/$soname.def;
10461 cat $export_symbols >> $output_objdir/$soname.def;
10462 fi~
10463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10464 else
10465 ld_shlibs=no
10466 fi
10467 ;;
10468
43e02a8a
RW
10469 haiku*)
10470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10471 link_all_deplibs=yes
10472 ;;
10473
1cf3d07d
SE
10474 interix[3-9]*)
10475 hardcode_direct=no
10476 hardcode_shlibpath_var=no
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 export_dynamic_flag_spec='${wl}-E'
10479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10480 # Instead, shared libraries are loaded at an image base (0x10000000 by
10481 # default) and relocated if they conflict, which is a slow very memory
10482 # consuming and fragmenting process. To avoid this, we pick a random,
10483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10486 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10487 ;;
10488
e9085da5 10489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
10490 tmp_diet=no
10491 if test "$host_os" = linux-dietlibc; then
10492 case $cc_basename in
10493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10494 esac
10495 fi
10496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10497 && test "$tmp_diet" = no
10498 then
a699d672 10499 tmp_addflag=' $pic_flag'
d58dead8 10500 tmp_sharedflag='-shared'
1cf3d07d
SE
10501 case $cc_basename,$host_cpu in
10502 pgcc*) # Portland Group C compiler
43e02a8a 10503 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10504 tmp_addflag=' $pic_flag'
10505 ;;
43e02a8a
RW
10506 pgf77* | pgf90* | pgf95* | pgfortran*)
10507 # Portland Group f77 and f90 compilers
10508 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10509 tmp_addflag=' $pic_flag -Mnomain' ;;
10510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10511 tmp_addflag=' -i_dynamic' ;;
10512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10513 tmp_addflag=' -i_dynamic -nofor_main' ;;
10514 ifc* | ifort*) # Intel Fortran compiler
10515 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10516 lf95*) # Lahey Fortran 8.1
10517 whole_archive_flag_spec=
10518 tmp_sharedflag='--shared' ;;
43e02a8a 10519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10520 tmp_sharedflag='-qmkshrobj'
10521 tmp_addflag= ;;
43e02a8a
RW
10522 nvcc*) # Cuda Compiler Driver 2.2
10523 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10524 compiler_needs_object=yes
10525 ;;
1cf3d07d
SE
10526 esac
10527 case `$CC -V 2>&1 | sed 5q` in
10528 *Sun\ C*) # Sun C 5.9
43e02a8a 10529 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10530 compiler_needs_object=yes
10531 tmp_sharedflag='-G' ;;
10532 *Sun\ F*) # Sun Fortran 8.3
10533 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10534 esac
10535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10536
10537 if test "x$supports_anon_versioning" = xyes; then
10538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540 echo "local: *; };" >> $output_objdir/$libname.ver~
10541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10542 fi
d58dead8
PG
10543
10544 case $cc_basename in
43e02a8a 10545 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10547 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10548 hardcode_libdir_flag_spec=
10549 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10550 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10551 if test "x$supports_anon_versioning" = xyes; then
10552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10554 echo "local: *; };" >> $output_objdir/$libname.ver~
10555 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10556 fi
10557 ;;
10558 esac
1cf3d07d
SE
10559 else
10560 ld_shlibs=no
10561 fi
10562 ;;
10563
10564 netbsd*)
10565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10566 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10567 wlarc=
10568 else
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10571 fi
10572 ;;
10573
10574 solaris*)
10575 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10576 ld_shlibs=no
10577 cat <<_LT_EOF 1>&2
10578
10579*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10580*** create shared libraries on Solaris systems. Therefore, libtool
10581*** is disabling shared libraries support. We urge you to upgrade GNU
10582*** binutils to release 2.9.1 or newer. Another option is to modify
10583*** your PATH or compiler configuration so that the native linker is
10584*** used, and then restart.
10585
10586_LT_EOF
10587 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10590 else
10591 ld_shlibs=no
10592 fi
10593 ;;
10594
10595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10596 case `$LD -v 2>&1` in
10597 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10598 ld_shlibs=no
10599 cat <<_LT_EOF 1>&2
10600
10601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10602*** reliably create shared libraries on SCO systems. Therefore, libtool
10603*** is disabling shared libraries support. We urge you to upgrade GNU
10604*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10605*** your PATH or compiler configuration so that the native linker is
10606*** used, and then restart.
10607
10608_LT_EOF
10609 ;;
10610 *)
10611 # For security reasons, it is highly recommended that you always
10612 # use absolute paths for naming shared libraries, and exclude the
10613 # DT_RUNPATH tag from executables and libraries. But doing so
10614 # requires that you compile everything twice, which is a pain.
10615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10619 else
10620 ld_shlibs=no
10621 fi
10622 ;;
10623 esac
10624 ;;
10625
10626 sunos4*)
10627 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 wlarc=
10629 hardcode_direct=yes
10630 hardcode_shlibpath_var=no
10631 ;;
10632
10633 *)
10634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10637 else
10638 ld_shlibs=no
10639 fi
10640 ;;
10641 esac
10642
10643 if test "$ld_shlibs" = no; then
10644 runpath_var=
10645 hardcode_libdir_flag_spec=
10646 export_dynamic_flag_spec=
10647 whole_archive_flag_spec=
10648 fi
10649 else
10650 # PORTME fill in a description of your system's linker (not GNU ld)
10651 case $host_os in
10652 aix3*)
10653 allow_undefined_flag=unsupported
10654 always_export_symbols=yes
10655 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10656 # Note: this linker hardcodes the directories in LIBPATH if there
10657 # are no directories specified by -L.
10658 hardcode_minus_L=yes
10659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10660 # Neither direct hardcoding nor static linking is supported with a
10661 # broken collect2.
10662 hardcode_direct=unsupported
10663 fi
10664 ;;
10665
4f6bebc3 10666 aix[4-9]*)
1cf3d07d
SE
10667 if test "$host_cpu" = ia64; then
10668 # On IA64, the linker does run time linking by default, so we don't
10669 # have to do anything special.
10670 aix_use_runtimelinking=no
10671 exp_sym_flag='-Bexport'
10672 no_entry_flag=""
10673 else
10674 # If we're using GNU nm, then we don't want the "-C" option.
10675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10676 # Also, AIX nm treats weak defined symbols like other global
10677 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10679 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 10680 else
d3ca2257 10681 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
10682 fi
10683 aix_use_runtimelinking=no
10684
10685 # Test if we are trying to use run time linking or normal
10686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10687 # need to do runtime linking.
4f6bebc3 10688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10689 for ld_flag in $LDFLAGS; do
10690 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10691 aix_use_runtimelinking=yes
10692 break
10693 fi
10694 done
10695 ;;
10696 esac
10697
10698 exp_sym_flag='-bexport'
10699 no_entry_flag='-bnoentry'
10700 fi
10701
10702 # When large executables or shared objects are built, AIX ld can
10703 # have problems creating the table of contents. If linking a library
10704 # or program results in "error TOC overflow" add -mminimal-toc to
10705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10707
10708 archive_cmds=''
10709 hardcode_direct=yes
10710 hardcode_direct_absolute=yes
10711 hardcode_libdir_separator=':'
10712 link_all_deplibs=yes
10713 file_list_spec='${wl}-f,'
10714
10715 if test "$GCC" = yes; then
10716 case $host_os in aix4.[012]|aix4.[012].*)
10717 # We only want to do this on AIX 4.2 and lower, the check
10718 # below for broken collect2 doesn't work under 4.3+
10719 collect2name=`${CC} -print-prog-name=collect2`
10720 if test -f "$collect2name" &&
10721 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10722 then
10723 # We have reworked collect2
10724 :
10725 else
10726 # We have old collect2
10727 hardcode_direct=unsupported
10728 # It fails to find uninstalled libraries when the uninstalled
10729 # path is not listed in the libpath. Setting hardcode_minus_L
10730 # to unsupported forces relinking
10731 hardcode_minus_L=yes
10732 hardcode_libdir_flag_spec='-L$libdir'
10733 hardcode_libdir_separator=
10734 fi
10735 ;;
10736 esac
10737 shared_flag='-shared'
10738 if test "$aix_use_runtimelinking" = yes; then
10739 shared_flag="$shared_flag "'${wl}-G'
10740 fi
10741 else
10742 # not using gcc
10743 if test "$host_cpu" = ia64; then
10744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10745 # chokes on -Wl,-G. The following line is correct:
10746 shared_flag='-G'
10747 else
10748 if test "$aix_use_runtimelinking" = yes; then
10749 shared_flag='${wl}-G'
10750 else
10751 shared_flag='${wl}-bM:SRE'
10752 fi
10753 fi
10754 fi
10755
d58dead8 10756 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10757 # It seems that -bexpall does not export symbols beginning with
10758 # underscore (_), so it is better to generate a list of symbols to export.
10759 always_export_symbols=yes
10760 if test "$aix_use_runtimelinking" = yes; then
10761 # Warning - without using the other runtime loading flags (-brtl),
10762 # -berok will link without error, but may produce a broken library.
10763 allow_undefined_flag='-berok'
10764 # Determine the default libpath from the value encoded in an
10765 # empty executable.
10766 if test x$gcc_no_link = xyes; then
22e05272 10767 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10768fi
5213506e 10769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10770/* end confdefs.h. */
10771
10772int
10773main ()
10774{
10775
10776 ;
10777 return 0;
10778}
10779_ACEOF
5213506e 10780if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10781
10782lt_aix_libpath_sed='
10783 /Import File Strings/,/^$/ {
10784 /^0/ {
10785 s/^0 *\(.*\)$/\1/
10786 p
10787 }
10788 }'
10789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790# Check for a 64-bit object if we didn't find anything.
10791if test -z "$aix_libpath"; then
10792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793fi
1cf3d07d 10794fi
5213506e
RW
10795rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10798
10799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10800 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
10801 else
10802 if test "$host_cpu" = ia64; then
10803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10804 allow_undefined_flag="-z nodefs"
10805 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10806 else
10807 # Determine the default libpath from the value encoded in an
10808 # empty executable.
10809 if test x$gcc_no_link = xyes; then
22e05272 10810 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10811fi
5213506e 10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10813/* end confdefs.h. */
10814
10815int
10816main ()
10817{
10818
10819 ;
10820 return 0;
10821}
10822_ACEOF
5213506e 10823if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10824
10825lt_aix_libpath_sed='
10826 /Import File Strings/,/^$/ {
10827 /^0/ {
10828 s/^0 *\(.*\)$/\1/
10829 p
10830 }
10831 }'
10832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833# Check for a 64-bit object if we didn't find anything.
10834if test -z "$aix_libpath"; then
10835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836fi
1cf3d07d 10837fi
5213506e
RW
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10841
10842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10843 # Warning - without using the other run time loading flags,
10844 # -berok will link without error, but may produce a broken library.
10845 no_undefined_flag=' ${wl}-bernotok'
10846 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10847 if test "$with_gnu_ld" = yes; then
10848 # We only use this code for GNU lds that support --whole-archive.
10849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10850 else
10851 # Exported symbols can be pulled into shared objects from archives
10852 whole_archive_flag_spec='$convenience'
10853 fi
1cf3d07d
SE
10854 archive_cmds_need_lc=yes
10855 # This is similar to how AIX traditionally builds its shared libraries.
10856 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10857 fi
10858 fi
10859 ;;
10860
10861 amigaos*)
d58dead8
PG
10862 case $host_cpu in
10863 powerpc)
10864 # see comment about AmigaOS4 .so support
10865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10866 archive_expsym_cmds=''
10867 ;;
10868 m68k)
10869 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_minus_L=yes
10872 ;;
10873 esac
1cf3d07d
SE
10874 ;;
10875
10876 bsdi[45]*)
10877 export_dynamic_flag_spec=-rdynamic
10878 ;;
10879
d58dead8 10880 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10881 # When not using gcc, we currently assume that we are using
10882 # Microsoft Visual C++.
10883 # hardcode_libdir_flag_spec is actually meaningless, as there is
10884 # no search path for DLLs.
10885 hardcode_libdir_flag_spec=' '
10886 allow_undefined_flag=unsupported
10887 # Tell ltmain to make .lib files, not .a files.
10888 libext=lib
10889 # Tell ltmain to make .dll files, not .so files.
10890 shrext_cmds=".dll"
10891 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10893 # The linker will automatically build a .lib file if we build a DLL.
10894 old_archive_from_new_cmds='true'
10895 # FIXME: Should let the user specify the lib program.
10896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10897 fix_srcfile_path='`cygpath -w "$srcfile"`'
10898 enable_shared_with_static_runtimes=yes
10899 ;;
10900
10901 darwin* | rhapsody*)
1cf3d07d 10902
d58dead8
PG
10903
10904 archive_cmds_need_lc=no
10905 hardcode_direct=no
10906 hardcode_automatic=yes
10907 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10908 if test "$lt_cv_ld_force_load" = "yes"; then
10909 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10910 else
10911 whole_archive_flag_spec=''
10912 fi
d58dead8
PG
10913 link_all_deplibs=yes
10914 allow_undefined_flag="$_lt_dar_allow_undefined"
10915 case $cc_basename in
10916 ifort*) _lt_dar_can_shared=yes ;;
10917 *) _lt_dar_can_shared=$GCC ;;
10918 esac
10919 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10920 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10923 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10924 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10925
10926 else
10927 ld_shlibs=no
10928 fi
10929
1cf3d07d
SE
10930 ;;
10931
10932 dgux*)
10933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10934 hardcode_libdir_flag_spec='-L$libdir'
10935 hardcode_shlibpath_var=no
10936 ;;
10937
1cf3d07d
SE
10938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10939 # support. Future versions do this automatically, but an explicit c++rt0.o
10940 # does not break anything, and helps significantly (at the cost of a little
10941 # extra space).
10942 freebsd2.2*)
10943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10944 hardcode_libdir_flag_spec='-R$libdir'
10945 hardcode_direct=yes
10946 hardcode_shlibpath_var=no
10947 ;;
10948
10949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10950 freebsd2.*)
1cf3d07d
SE
10951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_direct=yes
10953 hardcode_minus_L=yes
10954 hardcode_shlibpath_var=no
10955 ;;
10956
10957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10958 freebsd* | dragonfly*)
10959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10960 hardcode_libdir_flag_spec='-R$libdir'
10961 hardcode_direct=yes
10962 hardcode_shlibpath_var=no
10963 ;;
10964
10965 hpux9*)
10966 if test "$GCC" = yes; then
10967 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10968 else
10969 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10970 fi
10971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10972 hardcode_libdir_separator=:
10973 hardcode_direct=yes
10974
10975 # hardcode_minus_L: Not really in the search PATH,
10976 # but as the default location of the library.
10977 hardcode_minus_L=yes
10978 export_dynamic_flag_spec='${wl}-E'
10979 ;;
10980
10981 hpux10*)
43e02a8a 10982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10984 else
10985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10986 fi
10987 if test "$with_gnu_ld" = no; then
10988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10989 hardcode_libdir_flag_spec_ld='+b $libdir'
10990 hardcode_libdir_separator=:
10991 hardcode_direct=yes
10992 hardcode_direct_absolute=yes
10993 export_dynamic_flag_spec='${wl}-E'
10994 # hardcode_minus_L: Not really in the search PATH,
10995 # but as the default location of the library.
10996 hardcode_minus_L=yes
10997 fi
10998 ;;
10999
11000 hpux11*)
43e02a8a 11001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11002 case $host_cpu in
11003 hppa*64*)
4e4ba647 11004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11005 ;;
11006 ia64*)
d58dead8 11007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11008 ;;
11009 *)
11010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11011 ;;
11012 esac
11013 else
11014 case $host_cpu in
11015 hppa*64*)
4e4ba647 11016 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11017 ;;
11018 ia64*)
11019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11020 ;;
11021 *)
43e02a8a
RW
11022
11023 # Older versions of the 11.00 compiler do not understand -b yet
11024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11026$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 11027if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
11028 $as_echo_n "(cached) " >&6
11029else
11030 lt_cv_prog_compiler__b=no
11031 save_LDFLAGS="$LDFLAGS"
11032 LDFLAGS="$LDFLAGS -b"
11033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11035 # The linker can only warn and ignore the option if not recognized
11036 # So say no if there are warnings
11037 if test -s conftest.err; then
11038 # Append any errors to the config.log.
11039 cat conftest.err 1>&5
11040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11042 if diff conftest.exp conftest.er2 >/dev/null; then
11043 lt_cv_prog_compiler__b=yes
11044 fi
11045 else
11046 lt_cv_prog_compiler__b=yes
11047 fi
11048 fi
11049 $RM -r conftest*
11050 LDFLAGS="$save_LDFLAGS"
11051
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11054$as_echo "$lt_cv_prog_compiler__b" >&6; }
11055
11056if test x"$lt_cv_prog_compiler__b" = xyes; then
11057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11058else
11059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11060fi
11061
1cf3d07d
SE
11062 ;;
11063 esac
11064 fi
11065 if test "$with_gnu_ld" = no; then
11066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11067 hardcode_libdir_separator=:
11068
11069 case $host_cpu in
11070 hppa*64*|ia64*)
11071 hardcode_direct=no
11072 hardcode_shlibpath_var=no
11073 ;;
11074 *)
11075 hardcode_direct=yes
11076 hardcode_direct_absolute=yes
11077 export_dynamic_flag_spec='${wl}-E'
11078
11079 # hardcode_minus_L: Not really in the search PATH,
11080 # but as the default location of the library.
11081 hardcode_minus_L=yes
11082 ;;
11083 esac
11084 fi
11085 ;;
11086
11087 irix5* | irix6* | nonstopux*)
11088 if test "$GCC" = yes; then
43e02a8a 11089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11090 # Try to use the -exported_symbol ld option, if it does not
11091 # work, assume that -exports_file does not work either and
11092 # implicitly export all symbols.
11093 save_LDFLAGS="$LDFLAGS"
11094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11095 if test x$gcc_no_link = xyes; then
22e05272 11096 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11097fi
5213506e
RW
11098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099/* end confdefs.h. */
1cf3d07d
SE
11100int foo(void) {}
11101_ACEOF
5213506e 11102if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 11104
1cf3d07d 11105fi
5213506e
RW
11106rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11108 LDFLAGS="$save_LDFLAGS"
11109 else
43e02a8a
RW
11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
11112 fi
11113 archive_cmds_need_lc='no'
11114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11115 hardcode_libdir_separator=:
11116 inherit_rpath=yes
11117 link_all_deplibs=yes
11118 ;;
11119
11120 netbsd*)
11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11123 else
11124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11125 fi
11126 hardcode_libdir_flag_spec='-R$libdir'
11127 hardcode_direct=yes
11128 hardcode_shlibpath_var=no
11129 ;;
11130
11131 newsos6)
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_direct=yes
11134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator=:
11136 hardcode_shlibpath_var=no
11137 ;;
11138
11139 *nto* | *qnx*)
11140 ;;
11141
11142 openbsd*)
d58dead8
PG
11143 if test -f /usr/libexec/ld.so; then
11144 hardcode_direct=yes
11145 hardcode_shlibpath_var=no
11146 hardcode_direct_absolute=yes
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 11149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
11151 export_dynamic_flag_spec='${wl}-E'
11152 else
11153 case $host_os in
11154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_libdir_flag_spec='-R$libdir'
11157 ;;
11158 *)
11159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11161 ;;
11162 esac
11163 fi
11164 else
11165 ld_shlibs=no
1cf3d07d
SE
11166 fi
11167 ;;
11168
11169 os2*)
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_minus_L=yes
11172 allow_undefined_flag=unsupported
43e02a8a 11173 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
11174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11175 ;;
11176
11177 osf3*)
11178 if test "$GCC" = yes; then
11179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11180 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11181 else
11182 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11183 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11184 fi
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11187 hardcode_libdir_separator=:
11188 ;;
11189
11190 osf4* | osf5*) # as osf3* with the addition of -msym flag
11191 if test "$GCC" = yes; then
11192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11193 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11195 else
11196 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11197 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 11198 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 11199 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
11200
11201 # Both c and cxx compiler support -rpath directly
11202 hardcode_libdir_flag_spec='-rpath $libdir'
11203 fi
11204 archive_cmds_need_lc='no'
11205 hardcode_libdir_separator=:
11206 ;;
11207
11208 solaris*)
11209 no_undefined_flag=' -z defs'
11210 if test "$GCC" = yes; then
11211 wlarc='${wl}'
11212 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11215 else
11216 case `$CC -V 2>&1` in
11217 *"Compilers 5.0"*)
11218 wlarc=''
11219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11222 ;;
11223 *)
11224 wlarc='${wl}'
11225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11228 ;;
11229 esac
11230 fi
11231 hardcode_libdir_flag_spec='-R$libdir'
11232 hardcode_shlibpath_var=no
11233 case $host_os in
11234 solaris2.[0-5] | solaris2.[0-5].*) ;;
11235 *)
11236 # The compiler driver will combine and reorder linker options,
11237 # but understands `-z linker_flag'. GCC discards it without `$wl',
11238 # but is careful enough not to reorder.
11239 # Supported since Solaris 2.6 (maybe 2.5.1?)
11240 if test "$GCC" = yes; then
11241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11242 else
11243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11244 fi
11245 ;;
11246 esac
11247 link_all_deplibs=yes
11248 ;;
11249
11250 sunos4*)
11251 if test "x$host_vendor" = xsequent; then
11252 # Use $CC to link under sequent, because it throws in some extra .o
11253 # files that make .init and .fini sections work.
11254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11255 else
11256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11257 fi
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 hardcode_direct=yes
11260 hardcode_minus_L=yes
11261 hardcode_shlibpath_var=no
11262 ;;
11263
11264 sysv4)
11265 case $host_vendor in
11266 sni)
11267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268 hardcode_direct=yes # is this really true???
11269 ;;
11270 siemens)
11271 ## LD is ld it makes a PLAMLIB
11272 ## CC just makes a GrossModule.
11273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11274 reload_cmds='$CC -r -o $output$reload_objs'
11275 hardcode_direct=no
11276 ;;
11277 motorola)
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11280 ;;
11281 esac
11282 runpath_var='LD_RUN_PATH'
11283 hardcode_shlibpath_var=no
11284 ;;
11285
11286 sysv4.3*)
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_shlibpath_var=no
11289 export_dynamic_flag_spec='-Bexport'
11290 ;;
11291
11292 sysv4*MP*)
11293 if test -d /usr/nec; then
11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295 hardcode_shlibpath_var=no
11296 runpath_var=LD_RUN_PATH
11297 hardcode_runpath_var=yes
11298 ld_shlibs=yes
11299 fi
11300 ;;
11301
11302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303 no_undefined_flag='${wl}-z,text'
11304 archive_cmds_need_lc=no
11305 hardcode_shlibpath_var=no
11306 runpath_var='LD_RUN_PATH'
11307
11308 if test "$GCC" = yes; then
11309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 else
11312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 fi
11315 ;;
11316
11317 sysv5* | sco3.2v5* | sco5v6*)
11318 # Note: We can NOT use -z defs as we might desire, because we do not
11319 # link with -lc, and that would cause any symbols used from libc to
11320 # always be unresolved, which means just about no library would
11321 # ever link correctly. If we're not using GNU ld we use -z text
11322 # though, which does catch some bad symbols but isn't as heavy-handed
11323 # as -z defs.
11324 no_undefined_flag='${wl}-z,text'
11325 allow_undefined_flag='${wl}-z,nodefs'
11326 archive_cmds_need_lc=no
11327 hardcode_shlibpath_var=no
11328 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11329 hardcode_libdir_separator=':'
11330 link_all_deplibs=yes
11331 export_dynamic_flag_spec='${wl}-Bexport'
11332 runpath_var='LD_RUN_PATH'
11333
11334 if test "$GCC" = yes; then
11335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 else
11338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340 fi
11341 ;;
11342
11343 uts4*)
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_shlibpath_var=no
11347 ;;
11348
11349 *)
11350 ld_shlibs=no
11351 ;;
11352 esac
11353
11354 if test x$host_vendor = xsni; then
11355 case $host in
11356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11357 export_dynamic_flag_spec='${wl}-Blargedynsym'
11358 ;;
11359 esac
11360 fi
11361 fi
11362
5213506e
RW
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11364$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11365test "$ld_shlibs" = no && can_build_shared=no
11366
11367with_gnu_ld=$with_gnu_ld
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383#
11384# Do we need to explicitly link libc?
11385#
11386case "x$archive_cmds_need_lc" in
11387x|xyes)
11388 # Assume -lc should be added
11389 archive_cmds_need_lc=yes
11390
11391 if test "$enable_shared" = yes && test "$GCC" = yes; then
11392 case $archive_cmds in
11393 *'~'*)
11394 # FIXME: we may have to deal with multi-command sequences.
11395 ;;
11396 '$CC '*)
11397 # Test whether the compiler implicitly links with -lc since on some
11398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11399 # to ld, don't add -lc before -lgcc.
5213506e
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11401$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11402if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 11403 $as_echo_n "(cached) " >&6
baafc534
RW
11404else
11405 $RM conftest*
11406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11407
5213506e 11408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11409 (eval $ac_compile) 2>&5
11410 ac_status=$?
5213506e
RW
11411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11413 soname=conftest
11414 lib=conftest
11415 libobjs=conftest.$ac_objext
11416 deplibs=
11417 wl=$lt_prog_compiler_wl
11418 pic_flag=$lt_prog_compiler_pic
11419 compiler_flags=-v
11420 linker_flags=-v
11421 verstring=
11422 output_objdir=.
11423 libname=conftest
11424 lt_save_allow_undefined_flag=$allow_undefined_flag
11425 allow_undefined_flag=
5213506e 11426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11428 ac_status=$?
5213506e
RW
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; }
baafc534
RW
11431 then
11432 lt_cv_archive_cmds_need_lc=no
11433 else
11434 lt_cv_archive_cmds_need_lc=yes
11435 fi
11436 allow_undefined_flag=$lt_save_allow_undefined_flag
11437 else
11438 cat conftest.err 1>&5
11439 fi
11440 $RM conftest*
11441
11442fi
5213506e
RW
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11444$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11446 ;;
11447 esac
11448 fi
11449 ;;
11450esac
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
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
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11610
11611if test "$GCC" = yes; then
1cf3d07d
SE
11612 case $host_os in
11613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11614 *) lt_awk_arg="/^libraries:/" ;;
11615 esac
43e02a8a
RW
11616 case $host_os in
11617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11618 *) lt_sed_strip_eq="s,=/,/,g" ;;
11619 esac
11620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621 case $lt_search_path_spec in
11622 *\;*)
1cf3d07d
SE
11623 # if the path contains ";" then we assume it to be the separator
11624 # otherwise default to the standard path separator (i.e. ":") - it is
11625 # assumed that no part of a normal pathname contains ";" but that should
11626 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11628 ;;
11629 *)
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11631 ;;
11632 esac
1cf3d07d
SE
11633 # Ok, now we have the path, separated by spaces, we can step through it
11634 # and add multilib dir if necessary.
11635 lt_tmp_lt_search_path_spec=
11636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637 for lt_sys_path in $lt_search_path_spec; do
11638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11640 else
11641 test -d "$lt_sys_path" && \
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11643 fi
11644 done
43e02a8a 11645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11646BEGIN {RS=" "; FS="/|\n";} {
11647 lt_foo="";
11648 lt_count=0;
11649 for (lt_i = NF; lt_i > 0; lt_i--) {
11650 if ($lt_i != "" && $lt_i != ".") {
11651 if ($lt_i == "..") {
11652 lt_count++;
11653 } else {
11654 if (lt_count == 0) {
11655 lt_foo="/" $lt_i lt_foo;
11656 } else {
11657 lt_count--;
11658 }
11659 }
11660 }
11661 }
11662 if (lt_foo != "") { lt_freq[lt_foo]++; }
11663 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11664}'`
43e02a8a
RW
11665 # AWK program above erroneously prepends '/' to C:/dos/paths
11666 # for these hosts.
11667 case $host_os in
11668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11669 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11670 esac
11671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11672else
11673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11674fi
11675library_names_spec=
11676libname_spec='lib$name'
11677soname_spec=
11678shrext_cmds=".so"
11679postinstall_cmds=
11680postuninstall_cmds=
11681finish_cmds=
11682finish_eval=
11683shlibpath_var=
11684shlibpath_overrides_runpath=unknown
11685version_type=none
11686dynamic_linker="$host_os ld.so"
11687sys_lib_dlsearch_path_spec="/lib /usr/lib"
11688need_lib_prefix=unknown
11689hardcode_into_libs=no
11690
11691# when you set need_version to no, make sure it does not cause -set_version
11692# flags to be left without arguments
11693need_version=unknown
11694
11695case $host_os in
11696aix3*)
11697 version_type=linux
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11699 shlibpath_var=LIBPATH
11700
11701 # AIX 3 has no versioning support, so we append a major version to the name.
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 ;;
11704
4f6bebc3 11705aix[4-9]*)
1cf3d07d
SE
11706 version_type=linux
11707 need_lib_prefix=no
11708 need_version=no
11709 hardcode_into_libs=yes
11710 if test "$host_cpu" = ia64; then
11711 # AIX 5 supports IA64
11712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 else
11715 # With GCC up to 2.95.x, collect2 would create an import file
11716 # for dependence libraries. The import file would start with
11717 # the line `#! .'. This would cause the generated library to
11718 # depend on `.', always an invalid library. This was fixed in
11719 # development snapshots of GCC prior to 3.0.
11720 case $host_os in
11721 aix4 | aix4.[01] | aix4.[01].*)
11722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723 echo ' yes '
11724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11725 :
11726 else
11727 can_build_shared=no
11728 fi
11729 ;;
11730 esac
11731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11732 # soname into executable. Probably we can add versioning support to
11733 # collect2, so additional links can be useful in future.
11734 if test "$aix_use_runtimelinking" = yes; then
11735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11736 # instead of lib<name>.a to let people know that these are not
11737 # typical AIX shared libraries.
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 else
11740 # We preserve .a as extension for shared libraries through AIX4.2
11741 # and later when we are not doing run time linking.
11742 library_names_spec='${libname}${release}.a $libname.a'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 fi
11745 shlibpath_var=LIBPATH
11746 fi
11747 ;;
11748
11749amigaos*)
d58dead8
PG
11750 case $host_cpu in
11751 powerpc)
11752 # Since July 2007 AmigaOS4 officially supports .so libraries.
11753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 ;;
11756 m68k)
1cf3d07d
SE
11757 library_names_spec='$libname.ixlibrary $libname.a'
11758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11759 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
11760 ;;
11761 esac
1cf3d07d
SE
11762 ;;
11763
11764beos*)
11765 library_names_spec='${libname}${shared_ext}'
11766 dynamic_linker="$host_os ld.so"
11767 shlibpath_var=LIBRARY_PATH
11768 ;;
11769
11770bsdi[45]*)
11771 version_type=linux
11772 need_version=no
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11779 # the default ld.so.conf also contains /usr/contrib/lib and
11780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11781 # libtool to hard-code these into programs
11782 ;;
11783
d58dead8 11784cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11785 version_type=windows
11786 shrext_cmds=".dll"
11787 need_version=no
11788 need_lib_prefix=no
11789
d58dead8
PG
11790 case $GCC,$host_os in
11791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11792 library_names_spec='$libname.dll.a'
11793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11794 postinstall_cmds='base_file=`basename \${file}`~
11795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11796 dldir=$destdir/`dirname \$dlpath`~
11797 test -d \$dldir || mkdir -p \$dldir~
11798 $install_prog $dir/$dlname \$dldir/$dlname~
11799 chmod a+x \$dldir/$dlname~
11800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11802 fi'
11803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11804 dlpath=$dir/\$dldll~
11805 $RM \$dlpath'
11806 shlibpath_overrides_runpath=yes
11807
11808 case $host_os in
11809 cygwin*)
11810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11812
11813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11814 ;;
d58dead8 11815 mingw* | cegcc*)
1cf3d07d
SE
11816 # MinGW DLLs use traditional 'lib' prefix
11817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11818 ;;
11819 pw32*)
11820 # pw32 DLLs use 'pw' prefix rather than 'lib'
11821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11822 ;;
11823 esac
11824 ;;
11825
11826 *)
11827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11828 ;;
11829 esac
11830 dynamic_linker='Win32 ld.exe'
11831 # FIXME: first we should search . and the directory the executable is in
11832 shlibpath_var=PATH
11833 ;;
11834
11835darwin* | rhapsody*)
11836 dynamic_linker="$host_os dyld"
11837 version_type=darwin
11838 need_lib_prefix=no
11839 need_version=no
11840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11841 soname_spec='${libname}${release}${major}$shared_ext'
11842 shlibpath_overrides_runpath=yes
11843 shlibpath_var=DYLD_LIBRARY_PATH
11844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11845
11846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11848 ;;
11849
11850dgux*)
11851 version_type=linux
11852 need_lib_prefix=no
11853 need_version=no
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 ;;
11858
1cf3d07d
SE
11859freebsd* | dragonfly*)
11860 # DragonFly does not have aout. When/if they implement a new
11861 # versioning mechanism, adjust this.
11862 if test -x /usr/bin/objformat; then
11863 objformat=`/usr/bin/objformat`
11864 else
11865 case $host_os in
c6084f68 11866 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11867 *) objformat=elf ;;
11868 esac
11869 fi
11870 version_type=freebsd-$objformat
11871 case $version_type in
11872 freebsd-elf*)
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11874 need_version=no
11875 need_lib_prefix=no
11876 ;;
11877 freebsd-*)
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11879 need_version=yes
11880 ;;
11881 esac
11882 shlibpath_var=LD_LIBRARY_PATH
11883 case $host_os in
c6084f68 11884 freebsd2.*)
1cf3d07d
SE
11885 shlibpath_overrides_runpath=yes
11886 ;;
11887 freebsd3.[01]* | freebsdelf3.[01]*)
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11890 ;;
11891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11893 shlibpath_overrides_runpath=no
11894 hardcode_into_libs=yes
11895 ;;
11896 *) # from 4.6 on, and DragonFly
11897 shlibpath_overrides_runpath=yes
11898 hardcode_into_libs=yes
11899 ;;
11900 esac
11901 ;;
11902
43e02a8a
RW
11903haiku*)
11904 version_type=linux
11905 need_lib_prefix=no
11906 need_version=no
11907 dynamic_linker="$host_os runtime_loader"
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11913 hardcode_into_libs=yes
11914 ;;
11915
1cf3d07d
SE
11916hpux9* | hpux10* | hpux11*)
11917 # Give a soname corresponding to the major version so that dld.sl refuses to
11918 # link against other versions.
11919 version_type=sunos
11920 need_lib_prefix=no
11921 need_version=no
11922 case $host_cpu in
11923 ia64*)
11924 shrext_cmds='.so'
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.so"
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 if test "X$HPUX_IA64_MODE" = X32; then
11932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933 else
11934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11935 fi
11936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937 ;;
11938 hppa*64*)
11939 shrext_cmds='.sl'
11940 hardcode_into_libs=yes
11941 dynamic_linker="$host_os dld.sl"
11942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 soname_spec='${libname}${release}${shared_ext}$major'
11946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948 ;;
11949 *)
11950 shrext_cmds='.sl'
11951 dynamic_linker="$host_os dld.sl"
11952 shlibpath_var=SHLIB_PATH
11953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec='${libname}${release}${shared_ext}$major'
11956 ;;
11957 esac
43e02a8a 11958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11959 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11960 # or fails outright, so override atomically:
11961 install_override_mode=555
1cf3d07d
SE
11962 ;;
11963
11964interix[3-9]*)
11965 version_type=linux
11966 need_lib_prefix=no
11967 need_version=no
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=no
11973 hardcode_into_libs=yes
11974 ;;
11975
11976irix5* | irix6* | nonstopux*)
11977 case $host_os in
11978 nonstopux*) version_type=nonstopux ;;
11979 *)
11980 if test "$lt_cv_prog_gnu_ld" = yes; then
11981 version_type=linux
11982 else
11983 version_type=irix
11984 fi ;;
11985 esac
11986 need_lib_prefix=no
11987 need_version=no
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11990 case $host_os in
11991 irix5* | nonstopux*)
11992 libsuff= shlibsuff=
11993 ;;
11994 *)
11995 case $LD in # libtool.m4 will add one of these switches to LD
11996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11997 libsuff= shlibsuff= libmagic=32-bit;;
11998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11999 libsuff=32 shlibsuff=N32 libmagic=N32;;
12000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12002 *) libsuff= shlibsuff= libmagic=never-match;;
12003 esac
12004 ;;
12005 esac
12006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12007 shlibpath_overrides_runpath=no
12008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12010 hardcode_into_libs=yes
12011 ;;
12012
12013# No shared lib support for Linux oldld, aout, or coff.
12014linux*oldld* | linux*aout* | linux*coff*)
12015 dynamic_linker=no
12016 ;;
12017
12018# This must be Linux ELF.
e9085da5
MR
12019
12020# uclinux* changes (here and below) have been submitted to the libtool
12021# project, but have not yet been accepted: they are GCC-local changes
12022# for the time being. (See
12023# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 12024linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
12025 version_type=linux
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
baafc534 12033
1cf3d07d 12034 # Some binutils ld are patched to set DT_RUNPATH
22e05272 12035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 12036 $as_echo_n "(cached) " >&6
baafc534
RW
12037else
12038 lt_cv_shlibpath_overrides_runpath=no
12039 save_LDFLAGS=$LDFLAGS
12040 save_libdir=$libdir
12041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12043 if test x$gcc_no_link = xyes; then
22e05272 12044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12045fi
5213506e 12046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12047/* end confdefs.h. */
12048
12049int
12050main ()
12051{
12052
12053 ;
12054 return 0;
12055}
12056_ACEOF
5213506e
RW
12057if ac_fn_c_try_link "$LINENO"; then :
12058 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12059 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 12060fi
1cf3d07d 12061fi
5213506e
RW
12062rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12064 LDFLAGS=$save_LDFLAGS
12065 libdir=$save_libdir
12066
12067fi
12068
12069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
12070
12071 # This implies no fast_install, which is unacceptable.
12072 # Some rework will be needed to allow for fast_install
12073 # before this can be enabled.
12074 hardcode_into_libs=yes
12075
12076 # Append ld.so.conf contents to the search path
12077 if test -f /etc/ld.so.conf; then
43e02a8a 12078 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
12079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12080 fi
12081
12082 # We used to test for /lib/ld.so.1 and disable shared libraries on
12083 # powerpc, because MkLinux only supported shared libraries with the
12084 # GNU dynamic linker. Since this was broken with cross compilers,
12085 # most powerpc-linux boxes support dynamic linking these days and
12086 # people can always --disable-shared, the test was removed, and we
12087 # assume the GNU/Linux dynamic linker is in use.
12088 dynamic_linker='GNU/Linux ld.so'
12089 ;;
12090
12091netbsd*)
12092 version_type=sunos
12093 need_lib_prefix=no
12094 need_version=no
12095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12098 dynamic_linker='NetBSD (a.out) ld.so'
12099 else
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 dynamic_linker='NetBSD ld.elf_so'
12103 fi
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12107 ;;
12108
12109newsos6)
12110 version_type=linux
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes
12114 ;;
12115
12116*nto* | *qnx*)
12117 version_type=qnx
12118 need_lib_prefix=no
12119 need_version=no
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=no
12124 hardcode_into_libs=yes
12125 dynamic_linker='ldqnx.so'
12126 ;;
12127
12128openbsd*)
12129 version_type=sunos
12130 sys_lib_dlsearch_path_spec="/usr/lib"
12131 need_lib_prefix=no
12132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12133 case $host_os in
12134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12135 *) need_version=no ;;
12136 esac
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12141 case $host_os in
12142 openbsd2.[89] | openbsd2.[89].*)
12143 shlibpath_overrides_runpath=no
12144 ;;
12145 *)
12146 shlibpath_overrides_runpath=yes
12147 ;;
12148 esac
12149 else
12150 shlibpath_overrides_runpath=yes
12151 fi
12152 ;;
12153
12154os2*)
12155 libname_spec='$name'
12156 shrext_cmds=".dll"
12157 need_lib_prefix=no
12158 library_names_spec='$libname${shared_ext} $libname.a'
12159 dynamic_linker='OS/2 ld.exe'
12160 shlibpath_var=LIBPATH
12161 ;;
12162
12163osf3* | osf4* | osf5*)
12164 version_type=osf
12165 need_lib_prefix=no
12166 need_version=no
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12172 ;;
12173
12174rdos*)
12175 dynamic_linker=no
12176 ;;
12177
12178solaris*)
12179 version_type=linux
12180 need_lib_prefix=no
12181 need_version=no
12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12183 soname_spec='${libname}${release}${shared_ext}$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 shlibpath_overrides_runpath=yes
12186 hardcode_into_libs=yes
12187 # ldd complains unless libraries are executable
12188 postinstall_cmds='chmod +x $lib'
12189 ;;
12190
12191sunos4*)
12192 version_type=sunos
12193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes
12197 if test "$with_gnu_ld" = yes; then
12198 need_lib_prefix=no
12199 fi
12200 need_version=yes
12201 ;;
12202
12203sysv4 | sysv4.3*)
12204 version_type=linux
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 case $host_vendor in
12209 sni)
12210 shlibpath_overrides_runpath=no
12211 need_lib_prefix=no
12212 runpath_var=LD_RUN_PATH
12213 ;;
12214 siemens)
12215 need_lib_prefix=no
12216 ;;
12217 motorola)
12218 need_lib_prefix=no
12219 need_version=no
12220 shlibpath_overrides_runpath=no
12221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12222 ;;
12223 esac
12224 ;;
12225
12226sysv4*MP*)
12227 if test -d /usr/nec ;then
12228 version_type=linux
12229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12230 soname_spec='$libname${shared_ext}.$major'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 fi
12233 ;;
12234
12235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12236 version_type=freebsd-elf
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes
12243 hardcode_into_libs=yes
12244 if test "$with_gnu_ld" = yes; then
12245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12246 else
12247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12248 case $host_os in
12249 sco3.2v5*)
12250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12251 ;;
12252 esac
12253 fi
12254 sys_lib_dlsearch_path_spec='/usr/lib'
12255 ;;
12256
12257tpf*)
12258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12259 version_type=linux
12260 need_lib_prefix=no
12261 need_version=no
d58dead8 12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 ;;
12267
12268uts4*)
12269 version_type=linux
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 ;;
12274
12275*)
12276 dynamic_linker=no
12277 ;;
12278esac
5213506e
RW
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12280$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
12281test "$dynamic_linker" = no && can_build_shared=no
12282
12283variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12284if test "$GCC" = yes; then
12285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12286fi
12287
d58dead8
PG
12288if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12290fi
12291if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12293fi
12294
1cf3d07d
SE
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
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
43e02a8a
RW
12375
12376
12377
12378
12379
1cf3d07d
SE
12380
12381
12382
12383
12384
12385
5213506e
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12387$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12388hardcode_action=
12389if test -n "$hardcode_libdir_flag_spec" ||
12390 test -n "$runpath_var" ||
12391 test "X$hardcode_automatic" = "Xyes" ; then
12392
12393 # We can hardcode non-existent directories.
12394 if test "$hardcode_direct" != no &&
12395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12396 # have to relink, otherwise we might link with an installed library
12397 # when we should be linking with a yet-to-be-installed one
12398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12399 test "$hardcode_minus_L" != no; then
12400 # Linking always hardcodes the temporary library directory.
12401 hardcode_action=relink
12402 else
12403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12404 hardcode_action=immediate
12405 fi
12406else
12407 # We cannot hardcode anything, or else we can only hardcode existing
12408 # directories.
12409 hardcode_action=unsupported
12410fi
5213506e
RW
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12412$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12413
12414if test "$hardcode_action" = relink ||
12415 test "$inherit_rpath" = yes; then
12416 # Fast installation is not supported
12417 enable_fast_install=no
12418elif test "$shlibpath_overrides_runpath" = yes ||
12419 test "$enable_shared" = no; then
12420 # Fast installation is not necessary
12421 enable_fast_install=needless
12422fi
12423
12424
12425
12426
12427
12428
12429 if test "x$enable_dlopen" != xyes; then
12430 enable_dlopen=unknown
12431 enable_dlopen_self=unknown
12432 enable_dlopen_self_static=unknown
12433else
12434 lt_cv_dlopen=no
12435 lt_cv_dlopen_libs=
12436
12437 case $host_os in
12438 beos*)
12439 lt_cv_dlopen="load_add_on"
12440 lt_cv_dlopen_libs=
12441 lt_cv_dlopen_self=yes
12442 ;;
12443
d58dead8 12444 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12445 lt_cv_dlopen="LoadLibrary"
12446 lt_cv_dlopen_libs=
12447 ;;
12448
12449 cygwin*)
12450 lt_cv_dlopen="dlopen"
12451 lt_cv_dlopen_libs=
12452 ;;
12453
12454 darwin*)
12455 # if libdl is installed we need to link against it
5213506e
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12457$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12458if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12459 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12460else
12461 ac_check_lib_save_LIBS=$LIBS
12462LIBS="-ldl $LIBS"
12463if test x$gcc_no_link = xyes; then
22e05272 12464 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12465fi
5213506e 12466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12467/* end confdefs.h. */
12468
5213506e
RW
12469/* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12472#ifdef __cplusplus
12473extern "C"
12474#endif
1cf3d07d
SE
12475char dlopen ();
12476int
12477main ()
12478{
5213506e 12479return dlopen ();
1cf3d07d
SE
12480 ;
12481 return 0;
12482}
12483_ACEOF
5213506e 12484if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12485 ac_cv_lib_dl_dlopen=yes
12486else
5213506e 12487 ac_cv_lib_dl_dlopen=no
1cf3d07d 12488fi
5213506e
RW
12489rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12491LIBS=$ac_check_lib_save_LIBS
12492fi
5213506e
RW
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12495if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12497else
12498
12499 lt_cv_dlopen="dyld"
12500 lt_cv_dlopen_libs=
12501 lt_cv_dlopen_self=yes
12502
12503fi
12504
12505 ;;
12506
12507 *)
5213506e 12508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12509if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
12510 lt_cv_dlopen="shl_load"
12511else
5213506e
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12513$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12514if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 12515 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12516else
12517 ac_check_lib_save_LIBS=$LIBS
12518LIBS="-ldld $LIBS"
12519if test x$gcc_no_link = xyes; then
22e05272 12520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12521fi
5213506e 12522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12523/* end confdefs.h. */
12524
5213506e
RW
12525/* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12528#ifdef __cplusplus
12529extern "C"
12530#endif
1cf3d07d
SE
12531char shl_load ();
12532int
12533main ()
12534{
5213506e 12535return shl_load ();
1cf3d07d
SE
12536 ;
12537 return 0;
12538}
12539_ACEOF
5213506e 12540if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12541 ac_cv_lib_dld_shl_load=yes
12542else
5213506e 12543 ac_cv_lib_dld_shl_load=no
1cf3d07d 12544fi
5213506e
RW
12545rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12547LIBS=$ac_check_lib_save_LIBS
12548fi
5213506e
RW
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12550$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12551if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d58dead8 12552 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12553else
5213506e 12554 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12555if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
12556 lt_cv_dlopen="dlopen"
12557else
5213506e
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12559$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12560if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12561 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12562else
12563 ac_check_lib_save_LIBS=$LIBS
12564LIBS="-ldl $LIBS"
12565if test x$gcc_no_link = xyes; then
22e05272 12566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12567fi
5213506e 12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12569/* end confdefs.h. */
12570
5213506e
RW
12571/* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12574#ifdef __cplusplus
12575extern "C"
12576#endif
1cf3d07d
SE
12577char dlopen ();
12578int
12579main ()
12580{
5213506e 12581return dlopen ();
1cf3d07d
SE
12582 ;
12583 return 0;
12584}
12585_ACEOF
5213506e 12586if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12587 ac_cv_lib_dl_dlopen=yes
12588else
5213506e 12589 ac_cv_lib_dl_dlopen=no
1cf3d07d 12590fi
5213506e
RW
12591rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12593LIBS=$ac_check_lib_save_LIBS
12594fi
5213506e
RW
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12596$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12597if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12599else
5213506e
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12601$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12602if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 12603 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12604else
12605 ac_check_lib_save_LIBS=$LIBS
12606LIBS="-lsvld $LIBS"
12607if test x$gcc_no_link = xyes; then
22e05272 12608 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12609fi
5213506e 12610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12611/* end confdefs.h. */
12612
5213506e
RW
12613/* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12616#ifdef __cplusplus
12617extern "C"
12618#endif
1cf3d07d
SE
12619char dlopen ();
12620int
12621main ()
12622{
5213506e 12623return dlopen ();
1cf3d07d
SE
12624 ;
12625 return 0;
12626}
12627_ACEOF
5213506e 12628if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12629 ac_cv_lib_svld_dlopen=yes
12630else
5213506e 12631 ac_cv_lib_svld_dlopen=no
1cf3d07d 12632fi
5213506e
RW
12633rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12635LIBS=$ac_check_lib_save_LIBS
12636fi
5213506e
RW
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12638$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12639if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
12640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12641else
5213506e
RW
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12643$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12644if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 12645 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12646else
12647 ac_check_lib_save_LIBS=$LIBS
12648LIBS="-ldld $LIBS"
12649if test x$gcc_no_link = xyes; then
22e05272 12650 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12651fi
5213506e 12652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12653/* end confdefs.h. */
12654
5213506e
RW
12655/* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12658#ifdef __cplusplus
12659extern "C"
12660#endif
1cf3d07d
SE
12661char dld_link ();
12662int
12663main ()
12664{
5213506e 12665return dld_link ();
1cf3d07d
SE
12666 ;
12667 return 0;
12668}
12669_ACEOF
5213506e 12670if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12671 ac_cv_lib_dld_dld_link=yes
12672else
5213506e 12673 ac_cv_lib_dld_dld_link=no
1cf3d07d 12674fi
5213506e
RW
12675rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12677LIBS=$ac_check_lib_save_LIBS
12678fi
5213506e
RW
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12680$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12681if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d58dead8 12682 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12683fi
12684
12685
12686fi
12687
12688
12689fi
12690
12691
12692fi
12693
12694
12695fi
12696
12697
12698fi
12699
12700 ;;
12701 esac
12702
12703 if test "x$lt_cv_dlopen" != xno; then
12704 enable_dlopen=yes
12705 else
12706 enable_dlopen=no
12707 fi
12708
12709 case $lt_cv_dlopen in
12710 dlopen)
12711 save_CPPFLAGS="$CPPFLAGS"
12712 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12713
12714 save_LDFLAGS="$LDFLAGS"
12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12716
12717 save_LIBS="$LIBS"
12718 LIBS="$lt_cv_dlopen_libs $LIBS"
12719
5213506e
RW
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12721$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12722if ${lt_cv_dlopen_self+:} false; then :
5213506e 12723 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12724else
12725 if test "$cross_compiling" = yes; then :
12726 lt_cv_dlopen_self=cross
12727else
12728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729 lt_status=$lt_dlunknown
12730 cat > conftest.$ac_ext <<_LT_EOF
9b025925 12731#line 12731 "configure"
1cf3d07d
SE
12732#include "confdefs.h"
12733
12734#if HAVE_DLFCN_H
12735#include <dlfcn.h>
12736#endif
12737
12738#include <stdio.h>
12739
12740#ifdef RTLD_GLOBAL
12741# define LT_DLGLOBAL RTLD_GLOBAL
12742#else
12743# ifdef DL_GLOBAL
12744# define LT_DLGLOBAL DL_GLOBAL
12745# else
12746# define LT_DLGLOBAL 0
12747# endif
12748#endif
12749
12750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751 find out it does not work in some platform. */
12752#ifndef LT_DLLAZY_OR_NOW
12753# ifdef RTLD_LAZY
12754# define LT_DLLAZY_OR_NOW RTLD_LAZY
12755# else
12756# ifdef DL_LAZY
12757# define LT_DLLAZY_OR_NOW DL_LAZY
12758# else
12759# ifdef RTLD_NOW
12760# define LT_DLLAZY_OR_NOW RTLD_NOW
12761# else
12762# ifdef DL_NOW
12763# define LT_DLLAZY_OR_NOW DL_NOW
12764# else
12765# define LT_DLLAZY_OR_NOW 0
12766# endif
12767# endif
12768# endif
12769# endif
12770#endif
12771
43e02a8a
RW
12772/* When -fvisbility=hidden is used, assume the code has been annotated
12773 correspondingly for the symbols needed. */
12774#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12775void fnord () __attribute__((visibility("default")));
12776#endif
12777
12778void fnord () { int i=42; }
1cf3d07d
SE
12779int main ()
12780{
12781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12782 int status = $lt_dlunknown;
12783
12784 if (self)
12785 {
12786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12787 else
12788 {
12789 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12790 else puts (dlerror ());
12791 }
1cf3d07d
SE
12792 /* dlclose (self); */
12793 }
12794 else
12795 puts (dlerror ());
12796
d58dead8 12797 return status;
1cf3d07d
SE
12798}
12799_LT_EOF
5213506e 12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12801 (eval $ac_link) 2>&5
12802 ac_status=$?
5213506e
RW
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12805 (./conftest; exit; ) >&5 2>/dev/null
12806 lt_status=$?
12807 case x$lt_status in
12808 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12809 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12810 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12811 esac
12812 else :
12813 # compilation failed
12814 lt_cv_dlopen_self=no
12815 fi
12816fi
12817rm -fr conftest*
12818
12819
12820fi
5213506e
RW
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12822$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12823
12824 if test "x$lt_cv_dlopen_self" = xyes; then
12825 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12827$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12828if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 12829 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12830else
12831 if test "$cross_compiling" = yes; then :
12832 lt_cv_dlopen_self_static=cross
12833else
12834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835 lt_status=$lt_dlunknown
12836 cat > conftest.$ac_ext <<_LT_EOF
9b025925 12837#line 12837 "configure"
1cf3d07d
SE
12838#include "confdefs.h"
12839
12840#if HAVE_DLFCN_H
12841#include <dlfcn.h>
12842#endif
12843
12844#include <stdio.h>
12845
12846#ifdef RTLD_GLOBAL
12847# define LT_DLGLOBAL RTLD_GLOBAL
12848#else
12849# ifdef DL_GLOBAL
12850# define LT_DLGLOBAL DL_GLOBAL
12851# else
12852# define LT_DLGLOBAL 0
12853# endif
12854#endif
12855
12856/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857 find out it does not work in some platform. */
12858#ifndef LT_DLLAZY_OR_NOW
12859# ifdef RTLD_LAZY
12860# define LT_DLLAZY_OR_NOW RTLD_LAZY
12861# else
12862# ifdef DL_LAZY
12863# define LT_DLLAZY_OR_NOW DL_LAZY
12864# else
12865# ifdef RTLD_NOW
12866# define LT_DLLAZY_OR_NOW RTLD_NOW
12867# else
12868# ifdef DL_NOW
12869# define LT_DLLAZY_OR_NOW DL_NOW
12870# else
12871# define LT_DLLAZY_OR_NOW 0
12872# endif
12873# endif
12874# endif
12875# endif
12876#endif
12877
43e02a8a
RW
12878/* When -fvisbility=hidden is used, assume the code has been annotated
12879 correspondingly for the symbols needed. */
12880#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12881void fnord () __attribute__((visibility("default")));
12882#endif
12883
12884void fnord () { int i=42; }
1cf3d07d
SE
12885int main ()
12886{
12887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12888 int status = $lt_dlunknown;
12889
12890 if (self)
12891 {
12892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12893 else
12894 {
12895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896 else puts (dlerror ());
12897 }
1cf3d07d
SE
12898 /* dlclose (self); */
12899 }
12900 else
12901 puts (dlerror ());
12902
d58dead8 12903 return status;
1cf3d07d
SE
12904}
12905_LT_EOF
5213506e 12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12907 (eval $ac_link) 2>&5
12908 ac_status=$?
5213506e
RW
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12911 (./conftest; exit; ) >&5 2>/dev/null
12912 lt_status=$?
12913 case x$lt_status in
12914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12916 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12917 esac
12918 else :
12919 # compilation failed
12920 lt_cv_dlopen_self_static=no
12921 fi
12922fi
12923rm -fr conftest*
12924
12925
12926fi
5213506e
RW
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12928$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12929 fi
12930
12931 CPPFLAGS="$save_CPPFLAGS"
12932 LDFLAGS="$save_LDFLAGS"
12933 LIBS="$save_LIBS"
12934 ;;
12935 esac
12936
12937 case $lt_cv_dlopen_self in
12938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12939 *) enable_dlopen_self=unknown ;;
12940 esac
12941
12942 case $lt_cv_dlopen_self_static in
12943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12944 *) enable_dlopen_self_static=unknown ;;
12945 esac
12946fi
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964striplib=
12965old_striplib=
5213506e
RW
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12967$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12968if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972$as_echo "yes" >&6; }
1cf3d07d
SE
12973else
12974# FIXME - insert some real tests, host_os isn't really good enough
12975 case $host_os in
12976 darwin*)
12977 if test -n "$STRIP" ; then
12978 striplib="$STRIP -x"
12979 old_striplib="$STRIP -S"
5213506e
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981$as_echo "yes" >&6; }
1cf3d07d 12982 else
5213506e
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984$as_echo "no" >&6; }
1cf3d07d
SE
12985 fi
12986 ;;
12987 *)
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
1cf3d07d
SE
12990 ;;
12991 esac
12992fi
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
43e02a8a
RW
13005 # Report which library types will actually be built
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13007$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13009$as_echo "$can_build_shared" >&6; }
1cf3d07d 13010
43e02a8a
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13012$as_echo_n "checking whether to build shared libraries... " >&6; }
13013 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 13014
43e02a8a
RW
13015 # On AIX, shared libraries and static libraries use the same namespace, and
13016 # are all built from PIC.
13017 case $host_os in
13018 aix3*)
13019 test "$enable_shared" = yes && enable_static=no
13020 if test -n "$RANLIB"; then
13021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13022 postinstall_cmds='$RANLIB $lib'
13023 fi
13024 ;;
1cf3d07d 13025
43e02a8a
RW
13026 aix[4-9]*)
13027 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13028 test "$enable_shared" = yes && enable_static=no
13029 fi
13030 ;;
13031 esac
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13033$as_echo "$enable_shared" >&6; }
1cf3d07d 13034
43e02a8a
RW
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13036$as_echo_n "checking whether to build static libraries... " >&6; }
13037 # Make sure either enable_shared or enable_static is yes.
13038 test "$enable_shared" = yes || enable_static=yes
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13040$as_echo "$enable_static" >&6; }
1cf3d07d 13041
1cf3d07d 13042
1cf3d07d 13043
1cf3d07d
SE
13044
13045fi
1cf3d07d
SE
13046ac_ext=c
13047ac_cpp='$CPP $CPPFLAGS'
13048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050ac_compiler_gnu=$ac_cv_c_compiler_gnu
13051
43e02a8a
RW
13052CC="$lt_save_CC"
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066 ac_config_commands="$ac_config_commands libtool"
13067
13068
13069
13070
13071# Only expand once:
13072
13073
9b025925
IS
13074LIBM=
13075case $host in
13076*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13077 # These system don't have libm, or don't need it
13078 ;;
13079*-ncr-sysv4.3*)
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13081$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13082if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084else
13085 ac_check_lib_save_LIBS=$LIBS
13086LIBS="-lmw $LIBS"
13087if test x$gcc_no_link = xyes; then
13088 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13089fi
13090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h. */
13092
13093/* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096#ifdef __cplusplus
13097extern "C"
13098#endif
13099char _mwvalidcheckl ();
13100int
13101main ()
13102{
13103return _mwvalidcheckl ();
13104 ;
13105 return 0;
13106}
13107_ACEOF
13108if ac_fn_c_try_link "$LINENO"; then :
13109 ac_cv_lib_mw__mwvalidcheckl=yes
13110else
13111 ac_cv_lib_mw__mwvalidcheckl=no
13112fi
13113rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115LIBS=$ac_check_lib_save_LIBS
13116fi
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13118$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13119if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13120 LIBM="-lmw"
13121fi
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13124$as_echo_n "checking for cos in -lm... " >&6; }
13125if ${ac_cv_lib_m_cos+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127else
13128 ac_check_lib_save_LIBS=$LIBS
13129LIBS="-lm $LIBS"
13130if test x$gcc_no_link = xyes; then
13131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13132fi
13133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h. */
13135
13136/* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139#ifdef __cplusplus
13140extern "C"
13141#endif
13142char cos ();
13143int
13144main ()
13145{
13146return cos ();
13147 ;
13148 return 0;
13149}
13150_ACEOF
13151if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_m_cos=yes
13153else
13154 ac_cv_lib_m_cos=no
13155fi
13156rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158LIBS=$ac_check_lib_save_LIBS
13159fi
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13161$as_echo "$ac_cv_lib_m_cos" >&6; }
13162if test "x$ac_cv_lib_m_cos" = xyes; then :
13163 LIBM="$LIBM -lm"
13164fi
13165
13166 ;;
13167*)
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13169$as_echo_n "checking for cos in -lm... " >&6; }
13170if ${ac_cv_lib_m_cos+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173 ac_check_lib_save_LIBS=$LIBS
13174LIBS="-lm $LIBS"
13175if test x$gcc_no_link = xyes; then
13176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13177fi
13178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181/* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187char cos ();
13188int
13189main ()
13190{
13191return cos ();
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_m_cos=yes
13198else
13199 ac_cv_lib_m_cos=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203LIBS=$ac_check_lib_save_LIBS
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13206$as_echo "$ac_cv_lib_m_cos" >&6; }
13207if test "x$ac_cv_lib_m_cos" = xyes; then :
13208 LIBM="-lm"
13209fi
13210
13211 ;;
13212esac
13213
13214
43e02a8a
RW
13215
13216
7de6ba7a
DK
13217
13218case $host in
13219 *-cygwin* | *-mingw*)
13220 # 'host' will be top-level target in the case of a target lib,
13221 # we must compare to with_cross_host to decide if this is a native
13222 # or cross-compiler and select where to install dlls appropriately.
13223 if test -n "$with_cross_host" &&
13224 test x"$with_cross_host" != x"no"; then
13225 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13226 else
13227 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13228 fi
13229 ;;
13230 *)
13231 lt_host_flags=
13232 ;;
13233esac
13234
13235
13236
13237
13238
43e02a8a 13239#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 13240
43e02a8a
RW
13241# We need gfortran to compile parts of the library
13242#AC_PROG_FC(gfortran)
13243FC="$GFORTRAN"
5213506e
RW
13244ac_ext=${ac_fc_srcext-f}
13245ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13246ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13247ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13248if test -n "$ac_tool_prefix"; then
43e02a8a 13249 for ac_prog in gfortran
1cf3d07d
SE
13250 do
13251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13255if ${ac_cv_prog_FC+:} false; then :
5213506e 13256 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13257else
13258 if test -n "$FC"; then
13259 ac_cv_prog_FC="$FC" # Let the user override the test.
13260else
13261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262for as_dir in $PATH
13263do
13264 IFS=$as_save_IFS
13265 test -z "$as_dir" && as_dir=.
5213506e 13266 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13268 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13270 break 2
13271 fi
13272done
5213506e
RW
13273 done
13274IFS=$as_save_IFS
1cf3d07d
SE
13275
13276fi
13277fi
13278FC=$ac_cv_prog_FC
13279if test -n "$FC"; then
5213506e
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13281$as_echo "$FC" >&6; }
1cf3d07d 13282else
5213506e
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
1cf3d07d
SE
13285fi
13286
5213506e 13287
1cf3d07d
SE
13288 test -n "$FC" && break
13289 done
13290fi
13291if test -z "$FC"; then
13292 ac_ct_FC=$FC
43e02a8a 13293 for ac_prog in gfortran
1cf3d07d
SE
13294do
13295 # Extract the first word of "$ac_prog", so it can be a program name with args.
13296set dummy $ac_prog; ac_word=$2
5213506e
RW
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13299if ${ac_cv_prog_ac_ct_FC+:} false; then :
5213506e 13300 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13301else
13302 if test -n "$ac_ct_FC"; then
13303 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13304else
13305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306for as_dir in $PATH
13307do
13308 IFS=$as_save_IFS
13309 test -z "$as_dir" && as_dir=.
5213506e 13310 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13312 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13314 break 2
13315 fi
13316done
5213506e
RW
13317 done
13318IFS=$as_save_IFS
1cf3d07d
SE
13319
13320fi
13321fi
13322ac_ct_FC=$ac_cv_prog_ac_ct_FC
13323if test -n "$ac_ct_FC"; then
5213506e
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13325$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 13326else
5213506e
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328$as_echo "no" >&6; }
1cf3d07d
SE
13329fi
13330
5213506e 13331
1cf3d07d 13332 test -n "$ac_ct_FC" && break
38d24731
RW
13333done
13334
5213506e
RW
13335 if test "x$ac_ct_FC" = x; then
13336 FC=""
13337 else
13338 case $cross_compiling:$ac_tool_warned in
13339yes:)
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342ac_tool_warned=yes ;;
13343esac
13344 FC=$ac_ct_FC
13345 fi
1cf3d07d
SE
13346fi
13347
13348
13349# Provide some information about the compiler.
5213506e
RW
13350$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13351set X $ac_compile
13352ac_compiler=$2
13353for ac_option in --version -v -V -qversion; do
13354 { { ac_try="$ac_compiler $ac_option >&5"
13355case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
13359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13360$as_echo "$ac_try_echo"; } >&5
13361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 13362 ac_status=$?
5213506e
RW
13363 if test -s conftest.err; then
13364 sed '10a\
13365... rest of stderr output deleted ...
13366 10q' conftest.err >conftest.er1
13367 cat conftest.er1 >&5
5213506e 13368 fi
22e05272 13369 rm -f conftest.er1 conftest.err
5213506e
RW
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }
13372done
1cf3d07d
SE
13373rm -f a.out
13374
13375# If we don't use `.F' as extension, the preprocessor is not run on the
13376# input file. (Note that this only needs to work for GNU compilers.)
13377ac_save_ext=$ac_ext
13378ac_ext=F
5213506e
RW
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13380$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
22e05272 13381if ${ac_cv_fc_compiler_gnu+:} false; then :
5213506e 13382 $as_echo_n "(cached) " >&6
1cf3d07d 13383else
5213506e 13384 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13385 program main
13386#ifndef __GNUC__
13387 choke me
13388#endif
13389
13390 end
13391_ACEOF
5213506e 13392if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13393 ac_compiler_gnu=yes
13394else
5213506e 13395 ac_compiler_gnu=no
1cf3d07d 13396fi
5213506e 13397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13398ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13399
13400fi
5213506e
RW
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13402$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 13403ac_ext=$ac_save_ext
5213506e
RW
13404ac_test_FCFLAGS=${FCFLAGS+set}
13405ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 13406FCFLAGS=
5213506e
RW
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13408$as_echo_n "checking whether $FC accepts -g... " >&6; }
22e05272 13409if ${ac_cv_prog_fc_g+:} false; then :
5213506e 13410 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13411else
13412 FCFLAGS=-g
5213506e 13413cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13414 program main
13415
13416 end
13417_ACEOF
5213506e 13418if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13419 ac_cv_prog_fc_g=yes
13420else
5213506e 13421 ac_cv_prog_fc_g=no
1cf3d07d 13422fi
5213506e 13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13424
13425fi
5213506e
RW
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13427$as_echo "$ac_cv_prog_fc_g" >&6; }
13428if test "$ac_test_FCFLAGS" = set; then
13429 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
13430elif test $ac_cv_prog_fc_g = yes; then
13431 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13432 FCFLAGS="-g -O2"
13433 else
13434 FCFLAGS="-g"
13435 fi
13436else
13437 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13438 FCFLAGS="-O2"
13439 else
13440 FCFLAGS=
13441 fi
13442fi
13443
22e05272
JM
13444if test $ac_compiler_gnu = yes; then
13445 GFC=yes
13446else
13447 GFC=
13448fi
1cf3d07d
SE
13449ac_ext=c
13450ac_cpp='$CPP $CPPFLAGS'
13451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
5213506e
RW
13455 ac_ext=${ac_fc_srcext-f}
13456ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13457ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13458ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13459
13460
43e02a8a
RW
13461if test -z "$FC" || test "X$FC" = "Xno"; then
13462 _lt_disable_FC=yes
13463fi
13464
1cf3d07d
SE
13465archive_cmds_need_lc_FC=no
13466allow_undefined_flag_FC=
13467always_export_symbols_FC=no
13468archive_expsym_cmds_FC=
13469export_dynamic_flag_spec_FC=
13470hardcode_direct_FC=no
13471hardcode_direct_absolute_FC=no
13472hardcode_libdir_flag_spec_FC=
13473hardcode_libdir_flag_spec_ld_FC=
13474hardcode_libdir_separator_FC=
13475hardcode_minus_L_FC=no
13476hardcode_automatic_FC=no
13477inherit_rpath_FC=no
13478module_cmds_FC=
13479module_expsym_cmds_FC=
13480link_all_deplibs_FC=unknown
13481old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13482reload_flag_FC=$reload_flag
13483reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13484no_undefined_flag_FC=
13485whole_archive_flag_spec_FC=
13486enable_shared_with_static_runtimes_FC=no
13487
13488# Source file extension for fc test sources.
13489ac_ext=${ac_fc_srcext-f}
13490
13491# Object file extension for compiled fc test sources.
13492objext=o
13493objext_FC=$objext
13494
13495# No sense in running all these tests if we already determined that
13496# the FC compiler isn't working. Some variables (like enable_shared)
13497# are currently assumed to apply to all compilers on this platform,
13498# and will be corrupted by setting them based on a non-working compiler.
13499if test "$_lt_disable_FC" != yes; then
13500 # Code to be used in simple compile tests
13501 lt_simple_compile_test_code="\
13502 subroutine t
13503 return
13504 end
13505"
13506
13507 # Code to be used in simple link tests
13508 lt_simple_link_test_code="\
13509 program t
13510 end
13511"
13512
13513 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13514
13515
13516
13517
13518
13519
13520# If no C compiler was specified, use CC.
13521LTCC=${LTCC-"$CC"}
13522
13523# If no C compiler flags were specified, use CFLAGS.
13524LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13525
13526# Allow CC to be a program name with arguments.
13527compiler=$CC
13528
13529
13530 # save warnings/boilerplate of simple test code
13531 ac_outfile=conftest.$ac_objext
13532echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13533eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13534_lt_compiler_boilerplate=`cat conftest.err`
13535$RM conftest*
13536
13537 ac_outfile=conftest.$ac_objext
13538echo "$lt_simple_link_test_code" >conftest.$ac_ext
13539eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13540_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13541$RM -r conftest*
1cf3d07d
SE
13542
13543
13544 # Allow CC to be a program name with arguments.
13545 lt_save_CC="$CC"
d58dead8 13546 lt_save_GCC=$GCC
1cf3d07d
SE
13547 CC=${FC-"f95"}
13548 compiler=$CC
d58dead8
PG
13549 GCC=$ac_cv_fc_compiler_gnu
13550
1cf3d07d
SE
13551 compiler_FC=$CC
13552 for cc_temp in $compiler""; do
13553 case $cc_temp in
13554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556 \-*) ;;
13557 *) break;;
13558 esac
13559done
43e02a8a 13560cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13561
13562
13563 if test -n "$compiler"; then
5213506e
RW
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13565$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13567$as_echo "$can_build_shared" >&6; }
1cf3d07d 13568
5213506e
RW
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13570$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13571 test "$can_build_shared" = "no" && enable_shared=no
13572
13573 # On AIX, shared libraries and static libraries use the same namespace, and
13574 # are all built from PIC.
13575 case $host_os in
13576 aix3*)
13577 test "$enable_shared" = yes && enable_static=no
13578 if test -n "$RANLIB"; then
13579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13580 postinstall_cmds='$RANLIB $lib'
13581 fi
13582 ;;
4f6bebc3 13583 aix[4-9]*)
1cf3d07d
SE
13584 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13585 test "$enable_shared" = yes && enable_static=no
13586 fi
13587 ;;
13588 esac
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13590$as_echo "$enable_shared" >&6; }
1cf3d07d 13591
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13593$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13594 # Make sure either enable_shared or enable_static is yes.
13595 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13597$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13598
13599 GCC_FC="$ac_cv_fc_compiler_gnu"
13600 LD_FC="$LD"
13601
13602 ## CAVEAT EMPTOR:
13603 ## There is no encapsulation within the following macros, do not change
13604 ## the running order or otherwise move them around unless you know exactly
13605 ## what you are doing...
13606 # Dependencies to place before and after the object being linked:
13607predep_objects_FC=
13608postdep_objects_FC=
13609predeps_FC=
13610postdeps_FC=
13611compiler_lib_search_path_FC=
13612
13613cat > conftest.$ac_ext <<_LT_EOF
13614 subroutine foo
13615 implicit none
13616 integer a
13617 a=0
13618 return
13619 end
13620_LT_EOF
13621
5213506e 13622if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
5213506e
RW
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
1cf3d07d
SE
13627 # Parse the compiler output and extract the necessary
13628 # objects, libraries and library flags.
13629
13630 # Sentinel used to keep track of whether or not we are before
13631 # the conftest object file.
13632 pre_test_object_deps_done=no
13633
d58dead8 13634 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13635 case $p in
13636
13637 -L* | -R* | -l*)
13638 # Some compilers place space between "-{L,R}" and the path.
13639 # Remove the space.
13640 if test $p = "-L" ||
13641 test $p = "-R"; then
13642 prev=$p
13643 continue
13644 else
13645 prev=
13646 fi
13647
13648 if test "$pre_test_object_deps_done" = no; then
13649 case $p in
13650 -L* | -R*)
13651 # Internal compiler library paths should come after those
13652 # provided the user. The postdeps already come after the
13653 # user supplied libs so there is no need to process them.
13654 if test -z "$compiler_lib_search_path_FC"; then
13655 compiler_lib_search_path_FC="${prev}${p}"
13656 else
13657 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13658 fi
13659 ;;
13660 # The "-l" case would never come before the object being
13661 # linked, so don't bother handling this case.
13662 esac
13663 else
13664 if test -z "$postdeps_FC"; then
13665 postdeps_FC="${prev}${p}"
13666 else
13667 postdeps_FC="${postdeps_FC} ${prev}${p}"
13668 fi
13669 fi
13670 ;;
13671
13672 *.$objext)
13673 # This assumes that the test object file only shows up
13674 # once in the compiler output.
13675 if test "$p" = "conftest.$objext"; then
13676 pre_test_object_deps_done=yes
13677 continue
13678 fi
13679
13680 if test "$pre_test_object_deps_done" = no; then
13681 if test -z "$predep_objects_FC"; then
13682 predep_objects_FC="$p"
13683 else
13684 predep_objects_FC="$predep_objects_FC $p"
13685 fi
13686 else
13687 if test -z "$postdep_objects_FC"; then
13688 postdep_objects_FC="$p"
13689 else
13690 postdep_objects_FC="$postdep_objects_FC $p"
13691 fi
13692 fi
13693 ;;
13694
13695 *) ;; # Ignore the rest.
13696
13697 esac
13698 done
13699
13700 # Clean up.
13701 rm -f a.out a.exe
13702else
13703 echo "libtool.m4: error: problem compiling FC test program"
13704fi
13705
13706$RM -f confest.$objext
13707
13708# PORTME: override above test on systems where it is broken
13709
13710
13711case " $postdeps_FC " in
13712*" -lc "*) archive_cmds_need_lc_FC=no ;;
13713esac
d58dead8
PG
13714 compiler_lib_search_dirs_FC=
13715if test -n "${compiler_lib_search_path_FC}"; then
13716 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13717fi
13718
13719
13720
13721
13722
1cf3d07d
SE
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749 lt_prog_compiler_wl_FC=
13750lt_prog_compiler_pic_FC=
13751lt_prog_compiler_static_FC=
13752
5213506e
RW
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13754$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13755
13756 if test "$GCC" = yes; then
13757 lt_prog_compiler_wl_FC='-Wl,'
13758 lt_prog_compiler_static_FC='-static'
13759
13760 case $host_os in
13761 aix*)
13762 # All AIX code is PIC.
13763 if test "$host_cpu" = ia64; then
13764 # AIX 5 now supports IA64 processor
13765 lt_prog_compiler_static_FC='-Bstatic'
13766 fi
bad8a4a7 13767 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13768 ;;
13769
13770 amigaos*)
d58dead8
PG
13771 case $host_cpu in
13772 powerpc)
13773 # see comment about AmigaOS4 .so support
13774 lt_prog_compiler_pic_FC='-fPIC'
13775 ;;
13776 m68k)
13777 # FIXME: we need at least 68020 code to build shared libraries, but
13778 # adding the `-m68020' flag to GCC prevents building anything better,
13779 # like `-m68040'.
13780 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13781 ;;
13782 esac
1cf3d07d
SE
13783 ;;
13784
13785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13786 # PIC is the default for these OSes.
13787 ;;
13788
d58dead8 13789 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13790 # This hack is so that the source file can tell whether it is being
13791 # built for inclusion in a dll (and should export symbols for example).
13792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13793 # (--disable-auto-import) libraries
13794 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13795 ;;
13796
13797 darwin* | rhapsody*)
13798 # PIC is the default on this platform
13799 # Common symbols not allowed in MH_DYLIB files
13800 lt_prog_compiler_pic_FC='-fno-common'
13801 ;;
13802
43e02a8a
RW
13803 haiku*)
13804 # PIC is the default for Haiku.
13805 # The "-static" flag exists, but is broken.
13806 lt_prog_compiler_static_FC=
13807 ;;
13808
1cf3d07d 13809 hpux*)
d58dead8
PG
13810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13812 # sets the default TLS model and affects inlining.
1cf3d07d 13813 case $host_cpu in
d58dead8 13814 hppa*64*)
1cf3d07d
SE
13815 # +Z the default
13816 ;;
13817 *)
13818 lt_prog_compiler_pic_FC='-fPIC'
13819 ;;
13820 esac
13821 ;;
13822
13823 interix[3-9]*)
13824 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13825 # Instead, we relocate shared libraries at runtime.
13826 ;;
13827
13828 msdosdjgpp*)
13829 # Just because we use GCC doesn't mean we suddenly get shared libraries
13830 # on systems that don't support them.
13831 lt_prog_compiler_can_build_shared_FC=no
13832 enable_shared=no
13833 ;;
13834
13835 *nto* | *qnx*)
13836 # QNX uses GNU C++, but need to define -shared option too, otherwise
13837 # it will coredump.
13838 lt_prog_compiler_pic_FC='-fPIC -shared'
13839 ;;
13840
13841 sysv4*MP*)
13842 if test -d /usr/nec; then
13843 lt_prog_compiler_pic_FC=-Kconform_pic
13844 fi
13845 ;;
13846
13847 *)
13848 lt_prog_compiler_pic_FC='-fPIC'
13849 ;;
13850 esac
43e02a8a
RW
13851
13852 case $cc_basename in
13853 nvcc*) # Cuda Compiler Driver 2.2
13854 lt_prog_compiler_wl_FC='-Xlinker '
13855 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13856 ;;
13857 esac
1cf3d07d
SE
13858 else
13859 # PORTME Check for flag to pass linker flags through the system compiler.
13860 case $host_os in
13861 aix*)
13862 lt_prog_compiler_wl_FC='-Wl,'
13863 if test "$host_cpu" = ia64; then
13864 # AIX 5 now supports IA64 processor
13865 lt_prog_compiler_static_FC='-Bstatic'
13866 else
13867 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13868 fi
13869 ;;
1cf3d07d 13870
d58dead8 13871 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13872 # This hack is so that the source file can tell whether it is being
13873 # built for inclusion in a dll (and should export symbols for example).
13874 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13875 ;;
13876
13877 hpux9* | hpux10* | hpux11*)
13878 lt_prog_compiler_wl_FC='-Wl,'
13879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13880 # not for PA HP-UX.
13881 case $host_cpu in
13882 hppa*64*|ia64*)
13883 # +Z the default
13884 ;;
13885 *)
13886 lt_prog_compiler_pic_FC='+Z'
13887 ;;
13888 esac
13889 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13890 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13891 ;;
13892
13893 irix5* | irix6* | nonstopux*)
13894 lt_prog_compiler_wl_FC='-Wl,'
13895 # PIC (with -KPIC) is the default.
13896 lt_prog_compiler_static_FC='-non_shared'
13897 ;;
13898
7a9d3fe8 13899 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13900 case $cc_basename in
d58dead8
PG
13901 # old Intel for x86_64 which still supported -KPIC.
13902 ecc*)
1cf3d07d
SE
13903 lt_prog_compiler_wl_FC='-Wl,'
13904 lt_prog_compiler_pic_FC='-KPIC'
13905 lt_prog_compiler_static_FC='-static'
13906 ;;
d58dead8
PG
13907 # icc used to be incompatible with GCC.
13908 # ICC 10 doesn't accept -KPIC any more.
13909 icc* | ifort*)
13910 lt_prog_compiler_wl_FC='-Wl,'
13911 lt_prog_compiler_pic_FC='-fPIC'
13912 lt_prog_compiler_static_FC='-static'
13913 ;;
13914 # Lahey Fortran 8.1.
13915 lf95*)
13916 lt_prog_compiler_wl_FC='-Wl,'
13917 lt_prog_compiler_pic_FC='--shared'
13918 lt_prog_compiler_static_FC='--static'
13919 ;;
43e02a8a 13920 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13921 # Portland Group compilers (*not* the Pentium gcc compiler,
13922 # which looks to be a dead project)
13923 lt_prog_compiler_wl_FC='-Wl,'
13924 lt_prog_compiler_pic_FC='-fpic'
13925 lt_prog_compiler_static_FC='-Bstatic'
13926 ;;
13927 ccc*)
13928 lt_prog_compiler_wl_FC='-Wl,'
13929 # All Alpha code is PIC.
13930 lt_prog_compiler_static_FC='-non_shared'
13931 ;;
43e02a8a
RW
13932 xl* | bgxl* | bgf* | mpixl*)
13933 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13934 lt_prog_compiler_wl_FC='-Wl,'
13935 lt_prog_compiler_pic_FC='-qpic'
13936 lt_prog_compiler_static_FC='-qstaticlink'
13937 ;;
1cf3d07d
SE
13938 *)
13939 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13940 *Sun\ F* | *Sun*Fortran*)
13941 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13942 lt_prog_compiler_pic_FC='-KPIC'
13943 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13944 lt_prog_compiler_wl_FC=''
1cf3d07d 13945 ;;
43e02a8a
RW
13946 *Sun\ C*)
13947 # Sun C 5.9
1cf3d07d
SE
13948 lt_prog_compiler_pic_FC='-KPIC'
13949 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13950 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13951 ;;
13952 esac
13953 ;;
13954 esac
13955 ;;
13956
13957 newsos6)
13958 lt_prog_compiler_pic_FC='-KPIC'
13959 lt_prog_compiler_static_FC='-Bstatic'
13960 ;;
13961
13962 *nto* | *qnx*)
13963 # QNX uses GNU C++, but need to define -shared option too, otherwise
13964 # it will coredump.
13965 lt_prog_compiler_pic_FC='-fPIC -shared'
13966 ;;
13967
13968 osf3* | osf4* | osf5*)
13969 lt_prog_compiler_wl_FC='-Wl,'
13970 # All OSF/1 code is PIC.
13971 lt_prog_compiler_static_FC='-non_shared'
13972 ;;
13973
13974 rdos*)
13975 lt_prog_compiler_static_FC='-non_shared'
13976 ;;
13977
13978 solaris*)
13979 lt_prog_compiler_pic_FC='-KPIC'
13980 lt_prog_compiler_static_FC='-Bstatic'
13981 case $cc_basename in
13982 f77* | f90* | f95*)
13983 lt_prog_compiler_wl_FC='-Qoption ld ';;
13984 *)
13985 lt_prog_compiler_wl_FC='-Wl,';;
13986 esac
13987 ;;
13988
13989 sunos4*)
13990 lt_prog_compiler_wl_FC='-Qoption ld '
13991 lt_prog_compiler_pic_FC='-PIC'
13992 lt_prog_compiler_static_FC='-Bstatic'
13993 ;;
13994
13995 sysv4 | sysv4.2uw2* | sysv4.3*)
13996 lt_prog_compiler_wl_FC='-Wl,'
13997 lt_prog_compiler_pic_FC='-KPIC'
13998 lt_prog_compiler_static_FC='-Bstatic'
13999 ;;
14000
14001 sysv4*MP*)
14002 if test -d /usr/nec ;then
14003 lt_prog_compiler_pic_FC='-Kconform_pic'
14004 lt_prog_compiler_static_FC='-Bstatic'
14005 fi
14006 ;;
14007
14008 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14009 lt_prog_compiler_wl_FC='-Wl,'
14010 lt_prog_compiler_pic_FC='-KPIC'
14011 lt_prog_compiler_static_FC='-Bstatic'
14012 ;;
14013
14014 unicos*)
14015 lt_prog_compiler_wl_FC='-Wl,'
14016 lt_prog_compiler_can_build_shared_FC=no
14017 ;;
14018
14019 uts4*)
14020 lt_prog_compiler_pic_FC='-pic'
14021 lt_prog_compiler_static_FC='-Bstatic'
14022 ;;
14023
14024 *)
14025 lt_prog_compiler_can_build_shared_FC=no
14026 ;;
14027 esac
14028 fi
14029
14030case $host_os in
14031 # For platforms which do not support PIC, -DPIC is meaningless:
14032 *djgpp*)
14033 lt_prog_compiler_pic_FC=
14034 ;;
14035 *)
14036 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14037 ;;
14038esac
5213506e
RW
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
14040$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
14041
14042
14043
14044#
14045# Check to make sure the PIC flag actually works.
14046#
14047if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14049$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22e05272 14050if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
5213506e 14051 $as_echo_n "(cached) " >&6
1cf3d07d 14052else
d58dead8 14053 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
14054 ac_outfile=conftest.$ac_objext
14055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14056 lt_compiler_flag="$lt_prog_compiler_pic_FC"
14057 # Insert the option either (1) after the last *FLAGS variable, or
14058 # (2) before a word containing "conftest.", or (3) at the end.
14059 # Note that $ac_compile itself does not contain backslashes and begins
14060 # with a dollar sign (not a hyphen), so the echo should work correctly.
14061 # The option is referenced via a variable to avoid confusing sed.
14062 lt_compile=`echo "$ac_compile" | $SED \
14063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14065 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14067 (eval "$lt_compile" 2>conftest.err)
14068 ac_status=$?
14069 cat conftest.err >&5
43e02a8a 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14071 if (exit $ac_status) && test -s "$ac_outfile"; then
14072 # The compiler can only warn and ignore the option if not recognized
14073 # So say no if there are warnings other than the usual output.
43e02a8a 14074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
14075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14077 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
14078 fi
14079 fi
14080 $RM conftest*
14081
14082fi
5213506e
RW
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14084$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 14085
d58dead8 14086if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
14087 case $lt_prog_compiler_pic_FC in
14088 "" | " "*) ;;
14089 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14090 esac
14091else
14092 lt_prog_compiler_pic_FC=
14093 lt_prog_compiler_can_build_shared_FC=no
14094fi
14095
14096fi
14097
14098
14099
14100#
14101# Check to make sure the static flag actually works.
14102#
14103wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14105$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14106if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
5213506e 14107 $as_echo_n "(cached) " >&6
1cf3d07d 14108else
d58dead8 14109 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
14110 save_LDFLAGS="$LDFLAGS"
14111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14114 # The linker can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 if test -s conftest.err; then
14117 # Append any errors to the config.log.
14118 cat conftest.err 1>&5
43e02a8a 14119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
14120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14122 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14123 fi
14124 else
d58dead8 14125 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14126 fi
14127 fi
d58dead8 14128 $RM -r conftest*
1cf3d07d
SE
14129 LDFLAGS="$save_LDFLAGS"
14130
14131fi
5213506e
RW
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14133$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 14134
d58dead8 14135if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
14136 :
14137else
14138 lt_prog_compiler_static_FC=
14139fi
14140
14141
14142
14143
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14146if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14147 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14148else
14149 lt_cv_prog_compiler_c_o_FC=no
14150 $RM -r conftest 2>/dev/null
14151 mkdir conftest
14152 cd conftest
14153 mkdir out
14154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14155
14156 lt_compiler_flag="-o out/conftest2.$ac_objext"
14157 # Insert the option either (1) after the last *FLAGS variable, or
14158 # (2) before a word containing "conftest.", or (3) at the end.
14159 # Note that $ac_compile itself does not contain backslashes and begins
14160 # with a dollar sign (not a hyphen), so the echo should work correctly.
14161 lt_compile=`echo "$ac_compile" | $SED \
14162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14164 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14166 (eval "$lt_compile" 2>out/conftest.err)
14167 ac_status=$?
14168 cat out/conftest.err >&5
43e02a8a 14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14171 then
14172 # The compiler can only warn and ignore the option if not recognized
14173 # So say no if there are warnings
43e02a8a 14174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14177 lt_cv_prog_compiler_c_o_FC=yes
14178 fi
14179 fi
14180 chmod u+w . 2>&5
14181 $RM conftest*
14182 # SGI C++ compiler will create directory out/ii_files/ for
14183 # template instantiation
14184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14185 $RM out/* && rmdir out
14186 cd ..
14187 $RM -r conftest
14188 $RM conftest*
14189
14190fi
5213506e
RW
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14192$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14193
14194
14195
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14197$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14198if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14199 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14200else
14201 lt_cv_prog_compiler_c_o_FC=no
14202 $RM -r conftest 2>/dev/null
14203 mkdir conftest
14204 cd conftest
14205 mkdir out
14206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14207
14208 lt_compiler_flag="-o out/conftest2.$ac_objext"
14209 # Insert the option either (1) after the last *FLAGS variable, or
14210 # (2) before a word containing "conftest.", or (3) at the end.
14211 # Note that $ac_compile itself does not contain backslashes and begins
14212 # with a dollar sign (not a hyphen), so the echo should work correctly.
14213 lt_compile=`echo "$ac_compile" | $SED \
14214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14216 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14218 (eval "$lt_compile" 2>out/conftest.err)
14219 ac_status=$?
14220 cat out/conftest.err >&5
43e02a8a 14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14223 then
14224 # The compiler can only warn and ignore the option if not recognized
14225 # So say no if there are warnings
43e02a8a 14226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14229 lt_cv_prog_compiler_c_o_FC=yes
14230 fi
14231 fi
14232 chmod u+w . 2>&5
14233 $RM conftest*
14234 # SGI C++ compiler will create directory out/ii_files/ for
14235 # template instantiation
14236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14237 $RM out/* && rmdir out
14238 cd ..
14239 $RM -r conftest
14240 $RM conftest*
14241
14242fi
5213506e
RW
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14244$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14245
14246
14247
14248
14249hard_links="nottested"
14250if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14251 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14253$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14254 hard_links=yes
14255 $RM conftest*
14256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14257 touch conftest.a
14258 ln conftest.a conftest.b 2>&5 || hard_links=no
14259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14261$as_echo "$hard_links" >&6; }
1cf3d07d 14262 if test "$hard_links" = no; then
5213506e
RW
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14264$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
14265 need_locks=warn
14266 fi
14267else
14268 need_locks=no
14269fi
14270
14271
14272
5213506e
RW
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14274$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14275
14276 runpath_var=
14277 allow_undefined_flag_FC=
14278 always_export_symbols_FC=no
14279 archive_cmds_FC=
14280 archive_expsym_cmds_FC=
14281 compiler_needs_object_FC=no
14282 enable_shared_with_static_runtimes_FC=no
14283 export_dynamic_flag_spec_FC=
14284 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14285 hardcode_automatic_FC=no
14286 hardcode_direct_FC=no
14287 hardcode_direct_absolute_FC=no
14288 hardcode_libdir_flag_spec_FC=
14289 hardcode_libdir_flag_spec_ld_FC=
14290 hardcode_libdir_separator_FC=
14291 hardcode_minus_L_FC=no
14292 hardcode_shlibpath_var_FC=unsupported
14293 inherit_rpath_FC=no
14294 link_all_deplibs_FC=unknown
14295 module_cmds_FC=
14296 module_expsym_cmds_FC=
14297 old_archive_from_new_cmds_FC=
14298 old_archive_from_expsyms_cmds_FC=
14299 thread_safe_flag_spec_FC=
14300 whole_archive_flag_spec_FC=
14301 # include_expsyms should be a list of space-separated symbols to be *always*
14302 # included in the symbol list
14303 include_expsyms_FC=
14304 # exclude_expsyms can be an extended regexp of symbols to exclude
14305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14307 # as well as any symbol that contains `d'.
d58dead8 14308 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
14309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14310 # platforms (ab)use it in PIC code, but their linkers get confused if
14311 # the symbol is explicitly referenced. Since portable code cannot
14312 # rely on this symbol name, it's probably fine to never include it in
14313 # preloaded symbol tables.
d58dead8 14314 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
14315 extract_expsyms_cmds=
14316
14317 case $host_os in
d58dead8 14318 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320 # When not using gcc, we currently assume that we are using
14321 # Microsoft Visual C++.
14322 if test "$GCC" != yes; then
14323 with_gnu_ld=no
14324 fi
14325 ;;
14326 interix*)
14327 # we just hope/assume this is gcc and not c89 (= MSVC++)
14328 with_gnu_ld=yes
14329 ;;
14330 openbsd*)
14331 with_gnu_ld=no
14332 ;;
14333 esac
14334
14335 ld_shlibs_FC=yes
43e02a8a
RW
14336
14337 # On some targets, GNU ld is compatible enough with the native linker
14338 # that we're better off using the native interface for both.
14339 lt_use_gnu_ld_interface=no
1cf3d07d 14340 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
14341 case $host_os in
14342 aix*)
14343 # The AIX port of GNU ld has always aspired to compatibility
14344 # with the native linker. However, as the warning in the GNU ld
14345 # block says, versions before 2.19.5* couldn't really create working
14346 # shared libraries, regardless of the interface used.
14347 case `$LD -v 2>&1` in
14348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14351 *)
14352 lt_use_gnu_ld_interface=yes
14353 ;;
14354 esac
14355 ;;
14356 *)
14357 lt_use_gnu_ld_interface=yes
14358 ;;
14359 esac
14360 fi
14361
14362 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
14363 # If archive_cmds runs LD, not CC, wlarc should be empty
14364 wlarc='${wl}'
14365
14366 # Set some defaults for GNU ld with shared library support. These
14367 # are reset later if shared libraries are not supported. Putting them
14368 # here allows them to be overridden if necessary.
14369 runpath_var=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14374 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14375 else
14376 whole_archive_flag_spec_FC=
14377 fi
14378 supports_anon_versioning=no
14379 case `$LD -v 2>&1` in
43e02a8a 14380 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
14381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14384 *\ 2.11.*) ;; # other 2.11 versions
14385 *) supports_anon_versioning=yes ;;
14386 esac
14387
14388 # See if GNU ld supports shared libraries.
14389 case $host_os in
4f6bebc3 14390 aix[3-9]*)
1cf3d07d
SE
14391 # On AIX/PPC, the GNU linker is very broken
14392 if test "$host_cpu" != ia64; then
14393 ld_shlibs_FC=no
14394 cat <<_LT_EOF 1>&2
14395
43e02a8a 14396*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
14397*** to be unable to reliably create shared libraries on AIX.
14398*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
14399*** really care for shared libraries, you may want to install binutils
14400*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14401*** You will then need to restart the configuration process.
1cf3d07d
SE
14402
14403_LT_EOF
14404 fi
14405 ;;
14406
14407 amigaos*)
d58dead8
PG
14408 case $host_cpu in
14409 powerpc)
14410 # see comment about AmigaOS4 .so support
14411 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 archive_expsym_cmds_FC=''
14413 ;;
14414 m68k)
14415 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14416 hardcode_libdir_flag_spec_FC='-L$libdir'
14417 hardcode_minus_L_FC=yes
14418 ;;
14419 esac
1cf3d07d
SE
14420 ;;
14421
14422 beos*)
14423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14424 allow_undefined_flag_FC=unsupported
14425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14426 # support --undefined. This deserves some investigation. FIXME
14427 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14428 else
14429 ld_shlibs_FC=no
14430 fi
14431 ;;
14432
d58dead8 14433 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14434 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14435 # as there is no search path for DLLs.
14436 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 14437 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
14438 allow_undefined_flag_FC=unsupported
14439 always_export_symbols_FC=no
14440 enable_shared_with_static_runtimes_FC=yes
14441 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14442
14443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14444 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14445 # If the export-symbols file already is a .def file (1st line
14446 # is EXPORTS), use it as is; otherwise, prepend...
14447 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14448 cp $export_symbols $output_objdir/$soname.def;
14449 else
14450 echo EXPORTS > $output_objdir/$soname.def;
14451 cat $export_symbols >> $output_objdir/$soname.def;
14452 fi~
14453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14454 else
14455 ld_shlibs_FC=no
14456 fi
14457 ;;
14458
43e02a8a
RW
14459 haiku*)
14460 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 link_all_deplibs_FC=yes
14462 ;;
14463
1cf3d07d
SE
14464 interix[3-9]*)
14465 hardcode_direct_FC=no
14466 hardcode_shlibpath_var_FC=no
14467 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14468 export_dynamic_flag_spec_FC='${wl}-E'
14469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14470 # Instead, shared libraries are loaded at an image base (0x10000000 by
14471 # default) and relocated if they conflict, which is a slow very memory
14472 # consuming and fragmenting process. To avoid this, we pick a random,
14473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14475 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14476 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14477 ;;
14478
e9085da5 14479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
14480 tmp_diet=no
14481 if test "$host_os" = linux-dietlibc; then
14482 case $cc_basename in
14483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14484 esac
14485 fi
14486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14487 && test "$tmp_diet" = no
14488 then
a699d672 14489 tmp_addflag=' $pic_flag'
d58dead8 14490 tmp_sharedflag='-shared'
1cf3d07d
SE
14491 case $cc_basename,$host_cpu in
14492 pgcc*) # Portland Group C compiler
43e02a8a 14493 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14494 tmp_addflag=' $pic_flag'
14495 ;;
43e02a8a
RW
14496 pgf77* | pgf90* | pgf95* | pgfortran*)
14497 # Portland Group f77 and f90 compilers
14498 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14499 tmp_addflag=' $pic_flag -Mnomain' ;;
14500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14501 tmp_addflag=' -i_dynamic' ;;
14502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14503 tmp_addflag=' -i_dynamic -nofor_main' ;;
14504 ifc* | ifort*) # Intel Fortran compiler
14505 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14506 lf95*) # Lahey Fortran 8.1
14507 whole_archive_flag_spec_FC=
14508 tmp_sharedflag='--shared' ;;
43e02a8a 14509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14510 tmp_sharedflag='-qmkshrobj'
14511 tmp_addflag= ;;
43e02a8a
RW
14512 nvcc*) # Cuda Compiler Driver 2.2
14513 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14514 compiler_needs_object_FC=yes
14515 ;;
1cf3d07d
SE
14516 esac
14517 case `$CC -V 2>&1 | sed 5q` in
14518 *Sun\ C*) # Sun C 5.9
43e02a8a 14519 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14520 compiler_needs_object_FC=yes
14521 tmp_sharedflag='-G' ;;
14522 *Sun\ F*) # Sun Fortran 8.3
14523 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14524 esac
14525 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14526
14527 if test "x$supports_anon_versioning" = xyes; then
14528 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14530 echo "local: *; };" >> $output_objdir/$libname.ver~
14531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14532 fi
d58dead8
PG
14533
14534 case $cc_basename in
43e02a8a 14535 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14537 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14538 hardcode_libdir_flag_spec_FC=
14539 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14540 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14541 if test "x$supports_anon_versioning" = xyes; then
14542 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14544 echo "local: *; };" >> $output_objdir/$libname.ver~
14545 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14546 fi
14547 ;;
14548 esac
1cf3d07d
SE
14549 else
14550 ld_shlibs_FC=no
14551 fi
14552 ;;
14553
14554 netbsd*)
14555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14556 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14557 wlarc=
14558 else
14559 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14561 fi
14562 ;;
14563
14564 solaris*)
14565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14566 ld_shlibs_FC=no
14567 cat <<_LT_EOF 1>&2
14568
14569*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14570*** create shared libraries on Solaris systems. Therefore, libtool
14571*** is disabling shared libraries support. We urge you to upgrade GNU
14572*** binutils to release 2.9.1 or newer. Another option is to modify
14573*** your PATH or compiler configuration so that the native linker is
14574*** used, and then restart.
14575
14576_LT_EOF
14577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14578 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580 else
14581 ld_shlibs_FC=no
14582 fi
14583 ;;
14584
14585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14586 case `$LD -v 2>&1` in
14587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14588 ld_shlibs_FC=no
14589 cat <<_LT_EOF 1>&2
14590
14591*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14592*** reliably create shared libraries on SCO systems. Therefore, libtool
14593*** is disabling shared libraries support. We urge you to upgrade GNU
14594*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14595*** your PATH or compiler configuration so that the native linker is
14596*** used, and then restart.
14597
14598_LT_EOF
14599 ;;
14600 *)
14601 # For security reasons, it is highly recommended that you always
14602 # use absolute paths for naming shared libraries, and exclude the
14603 # DT_RUNPATH tag from executables and libraries. But doing so
14604 # requires that you compile everything twice, which is a pain.
14605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14606 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14607 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14608 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14609 else
14610 ld_shlibs_FC=no
14611 fi
14612 ;;
14613 esac
14614 ;;
14615
14616 sunos4*)
14617 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14618 wlarc=
14619 hardcode_direct_FC=yes
14620 hardcode_shlibpath_var_FC=no
14621 ;;
14622
14623 *)
14624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14625 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14626 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14627 else
14628 ld_shlibs_FC=no
14629 fi
14630 ;;
14631 esac
14632
14633 if test "$ld_shlibs_FC" = no; then
14634 runpath_var=
14635 hardcode_libdir_flag_spec_FC=
14636 export_dynamic_flag_spec_FC=
14637 whole_archive_flag_spec_FC=
14638 fi
14639 else
14640 # PORTME fill in a description of your system's linker (not GNU ld)
14641 case $host_os in
14642 aix3*)
14643 allow_undefined_flag_FC=unsupported
14644 always_export_symbols_FC=yes
14645 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14646 # Note: this linker hardcodes the directories in LIBPATH if there
14647 # are no directories specified by -L.
14648 hardcode_minus_L_FC=yes
14649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14650 # Neither direct hardcoding nor static linking is supported with a
14651 # broken collect2.
14652 hardcode_direct_FC=unsupported
14653 fi
14654 ;;
14655
4f6bebc3 14656 aix[4-9]*)
1cf3d07d
SE
14657 if test "$host_cpu" = ia64; then
14658 # On IA64, the linker does run time linking by default, so we don't
14659 # have to do anything special.
14660 aix_use_runtimelinking=no
14661 exp_sym_flag='-Bexport'
14662 no_entry_flag=""
14663 else
14664 # If we're using GNU nm, then we don't want the "-C" option.
14665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14666 # Also, AIX nm treats weak defined symbols like other global
14667 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14669 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 14670 else
d3ca2257 14671 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
14672 fi
14673 aix_use_runtimelinking=no
14674
14675 # Test if we are trying to use run time linking or normal
14676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14677 # need to do runtime linking.
4f6bebc3 14678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14679 for ld_flag in $LDFLAGS; do
14680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14681 aix_use_runtimelinking=yes
14682 break
14683 fi
14684 done
14685 ;;
14686 esac
14687
14688 exp_sym_flag='-bexport'
14689 no_entry_flag='-bnoentry'
14690 fi
14691
14692 # When large executables or shared objects are built, AIX ld can
14693 # have problems creating the table of contents. If linking a library
14694 # or program results in "error TOC overflow" add -mminimal-toc to
14695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14697
14698 archive_cmds_FC=''
14699 hardcode_direct_FC=yes
14700 hardcode_direct_absolute_FC=yes
14701 hardcode_libdir_separator_FC=':'
14702 link_all_deplibs_FC=yes
14703 file_list_spec_FC='${wl}-f,'
14704
14705 if test "$GCC" = yes; then
14706 case $host_os in aix4.[012]|aix4.[012].*)
14707 # We only want to do this on AIX 4.2 and lower, the check
14708 # below for broken collect2 doesn't work under 4.3+
14709 collect2name=`${CC} -print-prog-name=collect2`
14710 if test -f "$collect2name" &&
14711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14712 then
14713 # We have reworked collect2
14714 :
14715 else
14716 # We have old collect2
14717 hardcode_direct_FC=unsupported
14718 # It fails to find uninstalled libraries when the uninstalled
14719 # path is not listed in the libpath. Setting hardcode_minus_L
14720 # to unsupported forces relinking
14721 hardcode_minus_L_FC=yes
14722 hardcode_libdir_flag_spec_FC='-L$libdir'
14723 hardcode_libdir_separator_FC=
14724 fi
14725 ;;
14726 esac
14727 shared_flag='-shared'
14728 if test "$aix_use_runtimelinking" = yes; then
14729 shared_flag="$shared_flag "'${wl}-G'
14730 fi
14731 else
14732 # not using gcc
14733 if test "$host_cpu" = ia64; then
14734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14735 # chokes on -Wl,-G. The following line is correct:
14736 shared_flag='-G'
14737 else
14738 if test "$aix_use_runtimelinking" = yes; then
14739 shared_flag='${wl}-G'
14740 else
14741 shared_flag='${wl}-bM:SRE'
14742 fi
14743 fi
14744 fi
14745
d58dead8 14746 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14747 # It seems that -bexpall does not export symbols beginning with
14748 # underscore (_), so it is better to generate a list of symbols to export.
14749 always_export_symbols_FC=yes
14750 if test "$aix_use_runtimelinking" = yes; then
14751 # Warning - without using the other runtime loading flags (-brtl),
14752 # -berok will link without error, but may produce a broken library.
14753 allow_undefined_flag_FC='-berok'
14754 # Determine the default libpath from the value encoded in an
14755 # empty executable.
14756 if test x$gcc_no_link = xyes; then
22e05272 14757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14758fi
5213506e 14759cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14760 program main
14761
14762 end
14763_ACEOF
5213506e 14764if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14765
14766lt_aix_libpath_sed='
14767 /Import File Strings/,/^$/ {
14768 /^0/ {
14769 s/^0 *\(.*\)$/\1/
14770 p
14771 }
14772 }'
14773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14774# Check for a 64-bit object if we didn't find anything.
14775if test -z "$aix_libpath"; then
14776 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14777fi
1cf3d07d 14778fi
5213506e
RW
14779rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14782
14783 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14784 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
14785 else
14786 if test "$host_cpu" = ia64; then
14787 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14788 allow_undefined_flag_FC="-z nodefs"
14789 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14790 else
14791 # Determine the default libpath from the value encoded in an
14792 # empty executable.
14793 if test x$gcc_no_link = xyes; then
22e05272 14794 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14795fi
5213506e 14796cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14797 program main
14798
14799 end
14800_ACEOF
5213506e 14801if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14802
14803lt_aix_libpath_sed='
14804 /Import File Strings/,/^$/ {
14805 /^0/ {
14806 s/^0 *\(.*\)$/\1/
14807 p
14808 }
14809 }'
14810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14811# Check for a 64-bit object if we didn't find anything.
14812if test -z "$aix_libpath"; then
14813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14814fi
1cf3d07d 14815fi
5213506e
RW
14816rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14819
14820 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14821 # Warning - without using the other run time loading flags,
14822 # -berok will link without error, but may produce a broken library.
14823 no_undefined_flag_FC=' ${wl}-bernotok'
14824 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14825 if test "$with_gnu_ld" = yes; then
14826 # We only use this code for GNU lds that support --whole-archive.
14827 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14828 else
14829 # Exported symbols can be pulled into shared objects from archives
14830 whole_archive_flag_spec_FC='$convenience'
14831 fi
1cf3d07d
SE
14832 archive_cmds_need_lc_FC=yes
14833 # This is similar to how AIX traditionally builds its shared libraries.
14834 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14835 fi
14836 fi
14837 ;;
14838
14839 amigaos*)
d58dead8
PG
14840 case $host_cpu in
14841 powerpc)
14842 # see comment about AmigaOS4 .so support
14843 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844 archive_expsym_cmds_FC=''
14845 ;;
14846 m68k)
14847 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14848 hardcode_libdir_flag_spec_FC='-L$libdir'
14849 hardcode_minus_L_FC=yes
14850 ;;
14851 esac
1cf3d07d
SE
14852 ;;
14853
14854 bsdi[45]*)
14855 export_dynamic_flag_spec_FC=-rdynamic
14856 ;;
14857
d58dead8 14858 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14859 # When not using gcc, we currently assume that we are using
14860 # Microsoft Visual C++.
14861 # hardcode_libdir_flag_spec is actually meaningless, as there is
14862 # no search path for DLLs.
14863 hardcode_libdir_flag_spec_FC=' '
14864 allow_undefined_flag_FC=unsupported
14865 # Tell ltmain to make .lib files, not .a files.
14866 libext=lib
14867 # Tell ltmain to make .dll files, not .so files.
14868 shrext_cmds=".dll"
14869 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14870 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14871 # The linker will automatically build a .lib file if we build a DLL.
14872 old_archive_from_new_cmds_FC='true'
14873 # FIXME: Should let the user specify the lib program.
14874 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14875 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14876 enable_shared_with_static_runtimes_FC=yes
14877 ;;
14878
14879 darwin* | rhapsody*)
1cf3d07d 14880
d58dead8
PG
14881
14882 archive_cmds_need_lc_FC=no
14883 hardcode_direct_FC=no
14884 hardcode_automatic_FC=yes
14885 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14886 if test "$lt_cv_ld_force_load" = "yes"; then
14887 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14888 else
14889 whole_archive_flag_spec_FC=''
14890 fi
d58dead8
PG
14891 link_all_deplibs_FC=yes
14892 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14893 case $cc_basename in
14894 ifort*) _lt_dar_can_shared=yes ;;
14895 *) _lt_dar_can_shared=$GCC ;;
14896 esac
14897 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14898 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14899 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14900 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14901 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14902 module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14903
14904 else
14905 ld_shlibs_FC=no
14906 fi
14907
1cf3d07d
SE
14908 ;;
14909
14910 dgux*)
14911 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_libdir_flag_spec_FC='-L$libdir'
14913 hardcode_shlibpath_var_FC=no
14914 ;;
14915
1cf3d07d
SE
14916 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14917 # support. Future versions do this automatically, but an explicit c++rt0.o
14918 # does not break anything, and helps significantly (at the cost of a little
14919 # extra space).
14920 freebsd2.2*)
14921 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14922 hardcode_libdir_flag_spec_FC='-R$libdir'
14923 hardcode_direct_FC=yes
14924 hardcode_shlibpath_var_FC=no
14925 ;;
14926
14927 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14928 freebsd2.*)
1cf3d07d
SE
14929 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_direct_FC=yes
14931 hardcode_minus_L_FC=yes
14932 hardcode_shlibpath_var_FC=no
14933 ;;
14934
14935 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14936 freebsd* | dragonfly*)
14937 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14938 hardcode_libdir_flag_spec_FC='-R$libdir'
14939 hardcode_direct_FC=yes
14940 hardcode_shlibpath_var_FC=no
14941 ;;
14942
14943 hpux9*)
14944 if test "$GCC" = yes; then
14945 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14946 else
14947 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14948 fi
14949 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14950 hardcode_libdir_separator_FC=:
14951 hardcode_direct_FC=yes
14952
14953 # hardcode_minus_L: Not really in the search PATH,
14954 # but as the default location of the library.
14955 hardcode_minus_L_FC=yes
14956 export_dynamic_flag_spec_FC='${wl}-E'
14957 ;;
14958
14959 hpux10*)
43e02a8a 14960 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14961 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962 else
14963 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14964 fi
14965 if test "$with_gnu_ld" = no; then
14966 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14967 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14968 hardcode_libdir_separator_FC=:
14969 hardcode_direct_FC=yes
14970 hardcode_direct_absolute_FC=yes
14971 export_dynamic_flag_spec_FC='${wl}-E'
14972 # hardcode_minus_L: Not really in the search PATH,
14973 # but as the default location of the library.
14974 hardcode_minus_L_FC=yes
14975 fi
14976 ;;
14977
14978 hpux11*)
43e02a8a 14979 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14980 case $host_cpu in
14981 hppa*64*)
4e4ba647 14982 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14983 ;;
14984 ia64*)
d58dead8 14985 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14986 ;;
14987 *)
14988 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14989 ;;
14990 esac
14991 else
14992 case $host_cpu in
14993 hppa*64*)
4e4ba647 14994 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14995 ;;
14996 ia64*)
14997 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14998 ;;
14999 *)
43e02a8a 15000 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15001 ;;
15002 esac
15003 fi
15004 if test "$with_gnu_ld" = no; then
15005 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15006 hardcode_libdir_separator_FC=:
15007
15008 case $host_cpu in
15009 hppa*64*|ia64*)
15010 hardcode_direct_FC=no
15011 hardcode_shlibpath_var_FC=no
15012 ;;
15013 *)
15014 hardcode_direct_FC=yes
15015 hardcode_direct_absolute_FC=yes
15016 export_dynamic_flag_spec_FC='${wl}-E'
15017
15018 # hardcode_minus_L: Not really in the search PATH,
15019 # but as the default location of the library.
15020 hardcode_minus_L_FC=yes
15021 ;;
15022 esac
15023 fi
15024 ;;
15025
15026 irix5* | irix6* | nonstopux*)
15027 if test "$GCC" = yes; then
43e02a8a 15028 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15029 # Try to use the -exported_symbol ld option, if it does not
15030 # work, assume that -exports_file does not work either and
15031 # implicitly export all symbols.
15032 save_LDFLAGS="$LDFLAGS"
15033 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15034 if test x$gcc_no_link = xyes; then
22e05272 15035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15036fi
5213506e 15037cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15038int foo(void) {}
15039_ACEOF
5213506e 15040if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 15041 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 15042
1cf3d07d 15043fi
5213506e
RW
15044rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15046 LDFLAGS="$save_LDFLAGS"
15047 else
43e02a8a
RW
15048 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15049 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
15050 fi
15051 archive_cmds_need_lc_FC='no'
15052 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15053 hardcode_libdir_separator_FC=:
15054 inherit_rpath_FC=yes
15055 link_all_deplibs_FC=yes
15056 ;;
15057
15058 netbsd*)
15059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15060 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15061 else
15062 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15063 fi
15064 hardcode_libdir_flag_spec_FC='-R$libdir'
15065 hardcode_direct_FC=yes
15066 hardcode_shlibpath_var_FC=no
15067 ;;
15068
15069 newsos6)
15070 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071 hardcode_direct_FC=yes
15072 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15073 hardcode_libdir_separator_FC=:
15074 hardcode_shlibpath_var_FC=no
15075 ;;
15076
15077 *nto* | *qnx*)
15078 ;;
15079
15080 openbsd*)
d58dead8
PG
15081 if test -f /usr/libexec/ld.so; then
15082 hardcode_direct_FC=yes
15083 hardcode_shlibpath_var_FC=no
15084 hardcode_direct_absolute_FC=yes
15085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 15086 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 15087 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 15088 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
15089 export_dynamic_flag_spec_FC='${wl}-E'
15090 else
15091 case $host_os in
15092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15093 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_libdir_flag_spec_FC='-R$libdir'
15095 ;;
15096 *)
15097 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15098 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15099 ;;
15100 esac
15101 fi
15102 else
15103 ld_shlibs_FC=no
1cf3d07d
SE
15104 fi
15105 ;;
15106
15107 os2*)
15108 hardcode_libdir_flag_spec_FC='-L$libdir'
15109 hardcode_minus_L_FC=yes
15110 allow_undefined_flag_FC=unsupported
43e02a8a 15111 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
15112 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15113 ;;
15114
15115 osf3*)
15116 if test "$GCC" = yes; then
15117 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15118 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15119 else
15120 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15121 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15122 fi
15123 archive_cmds_need_lc_FC='no'
15124 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15125 hardcode_libdir_separator_FC=:
15126 ;;
15127
15128 osf4* | osf5*) # as osf3* with the addition of -msym flag
15129 if test "$GCC" = yes; then
15130 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15131 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15132 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15133 else
15134 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15135 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 15136 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 15137 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
15138
15139 # Both c and cxx compiler support -rpath directly
15140 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15141 fi
15142 archive_cmds_need_lc_FC='no'
15143 hardcode_libdir_separator_FC=:
15144 ;;
15145
15146 solaris*)
15147 no_undefined_flag_FC=' -z defs'
15148 if test "$GCC" = yes; then
15149 wlarc='${wl}'
15150 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15152 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15153 else
15154 case `$CC -V 2>&1` in
15155 *"Compilers 5.0"*)
15156 wlarc=''
15157 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15160 ;;
15161 *)
15162 wlarc='${wl}'
15163 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15164 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15166 ;;
15167 esac
15168 fi
15169 hardcode_libdir_flag_spec_FC='-R$libdir'
15170 hardcode_shlibpath_var_FC=no
15171 case $host_os in
15172 solaris2.[0-5] | solaris2.[0-5].*) ;;
15173 *)
15174 # The compiler driver will combine and reorder linker options,
15175 # but understands `-z linker_flag'. GCC discards it without `$wl',
15176 # but is careful enough not to reorder.
15177 # Supported since Solaris 2.6 (maybe 2.5.1?)
15178 if test "$GCC" = yes; then
15179 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15180 else
15181 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15182 fi
15183 ;;
15184 esac
15185 link_all_deplibs_FC=yes
15186 ;;
15187
15188 sunos4*)
15189 if test "x$host_vendor" = xsequent; then
15190 # Use $CC to link under sequent, because it throws in some extra .o
15191 # files that make .init and .fini sections work.
15192 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15193 else
15194 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15195 fi
15196 hardcode_libdir_flag_spec_FC='-L$libdir'
15197 hardcode_direct_FC=yes
15198 hardcode_minus_L_FC=yes
15199 hardcode_shlibpath_var_FC=no
15200 ;;
15201
15202 sysv4)
15203 case $host_vendor in
15204 sni)
15205 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206 hardcode_direct_FC=yes # is this really true???
15207 ;;
15208 siemens)
15209 ## LD is ld it makes a PLAMLIB
15210 ## CC just makes a GrossModule.
15211 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15212 reload_cmds_FC='$CC -r -o $output$reload_objs'
15213 hardcode_direct_FC=no
15214 ;;
15215 motorola)
15216 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15217 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15218 ;;
15219 esac
15220 runpath_var='LD_RUN_PATH'
15221 hardcode_shlibpath_var_FC=no
15222 ;;
15223
15224 sysv4.3*)
15225 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226 hardcode_shlibpath_var_FC=no
15227 export_dynamic_flag_spec_FC='-Bexport'
15228 ;;
15229
15230 sysv4*MP*)
15231 if test -d /usr/nec; then
15232 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15233 hardcode_shlibpath_var_FC=no
15234 runpath_var=LD_RUN_PATH
15235 hardcode_runpath_var=yes
15236 ld_shlibs_FC=yes
15237 fi
15238 ;;
15239
15240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15241 no_undefined_flag_FC='${wl}-z,text'
15242 archive_cmds_need_lc_FC=no
15243 hardcode_shlibpath_var_FC=no
15244 runpath_var='LD_RUN_PATH'
15245
15246 if test "$GCC" = yes; then
15247 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 else
15250 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 fi
15253 ;;
15254
15255 sysv5* | sco3.2v5* | sco5v6*)
15256 # Note: We can NOT use -z defs as we might desire, because we do not
15257 # link with -lc, and that would cause any symbols used from libc to
15258 # always be unresolved, which means just about no library would
15259 # ever link correctly. If we're not using GNU ld we use -z text
15260 # though, which does catch some bad symbols but isn't as heavy-handed
15261 # as -z defs.
15262 no_undefined_flag_FC='${wl}-z,text'
15263 allow_undefined_flag_FC='${wl}-z,nodefs'
15264 archive_cmds_need_lc_FC=no
15265 hardcode_shlibpath_var_FC=no
15266 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15267 hardcode_libdir_separator_FC=':'
15268 link_all_deplibs_FC=yes
15269 export_dynamic_flag_spec_FC='${wl}-Bexport'
15270 runpath_var='LD_RUN_PATH'
15271
15272 if test "$GCC" = yes; then
15273 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 else
15276 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15278 fi
15279 ;;
15280
15281 uts4*)
15282 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15283 hardcode_libdir_flag_spec_FC='-L$libdir'
15284 hardcode_shlibpath_var_FC=no
15285 ;;
15286
15287 *)
15288 ld_shlibs_FC=no
15289 ;;
15290 esac
15291
15292 if test x$host_vendor = xsni; then
15293 case $host in
15294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15295 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15296 ;;
15297 esac
15298 fi
15299 fi
15300
5213506e
RW
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15302$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
15303test "$ld_shlibs_FC" = no && can_build_shared=no
15304
15305with_gnu_ld_FC=$with_gnu_ld
15306
15307
15308
15309
15310
15311
15312#
15313# Do we need to explicitly link libc?
15314#
15315case "x$archive_cmds_need_lc_FC" in
15316x|xyes)
15317 # Assume -lc should be added
15318 archive_cmds_need_lc_FC=yes
15319
15320 if test "$enable_shared" = yes && test "$GCC" = yes; then
15321 case $archive_cmds_FC in
15322 *'~'*)
15323 # FIXME: we may have to deal with multi-command sequences.
15324 ;;
15325 '$CC '*)
15326 # Test whether the compiler implicitly links with -lc since on some
15327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15328 # to ld, don't add -lc before -lgcc.
5213506e
RW
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15330$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 15331if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
5213506e 15332 $as_echo_n "(cached) " >&6
baafc534
RW
15333else
15334 $RM conftest*
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15336
5213506e 15337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
15338 (eval $ac_compile) 2>&5
15339 ac_status=$?
5213506e
RW
15340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15342 soname=conftest
15343 lib=conftest
15344 libobjs=conftest.$ac_objext
15345 deplibs=
15346 wl=$lt_prog_compiler_wl_FC
15347 pic_flag=$lt_prog_compiler_pic_FC
15348 compiler_flags=-v
15349 linker_flags=-v
15350 verstring=
15351 output_objdir=.
15352 libname=conftest
15353 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15354 allow_undefined_flag_FC=
5213506e 15355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15356 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 15357 ac_status=$?
5213506e
RW
15358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15359 test $ac_status = 0; }
baafc534
RW
15360 then
15361 lt_cv_archive_cmds_need_lc_FC=no
15362 else
15363 lt_cv_archive_cmds_need_lc_FC=yes
15364 fi
15365 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15366 else
15367 cat conftest.err 1>&5
15368 fi
15369 $RM conftest*
15370
15371fi
5213506e
RW
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15373$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 15374 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
15375 ;;
15376 esac
15377 fi
15378 ;;
15379esac
9cdc381b 15380
9cdc381b 15381
1cf3d07d
SE
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
5213506e
RW
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15445$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 15446
1cf3d07d
SE
15447library_names_spec=
15448libname_spec='lib$name'
15449soname_spec=
15450shrext_cmds=".so"
15451postinstall_cmds=
15452postuninstall_cmds=
15453finish_cmds=
15454finish_eval=
15455shlibpath_var=
15456shlibpath_overrides_runpath=unknown
15457version_type=none
15458dynamic_linker="$host_os ld.so"
15459sys_lib_dlsearch_path_spec="/lib /usr/lib"
15460need_lib_prefix=unknown
15461hardcode_into_libs=no
15462
15463# when you set need_version to no, make sure it does not cause -set_version
15464# flags to be left without arguments
15465need_version=unknown
15466
15467case $host_os in
15468aix3*)
15469 version_type=linux
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15471 shlibpath_var=LIBPATH
15472
15473 # AIX 3 has no versioning support, so we append a major version to the name.
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 ;;
15476
4f6bebc3 15477aix[4-9]*)
1cf3d07d
SE
15478 version_type=linux
15479 need_lib_prefix=no
15480 need_version=no
15481 hardcode_into_libs=yes
15482 if test "$host_cpu" = ia64; then
15483 # AIX 5 supports IA64
15484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 else
15487 # With GCC up to 2.95.x, collect2 would create an import file
15488 # for dependence libraries. The import file would start with
15489 # the line `#! .'. This would cause the generated library to
15490 # depend on `.', always an invalid library. This was fixed in
15491 # development snapshots of GCC prior to 3.0.
15492 case $host_os in
15493 aix4 | aix4.[01] | aix4.[01].*)
15494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15495 echo ' yes '
15496 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15497 :
15498 else
15499 can_build_shared=no
15500 fi
15501 ;;
15502 esac
15503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15504 # soname into executable. Probably we can add versioning support to
15505 # collect2, so additional links can be useful in future.
15506 if test "$aix_use_runtimelinking" = yes; then
15507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15508 # instead of lib<name>.a to let people know that these are not
15509 # typical AIX shared libraries.
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511 else
15512 # We preserve .a as extension for shared libraries through AIX4.2
15513 # and later when we are not doing run time linking.
15514 library_names_spec='${libname}${release}.a $libname.a'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 fi
15517 shlibpath_var=LIBPATH
15518 fi
15519 ;;
15520
15521amigaos*)
d58dead8
PG
15522 case $host_cpu in
15523 powerpc)
15524 # Since July 2007 AmigaOS4 officially supports .so libraries.
15525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 ;;
15528 m68k)
1cf3d07d
SE
15529 library_names_spec='$libname.ixlibrary $libname.a'
15530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15531 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
15532 ;;
15533 esac
1cf3d07d
SE
15534 ;;
15535
15536beos*)
15537 library_names_spec='${libname}${shared_ext}'
15538 dynamic_linker="$host_os ld.so"
15539 shlibpath_var=LIBRARY_PATH
15540 ;;
15541
15542bsdi[45]*)
15543 version_type=linux
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15551 # the default ld.so.conf also contains /usr/contrib/lib and
15552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15553 # libtool to hard-code these into programs
15554 ;;
15555
d58dead8 15556cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15557 version_type=windows
15558 shrext_cmds=".dll"
15559 need_version=no
15560 need_lib_prefix=no
15561
d58dead8
PG
15562 case $GCC,$host_os in
15563 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15564 library_names_spec='$libname.dll.a'
15565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15566 postinstall_cmds='base_file=`basename \${file}`~
15567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15568 dldir=$destdir/`dirname \$dlpath`~
15569 test -d \$dldir || mkdir -p \$dldir~
15570 $install_prog $dir/$dlname \$dldir/$dlname~
15571 chmod a+x \$dldir/$dlname~
15572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15574 fi'
15575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15576 dlpath=$dir/\$dldll~
15577 $RM \$dlpath'
15578 shlibpath_overrides_runpath=yes
15579
15580 case $host_os in
15581 cygwin*)
15582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15584
1cf3d07d 15585 ;;
d58dead8 15586 mingw* | cegcc*)
1cf3d07d
SE
15587 # MinGW DLLs use traditional 'lib' prefix
15588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15589 ;;
15590 pw32*)
15591 # pw32 DLLs use 'pw' prefix rather than 'lib'
15592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15593 ;;
15594 esac
15595 ;;
15596
15597 *)
15598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15599 ;;
15600 esac
15601 dynamic_linker='Win32 ld.exe'
15602 # FIXME: first we should search . and the directory the executable is in
15603 shlibpath_var=PATH
15604 ;;
15605
15606darwin* | rhapsody*)
15607 dynamic_linker="$host_os dyld"
15608 version_type=darwin
15609 need_lib_prefix=no
15610 need_version=no
15611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15612 soname_spec='${libname}${release}${major}$shared_ext'
15613 shlibpath_overrides_runpath=yes
15614 shlibpath_var=DYLD_LIBRARY_PATH
15615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15616
15617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15618 ;;
15619
15620dgux*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 ;;
15628
1cf3d07d
SE
15629freebsd* | dragonfly*)
15630 # DragonFly does not have aout. When/if they implement a new
15631 # versioning mechanism, adjust this.
15632 if test -x /usr/bin/objformat; then
15633 objformat=`/usr/bin/objformat`
15634 else
15635 case $host_os in
c6084f68 15636 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15637 *) objformat=elf ;;
15638 esac
15639 fi
15640 version_type=freebsd-$objformat
15641 case $version_type in
15642 freebsd-elf*)
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15644 need_version=no
15645 need_lib_prefix=no
15646 ;;
15647 freebsd-*)
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15649 need_version=yes
15650 ;;
15651 esac
15652 shlibpath_var=LD_LIBRARY_PATH
15653 case $host_os in
c6084f68 15654 freebsd2.*)
1cf3d07d
SE
15655 shlibpath_overrides_runpath=yes
15656 ;;
15657 freebsd3.[01]* | freebsdelf3.[01]*)
15658 shlibpath_overrides_runpath=yes
15659 hardcode_into_libs=yes
15660 ;;
15661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15663 shlibpath_overrides_runpath=no
15664 hardcode_into_libs=yes
15665 ;;
15666 *) # from 4.6 on, and DragonFly
15667 shlibpath_overrides_runpath=yes
15668 hardcode_into_libs=yes
15669 ;;
15670 esac
15671 ;;
15672
43e02a8a
RW
15673haiku*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 dynamic_linker="$host_os runtime_loader"
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15683 hardcode_into_libs=yes
15684 ;;
15685
1cf3d07d
SE
15686hpux9* | hpux10* | hpux11*)
15687 # Give a soname corresponding to the major version so that dld.sl refuses to
15688 # link against other versions.
15689 version_type=sunos
15690 need_lib_prefix=no
15691 need_version=no
15692 case $host_cpu in
15693 ia64*)
15694 shrext_cmds='.so'
15695 hardcode_into_libs=yes
15696 dynamic_linker="$host_os dld.so"
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 if test "X$HPUX_IA64_MODE" = X32; then
15702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15703 else
15704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15705 fi
15706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15707 ;;
15708 hppa*64*)
15709 shrext_cmds='.sl'
15710 hardcode_into_libs=yes
15711 dynamic_linker="$host_os dld.sl"
15712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15718 ;;
15719 *)
15720 shrext_cmds='.sl'
15721 dynamic_linker="$host_os dld.sl"
15722 shlibpath_var=SHLIB_PATH
15723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15726 ;;
15727 esac
43e02a8a 15728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15729 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15730 # or fails outright, so override atomically:
15731 install_override_mode=555
1cf3d07d
SE
15732 ;;
15733
15734interix[3-9]*)
15735 version_type=linux
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=no
15743 hardcode_into_libs=yes
15744 ;;
15745
15746irix5* | irix6* | nonstopux*)
15747 case $host_os in
15748 nonstopux*) version_type=nonstopux ;;
15749 *)
15750 if test "$lt_cv_prog_gnu_ld" = yes; then
15751 version_type=linux
15752 else
15753 version_type=irix
15754 fi ;;
15755 esac
15756 need_lib_prefix=no
15757 need_version=no
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 case $host_os in
15761 irix5* | nonstopux*)
15762 libsuff= shlibsuff=
15763 ;;
15764 *)
15765 case $LD in # libtool.m4 will add one of these switches to LD
15766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15767 libsuff= shlibsuff= libmagic=32-bit;;
15768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15769 libsuff=32 shlibsuff=N32 libmagic=N32;;
15770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15772 *) libsuff= shlibsuff= libmagic=never-match;;
15773 esac
15774 ;;
15775 esac
15776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15777 shlibpath_overrides_runpath=no
15778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15780 hardcode_into_libs=yes
15781 ;;
15782
15783# No shared lib support for Linux oldld, aout, or coff.
15784linux*oldld* | linux*aout* | linux*coff*)
15785 dynamic_linker=no
15786 ;;
15787
15788# This must be Linux ELF.
e9085da5
MR
15789
15790# uclinux* changes (here and below) have been submitted to the libtool
15791# project, but have not yet been accepted: they are GCC-local changes
15792# for the time being. (See
15793# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
c0f8c22a 15794linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 shlibpath_overrides_runpath=no
baafc534 15803
1cf3d07d 15804 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15805 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 15806 $as_echo_n "(cached) " >&6
baafc534
RW
15807else
15808 lt_cv_shlibpath_overrides_runpath=no
15809 save_LDFLAGS=$LDFLAGS
15810 save_libdir=$libdir
15811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15813 if test x$gcc_no_link = xyes; then
22e05272 15814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15815fi
5213506e 15816cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15817 program main
15818
15819 end
9cdc381b 15820_ACEOF
5213506e
RW
15821if ac_fn_fc_try_link "$LINENO"; then :
15822 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15823 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15824fi
9cdc381b 15825fi
5213506e
RW
15826rm -f core conftest.err conftest.$ac_objext \
15827 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15828 LDFLAGS=$save_LDFLAGS
15829 libdir=$save_libdir
15830
15831fi
15832
15833 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15834
15835 # This implies no fast_install, which is unacceptable.
15836 # Some rework will be needed to allow for fast_install
15837 # before this can be enabled.
15838 hardcode_into_libs=yes
15839
15840 # Append ld.so.conf contents to the search path
15841 if test -f /etc/ld.so.conf; then
43e02a8a 15842 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
15843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15844 fi
15845
15846 # We used to test for /lib/ld.so.1 and disable shared libraries on
15847 # powerpc, because MkLinux only supported shared libraries with the
15848 # GNU dynamic linker. Since this was broken with cross compilers,
15849 # most powerpc-linux boxes support dynamic linking these days and
15850 # people can always --disable-shared, the test was removed, and we
15851 # assume the GNU/Linux dynamic linker is in use.
15852 dynamic_linker='GNU/Linux ld.so'
15853 ;;
15854
15855netbsd*)
15856 version_type=sunos
15857 need_lib_prefix=no
15858 need_version=no
15859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15862 dynamic_linker='NetBSD (a.out) ld.so'
15863 else
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 dynamic_linker='NetBSD ld.elf_so'
15867 fi
15868 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=yes
15870 hardcode_into_libs=yes
15871 ;;
15872
15873newsos6)
15874 version_type=linux
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 shlibpath_overrides_runpath=yes
15878 ;;
15879
15880*nto* | *qnx*)
15881 version_type=qnx
15882 need_lib_prefix=no
15883 need_version=no
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 soname_spec='${libname}${release}${shared_ext}$major'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15889 dynamic_linker='ldqnx.so'
15890 ;;
15891
15892openbsd*)
15893 version_type=sunos
15894 sys_lib_dlsearch_path_spec="/usr/lib"
15895 need_lib_prefix=no
15896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15897 case $host_os in
15898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15899 *) need_version=no ;;
15900 esac
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15905 case $host_os in
15906 openbsd2.[89] | openbsd2.[89].*)
15907 shlibpath_overrides_runpath=no
15908 ;;
15909 *)
15910 shlibpath_overrides_runpath=yes
15911 ;;
15912 esac
15913 else
15914 shlibpath_overrides_runpath=yes
15915 fi
15916 ;;
15917
15918os2*)
15919 libname_spec='$name'
15920 shrext_cmds=".dll"
15921 need_lib_prefix=no
15922 library_names_spec='$libname${shared_ext} $libname.a'
15923 dynamic_linker='OS/2 ld.exe'
15924 shlibpath_var=LIBPATH
15925 ;;
15926
15927osf3* | osf4* | osf5*)
15928 version_type=osf
15929 need_lib_prefix=no
15930 need_version=no
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15936 ;;
15937
15938rdos*)
15939 dynamic_linker=no
15940 ;;
15941
15942solaris*)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15951 # ldd complains unless libraries are executable
15952 postinstall_cmds='chmod +x $lib'
15953 ;;
15954
15955sunos4*)
15956 version_type=sunos
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 if test "$with_gnu_ld" = yes; then
15962 need_lib_prefix=no
15963 fi
15964 need_version=yes
15965 ;;
15966
15967sysv4 | sysv4.3*)
15968 version_type=linux
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 case $host_vendor in
15973 sni)
15974 shlibpath_overrides_runpath=no
15975 need_lib_prefix=no
15976 runpath_var=LD_RUN_PATH
15977 ;;
15978 siemens)
15979 need_lib_prefix=no
15980 ;;
15981 motorola)
15982 need_lib_prefix=no
15983 need_version=no
15984 shlibpath_overrides_runpath=no
15985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15986 ;;
15987 esac
15988 ;;
15989
15990sysv4*MP*)
15991 if test -d /usr/nec ;then
15992 version_type=linux
15993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15994 soname_spec='$libname${shared_ext}.$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 fi
15997 ;;
15998
15999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16000 version_type=freebsd-elf
16001 need_lib_prefix=no
16002 need_version=no
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes
16007 hardcode_into_libs=yes
16008 if test "$with_gnu_ld" = yes; then
16009 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16010 else
16011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16012 case $host_os in
16013 sco3.2v5*)
16014 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16015 ;;
16016 esac
16017 fi
16018 sys_lib_dlsearch_path_spec='/usr/lib'
16019 ;;
16020
16021tpf*)
16022 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
d58dead8 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16027 shlibpath_var=LD_LIBRARY_PATH
16028 shlibpath_overrides_runpath=no
16029 hardcode_into_libs=yes
16030 ;;
16031
16032uts4*)
16033 version_type=linux
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 ;;
16038
16039*)
16040 dynamic_linker=no
16041 ;;
16042esac
5213506e
RW
16043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16044$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
16045test "$dynamic_linker" = no && can_build_shared=no
16046
16047variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16048if test "$GCC" = yes; then
16049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 16050fi
9cdc381b 16051
d58dead8
PG
16052if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16053 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16054fi
16055if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16056 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16057fi
16058
9cdc381b 16059
1cf3d07d
SE
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
43e02a8a
RW
16091
16092
1cf3d07d
SE
16093
16094
16095
5213506e
RW
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16097$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16098hardcode_action_FC=
16099if test -n "$hardcode_libdir_flag_spec_FC" ||
16100 test -n "$runpath_var_FC" ||
16101 test "X$hardcode_automatic_FC" = "Xyes" ; then
16102
16103 # We can hardcode non-existent directories.
16104 if test "$hardcode_direct_FC" != no &&
16105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16106 # have to relink, otherwise we might link with an installed library
16107 # when we should be linking with a yet-to-be-installed one
16108 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
16109 test "$hardcode_minus_L_FC" != no; then
16110 # Linking always hardcodes the temporary library directory.
16111 hardcode_action_FC=relink
16112 else
16113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16114 hardcode_action_FC=immediate
16115 fi
16116else
16117 # We cannot hardcode anything, or else we can only hardcode existing
16118 # directories.
16119 hardcode_action_FC=unsupported
9cdc381b 16120fi
5213506e
RW
16121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16122$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
16123
16124if test "$hardcode_action_FC" = relink ||
16125 test "$inherit_rpath_FC" = yes; then
16126 # Fast installation is not supported
16127 enable_fast_install=no
16128elif test "$shlibpath_overrides_runpath" = yes ||
16129 test "$enable_shared" = no; then
16130 # Fast installation is not necessary
16131 enable_fast_install=needless
9cdc381b
BD
16132fi
16133
1cf3d07d
SE
16134
16135
16136
16137
16138
16139
16140 fi # test -n "$compiler"
16141
d58dead8 16142 GCC=$lt_save_GCC
1cf3d07d
SE
16143 CC="$lt_save_CC"
16144fi # test "$_lt_disable_FC" != yes
16145
dd46a4de 16146ac_ext=c
96b8a615
AJ
16147ac_cpp='$CPP $CPPFLAGS'
16148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
16151
16152
16153
16154# extra LD Flags which are required for targets
16155case "${host}" in
16156 *-darwin*)
16157 # Darwin needs -single_module when linking libgfortran
16158 extra_ldflags_libgfortran=-Wl,-single_module
16159 ;;
16160esac
16161
16162
16163# We need a working compiler at that point, otherwise give a clear
16164# error message and bail out.
16165
5213506e
RW
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16167$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16168ac_ext=${ac_fc_srcext-f}
16169ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16170ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
16171ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16172
5213506e 16173cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
16174
16175 program foo
16176 real, parameter :: bar = sin (12.34 / 2.5)
16177 end program foo
6de9cd9a 16178_ACEOF
5213506e
RW
16179if ac_fn_fc_try_compile "$LINENO"; then :
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181$as_echo "yes" >&6; }
6de9cd9a 16182else
5213506e
RW
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
22e05272 16185 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
6de9cd9a 16186
96b8a615 16187fi
5213506e 16188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
16189ac_ext=c
16190ac_cpp='$CPP $CPPFLAGS'
16191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16193ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 16194
96b8a615 16195
1cf3d07d 16196
5213506e
RW
16197# Check whether --enable-largefile was given.
16198if test "${enable_largefile+set}" = set; then :
16199 enableval=$enable_largefile;
16200fi
1cf3d07d 16201
1cf3d07d
SE
16202if test "$enable_largefile" != no; then
16203
5213506e
RW
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16205$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 16206if ${ac_cv_sys_largefile_CC+:} false; then :
5213506e 16207 $as_echo_n "(cached) " >&6
96b8a615 16208else
1cf3d07d
SE
16209 ac_cv_sys_largefile_CC=no
16210 if test "$GCC" != yes; then
16211 ac_save_CC=$CC
16212 while :; do
5213506e
RW
16213 # IRIX 6.2 and later do not support large files by default,
16214 # so use the C compiler's -n32 option if that helps.
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 16216/* end confdefs.h. */
1cf3d07d
SE
16217#include <sys/types.h>
16218 /* Check that off_t can represent 2**63 - 1 correctly.
16219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16220 since some C++ compilers masquerading as C compilers
16221 incorrectly reject 9223372036854775807. */
e9085da5 16222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16224 && LARGE_OFF_T % 2147483647 == 1)
16225 ? 1 : -1];
4c4b3eb0
PB
16226int
16227main ()
16228{
4c4b3eb0
PB
16229
16230 ;
16231 return 0;
16232}
16233_ACEOF
5213506e
RW
16234 if ac_fn_c_try_compile "$LINENO"; then :
16235 break
4c4b3eb0 16236fi
5213506e
RW
16237rm -f core conftest.err conftest.$ac_objext
16238 CC="$CC -n32"
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 ac_cv_sys_largefile_CC=' -n32'; break
16241fi
16242rm -f core conftest.err conftest.$ac_objext
16243 break
16244 done
16245 CC=$ac_save_CC
16246 rm -f conftest.$ac_ext
16247 fi
16248fi
16249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16250$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16251 if test "$ac_cv_sys_largefile_CC" != no; then
16252 CC=$CC$ac_cv_sys_largefile_CC
16253 fi
4c4b3eb0 16254
5213506e
RW
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16256$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 16257if ${ac_cv_sys_file_offset_bits+:} false; then :
5213506e
RW
16258 $as_echo_n "(cached) " >&6
16259else
16260 while :; do
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16262/* end confdefs.h. */
5213506e
RW
16263#include <sys/types.h>
16264 /* Check that off_t can represent 2**63 - 1 correctly.
16265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16266 since some C++ compilers masquerading as C compilers
16267 incorrectly reject 9223372036854775807. */
e9085da5 16268#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16270 && LARGE_OFF_T % 2147483647 == 1)
16271 ? 1 : -1];
4c4b3eb0
PB
16272int
16273main ()
16274{
4c4b3eb0
PB
16275
16276 ;
16277 return 0;
16278}
16279_ACEOF
5213506e
RW
16280if ac_fn_c_try_compile "$LINENO"; then :
16281 ac_cv_sys_file_offset_bits=no; break
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16285/* end confdefs.h. */
5213506e
RW
16286#define _FILE_OFFSET_BITS 64
16287#include <sys/types.h>
16288 /* Check that off_t can represent 2**63 - 1 correctly.
16289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16290 since some C++ compilers masquerading as C compilers
16291 incorrectly reject 9223372036854775807. */
e9085da5 16292#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16294 && LARGE_OFF_T % 2147483647 == 1)
16295 ? 1 : -1];
4c4b3eb0
PB
16296int
16297main ()
16298{
4c4b3eb0
PB
16299
16300 ;
16301 return 0;
16302}
16303_ACEOF
5213506e
RW
16304if ac_fn_c_try_compile "$LINENO"; then :
16305 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 16306fi
5213506e
RW
16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 ac_cv_sys_file_offset_bits=unknown
16309 break
16310done
4c4b3eb0 16311fi
5213506e
RW
16312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16313$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16314case $ac_cv_sys_file_offset_bits in #(
16315 no | unknown) ;;
16316 *)
16317cat >>confdefs.h <<_ACEOF
16318#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 16319_ACEOF
5213506e
RW
16320;;
16321esac
16322rm -rf conftest*
16323 if test $ac_cv_sys_file_offset_bits = unknown; then
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16325$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 16326if ${ac_cv_sys_large_files+:} false; then :
5213506e
RW
16327 $as_echo_n "(cached) " >&6
16328else
16329 while :; do
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16331/* end confdefs.h. */
5213506e
RW
16332#include <sys/types.h>
16333 /* Check that off_t can represent 2**63 - 1 correctly.
16334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16335 since some C++ compilers masquerading as C compilers
16336 incorrectly reject 9223372036854775807. */
e9085da5 16337#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16339 && LARGE_OFF_T % 2147483647 == 1)
16340 ? 1 : -1];
4c4b3eb0
PB
16341int
16342main ()
16343{
4c4b3eb0
PB
16344
16345 ;
16346 return 0;
16347}
16348_ACEOF
5213506e
RW
16349if ac_fn_c_try_compile "$LINENO"; then :
16350 ac_cv_sys_large_files=no; break
4c4b3eb0 16351fi
5213506e
RW
16352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16354/* end confdefs.h. */
5213506e
RW
16355#define _LARGE_FILES 1
16356#include <sys/types.h>
16357 /* Check that off_t can represent 2**63 - 1 correctly.
16358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16359 since some C++ compilers masquerading as C compilers
16360 incorrectly reject 9223372036854775807. */
e9085da5 16361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16363 && LARGE_OFF_T % 2147483647 == 1)
16364 ? 1 : -1];
4c4b3eb0
PB
16365int
16366main ()
16367{
16368
4c4b3eb0
PB
16369 ;
16370 return 0;
16371}
16372_ACEOF
5213506e
RW
16373if ac_fn_c_try_compile "$LINENO"; then :
16374 ac_cv_sys_large_files=1; break
4c4b3eb0 16375fi
5213506e
RW
16376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 ac_cv_sys_large_files=unknown
16378 break
16379done
38d24731 16380fi
5213506e
RW
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16382$as_echo "$ac_cv_sys_large_files" >&6; }
16383case $ac_cv_sys_large_files in #(
16384 no | unknown) ;;
16385 *)
4c4b3eb0 16386cat >>confdefs.h <<_ACEOF
5213506e 16387#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 16388_ACEOF
5213506e
RW
16389;;
16390esac
16391rm -rf conftest*
16392 fi
22e05272
JM
16393
16394
4c4b3eb0
PB
16395fi
16396
44720bef
JB
16397
16398# Types
5213506e 16399ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22e05272 16400if test "x$ac_cv_type_off_t" = xyes; then :
4c4b3eb0 16401
5213506e 16402else
4c4b3eb0 16403
5213506e
RW
16404cat >>confdefs.h <<_ACEOF
16405#define off_t long int
16406_ACEOF
4c4b3eb0 16407
44720bef
JB
16408fi
16409
16410
16411 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22e05272 16412if test "x$ac_cv_type_intptr_t" = xyes; then :
44720bef
JB
16413
16414$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16415
16416else
16417 for ac_type in 'int' 'long int' 'long long int'; do
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419/* end confdefs.h. */
16420$ac_includes_default
16421int
16422main ()
16423{
16424static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16425test_array [0] = 0;
16426return test_array [0];
44720bef
JB
16427
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432if ac_fn_c_try_compile "$LINENO"; then :
16433
16434cat >>confdefs.h <<_ACEOF
16435#define intptr_t $ac_type
16436_ACEOF
16437
16438 ac_type=
16439fi
16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 test -z "$ac_type" && break
16442 done
16443fi
16444
16445
16446
16447 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22e05272 16448if test "x$ac_cv_type_uintptr_t" = xyes; then :
44720bef
JB
16449
16450$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16451
16452else
16453 for ac_type in 'unsigned int' 'unsigned long int' \
16454 'unsigned long long int'; do
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456/* end confdefs.h. */
16457$ac_includes_default
16458int
16459main ()
16460{
16461static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16462test_array [0] = 0;
16463return test_array [0];
44720bef
JB
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469if ac_fn_c_try_compile "$LINENO"; then :
16470
16471cat >>confdefs.h <<_ACEOF
16472#define uintptr_t $ac_type
16473_ACEOF
16474
16475 ac_type=
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 test -z "$ac_type" && break
16479 done
16480fi
16481
16482
16483ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22e05272 16484if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
44720bef
JB
16485
16486cat >>confdefs.h <<_ACEOF
16487#define HAVE_PTRDIFF_T 1
16488_ACEOF
16489
16490
4c4b3eb0
PB
16491fi
16492
4c4b3eb0 16493
74544378 16494# check header files (we assume C89 is available, so don't check for that)
df65f093 16495
5213506e 16496
df65f093 16497
74544378
JB
16498 for ac_header in $ac_header_list
16499do :
16500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16502"
22e05272 16503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
74544378
JB
16504 cat >>confdefs.h <<_ACEOF
16505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16506_ACEOF
16507
5213506e 16508fi
df65f093 16509
74544378 16510done
864c28e1
RO
16511
16512
df65f093 16513
5213506e 16514
5213506e 16515
df65f093 16516
5213506e 16517
5213506e 16518
df65f093 16519
df65f093 16520
df65f093
SK
16521
16522
df65f093 16523
df65f093 16524
df65f093
SK
16525
16526
df65f093
SK
16527
16528
41724e6a 16529
2cbcdeba 16530
3969c39f 16531
1fb2002d
FXC
16532
16533
32aa3bff 16534
f77b6ca3 16535
f77b6ca3 16536
f77b6ca3 16537
f77b6ca3 16538
f77b6ca3 16539
f77b6ca3 16540
fa86f4f9
TB
16541
16542
9cbecd06
JB
16543
16544
edaaef60
JB
16545
16546
f77b6ca3 16547
f77b6ca3 16548
6de9cd9a 16549
c13e029b 16550inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16551
c13e029b
PB
16552acx_cv_header_stdint=stddef.h
16553acx_cv_header_stdint_kind="(already complete)"
16554for i in stdint.h $inttype_headers; do
16555 unset ac_cv_type_uintptr_t
16556 unset ac_cv_type_uintmax_t
16557 unset ac_cv_type_int_least32_t
16558 unset ac_cv_type_int_fast32_t
16559 unset ac_cv_type_uint64_t
16560 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16561 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16562#include <$i>
16563"
22e05272 16564if test "x$ac_cv_type_uintmax_t" = xyes; then :
c13e029b 16565 acx_cv_header_stdint=$i
5213506e 16566else
c13e029b 16567 continue
5213506e 16568fi
6de9cd9a 16569
c13e029b
PB
16570 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16571#include <$i>
16572"
22e05272 16573if test "x$ac_cv_type_uintptr_t" = xyes; then :
96b8a615 16574
5213506e 16575else
c13e029b 16576 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16577fi
96b8a615 16578
c13e029b
PB
16579 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16580#include <$i>
16581"
22e05272 16582if test "x$ac_cv_type_int_least32_t" = xyes; then :
c13e029b 16583
f77b6ca3 16584else
c13e029b 16585 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16586fi
5213506e 16587
c13e029b
PB
16588 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16589#include <$i>
16590"
22e05272 16591if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f77b6ca3 16592
c13e029b
PB
16593else
16594 acx_cv_header_stdint_kind="(mostly complete)"
16595fi
d72a3ac1 16596
c13e029b
PB
16597 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16598#include <$i>
16599"
22e05272 16600if test "x$ac_cv_type_uint64_t" = xyes; then :
d72a3ac1 16601
5213506e 16602else
c13e029b
PB
16603 acx_cv_header_stdint_kind="(lacks uint64_t)"
16604fi
f77b6ca3 16605
c13e029b
PB
16606 break
16607done
16608if test "$acx_cv_header_stdint" = stddef.h; then
16609 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16610 for i in stdint.h $inttype_headers; do
16611 unset ac_cv_type_uintptr_t
16612 unset ac_cv_type_uint32_t
16613 unset ac_cv_type_uint64_t
16614 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16615 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16616#include <$i>
16617"
22e05272 16618if test "x$ac_cv_type_uint32_t" = xyes; then :
c13e029b
PB
16619 acx_cv_header_stdint=$i
16620else
16621 continue
5213506e 16622fi
f77b6ca3 16623
c13e029b
PB
16624 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16625#include <$i>
16626"
22e05272 16627if test "x$ac_cv_type_uint64_t" = xyes; then :
8845001b 16628
c13e029b 16629fi
185d7d97 16630
c13e029b
PB
16631 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16632#include <$i>
16633"
22e05272 16634if test "x$ac_cv_type_uintptr_t" = xyes; then :
185d7d97 16635
c13e029b 16636fi
35059811 16637
c13e029b
PB
16638 break
16639 done
16640fi
16641if test "$acx_cv_header_stdint" = stddef.h; then
16642 acx_cv_header_stdint_kind="(u_intXX_t style)"
16643 for i in sys/types.h $inttype_headers; do
16644 unset ac_cv_type_u_int32_t
16645 unset ac_cv_type_u_int64_t
16646 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16647 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16648#include <$i>
16649"
22e05272 16650if test "x$ac_cv_type_u_int32_t" = xyes; then :
c13e029b 16651 acx_cv_header_stdint=$i
d72a3ac1 16652else
c13e029b
PB
16653 continue
16654fi
a119fc1c 16655
c13e029b
PB
16656 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16657#include <$i>
16658"
22e05272 16659if test "x$ac_cv_type_u_int64_t" = xyes; then :
a119fc1c 16660
c13e029b 16661fi
a119fc1c 16662
c13e029b
PB
16663 break
16664 done
a119fc1c 16665fi
c13e029b
PB
16666if test "$acx_cv_header_stdint" = stddef.h; then
16667 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16668fi
a119fc1c 16669
c13e029b
PB
16670test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16671test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16672test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16673test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16674test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16675
c13e029b 16676# ----------------- Summarize what we found so far
5213506e 16677
c13e029b
PB
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16679$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16680
c13e029b
PB
16681case `$as_basename -- gstdint.h ||
16682$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16683 Xgstdint.h : 'X\(//\)$' \| \
16684 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16685$as_echo X/gstdint.h |
16686 sed '/^.*\/\([^/][^/]*\)\/*$/{
16687 s//\1/
16688 q
16689 }
16690 /^X\/\(\/\/\)$/{
16691 s//\1/
16692 q
16693 }
16694 /^X\/\(\/\).*/{
16695 s//\1/
16696 q
16697 }
16698 s/.*/./; q'` in
16699 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16700$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16701 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16702$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16703 *) ;;
16704esac
a119fc1c 16705
c13e029b
PB
16706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16707$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16708
c13e029b 16709# ----------------- done included file, check C basic types --------
868d75db 16710
c13e029b
PB
16711# Lacking an uintptr_t? Test size of void *
16712case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16713 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16716# This bug is HP SR number 8606223364.
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16718$as_echo_n "checking size of void *... " >&6; }
22e05272 16719if ${ac_cv_sizeof_void_p+:} false; then :
c13e029b
PB
16720 $as_echo_n "(cached) " >&6
16721else
16722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16723
c13e029b
PB
16724else
16725 if test "$ac_cv_type_void_p" = yes; then
16726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16728as_fn_error 77 "cannot compute sizeof (void *)
16729See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16730 else
16731 ac_cv_sizeof_void_p=0
16732 fi
16733fi
d72a3ac1 16734
c13e029b
PB
16735fi
16736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16737$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16738
868d75db
FXC
16739
16740
d72a3ac1 16741cat >>confdefs.h <<_ACEOF
c13e029b 16742#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16743_ACEOF
d72a3ac1 16744
c13e029b
PB
16745 ;;
16746esac
d72a3ac1 16747
c13e029b
PB
16748# Lacking an uint64_t? Test size of long
16749case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16750 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16751# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16752# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16753# This bug is HP SR number 8606223364.
16754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16755$as_echo_n "checking size of long... " >&6; }
22e05272 16756if ${ac_cv_sizeof_long+:} false; then :
5213506e
RW
16757 $as_echo_n "(cached) " >&6
16758else
c13e029b 16759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16760
7f483eec 16761else
c13e029b
PB
16762 if test "$ac_cv_type_long" = yes; then
16763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16765as_fn_error 77 "cannot compute sizeof (long)
16766See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16767 else
16768 ac_cv_sizeof_long=0
16769 fi
5213506e 16770fi
7f483eec 16771
c13e029b
PB
16772fi
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16774$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16775
7f483eec 16776
d72a3ac1
PB
16777
16778cat >>confdefs.h <<_ACEOF
c13e029b 16779#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16780_ACEOF
7f483eec 16781
c13e029b
PB
16782 ;;
16783esac
29e86cb0 16784
c13e029b
PB
16785if test $acx_cv_header_stdint = stddef.h; then
16786 # Lacking a good header? Test size of everything and deduce all types.
16787 # The cast to long int works around a bug in the HP C Compiler
16788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16790# This bug is HP SR number 8606223364.
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16792$as_echo_n "checking size of int... " >&6; }
22e05272 16793if ${ac_cv_sizeof_int+:} false; then :
c13e029b
PB
16794 $as_echo_n "(cached) " >&6
16795else
16796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16797
c13e029b
PB
16798else
16799 if test "$ac_cv_type_int" = yes; then
16800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16802as_fn_error 77 "cannot compute sizeof (int)
16803See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16804 else
16805 ac_cv_sizeof_int=0
16806 fi
16807fi
d8163f5c 16808
c13e029b
PB
16809fi
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16811$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16812
16813
868d75db 16814
d72a3ac1 16815cat >>confdefs.h <<_ACEOF
c13e029b 16816#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16817_ACEOF
16818
d72a3ac1 16819
c13e029b
PB
16820 # The cast to long int works around a bug in the HP C Compiler
16821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16823# This bug is HP SR number 8606223364.
16824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16825$as_echo_n "checking size of short... " >&6; }
22e05272 16826if ${ac_cv_sizeof_short+:} false; then :
c13e029b
PB
16827 $as_echo_n "(cached) " >&6
16828else
16829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16830
c13e029b
PB
16831else
16832 if test "$ac_cv_type_short" = yes; then
16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16835as_fn_error 77 "cannot compute sizeof (short)
16836See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16837 else
16838 ac_cv_sizeof_short=0
16839 fi
16840fi
d72a3ac1 16841
c13e029b
PB
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16844$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16845
16846
16847
c13e029b
PB
16848cat >>confdefs.h <<_ACEOF
16849#define SIZEOF_SHORT $ac_cv_sizeof_short
16850_ACEOF
d72a3ac1
PB
16851
16852
c13e029b
PB
16853 # The cast to long int works around a bug in the HP C Compiler
16854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16856# This bug is HP SR number 8606223364.
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16858$as_echo_n "checking size of char... " >&6; }
22e05272 16859if ${ac_cv_sizeof_char+:} false; then :
c13e029b
PB
16860 $as_echo_n "(cached) " >&6
16861else
16862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16863
c13e029b
PB
16864else
16865 if test "$ac_cv_type_char" = yes; then
16866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16868as_fn_error 77 "cannot compute sizeof (char)
16869See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16870 else
16871 ac_cv_sizeof_char=0
16872 fi
16873fi
d72a3ac1 16874
c13e029b
PB
16875fi
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16877$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16878
16879
d72a3ac1 16880
5213506e 16881cat >>confdefs.h <<_ACEOF
c13e029b 16882#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16883_ACEOF
868d75db 16884
868d75db 16885
2017c370 16886
c13e029b
PB
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16888$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16889 case "$ac_cv_sizeof_char" in
16890 1) acx_cv_type_int8_t=char ;;
22e05272 16891 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16892 esac
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16894$as_echo "$acx_cv_type_int8_t" >&6; }
16895
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16897$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16898 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16899 2:*) acx_cv_type_int16_t=int ;;
16900 *:2) acx_cv_type_int16_t=short ;;
22e05272 16901 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16902 esac
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16904$as_echo "$acx_cv_type_int16_t" >&6; }
16905
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16907$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16908 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16909 4:*) acx_cv_type_int32_t=int ;;
16910 *:4) acx_cv_type_int32_t=long ;;
22e05272 16911 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16912 esac
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16914$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16915fi
16916
c13e029b 16917# These tests are here to make the output prettier
d72a3ac1 16918
c13e029b
PB
16919if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16920 case "$ac_cv_sizeof_long" in
16921 8) acx_cv_type_int64_t=long ;;
16922 esac
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16924$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16926$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16927fi
16928
16929# Now we can use the above types
16930
16931if test "$ac_cv_type_uintptr_t" != yes; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16933$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16934 case $ac_cv_sizeof_void_p in
16935 2) acx_cv_type_intptr_t=int16_t ;;
16936 4) acx_cv_type_intptr_t=int32_t ;;
16937 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16938 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16939 esac
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16941$as_echo "$acx_cv_type_intptr_t" >&6; }
16942fi
d72a3ac1 16943
c13e029b 16944# ----------------- done all checks, emit header -------------
5213506e 16945ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16946
2017c370 16947
5213506e
RW
16948
16949
16950ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22e05272 16951if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5213506e
RW
16952
16953cat >>confdefs.h <<_ACEOF
16954#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16955_ACEOF
2017c370 16956
5213506e 16957
2017c370 16958fi
5213506e 16959ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22e05272 16960if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5213506e
RW
16961
16962cat >>confdefs.h <<_ACEOF
16963#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16964_ACEOF
16965
5213506e 16966
2017c370 16967fi
5213506e 16968ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22e05272 16969if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
2017c370 16970
5213506e
RW
16971cat >>confdefs.h <<_ACEOF
16972#define HAVE_STRUCT_STAT_ST_RDEV 1
16973_ACEOF
868d75db
FXC
16974
16975
f02d008e 16976fi
5213506e
RW
16977
16978
bd459d0b
JG
16979case "${host}--x${with_newlib}" in
16980 mips*--xyes)
16981 hardwire_newlib=1;;
d3ca2257
NS
16982 nvptx*--xyes)
16983 hardwire_newlib=1;;
bd459d0b
JG
16984esac
16985
5213506e 16986# Check for library functions.
bd459d0b 16987if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
16988 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16989 # may not work correctly, because the compiler may not be able to
16990 # link executables.
16991
16992$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16993
16994
16995$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16996
16997
b4005c71
SE
16998$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16999
17000
b4005c71
SE
17001$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17002
17003
17004$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17005
17006
17007$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17008
cb83df66 17009
ebfedee6
HPN
17010$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17011
17012
17013$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17014
17015
cb83df66
SE
17016 # At some point, we should differentiate between architectures
17017 # like x86, which have long double versions, and alpha/powerpc/etc.,
17018 # which don't. For the time being, punt.
17019 if test x"long_double_math_on_this_cpu" = x"yes"; then
17020
17021$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
17022
17023 fi
b4005c71 17024else
f77b6ca3 17025
f77b6ca3 17026
74544378
JB
17027
17028 for ac_func in $ac_func_list
5213506e
RW
17029do :
17030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 17032if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5213506e
RW
17033 cat >>confdefs.h <<_ACEOF
17034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17035_ACEOF
f77b6ca3 17036
5213506e
RW
17037fi
17038done
f77b6ca3 17039
f77b6ca3 17040
5213506e 17041
96b8a615 17042
5213506e 17043
5213506e 17044
5213506e 17045
6de9cd9a 17046
6de9cd9a 17047
b6e7a3d1 17048
b6e7a3d1 17049
6de9cd9a 17050
4c0c6b9f 17051
4c0c6b9f 17052
4c0c6b9f 17053
4c0c6b9f 17054
4c0c6b9f 17055
4c0c6b9f 17056
4c0c6b9f 17057
4c0c6b9f 17058
868d75db 17059
868d75db 17060
868d75db 17061
868d75db 17062
4c0c6b9f 17063
4c0c6b9f 17064
4c0c6b9f 17065
4c0c6b9f 17066
6422c112 17067
6422c112 17068
6422c112 17069
74544378
JB
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
68ee9c08 17126
227e441f 17127
9cbecd06
JB
17128
17129
4269f19c
JB
17130
17131
b5b58343
UW
17132
17133
70480968
JB
17134
17135
d66d6d15
JB
17136
17137
edaaef60
JB
17138
17139
ef536b41
JB
17140
17141
17142
17143
f8886038
JB
17144
17145
227e441f 17146
8ecd1c0d
TB
17147
17148
b4005c71 17149fi
74544378 17150
4179e59a
TB
17151# Check strerror_r, cannot be above as versions with two and three arguments exist
17152
17153 ac_save_CFLAGS="$CFLAGS"
17154 CFLAGS="-Wimplicit-function-declaration -Werror"
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h. */
17157#define _GNU_SOURCE 1
17158 #include <string.h>
17159 #include <locale.h>
17160int
17161main ()
17162{
17163char s[128]; strerror_r(5, s, 128);
17164 ;
17165 return 0;
17166}
17167_ACEOF
17168if ac_fn_c_try_compile "$LINENO"; then :
17169
17170$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17171
17172fi
17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 CFLAGS="$ac_save_CFLAGS"
17175
17176 ac_save_CFLAGS="$CFLAGS"
17177 CFLAGS="-Wimplicit-function-declaration -Werror"
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179/* end confdefs.h. */
17180#define _GNU_SOURCE 1
17181 #include <string.h>
17182 #include <locale.h>
17183int
17184main ()
17185{
17186char s[128]; strerror_r(5, s);
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191if ac_fn_c_try_compile "$LINENO"; then :
17192
17193$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17194
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 CFLAGS="$ac_save_CFLAGS"
6422c112 17198
4c0c6b9f 17199
453310d8 17200# Check for C99 (and other IEEE) math functions
db9f46a9
TG
17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17202$as_echo_n "checking for sin in -lm... " >&6; }
22e05272 17203if ${ac_cv_lib_m_sin+:} false; then :
5213506e 17204 $as_echo_n "(cached) " >&6
453310d8
RS
17205else
17206 ac_check_lib_save_LIBS=$LIBS
17207LIBS="-lm $LIBS"
f02d008e 17208if test x$gcc_no_link = xyes; then
22e05272 17209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17210fi
5213506e 17211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17212/* end confdefs.h. */
17213
5213506e
RW
17214/* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
453310d8
RS
17217#ifdef __cplusplus
17218extern "C"
17219#endif
db9f46a9 17220char sin ();
453310d8
RS
17221int
17222main ()
17223{
db9f46a9 17224return sin ();
453310d8
RS
17225 ;
17226 return 0;
17227}
17228_ACEOF
5213506e 17229if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17230 ac_cv_lib_m_sin=yes
453310d8 17231else
db9f46a9 17232 ac_cv_lib_m_sin=no
453310d8 17233fi
5213506e
RW
17234rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17236LIBS=$ac_check_lib_save_LIBS
17237fi
db9f46a9
TG
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17239$as_echo "$ac_cv_lib_m_sin" >&6; }
22e05272 17240if test "x$ac_cv_lib_m_sin" = xyes; then :
db9f46a9
TG
17241 cat >>confdefs.h <<_ACEOF
17242#define HAVE_LIBM 1
17243_ACEOF
453310d8 17244
db9f46a9 17245 LIBS="-lm $LIBS"
453310d8
RS
17246
17247fi
17248
db9f46a9
TG
17249
17250
17251
17252
17253
17254
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17256$as_echo_n "checking for acosf... " >&6; }
22e05272 17257if ${gcc_cv_math_func_acosf+:} false; then :
5213506e 17258 $as_echo_n "(cached) " >&6
f02d008e 17259else
db9f46a9 17260 if test x$gcc_no_link = xyes; then
22e05272 17261 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17262fi
5213506e 17263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17264/* end confdefs.h. */
17265
db9f46a9
TG
17266#ifdef HAVE_COMPLEX_H
17267#include <complex.h>
17268#endif
17269#ifdef HAVE_MATH_H
17270#include <math.h>
f02d008e 17271#endif
db9f46a9
TG
17272
17273int (*ptr)() = (int (*)())acosf;
17274
f02d008e
JD
17275int
17276main ()
17277{
f02d008e
JD
17278 return 0;
17279}
db9f46a9 17280
f02d008e 17281_ACEOF
5213506e 17282if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17283 gcc_cv_math_func_acosf=yes
f02d008e 17284else
db9f46a9 17285 gcc_cv_math_func_acosf=no
f02d008e 17286fi
5213506e
RW
17287rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
f02d008e 17289fi
db9f46a9
TG
17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17291$as_echo "$gcc_cv_math_func_acosf" >&6; }
17292 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 17293
f38a14ca
TG
17294cat >>confdefs.h <<_ACEOF
17295#define HAVE_ACOSF 1
17296_ACEOF
db9f46a9
TG
17297
17298 fi
f02d008e 17299
f02d008e 17300
f02d008e 17301
db9f46a9
TG
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17304$as_echo_n "checking for acos... " >&6; }
22e05272 17305if ${gcc_cv_math_func_acos+:} false; then :
5213506e 17306 $as_echo_n "(cached) " >&6
453310d8 17307else
db9f46a9 17308 if test x$gcc_no_link = xyes; then
22e05272 17309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17310fi
5213506e 17311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17312/* end confdefs.h. */
17313
db9f46a9
TG
17314#ifdef HAVE_COMPLEX_H
17315#include <complex.h>
453310d8 17316#endif
db9f46a9
TG
17317#ifdef HAVE_MATH_H
17318#include <math.h>
17319#endif
17320
17321int (*ptr)() = (int (*)())acos;
17322
453310d8
RS
17323int
17324main ()
17325{
453310d8
RS
17326 return 0;
17327}
db9f46a9 17328
453310d8 17329_ACEOF
5213506e 17330if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17331 gcc_cv_math_func_acos=yes
453310d8 17332else
db9f46a9 17333 gcc_cv_math_func_acos=no
453310d8 17334fi
5213506e
RW
17335rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
453310d8 17337fi
db9f46a9
TG
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17339$as_echo "$gcc_cv_math_func_acos" >&6; }
17340 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 17341
f38a14ca
TG
17342cat >>confdefs.h <<_ACEOF
17343#define HAVE_ACOS 1
17344_ACEOF
db9f46a9
TG
17345
17346 fi
17347
453310d8 17348
453310d8 17349
453310d8 17350
db9f46a9
TG
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17352$as_echo_n "checking for acosl... " >&6; }
22e05272 17353if ${gcc_cv_math_func_acosl+:} false; then :
5213506e 17354 $as_echo_n "(cached) " >&6
f02d008e 17355else
db9f46a9 17356 if test x$gcc_no_link = xyes; then
22e05272 17357 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17358fi
5213506e 17359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17360/* end confdefs.h. */
17361
db9f46a9
TG
17362#ifdef HAVE_COMPLEX_H
17363#include <complex.h>
17364#endif
17365#ifdef HAVE_MATH_H
17366#include <math.h>
f02d008e 17367#endif
db9f46a9
TG
17368
17369int (*ptr)() = (int (*)())acosl;
17370
f02d008e
JD
17371int
17372main ()
17373{
f02d008e
JD
17374 return 0;
17375}
db9f46a9 17376
f02d008e 17377_ACEOF
5213506e 17378if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17379 gcc_cv_math_func_acosl=yes
f02d008e 17380else
db9f46a9 17381 gcc_cv_math_func_acosl=no
f02d008e 17382fi
5213506e
RW
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
f02d008e 17385fi
db9f46a9
TG
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17387$as_echo "$gcc_cv_math_func_acosl" >&6; }
17388 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 17389
f38a14ca
TG
17390cat >>confdefs.h <<_ACEOF
17391#define HAVE_ACOSL 1
17392_ACEOF
db9f46a9
TG
17393
17394 fi
f02d008e 17395
f02d008e 17396
f02d008e 17397
db9f46a9
TG
17398
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17400$as_echo_n "checking for acoshf... " >&6; }
22e05272 17401if ${gcc_cv_math_func_acoshf+:} false; then :
5213506e 17402 $as_echo_n "(cached) " >&6
453310d8 17403else
db9f46a9 17404 if test x$gcc_no_link = xyes; then
22e05272 17405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17406fi
5213506e 17407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17408/* end confdefs.h. */
17409
db9f46a9
TG
17410#ifdef HAVE_COMPLEX_H
17411#include <complex.h>
453310d8 17412#endif
db9f46a9
TG
17413#ifdef HAVE_MATH_H
17414#include <math.h>
17415#endif
17416
17417int (*ptr)() = (int (*)())acoshf;
17418
453310d8
RS
17419int
17420main ()
17421{
453310d8
RS
17422 return 0;
17423}
db9f46a9 17424
453310d8 17425_ACEOF
5213506e 17426if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17427 gcc_cv_math_func_acoshf=yes
453310d8 17428else
db9f46a9 17429 gcc_cv_math_func_acoshf=no
453310d8 17430fi
5213506e
RW
17431rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
453310d8 17433fi
db9f46a9
TG
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17435$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17436 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 17437
f38a14ca
TG
17438cat >>confdefs.h <<_ACEOF
17439#define HAVE_ACOSHF 1
17440_ACEOF
453310d8 17441
db9f46a9 17442 fi
453310d8 17443
453310d8 17444
db9f46a9
TG
17445
17446
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17448$as_echo_n "checking for acosh... " >&6; }
22e05272 17449if ${gcc_cv_math_func_acosh+:} false; then :
5213506e 17450 $as_echo_n "(cached) " >&6
453310d8 17451else
db9f46a9 17452 if test x$gcc_no_link = xyes; then
22e05272 17453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17454fi
5213506e 17455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17456/* end confdefs.h. */
17457
db9f46a9
TG
17458#ifdef HAVE_COMPLEX_H
17459#include <complex.h>
17460#endif
17461#ifdef HAVE_MATH_H
17462#include <math.h>
453310d8 17463#endif
db9f46a9
TG
17464
17465int (*ptr)() = (int (*)())acosh;
17466
453310d8
RS
17467int
17468main ()
17469{
5213506e
RW
17470 return 0;
17471}
db9f46a9 17472
5213506e
RW
17473_ACEOF
17474if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17475 gcc_cv_math_func_acosh=yes
453310d8 17476else
db9f46a9 17477 gcc_cv_math_func_acosh=no
453310d8 17478fi
5213506e
RW
17479rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
453310d8 17481fi
db9f46a9
TG
17482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17483$as_echo "$gcc_cv_math_func_acosh" >&6; }
17484 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17485
f38a14ca
TG
17486cat >>confdefs.h <<_ACEOF
17487#define HAVE_ACOSH 1
17488_ACEOF
db9f46a9
TG
17489
17490 fi
453310d8 17491
453310d8 17492
453310d8 17493
db9f46a9
TG
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17496$as_echo_n "checking for acoshl... " >&6; }
22e05272 17497if ${gcc_cv_math_func_acoshl+:} false; then :
5213506e 17498 $as_echo_n "(cached) " >&6
f02d008e 17499else
db9f46a9 17500 if test x$gcc_no_link = xyes; then
22e05272 17501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17502fi
5213506e 17503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17504/* end confdefs.h. */
17505
db9f46a9
TG
17506#ifdef HAVE_COMPLEX_H
17507#include <complex.h>
f02d008e 17508#endif
db9f46a9
TG
17509#ifdef HAVE_MATH_H
17510#include <math.h>
17511#endif
17512
17513int (*ptr)() = (int (*)())acoshl;
17514
f02d008e
JD
17515int
17516main ()
17517{
f02d008e
JD
17518 return 0;
17519}
db9f46a9 17520
f02d008e 17521_ACEOF
5213506e 17522if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17523 gcc_cv_math_func_acoshl=yes
f02d008e 17524else
db9f46a9 17525 gcc_cv_math_func_acoshl=no
f02d008e 17526fi
5213506e
RW
17527rm -f core conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
f02d008e 17529fi
db9f46a9
TG
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17531$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17532 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17533
f38a14ca
TG
17534cat >>confdefs.h <<_ACEOF
17535#define HAVE_ACOSHL 1
17536_ACEOF
db9f46a9
TG
17537
17538 fi
17539
f02d008e 17540
f02d008e 17541
f02d008e 17542
db9f46a9
TG
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17544$as_echo_n "checking for asinf... " >&6; }
22e05272 17545if ${gcc_cv_math_func_asinf+:} false; then :
5213506e 17546 $as_echo_n "(cached) " >&6
453310d8 17547else
db9f46a9 17548 if test x$gcc_no_link = xyes; then
22e05272 17549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17550fi
5213506e 17551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17552/* end confdefs.h. */
17553
db9f46a9
TG
17554#ifdef HAVE_COMPLEX_H
17555#include <complex.h>
17556#endif
17557#ifdef HAVE_MATH_H
17558#include <math.h>
453310d8 17559#endif
db9f46a9
TG
17560
17561int (*ptr)() = (int (*)())asinf;
17562
453310d8
RS
17563int
17564main ()
17565{
453310d8
RS
17566 return 0;
17567}
db9f46a9 17568
453310d8 17569_ACEOF
5213506e 17570if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17571 gcc_cv_math_func_asinf=yes
453310d8 17572else
db9f46a9 17573 gcc_cv_math_func_asinf=no
453310d8 17574fi
5213506e
RW
17575rm -f core conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
453310d8 17577fi
db9f46a9
TG
17578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17579$as_echo "$gcc_cv_math_func_asinf" >&6; }
17580 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17581
f38a14ca
TG
17582cat >>confdefs.h <<_ACEOF
17583#define HAVE_ASINF 1
17584_ACEOF
db9f46a9
TG
17585
17586 fi
453310d8 17587
453310d8 17588
453310d8 17589
db9f46a9
TG
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17592$as_echo_n "checking for asin... " >&6; }
22e05272 17593if ${gcc_cv_math_func_asin+:} false; then :
5213506e 17594 $as_echo_n "(cached) " >&6
453310d8 17595else
db9f46a9 17596 if test x$gcc_no_link = xyes; then
22e05272 17597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17598fi
5213506e 17599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17600/* end confdefs.h. */
17601
db9f46a9
TG
17602#ifdef HAVE_COMPLEX_H
17603#include <complex.h>
453310d8 17604#endif
db9f46a9
TG
17605#ifdef HAVE_MATH_H
17606#include <math.h>
17607#endif
17608
17609int (*ptr)() = (int (*)())asin;
17610
453310d8
RS
17611int
17612main ()
17613{
453310d8
RS
17614 return 0;
17615}
db9f46a9 17616
453310d8 17617_ACEOF
5213506e 17618if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17619 gcc_cv_math_func_asin=yes
453310d8 17620else
db9f46a9 17621 gcc_cv_math_func_asin=no
453310d8 17622fi
5213506e
RW
17623rm -f core conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
453310d8 17625fi
db9f46a9
TG
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17627$as_echo "$gcc_cv_math_func_asin" >&6; }
17628 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17629
f38a14ca
TG
17630cat >>confdefs.h <<_ACEOF
17631#define HAVE_ASIN 1
17632_ACEOF
453310d8 17633
db9f46a9 17634 fi
453310d8 17635
453310d8 17636
db9f46a9
TG
17637
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17640$as_echo_n "checking for asinl... " >&6; }
22e05272 17641if ${gcc_cv_math_func_asinl+:} false; then :
5213506e 17642 $as_echo_n "(cached) " >&6
453310d8 17643else
db9f46a9 17644 if test x$gcc_no_link = xyes; then
22e05272 17645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17646fi
5213506e 17647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17648/* end confdefs.h. */
17649
db9f46a9
TG
17650#ifdef HAVE_COMPLEX_H
17651#include <complex.h>
17652#endif
17653#ifdef HAVE_MATH_H
17654#include <math.h>
453310d8 17655#endif
db9f46a9
TG
17656
17657int (*ptr)() = (int (*)())asinl;
17658
453310d8
RS
17659int
17660main ()
17661{
453310d8
RS
17662 return 0;
17663}
db9f46a9 17664
453310d8 17665_ACEOF
5213506e 17666if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17667 gcc_cv_math_func_asinl=yes
453310d8 17668else
db9f46a9 17669 gcc_cv_math_func_asinl=no
453310d8 17670fi
5213506e
RW
17671rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
453310d8 17673fi
db9f46a9
TG
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17675$as_echo "$gcc_cv_math_func_asinl" >&6; }
17676 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17677
f38a14ca
TG
17678cat >>confdefs.h <<_ACEOF
17679#define HAVE_ASINL 1
17680_ACEOF
db9f46a9
TG
17681
17682 fi
453310d8 17683
453310d8 17684
453310d8 17685
db9f46a9
TG
17686
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17688$as_echo_n "checking for asinhf... " >&6; }
22e05272 17689if ${gcc_cv_math_func_asinhf+:} false; then :
5213506e 17690 $as_echo_n "(cached) " >&6
453310d8 17691else
db9f46a9 17692 if test x$gcc_no_link = xyes; then
22e05272 17693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17694fi
5213506e 17695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17696/* end confdefs.h. */
17697
db9f46a9
TG
17698#ifdef HAVE_COMPLEX_H
17699#include <complex.h>
453310d8 17700#endif
db9f46a9
TG
17701#ifdef HAVE_MATH_H
17702#include <math.h>
17703#endif
17704
17705int (*ptr)() = (int (*)())asinhf;
17706
453310d8
RS
17707int
17708main ()
17709{
453310d8
RS
17710 return 0;
17711}
db9f46a9 17712
453310d8 17713_ACEOF
5213506e 17714if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17715 gcc_cv_math_func_asinhf=yes
453310d8 17716else
db9f46a9 17717 gcc_cv_math_func_asinhf=no
453310d8 17718fi
5213506e
RW
17719rm -f core conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
453310d8 17721fi
db9f46a9
TG
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17723$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17724 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17725
f38a14ca
TG
17726cat >>confdefs.h <<_ACEOF
17727#define HAVE_ASINHF 1
17728_ACEOF
db9f46a9
TG
17729
17730 fi
17731
453310d8 17732
453310d8 17733
453310d8 17734
db9f46a9
TG
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17736$as_echo_n "checking for asinh... " >&6; }
22e05272 17737if ${gcc_cv_math_func_asinh+:} false; then :
5213506e 17738 $as_echo_n "(cached) " >&6
453310d8 17739else
db9f46a9 17740 if test x$gcc_no_link = xyes; then
22e05272 17741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17742fi
5213506e 17743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17744/* end confdefs.h. */
17745
db9f46a9
TG
17746#ifdef HAVE_COMPLEX_H
17747#include <complex.h>
17748#endif
17749#ifdef HAVE_MATH_H
17750#include <math.h>
453310d8 17751#endif
db9f46a9
TG
17752
17753int (*ptr)() = (int (*)())asinh;
17754
453310d8
RS
17755int
17756main ()
17757{
453310d8
RS
17758 return 0;
17759}
db9f46a9 17760
453310d8 17761_ACEOF
5213506e 17762if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17763 gcc_cv_math_func_asinh=yes
453310d8 17764else
db9f46a9 17765 gcc_cv_math_func_asinh=no
453310d8 17766fi
5213506e
RW
17767rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
453310d8 17769fi
db9f46a9
TG
17770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17771$as_echo "$gcc_cv_math_func_asinh" >&6; }
17772 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17773
f38a14ca
TG
17774cat >>confdefs.h <<_ACEOF
17775#define HAVE_ASINH 1
17776_ACEOF
db9f46a9
TG
17777
17778 fi
453310d8 17779
453310d8 17780
453310d8 17781
db9f46a9
TG
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17784$as_echo_n "checking for asinhl... " >&6; }
22e05272 17785if ${gcc_cv_math_func_asinhl+:} false; then :
5213506e 17786 $as_echo_n "(cached) " >&6
6e4d9244 17787else
db9f46a9 17788 if test x$gcc_no_link = xyes; then
22e05272 17789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17790fi
5213506e 17791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17792/* end confdefs.h. */
17793
db9f46a9
TG
17794#ifdef HAVE_COMPLEX_H
17795#include <complex.h>
6e4d9244 17796#endif
db9f46a9
TG
17797#ifdef HAVE_MATH_H
17798#include <math.h>
17799#endif
17800
17801int (*ptr)() = (int (*)())asinhl;
17802
6e4d9244
EB
17803int
17804main ()
17805{
6e4d9244
EB
17806 return 0;
17807}
db9f46a9 17808
6e4d9244 17809_ACEOF
5213506e 17810if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17811 gcc_cv_math_func_asinhl=yes
6e4d9244 17812else
db9f46a9 17813 gcc_cv_math_func_asinhl=no
6e4d9244 17814fi
5213506e
RW
17815rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17817fi
db9f46a9
TG
17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17819$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17820 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17821
f38a14ca
TG
17822cat >>confdefs.h <<_ACEOF
17823#define HAVE_ASINHL 1
17824_ACEOF
6e4d9244 17825
db9f46a9 17826 fi
6e4d9244 17827
6e4d9244 17828
db9f46a9
TG
17829
17830
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17832$as_echo_n "checking for atan2f... " >&6; }
22e05272 17833if ${gcc_cv_math_func_atan2f+:} false; then :
5213506e 17834 $as_echo_n "(cached) " >&6
453310d8 17835else
db9f46a9 17836 if test x$gcc_no_link = xyes; then
22e05272 17837 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17838fi
5213506e 17839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17840/* end confdefs.h. */
17841
db9f46a9
TG
17842#ifdef HAVE_COMPLEX_H
17843#include <complex.h>
453310d8 17844#endif
db9f46a9
TG
17845#ifdef HAVE_MATH_H
17846#include <math.h>
17847#endif
17848
17849int (*ptr)() = (int (*)())atan2f;
17850
17851int
453310d8
RS
17852main ()
17853{
453310d8
RS
17854 return 0;
17855}
db9f46a9 17856
453310d8 17857_ACEOF
5213506e 17858if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17859 gcc_cv_math_func_atan2f=yes
453310d8 17860else
db9f46a9 17861 gcc_cv_math_func_atan2f=no
453310d8 17862fi
5213506e
RW
17863rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
453310d8 17865fi
db9f46a9
TG
17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17867$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17868 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17869
f38a14ca
TG
17870cat >>confdefs.h <<_ACEOF
17871#define HAVE_ATAN2F 1
17872_ACEOF
db9f46a9
TG
17873
17874 fi
453310d8 17875
453310d8 17876
453310d8 17877
db9f46a9
TG
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17880$as_echo_n "checking for atan2... " >&6; }
22e05272 17881if ${gcc_cv_math_func_atan2+:} false; then :
5213506e 17882 $as_echo_n "(cached) " >&6
453310d8 17883else
db9f46a9 17884 if test x$gcc_no_link = xyes; then
22e05272 17885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17886fi
5213506e 17887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17888/* end confdefs.h. */
17889
db9f46a9
TG
17890#ifdef HAVE_COMPLEX_H
17891#include <complex.h>
453310d8 17892#endif
db9f46a9
TG
17893#ifdef HAVE_MATH_H
17894#include <math.h>
17895#endif
17896
17897int (*ptr)() = (int (*)())atan2;
17898
453310d8
RS
17899int
17900main ()
17901{
453310d8
RS
17902 return 0;
17903}
db9f46a9 17904
453310d8 17905_ACEOF
5213506e 17906if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17907 gcc_cv_math_func_atan2=yes
453310d8 17908else
db9f46a9 17909 gcc_cv_math_func_atan2=no
453310d8 17910fi
5213506e
RW
17911rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
453310d8 17913fi
db9f46a9
TG
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17915$as_echo "$gcc_cv_math_func_atan2" >&6; }
17916 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17917
f38a14ca
TG
17918cat >>confdefs.h <<_ACEOF
17919#define HAVE_ATAN2 1
17920_ACEOF
453310d8 17921
db9f46a9 17922 fi
453310d8 17923
453310d8 17924
db9f46a9
TG
17925
17926
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17928$as_echo_n "checking for atan2l... " >&6; }
22e05272 17929if ${gcc_cv_math_func_atan2l+:} false; then :
5213506e 17930 $as_echo_n "(cached) " >&6
453310d8 17931else
db9f46a9 17932 if test x$gcc_no_link = xyes; then
22e05272 17933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17934fi
5213506e 17935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17936/* end confdefs.h. */
17937
db9f46a9
TG
17938#ifdef HAVE_COMPLEX_H
17939#include <complex.h>
17940#endif
17941#ifdef HAVE_MATH_H
17942#include <math.h>
453310d8 17943#endif
db9f46a9
TG
17944
17945int (*ptr)() = (int (*)())atan2l;
17946
453310d8
RS
17947int
17948main ()
17949{
453310d8
RS
17950 return 0;
17951}
db9f46a9 17952
453310d8 17953_ACEOF
5213506e 17954if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17955 gcc_cv_math_func_atan2l=yes
453310d8 17956else
db9f46a9 17957 gcc_cv_math_func_atan2l=no
453310d8 17958fi
5213506e
RW
17959rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
453310d8 17961fi
db9f46a9
TG
17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17963$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17964 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17965
f38a14ca
TG
17966cat >>confdefs.h <<_ACEOF
17967#define HAVE_ATAN2L 1
17968_ACEOF
db9f46a9
TG
17969
17970 fi
453310d8 17971
453310d8 17972
453310d8 17973
db9f46a9
TG
17974
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17976$as_echo_n "checking for atanf... " >&6; }
22e05272 17977if ${gcc_cv_math_func_atanf+:} false; then :
5213506e 17978 $as_echo_n "(cached) " >&6
453310d8 17979else
db9f46a9 17980 if test x$gcc_no_link = xyes; then
22e05272 17981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17982fi
5213506e 17983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17984/* end confdefs.h. */
17985
db9f46a9
TG
17986#ifdef HAVE_COMPLEX_H
17987#include <complex.h>
453310d8 17988#endif
db9f46a9
TG
17989#ifdef HAVE_MATH_H
17990#include <math.h>
17991#endif
17992
17993int (*ptr)() = (int (*)())atanf;
17994
453310d8
RS
17995int
17996main ()
17997{
453310d8
RS
17998 return 0;
17999}
db9f46a9 18000
453310d8 18001_ACEOF
5213506e 18002if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18003 gcc_cv_math_func_atanf=yes
453310d8 18004else
db9f46a9 18005 gcc_cv_math_func_atanf=no
453310d8 18006fi
5213506e
RW
18007rm -f core conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
453310d8 18009fi
db9f46a9
TG
18010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
18011$as_echo "$gcc_cv_math_func_atanf" >&6; }
18012 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 18013
f38a14ca
TG
18014cat >>confdefs.h <<_ACEOF
18015#define HAVE_ATANF 1
18016_ACEOF
db9f46a9
TG
18017
18018 fi
18019
453310d8 18020
453310d8 18021
453310d8 18022
db9f46a9
TG
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
18024$as_echo_n "checking for atan... " >&6; }
22e05272 18025if ${gcc_cv_math_func_atan+:} false; then :
5213506e 18026 $as_echo_n "(cached) " >&6
453310d8 18027else
db9f46a9 18028 if test x$gcc_no_link = xyes; then
22e05272 18029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18030fi
5213506e 18031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18032/* end confdefs.h. */
18033
db9f46a9
TG
18034#ifdef HAVE_COMPLEX_H
18035#include <complex.h>
18036#endif
18037#ifdef HAVE_MATH_H
18038#include <math.h>
453310d8 18039#endif
db9f46a9
TG
18040
18041int (*ptr)() = (int (*)())atan;
18042
453310d8
RS
18043int
18044main ()
18045{
453310d8
RS
18046 return 0;
18047}
db9f46a9 18048
453310d8 18049_ACEOF
5213506e 18050if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18051 gcc_cv_math_func_atan=yes
453310d8 18052else
db9f46a9 18053 gcc_cv_math_func_atan=no
453310d8 18054fi
5213506e
RW
18055rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
453310d8 18057fi
db9f46a9
TG
18058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
18059$as_echo "$gcc_cv_math_func_atan" >&6; }
18060 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 18061
f38a14ca
TG
18062cat >>confdefs.h <<_ACEOF
18063#define HAVE_ATAN 1
18064_ACEOF
db9f46a9
TG
18065
18066 fi
453310d8 18067
453310d8 18068
453310d8 18069
db9f46a9
TG
18070
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
18072$as_echo_n "checking for atanl... " >&6; }
22e05272 18073if ${gcc_cv_math_func_atanl+:} false; then :
5213506e 18074 $as_echo_n "(cached) " >&6
32aa3bff 18075else
db9f46a9 18076 if test x$gcc_no_link = xyes; then
22e05272 18077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18078fi
5213506e 18079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
18080/* end confdefs.h. */
18081
db9f46a9
TG
18082#ifdef HAVE_COMPLEX_H
18083#include <complex.h>
32aa3bff 18084#endif
db9f46a9
TG
18085#ifdef HAVE_MATH_H
18086#include <math.h>
18087#endif
18088
18089int (*ptr)() = (int (*)())atanl;
18090
32aa3bff
FXC
18091int
18092main ()
18093{
32aa3bff
FXC
18094 return 0;
18095}
db9f46a9 18096
32aa3bff 18097_ACEOF
5213506e 18098if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18099 gcc_cv_math_func_atanl=yes
32aa3bff 18100else
db9f46a9 18101 gcc_cv_math_func_atanl=no
32aa3bff 18102fi
5213506e
RW
18103rm -f core conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
32aa3bff 18105fi
db9f46a9
TG
18106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
18107$as_echo "$gcc_cv_math_func_atanl" >&6; }
18108 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 18109
f38a14ca
TG
18110cat >>confdefs.h <<_ACEOF
18111#define HAVE_ATANL 1
18112_ACEOF
32aa3bff 18113
db9f46a9 18114 fi
32aa3bff 18115
32aa3bff 18116
db9f46a9
TG
18117
18118
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
18120$as_echo_n "checking for atanhf... " >&6; }
22e05272 18121if ${gcc_cv_math_func_atanhf+:} false; then :
5213506e 18122 $as_echo_n "(cached) " >&6
453310d8 18123else
db9f46a9 18124 if test x$gcc_no_link = xyes; then
22e05272 18125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18126fi
5213506e 18127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18128/* end confdefs.h. */
18129
db9f46a9
TG
18130#ifdef HAVE_COMPLEX_H
18131#include <complex.h>
18132#endif
18133#ifdef HAVE_MATH_H
18134#include <math.h>
453310d8 18135#endif
db9f46a9
TG
18136
18137int (*ptr)() = (int (*)())atanhf;
18138
453310d8
RS
18139int
18140main ()
18141{
453310d8
RS
18142 return 0;
18143}
db9f46a9 18144
453310d8 18145_ACEOF
5213506e 18146if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18147 gcc_cv_math_func_atanhf=yes
453310d8 18148else
db9f46a9 18149 gcc_cv_math_func_atanhf=no
453310d8 18150fi
5213506e
RW
18151rm -f core conftest.err conftest.$ac_objext \
18152 conftest$ac_exeext conftest.$ac_ext
453310d8 18153fi
db9f46a9
TG
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18155$as_echo "$gcc_cv_math_func_atanhf" >&6; }
18156 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 18157
f38a14ca
TG
18158cat >>confdefs.h <<_ACEOF
18159#define HAVE_ATANHF 1
18160_ACEOF
db9f46a9
TG
18161
18162 fi
453310d8 18163
453310d8 18164
453310d8 18165
db9f46a9
TG
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18168$as_echo_n "checking for atanh... " >&6; }
22e05272 18169if ${gcc_cv_math_func_atanh+:} false; then :
5213506e 18170 $as_echo_n "(cached) " >&6
453310d8 18171else
db9f46a9 18172 if test x$gcc_no_link = xyes; then
22e05272 18173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18174fi
5213506e 18175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18176/* end confdefs.h. */
18177
db9f46a9
TG
18178#ifdef HAVE_COMPLEX_H
18179#include <complex.h>
453310d8 18180#endif
db9f46a9
TG
18181#ifdef HAVE_MATH_H
18182#include <math.h>
18183#endif
18184
18185int (*ptr)() = (int (*)())atanh;
18186
453310d8
RS
18187int
18188main ()
18189{
453310d8
RS
18190 return 0;
18191}
db9f46a9 18192
453310d8 18193_ACEOF
5213506e 18194if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18195 gcc_cv_math_func_atanh=yes
453310d8 18196else
db9f46a9 18197 gcc_cv_math_func_atanh=no
453310d8 18198fi
5213506e
RW
18199rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
453310d8 18201fi
db9f46a9
TG
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18203$as_echo "$gcc_cv_math_func_atanh" >&6; }
18204 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 18205
f38a14ca
TG
18206cat >>confdefs.h <<_ACEOF
18207#define HAVE_ATANH 1
18208_ACEOF
db9f46a9
TG
18209
18210 fi
18211
453310d8 18212
453310d8 18213
453310d8 18214
db9f46a9
TG
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18216$as_echo_n "checking for atanhl... " >&6; }
22e05272 18217if ${gcc_cv_math_func_atanhl+:} false; then :
5213506e 18218 $as_echo_n "(cached) " >&6
bf4d99cf 18219else
db9f46a9 18220 if test x$gcc_no_link = xyes; then
22e05272 18221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18222fi
5213506e 18223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
18224/* end confdefs.h. */
18225
db9f46a9
TG
18226#ifdef HAVE_COMPLEX_H
18227#include <complex.h>
18228#endif
18229#ifdef HAVE_MATH_H
18230#include <math.h>
bf4d99cf 18231#endif
db9f46a9
TG
18232
18233int (*ptr)() = (int (*)())atanhl;
18234
bf4d99cf
TS
18235int
18236main ()
18237{
bf4d99cf
TS
18238 return 0;
18239}
db9f46a9 18240
bf4d99cf 18241_ACEOF
5213506e 18242if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18243 gcc_cv_math_func_atanhl=yes
bf4d99cf 18244else
db9f46a9 18245 gcc_cv_math_func_atanhl=no
bf4d99cf 18246fi
5213506e
RW
18247rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 18249fi
db9f46a9
TG
18250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18251$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18252 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 18253
f38a14ca
TG
18254cat >>confdefs.h <<_ACEOF
18255#define HAVE_ATANHL 1
18256_ACEOF
db9f46a9
TG
18257
18258 fi
bf4d99cf 18259
bf4d99cf 18260
bf4d99cf 18261
db9f46a9
TG
18262
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18264$as_echo_n "checking for cargf... " >&6; }
22e05272 18265if ${gcc_cv_math_func_cargf+:} false; then :
5213506e 18266 $as_echo_n "(cached) " >&6
a2a2059f 18267else
db9f46a9 18268 if test x$gcc_no_link = xyes; then
22e05272 18269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18270fi
5213506e 18271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18272/* end confdefs.h. */
18273
db9f46a9
TG
18274#ifdef HAVE_COMPLEX_H
18275#include <complex.h>
a2a2059f 18276#endif
db9f46a9
TG
18277#ifdef HAVE_MATH_H
18278#include <math.h>
18279#endif
18280
18281int (*ptr)() = (int (*)())cargf;
18282
453310d8
RS
18283int
18284main ()
18285{
453310d8
RS
18286 return 0;
18287}
db9f46a9 18288
453310d8 18289_ACEOF
5213506e 18290if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18291 gcc_cv_math_func_cargf=yes
453310d8 18292else
db9f46a9 18293 gcc_cv_math_func_cargf=no
453310d8 18294fi
5213506e
RW
18295rm -f core conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
453310d8 18297fi
db9f46a9
TG
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18299$as_echo "$gcc_cv_math_func_cargf" >&6; }
18300 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 18301
f38a14ca
TG
18302cat >>confdefs.h <<_ACEOF
18303#define HAVE_CARGF 1
18304_ACEOF
453310d8 18305
db9f46a9 18306 fi
453310d8 18307
453310d8 18308
db9f46a9
TG
18309
18310
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18312$as_echo_n "checking for carg... " >&6; }
22e05272 18313if ${gcc_cv_math_func_carg+:} false; then :
5213506e 18314 $as_echo_n "(cached) " >&6
453310d8 18315else
db9f46a9 18316 if test x$gcc_no_link = xyes; then
22e05272 18317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18318fi
5213506e 18319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18320/* end confdefs.h. */
18321
db9f46a9
TG
18322#ifdef HAVE_COMPLEX_H
18323#include <complex.h>
18324#endif
18325#ifdef HAVE_MATH_H
18326#include <math.h>
453310d8 18327#endif
db9f46a9
TG
18328
18329int (*ptr)() = (int (*)())carg;
18330
a2a2059f
BD
18331int
18332main ()
18333{
a2a2059f
BD
18334 return 0;
18335}
db9f46a9 18336
a2a2059f 18337_ACEOF
5213506e 18338if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18339 gcc_cv_math_func_carg=yes
a2a2059f 18340else
db9f46a9 18341 gcc_cv_math_func_carg=no
a2a2059f 18342fi
5213506e
RW
18343rm -f core conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18345fi
db9f46a9
TG
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18347$as_echo "$gcc_cv_math_func_carg" >&6; }
18348 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 18349
f38a14ca
TG
18350cat >>confdefs.h <<_ACEOF
18351#define HAVE_CARG 1
18352_ACEOF
db9f46a9
TG
18353
18354 fi
a2a2059f 18355
a2a2059f 18356
a2a2059f 18357
db9f46a9
TG
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18360$as_echo_n "checking for cargl... " >&6; }
22e05272 18361if ${gcc_cv_math_func_cargl+:} false; then :
5213506e 18362 $as_echo_n "(cached) " >&6
a2a2059f 18363else
db9f46a9 18364 if test x$gcc_no_link = xyes; then
22e05272 18365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18366fi
5213506e 18367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18368/* end confdefs.h. */
18369
db9f46a9
TG
18370#ifdef HAVE_COMPLEX_H
18371#include <complex.h>
a2a2059f 18372#endif
db9f46a9
TG
18373#ifdef HAVE_MATH_H
18374#include <math.h>
18375#endif
18376
18377int (*ptr)() = (int (*)())cargl;
18378
a2a2059f
BD
18379int
18380main ()
18381{
a2a2059f
BD
18382 return 0;
18383}
db9f46a9 18384
a2a2059f 18385_ACEOF
5213506e 18386if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18387 gcc_cv_math_func_cargl=yes
a2a2059f 18388else
db9f46a9 18389 gcc_cv_math_func_cargl=no
a2a2059f 18390fi
5213506e
RW
18391rm -f core conftest.err conftest.$ac_objext \
18392 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18393fi
db9f46a9
TG
18394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18395$as_echo "$gcc_cv_math_func_cargl" >&6; }
18396 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 18397
f38a14ca
TG
18398cat >>confdefs.h <<_ACEOF
18399#define HAVE_CARGL 1
18400_ACEOF
db9f46a9
TG
18401
18402 fi
18403
a2a2059f 18404
a2a2059f 18405
a2a2059f 18406
db9f46a9
TG
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18408$as_echo_n "checking for ceilf... " >&6; }
22e05272 18409if ${gcc_cv_math_func_ceilf+:} false; then :
5213506e 18410 $as_echo_n "(cached) " >&6
ae973d6a 18411else
db9f46a9 18412 if test x$gcc_no_link = xyes; then
22e05272 18413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18414fi
5213506e 18415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
18416/* end confdefs.h. */
18417
db9f46a9
TG
18418#ifdef HAVE_COMPLEX_H
18419#include <complex.h>
18420#endif
18421#ifdef HAVE_MATH_H
18422#include <math.h>
ae973d6a 18423#endif
db9f46a9
TG
18424
18425int (*ptr)() = (int (*)())ceilf;
18426
ae973d6a
FXC
18427int
18428main ()
18429{
ae973d6a
FXC
18430 return 0;
18431}
db9f46a9 18432
ae973d6a 18433_ACEOF
5213506e 18434if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18435 gcc_cv_math_func_ceilf=yes
ae973d6a 18436else
db9f46a9 18437 gcc_cv_math_func_ceilf=no
ae973d6a 18438fi
5213506e
RW
18439rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
ae973d6a 18441fi
db9f46a9
TG
18442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18443$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18444 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 18445
f38a14ca
TG
18446cat >>confdefs.h <<_ACEOF
18447#define HAVE_CEILF 1
18448_ACEOF
db9f46a9
TG
18449
18450 fi
ae973d6a 18451
ae973d6a 18452
ae973d6a 18453
db9f46a9
TG
18454
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18456$as_echo_n "checking for ceil... " >&6; }
22e05272 18457if ${gcc_cv_math_func_ceil+:} false; then :
5213506e 18458 $as_echo_n "(cached) " >&6
a9e7b9d3 18459else
db9f46a9 18460 if test x$gcc_no_link = xyes; then
22e05272 18461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18462fi
5213506e 18463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18464/* end confdefs.h. */
18465
db9f46a9
TG
18466#ifdef HAVE_COMPLEX_H
18467#include <complex.h>
a9e7b9d3 18468#endif
db9f46a9
TG
18469#ifdef HAVE_MATH_H
18470#include <math.h>
18471#endif
18472
18473int (*ptr)() = (int (*)())ceil;
18474
a9e7b9d3
PB
18475int
18476main ()
18477{
a9e7b9d3
PB
18478 return 0;
18479}
db9f46a9 18480
a9e7b9d3 18481_ACEOF
5213506e 18482if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18483 gcc_cv_math_func_ceil=yes
a9e7b9d3 18484else
db9f46a9 18485 gcc_cv_math_func_ceil=no
a9e7b9d3 18486fi
5213506e
RW
18487rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18489fi
db9f46a9
TG
18490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18491$as_echo "$gcc_cv_math_func_ceil" >&6; }
18492 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18493
f38a14ca
TG
18494cat >>confdefs.h <<_ACEOF
18495#define HAVE_CEIL 1
18496_ACEOF
a9e7b9d3 18497
db9f46a9 18498 fi
a9e7b9d3 18499
a9e7b9d3 18500
db9f46a9
TG
18501
18502
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18504$as_echo_n "checking for ceill... " >&6; }
22e05272 18505if ${gcc_cv_math_func_ceill+:} false; then :
5213506e 18506 $as_echo_n "(cached) " >&6
a9e7b9d3 18507else
db9f46a9 18508 if test x$gcc_no_link = xyes; then
22e05272 18509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18510fi
5213506e 18511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18512/* end confdefs.h. */
18513
db9f46a9
TG
18514#ifdef HAVE_COMPLEX_H
18515#include <complex.h>
18516#endif
18517#ifdef HAVE_MATH_H
18518#include <math.h>
a9e7b9d3 18519#endif
db9f46a9
TG
18520
18521int (*ptr)() = (int (*)())ceill;
18522
a9e7b9d3
PB
18523int
18524main ()
18525{
a9e7b9d3
PB
18526 return 0;
18527}
db9f46a9 18528
a9e7b9d3 18529_ACEOF
5213506e 18530if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18531 gcc_cv_math_func_ceill=yes
a9e7b9d3 18532else
db9f46a9 18533 gcc_cv_math_func_ceill=no
a9e7b9d3 18534fi
5213506e
RW
18535rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18537fi
db9f46a9
TG
18538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18539$as_echo "$gcc_cv_math_func_ceill" >&6; }
18540 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18541
f38a14ca
TG
18542cat >>confdefs.h <<_ACEOF
18543#define HAVE_CEILL 1
18544_ACEOF
db9f46a9
TG
18545
18546 fi
a9e7b9d3 18547
453310d8 18548
453310d8 18549
db9f46a9
TG
18550
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18552$as_echo_n "checking for copysignf... " >&6; }
22e05272 18553if ${gcc_cv_math_func_copysignf+:} false; then :
5213506e 18554 $as_echo_n "(cached) " >&6
453310d8 18555else
db9f46a9 18556 if test x$gcc_no_link = xyes; then
22e05272 18557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18558fi
5213506e 18559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18560/* end confdefs.h. */
18561
db9f46a9
TG
18562#ifdef HAVE_COMPLEX_H
18563#include <complex.h>
453310d8 18564#endif
db9f46a9
TG
18565#ifdef HAVE_MATH_H
18566#include <math.h>
18567#endif
18568
18569int (*ptr)() = (int (*)())copysignf;
18570
453310d8
RS
18571int
18572main ()
18573{
453310d8
RS
18574 return 0;
18575}
db9f46a9 18576
453310d8 18577_ACEOF
5213506e 18578if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18579 gcc_cv_math_func_copysignf=yes
453310d8 18580else
db9f46a9 18581 gcc_cv_math_func_copysignf=no
453310d8 18582fi
5213506e
RW
18583rm -f core conftest.err conftest.$ac_objext \
18584 conftest$ac_exeext conftest.$ac_ext
453310d8 18585fi
db9f46a9
TG
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18587$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18588 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18589
f38a14ca
TG
18590cat >>confdefs.h <<_ACEOF
18591#define HAVE_COPYSIGNF 1
18592_ACEOF
db9f46a9
TG
18593
18594 fi
18595
453310d8 18596
453310d8 18597
453310d8 18598
db9f46a9
TG
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18600$as_echo_n "checking for copysign... " >&6; }
22e05272 18601if ${gcc_cv_math_func_copysign+:} false; then :
5213506e 18602 $as_echo_n "(cached) " >&6
453310d8 18603else
db9f46a9 18604 if test x$gcc_no_link = xyes; then
22e05272 18605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18606fi
5213506e 18607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18608/* end confdefs.h. */
18609
db9f46a9
TG
18610#ifdef HAVE_COMPLEX_H
18611#include <complex.h>
18612#endif
18613#ifdef HAVE_MATH_H
18614#include <math.h>
453310d8 18615#endif
db9f46a9
TG
18616
18617int (*ptr)() = (int (*)())copysign;
18618
453310d8
RS
18619int
18620main ()
18621{
453310d8
RS
18622 return 0;
18623}
db9f46a9 18624
453310d8 18625_ACEOF
5213506e 18626if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18627 gcc_cv_math_func_copysign=yes
453310d8 18628else
db9f46a9 18629 gcc_cv_math_func_copysign=no
453310d8 18630fi
5213506e
RW
18631rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
453310d8 18633fi
db9f46a9
TG
18634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18635$as_echo "$gcc_cv_math_func_copysign" >&6; }
18636 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18637
f38a14ca
TG
18638cat >>confdefs.h <<_ACEOF
18639#define HAVE_COPYSIGN 1
18640_ACEOF
db9f46a9
TG
18641
18642 fi
453310d8 18643
453310d8 18644
453310d8 18645
db9f46a9
TG
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18648$as_echo_n "checking for copysignl... " >&6; }
22e05272 18649if ${gcc_cv_math_func_copysignl+:} false; then :
5213506e 18650 $as_echo_n "(cached) " >&6
453310d8 18651else
db9f46a9 18652 if test x$gcc_no_link = xyes; then
22e05272 18653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18654fi
5213506e 18655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18656/* end confdefs.h. */
18657
db9f46a9
TG
18658#ifdef HAVE_COMPLEX_H
18659#include <complex.h>
453310d8 18660#endif
db9f46a9
TG
18661#ifdef HAVE_MATH_H
18662#include <math.h>
18663#endif
18664
18665int (*ptr)() = (int (*)())copysignl;
18666
453310d8
RS
18667int
18668main ()
18669{
5213506e
RW
18670 return 0;
18671}
db9f46a9 18672
5213506e
RW
18673_ACEOF
18674if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18675 gcc_cv_math_func_copysignl=yes
453310d8 18676else
db9f46a9 18677 gcc_cv_math_func_copysignl=no
453310d8 18678fi
5213506e
RW
18679rm -f core conftest.err conftest.$ac_objext \
18680 conftest$ac_exeext conftest.$ac_ext
453310d8 18681fi
db9f46a9
TG
18682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18683$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18684 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18685
f38a14ca
TG
18686cat >>confdefs.h <<_ACEOF
18687#define HAVE_COPYSIGNL 1
18688_ACEOF
453310d8 18689
db9f46a9 18690 fi
a9e7b9d3 18691
a9e7b9d3 18692
db9f46a9
TG
18693
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18696$as_echo_n "checking for cosf... " >&6; }
22e05272 18697if ${gcc_cv_math_func_cosf+:} false; then :
5213506e 18698 $as_echo_n "(cached) " >&6
69a2d125 18699else
db9f46a9 18700 if test x$gcc_no_link = xyes; then
22e05272 18701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18702fi
5213506e 18703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18704/* end confdefs.h. */
18705
db9f46a9
TG
18706#ifdef HAVE_COMPLEX_H
18707#include <complex.h>
18708#endif
18709#ifdef HAVE_MATH_H
18710#include <math.h>
69a2d125 18711#endif
db9f46a9
TG
18712
18713int (*ptr)() = (int (*)())cosf;
18714
69a2d125
EB
18715int
18716main ()
18717{
69a2d125
EB
18718 return 0;
18719}
db9f46a9 18720
69a2d125 18721_ACEOF
5213506e 18722if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18723 gcc_cv_math_func_cosf=yes
69a2d125 18724else
db9f46a9 18725 gcc_cv_math_func_cosf=no
69a2d125 18726fi
5213506e
RW
18727rm -f core conftest.err conftest.$ac_objext \
18728 conftest$ac_exeext conftest.$ac_ext
69a2d125 18729fi
db9f46a9
TG
18730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18731$as_echo "$gcc_cv_math_func_cosf" >&6; }
18732 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18733
f38a14ca
TG
18734cat >>confdefs.h <<_ACEOF
18735#define HAVE_COSF 1
18736_ACEOF
db9f46a9
TG
18737
18738 fi
69a2d125 18739
1409cd0b 18740
1409cd0b 18741
db9f46a9
TG
18742
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18744$as_echo_n "checking for cos... " >&6; }
22e05272 18745if ${gcc_cv_math_func_cos+:} false; then :
5213506e 18746 $as_echo_n "(cached) " >&6
1409cd0b 18747else
db9f46a9 18748 if test x$gcc_no_link = xyes; then
22e05272 18749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18750fi
5213506e 18751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18752/* end confdefs.h. */
18753
db9f46a9
TG
18754#ifdef HAVE_COMPLEX_H
18755#include <complex.h>
1409cd0b 18756#endif
db9f46a9
TG
18757#ifdef HAVE_MATH_H
18758#include <math.h>
18759#endif
18760
18761int (*ptr)() = (int (*)())cos;
18762
1409cd0b
FXC
18763int
18764main ()
18765{
1409cd0b
FXC
18766 return 0;
18767}
db9f46a9 18768
1409cd0b 18769_ACEOF
5213506e 18770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18771 gcc_cv_math_func_cos=yes
1409cd0b 18772else
db9f46a9 18773 gcc_cv_math_func_cos=no
1409cd0b 18774fi
5213506e
RW
18775rm -f core conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18777fi
db9f46a9
TG
18778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18779$as_echo "$gcc_cv_math_func_cos" >&6; }
18780 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18781
f38a14ca
TG
18782cat >>confdefs.h <<_ACEOF
18783#define HAVE_COS 1
18784_ACEOF
db9f46a9
TG
18785
18786 fi
18787
1409cd0b 18788
1409cd0b 18789
1409cd0b 18790
db9f46a9
TG
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18792$as_echo_n "checking for cosl... " >&6; }
22e05272 18793if ${gcc_cv_math_func_cosl+:} false; then :
5213506e 18794 $as_echo_n "(cached) " >&6
1409cd0b 18795else
db9f46a9 18796 if test x$gcc_no_link = xyes; then
22e05272 18797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18798fi
5213506e 18799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18800/* end confdefs.h. */
18801
db9f46a9
TG
18802#ifdef HAVE_COMPLEX_H
18803#include <complex.h>
18804#endif
18805#ifdef HAVE_MATH_H
18806#include <math.h>
1409cd0b 18807#endif
db9f46a9
TG
18808
18809int (*ptr)() = (int (*)())cosl;
18810
1409cd0b
FXC
18811int
18812main ()
18813{
1409cd0b
FXC
18814 return 0;
18815}
db9f46a9 18816
1409cd0b 18817_ACEOF
5213506e 18818if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18819 gcc_cv_math_func_cosl=yes
1409cd0b 18820else
db9f46a9 18821 gcc_cv_math_func_cosl=no
1409cd0b 18822fi
5213506e
RW
18823rm -f core conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18825fi
db9f46a9
TG
18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18827$as_echo "$gcc_cv_math_func_cosl" >&6; }
18828 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18829
f38a14ca
TG
18830cat >>confdefs.h <<_ACEOF
18831#define HAVE_COSL 1
18832_ACEOF
db9f46a9
TG
18833
18834 fi
1409cd0b 18835
1409cd0b 18836
1409cd0b 18837
db9f46a9
TG
18838
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18840$as_echo_n "checking for ccosf... " >&6; }
22e05272 18841if ${gcc_cv_math_func_ccosf+:} false; then :
5213506e 18842 $as_echo_n "(cached) " >&6
1409cd0b 18843else
db9f46a9 18844 if test x$gcc_no_link = xyes; then
22e05272 18845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18846fi
5213506e 18847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18848/* end confdefs.h. */
18849
db9f46a9
TG
18850#ifdef HAVE_COMPLEX_H
18851#include <complex.h>
1409cd0b 18852#endif
db9f46a9
TG
18853#ifdef HAVE_MATH_H
18854#include <math.h>
18855#endif
18856
18857int (*ptr)() = (int (*)())ccosf;
18858
1409cd0b
FXC
18859int
18860main ()
18861{
1409cd0b
FXC
18862 return 0;
18863}
db9f46a9 18864
1409cd0b 18865_ACEOF
5213506e 18866if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18867 gcc_cv_math_func_ccosf=yes
1409cd0b 18868else
db9f46a9 18869 gcc_cv_math_func_ccosf=no
1409cd0b 18870fi
5213506e
RW
18871rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18873fi
db9f46a9
TG
18874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18875$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18876 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18877
f38a14ca
TG
18878cat >>confdefs.h <<_ACEOF
18879#define HAVE_CCOSF 1
18880_ACEOF
1409cd0b 18881
db9f46a9 18882 fi
1409cd0b 18883
1409cd0b 18884
db9f46a9
TG
18885
18886
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18888$as_echo_n "checking for ccos... " >&6; }
22e05272 18889if ${gcc_cv_math_func_ccos+:} false; then :
5213506e 18890 $as_echo_n "(cached) " >&6
1409cd0b 18891else
db9f46a9 18892 if test x$gcc_no_link = xyes; then
22e05272 18893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18894fi
5213506e 18895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18896/* end confdefs.h. */
18897
db9f46a9
TG
18898#ifdef HAVE_COMPLEX_H
18899#include <complex.h>
18900#endif
18901#ifdef HAVE_MATH_H
18902#include <math.h>
1409cd0b 18903#endif
db9f46a9
TG
18904
18905int (*ptr)() = (int (*)())ccos;
18906
1409cd0b
FXC
18907int
18908main ()
18909{
1409cd0b
FXC
18910 return 0;
18911}
db9f46a9 18912
1409cd0b 18913_ACEOF
5213506e 18914if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18915 gcc_cv_math_func_ccos=yes
1409cd0b 18916else
db9f46a9 18917 gcc_cv_math_func_ccos=no
1409cd0b 18918fi
5213506e
RW
18919rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18921fi
db9f46a9
TG
18922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18923$as_echo "$gcc_cv_math_func_ccos" >&6; }
18924 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18925
f38a14ca
TG
18926cat >>confdefs.h <<_ACEOF
18927#define HAVE_CCOS 1
18928_ACEOF
db9f46a9
TG
18929
18930 fi
1409cd0b 18931
1409cd0b 18932
1409cd0b 18933
db9f46a9
TG
18934
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18936$as_echo_n "checking for ccosl... " >&6; }
22e05272 18937if ${gcc_cv_math_func_ccosl+:} false; then :
5213506e 18938 $as_echo_n "(cached) " >&6
1409cd0b 18939else
db9f46a9 18940 if test x$gcc_no_link = xyes; then
22e05272 18941 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18942fi
5213506e 18943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18944/* end confdefs.h. */
18945
db9f46a9
TG
18946#ifdef HAVE_COMPLEX_H
18947#include <complex.h>
1409cd0b 18948#endif
db9f46a9
TG
18949#ifdef HAVE_MATH_H
18950#include <math.h>
18951#endif
18952
18953int (*ptr)() = (int (*)())ccosl;
18954
1409cd0b
FXC
18955int
18956main ()
18957{
1409cd0b
FXC
18958 return 0;
18959}
db9f46a9 18960
1409cd0b 18961_ACEOF
5213506e 18962if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18963 gcc_cv_math_func_ccosl=yes
1409cd0b 18964else
db9f46a9 18965 gcc_cv_math_func_ccosl=no
1409cd0b 18966fi
5213506e
RW
18967rm -f core conftest.err conftest.$ac_objext \
18968 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18969fi
db9f46a9
TG
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18971$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18972 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18973
f38a14ca
TG
18974cat >>confdefs.h <<_ACEOF
18975#define HAVE_CCOSL 1
18976_ACEOF
db9f46a9
TG
18977
18978 fi
18979
1409cd0b 18980
1409cd0b 18981
1409cd0b 18982
db9f46a9
TG
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18984$as_echo_n "checking for coshf... " >&6; }
22e05272 18985if ${gcc_cv_math_func_coshf+:} false; then :
5213506e 18986 $as_echo_n "(cached) " >&6
1409cd0b 18987else
db9f46a9 18988 if test x$gcc_no_link = xyes; then
22e05272 18989 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18990fi
5213506e 18991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18992/* end confdefs.h. */
18993
db9f46a9
TG
18994#ifdef HAVE_COMPLEX_H
18995#include <complex.h>
18996#endif
18997#ifdef HAVE_MATH_H
18998#include <math.h>
1409cd0b 18999#endif
db9f46a9
TG
19000
19001int (*ptr)() = (int (*)())coshf;
19002
1409cd0b
FXC
19003int
19004main ()
19005{
1409cd0b
FXC
19006 return 0;
19007}
db9f46a9 19008
1409cd0b 19009_ACEOF
5213506e 19010if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19011 gcc_cv_math_func_coshf=yes
1409cd0b 19012else
db9f46a9 19013 gcc_cv_math_func_coshf=no
1409cd0b 19014fi
5213506e
RW
19015rm -f core conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19017fi
db9f46a9
TG
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
19019$as_echo "$gcc_cv_math_func_coshf" >&6; }
19020 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 19021
f38a14ca
TG
19022cat >>confdefs.h <<_ACEOF
19023#define HAVE_COSHF 1
19024_ACEOF
db9f46a9
TG
19025
19026 fi
1409cd0b 19027
1409cd0b 19028
1409cd0b 19029
db9f46a9
TG
19030
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
19032$as_echo_n "checking for cosh... " >&6; }
22e05272 19033if ${gcc_cv_math_func_cosh+:} false; then :
5213506e 19034 $as_echo_n "(cached) " >&6
1409cd0b 19035else
db9f46a9 19036 if test x$gcc_no_link = xyes; then
22e05272 19037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19038fi
5213506e 19039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19040/* end confdefs.h. */
19041
db9f46a9
TG
19042#ifdef HAVE_COMPLEX_H
19043#include <complex.h>
1409cd0b 19044#endif
db9f46a9
TG
19045#ifdef HAVE_MATH_H
19046#include <math.h>
19047#endif
19048
19049int (*ptr)() = (int (*)())cosh;
19050
1409cd0b
FXC
19051int
19052main ()
19053{
1409cd0b
FXC
19054 return 0;
19055}
db9f46a9 19056
1409cd0b 19057_ACEOF
5213506e 19058if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19059 gcc_cv_math_func_cosh=yes
1409cd0b 19060else
db9f46a9 19061 gcc_cv_math_func_cosh=no
1409cd0b 19062fi
5213506e
RW
19063rm -f core conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19065fi
db9f46a9
TG
19066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
19067$as_echo "$gcc_cv_math_func_cosh" >&6; }
19068 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 19069
f38a14ca
TG
19070cat >>confdefs.h <<_ACEOF
19071#define HAVE_COSH 1
19072_ACEOF
1409cd0b 19073
db9f46a9 19074 fi
1409cd0b 19075
1409cd0b 19076
db9f46a9
TG
19077
19078
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
19080$as_echo_n "checking for coshl... " >&6; }
22e05272 19081if ${gcc_cv_math_func_coshl+:} false; then :
5213506e 19082 $as_echo_n "(cached) " >&6
1409cd0b 19083else
db9f46a9 19084 if test x$gcc_no_link = xyes; then
22e05272 19085 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19086fi
5213506e 19087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19088/* end confdefs.h. */
19089
db9f46a9
TG
19090#ifdef HAVE_COMPLEX_H
19091#include <complex.h>
19092#endif
19093#ifdef HAVE_MATH_H
19094#include <math.h>
1409cd0b 19095#endif
db9f46a9
TG
19096
19097int (*ptr)() = (int (*)())coshl;
19098
1409cd0b
FXC
19099int
19100main ()
19101{
1409cd0b
FXC
19102 return 0;
19103}
db9f46a9 19104
1409cd0b 19105_ACEOF
5213506e 19106if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19107 gcc_cv_math_func_coshl=yes
1409cd0b 19108else
db9f46a9 19109 gcc_cv_math_func_coshl=no
1409cd0b 19110fi
5213506e
RW
19111rm -f core conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19113fi
db9f46a9
TG
19114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
19115$as_echo "$gcc_cv_math_func_coshl" >&6; }
19116 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 19117
f38a14ca
TG
19118cat >>confdefs.h <<_ACEOF
19119#define HAVE_COSHL 1
19120_ACEOF
db9f46a9
TG
19121
19122 fi
1409cd0b 19123
1409cd0b 19124
1409cd0b 19125
db9f46a9
TG
19126
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19128$as_echo_n "checking for ccoshf... " >&6; }
22e05272 19129if ${gcc_cv_math_func_ccoshf+:} false; then :
5213506e 19130 $as_echo_n "(cached) " >&6
1409cd0b 19131else
db9f46a9 19132 if test x$gcc_no_link = xyes; then
22e05272 19133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19134fi
5213506e 19135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19136/* end confdefs.h. */
19137
db9f46a9
TG
19138#ifdef HAVE_COMPLEX_H
19139#include <complex.h>
1409cd0b 19140#endif
db9f46a9
TG
19141#ifdef HAVE_MATH_H
19142#include <math.h>
19143#endif
19144
19145int (*ptr)() = (int (*)())ccoshf;
19146
1409cd0b
FXC
19147int
19148main ()
19149{
1409cd0b
FXC
19150 return 0;
19151}
db9f46a9 19152
1409cd0b 19153_ACEOF
5213506e 19154if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19155 gcc_cv_math_func_ccoshf=yes
1409cd0b 19156else
db9f46a9 19157 gcc_cv_math_func_ccoshf=no
1409cd0b 19158fi
5213506e
RW
19159rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19161fi
db9f46a9
TG
19162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19163$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19164 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 19165
f38a14ca
TG
19166cat >>confdefs.h <<_ACEOF
19167#define HAVE_CCOSHF 1
19168_ACEOF
db9f46a9
TG
19169
19170 fi
19171
1409cd0b 19172
1409cd0b 19173
1409cd0b 19174
db9f46a9
TG
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19176$as_echo_n "checking for ccosh... " >&6; }
22e05272 19177if ${gcc_cv_math_func_ccosh+:} false; then :
5213506e 19178 $as_echo_n "(cached) " >&6
1409cd0b 19179else
db9f46a9 19180 if test x$gcc_no_link = xyes; then
22e05272 19181 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19182fi
5213506e 19183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19184/* end confdefs.h. */
19185
db9f46a9
TG
19186#ifdef HAVE_COMPLEX_H
19187#include <complex.h>
19188#endif
19189#ifdef HAVE_MATH_H
19190#include <math.h>
1409cd0b 19191#endif
db9f46a9
TG
19192
19193int (*ptr)() = (int (*)())ccosh;
19194
1409cd0b
FXC
19195int
19196main ()
19197{
1409cd0b
FXC
19198 return 0;
19199}
db9f46a9 19200
1409cd0b 19201_ACEOF
5213506e 19202if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19203 gcc_cv_math_func_ccosh=yes
1409cd0b 19204else
db9f46a9 19205 gcc_cv_math_func_ccosh=no
1409cd0b 19206fi
5213506e
RW
19207rm -f core conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19209fi
db9f46a9
TG
19210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19211$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19212 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 19213
f38a14ca
TG
19214cat >>confdefs.h <<_ACEOF
19215#define HAVE_CCOSH 1
19216_ACEOF
db9f46a9
TG
19217
19218 fi
1409cd0b 19219
1409cd0b 19220
1409cd0b 19221
db9f46a9
TG
19222
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19224$as_echo_n "checking for ccoshl... " >&6; }
22e05272 19225if ${gcc_cv_math_func_ccoshl+:} false; then :
5213506e 19226 $as_echo_n "(cached) " >&6
1409cd0b 19227else
db9f46a9 19228 if test x$gcc_no_link = xyes; then
22e05272 19229 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19230fi
5213506e 19231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19232/* end confdefs.h. */
19233
db9f46a9
TG
19234#ifdef HAVE_COMPLEX_H
19235#include <complex.h>
1409cd0b 19236#endif
db9f46a9
TG
19237#ifdef HAVE_MATH_H
19238#include <math.h>
19239#endif
19240
19241int (*ptr)() = (int (*)())ccoshl;
19242
1409cd0b
FXC
19243int
19244main ()
19245{
1409cd0b
FXC
19246 return 0;
19247}
db9f46a9 19248
1409cd0b 19249_ACEOF
5213506e 19250if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19251 gcc_cv_math_func_ccoshl=yes
1409cd0b 19252else
db9f46a9 19253 gcc_cv_math_func_ccoshl=no
1409cd0b 19254fi
5213506e
RW
19255rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19257fi
db9f46a9
TG
19258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19259$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19260 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 19261
f38a14ca
TG
19262cat >>confdefs.h <<_ACEOF
19263#define HAVE_CCOSHL 1
19264_ACEOF
1409cd0b 19265
db9f46a9 19266 fi
1409cd0b 19267
1409cd0b 19268
db9f46a9
TG
19269
19270
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19272$as_echo_n "checking for expf... " >&6; }
22e05272 19273if ${gcc_cv_math_func_expf+:} false; then :
5213506e 19274 $as_echo_n "(cached) " >&6
1409cd0b 19275else
db9f46a9 19276 if test x$gcc_no_link = xyes; then
22e05272 19277 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19278fi
5213506e 19279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19280/* end confdefs.h. */
19281
db9f46a9
TG
19282#ifdef HAVE_COMPLEX_H
19283#include <complex.h>
19284#endif
19285#ifdef HAVE_MATH_H
19286#include <math.h>
1409cd0b 19287#endif
db9f46a9
TG
19288
19289int (*ptr)() = (int (*)())expf;
19290
1409cd0b
FXC
19291int
19292main ()
19293{
1409cd0b
FXC
19294 return 0;
19295}
db9f46a9 19296
1409cd0b 19297_ACEOF
5213506e 19298if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19299 gcc_cv_math_func_expf=yes
1409cd0b 19300else
db9f46a9 19301 gcc_cv_math_func_expf=no
1409cd0b 19302fi
5213506e
RW
19303rm -f core conftest.err conftest.$ac_objext \
19304 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19305fi
db9f46a9
TG
19306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19307$as_echo "$gcc_cv_math_func_expf" >&6; }
19308 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 19309
f38a14ca
TG
19310cat >>confdefs.h <<_ACEOF
19311#define HAVE_EXPF 1
19312_ACEOF
db9f46a9
TG
19313
19314 fi
1409cd0b 19315
1409cd0b 19316
1409cd0b 19317
db9f46a9
TG
19318
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19320$as_echo_n "checking for exp... " >&6; }
22e05272 19321if ${gcc_cv_math_func_exp+:} false; then :
5213506e 19322 $as_echo_n "(cached) " >&6
1409cd0b 19323else
db9f46a9 19324 if test x$gcc_no_link = xyes; then
22e05272 19325 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19326fi
5213506e 19327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19328/* end confdefs.h. */
19329
db9f46a9
TG
19330#ifdef HAVE_COMPLEX_H
19331#include <complex.h>
1409cd0b 19332#endif
db9f46a9
TG
19333#ifdef HAVE_MATH_H
19334#include <math.h>
19335#endif
19336
19337int (*ptr)() = (int (*)())exp;
19338
1409cd0b
FXC
19339int
19340main ()
19341{
1409cd0b
FXC
19342 return 0;
19343}
db9f46a9 19344
1409cd0b 19345_ACEOF
5213506e 19346if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19347 gcc_cv_math_func_exp=yes
1409cd0b 19348else
db9f46a9 19349 gcc_cv_math_func_exp=no
1409cd0b 19350fi
5213506e
RW
19351rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19353fi
db9f46a9
TG
19354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19355$as_echo "$gcc_cv_math_func_exp" >&6; }
19356 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 19357
f38a14ca
TG
19358cat >>confdefs.h <<_ACEOF
19359#define HAVE_EXP 1
19360_ACEOF
db9f46a9
TG
19361
19362 fi
19363
1409cd0b 19364
1409cd0b 19365
1409cd0b 19366
db9f46a9
TG
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19368$as_echo_n "checking for expl... " >&6; }
22e05272 19369if ${gcc_cv_math_func_expl+:} false; then :
5213506e 19370 $as_echo_n "(cached) " >&6
1409cd0b 19371else
db9f46a9 19372 if test x$gcc_no_link = xyes; then
22e05272 19373 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19374fi
5213506e 19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19376/* end confdefs.h. */
19377
db9f46a9
TG
19378#ifdef HAVE_COMPLEX_H
19379#include <complex.h>
19380#endif
19381#ifdef HAVE_MATH_H
19382#include <math.h>
1409cd0b 19383#endif
db9f46a9
TG
19384
19385int (*ptr)() = (int (*)())expl;
19386
1409cd0b
FXC
19387int
19388main ()
19389{
1409cd0b
FXC
19390 return 0;
19391}
db9f46a9 19392
1409cd0b 19393_ACEOF
5213506e 19394if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19395 gcc_cv_math_func_expl=yes
1409cd0b 19396else
db9f46a9 19397 gcc_cv_math_func_expl=no
1409cd0b 19398fi
5213506e
RW
19399rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19401fi
db9f46a9
TG
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19403$as_echo "$gcc_cv_math_func_expl" >&6; }
19404 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 19405
f38a14ca
TG
19406cat >>confdefs.h <<_ACEOF
19407#define HAVE_EXPL 1
19408_ACEOF
db9f46a9
TG
19409
19410 fi
1409cd0b 19411
1409cd0b 19412
1409cd0b 19413
db9f46a9
TG
19414
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19416$as_echo_n "checking for cexpf... " >&6; }
22e05272 19417if ${gcc_cv_math_func_cexpf+:} false; then :
5213506e 19418 $as_echo_n "(cached) " >&6
1409cd0b 19419else
db9f46a9 19420 if test x$gcc_no_link = xyes; then
22e05272 19421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19422fi
5213506e 19423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19424/* end confdefs.h. */
19425
db9f46a9
TG
19426#ifdef HAVE_COMPLEX_H
19427#include <complex.h>
1409cd0b 19428#endif
db9f46a9
TG
19429#ifdef HAVE_MATH_H
19430#include <math.h>
19431#endif
19432
19433int (*ptr)() = (int (*)())cexpf;
19434
1409cd0b
FXC
19435int
19436main ()
19437{
1409cd0b
FXC
19438 return 0;
19439}
db9f46a9 19440
1409cd0b 19441_ACEOF
5213506e 19442if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19443 gcc_cv_math_func_cexpf=yes
1409cd0b 19444else
db9f46a9 19445 gcc_cv_math_func_cexpf=no
1409cd0b 19446fi
5213506e
RW
19447rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19449fi
db9f46a9
TG
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19451$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19452 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 19453
f38a14ca
TG
19454cat >>confdefs.h <<_ACEOF
19455#define HAVE_CEXPF 1
19456_ACEOF
1409cd0b 19457
db9f46a9 19458 fi
1409cd0b 19459
1409cd0b 19460
db9f46a9
TG
19461
19462
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19464$as_echo_n "checking for cexp... " >&6; }
22e05272 19465if ${gcc_cv_math_func_cexp+:} false; then :
5213506e 19466 $as_echo_n "(cached) " >&6
1409cd0b 19467else
db9f46a9 19468 if test x$gcc_no_link = xyes; then
22e05272 19469 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19470fi
5213506e 19471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19472/* end confdefs.h. */
19473
db9f46a9
TG
19474#ifdef HAVE_COMPLEX_H
19475#include <complex.h>
19476#endif
19477#ifdef HAVE_MATH_H
19478#include <math.h>
1409cd0b 19479#endif
db9f46a9
TG
19480
19481int (*ptr)() = (int (*)())cexp;
19482
1409cd0b
FXC
19483int
19484main ()
19485{
1409cd0b
FXC
19486 return 0;
19487}
db9f46a9 19488
1409cd0b 19489_ACEOF
5213506e 19490if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19491 gcc_cv_math_func_cexp=yes
1409cd0b 19492else
db9f46a9 19493 gcc_cv_math_func_cexp=no
1409cd0b 19494fi
5213506e
RW
19495rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19497fi
db9f46a9
TG
19498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19499$as_echo "$gcc_cv_math_func_cexp" >&6; }
19500 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19501
f38a14ca
TG
19502cat >>confdefs.h <<_ACEOF
19503#define HAVE_CEXP 1
19504_ACEOF
db9f46a9
TG
19505
19506 fi
1409cd0b 19507
1409cd0b 19508
1409cd0b 19509
db9f46a9
TG
19510
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19512$as_echo_n "checking for cexpl... " >&6; }
22e05272 19513if ${gcc_cv_math_func_cexpl+:} false; then :
5213506e 19514 $as_echo_n "(cached) " >&6
1409cd0b 19515else
db9f46a9 19516 if test x$gcc_no_link = xyes; then
22e05272 19517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19518fi
5213506e 19519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19520/* end confdefs.h. */
19521
db9f46a9
TG
19522#ifdef HAVE_COMPLEX_H
19523#include <complex.h>
1409cd0b 19524#endif
db9f46a9
TG
19525#ifdef HAVE_MATH_H
19526#include <math.h>
19527#endif
19528
19529int (*ptr)() = (int (*)())cexpl;
19530
1409cd0b
FXC
19531int
19532main ()
19533{
1409cd0b
FXC
19534 return 0;
19535}
db9f46a9 19536
1409cd0b 19537_ACEOF
5213506e 19538if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19539 gcc_cv_math_func_cexpl=yes
1409cd0b 19540else
db9f46a9 19541 gcc_cv_math_func_cexpl=no
1409cd0b 19542fi
5213506e
RW
19543rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19545fi
db9f46a9
TG
19546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19547$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19548 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19549
f38a14ca
TG
19550cat >>confdefs.h <<_ACEOF
19551#define HAVE_CEXPL 1
19552_ACEOF
db9f46a9
TG
19553
19554 fi
19555
1409cd0b 19556
1409cd0b 19557
1409cd0b 19558
db9f46a9
TG
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19560$as_echo_n "checking for fabsf... " >&6; }
22e05272 19561if ${gcc_cv_math_func_fabsf+:} false; then :
5213506e 19562 $as_echo_n "(cached) " >&6
1409cd0b 19563else
db9f46a9 19564 if test x$gcc_no_link = xyes; then
22e05272 19565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19566fi
5213506e 19567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19568/* end confdefs.h. */
19569
db9f46a9
TG
19570#ifdef HAVE_COMPLEX_H
19571#include <complex.h>
19572#endif
19573#ifdef HAVE_MATH_H
19574#include <math.h>
1409cd0b 19575#endif
db9f46a9
TG
19576
19577int (*ptr)() = (int (*)())fabsf;
19578
1409cd0b
FXC
19579int
19580main ()
19581{
1409cd0b
FXC
19582 return 0;
19583}
db9f46a9 19584
1409cd0b 19585_ACEOF
5213506e 19586if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19587 gcc_cv_math_func_fabsf=yes
1409cd0b 19588else
db9f46a9 19589 gcc_cv_math_func_fabsf=no
1409cd0b 19590fi
5213506e
RW
19591rm -f core conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19593fi
db9f46a9
TG
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19595$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19596 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19597
f38a14ca
TG
19598cat >>confdefs.h <<_ACEOF
19599#define HAVE_FABSF 1
19600_ACEOF
db9f46a9
TG
19601
19602 fi
1409cd0b 19603
1409cd0b 19604
1409cd0b 19605
db9f46a9
TG
19606
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19608$as_echo_n "checking for fabs... " >&6; }
22e05272 19609if ${gcc_cv_math_func_fabs+:} false; then :
5213506e 19610 $as_echo_n "(cached) " >&6
1409cd0b 19611else
db9f46a9 19612 if test x$gcc_no_link = xyes; then
22e05272 19613 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19614fi
5213506e 19615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19616/* end confdefs.h. */
19617
db9f46a9
TG
19618#ifdef HAVE_COMPLEX_H
19619#include <complex.h>
1409cd0b 19620#endif
db9f46a9
TG
19621#ifdef HAVE_MATH_H
19622#include <math.h>
19623#endif
19624
19625int (*ptr)() = (int (*)())fabs;
19626
1409cd0b
FXC
19627int
19628main ()
19629{
1409cd0b
FXC
19630 return 0;
19631}
db9f46a9 19632
1409cd0b 19633_ACEOF
5213506e 19634if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19635 gcc_cv_math_func_fabs=yes
1409cd0b 19636else
db9f46a9 19637 gcc_cv_math_func_fabs=no
1409cd0b 19638fi
5213506e
RW
19639rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19641fi
db9f46a9
TG
19642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19643$as_echo "$gcc_cv_math_func_fabs" >&6; }
19644 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19645
f38a14ca
TG
19646cat >>confdefs.h <<_ACEOF
19647#define HAVE_FABS 1
19648_ACEOF
1409cd0b 19649
db9f46a9 19650 fi
1409cd0b 19651
1409cd0b 19652
db9f46a9
TG
19653
19654
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19656$as_echo_n "checking for fabsl... " >&6; }
22e05272 19657if ${gcc_cv_math_func_fabsl+:} false; then :
5213506e 19658 $as_echo_n "(cached) " >&6
1409cd0b 19659else
db9f46a9 19660 if test x$gcc_no_link = xyes; then
22e05272 19661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19662fi
5213506e 19663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19664/* end confdefs.h. */
19665
db9f46a9
TG
19666#ifdef HAVE_COMPLEX_H
19667#include <complex.h>
19668#endif
19669#ifdef HAVE_MATH_H
19670#include <math.h>
1409cd0b 19671#endif
db9f46a9
TG
19672
19673int (*ptr)() = (int (*)())fabsl;
19674
1409cd0b
FXC
19675int
19676main ()
19677{
1409cd0b
FXC
19678 return 0;
19679}
db9f46a9 19680
1409cd0b 19681_ACEOF
5213506e 19682if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19683 gcc_cv_math_func_fabsl=yes
1409cd0b 19684else
db9f46a9 19685 gcc_cv_math_func_fabsl=no
1409cd0b 19686fi
5213506e
RW
19687rm -f core conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19689fi
db9f46a9
TG
19690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19691$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19692 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19693
f38a14ca
TG
19694cat >>confdefs.h <<_ACEOF
19695#define HAVE_FABSL 1
19696_ACEOF
db9f46a9
TG
19697
19698 fi
1409cd0b 19699
1409cd0b 19700
1409cd0b 19701
db9f46a9
TG
19702
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19704$as_echo_n "checking for cabsf... " >&6; }
22e05272 19705if ${gcc_cv_math_func_cabsf+:} false; then :
5213506e 19706 $as_echo_n "(cached) " >&6
1409cd0b 19707else
db9f46a9 19708 if test x$gcc_no_link = xyes; then
22e05272 19709 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19710fi
5213506e 19711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19712/* end confdefs.h. */
19713
db9f46a9
TG
19714#ifdef HAVE_COMPLEX_H
19715#include <complex.h>
1409cd0b 19716#endif
db9f46a9
TG
19717#ifdef HAVE_MATH_H
19718#include <math.h>
19719#endif
19720
19721int (*ptr)() = (int (*)())cabsf;
19722
1409cd0b
FXC
19723int
19724main ()
19725{
1409cd0b
FXC
19726 return 0;
19727}
db9f46a9 19728
1409cd0b 19729_ACEOF
5213506e 19730if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19731 gcc_cv_math_func_cabsf=yes
1409cd0b 19732else
db9f46a9 19733 gcc_cv_math_func_cabsf=no
1409cd0b 19734fi
5213506e
RW
19735rm -f core conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19737fi
db9f46a9
TG
19738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19739$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19740 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19741
f38a14ca
TG
19742cat >>confdefs.h <<_ACEOF
19743#define HAVE_CABSF 1
19744_ACEOF
db9f46a9
TG
19745
19746 fi
19747
1409cd0b 19748
1409cd0b 19749
1409cd0b 19750
db9f46a9
TG
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19752$as_echo_n "checking for cabs... " >&6; }
22e05272 19753if ${gcc_cv_math_func_cabs+:} false; then :
5213506e 19754 $as_echo_n "(cached) " >&6
1409cd0b 19755else
db9f46a9 19756 if test x$gcc_no_link = xyes; then
22e05272 19757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19758fi
5213506e 19759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19760/* end confdefs.h. */
19761
db9f46a9
TG
19762#ifdef HAVE_COMPLEX_H
19763#include <complex.h>
19764#endif
19765#ifdef HAVE_MATH_H
19766#include <math.h>
1409cd0b 19767#endif
db9f46a9
TG
19768
19769int (*ptr)() = (int (*)())cabs;
19770
1409cd0b
FXC
19771int
19772main ()
19773{
1409cd0b
FXC
19774 return 0;
19775}
db9f46a9 19776
1409cd0b 19777_ACEOF
5213506e 19778if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19779 gcc_cv_math_func_cabs=yes
1409cd0b 19780else
db9f46a9 19781 gcc_cv_math_func_cabs=no
1409cd0b 19782fi
5213506e
RW
19783rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19785fi
db9f46a9
TG
19786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19787$as_echo "$gcc_cv_math_func_cabs" >&6; }
19788 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19789
f38a14ca
TG
19790cat >>confdefs.h <<_ACEOF
19791#define HAVE_CABS 1
19792_ACEOF
db9f46a9
TG
19793
19794 fi
1409cd0b 19795
1409cd0b 19796
1409cd0b 19797
db9f46a9
TG
19798
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19800$as_echo_n "checking for cabsl... " >&6; }
22e05272 19801if ${gcc_cv_math_func_cabsl+:} false; then :
5213506e 19802 $as_echo_n "(cached) " >&6
1409cd0b 19803else
db9f46a9 19804 if test x$gcc_no_link = xyes; then
22e05272 19805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19806fi
5213506e 19807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19808/* end confdefs.h. */
19809
db9f46a9
TG
19810#ifdef HAVE_COMPLEX_H
19811#include <complex.h>
1409cd0b 19812#endif
db9f46a9
TG
19813#ifdef HAVE_MATH_H
19814#include <math.h>
19815#endif
19816
19817int (*ptr)() = (int (*)())cabsl;
19818
1409cd0b
FXC
19819int
19820main ()
19821{
1409cd0b
FXC
19822 return 0;
19823}
db9f46a9 19824
1409cd0b 19825_ACEOF
5213506e 19826if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19827 gcc_cv_math_func_cabsl=yes
1409cd0b 19828else
db9f46a9 19829 gcc_cv_math_func_cabsl=no
1409cd0b 19830fi
5213506e
RW
19831rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19833fi
db9f46a9
TG
19834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19835$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19836 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19837
f38a14ca
TG
19838cat >>confdefs.h <<_ACEOF
19839#define HAVE_CABSL 1
19840_ACEOF
1409cd0b 19841
db9f46a9 19842 fi
1409cd0b 19843
1409cd0b 19844
db9f46a9
TG
19845
19846
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19848$as_echo_n "checking for floorf... " >&6; }
22e05272 19849if ${gcc_cv_math_func_floorf+:} false; then :
5213506e 19850 $as_echo_n "(cached) " >&6
1409cd0b 19851else
db9f46a9 19852 if test x$gcc_no_link = xyes; then
22e05272 19853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19854fi
5213506e 19855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19856/* end confdefs.h. */
19857
db9f46a9
TG
19858#ifdef HAVE_COMPLEX_H
19859#include <complex.h>
19860#endif
19861#ifdef HAVE_MATH_H
19862#include <math.h>
1409cd0b 19863#endif
db9f46a9
TG
19864
19865int (*ptr)() = (int (*)())floorf;
19866
1409cd0b
FXC
19867int
19868main ()
19869{
5213506e
RW
19870 return 0;
19871}
db9f46a9 19872
5213506e
RW
19873_ACEOF
19874if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19875 gcc_cv_math_func_floorf=yes
1409cd0b 19876else
db9f46a9 19877 gcc_cv_math_func_floorf=no
1409cd0b 19878fi
5213506e
RW
19879rm -f core conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19881fi
db9f46a9
TG
19882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19883$as_echo "$gcc_cv_math_func_floorf" >&6; }
19884 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19885
f38a14ca
TG
19886cat >>confdefs.h <<_ACEOF
19887#define HAVE_FLOORF 1
19888_ACEOF
db9f46a9
TG
19889
19890 fi
1409cd0b 19891
1409cd0b 19892
1409cd0b 19893
db9f46a9
TG
19894
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19896$as_echo_n "checking for floor... " >&6; }
22e05272 19897if ${gcc_cv_math_func_floor+:} false; then :
5213506e 19898 $as_echo_n "(cached) " >&6
1409cd0b 19899else
db9f46a9 19900 if test x$gcc_no_link = xyes; then
22e05272 19901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19902fi
5213506e 19903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19904/* end confdefs.h. */
19905
db9f46a9
TG
19906#ifdef HAVE_COMPLEX_H
19907#include <complex.h>
1409cd0b 19908#endif
db9f46a9
TG
19909#ifdef HAVE_MATH_H
19910#include <math.h>
19911#endif
19912
19913int (*ptr)() = (int (*)())floor;
19914
1409cd0b
FXC
19915int
19916main ()
19917{
1409cd0b
FXC
19918 return 0;
19919}
db9f46a9 19920
1409cd0b 19921_ACEOF
5213506e 19922if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19923 gcc_cv_math_func_floor=yes
1409cd0b 19924else
db9f46a9 19925 gcc_cv_math_func_floor=no
1409cd0b 19926fi
5213506e
RW
19927rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19929fi
db9f46a9
TG
19930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19931$as_echo "$gcc_cv_math_func_floor" >&6; }
19932 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19933
f38a14ca
TG
19934cat >>confdefs.h <<_ACEOF
19935#define HAVE_FLOOR 1
19936_ACEOF
db9f46a9
TG
19937
19938 fi
19939
1409cd0b 19940
1409cd0b 19941
1409cd0b 19942
db9f46a9
TG
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19944$as_echo_n "checking for floorl... " >&6; }
22e05272 19945if ${gcc_cv_math_func_floorl+:} false; then :
5213506e 19946 $as_echo_n "(cached) " >&6
eb647f7d 19947else
db9f46a9 19948 if test x$gcc_no_link = xyes; then
22e05272 19949 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19950fi
5213506e 19951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19952/* end confdefs.h. */
19953
db9f46a9
TG
19954#ifdef HAVE_COMPLEX_H
19955#include <complex.h>
19956#endif
19957#ifdef HAVE_MATH_H
19958#include <math.h>
eb647f7d 19959#endif
db9f46a9
TG
19960
19961int (*ptr)() = (int (*)())floorl;
19962
eb647f7d
FXC
19963int
19964main ()
19965{
eb647f7d
FXC
19966 return 0;
19967}
db9f46a9 19968
eb647f7d 19969_ACEOF
5213506e 19970if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19971 gcc_cv_math_func_floorl=yes
eb647f7d 19972else
db9f46a9 19973 gcc_cv_math_func_floorl=no
eb647f7d 19974fi
5213506e
RW
19975rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19977fi
db9f46a9
TG
19978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19979$as_echo "$gcc_cv_math_func_floorl" >&6; }
19980 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19981
f38a14ca
TG
19982cat >>confdefs.h <<_ACEOF
19983#define HAVE_FLOORL 1
19984_ACEOF
db9f46a9
TG
19985
19986 fi
eb647f7d 19987
eb647f7d 19988
eb647f7d 19989
db9f46a9 19990
1868599f
JJ
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19992$as_echo_n "checking for fmaf... " >&6; }
19993if ${gcc_cv_math_func_fmaf+:} false; then :
19994 $as_echo_n "(cached) " >&6
19995else
19996 if test x$gcc_no_link = xyes; then
19997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19998fi
19999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20000/* end confdefs.h. */
20001
20002#ifdef HAVE_COMPLEX_H
20003#include <complex.h>
20004#endif
20005#ifdef HAVE_MATH_H
20006#include <math.h>
20007#endif
20008
20009int (*ptr)() = (int (*)())fmaf;
20010
20011int
20012main ()
20013{
20014 return 0;
20015}
20016
20017_ACEOF
20018if ac_fn_c_try_link "$LINENO"; then :
20019 gcc_cv_math_func_fmaf=yes
20020else
20021 gcc_cv_math_func_fmaf=no
20022fi
20023rm -f core conftest.err conftest.$ac_objext \
20024 conftest$ac_exeext conftest.$ac_ext
20025fi
20026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
20027$as_echo "$gcc_cv_math_func_fmaf" >&6; }
20028 if test $gcc_cv_math_func_fmaf = yes; then
20029
20030cat >>confdefs.h <<_ACEOF
20031#define HAVE_FMAF 1
20032_ACEOF
20033
20034 fi
20035
20036
20037
20038
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
20040$as_echo_n "checking for fma... " >&6; }
20041if ${gcc_cv_math_func_fma+:} false; then :
20042 $as_echo_n "(cached) " >&6
20043else
20044 if test x$gcc_no_link = xyes; then
20045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20046fi
20047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048/* end confdefs.h. */
20049
20050#ifdef HAVE_COMPLEX_H
20051#include <complex.h>
20052#endif
20053#ifdef HAVE_MATH_H
20054#include <math.h>
20055#endif
20056
20057int (*ptr)() = (int (*)())fma;
20058
20059int
20060main ()
20061{
20062 return 0;
20063}
20064
20065_ACEOF
20066if ac_fn_c_try_link "$LINENO"; then :
20067 gcc_cv_math_func_fma=yes
20068else
20069 gcc_cv_math_func_fma=no
20070fi
20071rm -f core conftest.err conftest.$ac_objext \
20072 conftest$ac_exeext conftest.$ac_ext
20073fi
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
20075$as_echo "$gcc_cv_math_func_fma" >&6; }
20076 if test $gcc_cv_math_func_fma = yes; then
20077
20078cat >>confdefs.h <<_ACEOF
20079#define HAVE_FMA 1
20080_ACEOF
20081
20082 fi
20083
20084
20085
20086
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
20088$as_echo_n "checking for fmal... " >&6; }
20089if ${gcc_cv_math_func_fmal+:} false; then :
20090 $as_echo_n "(cached) " >&6
20091else
20092 if test x$gcc_no_link = xyes; then
20093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20094fi
20095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096/* end confdefs.h. */
20097
20098#ifdef HAVE_COMPLEX_H
20099#include <complex.h>
20100#endif
20101#ifdef HAVE_MATH_H
20102#include <math.h>
20103#endif
20104
20105int (*ptr)() = (int (*)())fmal;
20106
20107int
20108main ()
20109{
20110 return 0;
20111}
20112
20113_ACEOF
20114if ac_fn_c_try_link "$LINENO"; then :
20115 gcc_cv_math_func_fmal=yes
20116else
20117 gcc_cv_math_func_fmal=no
20118fi
20119rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121fi
20122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
20123$as_echo "$gcc_cv_math_func_fmal" >&6; }
20124 if test $gcc_cv_math_func_fmal = yes; then
20125
20126cat >>confdefs.h <<_ACEOF
20127#define HAVE_FMAL 1
20128_ACEOF
20129
20130 fi
20131
20132
20133
20134
db9f46a9
TG
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20136$as_echo_n "checking for fmodf... " >&6; }
22e05272 20137if ${gcc_cv_math_func_fmodf+:} false; then :
5213506e 20138 $as_echo_n "(cached) " >&6
eb647f7d 20139else
db9f46a9 20140 if test x$gcc_no_link = xyes; then
22e05272 20141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20142fi
5213506e 20143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20144/* end confdefs.h. */
20145
db9f46a9
TG
20146#ifdef HAVE_COMPLEX_H
20147#include <complex.h>
eb647f7d 20148#endif
db9f46a9
TG
20149#ifdef HAVE_MATH_H
20150#include <math.h>
20151#endif
20152
20153int (*ptr)() = (int (*)())fmodf;
20154
eb647f7d
FXC
20155int
20156main ()
20157{
eb647f7d
FXC
20158 return 0;
20159}
db9f46a9 20160
eb647f7d 20161_ACEOF
5213506e 20162if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20163 gcc_cv_math_func_fmodf=yes
eb647f7d 20164else
db9f46a9 20165 gcc_cv_math_func_fmodf=no
eb647f7d 20166fi
5213506e
RW
20167rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20169fi
db9f46a9
TG
20170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20171$as_echo "$gcc_cv_math_func_fmodf" >&6; }
20172 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 20173
f38a14ca
TG
20174cat >>confdefs.h <<_ACEOF
20175#define HAVE_FMODF 1
20176_ACEOF
eb647f7d 20177
db9f46a9 20178 fi
eb647f7d 20179
eb647f7d 20180
db9f46a9
TG
20181
20182
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20184$as_echo_n "checking for fmod... " >&6; }
22e05272 20185if ${gcc_cv_math_func_fmod+:} false; then :
5213506e 20186 $as_echo_n "(cached) " >&6
eb647f7d 20187else
db9f46a9 20188 if test x$gcc_no_link = xyes; then
22e05272 20189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20190fi
5213506e 20191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20192/* end confdefs.h. */
20193
db9f46a9
TG
20194#ifdef HAVE_COMPLEX_H
20195#include <complex.h>
20196#endif
20197#ifdef HAVE_MATH_H
20198#include <math.h>
eb647f7d 20199#endif
db9f46a9
TG
20200
20201int (*ptr)() = (int (*)())fmod;
20202
eb647f7d
FXC
20203int
20204main ()
20205{
eb647f7d
FXC
20206 return 0;
20207}
db9f46a9 20208
eb647f7d 20209_ACEOF
5213506e 20210if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20211 gcc_cv_math_func_fmod=yes
eb647f7d 20212else
db9f46a9 20213 gcc_cv_math_func_fmod=no
eb647f7d 20214fi
5213506e
RW
20215rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20217fi
db9f46a9
TG
20218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20219$as_echo "$gcc_cv_math_func_fmod" >&6; }
20220 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 20221
f38a14ca
TG
20222cat >>confdefs.h <<_ACEOF
20223#define HAVE_FMOD 1
20224_ACEOF
db9f46a9
TG
20225
20226 fi
eb647f7d 20227
eb647f7d 20228
eb647f7d 20229
db9f46a9
TG
20230
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20232$as_echo_n "checking for fmodl... " >&6; }
22e05272 20233if ${gcc_cv_math_func_fmodl+:} false; then :
5213506e 20234 $as_echo_n "(cached) " >&6
1409cd0b 20235else
db9f46a9 20236 if test x$gcc_no_link = xyes; then
22e05272 20237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20238fi
5213506e 20239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20240/* end confdefs.h. */
20241
db9f46a9
TG
20242#ifdef HAVE_COMPLEX_H
20243#include <complex.h>
1409cd0b 20244#endif
db9f46a9
TG
20245#ifdef HAVE_MATH_H
20246#include <math.h>
20247#endif
20248
20249int (*ptr)() = (int (*)())fmodl;
20250
1409cd0b
FXC
20251int
20252main ()
20253{
1409cd0b
FXC
20254 return 0;
20255}
db9f46a9 20256
1409cd0b 20257_ACEOF
5213506e 20258if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20259 gcc_cv_math_func_fmodl=yes
1409cd0b 20260else
db9f46a9 20261 gcc_cv_math_func_fmodl=no
1409cd0b 20262fi
5213506e
RW
20263rm -f core conftest.err conftest.$ac_objext \
20264 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20265fi
db9f46a9
TG
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20267$as_echo "$gcc_cv_math_func_fmodl" >&6; }
20268 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 20269
f38a14ca
TG
20270cat >>confdefs.h <<_ACEOF
20271#define HAVE_FMODL 1
20272_ACEOF
db9f46a9
TG
20273
20274 fi
20275
1409cd0b 20276
1409cd0b 20277
1409cd0b 20278
db9f46a9
TG
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20280$as_echo_n "checking for frexpf... " >&6; }
22e05272 20281if ${gcc_cv_math_func_frexpf+:} false; then :
5213506e 20282 $as_echo_n "(cached) " >&6
1409cd0b 20283else
db9f46a9 20284 if test x$gcc_no_link = xyes; then
22e05272 20285 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20286fi
5213506e 20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20288/* end confdefs.h. */
20289
db9f46a9
TG
20290#ifdef HAVE_COMPLEX_H
20291#include <complex.h>
20292#endif
20293#ifdef HAVE_MATH_H
20294#include <math.h>
1409cd0b 20295#endif
db9f46a9
TG
20296
20297int (*ptr)() = (int (*)())frexpf;
20298
1409cd0b
FXC
20299int
20300main ()
20301{
1409cd0b
FXC
20302 return 0;
20303}
db9f46a9 20304
1409cd0b 20305_ACEOF
5213506e 20306if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20307 gcc_cv_math_func_frexpf=yes
1409cd0b 20308else
db9f46a9 20309 gcc_cv_math_func_frexpf=no
1409cd0b 20310fi
5213506e
RW
20311rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20313fi
db9f46a9
TG
20314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20315$as_echo "$gcc_cv_math_func_frexpf" >&6; }
20316 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 20317
f38a14ca
TG
20318cat >>confdefs.h <<_ACEOF
20319#define HAVE_FREXPF 1
20320_ACEOF
db9f46a9
TG
20321
20322 fi
1409cd0b 20323
1409cd0b 20324
1409cd0b 20325
db9f46a9
TG
20326
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20328$as_echo_n "checking for frexp... " >&6; }
22e05272 20329if ${gcc_cv_math_func_frexp+:} false; then :
5213506e 20330 $as_echo_n "(cached) " >&6
1409cd0b 20331else
db9f46a9 20332 if test x$gcc_no_link = xyes; then
22e05272 20333 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20334fi
5213506e 20335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20336/* end confdefs.h. */
20337
db9f46a9
TG
20338#ifdef HAVE_COMPLEX_H
20339#include <complex.h>
1409cd0b 20340#endif
db9f46a9
TG
20341#ifdef HAVE_MATH_H
20342#include <math.h>
20343#endif
20344
20345int (*ptr)() = (int (*)())frexp;
20346
1409cd0b
FXC
20347int
20348main ()
20349{
1409cd0b
FXC
20350 return 0;
20351}
db9f46a9 20352
1409cd0b 20353_ACEOF
5213506e 20354if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20355 gcc_cv_math_func_frexp=yes
1409cd0b 20356else
db9f46a9 20357 gcc_cv_math_func_frexp=no
1409cd0b 20358fi
5213506e
RW
20359rm -f core conftest.err conftest.$ac_objext \
20360 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20361fi
db9f46a9
TG
20362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20363$as_echo "$gcc_cv_math_func_frexp" >&6; }
20364 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 20365
f38a14ca
TG
20366cat >>confdefs.h <<_ACEOF
20367#define HAVE_FREXP 1
20368_ACEOF
1409cd0b 20369
db9f46a9 20370 fi
1409cd0b 20371
1409cd0b 20372
db9f46a9
TG
20373
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20376$as_echo_n "checking for frexpl... " >&6; }
22e05272 20377if ${gcc_cv_math_func_frexpl+:} false; then :
5213506e 20378 $as_echo_n "(cached) " >&6
1409cd0b 20379else
db9f46a9 20380 if test x$gcc_no_link = xyes; then
22e05272 20381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20382fi
5213506e 20383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20384/* end confdefs.h. */
20385
db9f46a9
TG
20386#ifdef HAVE_COMPLEX_H
20387#include <complex.h>
20388#endif
20389#ifdef HAVE_MATH_H
20390#include <math.h>
1409cd0b 20391#endif
db9f46a9
TG
20392
20393int (*ptr)() = (int (*)())frexpl;
20394
1409cd0b
FXC
20395int
20396main ()
20397{
1409cd0b
FXC
20398 return 0;
20399}
db9f46a9 20400
1409cd0b 20401_ACEOF
5213506e 20402if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20403 gcc_cv_math_func_frexpl=yes
1409cd0b 20404else
db9f46a9 20405 gcc_cv_math_func_frexpl=no
1409cd0b 20406fi
5213506e
RW
20407rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20409fi
db9f46a9
TG
20410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20411$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20412 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 20413
f38a14ca
TG
20414cat >>confdefs.h <<_ACEOF
20415#define HAVE_FREXPL 1
20416_ACEOF
db9f46a9
TG
20417
20418 fi
1409cd0b 20419
1409cd0b 20420
1409cd0b 20421
db9f46a9
TG
20422
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20424$as_echo_n "checking for hypotf... " >&6; }
22e05272 20425if ${gcc_cv_math_func_hypotf+:} false; then :
5213506e 20426 $as_echo_n "(cached) " >&6
1409cd0b 20427else
db9f46a9 20428 if test x$gcc_no_link = xyes; then
22e05272 20429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20430fi
5213506e 20431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20432/* end confdefs.h. */
20433
db9f46a9
TG
20434#ifdef HAVE_COMPLEX_H
20435#include <complex.h>
1409cd0b 20436#endif
db9f46a9
TG
20437#ifdef HAVE_MATH_H
20438#include <math.h>
20439#endif
20440
20441int (*ptr)() = (int (*)())hypotf;
20442
1409cd0b
FXC
20443int
20444main ()
20445{
1409cd0b
FXC
20446 return 0;
20447}
db9f46a9 20448
1409cd0b 20449_ACEOF
5213506e 20450if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20451 gcc_cv_math_func_hypotf=yes
1409cd0b 20452else
db9f46a9 20453 gcc_cv_math_func_hypotf=no
1409cd0b 20454fi
5213506e
RW
20455rm -f core conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20457fi
db9f46a9
TG
20458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20459$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20460 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 20461
f38a14ca
TG
20462cat >>confdefs.h <<_ACEOF
20463#define HAVE_HYPOTF 1
20464_ACEOF
db9f46a9
TG
20465
20466 fi
20467
1409cd0b 20468
1409cd0b 20469
1409cd0b 20470
db9f46a9
TG
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20472$as_echo_n "checking for hypot... " >&6; }
22e05272 20473if ${gcc_cv_math_func_hypot+:} false; then :
5213506e 20474 $as_echo_n "(cached) " >&6
1409cd0b 20475else
db9f46a9 20476 if test x$gcc_no_link = xyes; then
22e05272 20477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20478fi
5213506e 20479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20480/* end confdefs.h. */
20481
db9f46a9
TG
20482#ifdef HAVE_COMPLEX_H
20483#include <complex.h>
20484#endif
20485#ifdef HAVE_MATH_H
20486#include <math.h>
1409cd0b 20487#endif
db9f46a9
TG
20488
20489int (*ptr)() = (int (*)())hypot;
20490
1409cd0b
FXC
20491int
20492main ()
20493{
1409cd0b
FXC
20494 return 0;
20495}
db9f46a9 20496
1409cd0b 20497_ACEOF
5213506e 20498if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20499 gcc_cv_math_func_hypot=yes
1409cd0b 20500else
db9f46a9 20501 gcc_cv_math_func_hypot=no
1409cd0b 20502fi
5213506e
RW
20503rm -f core conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20505fi
db9f46a9
TG
20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20507$as_echo "$gcc_cv_math_func_hypot" >&6; }
20508 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 20509
f38a14ca
TG
20510cat >>confdefs.h <<_ACEOF
20511#define HAVE_HYPOT 1
20512_ACEOF
db9f46a9
TG
20513
20514 fi
1409cd0b 20515
1409cd0b 20516
1409cd0b 20517
db9f46a9
TG
20518
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20520$as_echo_n "checking for hypotl... " >&6; }
22e05272 20521if ${gcc_cv_math_func_hypotl+:} false; then :
5213506e 20522 $as_echo_n "(cached) " >&6
cc6d3bde 20523else
db9f46a9 20524 if test x$gcc_no_link = xyes; then
22e05272 20525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20526fi
5213506e 20527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20528/* end confdefs.h. */
20529
db9f46a9
TG
20530#ifdef HAVE_COMPLEX_H
20531#include <complex.h>
cc6d3bde 20532#endif
db9f46a9
TG
20533#ifdef HAVE_MATH_H
20534#include <math.h>
20535#endif
20536
20537int (*ptr)() = (int (*)())hypotl;
20538
cc6d3bde
SK
20539int
20540main ()
20541{
cc6d3bde
SK
20542 return 0;
20543}
db9f46a9 20544
cc6d3bde 20545_ACEOF
5213506e 20546if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20547 gcc_cv_math_func_hypotl=yes
cc6d3bde 20548else
db9f46a9 20549 gcc_cv_math_func_hypotl=no
cc6d3bde 20550fi
5213506e
RW
20551rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20553fi
db9f46a9
TG
20554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20555$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20556 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 20557
f38a14ca
TG
20558cat >>confdefs.h <<_ACEOF
20559#define HAVE_HYPOTL 1
20560_ACEOF
cc6d3bde 20561
db9f46a9 20562 fi
cc6d3bde 20563
cc6d3bde 20564
db9f46a9
TG
20565
20566
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20568$as_echo_n "checking for ldexpf... " >&6; }
22e05272 20569if ${gcc_cv_math_func_ldexpf+:} false; then :
5213506e 20570 $as_echo_n "(cached) " >&6
cc6d3bde 20571else
db9f46a9 20572 if test x$gcc_no_link = xyes; then
22e05272 20573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20574fi
5213506e 20575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20576/* end confdefs.h. */
20577
db9f46a9
TG
20578#ifdef HAVE_COMPLEX_H
20579#include <complex.h>
20580#endif
20581#ifdef HAVE_MATH_H
20582#include <math.h>
cc6d3bde 20583#endif
db9f46a9
TG
20584
20585int (*ptr)() = (int (*)())ldexpf;
20586
cc6d3bde
SK
20587int
20588main ()
20589{
cc6d3bde
SK
20590 return 0;
20591}
db9f46a9 20592
cc6d3bde 20593_ACEOF
5213506e 20594if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20595 gcc_cv_math_func_ldexpf=yes
cc6d3bde 20596else
db9f46a9 20597 gcc_cv_math_func_ldexpf=no
cc6d3bde 20598fi
5213506e
RW
20599rm -f core conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20601fi
db9f46a9
TG
20602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20603$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20604 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20605
f38a14ca
TG
20606cat >>confdefs.h <<_ACEOF
20607#define HAVE_LDEXPF 1
20608_ACEOF
db9f46a9
TG
20609
20610 fi
cc6d3bde 20611
cc6d3bde 20612
cc6d3bde 20613
db9f46a9
TG
20614
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20616$as_echo_n "checking for ldexp... " >&6; }
22e05272 20617if ${gcc_cv_math_func_ldexp+:} false; then :
5213506e 20618 $as_echo_n "(cached) " >&6
cc6d3bde 20619else
db9f46a9 20620 if test x$gcc_no_link = xyes; then
22e05272 20621 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20622fi
5213506e 20623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20624/* end confdefs.h. */
20625
db9f46a9
TG
20626#ifdef HAVE_COMPLEX_H
20627#include <complex.h>
cc6d3bde 20628#endif
db9f46a9
TG
20629#ifdef HAVE_MATH_H
20630#include <math.h>
20631#endif
20632
20633int (*ptr)() = (int (*)())ldexp;
20634
cc6d3bde
SK
20635int
20636main ()
20637{
cc6d3bde
SK
20638 return 0;
20639}
db9f46a9 20640
cc6d3bde 20641_ACEOF
5213506e 20642if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20643 gcc_cv_math_func_ldexp=yes
cc6d3bde 20644else
db9f46a9 20645 gcc_cv_math_func_ldexp=no
cc6d3bde 20646fi
5213506e
RW
20647rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20649fi
db9f46a9
TG
20650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20651$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20652 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20653
f38a14ca
TG
20654cat >>confdefs.h <<_ACEOF
20655#define HAVE_LDEXP 1
20656_ACEOF
db9f46a9
TG
20657
20658 fi
20659
cc6d3bde 20660
cc6d3bde 20661
cc6d3bde 20662
db9f46a9
TG
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20664$as_echo_n "checking for ldexpl... " >&6; }
22e05272 20665if ${gcc_cv_math_func_ldexpl+:} false; then :
5213506e 20666 $as_echo_n "(cached) " >&6
1409cd0b 20667else
db9f46a9 20668 if test x$gcc_no_link = xyes; then
22e05272 20669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20670fi
5213506e 20671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20672/* end confdefs.h. */
20673
db9f46a9
TG
20674#ifdef HAVE_COMPLEX_H
20675#include <complex.h>
20676#endif
20677#ifdef HAVE_MATH_H
20678#include <math.h>
1409cd0b 20679#endif
db9f46a9
TG
20680
20681int (*ptr)() = (int (*)())ldexpl;
20682
1409cd0b
FXC
20683int
20684main ()
20685{
1409cd0b
FXC
20686 return 0;
20687}
db9f46a9 20688
1409cd0b 20689_ACEOF
5213506e 20690if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20691 gcc_cv_math_func_ldexpl=yes
1409cd0b 20692else
db9f46a9 20693 gcc_cv_math_func_ldexpl=no
1409cd0b 20694fi
5213506e
RW
20695rm -f core conftest.err conftest.$ac_objext \
20696 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20697fi
db9f46a9
TG
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20699$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20700 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20701
f38a14ca
TG
20702cat >>confdefs.h <<_ACEOF
20703#define HAVE_LDEXPL 1
20704_ACEOF
db9f46a9
TG
20705
20706 fi
1409cd0b 20707
1409cd0b 20708
1409cd0b 20709
db9f46a9
TG
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20712$as_echo_n "checking for logf... " >&6; }
22e05272 20713if ${gcc_cv_math_func_logf+:} false; then :
5213506e 20714 $as_echo_n "(cached) " >&6
1409cd0b 20715else
db9f46a9 20716 if test x$gcc_no_link = xyes; then
22e05272 20717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20718fi
5213506e 20719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20720/* end confdefs.h. */
20721
db9f46a9
TG
20722#ifdef HAVE_COMPLEX_H
20723#include <complex.h>
1409cd0b 20724#endif
db9f46a9
TG
20725#ifdef HAVE_MATH_H
20726#include <math.h>
20727#endif
20728
20729int (*ptr)() = (int (*)())logf;
20730
1409cd0b
FXC
20731int
20732main ()
20733{
1409cd0b
FXC
20734 return 0;
20735}
db9f46a9 20736
1409cd0b 20737_ACEOF
5213506e 20738if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20739 gcc_cv_math_func_logf=yes
1409cd0b 20740else
db9f46a9 20741 gcc_cv_math_func_logf=no
1409cd0b 20742fi
5213506e
RW
20743rm -f core conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20745fi
db9f46a9
TG
20746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20747$as_echo "$gcc_cv_math_func_logf" >&6; }
20748 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20749
f38a14ca
TG
20750cat >>confdefs.h <<_ACEOF
20751#define HAVE_LOGF 1
20752_ACEOF
1409cd0b 20753
db9f46a9 20754 fi
1409cd0b 20755
1409cd0b 20756
db9f46a9
TG
20757
20758
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20760$as_echo_n "checking for log... " >&6; }
22e05272 20761if ${gcc_cv_math_func_log+:} false; then :
5213506e 20762 $as_echo_n "(cached) " >&6
1409cd0b 20763else
db9f46a9 20764 if test x$gcc_no_link = xyes; then
22e05272 20765 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20766fi
5213506e 20767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20768/* end confdefs.h. */
20769
db9f46a9
TG
20770#ifdef HAVE_COMPLEX_H
20771#include <complex.h>
20772#endif
20773#ifdef HAVE_MATH_H
20774#include <math.h>
1409cd0b 20775#endif
db9f46a9
TG
20776
20777int (*ptr)() = (int (*)())log;
20778
1409cd0b
FXC
20779int
20780main ()
20781{
1409cd0b
FXC
20782 return 0;
20783}
db9f46a9 20784
1409cd0b 20785_ACEOF
5213506e 20786if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20787 gcc_cv_math_func_log=yes
1409cd0b 20788else
db9f46a9 20789 gcc_cv_math_func_log=no
1409cd0b 20790fi
5213506e
RW
20791rm -f core conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20793fi
db9f46a9
TG
20794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20795$as_echo "$gcc_cv_math_func_log" >&6; }
20796 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20797
f38a14ca
TG
20798cat >>confdefs.h <<_ACEOF
20799#define HAVE_LOG 1
20800_ACEOF
db9f46a9
TG
20801
20802 fi
1409cd0b 20803
1409cd0b 20804
1409cd0b 20805
db9f46a9
TG
20806
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20808$as_echo_n "checking for logl... " >&6; }
22e05272 20809if ${gcc_cv_math_func_logl+:} false; then :
5213506e 20810 $as_echo_n "(cached) " >&6
1409cd0b 20811else
db9f46a9 20812 if test x$gcc_no_link = xyes; then
22e05272 20813 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20814fi
5213506e 20815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20816/* end confdefs.h. */
20817
db9f46a9
TG
20818#ifdef HAVE_COMPLEX_H
20819#include <complex.h>
1409cd0b 20820#endif
db9f46a9
TG
20821#ifdef HAVE_MATH_H
20822#include <math.h>
20823#endif
20824
20825int (*ptr)() = (int (*)())logl;
20826
1409cd0b
FXC
20827int
20828main ()
20829{
1409cd0b
FXC
20830 return 0;
20831}
db9f46a9 20832
1409cd0b 20833_ACEOF
5213506e 20834if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20835 gcc_cv_math_func_logl=yes
1409cd0b 20836else
db9f46a9 20837 gcc_cv_math_func_logl=no
1409cd0b 20838fi
5213506e
RW
20839rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20841fi
db9f46a9
TG
20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20843$as_echo "$gcc_cv_math_func_logl" >&6; }
20844 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20845
f38a14ca
TG
20846cat >>confdefs.h <<_ACEOF
20847#define HAVE_LOGL 1
20848_ACEOF
db9f46a9
TG
20849
20850 fi
20851
1409cd0b 20852
1409cd0b 20853
1409cd0b 20854
db9f46a9
TG
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20856$as_echo_n "checking for clogf... " >&6; }
22e05272 20857if ${gcc_cv_math_func_clogf+:} false; then :
5213506e 20858 $as_echo_n "(cached) " >&6
1409cd0b 20859else
db9f46a9 20860 if test x$gcc_no_link = xyes; then
22e05272 20861 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20862fi
5213506e 20863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20864/* end confdefs.h. */
20865
db9f46a9
TG
20866#ifdef HAVE_COMPLEX_H
20867#include <complex.h>
20868#endif
20869#ifdef HAVE_MATH_H
20870#include <math.h>
1409cd0b 20871#endif
db9f46a9
TG
20872
20873int (*ptr)() = (int (*)())clogf;
20874
1409cd0b
FXC
20875int
20876main ()
20877{
1409cd0b
FXC
20878 return 0;
20879}
db9f46a9 20880
1409cd0b 20881_ACEOF
5213506e 20882if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20883 gcc_cv_math_func_clogf=yes
1409cd0b 20884else
db9f46a9 20885 gcc_cv_math_func_clogf=no
1409cd0b 20886fi
5213506e
RW
20887rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20889fi
db9f46a9
TG
20890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20891$as_echo "$gcc_cv_math_func_clogf" >&6; }
20892 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20893
f38a14ca
TG
20894cat >>confdefs.h <<_ACEOF
20895#define HAVE_CLOGF 1
20896_ACEOF
db9f46a9
TG
20897
20898 fi
1409cd0b 20899
1409cd0b 20900
1409cd0b 20901
db9f46a9
TG
20902
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20904$as_echo_n "checking for clog... " >&6; }
22e05272 20905if ${gcc_cv_math_func_clog+:} false; then :
5213506e 20906 $as_echo_n "(cached) " >&6
1409cd0b 20907else
db9f46a9 20908 if test x$gcc_no_link = xyes; then
22e05272 20909 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20910fi
5213506e 20911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20912/* end confdefs.h. */
20913
db9f46a9
TG
20914#ifdef HAVE_COMPLEX_H
20915#include <complex.h>
1409cd0b 20916#endif
db9f46a9
TG
20917#ifdef HAVE_MATH_H
20918#include <math.h>
20919#endif
20920
20921int (*ptr)() = (int (*)())clog;
20922
1409cd0b
FXC
20923int
20924main ()
20925{
1409cd0b
FXC
20926 return 0;
20927}
db9f46a9 20928
1409cd0b 20929_ACEOF
5213506e 20930if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20931 gcc_cv_math_func_clog=yes
1409cd0b 20932else
db9f46a9 20933 gcc_cv_math_func_clog=no
1409cd0b 20934fi
5213506e
RW
20935rm -f core conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20937fi
db9f46a9
TG
20938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20939$as_echo "$gcc_cv_math_func_clog" >&6; }
20940 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20941
f38a14ca
TG
20942cat >>confdefs.h <<_ACEOF
20943#define HAVE_CLOG 1
20944_ACEOF
1409cd0b 20945
db9f46a9 20946 fi
1409cd0b 20947
1409cd0b 20948
db9f46a9
TG
20949
20950
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20952$as_echo_n "checking for clogl... " >&6; }
22e05272 20953if ${gcc_cv_math_func_clogl+:} false; then :
5213506e 20954 $as_echo_n "(cached) " >&6
1409cd0b 20955else
db9f46a9 20956 if test x$gcc_no_link = xyes; then
22e05272 20957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20958fi
5213506e 20959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20960/* end confdefs.h. */
20961
db9f46a9
TG
20962#ifdef HAVE_COMPLEX_H
20963#include <complex.h>
20964#endif
20965#ifdef HAVE_MATH_H
20966#include <math.h>
1409cd0b 20967#endif
db9f46a9
TG
20968
20969int (*ptr)() = (int (*)())clogl;
20970
1409cd0b
FXC
20971int
20972main ()
20973{
1409cd0b
FXC
20974 return 0;
20975}
db9f46a9 20976
1409cd0b 20977_ACEOF
5213506e 20978if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20979 gcc_cv_math_func_clogl=yes
1409cd0b 20980else
db9f46a9 20981 gcc_cv_math_func_clogl=no
1409cd0b 20982fi
5213506e
RW
20983rm -f core conftest.err conftest.$ac_objext \
20984 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20985fi
db9f46a9
TG
20986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20987$as_echo "$gcc_cv_math_func_clogl" >&6; }
20988 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20989
f38a14ca
TG
20990cat >>confdefs.h <<_ACEOF
20991#define HAVE_CLOGL 1
20992_ACEOF
db9f46a9
TG
20993
20994 fi
1409cd0b 20995
1409cd0b 20996
1409cd0b 20997
db9f46a9
TG
20998
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
21000$as_echo_n "checking for log10f... " >&6; }
22e05272 21001if ${gcc_cv_math_func_log10f+:} false; then :
5213506e 21002 $as_echo_n "(cached) " >&6
1409cd0b 21003else
db9f46a9 21004 if test x$gcc_no_link = xyes; then
22e05272 21005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21006fi
5213506e 21007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21008/* end confdefs.h. */
21009
db9f46a9
TG
21010#ifdef HAVE_COMPLEX_H
21011#include <complex.h>
1409cd0b 21012#endif
db9f46a9
TG
21013#ifdef HAVE_MATH_H
21014#include <math.h>
21015#endif
21016
21017int (*ptr)() = (int (*)())log10f;
21018
1409cd0b
FXC
21019int
21020main ()
21021{
1409cd0b
FXC
21022 return 0;
21023}
db9f46a9 21024
1409cd0b 21025_ACEOF
5213506e 21026if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21027 gcc_cv_math_func_log10f=yes
1409cd0b 21028else
db9f46a9 21029 gcc_cv_math_func_log10f=no
1409cd0b 21030fi
5213506e
RW
21031rm -f core conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21033fi
db9f46a9
TG
21034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
21035$as_echo "$gcc_cv_math_func_log10f" >&6; }
21036 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 21037
f38a14ca
TG
21038cat >>confdefs.h <<_ACEOF
21039#define HAVE_LOG10F 1
21040_ACEOF
db9f46a9
TG
21041
21042 fi
21043
1409cd0b 21044
1409cd0b 21045
1409cd0b 21046
db9f46a9
TG
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
21048$as_echo_n "checking for log10... " >&6; }
22e05272 21049if ${gcc_cv_math_func_log10+:} false; then :
5213506e 21050 $as_echo_n "(cached) " >&6
1409cd0b 21051else
db9f46a9 21052 if test x$gcc_no_link = xyes; then
22e05272 21053 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21054fi
5213506e 21055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21056/* end confdefs.h. */
21057
db9f46a9
TG
21058#ifdef HAVE_COMPLEX_H
21059#include <complex.h>
21060#endif
21061#ifdef HAVE_MATH_H
21062#include <math.h>
1409cd0b 21063#endif
db9f46a9
TG
21064
21065int (*ptr)() = (int (*)())log10;
21066
1409cd0b
FXC
21067int
21068main ()
21069{
1409cd0b
FXC
21070 return 0;
21071}
db9f46a9 21072
1409cd0b 21073_ACEOF
5213506e 21074if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21075 gcc_cv_math_func_log10=yes
1409cd0b 21076else
db9f46a9 21077 gcc_cv_math_func_log10=no
1409cd0b 21078fi
5213506e
RW
21079rm -f core conftest.err conftest.$ac_objext \
21080 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21081fi
db9f46a9
TG
21082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
21083$as_echo "$gcc_cv_math_func_log10" >&6; }
21084 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 21085
f38a14ca
TG
21086cat >>confdefs.h <<_ACEOF
21087#define HAVE_LOG10 1
21088_ACEOF
db9f46a9
TG
21089
21090 fi
1409cd0b 21091
1409cd0b 21092
1409cd0b 21093
db9f46a9
TG
21094
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
21096$as_echo_n "checking for log10l... " >&6; }
22e05272 21097if ${gcc_cv_math_func_log10l+:} false; then :
5213506e 21098 $as_echo_n "(cached) " >&6
1409cd0b 21099else
db9f46a9 21100 if test x$gcc_no_link = xyes; then
22e05272 21101 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21102fi
5213506e 21103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21104/* end confdefs.h. */
21105
db9f46a9
TG
21106#ifdef HAVE_COMPLEX_H
21107#include <complex.h>
1409cd0b 21108#endif
db9f46a9
TG
21109#ifdef HAVE_MATH_H
21110#include <math.h>
21111#endif
21112
21113int (*ptr)() = (int (*)())log10l;
21114
1409cd0b
FXC
21115int
21116main ()
21117{
1409cd0b
FXC
21118 return 0;
21119}
db9f46a9 21120
1409cd0b 21121_ACEOF
5213506e 21122if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21123 gcc_cv_math_func_log10l=yes
1409cd0b 21124else
db9f46a9 21125 gcc_cv_math_func_log10l=no
1409cd0b 21126fi
5213506e
RW
21127rm -f core conftest.err conftest.$ac_objext \
21128 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21129fi
db9f46a9
TG
21130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21131$as_echo "$gcc_cv_math_func_log10l" >&6; }
21132 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 21133
f38a14ca
TG
21134cat >>confdefs.h <<_ACEOF
21135#define HAVE_LOG10L 1
21136_ACEOF
1409cd0b 21137
db9f46a9 21138 fi
1409cd0b 21139
1409cd0b 21140
db9f46a9
TG
21141
21142
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21144$as_echo_n "checking for clog10f... " >&6; }
22e05272 21145if ${gcc_cv_math_func_clog10f+:} false; then :
5213506e 21146 $as_echo_n "(cached) " >&6
1409cd0b 21147else
db9f46a9 21148 if test x$gcc_no_link = xyes; then
22e05272 21149 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21150fi
5213506e 21151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21152/* end confdefs.h. */
21153
db9f46a9
TG
21154#ifdef HAVE_COMPLEX_H
21155#include <complex.h>
21156#endif
21157#ifdef HAVE_MATH_H
21158#include <math.h>
1409cd0b 21159#endif
db9f46a9
TG
21160
21161int (*ptr)() = (int (*)())clog10f;
21162
1409cd0b
FXC
21163int
21164main ()
21165{
1409cd0b
FXC
21166 return 0;
21167}
db9f46a9 21168
1409cd0b 21169_ACEOF
5213506e 21170if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21171 gcc_cv_math_func_clog10f=yes
1409cd0b 21172else
db9f46a9 21173 gcc_cv_math_func_clog10f=no
1409cd0b 21174fi
5213506e
RW
21175rm -f core conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21177fi
db9f46a9
TG
21178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21179$as_echo "$gcc_cv_math_func_clog10f" >&6; }
21180 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 21181
f38a14ca
TG
21182cat >>confdefs.h <<_ACEOF
21183#define HAVE_CLOG10F 1
21184_ACEOF
db9f46a9
TG
21185
21186 fi
1409cd0b 21187
1409cd0b 21188
1409cd0b 21189
db9f46a9
TG
21190
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21192$as_echo_n "checking for clog10... " >&6; }
22e05272 21193if ${gcc_cv_math_func_clog10+:} false; then :
5213506e 21194 $as_echo_n "(cached) " >&6
1409cd0b 21195else
db9f46a9 21196 if test x$gcc_no_link = xyes; then
22e05272 21197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21198fi
5213506e 21199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21200/* end confdefs.h. */
21201
db9f46a9
TG
21202#ifdef HAVE_COMPLEX_H
21203#include <complex.h>
1409cd0b 21204#endif
db9f46a9
TG
21205#ifdef HAVE_MATH_H
21206#include <math.h>
21207#endif
21208
21209int (*ptr)() = (int (*)())clog10;
21210
1409cd0b
FXC
21211int
21212main ()
21213{
5213506e
RW
21214 return 0;
21215}
db9f46a9 21216
5213506e
RW
21217_ACEOF
21218if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21219 gcc_cv_math_func_clog10=yes
1409cd0b 21220else
db9f46a9 21221 gcc_cv_math_func_clog10=no
1409cd0b 21222fi
5213506e
RW
21223rm -f core conftest.err conftest.$ac_objext \
21224 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21225fi
db9f46a9
TG
21226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21227$as_echo "$gcc_cv_math_func_clog10" >&6; }
21228 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 21229
f38a14ca
TG
21230cat >>confdefs.h <<_ACEOF
21231#define HAVE_CLOG10 1
21232_ACEOF
db9f46a9
TG
21233
21234 fi
21235
1409cd0b 21236
1409cd0b 21237
1409cd0b 21238
db9f46a9
TG
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21240$as_echo_n "checking for clog10l... " >&6; }
22e05272 21241if ${gcc_cv_math_func_clog10l+:} false; then :
5213506e 21242 $as_echo_n "(cached) " >&6
1409cd0b 21243else
db9f46a9 21244 if test x$gcc_no_link = xyes; then
22e05272 21245 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21246fi
5213506e 21247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21248/* end confdefs.h. */
21249
db9f46a9
TG
21250#ifdef HAVE_COMPLEX_H
21251#include <complex.h>
21252#endif
21253#ifdef HAVE_MATH_H
21254#include <math.h>
1409cd0b 21255#endif
db9f46a9
TG
21256
21257int (*ptr)() = (int (*)())clog10l;
21258
1409cd0b
FXC
21259int
21260main ()
21261{
1409cd0b
FXC
21262 return 0;
21263}
db9f46a9 21264
1409cd0b 21265_ACEOF
5213506e 21266if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21267 gcc_cv_math_func_clog10l=yes
1409cd0b 21268else
db9f46a9 21269 gcc_cv_math_func_clog10l=no
1409cd0b 21270fi
5213506e
RW
21271rm -f core conftest.err conftest.$ac_objext \
21272 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21273fi
db9f46a9
TG
21274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21275$as_echo "$gcc_cv_math_func_clog10l" >&6; }
21276 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 21277
f38a14ca
TG
21278cat >>confdefs.h <<_ACEOF
21279#define HAVE_CLOG10L 1
21280_ACEOF
db9f46a9
TG
21281
21282 fi
1409cd0b 21283
1409cd0b 21284
1409cd0b 21285
db9f46a9
TG
21286
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21288$as_echo_n "checking for nextafterf... " >&6; }
22e05272 21289if ${gcc_cv_math_func_nextafterf+:} false; then :
5213506e 21290 $as_echo_n "(cached) " >&6
1409cd0b 21291else
db9f46a9 21292 if test x$gcc_no_link = xyes; then
22e05272 21293 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21294fi
5213506e 21295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21296/* end confdefs.h. */
21297
db9f46a9
TG
21298#ifdef HAVE_COMPLEX_H
21299#include <complex.h>
1409cd0b 21300#endif
db9f46a9
TG
21301#ifdef HAVE_MATH_H
21302#include <math.h>
21303#endif
21304
21305int (*ptr)() = (int (*)())nextafterf;
21306
1409cd0b
FXC
21307int
21308main ()
21309{
1409cd0b
FXC
21310 return 0;
21311}
db9f46a9 21312
1409cd0b 21313_ACEOF
5213506e 21314if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21315 gcc_cv_math_func_nextafterf=yes
1409cd0b 21316else
db9f46a9 21317 gcc_cv_math_func_nextafterf=no
1409cd0b 21318fi
5213506e
RW
21319rm -f core conftest.err conftest.$ac_objext \
21320 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21321fi
db9f46a9
TG
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21323$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21324 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 21325
f38a14ca
TG
21326cat >>confdefs.h <<_ACEOF
21327#define HAVE_NEXTAFTERF 1
21328_ACEOF
1409cd0b 21329
db9f46a9 21330 fi
1409cd0b 21331
1409cd0b 21332
db9f46a9
TG
21333
21334
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21336$as_echo_n "checking for nextafter... " >&6; }
22e05272 21337if ${gcc_cv_math_func_nextafter+:} false; then :
5213506e 21338 $as_echo_n "(cached) " >&6
1409cd0b 21339else
db9f46a9 21340 if test x$gcc_no_link = xyes; then
22e05272 21341 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21342fi
5213506e 21343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21344/* end confdefs.h. */
21345
db9f46a9
TG
21346#ifdef HAVE_COMPLEX_H
21347#include <complex.h>
21348#endif
21349#ifdef HAVE_MATH_H
21350#include <math.h>
1409cd0b 21351#endif
db9f46a9
TG
21352
21353int (*ptr)() = (int (*)())nextafter;
21354
1409cd0b
FXC
21355int
21356main ()
21357{
1409cd0b
FXC
21358 return 0;
21359}
db9f46a9 21360
1409cd0b 21361_ACEOF
5213506e 21362if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21363 gcc_cv_math_func_nextafter=yes
1409cd0b 21364else
db9f46a9 21365 gcc_cv_math_func_nextafter=no
1409cd0b 21366fi
5213506e
RW
21367rm -f core conftest.err conftest.$ac_objext \
21368 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21369fi
db9f46a9
TG
21370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21371$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21372 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 21373
f38a14ca
TG
21374cat >>confdefs.h <<_ACEOF
21375#define HAVE_NEXTAFTER 1
21376_ACEOF
db9f46a9
TG
21377
21378 fi
1409cd0b 21379
1409cd0b 21380
1409cd0b 21381
db9f46a9
TG
21382
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21384$as_echo_n "checking for nextafterl... " >&6; }
22e05272 21385if ${gcc_cv_math_func_nextafterl+:} false; then :
5213506e 21386 $as_echo_n "(cached) " >&6
1409cd0b 21387else
db9f46a9 21388 if test x$gcc_no_link = xyes; then
22e05272 21389 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21390fi
5213506e 21391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21392/* end confdefs.h. */
21393
db9f46a9
TG
21394#ifdef HAVE_COMPLEX_H
21395#include <complex.h>
1409cd0b 21396#endif
db9f46a9
TG
21397#ifdef HAVE_MATH_H
21398#include <math.h>
21399#endif
21400
21401int (*ptr)() = (int (*)())nextafterl;
21402
1409cd0b
FXC
21403int
21404main ()
21405{
1409cd0b
FXC
21406 return 0;
21407}
db9f46a9 21408
1409cd0b 21409_ACEOF
5213506e 21410if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21411 gcc_cv_math_func_nextafterl=yes
1409cd0b 21412else
db9f46a9 21413 gcc_cv_math_func_nextafterl=no
1409cd0b 21414fi
5213506e
RW
21415rm -f core conftest.err conftest.$ac_objext \
21416 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21417fi
db9f46a9
TG
21418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21419$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21420 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 21421
f38a14ca
TG
21422cat >>confdefs.h <<_ACEOF
21423#define HAVE_NEXTAFTERL 1
21424_ACEOF
db9f46a9
TG
21425
21426 fi
21427
1409cd0b 21428
1409cd0b 21429
1409cd0b 21430
db9f46a9
TG
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21432$as_echo_n "checking for powf... " >&6; }
22e05272 21433if ${gcc_cv_math_func_powf+:} false; then :
5213506e 21434 $as_echo_n "(cached) " >&6
1409cd0b 21435else
db9f46a9 21436 if test x$gcc_no_link = xyes; then
22e05272 21437 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21438fi
5213506e 21439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21440/* end confdefs.h. */
21441
db9f46a9
TG
21442#ifdef HAVE_COMPLEX_H
21443#include <complex.h>
21444#endif
21445#ifdef HAVE_MATH_H
21446#include <math.h>
1409cd0b 21447#endif
db9f46a9
TG
21448
21449int (*ptr)() = (int (*)())powf;
21450
1409cd0b
FXC
21451int
21452main ()
21453{
1409cd0b
FXC
21454 return 0;
21455}
db9f46a9 21456
1409cd0b 21457_ACEOF
5213506e 21458if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21459 gcc_cv_math_func_powf=yes
1409cd0b 21460else
db9f46a9 21461 gcc_cv_math_func_powf=no
1409cd0b 21462fi
5213506e
RW
21463rm -f core conftest.err conftest.$ac_objext \
21464 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21465fi
db9f46a9
TG
21466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21467$as_echo "$gcc_cv_math_func_powf" >&6; }
21468 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 21469
f38a14ca
TG
21470cat >>confdefs.h <<_ACEOF
21471#define HAVE_POWF 1
21472_ACEOF
db9f46a9
TG
21473
21474 fi
1409cd0b 21475
1409cd0b 21476
1409cd0b 21477
db9f46a9
TG
21478
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21480$as_echo_n "checking for pow... " >&6; }
22e05272 21481if ${gcc_cv_math_func_pow+:} false; then :
5213506e 21482 $as_echo_n "(cached) " >&6
1409cd0b 21483else
db9f46a9 21484 if test x$gcc_no_link = xyes; then
22e05272 21485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21486fi
5213506e 21487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21488/* end confdefs.h. */
21489
db9f46a9
TG
21490#ifdef HAVE_COMPLEX_H
21491#include <complex.h>
1409cd0b 21492#endif
db9f46a9
TG
21493#ifdef HAVE_MATH_H
21494#include <math.h>
21495#endif
21496
21497int (*ptr)() = (int (*)())pow;
21498
1409cd0b
FXC
21499int
21500main ()
21501{
1409cd0b
FXC
21502 return 0;
21503}
db9f46a9 21504
1409cd0b 21505_ACEOF
5213506e 21506if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21507 gcc_cv_math_func_pow=yes
1409cd0b 21508else
db9f46a9 21509 gcc_cv_math_func_pow=no
1409cd0b 21510fi
5213506e
RW
21511rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21513fi
db9f46a9
TG
21514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21515$as_echo "$gcc_cv_math_func_pow" >&6; }
21516 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 21517
f38a14ca
TG
21518cat >>confdefs.h <<_ACEOF
21519#define HAVE_POW 1
21520_ACEOF
1409cd0b 21521
db9f46a9 21522 fi
1409cd0b 21523
1409cd0b 21524
db9f46a9
TG
21525
21526
db9f46a9
TG
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21528$as_echo_n "checking for cpowf... " >&6; }
22e05272 21529if ${gcc_cv_math_func_cpowf+:} false; then :
5213506e 21530 $as_echo_n "(cached) " >&6
1409cd0b 21531else
db9f46a9 21532 if test x$gcc_no_link = xyes; then
22e05272 21533 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21534fi
5213506e 21535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21536/* end confdefs.h. */
21537
db9f46a9
TG
21538#ifdef HAVE_COMPLEX_H
21539#include <complex.h>
1409cd0b 21540#endif
db9f46a9
TG
21541#ifdef HAVE_MATH_H
21542#include <math.h>
21543#endif
21544
21545int (*ptr)() = (int (*)())cpowf;
21546
1409cd0b
FXC
21547int
21548main ()
21549{
1409cd0b
FXC
21550 return 0;
21551}
db9f46a9 21552
1409cd0b 21553_ACEOF
5213506e 21554if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21555 gcc_cv_math_func_cpowf=yes
1409cd0b 21556else
db9f46a9 21557 gcc_cv_math_func_cpowf=no
1409cd0b 21558fi
5213506e
RW
21559rm -f core conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21561fi
db9f46a9
TG
21562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21563$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21564 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 21565
f38a14ca
TG
21566cat >>confdefs.h <<_ACEOF
21567#define HAVE_CPOWF 1
21568_ACEOF
db9f46a9
TG
21569
21570 fi
21571
1409cd0b 21572
1409cd0b 21573
1409cd0b 21574
db9f46a9
TG
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21576$as_echo_n "checking for cpow... " >&6; }
22e05272 21577if ${gcc_cv_math_func_cpow+:} false; then :
5213506e 21578 $as_echo_n "(cached) " >&6
1409cd0b 21579else
db9f46a9 21580 if test x$gcc_no_link = xyes; then
22e05272 21581 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21582fi
5213506e 21583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21584/* end confdefs.h. */
21585
db9f46a9
TG
21586#ifdef HAVE_COMPLEX_H
21587#include <complex.h>
21588#endif
21589#ifdef HAVE_MATH_H
21590#include <math.h>
1409cd0b 21591#endif
db9f46a9
TG
21592
21593int (*ptr)() = (int (*)())cpow;
21594
1409cd0b
FXC
21595int
21596main ()
21597{
1409cd0b
FXC
21598 return 0;
21599}
db9f46a9 21600
1409cd0b 21601_ACEOF
5213506e 21602if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21603 gcc_cv_math_func_cpow=yes
1409cd0b 21604else
db9f46a9 21605 gcc_cv_math_func_cpow=no
1409cd0b 21606fi
5213506e
RW
21607rm -f core conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21609fi
db9f46a9
TG
21610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21611$as_echo "$gcc_cv_math_func_cpow" >&6; }
21612 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21613
f38a14ca
TG
21614cat >>confdefs.h <<_ACEOF
21615#define HAVE_CPOW 1
21616_ACEOF
db9f46a9
TG
21617
21618 fi
1409cd0b 21619
1409cd0b 21620
1409cd0b 21621
db9f46a9
TG
21622
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21624$as_echo_n "checking for cpowl... " >&6; }
22e05272 21625if ${gcc_cv_math_func_cpowl+:} false; then :
5213506e 21626 $as_echo_n "(cached) " >&6
1409cd0b 21627else
db9f46a9 21628 if test x$gcc_no_link = xyes; then
22e05272 21629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21630fi
5213506e 21631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21632/* end confdefs.h. */
21633
db9f46a9
TG
21634#ifdef HAVE_COMPLEX_H
21635#include <complex.h>
1409cd0b 21636#endif
db9f46a9
TG
21637#ifdef HAVE_MATH_H
21638#include <math.h>
21639#endif
21640
21641int (*ptr)() = (int (*)())cpowl;
21642
1409cd0b
FXC
21643int
21644main ()
21645{
1409cd0b
FXC
21646 return 0;
21647}
db9f46a9 21648
1409cd0b 21649_ACEOF
5213506e 21650if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21651 gcc_cv_math_func_cpowl=yes
1409cd0b 21652else
db9f46a9 21653 gcc_cv_math_func_cpowl=no
1409cd0b 21654fi
5213506e
RW
21655rm -f core conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21657fi
db9f46a9
TG
21658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21659$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21660 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21661
f38a14ca
TG
21662cat >>confdefs.h <<_ACEOF
21663#define HAVE_CPOWL 1
21664_ACEOF
1409cd0b 21665
db9f46a9 21666 fi
1409cd0b 21667
1409cd0b 21668
db9f46a9
TG
21669
21670
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21672$as_echo_n "checking for roundf... " >&6; }
22e05272 21673if ${gcc_cv_math_func_roundf+:} false; then :
5213506e 21674 $as_echo_n "(cached) " >&6
1409cd0b 21675else
db9f46a9 21676 if test x$gcc_no_link = xyes; then
22e05272 21677 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21678fi
5213506e 21679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21680/* end confdefs.h. */
21681
db9f46a9
TG
21682#ifdef HAVE_COMPLEX_H
21683#include <complex.h>
21684#endif
21685#ifdef HAVE_MATH_H
21686#include <math.h>
1409cd0b 21687#endif
db9f46a9
TG
21688
21689int (*ptr)() = (int (*)())roundf;
21690
1409cd0b
FXC
21691int
21692main ()
21693{
1409cd0b
FXC
21694 return 0;
21695}
db9f46a9 21696
1409cd0b 21697_ACEOF
5213506e 21698if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21699 gcc_cv_math_func_roundf=yes
1409cd0b 21700else
db9f46a9 21701 gcc_cv_math_func_roundf=no
1409cd0b 21702fi
5213506e
RW
21703rm -f core conftest.err conftest.$ac_objext \
21704 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21705fi
db9f46a9
TG
21706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21707$as_echo "$gcc_cv_math_func_roundf" >&6; }
21708 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21709
f38a14ca
TG
21710cat >>confdefs.h <<_ACEOF
21711#define HAVE_ROUNDF 1
21712_ACEOF
db9f46a9
TG
21713
21714 fi
1409cd0b 21715
1409cd0b 21716
1409cd0b 21717
db9f46a9
TG
21718
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21720$as_echo_n "checking for round... " >&6; }
22e05272 21721if ${gcc_cv_math_func_round+:} false; then :
5213506e 21722 $as_echo_n "(cached) " >&6
1409cd0b 21723else
db9f46a9 21724 if test x$gcc_no_link = xyes; then
22e05272 21725 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21726fi
5213506e 21727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21728/* end confdefs.h. */
21729
db9f46a9
TG
21730#ifdef HAVE_COMPLEX_H
21731#include <complex.h>
1409cd0b 21732#endif
db9f46a9
TG
21733#ifdef HAVE_MATH_H
21734#include <math.h>
21735#endif
21736
21737int (*ptr)() = (int (*)())round;
21738
1409cd0b
FXC
21739int
21740main ()
21741{
1409cd0b
FXC
21742 return 0;
21743}
db9f46a9 21744
1409cd0b 21745_ACEOF
5213506e 21746if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21747 gcc_cv_math_func_round=yes
1409cd0b 21748else
db9f46a9 21749 gcc_cv_math_func_round=no
1409cd0b 21750fi
5213506e
RW
21751rm -f core conftest.err conftest.$ac_objext \
21752 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21753fi
db9f46a9
TG
21754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21755$as_echo "$gcc_cv_math_func_round" >&6; }
21756 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21757
f38a14ca
TG
21758cat >>confdefs.h <<_ACEOF
21759#define HAVE_ROUND 1
21760_ACEOF
db9f46a9
TG
21761
21762 fi
21763
1409cd0b 21764
1409cd0b 21765
1409cd0b 21766
db9f46a9
TG
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21768$as_echo_n "checking for roundl... " >&6; }
22e05272 21769if ${gcc_cv_math_func_roundl+:} false; then :
5213506e 21770 $as_echo_n "(cached) " >&6
94f548c2 21771else
db9f46a9 21772 if test x$gcc_no_link = xyes; then
22e05272 21773 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21774fi
5213506e 21775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21776/* end confdefs.h. */
21777
db9f46a9
TG
21778#ifdef HAVE_COMPLEX_H
21779#include <complex.h>
21780#endif
21781#ifdef HAVE_MATH_H
21782#include <math.h>
94f548c2 21783#endif
db9f46a9
TG
21784
21785int (*ptr)() = (int (*)())roundl;
21786
94f548c2
FXC
21787int
21788main ()
21789{
94f548c2
FXC
21790 return 0;
21791}
db9f46a9 21792
94f548c2 21793_ACEOF
5213506e 21794if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21795 gcc_cv_math_func_roundl=yes
94f548c2 21796else
db9f46a9 21797 gcc_cv_math_func_roundl=no
94f548c2 21798fi
5213506e
RW
21799rm -f core conftest.err conftest.$ac_objext \
21800 conftest$ac_exeext conftest.$ac_ext
94f548c2 21801fi
db9f46a9
TG
21802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21803$as_echo "$gcc_cv_math_func_roundl" >&6; }
21804 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21805
f38a14ca
TG
21806cat >>confdefs.h <<_ACEOF
21807#define HAVE_ROUNDL 1
21808_ACEOF
db9f46a9
TG
21809
21810 fi
94f548c2 21811
94f548c2 21812
94f548c2 21813
db9f46a9
TG
21814
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21816$as_echo_n "checking for lroundf... " >&6; }
22e05272 21817if ${gcc_cv_math_func_lroundf+:} false; then :
5213506e 21818 $as_echo_n "(cached) " >&6
94f548c2 21819else
db9f46a9 21820 if test x$gcc_no_link = xyes; then
22e05272 21821 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21822fi
5213506e 21823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21824/* end confdefs.h. */
21825
db9f46a9
TG
21826#ifdef HAVE_COMPLEX_H
21827#include <complex.h>
94f548c2 21828#endif
db9f46a9
TG
21829#ifdef HAVE_MATH_H
21830#include <math.h>
21831#endif
21832
21833int (*ptr)() = (int (*)())lroundf;
21834
94f548c2
FXC
21835int
21836main ()
21837{
94f548c2
FXC
21838 return 0;
21839}
db9f46a9 21840
94f548c2 21841_ACEOF
5213506e 21842if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21843 gcc_cv_math_func_lroundf=yes
94f548c2 21844else
db9f46a9 21845 gcc_cv_math_func_lroundf=no
94f548c2 21846fi
5213506e
RW
21847rm -f core conftest.err conftest.$ac_objext \
21848 conftest$ac_exeext conftest.$ac_ext
94f548c2 21849fi
db9f46a9
TG
21850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21851$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21852 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21853
f38a14ca
TG
21854cat >>confdefs.h <<_ACEOF
21855#define HAVE_LROUNDF 1
21856_ACEOF
94f548c2 21857
db9f46a9 21858 fi
94f548c2 21859
94f548c2 21860
db9f46a9
TG
21861
21862
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21864$as_echo_n "checking for lround... " >&6; }
22e05272 21865if ${gcc_cv_math_func_lround+:} false; then :
5213506e 21866 $as_echo_n "(cached) " >&6
94f548c2 21867else
db9f46a9 21868 if test x$gcc_no_link = xyes; then
22e05272 21869 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21870fi
5213506e 21871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21872/* end confdefs.h. */
21873
db9f46a9
TG
21874#ifdef HAVE_COMPLEX_H
21875#include <complex.h>
21876#endif
21877#ifdef HAVE_MATH_H
21878#include <math.h>
94f548c2 21879#endif
db9f46a9
TG
21880
21881int (*ptr)() = (int (*)())lround;
21882
94f548c2
FXC
21883int
21884main ()
21885{
94f548c2
FXC
21886 return 0;
21887}
db9f46a9 21888
94f548c2 21889_ACEOF
5213506e 21890if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21891 gcc_cv_math_func_lround=yes
94f548c2 21892else
db9f46a9 21893 gcc_cv_math_func_lround=no
94f548c2 21894fi
5213506e
RW
21895rm -f core conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
94f548c2 21897fi
db9f46a9
TG
21898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21899$as_echo "$gcc_cv_math_func_lround" >&6; }
21900 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21901
f38a14ca
TG
21902cat >>confdefs.h <<_ACEOF
21903#define HAVE_LROUND 1
21904_ACEOF
db9f46a9
TG
21905
21906 fi
21907
94f548c2 21908
94f548c2 21909
94f548c2 21910
db9f46a9
TG
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21912$as_echo_n "checking for lroundl... " >&6; }
22e05272 21913if ${gcc_cv_math_func_lroundl+:} false; then :
5213506e 21914 $as_echo_n "(cached) " >&6
94f548c2 21915else
db9f46a9 21916 if test x$gcc_no_link = xyes; then
22e05272 21917 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21918fi
5213506e 21919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21920/* end confdefs.h. */
21921
db9f46a9
TG
21922#ifdef HAVE_COMPLEX_H
21923#include <complex.h>
21924#endif
21925#ifdef HAVE_MATH_H
21926#include <math.h>
94f548c2 21927#endif
db9f46a9
TG
21928
21929int (*ptr)() = (int (*)())lroundl;
21930
94f548c2
FXC
21931int
21932main ()
21933{
94f548c2
FXC
21934 return 0;
21935}
db9f46a9 21936
94f548c2 21937_ACEOF
5213506e 21938if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21939 gcc_cv_math_func_lroundl=yes
94f548c2 21940else
db9f46a9 21941 gcc_cv_math_func_lroundl=no
94f548c2 21942fi
5213506e
RW
21943rm -f core conftest.err conftest.$ac_objext \
21944 conftest$ac_exeext conftest.$ac_ext
94f548c2 21945fi
db9f46a9
TG
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21947$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21948 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21949
f38a14ca
TG
21950cat >>confdefs.h <<_ACEOF
21951#define HAVE_LROUNDL 1
21952_ACEOF
94f548c2 21953
db9f46a9 21954 fi
94f548c2 21955
94f548c2 21956
db9f46a9
TG
21957
21958
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21960$as_echo_n "checking for llroundf... " >&6; }
22e05272 21961if ${gcc_cv_math_func_llroundf+:} false; then :
5213506e 21962 $as_echo_n "(cached) " >&6
94f548c2 21963else
db9f46a9 21964 if test x$gcc_no_link = xyes; then
22e05272 21965 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21966fi
5213506e 21967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21968/* end confdefs.h. */
21969
db9f46a9
TG
21970#ifdef HAVE_COMPLEX_H
21971#include <complex.h>
94f548c2 21972#endif
db9f46a9
TG
21973#ifdef HAVE_MATH_H
21974#include <math.h>
21975#endif
21976
21977int (*ptr)() = (int (*)())llroundf;
21978
94f548c2
FXC
21979int
21980main ()
21981{
94f548c2
FXC
21982 return 0;
21983}
db9f46a9 21984
94f548c2 21985_ACEOF
5213506e 21986if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21987 gcc_cv_math_func_llroundf=yes
94f548c2 21988else
db9f46a9 21989 gcc_cv_math_func_llroundf=no
94f548c2 21990fi
5213506e
RW
21991rm -f core conftest.err conftest.$ac_objext \
21992 conftest$ac_exeext conftest.$ac_ext
94f548c2 21993fi
db9f46a9
TG
21994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21995$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21996 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21997
f38a14ca
TG
21998cat >>confdefs.h <<_ACEOF
21999#define HAVE_LLROUNDF 1
22000_ACEOF
94f548c2 22001
db9f46a9 22002 fi
94f548c2 22003
94f548c2 22004
db9f46a9
TG
22005
22006
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
22008$as_echo_n "checking for llround... " >&6; }
22e05272 22009if ${gcc_cv_math_func_llround+:} false; then :
5213506e 22010 $as_echo_n "(cached) " >&6
94f548c2 22011else
db9f46a9 22012 if test x$gcc_no_link = xyes; then
22e05272 22013 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22014fi
5213506e 22015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22016/* end confdefs.h. */
22017
db9f46a9
TG
22018#ifdef HAVE_COMPLEX_H
22019#include <complex.h>
22020#endif
22021#ifdef HAVE_MATH_H
22022#include <math.h>
94f548c2 22023#endif
db9f46a9
TG
22024
22025int (*ptr)() = (int (*)())llround;
22026
94f548c2
FXC
22027int
22028main ()
22029{
94f548c2
FXC
22030 return 0;
22031}
db9f46a9 22032
94f548c2 22033_ACEOF
5213506e 22034if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22035 gcc_cv_math_func_llround=yes
94f548c2 22036else
db9f46a9 22037 gcc_cv_math_func_llround=no
94f548c2 22038fi
5213506e
RW
22039rm -f core conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
94f548c2 22041fi
db9f46a9
TG
22042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
22043$as_echo "$gcc_cv_math_func_llround" >&6; }
22044 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 22045
f38a14ca
TG
22046cat >>confdefs.h <<_ACEOF
22047#define HAVE_LLROUND 1
22048_ACEOF
db9f46a9
TG
22049
22050 fi
22051
94f548c2 22052
94f548c2 22053
94f548c2 22054
db9f46a9
TG
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
22056$as_echo_n "checking for llroundl... " >&6; }
22e05272 22057if ${gcc_cv_math_func_llroundl+:} false; then :
5213506e 22058 $as_echo_n "(cached) " >&6
1409cd0b 22059else
db9f46a9 22060 if test x$gcc_no_link = xyes; then
22e05272 22061 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22062fi
5213506e 22063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22064/* end confdefs.h. */
22065
db9f46a9
TG
22066#ifdef HAVE_COMPLEX_H
22067#include <complex.h>
22068#endif
22069#ifdef HAVE_MATH_H
22070#include <math.h>
1409cd0b 22071#endif
db9f46a9
TG
22072
22073int (*ptr)() = (int (*)())llroundl;
22074
1409cd0b
FXC
22075int
22076main ()
22077{
1409cd0b
FXC
22078 return 0;
22079}
db9f46a9 22080
1409cd0b 22081_ACEOF
5213506e 22082if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22083 gcc_cv_math_func_llroundl=yes
1409cd0b 22084else
db9f46a9 22085 gcc_cv_math_func_llroundl=no
1409cd0b 22086fi
5213506e
RW
22087rm -f core conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22089fi
db9f46a9
TG
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
22091$as_echo "$gcc_cv_math_func_llroundl" >&6; }
22092 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 22093
f38a14ca
TG
22094cat >>confdefs.h <<_ACEOF
22095#define HAVE_LLROUNDL 1
22096_ACEOF
1409cd0b 22097
db9f46a9 22098 fi
1409cd0b 22099
1409cd0b 22100
db9f46a9
TG
22101
22102
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
22104$as_echo_n "checking for scalbnf... " >&6; }
22e05272 22105if ${gcc_cv_math_func_scalbnf+:} false; then :
5213506e 22106 $as_echo_n "(cached) " >&6
1409cd0b 22107else
db9f46a9 22108 if test x$gcc_no_link = xyes; then
22e05272 22109 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22110fi
5213506e 22111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22112/* end confdefs.h. */
22113
db9f46a9
TG
22114#ifdef HAVE_COMPLEX_H
22115#include <complex.h>
1409cd0b 22116#endif
db9f46a9
TG
22117#ifdef HAVE_MATH_H
22118#include <math.h>
22119#endif
22120
22121int (*ptr)() = (int (*)())scalbnf;
22122
1409cd0b
FXC
22123int
22124main ()
22125{
1409cd0b
FXC
22126 return 0;
22127}
db9f46a9 22128
1409cd0b 22129_ACEOF
5213506e 22130if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22131 gcc_cv_math_func_scalbnf=yes
1409cd0b 22132else
db9f46a9 22133 gcc_cv_math_func_scalbnf=no
1409cd0b 22134fi
5213506e
RW
22135rm -f core conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22137fi
db9f46a9
TG
22138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22139$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22140 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 22141
f38a14ca
TG
22142cat >>confdefs.h <<_ACEOF
22143#define HAVE_SCALBNF 1
22144_ACEOF
1409cd0b 22145
db9f46a9 22146 fi
1409cd0b 22147
1409cd0b 22148
db9f46a9
TG
22149
22150
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22152$as_echo_n "checking for scalbn... " >&6; }
22e05272 22153if ${gcc_cv_math_func_scalbn+:} false; then :
5213506e 22154 $as_echo_n "(cached) " >&6
1409cd0b 22155else
db9f46a9 22156 if test x$gcc_no_link = xyes; then
22e05272 22157 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22158fi
5213506e 22159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22160/* end confdefs.h. */
22161
db9f46a9
TG
22162#ifdef HAVE_COMPLEX_H
22163#include <complex.h>
22164#endif
22165#ifdef HAVE_MATH_H
22166#include <math.h>
1409cd0b 22167#endif
db9f46a9
TG
22168
22169int (*ptr)() = (int (*)())scalbn;
22170
1409cd0b
FXC
22171int
22172main ()
22173{
1409cd0b
FXC
22174 return 0;
22175}
db9f46a9 22176
1409cd0b 22177_ACEOF
5213506e 22178if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22179 gcc_cv_math_func_scalbn=yes
1409cd0b 22180else
db9f46a9 22181 gcc_cv_math_func_scalbn=no
1409cd0b 22182fi
5213506e
RW
22183rm -f core conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22185fi
db9f46a9
TG
22186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22187$as_echo "$gcc_cv_math_func_scalbn" >&6; }
22188 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 22189
f38a14ca
TG
22190cat >>confdefs.h <<_ACEOF
22191#define HAVE_SCALBN 1
22192_ACEOF
db9f46a9
TG
22193
22194 fi
22195
1409cd0b 22196
1409cd0b 22197
1409cd0b 22198
db9f46a9
TG
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22200$as_echo_n "checking for scalbnl... " >&6; }
22e05272 22201if ${gcc_cv_math_func_scalbnl+:} false; then :
5213506e 22202 $as_echo_n "(cached) " >&6
1409cd0b 22203else
db9f46a9 22204 if test x$gcc_no_link = xyes; then
22e05272 22205 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22206fi
5213506e 22207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22208/* end confdefs.h. */
22209
db9f46a9
TG
22210#ifdef HAVE_COMPLEX_H
22211#include <complex.h>
22212#endif
22213#ifdef HAVE_MATH_H
22214#include <math.h>
1409cd0b 22215#endif
db9f46a9
TG
22216
22217int (*ptr)() = (int (*)())scalbnl;
22218
1409cd0b
FXC
22219int
22220main ()
22221{
1409cd0b
FXC
22222 return 0;
22223}
db9f46a9 22224
1409cd0b 22225_ACEOF
5213506e 22226if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22227 gcc_cv_math_func_scalbnl=yes
1409cd0b 22228else
db9f46a9 22229 gcc_cv_math_func_scalbnl=no
1409cd0b 22230fi
5213506e
RW
22231rm -f core conftest.err conftest.$ac_objext \
22232 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22233fi
db9f46a9
TG
22234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22235$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22236 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 22237
f38a14ca
TG
22238cat >>confdefs.h <<_ACEOF
22239#define HAVE_SCALBNL 1
22240_ACEOF
1409cd0b 22241
db9f46a9 22242 fi
1409cd0b 22243
1409cd0b 22244
db9f46a9
TG
22245
22246
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22248$as_echo_n "checking for sinf... " >&6; }
22e05272 22249if ${gcc_cv_math_func_sinf+:} false; then :
5213506e 22250 $as_echo_n "(cached) " >&6
1409cd0b 22251else
db9f46a9 22252 if test x$gcc_no_link = xyes; then
22e05272 22253 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22254fi
5213506e 22255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22256/* end confdefs.h. */
22257
db9f46a9
TG
22258#ifdef HAVE_COMPLEX_H
22259#include <complex.h>
1409cd0b 22260#endif
db9f46a9
TG
22261#ifdef HAVE_MATH_H
22262#include <math.h>
22263#endif
22264
22265int (*ptr)() = (int (*)())sinf;
22266
1409cd0b
FXC
22267int
22268main ()
22269{
1409cd0b
FXC
22270 return 0;
22271}
db9f46a9 22272
1409cd0b 22273_ACEOF
5213506e 22274if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22275 gcc_cv_math_func_sinf=yes
1409cd0b 22276else
db9f46a9 22277 gcc_cv_math_func_sinf=no
1409cd0b 22278fi
5213506e
RW
22279rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22281fi
db9f46a9
TG
22282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22283$as_echo "$gcc_cv_math_func_sinf" >&6; }
22284 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 22285
f38a14ca
TG
22286cat >>confdefs.h <<_ACEOF
22287#define HAVE_SINF 1
22288_ACEOF
1409cd0b 22289
db9f46a9 22290 fi
1409cd0b 22291
1409cd0b 22292
db9f46a9
TG
22293
22294
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22296$as_echo_n "checking for sin... " >&6; }
22e05272 22297if ${gcc_cv_math_func_sin+:} false; then :
5213506e 22298 $as_echo_n "(cached) " >&6
1409cd0b 22299else
db9f46a9 22300 if test x$gcc_no_link = xyes; then
22e05272 22301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22302fi
5213506e 22303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22304/* end confdefs.h. */
22305
db9f46a9
TG
22306#ifdef HAVE_COMPLEX_H
22307#include <complex.h>
1409cd0b 22308#endif
db9f46a9
TG
22309#ifdef HAVE_MATH_H
22310#include <math.h>
22311#endif
22312
22313int (*ptr)() = (int (*)())sin;
22314
1409cd0b
FXC
22315int
22316main ()
22317{
1409cd0b
FXC
22318 return 0;
22319}
db9f46a9 22320
1409cd0b 22321_ACEOF
5213506e 22322if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22323 gcc_cv_math_func_sin=yes
1409cd0b 22324else
db9f46a9 22325 gcc_cv_math_func_sin=no
1409cd0b 22326fi
5213506e
RW
22327rm -f core conftest.err conftest.$ac_objext \
22328 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22329fi
db9f46a9
TG
22330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22331$as_echo "$gcc_cv_math_func_sin" >&6; }
22332 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 22333
f38a14ca
TG
22334cat >>confdefs.h <<_ACEOF
22335#define HAVE_SIN 1
22336_ACEOF
db9f46a9
TG
22337
22338 fi
22339
1409cd0b 22340
1409cd0b 22341
1409cd0b 22342
db9f46a9
TG
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22344$as_echo_n "checking for sinl... " >&6; }
22e05272 22345if ${gcc_cv_math_func_sinl+:} false; then :
5213506e 22346 $as_echo_n "(cached) " >&6
1409cd0b 22347else
db9f46a9 22348 if test x$gcc_no_link = xyes; then
22e05272 22349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22350fi
5213506e 22351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22352/* end confdefs.h. */
22353
db9f46a9
TG
22354#ifdef HAVE_COMPLEX_H
22355#include <complex.h>
1409cd0b 22356#endif
db9f46a9
TG
22357#ifdef HAVE_MATH_H
22358#include <math.h>
22359#endif
22360
22361int (*ptr)() = (int (*)())sinl;
22362
1409cd0b
FXC
22363int
22364main ()
22365{
5213506e
RW
22366 return 0;
22367}
db9f46a9 22368
5213506e
RW
22369_ACEOF
22370if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22371 gcc_cv_math_func_sinl=yes
1409cd0b 22372else
db9f46a9 22373 gcc_cv_math_func_sinl=no
1409cd0b 22374fi
5213506e
RW
22375rm -f core conftest.err conftest.$ac_objext \
22376 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22377fi
db9f46a9
TG
22378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22379$as_echo "$gcc_cv_math_func_sinl" >&6; }
22380 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 22381
f38a14ca
TG
22382cat >>confdefs.h <<_ACEOF
22383#define HAVE_SINL 1
22384_ACEOF
db9f46a9
TG
22385
22386 fi
1409cd0b 22387
1409cd0b 22388
1409cd0b 22389
db9f46a9
TG
22390
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22392$as_echo_n "checking for csinf... " >&6; }
22e05272 22393if ${gcc_cv_math_func_csinf+:} false; then :
5213506e 22394 $as_echo_n "(cached) " >&6
1409cd0b 22395else
db9f46a9 22396 if test x$gcc_no_link = xyes; then
22e05272 22397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22398fi
5213506e 22399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22400/* end confdefs.h. */
22401
db9f46a9
TG
22402#ifdef HAVE_COMPLEX_H
22403#include <complex.h>
22404#endif
22405#ifdef HAVE_MATH_H
22406#include <math.h>
1409cd0b 22407#endif
db9f46a9
TG
22408
22409int (*ptr)() = (int (*)())csinf;
22410
1409cd0b
FXC
22411int
22412main ()
22413{
1409cd0b
FXC
22414 return 0;
22415}
db9f46a9 22416
1409cd0b 22417_ACEOF
5213506e 22418if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22419 gcc_cv_math_func_csinf=yes
1409cd0b 22420else
db9f46a9 22421 gcc_cv_math_func_csinf=no
1409cd0b 22422fi
5213506e
RW
22423rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22425fi
db9f46a9
TG
22426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22427$as_echo "$gcc_cv_math_func_csinf" >&6; }
22428 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 22429
f38a14ca
TG
22430cat >>confdefs.h <<_ACEOF
22431#define HAVE_CSINF 1
22432_ACEOF
1409cd0b 22433
db9f46a9 22434 fi
1409cd0b 22435
1409cd0b 22436
db9f46a9
TG
22437
22438
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22440$as_echo_n "checking for csin... " >&6; }
22e05272 22441if ${gcc_cv_math_func_csin+:} false; then :
5213506e 22442 $as_echo_n "(cached) " >&6
1409cd0b 22443else
db9f46a9 22444 if test x$gcc_no_link = xyes; then
22e05272 22445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22446fi
5213506e 22447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22448/* end confdefs.h. */
22449
db9f46a9
TG
22450#ifdef HAVE_COMPLEX_H
22451#include <complex.h>
1409cd0b 22452#endif
db9f46a9
TG
22453#ifdef HAVE_MATH_H
22454#include <math.h>
22455#endif
22456
22457int (*ptr)() = (int (*)())csin;
22458
1409cd0b
FXC
22459int
22460main ()
22461{
1409cd0b
FXC
22462 return 0;
22463}
db9f46a9 22464
1409cd0b 22465_ACEOF
5213506e 22466if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22467 gcc_cv_math_func_csin=yes
1409cd0b 22468else
db9f46a9 22469 gcc_cv_math_func_csin=no
1409cd0b 22470fi
5213506e
RW
22471rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22473fi
db9f46a9
TG
22474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22475$as_echo "$gcc_cv_math_func_csin" >&6; }
22476 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 22477
f38a14ca
TG
22478cat >>confdefs.h <<_ACEOF
22479#define HAVE_CSIN 1
22480_ACEOF
db9f46a9
TG
22481
22482 fi
22483
1409cd0b 22484
1409cd0b 22485
1409cd0b 22486
db9f46a9
TG
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22488$as_echo_n "checking for csinl... " >&6; }
22e05272 22489if ${gcc_cv_math_func_csinl+:} false; then :
5213506e 22490 $as_echo_n "(cached) " >&6
1409cd0b 22491else
db9f46a9 22492 if test x$gcc_no_link = xyes; then
22e05272 22493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22494fi
5213506e 22495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22496/* end confdefs.h. */
22497
db9f46a9
TG
22498#ifdef HAVE_COMPLEX_H
22499#include <complex.h>
1409cd0b 22500#endif
db9f46a9
TG
22501#ifdef HAVE_MATH_H
22502#include <math.h>
22503#endif
22504
22505int (*ptr)() = (int (*)())csinl;
22506
1409cd0b
FXC
22507int
22508main ()
22509{
1409cd0b
FXC
22510 return 0;
22511}
db9f46a9 22512
1409cd0b 22513_ACEOF
5213506e 22514if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22515 gcc_cv_math_func_csinl=yes
1409cd0b 22516else
db9f46a9 22517 gcc_cv_math_func_csinl=no
1409cd0b 22518fi
5213506e
RW
22519rm -f core conftest.err conftest.$ac_objext \
22520 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22521fi
db9f46a9
TG
22522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22523$as_echo "$gcc_cv_math_func_csinl" >&6; }
22524 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 22525
f38a14ca
TG
22526cat >>confdefs.h <<_ACEOF
22527#define HAVE_CSINL 1
22528_ACEOF
db9f46a9
TG
22529
22530 fi
1409cd0b 22531
1409cd0b 22532
1409cd0b 22533
db9f46a9
TG
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22536$as_echo_n "checking for sinhf... " >&6; }
22e05272 22537if ${gcc_cv_math_func_sinhf+:} false; then :
5213506e 22538 $as_echo_n "(cached) " >&6
1409cd0b 22539else
db9f46a9 22540 if test x$gcc_no_link = xyes; then
22e05272 22541 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22542fi
5213506e 22543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22544/* end confdefs.h. */
22545
db9f46a9
TG
22546#ifdef HAVE_COMPLEX_H
22547#include <complex.h>
22548#endif
22549#ifdef HAVE_MATH_H
22550#include <math.h>
1409cd0b 22551#endif
db9f46a9
TG
22552
22553int (*ptr)() = (int (*)())sinhf;
22554
1409cd0b
FXC
22555int
22556main ()
22557{
1409cd0b
FXC
22558 return 0;
22559}
db9f46a9 22560
1409cd0b 22561_ACEOF
5213506e 22562if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22563 gcc_cv_math_func_sinhf=yes
1409cd0b 22564else
db9f46a9 22565 gcc_cv_math_func_sinhf=no
1409cd0b 22566fi
5213506e
RW
22567rm -f core conftest.err conftest.$ac_objext \
22568 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22569fi
db9f46a9
TG
22570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22571$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22572 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 22573
f38a14ca
TG
22574cat >>confdefs.h <<_ACEOF
22575#define HAVE_SINHF 1
22576_ACEOF
1409cd0b 22577
db9f46a9 22578 fi
1409cd0b 22579
1409cd0b 22580
db9f46a9
TG
22581
22582
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22584$as_echo_n "checking for sinh... " >&6; }
22e05272 22585if ${gcc_cv_math_func_sinh+:} false; then :
5213506e 22586 $as_echo_n "(cached) " >&6
1409cd0b 22587else
db9f46a9 22588 if test x$gcc_no_link = xyes; then
22e05272 22589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22590fi
5213506e 22591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22592/* end confdefs.h. */
22593
db9f46a9
TG
22594#ifdef HAVE_COMPLEX_H
22595#include <complex.h>
1409cd0b 22596#endif
db9f46a9
TG
22597#ifdef HAVE_MATH_H
22598#include <math.h>
22599#endif
22600
22601int (*ptr)() = (int (*)())sinh;
22602
1409cd0b
FXC
22603int
22604main ()
22605{
1409cd0b
FXC
22606 return 0;
22607}
db9f46a9 22608
1409cd0b 22609_ACEOF
5213506e 22610if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22611 gcc_cv_math_func_sinh=yes
1409cd0b 22612else
db9f46a9 22613 gcc_cv_math_func_sinh=no
1409cd0b 22614fi
5213506e
RW
22615rm -f core conftest.err conftest.$ac_objext \
22616 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22617fi
db9f46a9
TG
22618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22619$as_echo "$gcc_cv_math_func_sinh" >&6; }
22620 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22621
f38a14ca
TG
22622cat >>confdefs.h <<_ACEOF
22623#define HAVE_SINH 1
22624_ACEOF
db9f46a9
TG
22625
22626 fi
22627
1409cd0b 22628
1409cd0b 22629
1409cd0b 22630
db9f46a9
TG
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22632$as_echo_n "checking for sinhl... " >&6; }
22e05272 22633if ${gcc_cv_math_func_sinhl+:} false; then :
5213506e 22634 $as_echo_n "(cached) " >&6
1409cd0b 22635else
db9f46a9 22636 if test x$gcc_no_link = xyes; then
22e05272 22637 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22638fi
5213506e 22639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22640/* end confdefs.h. */
22641
db9f46a9
TG
22642#ifdef HAVE_COMPLEX_H
22643#include <complex.h>
1409cd0b 22644#endif
db9f46a9
TG
22645#ifdef HAVE_MATH_H
22646#include <math.h>
22647#endif
22648
22649int (*ptr)() = (int (*)())sinhl;
22650
1409cd0b
FXC
22651int
22652main ()
22653{
1409cd0b
FXC
22654 return 0;
22655}
db9f46a9 22656
1409cd0b 22657_ACEOF
5213506e 22658if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22659 gcc_cv_math_func_sinhl=yes
1409cd0b 22660else
db9f46a9 22661 gcc_cv_math_func_sinhl=no
1409cd0b 22662fi
5213506e
RW
22663rm -f core conftest.err conftest.$ac_objext \
22664 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22665fi
db9f46a9
TG
22666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22667$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22668 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22669
f38a14ca
TG
22670cat >>confdefs.h <<_ACEOF
22671#define HAVE_SINHL 1
22672_ACEOF
db9f46a9
TG
22673
22674 fi
1409cd0b 22675
1409cd0b 22676
1409cd0b 22677
db9f46a9
TG
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22680$as_echo_n "checking for csinhf... " >&6; }
22e05272 22681if ${gcc_cv_math_func_csinhf+:} false; then :
5213506e 22682 $as_echo_n "(cached) " >&6
1409cd0b 22683else
db9f46a9 22684 if test x$gcc_no_link = xyes; then
22e05272 22685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22686fi
5213506e 22687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22688/* end confdefs.h. */
22689
db9f46a9
TG
22690#ifdef HAVE_COMPLEX_H
22691#include <complex.h>
22692#endif
22693#ifdef HAVE_MATH_H
22694#include <math.h>
1409cd0b 22695#endif
db9f46a9
TG
22696
22697int (*ptr)() = (int (*)())csinhf;
22698
1409cd0b
FXC
22699int
22700main ()
22701{
1409cd0b
FXC
22702 return 0;
22703}
db9f46a9 22704
1409cd0b 22705_ACEOF
5213506e 22706if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22707 gcc_cv_math_func_csinhf=yes
1409cd0b 22708else
db9f46a9 22709 gcc_cv_math_func_csinhf=no
1409cd0b 22710fi
5213506e
RW
22711rm -f core conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22713fi
db9f46a9
TG
22714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22715$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22716 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22717
f38a14ca
TG
22718cat >>confdefs.h <<_ACEOF
22719#define HAVE_CSINHF 1
22720_ACEOF
1409cd0b 22721
db9f46a9 22722 fi
1409cd0b 22723
1409cd0b 22724
db9f46a9
TG
22725
22726
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22728$as_echo_n "checking for csinh... " >&6; }
22e05272 22729if ${gcc_cv_math_func_csinh+:} false; then :
5213506e 22730 $as_echo_n "(cached) " >&6
1409cd0b 22731else
db9f46a9 22732 if test x$gcc_no_link = xyes; then
22e05272 22733 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22734fi
5213506e 22735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22736/* end confdefs.h. */
22737
db9f46a9
TG
22738#ifdef HAVE_COMPLEX_H
22739#include <complex.h>
1409cd0b 22740#endif
db9f46a9
TG
22741#ifdef HAVE_MATH_H
22742#include <math.h>
22743#endif
22744
22745int (*ptr)() = (int (*)())csinh;
22746
1409cd0b
FXC
22747int
22748main ()
22749{
1409cd0b
FXC
22750 return 0;
22751}
db9f46a9 22752
1409cd0b 22753_ACEOF
5213506e 22754if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22755 gcc_cv_math_func_csinh=yes
1409cd0b 22756else
db9f46a9 22757 gcc_cv_math_func_csinh=no
1409cd0b 22758fi
5213506e
RW
22759rm -f core conftest.err conftest.$ac_objext \
22760 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22761fi
db9f46a9
TG
22762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22763$as_echo "$gcc_cv_math_func_csinh" >&6; }
22764 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22765
f38a14ca
TG
22766cat >>confdefs.h <<_ACEOF
22767#define HAVE_CSINH 1
22768_ACEOF
db9f46a9
TG
22769
22770 fi
22771
1409cd0b 22772
1409cd0b 22773
1409cd0b 22774
db9f46a9
TG
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22776$as_echo_n "checking for csinhl... " >&6; }
22e05272 22777if ${gcc_cv_math_func_csinhl+:} false; then :
5213506e 22778 $as_echo_n "(cached) " >&6
1409cd0b 22779else
db9f46a9 22780 if test x$gcc_no_link = xyes; then
22e05272 22781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22782fi
5213506e 22783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22784/* end confdefs.h. */
22785
db9f46a9
TG
22786#ifdef HAVE_COMPLEX_H
22787#include <complex.h>
1409cd0b 22788#endif
db9f46a9
TG
22789#ifdef HAVE_MATH_H
22790#include <math.h>
22791#endif
22792
22793int (*ptr)() = (int (*)())csinhl;
22794
1409cd0b
FXC
22795int
22796main ()
22797{
1409cd0b
FXC
22798 return 0;
22799}
db9f46a9 22800
1409cd0b 22801_ACEOF
5213506e 22802if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22803 gcc_cv_math_func_csinhl=yes
1409cd0b 22804else
db9f46a9 22805 gcc_cv_math_func_csinhl=no
1409cd0b 22806fi
5213506e
RW
22807rm -f core conftest.err conftest.$ac_objext \
22808 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22809fi
db9f46a9
TG
22810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22811$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22812 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22813
f38a14ca
TG
22814cat >>confdefs.h <<_ACEOF
22815#define HAVE_CSINHL 1
22816_ACEOF
db9f46a9
TG
22817
22818 fi
1409cd0b 22819
1409cd0b 22820
1409cd0b 22821
db9f46a9
TG
22822
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22824$as_echo_n "checking for sqrtf... " >&6; }
22e05272 22825if ${gcc_cv_math_func_sqrtf+:} false; then :
5213506e 22826 $as_echo_n "(cached) " >&6
1409cd0b 22827else
db9f46a9 22828 if test x$gcc_no_link = xyes; then
22e05272 22829 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22830fi
5213506e 22831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22832/* end confdefs.h. */
22833
db9f46a9
TG
22834#ifdef HAVE_COMPLEX_H
22835#include <complex.h>
22836#endif
22837#ifdef HAVE_MATH_H
22838#include <math.h>
1409cd0b 22839#endif
db9f46a9
TG
22840
22841int (*ptr)() = (int (*)())sqrtf;
22842
1409cd0b
FXC
22843int
22844main ()
22845{
1409cd0b
FXC
22846 return 0;
22847}
db9f46a9 22848
1409cd0b 22849_ACEOF
5213506e 22850if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22851 gcc_cv_math_func_sqrtf=yes
1409cd0b 22852else
db9f46a9 22853 gcc_cv_math_func_sqrtf=no
1409cd0b 22854fi
5213506e
RW
22855rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22857fi
db9f46a9
TG
22858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22859$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22860 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22861
f38a14ca
TG
22862cat >>confdefs.h <<_ACEOF
22863#define HAVE_SQRTF 1
22864_ACEOF
db9f46a9
TG
22865
22866 fi
1409cd0b 22867
1409cd0b 22868
db9f46a9
TG
22869
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22872$as_echo_n "checking for sqrt... " >&6; }
22e05272 22873if ${gcc_cv_math_func_sqrt+:} false; then :
db9f46a9
TG
22874 $as_echo_n "(cached) " >&6
22875else
22876 if test x$gcc_no_link = xyes; then
22e05272 22877 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22878fi
db9f46a9
TG
22879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880/* end confdefs.h. */
22881
22882#ifdef HAVE_COMPLEX_H
22883#include <complex.h>
22884#endif
22885#ifdef HAVE_MATH_H
22886#include <math.h>
22887#endif
22888
22889int (*ptr)() = (int (*)())sqrt;
22890
22891int
22892main ()
22893{
22894 return 0;
22895}
22896
22897_ACEOF
22898if ac_fn_c_try_link "$LINENO"; then :
22899 gcc_cv_math_func_sqrt=yes
22900else
22901 gcc_cv_math_func_sqrt=no
22902fi
22903rm -f core conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22905fi
22906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22907$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22908 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22909
f38a14ca
TG
22910cat >>confdefs.h <<_ACEOF
22911#define HAVE_SQRT 1
22912_ACEOF
db9f46a9
TG
22913
22914 fi
1409cd0b 22915
db9f46a9
TG
22916
22917
22918
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22920$as_echo_n "checking for sqrtl... " >&6; }
22e05272 22921if ${gcc_cv_math_func_sqrtl+:} false; then :
5213506e 22922 $as_echo_n "(cached) " >&6
1409cd0b 22923else
db9f46a9 22924 if test x$gcc_no_link = xyes; then
22e05272 22925 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22926fi
5213506e 22927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22928/* end confdefs.h. */
22929
db9f46a9
TG
22930#ifdef HAVE_COMPLEX_H
22931#include <complex.h>
22932#endif
22933#ifdef HAVE_MATH_H
22934#include <math.h>
1409cd0b 22935#endif
db9f46a9
TG
22936
22937int (*ptr)() = (int (*)())sqrtl;
22938
1409cd0b
FXC
22939int
22940main ()
22941{
1409cd0b
FXC
22942 return 0;
22943}
db9f46a9 22944
1409cd0b 22945_ACEOF
5213506e 22946if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22947 gcc_cv_math_func_sqrtl=yes
1409cd0b 22948else
db9f46a9 22949 gcc_cv_math_func_sqrtl=no
1409cd0b 22950fi
5213506e
RW
22951rm -f core conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22953fi
db9f46a9
TG
22954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22955$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22956 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22957
f38a14ca
TG
22958cat >>confdefs.h <<_ACEOF
22959#define HAVE_SQRTL 1
22960_ACEOF
db9f46a9
TG
22961
22962 fi
1409cd0b 22963
1409cd0b 22964
1409cd0b 22965
db9f46a9
TG
22966
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22968$as_echo_n "checking for csqrtf... " >&6; }
22e05272 22969if ${gcc_cv_math_func_csqrtf+:} false; then :
5213506e 22970 $as_echo_n "(cached) " >&6
1409cd0b 22971else
db9f46a9 22972 if test x$gcc_no_link = xyes; then
22e05272 22973 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22974fi
5213506e 22975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22976/* end confdefs.h. */
22977
db9f46a9
TG
22978#ifdef HAVE_COMPLEX_H
22979#include <complex.h>
1409cd0b 22980#endif
db9f46a9
TG
22981#ifdef HAVE_MATH_H
22982#include <math.h>
22983#endif
22984
22985int (*ptr)() = (int (*)())csqrtf;
22986
1409cd0b
FXC
22987int
22988main ()
22989{
1409cd0b
FXC
22990 return 0;
22991}
db9f46a9 22992
1409cd0b 22993_ACEOF
5213506e 22994if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22995 gcc_cv_math_func_csqrtf=yes
1409cd0b 22996else
db9f46a9 22997 gcc_cv_math_func_csqrtf=no
1409cd0b 22998fi
5213506e
RW
22999rm -f core conftest.err conftest.$ac_objext \
23000 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23001fi
db9f46a9
TG
23002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
23003$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
23004 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 23005
f38a14ca
TG
23006cat >>confdefs.h <<_ACEOF
23007#define HAVE_CSQRTF 1
23008_ACEOF
1409cd0b 23009
db9f46a9 23010 fi
1409cd0b 23011
1409cd0b 23012
db9f46a9
TG
23013
23014
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
23016$as_echo_n "checking for csqrt... " >&6; }
22e05272 23017if ${gcc_cv_math_func_csqrt+:} false; then :
5213506e 23018 $as_echo_n "(cached) " >&6
1409cd0b 23019else
db9f46a9 23020 if test x$gcc_no_link = xyes; then
22e05272 23021 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23022fi
5213506e 23023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23024/* end confdefs.h. */
23025
db9f46a9
TG
23026#ifdef HAVE_COMPLEX_H
23027#include <complex.h>
23028#endif
23029#ifdef HAVE_MATH_H
23030#include <math.h>
1409cd0b 23031#endif
db9f46a9
TG
23032
23033int (*ptr)() = (int (*)())csqrt;
23034
1409cd0b
FXC
23035int
23036main ()
23037{
1409cd0b
FXC
23038 return 0;
23039}
db9f46a9 23040
1409cd0b 23041_ACEOF
5213506e 23042if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23043 gcc_cv_math_func_csqrt=yes
1409cd0b 23044else
db9f46a9 23045 gcc_cv_math_func_csqrt=no
1409cd0b 23046fi
5213506e
RW
23047rm -f core conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23049fi
db9f46a9
TG
23050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
23051$as_echo "$gcc_cv_math_func_csqrt" >&6; }
23052 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 23053
f38a14ca
TG
23054cat >>confdefs.h <<_ACEOF
23055#define HAVE_CSQRT 1
23056_ACEOF
db9f46a9
TG
23057
23058 fi
1409cd0b 23059
1409cd0b 23060
1409cd0b 23061
db9f46a9
TG
23062
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
23064$as_echo_n "checking for csqrtl... " >&6; }
22e05272 23065if ${gcc_cv_math_func_csqrtl+:} false; then :
5213506e 23066 $as_echo_n "(cached) " >&6
1409cd0b 23067else
db9f46a9 23068 if test x$gcc_no_link = xyes; then
22e05272 23069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23070fi
5213506e 23071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23072/* end confdefs.h. */
23073
db9f46a9
TG
23074#ifdef HAVE_COMPLEX_H
23075#include <complex.h>
1409cd0b 23076#endif
db9f46a9
TG
23077#ifdef HAVE_MATH_H
23078#include <math.h>
23079#endif
23080
23081int (*ptr)() = (int (*)())csqrtl;
23082
1409cd0b
FXC
23083int
23084main ()
23085{
1409cd0b
FXC
23086 return 0;
23087}
db9f46a9 23088
1409cd0b 23089_ACEOF
5213506e 23090if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23091 gcc_cv_math_func_csqrtl=yes
1409cd0b 23092else
db9f46a9 23093 gcc_cv_math_func_csqrtl=no
1409cd0b 23094fi
5213506e
RW
23095rm -f core conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23097fi
db9f46a9
TG
23098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
23099$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
23100 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 23101
f38a14ca
TG
23102cat >>confdefs.h <<_ACEOF
23103#define HAVE_CSQRTL 1
23104_ACEOF
db9f46a9
TG
23105
23106 fi
23107
1409cd0b 23108
1409cd0b 23109
1409cd0b 23110
db9f46a9
TG
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
23112$as_echo_n "checking for tanf... " >&6; }
22e05272 23113if ${gcc_cv_math_func_tanf+:} false; then :
5213506e 23114 $as_echo_n "(cached) " >&6
1409cd0b 23115else
db9f46a9 23116 if test x$gcc_no_link = xyes; then
22e05272 23117 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23118fi
5213506e 23119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23120/* end confdefs.h. */
23121
db9f46a9
TG
23122#ifdef HAVE_COMPLEX_H
23123#include <complex.h>
23124#endif
23125#ifdef HAVE_MATH_H
23126#include <math.h>
1409cd0b 23127#endif
db9f46a9
TG
23128
23129int (*ptr)() = (int (*)())tanf;
23130
1409cd0b
FXC
23131int
23132main ()
23133{
1409cd0b
FXC
23134 return 0;
23135}
db9f46a9 23136
1409cd0b 23137_ACEOF
5213506e 23138if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23139 gcc_cv_math_func_tanf=yes
1409cd0b 23140else
db9f46a9 23141 gcc_cv_math_func_tanf=no
1409cd0b 23142fi
5213506e
RW
23143rm -f core conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23145fi
db9f46a9
TG
23146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23147$as_echo "$gcc_cv_math_func_tanf" >&6; }
23148 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 23149
f38a14ca
TG
23150cat >>confdefs.h <<_ACEOF
23151#define HAVE_TANF 1
23152_ACEOF
db9f46a9
TG
23153
23154 fi
1409cd0b 23155
1409cd0b 23156
1409cd0b 23157
db9f46a9
TG
23158
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23160$as_echo_n "checking for tan... " >&6; }
22e05272 23161if ${gcc_cv_math_func_tan+:} false; then :
5213506e 23162 $as_echo_n "(cached) " >&6
1409cd0b 23163else
db9f46a9 23164 if test x$gcc_no_link = xyes; then
22e05272 23165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23166fi
5213506e 23167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23168/* end confdefs.h. */
23169
db9f46a9
TG
23170#ifdef HAVE_COMPLEX_H
23171#include <complex.h>
1409cd0b 23172#endif
db9f46a9
TG
23173#ifdef HAVE_MATH_H
23174#include <math.h>
23175#endif
23176
23177int (*ptr)() = (int (*)())tan;
23178
1409cd0b
FXC
23179int
23180main ()
23181{
1409cd0b
FXC
23182 return 0;
23183}
db9f46a9 23184
1409cd0b 23185_ACEOF
5213506e 23186if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23187 gcc_cv_math_func_tan=yes
1409cd0b 23188else
db9f46a9 23189 gcc_cv_math_func_tan=no
1409cd0b 23190fi
5213506e
RW
23191rm -f core conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23193fi
db9f46a9
TG
23194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23195$as_echo "$gcc_cv_math_func_tan" >&6; }
23196 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 23197
f38a14ca
TG
23198cat >>confdefs.h <<_ACEOF
23199#define HAVE_TAN 1
23200_ACEOF
1409cd0b 23201
db9f46a9 23202 fi
1409cd0b 23203
1409cd0b 23204
db9f46a9
TG
23205
23206
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23208$as_echo_n "checking for tanl... " >&6; }
22e05272 23209if ${gcc_cv_math_func_tanl+:} false; then :
5213506e 23210 $as_echo_n "(cached) " >&6
1409cd0b 23211else
db9f46a9 23212 if test x$gcc_no_link = xyes; then
22e05272 23213 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23214fi
5213506e 23215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23216/* end confdefs.h. */
23217
db9f46a9
TG
23218#ifdef HAVE_COMPLEX_H
23219#include <complex.h>
23220#endif
23221#ifdef HAVE_MATH_H
23222#include <math.h>
1409cd0b 23223#endif
db9f46a9
TG
23224
23225int (*ptr)() = (int (*)())tanl;
23226
1409cd0b
FXC
23227int
23228main ()
23229{
1409cd0b
FXC
23230 return 0;
23231}
db9f46a9 23232
1409cd0b 23233_ACEOF
5213506e 23234if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23235 gcc_cv_math_func_tanl=yes
1409cd0b 23236else
db9f46a9 23237 gcc_cv_math_func_tanl=no
1409cd0b 23238fi
5213506e
RW
23239rm -f core conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23241fi
db9f46a9
TG
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23243$as_echo "$gcc_cv_math_func_tanl" >&6; }
23244 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 23245
f38a14ca
TG
23246cat >>confdefs.h <<_ACEOF
23247#define HAVE_TANL 1
23248_ACEOF
db9f46a9
TG
23249
23250 fi
1409cd0b 23251
1409cd0b 23252
1409cd0b 23253
db9f46a9
TG
23254
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23256$as_echo_n "checking for ctanf... " >&6; }
22e05272 23257if ${gcc_cv_math_func_ctanf+:} false; then :
5213506e 23258 $as_echo_n "(cached) " >&6
1409cd0b 23259else
db9f46a9 23260 if test x$gcc_no_link = xyes; then
22e05272 23261 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23262fi
5213506e 23263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23264/* end confdefs.h. */
23265
db9f46a9
TG
23266#ifdef HAVE_COMPLEX_H
23267#include <complex.h>
1409cd0b 23268#endif
db9f46a9
TG
23269#ifdef HAVE_MATH_H
23270#include <math.h>
23271#endif
23272
23273int (*ptr)() = (int (*)())ctanf;
23274
1409cd0b
FXC
23275int
23276main ()
23277{
1409cd0b
FXC
23278 return 0;
23279}
db9f46a9 23280
1409cd0b 23281_ACEOF
5213506e 23282if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23283 gcc_cv_math_func_ctanf=yes
1409cd0b 23284else
db9f46a9 23285 gcc_cv_math_func_ctanf=no
1409cd0b 23286fi
5213506e
RW
23287rm -f core conftest.err conftest.$ac_objext \
23288 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23289fi
db9f46a9
TG
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23291$as_echo "$gcc_cv_math_func_ctanf" >&6; }
23292 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 23293
f38a14ca
TG
23294cat >>confdefs.h <<_ACEOF
23295#define HAVE_CTANF 1
23296_ACEOF
db9f46a9
TG
23297
23298 fi
23299
1409cd0b 23300
1409cd0b 23301
1409cd0b 23302
db9f46a9
TG
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23304$as_echo_n "checking for ctan... " >&6; }
22e05272 23305if ${gcc_cv_math_func_ctan+:} false; then :
5213506e 23306 $as_echo_n "(cached) " >&6
1409cd0b 23307else
db9f46a9 23308 if test x$gcc_no_link = xyes; then
22e05272 23309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23310fi
5213506e 23311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23312/* end confdefs.h. */
23313
db9f46a9
TG
23314#ifdef HAVE_COMPLEX_H
23315#include <complex.h>
23316#endif
23317#ifdef HAVE_MATH_H
23318#include <math.h>
1409cd0b 23319#endif
db9f46a9
TG
23320
23321int (*ptr)() = (int (*)())ctan;
23322
1409cd0b
FXC
23323int
23324main ()
23325{
1409cd0b
FXC
23326 return 0;
23327}
db9f46a9 23328
1409cd0b 23329_ACEOF
5213506e 23330if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23331 gcc_cv_math_func_ctan=yes
1409cd0b 23332else
db9f46a9 23333 gcc_cv_math_func_ctan=no
1409cd0b 23334fi
5213506e
RW
23335rm -f core conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23337fi
db9f46a9
TG
23338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23339$as_echo "$gcc_cv_math_func_ctan" >&6; }
23340 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 23341
f38a14ca
TG
23342cat >>confdefs.h <<_ACEOF
23343#define HAVE_CTAN 1
23344_ACEOF
db9f46a9
TG
23345
23346 fi
1409cd0b 23347
1409cd0b 23348
1409cd0b 23349
db9f46a9
TG
23350
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23352$as_echo_n "checking for ctanl... " >&6; }
22e05272 23353if ${gcc_cv_math_func_ctanl+:} false; then :
5213506e 23354 $as_echo_n "(cached) " >&6
1409cd0b 23355else
db9f46a9 23356 if test x$gcc_no_link = xyes; then
22e05272 23357 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23358fi
5213506e 23359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23360/* end confdefs.h. */
23361
db9f46a9
TG
23362#ifdef HAVE_COMPLEX_H
23363#include <complex.h>
1409cd0b 23364#endif
db9f46a9
TG
23365#ifdef HAVE_MATH_H
23366#include <math.h>
23367#endif
23368
23369int (*ptr)() = (int (*)())ctanl;
23370
1409cd0b
FXC
23371int
23372main ()
23373{
1409cd0b
FXC
23374 return 0;
23375}
db9f46a9 23376
1409cd0b 23377_ACEOF
5213506e 23378if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23379 gcc_cv_math_func_ctanl=yes
1409cd0b 23380else
db9f46a9 23381 gcc_cv_math_func_ctanl=no
1409cd0b 23382fi
5213506e
RW
23383rm -f core conftest.err conftest.$ac_objext \
23384 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23385fi
db9f46a9
TG
23386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23387$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23388 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 23389
f38a14ca
TG
23390cat >>confdefs.h <<_ACEOF
23391#define HAVE_CTANL 1
23392_ACEOF
1409cd0b 23393
db9f46a9 23394 fi
1409cd0b 23395
1409cd0b 23396
db9f46a9
TG
23397
23398
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23400$as_echo_n "checking for tanhf... " >&6; }
22e05272 23401if ${gcc_cv_math_func_tanhf+:} false; then :
5213506e 23402 $as_echo_n "(cached) " >&6
1409cd0b 23403else
db9f46a9 23404 if test x$gcc_no_link = xyes; then
22e05272 23405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23406fi
5213506e 23407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23408/* end confdefs.h. */
23409
db9f46a9
TG
23410#ifdef HAVE_COMPLEX_H
23411#include <complex.h>
23412#endif
23413#ifdef HAVE_MATH_H
23414#include <math.h>
1409cd0b 23415#endif
db9f46a9
TG
23416
23417int (*ptr)() = (int (*)())tanhf;
23418
1409cd0b
FXC
23419int
23420main ()
23421{
1409cd0b
FXC
23422 return 0;
23423}
db9f46a9 23424
1409cd0b 23425_ACEOF
5213506e 23426if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23427 gcc_cv_math_func_tanhf=yes
1409cd0b 23428else
db9f46a9 23429 gcc_cv_math_func_tanhf=no
1409cd0b 23430fi
5213506e
RW
23431rm -f core conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23433fi
db9f46a9
TG
23434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23435$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23436 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 23437
f38a14ca
TG
23438cat >>confdefs.h <<_ACEOF
23439#define HAVE_TANHF 1
23440_ACEOF
db9f46a9
TG
23441
23442 fi
1409cd0b 23443
1409cd0b 23444
1409cd0b 23445
db9f46a9
TG
23446
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23448$as_echo_n "checking for tanh... " >&6; }
22e05272 23449if ${gcc_cv_math_func_tanh+:} false; then :
5213506e 23450 $as_echo_n "(cached) " >&6
1409cd0b 23451else
db9f46a9 23452 if test x$gcc_no_link = xyes; then
22e05272 23453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23454fi
5213506e 23455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23456/* end confdefs.h. */
23457
db9f46a9
TG
23458#ifdef HAVE_COMPLEX_H
23459#include <complex.h>
1409cd0b 23460#endif
db9f46a9
TG
23461#ifdef HAVE_MATH_H
23462#include <math.h>
23463#endif
23464
23465int (*ptr)() = (int (*)())tanh;
23466
1409cd0b
FXC
23467int
23468main ()
23469{
1409cd0b
FXC
23470 return 0;
23471}
db9f46a9 23472
1409cd0b 23473_ACEOF
5213506e 23474if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23475 gcc_cv_math_func_tanh=yes
1409cd0b 23476else
db9f46a9 23477 gcc_cv_math_func_tanh=no
1409cd0b 23478fi
5213506e
RW
23479rm -f core conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23481fi
db9f46a9
TG
23482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23483$as_echo "$gcc_cv_math_func_tanh" >&6; }
23484 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 23485
f38a14ca
TG
23486cat >>confdefs.h <<_ACEOF
23487#define HAVE_TANH 1
23488_ACEOF
db9f46a9
TG
23489
23490 fi
23491
1409cd0b 23492
1409cd0b 23493
1409cd0b 23494
db9f46a9
TG
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23496$as_echo_n "checking for tanhl... " >&6; }
22e05272 23497if ${gcc_cv_math_func_tanhl+:} false; then :
5213506e 23498 $as_echo_n "(cached) " >&6
1409cd0b 23499else
db9f46a9 23500 if test x$gcc_no_link = xyes; then
22e05272 23501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23502fi
5213506e 23503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23504/* end confdefs.h. */
23505
db9f46a9
TG
23506#ifdef HAVE_COMPLEX_H
23507#include <complex.h>
23508#endif
23509#ifdef HAVE_MATH_H
23510#include <math.h>
1409cd0b 23511#endif
db9f46a9
TG
23512
23513int (*ptr)() = (int (*)())tanhl;
23514
1409cd0b
FXC
23515int
23516main ()
23517{
1409cd0b
FXC
23518 return 0;
23519}
db9f46a9 23520
1409cd0b 23521_ACEOF
5213506e 23522if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23523 gcc_cv_math_func_tanhl=yes
1409cd0b 23524else
db9f46a9 23525 gcc_cv_math_func_tanhl=no
1409cd0b 23526fi
5213506e
RW
23527rm -f core conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23529fi
db9f46a9
TG
23530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23531$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23532 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 23533
f38a14ca
TG
23534cat >>confdefs.h <<_ACEOF
23535#define HAVE_TANHL 1
23536_ACEOF
db9f46a9
TG
23537
23538 fi
1409cd0b 23539
1409cd0b 23540
1409cd0b 23541
db9f46a9
TG
23542
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23544$as_echo_n "checking for ctanhf... " >&6; }
22e05272 23545if ${gcc_cv_math_func_ctanhf+:} false; then :
5213506e 23546 $as_echo_n "(cached) " >&6
1409cd0b 23547else
db9f46a9 23548 if test x$gcc_no_link = xyes; then
22e05272 23549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
23550fi
23551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552/* end confdefs.h. */
23553
23554#ifdef HAVE_COMPLEX_H
23555#include <complex.h>
1409cd0b 23556#endif
db9f46a9
TG
23557#ifdef HAVE_MATH_H
23558#include <math.h>
23559#endif
23560
23561int (*ptr)() = (int (*)())ctanhf;
23562
1409cd0b
FXC
23563int
23564main ()
23565{
1409cd0b
FXC
23566 return 0;
23567}
db9f46a9 23568
1409cd0b 23569_ACEOF
5213506e 23570if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23571 gcc_cv_math_func_ctanhf=yes
1409cd0b 23572else
db9f46a9 23573 gcc_cv_math_func_ctanhf=no
1409cd0b 23574fi
5213506e
RW
23575rm -f core conftest.err conftest.$ac_objext \
23576 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23577fi
db9f46a9
TG
23578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23579$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23580 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 23581
f38a14ca
TG
23582cat >>confdefs.h <<_ACEOF
23583#define HAVE_CTANHF 1
23584_ACEOF
1409cd0b 23585
db9f46a9 23586 fi
1409cd0b 23587
1409cd0b 23588
db9f46a9
TG
23589
23590
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23592$as_echo_n "checking for ctanh... " >&6; }
22e05272 23593if ${gcc_cv_math_func_ctanh+:} false; then :
5213506e 23594 $as_echo_n "(cached) " >&6
1409cd0b 23595else
db9f46a9 23596 if test x$gcc_no_link = xyes; then
22e05272 23597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23598fi
5213506e 23599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23600/* end confdefs.h. */
23601
db9f46a9
TG
23602#ifdef HAVE_COMPLEX_H
23603#include <complex.h>
23604#endif
23605#ifdef HAVE_MATH_H
23606#include <math.h>
1409cd0b 23607#endif
db9f46a9
TG
23608
23609int (*ptr)() = (int (*)())ctanh;
23610
1409cd0b
FXC
23611int
23612main ()
23613{
5213506e
RW
23614 return 0;
23615}
db9f46a9 23616
5213506e
RW
23617_ACEOF
23618if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23619 gcc_cv_math_func_ctanh=yes
1409cd0b 23620else
db9f46a9 23621 gcc_cv_math_func_ctanh=no
1409cd0b 23622fi
5213506e
RW
23623rm -f core conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23625fi
db9f46a9
TG
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23627$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23628 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23629
f38a14ca
TG
23630cat >>confdefs.h <<_ACEOF
23631#define HAVE_CTANH 1
23632_ACEOF
db9f46a9
TG
23633
23634 fi
1409cd0b 23635
1409cd0b 23636
1409cd0b 23637
db9f46a9
TG
23638
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23640$as_echo_n "checking for ctanhl... " >&6; }
22e05272 23641if ${gcc_cv_math_func_ctanhl+:} false; then :
5213506e 23642 $as_echo_n "(cached) " >&6
1409cd0b 23643else
db9f46a9 23644 if test x$gcc_no_link = xyes; then
22e05272 23645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23646fi
5213506e 23647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23648/* end confdefs.h. */
23649
db9f46a9
TG
23650#ifdef HAVE_COMPLEX_H
23651#include <complex.h>
1409cd0b 23652#endif
db9f46a9
TG
23653#ifdef HAVE_MATH_H
23654#include <math.h>
23655#endif
23656
23657int (*ptr)() = (int (*)())ctanhl;
23658
1409cd0b
FXC
23659int
23660main ()
23661{
1409cd0b
FXC
23662 return 0;
23663}
db9f46a9 23664
1409cd0b 23665_ACEOF
5213506e 23666if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23667 gcc_cv_math_func_ctanhl=yes
1409cd0b 23668else
db9f46a9 23669 gcc_cv_math_func_ctanhl=no
1409cd0b 23670fi
5213506e
RW
23671rm -f core conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23673fi
db9f46a9
TG
23674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23675$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23676 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23677
f38a14ca
TG
23678cat >>confdefs.h <<_ACEOF
23679#define HAVE_CTANHL 1
23680_ACEOF
db9f46a9
TG
23681
23682 fi
23683
1409cd0b 23684
69a2d125 23685
69a2d125 23686
db9f46a9
TG
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23688$as_echo_n "checking for truncf... " >&6; }
22e05272 23689if ${gcc_cv_math_func_truncf+:} false; then :
5213506e 23690 $as_echo_n "(cached) " >&6
69a2d125 23691else
db9f46a9 23692 if test x$gcc_no_link = xyes; then
22e05272 23693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23694fi
5213506e 23695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23696/* end confdefs.h. */
23697
db9f46a9
TG
23698#ifdef HAVE_COMPLEX_H
23699#include <complex.h>
23700#endif
23701#ifdef HAVE_MATH_H
23702#include <math.h>
69a2d125 23703#endif
db9f46a9
TG
23704
23705int (*ptr)() = (int (*)())truncf;
23706
1409cd0b
FXC
23707int
23708main ()
23709{
1409cd0b
FXC
23710 return 0;
23711}
db9f46a9 23712
1409cd0b 23713_ACEOF
5213506e 23714if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23715 gcc_cv_math_func_truncf=yes
1409cd0b 23716else
db9f46a9 23717 gcc_cv_math_func_truncf=no
1409cd0b 23718fi
5213506e
RW
23719rm -f core conftest.err conftest.$ac_objext \
23720 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23721fi
db9f46a9
TG
23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23723$as_echo "$gcc_cv_math_func_truncf" >&6; }
23724 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23725
f38a14ca
TG
23726cat >>confdefs.h <<_ACEOF
23727#define HAVE_TRUNCF 1
23728_ACEOF
db9f46a9
TG
23729
23730 fi
1409cd0b 23731
1409cd0b 23732
1409cd0b 23733
db9f46a9
TG
23734
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23736$as_echo_n "checking for trunc... " >&6; }
22e05272 23737if ${gcc_cv_math_func_trunc+:} false; then :
5213506e 23738 $as_echo_n "(cached) " >&6
1409cd0b 23739else
db9f46a9 23740 if test x$gcc_no_link = xyes; then
22e05272 23741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23742fi
5213506e 23743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23744/* end confdefs.h. */
23745
db9f46a9
TG
23746#ifdef HAVE_COMPLEX_H
23747#include <complex.h>
1409cd0b 23748#endif
db9f46a9
TG
23749#ifdef HAVE_MATH_H
23750#include <math.h>
23751#endif
23752
23753int (*ptr)() = (int (*)())trunc;
23754
1409cd0b
FXC
23755int
23756main ()
23757{
1409cd0b
FXC
23758 return 0;
23759}
db9f46a9 23760
1409cd0b 23761_ACEOF
5213506e 23762if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23763 gcc_cv_math_func_trunc=yes
1409cd0b 23764else
db9f46a9 23765 gcc_cv_math_func_trunc=no
1409cd0b 23766fi
5213506e
RW
23767rm -f core conftest.err conftest.$ac_objext \
23768 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23769fi
db9f46a9
TG
23770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23771$as_echo "$gcc_cv_math_func_trunc" >&6; }
23772 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23773
f38a14ca
TG
23774cat >>confdefs.h <<_ACEOF
23775#define HAVE_TRUNC 1
23776_ACEOF
1409cd0b 23777
db9f46a9 23778 fi
1409cd0b 23779
1409cd0b 23780
db9f46a9
TG
23781
23782
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23784$as_echo_n "checking for truncl... " >&6; }
22e05272 23785if ${gcc_cv_math_func_truncl+:} false; then :
5213506e 23786 $as_echo_n "(cached) " >&6
1409cd0b 23787else
db9f46a9 23788 if test x$gcc_no_link = xyes; then
22e05272 23789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23790fi
5213506e 23791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23792/* end confdefs.h. */
23793
db9f46a9
TG
23794#ifdef HAVE_COMPLEX_H
23795#include <complex.h>
23796#endif
23797#ifdef HAVE_MATH_H
23798#include <math.h>
1409cd0b 23799#endif
db9f46a9
TG
23800
23801int (*ptr)() = (int (*)())truncl;
23802
1409cd0b
FXC
23803int
23804main ()
23805{
1409cd0b
FXC
23806 return 0;
23807}
db9f46a9 23808
1409cd0b 23809_ACEOF
5213506e 23810if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23811 gcc_cv_math_func_truncl=yes
1409cd0b 23812else
db9f46a9 23813 gcc_cv_math_func_truncl=no
1409cd0b 23814fi
5213506e
RW
23815rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23817fi
db9f46a9
TG
23818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23819$as_echo "$gcc_cv_math_func_truncl" >&6; }
23820 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23821
f38a14ca
TG
23822cat >>confdefs.h <<_ACEOF
23823#define HAVE_TRUNCL 1
23824_ACEOF
db9f46a9
TG
23825
23826 fi
1409cd0b 23827
1409cd0b 23828
1409cd0b 23829
db9f46a9
TG
23830
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23832$as_echo_n "checking for erff... " >&6; }
22e05272 23833if ${gcc_cv_math_func_erff+:} false; then :
5213506e 23834 $as_echo_n "(cached) " >&6
1409cd0b 23835else
db9f46a9 23836 if test x$gcc_no_link = xyes; then
22e05272 23837 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23838fi
5213506e 23839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23840/* end confdefs.h. */
23841
db9f46a9
TG
23842#ifdef HAVE_COMPLEX_H
23843#include <complex.h>
1409cd0b 23844#endif
db9f46a9
TG
23845#ifdef HAVE_MATH_H
23846#include <math.h>
23847#endif
23848
23849int (*ptr)() = (int (*)())erff;
23850
1409cd0b
FXC
23851int
23852main ()
23853{
1409cd0b
FXC
23854 return 0;
23855}
db9f46a9 23856
1409cd0b 23857_ACEOF
5213506e 23858if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23859 gcc_cv_math_func_erff=yes
1409cd0b 23860else
db9f46a9 23861 gcc_cv_math_func_erff=no
1409cd0b 23862fi
5213506e
RW
23863rm -f core conftest.err conftest.$ac_objext \
23864 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23865fi
db9f46a9
TG
23866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23867$as_echo "$gcc_cv_math_func_erff" >&6; }
23868 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23869
f38a14ca
TG
23870cat >>confdefs.h <<_ACEOF
23871#define HAVE_ERFF 1
23872_ACEOF
db9f46a9
TG
23873
23874 fi
23875
1409cd0b 23876
1409cd0b 23877
1409cd0b 23878
db9f46a9
TG
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23880$as_echo_n "checking for erf... " >&6; }
22e05272 23881if ${gcc_cv_math_func_erf+:} false; then :
5213506e 23882 $as_echo_n "(cached) " >&6
1409cd0b 23883else
db9f46a9 23884 if test x$gcc_no_link = xyes; then
22e05272 23885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23886fi
5213506e 23887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23888/* end confdefs.h. */
23889
db9f46a9
TG
23890#ifdef HAVE_COMPLEX_H
23891#include <complex.h>
23892#endif
23893#ifdef HAVE_MATH_H
23894#include <math.h>
1409cd0b 23895#endif
db9f46a9
TG
23896
23897int (*ptr)() = (int (*)())erf;
23898
1409cd0b
FXC
23899int
23900main ()
23901{
1409cd0b
FXC
23902 return 0;
23903}
db9f46a9 23904
1409cd0b 23905_ACEOF
5213506e 23906if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23907 gcc_cv_math_func_erf=yes
1409cd0b 23908else
db9f46a9 23909 gcc_cv_math_func_erf=no
1409cd0b 23910fi
5213506e
RW
23911rm -f core conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23913fi
db9f46a9
TG
23914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23915$as_echo "$gcc_cv_math_func_erf" >&6; }
23916 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23917
f38a14ca
TG
23918cat >>confdefs.h <<_ACEOF
23919#define HAVE_ERF 1
23920_ACEOF
db9f46a9
TG
23921
23922 fi
1409cd0b 23923
1409cd0b 23924
1409cd0b 23925
db9f46a9 23926
db9f46a9
TG
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23928$as_echo_n "checking for erfcf... " >&6; }
22e05272 23929if ${gcc_cv_math_func_erfcf+:} false; then :
5213506e 23930 $as_echo_n "(cached) " >&6
1409cd0b 23931else
db9f46a9 23932 if test x$gcc_no_link = xyes; then
22e05272 23933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23934fi
5213506e 23935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23936/* end confdefs.h. */
23937
db9f46a9
TG
23938#ifdef HAVE_COMPLEX_H
23939#include <complex.h>
23940#endif
23941#ifdef HAVE_MATH_H
23942#include <math.h>
1409cd0b 23943#endif
db9f46a9
TG
23944
23945int (*ptr)() = (int (*)())erfcf;
23946
1409cd0b
FXC
23947int
23948main ()
23949{
1409cd0b
FXC
23950 return 0;
23951}
db9f46a9 23952
1409cd0b 23953_ACEOF
5213506e 23954if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23955 gcc_cv_math_func_erfcf=yes
1409cd0b 23956else
db9f46a9 23957 gcc_cv_math_func_erfcf=no
1409cd0b 23958fi
5213506e
RW
23959rm -f core conftest.err conftest.$ac_objext \
23960 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23961fi
db9f46a9
TG
23962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23963$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23964 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23965
f38a14ca
TG
23966cat >>confdefs.h <<_ACEOF
23967#define HAVE_ERFCF 1
23968_ACEOF
db9f46a9
TG
23969
23970 fi
1409cd0b 23971
1409cd0b 23972
1409cd0b 23973
db9f46a9
TG
23974
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23976$as_echo_n "checking for erfc... " >&6; }
22e05272 23977if ${gcc_cv_math_func_erfc+:} false; then :
5213506e 23978 $as_echo_n "(cached) " >&6
1409cd0b 23979else
db9f46a9 23980 if test x$gcc_no_link = xyes; then
22e05272 23981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23982fi
5213506e 23983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23984/* end confdefs.h. */
23985
db9f46a9
TG
23986#ifdef HAVE_COMPLEX_H
23987#include <complex.h>
1409cd0b 23988#endif
db9f46a9
TG
23989#ifdef HAVE_MATH_H
23990#include <math.h>
23991#endif
23992
23993int (*ptr)() = (int (*)())erfc;
23994
69a2d125
EB
23995int
23996main ()
23997{
69a2d125
EB
23998 return 0;
23999}
db9f46a9 24000
69a2d125 24001_ACEOF
5213506e 24002if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24003 gcc_cv_math_func_erfc=yes
69a2d125 24004else
db9f46a9 24005 gcc_cv_math_func_erfc=no
69a2d125 24006fi
5213506e
RW
24007rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
69a2d125 24009fi
db9f46a9
TG
24010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
24011$as_echo "$gcc_cv_math_func_erfc" >&6; }
24012 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 24013
f38a14ca
TG
24014cat >>confdefs.h <<_ACEOF
24015#define HAVE_ERFC 1
24016_ACEOF
db9f46a9
TG
24017
24018 fi
24019
69a2d125 24020
69a2d125 24021
69a2d125 24022
db9f46a9
TG
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
24024$as_echo_n "checking for erfcl... " >&6; }
22e05272 24025if ${gcc_cv_math_func_erfcl+:} false; then :
5213506e 24026 $as_echo_n "(cached) " >&6
e8525382 24027else
db9f46a9 24028 if test x$gcc_no_link = xyes; then
22e05272 24029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24030fi
5213506e 24031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24032/* end confdefs.h. */
24033
db9f46a9
TG
24034#ifdef HAVE_COMPLEX_H
24035#include <complex.h>
24036#endif
24037#ifdef HAVE_MATH_H
24038#include <math.h>
e8525382 24039#endif
db9f46a9
TG
24040
24041int (*ptr)() = (int (*)())erfcl;
24042
e8525382
SK
24043int
24044main ()
24045{
e8525382
SK
24046 return 0;
24047}
db9f46a9 24048
e8525382 24049_ACEOF
5213506e 24050if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24051 gcc_cv_math_func_erfcl=yes
e8525382 24052else
db9f46a9 24053 gcc_cv_math_func_erfcl=no
e8525382 24054fi
5213506e
RW
24055rm -f core conftest.err conftest.$ac_objext \
24056 conftest$ac_exeext conftest.$ac_ext
e8525382 24057fi
db9f46a9
TG
24058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
24059$as_echo "$gcc_cv_math_func_erfcl" >&6; }
24060 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 24061
f38a14ca
TG
24062cat >>confdefs.h <<_ACEOF
24063#define HAVE_ERFCL 1
24064_ACEOF
db9f46a9
TG
24065
24066 fi
e8525382 24067
e8525382 24068
e8525382 24069
db9f46a9
TG
24070
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
24072$as_echo_n "checking for j0f... " >&6; }
22e05272 24073if ${gcc_cv_math_func_j0f+:} false; then :
5213506e 24074 $as_echo_n "(cached) " >&6
e8525382 24075else
db9f46a9 24076 if test x$gcc_no_link = xyes; then
22e05272 24077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24078fi
5213506e 24079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24080/* end confdefs.h. */
24081
db9f46a9
TG
24082#ifdef HAVE_COMPLEX_H
24083#include <complex.h>
e8525382 24084#endif
db9f46a9
TG
24085#ifdef HAVE_MATH_H
24086#include <math.h>
24087#endif
24088
24089int (*ptr)() = (int (*)())j0f;
24090
e8525382
SK
24091int
24092main ()
24093{
e8525382
SK
24094 return 0;
24095}
db9f46a9 24096
e8525382 24097_ACEOF
5213506e 24098if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24099 gcc_cv_math_func_j0f=yes
e8525382 24100else
db9f46a9 24101 gcc_cv_math_func_j0f=no
1409cd0b 24102fi
5213506e
RW
24103rm -f core conftest.err conftest.$ac_objext \
24104 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24105fi
db9f46a9
TG
24106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
24107$as_echo "$gcc_cv_math_func_j0f" >&6; }
24108 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 24109
f38a14ca
TG
24110cat >>confdefs.h <<_ACEOF
24111#define HAVE_J0F 1
24112_ACEOF
1409cd0b 24113
db9f46a9 24114 fi
1409cd0b 24115
1409cd0b 24116
db9f46a9
TG
24117
24118
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
24120$as_echo_n "checking for j0... " >&6; }
22e05272 24121if ${gcc_cv_math_func_j0+:} false; then :
5213506e 24122 $as_echo_n "(cached) " >&6
1409cd0b 24123else
db9f46a9 24124 if test x$gcc_no_link = xyes; then
22e05272 24125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24126fi
5213506e 24127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24128/* end confdefs.h. */
24129
db9f46a9
TG
24130#ifdef HAVE_COMPLEX_H
24131#include <complex.h>
24132#endif
24133#ifdef HAVE_MATH_H
24134#include <math.h>
1409cd0b 24135#endif
db9f46a9
TG
24136
24137int (*ptr)() = (int (*)())j0;
24138
1409cd0b
FXC
24139int
24140main ()
24141{
1409cd0b
FXC
24142 return 0;
24143}
db9f46a9 24144
1409cd0b 24145_ACEOF
5213506e 24146if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24147 gcc_cv_math_func_j0=yes
1409cd0b 24148else
db9f46a9 24149 gcc_cv_math_func_j0=no
1409cd0b 24150fi
5213506e
RW
24151rm -f core conftest.err conftest.$ac_objext \
24152 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24153fi
db9f46a9
TG
24154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24155$as_echo "$gcc_cv_math_func_j0" >&6; }
24156 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 24157
f38a14ca
TG
24158cat >>confdefs.h <<_ACEOF
24159#define HAVE_J0 1
24160_ACEOF
db9f46a9
TG
24161
24162 fi
1409cd0b 24163
1409cd0b 24164
1409cd0b 24165
db9f46a9 24166
db9f46a9
TG
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24168$as_echo_n "checking for j1f... " >&6; }
22e05272 24169if ${gcc_cv_math_func_j1f+:} false; then :
5213506e 24170 $as_echo_n "(cached) " >&6
1409cd0b 24171else
db9f46a9 24172 if test x$gcc_no_link = xyes; then
22e05272 24173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24174fi
5213506e 24175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24176/* end confdefs.h. */
24177
db9f46a9
TG
24178#ifdef HAVE_COMPLEX_H
24179#include <complex.h>
24180#endif
24181#ifdef HAVE_MATH_H
24182#include <math.h>
1409cd0b 24183#endif
db9f46a9
TG
24184
24185int (*ptr)() = (int (*)())j1f;
24186
1409cd0b
FXC
24187int
24188main ()
24189{
1409cd0b
FXC
24190 return 0;
24191}
db9f46a9 24192
1409cd0b 24193_ACEOF
5213506e 24194if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24195 gcc_cv_math_func_j1f=yes
1409cd0b 24196else
db9f46a9 24197 gcc_cv_math_func_j1f=no
e8525382 24198fi
5213506e
RW
24199rm -f core conftest.err conftest.$ac_objext \
24200 conftest$ac_exeext conftest.$ac_ext
e8525382 24201fi
db9f46a9
TG
24202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24203$as_echo "$gcc_cv_math_func_j1f" >&6; }
24204 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 24205
f38a14ca
TG
24206cat >>confdefs.h <<_ACEOF
24207#define HAVE_J1F 1
24208_ACEOF
db9f46a9
TG
24209
24210 fi
e8525382 24211
e8525382 24212
e8525382 24213
db9f46a9
TG
24214
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24216$as_echo_n "checking for j1... " >&6; }
22e05272 24217if ${gcc_cv_math_func_j1+:} false; then :
5213506e 24218 $as_echo_n "(cached) " >&6
e8525382 24219else
db9f46a9 24220 if test x$gcc_no_link = xyes; then
22e05272 24221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24222fi
5213506e 24223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24224/* end confdefs.h. */
24225
db9f46a9
TG
24226#ifdef HAVE_COMPLEX_H
24227#include <complex.h>
e8525382 24228#endif
db9f46a9
TG
24229#ifdef HAVE_MATH_H
24230#include <math.h>
24231#endif
24232
24233int (*ptr)() = (int (*)())j1;
24234
e8525382
SK
24235int
24236main ()
24237{
e8525382
SK
24238 return 0;
24239}
db9f46a9 24240
e8525382 24241_ACEOF
5213506e 24242if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24243 gcc_cv_math_func_j1=yes
e8525382 24244else
db9f46a9 24245 gcc_cv_math_func_j1=no
e8525382 24246fi
5213506e
RW
24247rm -f core conftest.err conftest.$ac_objext \
24248 conftest$ac_exeext conftest.$ac_ext
e8525382 24249fi
db9f46a9
TG
24250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24251$as_echo "$gcc_cv_math_func_j1" >&6; }
24252 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 24253
f38a14ca
TG
24254cat >>confdefs.h <<_ACEOF
24255#define HAVE_J1 1
24256_ACEOF
e8525382 24257
db9f46a9 24258 fi
e8525382 24259
e8525382 24260
db9f46a9
TG
24261
24262
db9f46a9
TG
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24264$as_echo_n "checking for jnf... " >&6; }
22e05272 24265if ${gcc_cv_math_func_jnf+:} false; then :
5213506e 24266 $as_echo_n "(cached) " >&6
e8525382 24267else
db9f46a9 24268 if test x$gcc_no_link = xyes; then
22e05272 24269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24270fi
5213506e 24271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24272/* end confdefs.h. */
24273
db9f46a9
TG
24274#ifdef HAVE_COMPLEX_H
24275#include <complex.h>
e8525382 24276#endif
db9f46a9
TG
24277#ifdef HAVE_MATH_H
24278#include <math.h>
24279#endif
24280
24281int (*ptr)() = (int (*)())jnf;
24282
e8525382
SK
24283int
24284main ()
24285{
e8525382
SK
24286 return 0;
24287}
db9f46a9 24288
e8525382 24289_ACEOF
5213506e 24290if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24291 gcc_cv_math_func_jnf=yes
e8525382 24292else
db9f46a9 24293 gcc_cv_math_func_jnf=no
e8525382 24294fi
5213506e
RW
24295rm -f core conftest.err conftest.$ac_objext \
24296 conftest$ac_exeext conftest.$ac_ext
e8525382 24297fi
db9f46a9
TG
24298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24299$as_echo "$gcc_cv_math_func_jnf" >&6; }
24300 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 24301
f38a14ca
TG
24302cat >>confdefs.h <<_ACEOF
24303#define HAVE_JNF 1
24304_ACEOF
db9f46a9
TG
24305
24306 fi
24307
e8525382 24308
e8525382 24309
e8525382 24310
db9f46a9
TG
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24312$as_echo_n "checking for jn... " >&6; }
22e05272 24313if ${gcc_cv_math_func_jn+:} false; then :
5213506e 24314 $as_echo_n "(cached) " >&6
e8525382 24315else
db9f46a9 24316 if test x$gcc_no_link = xyes; then
22e05272 24317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24318fi
5213506e 24319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24320/* end confdefs.h. */
24321
db9f46a9
TG
24322#ifdef HAVE_COMPLEX_H
24323#include <complex.h>
24324#endif
24325#ifdef HAVE_MATH_H
24326#include <math.h>
e8525382 24327#endif
db9f46a9
TG
24328
24329int (*ptr)() = (int (*)())jn;
24330
e8525382
SK
24331int
24332main ()
24333{
e8525382
SK
24334 return 0;
24335}
db9f46a9 24336
e8525382 24337_ACEOF
5213506e 24338if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24339 gcc_cv_math_func_jn=yes
e8525382 24340else
db9f46a9 24341 gcc_cv_math_func_jn=no
e8525382 24342fi
5213506e
RW
24343rm -f core conftest.err conftest.$ac_objext \
24344 conftest$ac_exeext conftest.$ac_ext
e8525382 24345fi
db9f46a9
TG
24346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24347$as_echo "$gcc_cv_math_func_jn" >&6; }
24348 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 24349
f38a14ca
TG
24350cat >>confdefs.h <<_ACEOF
24351#define HAVE_JN 1
24352_ACEOF
db9f46a9
TG
24353
24354 fi
e8525382 24355
e8525382 24356
e8525382 24357
db9f46a9
TG
24358
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24360$as_echo_n "checking for jnl... " >&6; }
22e05272 24361if ${gcc_cv_math_func_jnl+:} false; then :
5213506e 24362 $as_echo_n "(cached) " >&6
e8525382 24363else
db9f46a9 24364 if test x$gcc_no_link = xyes; then
22e05272 24365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24366fi
5213506e 24367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24368/* end confdefs.h. */
24369
db9f46a9
TG
24370#ifdef HAVE_COMPLEX_H
24371#include <complex.h>
e8525382 24372#endif
db9f46a9
TG
24373#ifdef HAVE_MATH_H
24374#include <math.h>
24375#endif
24376
24377int (*ptr)() = (int (*)())jnl;
24378
e8525382
SK
24379int
24380main ()
24381{
e8525382
SK
24382 return 0;
24383}
db9f46a9 24384
e8525382 24385_ACEOF
5213506e 24386if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24387 gcc_cv_math_func_jnl=yes
e8525382 24388else
db9f46a9 24389 gcc_cv_math_func_jnl=no
e8525382 24390fi
5213506e
RW
24391rm -f core conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
e8525382 24393fi
db9f46a9
TG
24394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24395$as_echo "$gcc_cv_math_func_jnl" >&6; }
24396 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 24397
f38a14ca
TG
24398cat >>confdefs.h <<_ACEOF
24399#define HAVE_JNL 1
24400_ACEOF
e8525382 24401
db9f46a9 24402 fi
e8525382 24403
e8525382 24404
db9f46a9
TG
24405
24406
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24408$as_echo_n "checking for y0f... " >&6; }
22e05272 24409if ${gcc_cv_math_func_y0f+:} false; then :
5213506e 24410 $as_echo_n "(cached) " >&6
e8525382 24411else
db9f46a9 24412 if test x$gcc_no_link = xyes; then
22e05272 24413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24414fi
5213506e 24415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24416/* end confdefs.h. */
24417
db9f46a9
TG
24418#ifdef HAVE_COMPLEX_H
24419#include <complex.h>
24420#endif
24421#ifdef HAVE_MATH_H
24422#include <math.h>
e8525382 24423#endif
db9f46a9
TG
24424
24425int (*ptr)() = (int (*)())y0f;
24426
e8525382
SK
24427int
24428main ()
24429{
e8525382
SK
24430 return 0;
24431}
db9f46a9 24432
e8525382 24433_ACEOF
5213506e 24434if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24435 gcc_cv_math_func_y0f=yes
e8525382 24436else
db9f46a9 24437 gcc_cv_math_func_y0f=no
e8525382 24438fi
5213506e
RW
24439rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
e8525382 24441fi
db9f46a9
TG
24442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24443$as_echo "$gcc_cv_math_func_y0f" >&6; }
24444 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 24445
f38a14ca
TG
24446cat >>confdefs.h <<_ACEOF
24447#define HAVE_Y0F 1
24448_ACEOF
db9f46a9
TG
24449
24450 fi
e8525382 24451
e8525382 24452
e8525382 24453
db9f46a9
TG
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24456$as_echo_n "checking for y0... " >&6; }
22e05272 24457if ${gcc_cv_math_func_y0+:} false; then :
5213506e 24458 $as_echo_n "(cached) " >&6
e8525382 24459else
db9f46a9 24460 if test x$gcc_no_link = xyes; then
22e05272 24461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24462fi
5213506e 24463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24464/* end confdefs.h. */
24465
db9f46a9
TG
24466#ifdef HAVE_COMPLEX_H
24467#include <complex.h>
e8525382 24468#endif
db9f46a9
TG
24469#ifdef HAVE_MATH_H
24470#include <math.h>
24471#endif
24472
24473int (*ptr)() = (int (*)())y0;
24474
e8525382
SK
24475int
24476main ()
24477{
e8525382
SK
24478 return 0;
24479}
db9f46a9 24480
e8525382 24481_ACEOF
5213506e 24482if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24483 gcc_cv_math_func_y0=yes
e8525382 24484else
db9f46a9 24485 gcc_cv_math_func_y0=no
e8525382 24486fi
5213506e
RW
24487rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
e8525382 24489fi
db9f46a9
TG
24490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24491$as_echo "$gcc_cv_math_func_y0" >&6; }
24492 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 24493
f38a14ca
TG
24494cat >>confdefs.h <<_ACEOF
24495#define HAVE_Y0 1
24496_ACEOF
db9f46a9
TG
24497
24498 fi
24499
e8525382 24500
e8525382 24501
e8525382 24502
db9f46a9
TG
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24504$as_echo_n "checking for y1f... " >&6; }
22e05272 24505if ${gcc_cv_math_func_y1f+:} false; then :
5213506e 24506 $as_echo_n "(cached) " >&6
e8525382 24507else
db9f46a9 24508 if test x$gcc_no_link = xyes; then
22e05272 24509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24510fi
5213506e 24511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24512/* end confdefs.h. */
24513
db9f46a9
TG
24514#ifdef HAVE_COMPLEX_H
24515#include <complex.h>
e8525382 24516#endif
db9f46a9
TG
24517#ifdef HAVE_MATH_H
24518#include <math.h>
24519#endif
24520
24521int (*ptr)() = (int (*)())y1f;
24522
e8525382
SK
24523int
24524main ()
24525{
e8525382
SK
24526 return 0;
24527}
db9f46a9 24528
e8525382 24529_ACEOF
5213506e 24530if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24531 gcc_cv_math_func_y1f=yes
e8525382 24532else
db9f46a9 24533 gcc_cv_math_func_y1f=no
e8525382 24534fi
5213506e
RW
24535rm -f core conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
e8525382 24537fi
db9f46a9
TG
24538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24539$as_echo "$gcc_cv_math_func_y1f" >&6; }
24540 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24541
f38a14ca
TG
24542cat >>confdefs.h <<_ACEOF
24543#define HAVE_Y1F 1
24544_ACEOF
e8525382 24545
db9f46a9 24546 fi
e8525382 24547
e8525382 24548
db9f46a9
TG
24549
24550
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24552$as_echo_n "checking for y1... " >&6; }
22e05272 24553if ${gcc_cv_math_func_y1+:} false; then :
5213506e 24554 $as_echo_n "(cached) " >&6
e8525382 24555else
db9f46a9 24556 if test x$gcc_no_link = xyes; then
22e05272 24557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24558fi
5213506e 24559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24560/* end confdefs.h. */
24561
db9f46a9
TG
24562#ifdef HAVE_COMPLEX_H
24563#include <complex.h>
24564#endif
24565#ifdef HAVE_MATH_H
24566#include <math.h>
e8525382 24567#endif
db9f46a9
TG
24568
24569int (*ptr)() = (int (*)())y1;
24570
e8525382
SK
24571int
24572main ()
24573{
e8525382
SK
24574 return 0;
24575}
db9f46a9 24576
e8525382 24577_ACEOF
5213506e 24578if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24579 gcc_cv_math_func_y1=yes
e8525382 24580else
db9f46a9 24581 gcc_cv_math_func_y1=no
e8525382 24582fi
5213506e
RW
24583rm -f core conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
e8525382 24585fi
db9f46a9
TG
24586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24587$as_echo "$gcc_cv_math_func_y1" >&6; }
24588 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24589
f38a14ca
TG
24590cat >>confdefs.h <<_ACEOF
24591#define HAVE_Y1 1
24592_ACEOF
db9f46a9
TG
24593
24594 fi
e8525382 24595
e8525382 24596
e8525382 24597
db9f46a9 24598
db9f46a9
TG
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24600$as_echo_n "checking for ynf... " >&6; }
22e05272 24601if ${gcc_cv_math_func_ynf+:} false; then :
5213506e 24602 $as_echo_n "(cached) " >&6
db9f46a9
TG
24603else
24604 if test x$gcc_no_link = xyes; then
22e05272 24605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24606fi
5213506e 24607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24608/* end confdefs.h. */
24609
db9f46a9
TG
24610#ifdef HAVE_COMPLEX_H
24611#include <complex.h>
24612#endif
24613#ifdef HAVE_MATH_H
24614#include <math.h>
e8525382 24615#endif
db9f46a9
TG
24616
24617int (*ptr)() = (int (*)())ynf;
24618
e8525382
SK
24619int
24620main ()
24621{
e8525382
SK
24622 return 0;
24623}
db9f46a9 24624
e8525382 24625_ACEOF
5213506e 24626if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24627 gcc_cv_math_func_ynf=yes
e8525382 24628else
db9f46a9 24629 gcc_cv_math_func_ynf=no
e8525382 24630fi
5213506e
RW
24631rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
e8525382 24633fi
db9f46a9
TG
24634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24635$as_echo "$gcc_cv_math_func_ynf" >&6; }
24636 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24637
f38a14ca
TG
24638cat >>confdefs.h <<_ACEOF
24639#define HAVE_YNF 1
24640_ACEOF
db9f46a9
TG
24641
24642 fi
e8525382 24643
e8525382 24644
e8525382 24645
db9f46a9
TG
24646
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24648$as_echo_n "checking for yn... " >&6; }
22e05272 24649if ${gcc_cv_math_func_yn+:} false; then :
5213506e 24650 $as_echo_n "(cached) " >&6
e8525382 24651else
db9f46a9 24652 if test x$gcc_no_link = xyes; then
22e05272 24653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24654fi
5213506e 24655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24656/* end confdefs.h. */
24657
db9f46a9
TG
24658#ifdef HAVE_COMPLEX_H
24659#include <complex.h>
e8525382 24660#endif
db9f46a9
TG
24661#ifdef HAVE_MATH_H
24662#include <math.h>
24663#endif
24664
24665int (*ptr)() = (int (*)())yn;
24666
e8525382
SK
24667int
24668main ()
24669{
e8525382
SK
24670 return 0;
24671}
db9f46a9 24672
e8525382 24673_ACEOF
5213506e 24674if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24675 gcc_cv_math_func_yn=yes
e8525382 24676else
db9f46a9 24677 gcc_cv_math_func_yn=no
e8525382 24678fi
5213506e
RW
24679rm -f core conftest.err conftest.$ac_objext \
24680 conftest$ac_exeext conftest.$ac_ext
e8525382 24681fi
db9f46a9
TG
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24683$as_echo "$gcc_cv_math_func_yn" >&6; }
24684 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24685
f38a14ca
TG
24686cat >>confdefs.h <<_ACEOF
24687#define HAVE_YN 1
24688_ACEOF
db9f46a9
TG
24689
24690 fi
24691
e8525382 24692
e8525382 24693
e8525382 24694
db9f46a9
TG
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24696$as_echo_n "checking for ynl... " >&6; }
22e05272 24697if ${gcc_cv_math_func_ynl+:} false; then :
5213506e 24698 $as_echo_n "(cached) " >&6
e8525382 24699else
db9f46a9 24700 if test x$gcc_no_link = xyes; then
22e05272 24701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24702fi
5213506e 24703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24704/* end confdefs.h. */
24705
db9f46a9
TG
24706#ifdef HAVE_COMPLEX_H
24707#include <complex.h>
24708#endif
24709#ifdef HAVE_MATH_H
24710#include <math.h>
e8525382 24711#endif
db9f46a9
TG
24712
24713int (*ptr)() = (int (*)())ynl;
24714
e8525382
SK
24715int
24716main ()
24717{
e8525382
SK
24718 return 0;
24719}
db9f46a9 24720
e8525382 24721_ACEOF
5213506e 24722if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24723 gcc_cv_math_func_ynl=yes
e8525382 24724else
db9f46a9 24725 gcc_cv_math_func_ynl=no
e8525382 24726fi
5213506e
RW
24727rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
e8525382 24729fi
db9f46a9
TG
24730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24731$as_echo "$gcc_cv_math_func_ynl" >&6; }
24732 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24733
f38a14ca
TG
24734cat >>confdefs.h <<_ACEOF
24735#define HAVE_YNL 1
24736_ACEOF
db9f46a9
TG
24737
24738 fi
e8525382 24739
e8525382 24740
e8525382 24741
db9f46a9
TG
24742
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24744$as_echo_n "checking for tgamma... " >&6; }
22e05272 24745if ${gcc_cv_math_func_tgamma+:} false; then :
5213506e 24746 $as_echo_n "(cached) " >&6
fb0a0e15 24747else
db9f46a9 24748 if test x$gcc_no_link = xyes; then
22e05272 24749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24750fi
5213506e 24751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24752/* end confdefs.h. */
24753
db9f46a9
TG
24754#ifdef HAVE_COMPLEX_H
24755#include <complex.h>
fb0a0e15 24756#endif
db9f46a9
TG
24757#ifdef HAVE_MATH_H
24758#include <math.h>
24759#endif
24760
24761int (*ptr)() = (int (*)())tgamma;
24762
fb0a0e15
FXC
24763int
24764main ()
24765{
fb0a0e15
FXC
24766 return 0;
24767}
db9f46a9 24768
fb0a0e15 24769_ACEOF
5213506e 24770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24771 gcc_cv_math_func_tgamma=yes
fb0a0e15 24772else
db9f46a9 24773 gcc_cv_math_func_tgamma=no
fb0a0e15 24774fi
5213506e
RW
24775rm -f core conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24777fi
db9f46a9
TG
24778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24779$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24780 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24781
f38a14ca
TG
24782cat >>confdefs.h <<_ACEOF
24783#define HAVE_TGAMMA 1
24784_ACEOF
fb0a0e15 24785
db9f46a9 24786 fi
fb0a0e15 24787
fb0a0e15 24788
db9f46a9
TG
24789
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24792$as_echo_n "checking for tgammaf... " >&6; }
22e05272 24793if ${gcc_cv_math_func_tgammaf+:} false; then :
5213506e 24794 $as_echo_n "(cached) " >&6
fb0a0e15 24795else
db9f46a9 24796 if test x$gcc_no_link = xyes; then
22e05272 24797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24798fi
5213506e 24799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24800/* end confdefs.h. */
24801
db9f46a9
TG
24802#ifdef HAVE_COMPLEX_H
24803#include <complex.h>
24804#endif
24805#ifdef HAVE_MATH_H
24806#include <math.h>
fb0a0e15 24807#endif
db9f46a9
TG
24808
24809int (*ptr)() = (int (*)())tgammaf;
24810
fb0a0e15
FXC
24811int
24812main ()
24813{
fb0a0e15
FXC
24814 return 0;
24815}
db9f46a9 24816
fb0a0e15 24817_ACEOF
5213506e 24818if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24819 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24820else
db9f46a9 24821 gcc_cv_math_func_tgammaf=no
fb0a0e15 24822fi
5213506e
RW
24823rm -f core conftest.err conftest.$ac_objext \
24824 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24825fi
db9f46a9
TG
24826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24827$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24828 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24829
f38a14ca
TG
24830cat >>confdefs.h <<_ACEOF
24831#define HAVE_TGAMMAF 1
24832_ACEOF
db9f46a9
TG
24833
24834 fi
fb0a0e15 24835
fb0a0e15 24836
fb0a0e15 24837
db9f46a9 24838
db9f46a9
TG
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24840$as_echo_n "checking for lgamma... " >&6; }
22e05272 24841if ${gcc_cv_math_func_lgamma+:} false; then :
5213506e 24842 $as_echo_n "(cached) " >&6
fb0a0e15 24843else
db9f46a9 24844 if test x$gcc_no_link = xyes; then
22e05272 24845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24846fi
5213506e 24847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24848/* end confdefs.h. */
24849
db9f46a9
TG
24850#ifdef HAVE_COMPLEX_H
24851#include <complex.h>
24852#endif
24853#ifdef HAVE_MATH_H
24854#include <math.h>
fb0a0e15 24855#endif
db9f46a9
TG
24856
24857int (*ptr)() = (int (*)())lgamma;
24858
fb0a0e15
FXC
24859int
24860main ()
24861{
fb0a0e15
FXC
24862 return 0;
24863}
db9f46a9 24864
fb0a0e15 24865_ACEOF
5213506e 24866if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24867 gcc_cv_math_func_lgamma=yes
fb0a0e15 24868else
db9f46a9 24869 gcc_cv_math_func_lgamma=no
fb0a0e15 24870fi
5213506e
RW
24871rm -f core conftest.err conftest.$ac_objext \
24872 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24873fi
db9f46a9
TG
24874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24875$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24876 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24877
f38a14ca
TG
24878cat >>confdefs.h <<_ACEOF
24879#define HAVE_LGAMMA 1
24880_ACEOF
db9f46a9
TG
24881
24882 fi
fb0a0e15 24883
fb0a0e15 24884
fb0a0e15 24885
db9f46a9
TG
24886
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24888$as_echo_n "checking for lgammaf... " >&6; }
22e05272 24889if ${gcc_cv_math_func_lgammaf+:} false; then :
5213506e 24890 $as_echo_n "(cached) " >&6
fb0a0e15 24891else
db9f46a9 24892 if test x$gcc_no_link = xyes; then
22e05272 24893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24894fi
5213506e 24895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24896/* end confdefs.h. */
24897
db9f46a9
TG
24898#ifdef HAVE_COMPLEX_H
24899#include <complex.h>
fb0a0e15 24900#endif
db9f46a9
TG
24901#ifdef HAVE_MATH_H
24902#include <math.h>
24903#endif
24904
24905int (*ptr)() = (int (*)())lgammaf;
24906
fb0a0e15
FXC
24907int
24908main ()
24909{
fb0a0e15
FXC
24910 return 0;
24911}
db9f46a9 24912
fb0a0e15 24913_ACEOF
5213506e 24914if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24915 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24916else
db9f46a9 24917 gcc_cv_math_func_lgammaf=no
fb0a0e15 24918fi
5213506e
RW
24919rm -f core conftest.err conftest.$ac_objext \
24920 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24921fi
db9f46a9
TG
24922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24923$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24924 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24925
f38a14ca
TG
24926cat >>confdefs.h <<_ACEOF
24927#define HAVE_LGAMMAF 1
24928_ACEOF
fb0a0e15 24929
db9f46a9 24930 fi
fb0a0e15 24931
fb0a0e15 24932
db1cf15c 24933# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24934
24935
24936
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24938$as_echo_n "checking for cacos... " >&6; }
22e05272 24939if ${gcc_cv_math_func_cacos+:} false; then :
db1cf15c
IS
24940 $as_echo_n "(cached) " >&6
24941else
db9f46a9 24942 if test x$gcc_no_link = xyes; then
22e05272 24943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
24944fi
24945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946/* end confdefs.h. */
24947
db9f46a9
TG
24948#ifdef HAVE_COMPLEX_H
24949#include <complex.h>
db1cf15c 24950#endif
db9f46a9
TG
24951#ifdef HAVE_MATH_H
24952#include <math.h>
24953#endif
24954
24955int (*ptr)() = (int (*)())cacos;
24956
db1cf15c
IS
24957int
24958main ()
24959{
db1cf15c
IS
24960 return 0;
24961}
db9f46a9 24962
db1cf15c
IS
24963_ACEOF
24964if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24965 gcc_cv_math_func_cacos=yes
db1cf15c 24966else
db9f46a9 24967 gcc_cv_math_func_cacos=no
db1cf15c
IS
24968fi
24969rm -f core conftest.err conftest.$ac_objext \
24970 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24971fi
db9f46a9
TG
24972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24973$as_echo "$gcc_cv_math_func_cacos" >&6; }
24974 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24975
f38a14ca
TG
24976cat >>confdefs.h <<_ACEOF
24977#define HAVE_CACOS 1
24978_ACEOF
db1cf15c 24979
db9f46a9 24980 fi
db1cf15c 24981
db1cf15c 24982
db9f46a9
TG
24983
24984
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24986$as_echo_n "checking for cacosf... " >&6; }
22e05272 24987if ${gcc_cv_math_func_cacosf+:} false; then :
db1cf15c
IS
24988 $as_echo_n "(cached) " >&6
24989else
db9f46a9 24990 if test x$gcc_no_link = xyes; then
22e05272 24991 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
24992fi
24993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994/* end confdefs.h. */
24995
db9f46a9
TG
24996#ifdef HAVE_COMPLEX_H
24997#include <complex.h>
24998#endif
24999#ifdef HAVE_MATH_H
25000#include <math.h>
db1cf15c 25001#endif
db9f46a9
TG
25002
25003int (*ptr)() = (int (*)())cacosf;
25004
db1cf15c
IS
25005int
25006main ()
25007{
db1cf15c
IS
25008 return 0;
25009}
db9f46a9 25010
db1cf15c
IS
25011_ACEOF
25012if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25013 gcc_cv_math_func_cacosf=yes
db1cf15c 25014else
db9f46a9 25015 gcc_cv_math_func_cacosf=no
db1cf15c
IS
25016fi
25017rm -f core conftest.err conftest.$ac_objext \
25018 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25019fi
db9f46a9
TG
25020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
25021$as_echo "$gcc_cv_math_func_cacosf" >&6; }
25022 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 25023
f38a14ca
TG
25024cat >>confdefs.h <<_ACEOF
25025#define HAVE_CACOSF 1
25026_ACEOF
db9f46a9
TG
25027
25028 fi
db1cf15c 25029
db1cf15c 25030
db1cf15c 25031
db9f46a9
TG
25032
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
25034$as_echo_n "checking for cacosh... " >&6; }
22e05272 25035if ${gcc_cv_math_func_cacosh+:} false; then :
db1cf15c
IS
25036 $as_echo_n "(cached) " >&6
25037else
db9f46a9 25038 if test x$gcc_no_link = xyes; then
22e05272 25039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25040fi
25041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25042/* end confdefs.h. */
25043
db9f46a9
TG
25044#ifdef HAVE_COMPLEX_H
25045#include <complex.h>
db1cf15c 25046#endif
db9f46a9
TG
25047#ifdef HAVE_MATH_H
25048#include <math.h>
25049#endif
25050
25051int (*ptr)() = (int (*)())cacosh;
25052
db1cf15c
IS
25053int
25054main ()
25055{
db1cf15c
IS
25056 return 0;
25057}
db9f46a9 25058
db1cf15c
IS
25059_ACEOF
25060if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25061 gcc_cv_math_func_cacosh=yes
db1cf15c 25062else
db9f46a9 25063 gcc_cv_math_func_cacosh=no
db1cf15c
IS
25064fi
25065rm -f core conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25067fi
db9f46a9
TG
25068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
25069$as_echo "$gcc_cv_math_func_cacosh" >&6; }
25070 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 25071
f38a14ca
TG
25072cat >>confdefs.h <<_ACEOF
25073#define HAVE_CACOSH 1
25074_ACEOF
db9f46a9
TG
25075
25076 fi
25077
db1cf15c 25078
db1cf15c 25079
db1cf15c 25080
db9f46a9
TG
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
25082$as_echo_n "checking for cacoshf... " >&6; }
22e05272 25083if ${gcc_cv_math_func_cacoshf+:} false; then :
db1cf15c
IS
25084 $as_echo_n "(cached) " >&6
25085else
db9f46a9 25086 if test x$gcc_no_link = xyes; then
22e05272 25087 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25088fi
25089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090/* end confdefs.h. */
25091
db9f46a9
TG
25092#ifdef HAVE_COMPLEX_H
25093#include <complex.h>
25094#endif
25095#ifdef HAVE_MATH_H
25096#include <math.h>
db1cf15c 25097#endif
db9f46a9
TG
25098
25099int (*ptr)() = (int (*)())cacoshf;
25100
db1cf15c
IS
25101int
25102main ()
25103{
db1cf15c
IS
25104 return 0;
25105}
db9f46a9 25106
db1cf15c
IS
25107_ACEOF
25108if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25109 gcc_cv_math_func_cacoshf=yes
db1cf15c 25110else
db9f46a9 25111 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
25112fi
25113rm -f core conftest.err conftest.$ac_objext \
25114 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25115fi
db9f46a9
TG
25116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
25117$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
25118 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 25119
f38a14ca
TG
25120cat >>confdefs.h <<_ACEOF
25121#define HAVE_CACOSHF 1
25122_ACEOF
db9f46a9
TG
25123
25124 fi
db1cf15c 25125
db1cf15c 25126
db1cf15c 25127
db9f46a9
TG
25128
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25130$as_echo_n "checking for cacoshl... " >&6; }
22e05272 25131if ${gcc_cv_math_func_cacoshl+:} false; then :
db1cf15c
IS
25132 $as_echo_n "(cached) " >&6
25133else
db9f46a9 25134 if test x$gcc_no_link = xyes; then
22e05272 25135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25136fi
25137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138/* end confdefs.h. */
25139
db9f46a9
TG
25140#ifdef HAVE_COMPLEX_H
25141#include <complex.h>
db1cf15c 25142#endif
db9f46a9
TG
25143#ifdef HAVE_MATH_H
25144#include <math.h>
25145#endif
25146
25147int (*ptr)() = (int (*)())cacoshl;
25148
db1cf15c
IS
25149int
25150main ()
25151{
db1cf15c
IS
25152 return 0;
25153}
db9f46a9 25154
db1cf15c
IS
25155_ACEOF
25156if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25157 gcc_cv_math_func_cacoshl=yes
db1cf15c 25158else
db9f46a9 25159 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
25160fi
25161rm -f core conftest.err conftest.$ac_objext \
25162 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25163fi
db9f46a9
TG
25164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25165$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25166 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 25167
f38a14ca
TG
25168cat >>confdefs.h <<_ACEOF
25169#define HAVE_CACOSHL 1
25170_ACEOF
db1cf15c 25171
db9f46a9 25172 fi
db1cf15c 25173
db1cf15c 25174
db9f46a9
TG
25175
25176
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25178$as_echo_n "checking for cacosl... " >&6; }
22e05272 25179if ${gcc_cv_math_func_cacosl+:} false; then :
db1cf15c
IS
25180 $as_echo_n "(cached) " >&6
25181else
db9f46a9 25182 if test x$gcc_no_link = xyes; then
22e05272 25183 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25184fi
25185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186/* end confdefs.h. */
25187
db9f46a9
TG
25188#ifdef HAVE_COMPLEX_H
25189#include <complex.h>
25190#endif
25191#ifdef HAVE_MATH_H
25192#include <math.h>
db1cf15c 25193#endif
db9f46a9
TG
25194
25195int (*ptr)() = (int (*)())cacosl;
25196
db1cf15c
IS
25197int
25198main ()
25199{
db1cf15c
IS
25200 return 0;
25201}
db9f46a9 25202
db1cf15c
IS
25203_ACEOF
25204if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25205 gcc_cv_math_func_cacosl=yes
db1cf15c 25206else
db9f46a9 25207 gcc_cv_math_func_cacosl=no
db1cf15c
IS
25208fi
25209rm -f core conftest.err conftest.$ac_objext \
25210 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25211fi
db9f46a9
TG
25212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25213$as_echo "$gcc_cv_math_func_cacosl" >&6; }
25214 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 25215
f38a14ca
TG
25216cat >>confdefs.h <<_ACEOF
25217#define HAVE_CACOSL 1
25218_ACEOF
db9f46a9
TG
25219
25220 fi
db1cf15c 25221
db1cf15c 25222
db1cf15c 25223
db9f46a9
TG
25224
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25226$as_echo_n "checking for casin... " >&6; }
22e05272 25227if ${gcc_cv_math_func_casin+:} false; then :
db1cf15c
IS
25228 $as_echo_n "(cached) " >&6
25229else
db9f46a9 25230 if test x$gcc_no_link = xyes; then
22e05272 25231 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25232fi
25233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25234/* end confdefs.h. */
25235
db9f46a9
TG
25236#ifdef HAVE_COMPLEX_H
25237#include <complex.h>
db1cf15c 25238#endif
db9f46a9
TG
25239#ifdef HAVE_MATH_H
25240#include <math.h>
25241#endif
25242
25243int (*ptr)() = (int (*)())casin;
25244
db1cf15c
IS
25245int
25246main ()
25247{
db1cf15c
IS
25248 return 0;
25249}
db9f46a9 25250
db1cf15c
IS
25251_ACEOF
25252if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25253 gcc_cv_math_func_casin=yes
db1cf15c 25254else
db9f46a9 25255 gcc_cv_math_func_casin=no
db1cf15c
IS
25256fi
25257rm -f core conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25259fi
db9f46a9
TG
25260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25261$as_echo "$gcc_cv_math_func_casin" >&6; }
25262 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 25263
f38a14ca
TG
25264cat >>confdefs.h <<_ACEOF
25265#define HAVE_CASIN 1
25266_ACEOF
db9f46a9
TG
25267
25268 fi
25269
db1cf15c 25270
db1cf15c 25271
db1cf15c 25272
db9f46a9
TG
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25274$as_echo_n "checking for casinf... " >&6; }
22e05272 25275if ${gcc_cv_math_func_casinf+:} false; then :
db1cf15c
IS
25276 $as_echo_n "(cached) " >&6
25277else
db9f46a9 25278 if test x$gcc_no_link = xyes; then
22e05272 25279 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25280fi
25281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25282/* end confdefs.h. */
25283
db9f46a9
TG
25284#ifdef HAVE_COMPLEX_H
25285#include <complex.h>
25286#endif
25287#ifdef HAVE_MATH_H
25288#include <math.h>
db1cf15c 25289#endif
db9f46a9
TG
25290
25291int (*ptr)() = (int (*)())casinf;
25292
db1cf15c
IS
25293int
25294main ()
25295{
db1cf15c
IS
25296 return 0;
25297}
db9f46a9 25298
db1cf15c
IS
25299_ACEOF
25300if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25301 gcc_cv_math_func_casinf=yes
db1cf15c 25302else
db9f46a9 25303 gcc_cv_math_func_casinf=no
db1cf15c
IS
25304fi
25305rm -f core conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25307fi
db9f46a9
TG
25308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25309$as_echo "$gcc_cv_math_func_casinf" >&6; }
25310 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 25311
f38a14ca
TG
25312cat >>confdefs.h <<_ACEOF
25313#define HAVE_CASINF 1
25314_ACEOF
db9f46a9
TG
25315
25316 fi
db1cf15c 25317
db1cf15c 25318
db1cf15c 25319
db9f46a9
TG
25320
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25322$as_echo_n "checking for casinh... " >&6; }
22e05272 25323if ${gcc_cv_math_func_casinh+:} false; then :
db1cf15c
IS
25324 $as_echo_n "(cached) " >&6
25325else
db9f46a9 25326 if test x$gcc_no_link = xyes; then
22e05272 25327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25328fi
25329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330/* end confdefs.h. */
25331
db9f46a9
TG
25332#ifdef HAVE_COMPLEX_H
25333#include <complex.h>
db1cf15c 25334#endif
db9f46a9
TG
25335#ifdef HAVE_MATH_H
25336#include <math.h>
25337#endif
25338
25339int (*ptr)() = (int (*)())casinh;
25340
db1cf15c
IS
25341int
25342main ()
25343{
db1cf15c
IS
25344 return 0;
25345}
db9f46a9 25346
db1cf15c
IS
25347_ACEOF
25348if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25349 gcc_cv_math_func_casinh=yes
db1cf15c 25350else
db9f46a9 25351 gcc_cv_math_func_casinh=no
db1cf15c
IS
25352fi
25353rm -f core conftest.err conftest.$ac_objext \
25354 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25355fi
db9f46a9
TG
25356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25357$as_echo "$gcc_cv_math_func_casinh" >&6; }
25358 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 25359
f38a14ca
TG
25360cat >>confdefs.h <<_ACEOF
25361#define HAVE_CASINH 1
25362_ACEOF
db1cf15c 25363
db9f46a9 25364 fi
db1cf15c 25365
db1cf15c 25366
db9f46a9
TG
25367
25368
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25370$as_echo_n "checking for casinhf... " >&6; }
22e05272 25371if ${gcc_cv_math_func_casinhf+:} false; then :
db1cf15c
IS
25372 $as_echo_n "(cached) " >&6
25373else
db9f46a9 25374 if test x$gcc_no_link = xyes; then
22e05272 25375 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25376fi
25377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378/* end confdefs.h. */
25379
db9f46a9
TG
25380#ifdef HAVE_COMPLEX_H
25381#include <complex.h>
25382#endif
25383#ifdef HAVE_MATH_H
25384#include <math.h>
db1cf15c 25385#endif
db9f46a9
TG
25386
25387int (*ptr)() = (int (*)())casinhf;
25388
db1cf15c
IS
25389int
25390main ()
25391{
db1cf15c
IS
25392 return 0;
25393}
db9f46a9 25394
db1cf15c
IS
25395_ACEOF
25396if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25397 gcc_cv_math_func_casinhf=yes
db1cf15c 25398else
db9f46a9 25399 gcc_cv_math_func_casinhf=no
db1cf15c
IS
25400fi
25401rm -f core conftest.err conftest.$ac_objext \
25402 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25403fi
db9f46a9
TG
25404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25405$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25406 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 25407
f38a14ca
TG
25408cat >>confdefs.h <<_ACEOF
25409#define HAVE_CASINHF 1
25410_ACEOF
db9f46a9
TG
25411
25412 fi
db1cf15c 25413
db1cf15c 25414
db1cf15c 25415
db9f46a9
TG
25416
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25418$as_echo_n "checking for casinhl... " >&6; }
22e05272 25419if ${gcc_cv_math_func_casinhl+:} false; then :
db1cf15c
IS
25420 $as_echo_n "(cached) " >&6
25421else
db9f46a9 25422 if test x$gcc_no_link = xyes; then
22e05272 25423 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25424fi
25425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h. */
25427
db9f46a9
TG
25428#ifdef HAVE_COMPLEX_H
25429#include <complex.h>
db1cf15c 25430#endif
db9f46a9
TG
25431#ifdef HAVE_MATH_H
25432#include <math.h>
25433#endif
25434
25435int (*ptr)() = (int (*)())casinhl;
25436
db1cf15c
IS
25437int
25438main ()
25439{
db1cf15c
IS
25440 return 0;
25441}
db9f46a9 25442
db1cf15c
IS
25443_ACEOF
25444if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25445 gcc_cv_math_func_casinhl=yes
db1cf15c 25446else
db9f46a9 25447 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25448fi
25449rm -f core conftest.err conftest.$ac_objext \
25450 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25451fi
db9f46a9
TG
25452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25453$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25454 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25455
f38a14ca
TG
25456cat >>confdefs.h <<_ACEOF
25457#define HAVE_CASINHL 1
25458_ACEOF
db9f46a9
TG
25459
25460 fi
25461
db1cf15c 25462
db1cf15c 25463
db1cf15c 25464
db9f46a9
TG
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25466$as_echo_n "checking for casinl... " >&6; }
22e05272 25467if ${gcc_cv_math_func_casinl+:} false; then :
db1cf15c
IS
25468 $as_echo_n "(cached) " >&6
25469else
db9f46a9 25470 if test x$gcc_no_link = xyes; then
22e05272 25471 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25472fi
25473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h. */
25475
db9f46a9
TG
25476#ifdef HAVE_COMPLEX_H
25477#include <complex.h>
25478#endif
25479#ifdef HAVE_MATH_H
25480#include <math.h>
db1cf15c 25481#endif
db9f46a9
TG
25482
25483int (*ptr)() = (int (*)())casinl;
25484
db1cf15c
IS
25485int
25486main ()
25487{
db1cf15c
IS
25488 return 0;
25489}
db9f46a9 25490
db1cf15c
IS
25491_ACEOF
25492if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25493 gcc_cv_math_func_casinl=yes
db1cf15c 25494else
db9f46a9 25495 gcc_cv_math_func_casinl=no
db1cf15c
IS
25496fi
25497rm -f core conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25499fi
db9f46a9
TG
25500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25501$as_echo "$gcc_cv_math_func_casinl" >&6; }
25502 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25503
f38a14ca
TG
25504cat >>confdefs.h <<_ACEOF
25505#define HAVE_CASINL 1
25506_ACEOF
db9f46a9
TG
25507
25508 fi
db1cf15c 25509
db1cf15c 25510
db1cf15c 25511
db9f46a9
TG
25512
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25514$as_echo_n "checking for catan... " >&6; }
22e05272 25515if ${gcc_cv_math_func_catan+:} false; then :
db1cf15c
IS
25516 $as_echo_n "(cached) " >&6
25517else
db9f46a9 25518 if test x$gcc_no_link = xyes; then
22e05272 25519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25520fi
25521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522/* end confdefs.h. */
25523
db9f46a9
TG
25524#ifdef HAVE_COMPLEX_H
25525#include <complex.h>
db1cf15c 25526#endif
db9f46a9
TG
25527#ifdef HAVE_MATH_H
25528#include <math.h>
25529#endif
25530
25531int (*ptr)() = (int (*)())catan;
25532
db1cf15c
IS
25533int
25534main ()
25535{
db1cf15c
IS
25536 return 0;
25537}
db9f46a9 25538
db1cf15c
IS
25539_ACEOF
25540if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25541 gcc_cv_math_func_catan=yes
db1cf15c 25542else
db9f46a9 25543 gcc_cv_math_func_catan=no
db1cf15c
IS
25544fi
25545rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25547fi
db9f46a9
TG
25548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25549$as_echo "$gcc_cv_math_func_catan" >&6; }
25550 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25551
f38a14ca
TG
25552cat >>confdefs.h <<_ACEOF
25553#define HAVE_CATAN 1
25554_ACEOF
db1cf15c 25555
db9f46a9 25556 fi
db1cf15c 25557
db1cf15c 25558
db9f46a9
TG
25559
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25562$as_echo_n "checking for catanf... " >&6; }
22e05272 25563if ${gcc_cv_math_func_catanf+:} false; then :
db1cf15c
IS
25564 $as_echo_n "(cached) " >&6
25565else
db9f46a9 25566 if test x$gcc_no_link = xyes; then
22e05272 25567 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25568fi
25569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570/* end confdefs.h. */
25571
db9f46a9
TG
25572#ifdef HAVE_COMPLEX_H
25573#include <complex.h>
25574#endif
25575#ifdef HAVE_MATH_H
25576#include <math.h>
db1cf15c 25577#endif
db9f46a9
TG
25578
25579int (*ptr)() = (int (*)())catanf;
25580
db1cf15c
IS
25581int
25582main ()
25583{
db1cf15c
IS
25584 return 0;
25585}
db9f46a9 25586
db1cf15c
IS
25587_ACEOF
25588if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25589 gcc_cv_math_func_catanf=yes
db1cf15c 25590else
db9f46a9 25591 gcc_cv_math_func_catanf=no
db1cf15c
IS
25592fi
25593rm -f core conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25595fi
db9f46a9
TG
25596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25597$as_echo "$gcc_cv_math_func_catanf" >&6; }
25598 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25599
f38a14ca
TG
25600cat >>confdefs.h <<_ACEOF
25601#define HAVE_CATANF 1
25602_ACEOF
db9f46a9
TG
25603
25604 fi
db1cf15c 25605
db1cf15c 25606
db1cf15c 25607
db9f46a9
TG
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25610$as_echo_n "checking for catanh... " >&6; }
22e05272 25611if ${gcc_cv_math_func_catanh+:} false; then :
db1cf15c
IS
25612 $as_echo_n "(cached) " >&6
25613else
db9f46a9 25614 if test x$gcc_no_link = xyes; then
22e05272 25615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25616fi
25617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618/* end confdefs.h. */
25619
db9f46a9
TG
25620#ifdef HAVE_COMPLEX_H
25621#include <complex.h>
db1cf15c 25622#endif
db9f46a9
TG
25623#ifdef HAVE_MATH_H
25624#include <math.h>
25625#endif
25626
25627int (*ptr)() = (int (*)())catanh;
25628
db1cf15c
IS
25629int
25630main ()
25631{
db1cf15c
IS
25632 return 0;
25633}
db9f46a9 25634
db1cf15c
IS
25635_ACEOF
25636if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25637 gcc_cv_math_func_catanh=yes
db1cf15c 25638else
db9f46a9 25639 gcc_cv_math_func_catanh=no
db1cf15c
IS
25640fi
25641rm -f core conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25643fi
db9f46a9
TG
25644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25645$as_echo "$gcc_cv_math_func_catanh" >&6; }
25646 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25647
f38a14ca
TG
25648cat >>confdefs.h <<_ACEOF
25649#define HAVE_CATANH 1
25650_ACEOF
db9f46a9
TG
25651
25652 fi
25653
db1cf15c 25654
db1cf15c 25655
db1cf15c 25656
db9f46a9
TG
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25658$as_echo_n "checking for catanhf... " >&6; }
22e05272 25659if ${gcc_cv_math_func_catanhf+:} false; then :
db1cf15c
IS
25660 $as_echo_n "(cached) " >&6
25661else
db9f46a9 25662 if test x$gcc_no_link = xyes; then
22e05272 25663 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25664fi
25665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25666/* end confdefs.h. */
25667
db9f46a9
TG
25668#ifdef HAVE_COMPLEX_H
25669#include <complex.h>
25670#endif
25671#ifdef HAVE_MATH_H
25672#include <math.h>
db1cf15c 25673#endif
db9f46a9
TG
25674
25675int (*ptr)() = (int (*)())catanhf;
25676
db1cf15c
IS
25677int
25678main ()
25679{
db1cf15c
IS
25680 return 0;
25681}
db9f46a9 25682
db1cf15c
IS
25683_ACEOF
25684if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25685 gcc_cv_math_func_catanhf=yes
db1cf15c 25686else
db9f46a9 25687 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25688fi
25689rm -f core conftest.err conftest.$ac_objext \
25690 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25691fi
db9f46a9
TG
25692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25693$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25694 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25695
f38a14ca
TG
25696cat >>confdefs.h <<_ACEOF
25697#define HAVE_CATANHF 1
25698_ACEOF
db9f46a9
TG
25699
25700 fi
db1cf15c 25701
db1cf15c 25702
db1cf15c 25703
db9f46a9
TG
25704
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25706$as_echo_n "checking for catanhl... " >&6; }
22e05272 25707if ${gcc_cv_math_func_catanhl+:} false; then :
db1cf15c
IS
25708 $as_echo_n "(cached) " >&6
25709else
db9f46a9 25710 if test x$gcc_no_link = xyes; then
22e05272 25711 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25712fi
25713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25714/* end confdefs.h. */
25715
db9f46a9
TG
25716#ifdef HAVE_COMPLEX_H
25717#include <complex.h>
db1cf15c 25718#endif
db9f46a9
TG
25719#ifdef HAVE_MATH_H
25720#include <math.h>
25721#endif
25722
25723int (*ptr)() = (int (*)())catanhl;
25724
db1cf15c
IS
25725int
25726main ()
25727{
db1cf15c
IS
25728 return 0;
25729}
db9f46a9 25730
db1cf15c
IS
25731_ACEOF
25732if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25733 gcc_cv_math_func_catanhl=yes
db1cf15c 25734else
db9f46a9 25735 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25736fi
25737rm -f core conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25739fi
db9f46a9
TG
25740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25741$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25742 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25743
f38a14ca
TG
25744cat >>confdefs.h <<_ACEOF
25745#define HAVE_CATANHL 1
25746_ACEOF
db1cf15c 25747
db9f46a9 25748 fi
db1cf15c 25749
db1cf15c 25750
db9f46a9
TG
25751
25752
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25754$as_echo_n "checking for catanl... " >&6; }
22e05272 25755if ${gcc_cv_math_func_catanl+:} false; then :
db1cf15c
IS
25756 $as_echo_n "(cached) " >&6
25757else
db9f46a9 25758 if test x$gcc_no_link = xyes; then
22e05272 25759 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25760fi
25761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762/* end confdefs.h. */
25763
db9f46a9
TG
25764#ifdef HAVE_COMPLEX_H
25765#include <complex.h>
25766#endif
25767#ifdef HAVE_MATH_H
25768#include <math.h>
db1cf15c 25769#endif
db9f46a9
TG
25770
25771int (*ptr)() = (int (*)())catanl;
25772
db1cf15c
IS
25773int
25774main ()
25775{
db1cf15c
IS
25776 return 0;
25777}
db9f46a9 25778
db1cf15c
IS
25779_ACEOF
25780if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25781 gcc_cv_math_func_catanl=yes
db1cf15c 25782else
db9f46a9 25783 gcc_cv_math_func_catanl=no
db1cf15c
IS
25784fi
25785rm -f core conftest.err conftest.$ac_objext \
25786 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25787fi
db9f46a9
TG
25788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25789$as_echo "$gcc_cv_math_func_catanl" >&6; }
25790 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25791
f38a14ca
TG
25792cat >>confdefs.h <<_ACEOF
25793#define HAVE_CATANL 1
25794_ACEOF
db1cf15c 25795
db9f46a9 25796 fi
db1cf15c
IS
25797
25798
118ea208 25799# On AIX, clog is present in libm as __clog
5213506e
RW
25800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25801$as_echo_n "checking for __clog in -lm... " >&6; }
22e05272 25802if ${ac_cv_lib_m___clog+:} false; then :
5213506e 25803 $as_echo_n "(cached) " >&6
e097b4f1
DE
25804else
25805 ac_check_lib_save_LIBS=$LIBS
25806LIBS="-lm $LIBS"
25807if test x$gcc_no_link = xyes; then
22e05272 25808 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25809fi
5213506e 25810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25811/* end confdefs.h. */
25812
5213506e
RW
25813/* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25816#ifdef __cplusplus
25817extern "C"
25818#endif
e097b4f1
DE
25819char __clog ();
25820int
25821main ()
25822{
5213506e 25823return __clog ();
e097b4f1
DE
25824 ;
25825 return 0;
25826}
25827_ACEOF
5213506e 25828if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25829 ac_cv_lib_m___clog=yes
25830else
5213506e 25831 ac_cv_lib_m___clog=no
e097b4f1 25832fi
5213506e
RW
25833rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25835LIBS=$ac_check_lib_save_LIBS
25836fi
5213506e
RW
25837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25838$as_echo "$ac_cv_lib_m___clog" >&6; }
22e05272 25839if test "x$ac_cv_lib_m___clog" = xyes; then :
e097b4f1 25840
5213506e 25841$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25842
25843fi
25844
25845
1868599f
JJ
25846
25847
25848if test $gcc_cv_math_func_copysign = no; then
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25850$as_echo_n "checking for inline __builtin_copysign... " >&6; }
25851if ${gcc_cv_math_inline_builtin_copysign+:} 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
25860double
25861copysign_fallback (double x, double y)
25862{
25863 return __builtin_copysign (x, y);
25864}
25865
25866int
25867main ()
25868{
25869 return 0;
25870}
25871
25872_ACEOF
25873if ac_fn_c_try_link "$LINENO"; then :
25874 gcc_cv_math_inline_builtin_copysign=yes
25875else
25876 gcc_cv_math_inline_builtin_copysign=no
25877fi
25878rm -f core conftest.err conftest.$ac_objext \
25879 conftest$ac_exeext conftest.$ac_ext
25880fi
25881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25882$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25883 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25884
25885cat >>confdefs.h <<_ACEOF
25886#define HAVE_INLINE_BUILTIN_COPYSIGN 1
25887_ACEOF
25888
25889 fi
25890fi
25891
25892
25893if test $gcc_cv_math_func_copysignl = no; then
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25895$as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25896if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25897 $as_echo_n "(cached) " >&6
25898else
25899 if test x$gcc_no_link = xyes; then
25900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25901fi
25902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903/* end confdefs.h. */
25904
25905long double
25906copysignl_fallback (long double x, long double y)
25907{
25908 return __builtin_copysignl (x, y);
25909}
25910
25911int
25912main ()
25913{
25914 return 0;
25915}
25916
25917_ACEOF
25918if ac_fn_c_try_link "$LINENO"; then :
25919 gcc_cv_math_inline_builtin_copysignl=yes
25920else
25921 gcc_cv_math_inline_builtin_copysignl=no
25922fi
25923rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25925fi
25926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25927$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25928 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25929
25930cat >>confdefs.h <<_ACEOF
25931#define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25932_ACEOF
25933
25934 fi
25935fi
25936
25937
25938if test $gcc_cv_math_func_fabs = no; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25940$as_echo_n "checking for inline __builtin_fabs... " >&6; }
25941if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943else
25944 if test x$gcc_no_link = xyes; then
25945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25946fi
25947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25948/* end confdefs.h. */
25949
25950double
25951fabs_fallback (double x)
25952{
25953 return __builtin_fabs (x);
25954}
25955
25956int
25957main ()
25958{
25959 return 0;
25960}
25961
25962_ACEOF
25963if ac_fn_c_try_link "$LINENO"; then :
25964 gcc_cv_math_inline_builtin_fabs=yes
25965else
25966 gcc_cv_math_inline_builtin_fabs=no
25967fi
25968rm -f core conftest.err conftest.$ac_objext \
25969 conftest$ac_exeext conftest.$ac_ext
25970fi
25971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25972$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25973 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25974
25975cat >>confdefs.h <<_ACEOF
25976#define HAVE_INLINE_BUILTIN_FABS 1
25977_ACEOF
25978
25979 fi
25980fi
25981
25982
25983if test $gcc_cv_math_func_fabsl = no; then
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25985$as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25986if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25987 $as_echo_n "(cached) " >&6
25988else
25989 if test x$gcc_no_link = xyes; then
25990 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25991fi
25992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993/* end confdefs.h. */
25994
25995long double
25996fabsl_fallback (long double x)
25997{
25998 return __builtin_fabsl (x);
25999}
26000
26001int
26002main ()
26003{
26004 return 0;
26005}
26006
26007_ACEOF
26008if ac_fn_c_try_link "$LINENO"; then :
26009 gcc_cv_math_inline_builtin_fabsl=yes
26010else
26011 gcc_cv_math_inline_builtin_fabsl=no
26012fi
26013rm -f core conftest.err conftest.$ac_objext \
26014 conftest$ac_exeext conftest.$ac_ext
26015fi
26016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
26017$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
26018 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
26019
26020cat >>confdefs.h <<_ACEOF
26021#define HAVE_INLINE_BUILTIN_FABSL 1
26022_ACEOF
26023
26024 fi
26025fi
26026
ad238e4f
FXC
26027# Check whether the system has a working stat()
26028
5213506e
RW
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
26030$as_echo_n "checking whether the target stat is reliable... " >&6; }
22e05272 26031if ${libgfor_cv_have_working_stat+:} false; then :
5213506e 26032 $as_echo_n "(cached) " >&6
ad238e4f
FXC
26033else
26034
5213506e 26035 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
26036
26037case "${target}" in
6d26724a
RW
26038 *mingw*) libgfor_cv_have_working_stat=no ;;
26039 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
26040esac
26041else
5213506e 26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
26043/* end confdefs.h. */
26044
26045#include <stdio.h>
26046#include <sys/types.h>
26047#include <sys/stat.h>
26048#include <unistd.h>
26049
26050int main ()
26051{
26052 FILE *f, *g;
26053 struct stat st1, st2;
26054
26055 f = fopen ("foo", "w");
26056 g = fopen ("bar", "w");
26057 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
26058 return 1;
26059 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
26060 return 1;
26061 fclose(f);
26062 fclose(g);
26063 return 0;
26064}
26065_ACEOF
5213506e 26066if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26067 libgfor_cv_have_working_stat=yes
ad238e4f 26068else
5213506e 26069 libgfor_cv_have_working_stat=no
ad238e4f 26070fi
5213506e
RW
26071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26072 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 26073fi
5213506e 26074
ad238e4f 26075fi
5213506e
RW
26076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
26077$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 26078if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 26079
5213506e 26080$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
26081
26082fi
26083
db8092dc
FXC
26084# Check whether __mingw_snprintf() is present
26085
5213506e
RW
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
26087$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
22e05272 26088if ${libgfor_cv_have_mingw_snprintf+:} false; then :
5213506e 26089 $as_echo_n "(cached) " >&6
db8092dc
FXC
26090else
26091
26092 if test x$gcc_no_link = xyes; then
22e05272 26093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 26094fi
5213506e 26095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
26096/* end confdefs.h. */
26097
26098#include <stdio.h>
26099extern int __mingw_snprintf (char *, size_t, const char *, ...);
26100
26101int
26102main ()
26103{
26104
26105__mingw_snprintf (NULL, 0, "%d\n", 1);
26106
26107 ;
26108 return 0;
26109}
26110_ACEOF
5213506e 26111if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26112 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 26113else
5213506e 26114 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 26115fi
5213506e
RW
26116rm -f core conftest.err conftest.$ac_objext \
26117 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
26118
26119fi
5213506e
RW
26120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
26121$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 26122 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 26123
5213506e 26124$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
26125
26126 fi
26127
26128
87e6d9dc
TB
26129# Check whether libquadmath should be used
26130# Check whether --enable-libquadmath-support was given.
26131if test "${enable_libquadmath_support+set}" = set; then :
26132 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26133else
26134 ENABLE_LIBQUADMATH_SUPPORT=yes
26135fi
26136
26137enable_libquadmath_support=
26138if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
26139 enable_libquadmath_support=no
26140fi
26141
26142# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
26143
26144 LIBQUADSPEC=
87e6d9dc
TB
26145
26146 if test "x$enable_libquadmath_support" != xno; then
26147
1ec601bf
FXC
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26149$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
22e05272 26150if ${libgfor_cv_have_float128+:} false; then :
1ec601bf
FXC
26151 $as_echo_n "(cached) " >&6
26152else
26153
69eb61d4
TB
26154 if test x$gcc_no_link = xyes; then
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
26156/* end confdefs.h. */
26157
69eb61d4
TB
26158 typedef _Complex float __attribute__((mode(TC))) __complex128;
26159
26160 __float128 foo (__float128 x)
26161 {
26162
26163 __complex128 z1, z2;
26164
26165 z1 = x;
26166 z2 = x / 7.Q;
26167 z2 /= z1;
26168
26169 return (__float128) z2;
26170 }
26171
26172 __float128 bar (__float128 x)
26173 {
26174 return x * __builtin_huge_valq ();
26175 }
1ec601bf
FXC
26176
26177int
26178main ()
26179{
26180
69eb61d4
TB
26181 foo (1.2Q);
26182 bar (1.2Q);
1ec601bf 26183
69eb61d4
TB
26184 ;
26185 return 0;
26186}
26187_ACEOF
26188if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 26189
69eb61d4 26190 libgfor_cv_have_float128=yes
1ec601bf 26191
69eb61d4
TB
26192else
26193
26194 libgfor_cv_have_float128=no
26195
26196fi
26197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198else
26199 if test x$gcc_no_link = xyes; then
22e05272 26200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
69eb61d4
TB
26201fi
26202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26203/* end confdefs.h. */
26204
26205 typedef _Complex float __attribute__((mode(TC))) __complex128;
26206
26207 __float128 foo (__float128 x)
26208 {
26209
26210 __complex128 z1, z2;
26211
26212 z1 = x;
26213 z2 = x / 7.Q;
26214 z2 /= z1;
26215
26216 return (__float128) z2;
26217 }
26218
26219 __float128 bar (__float128 x)
26220 {
26221 return x * __builtin_huge_valq ();
26222 }
26223
26224int
26225main ()
26226{
26227
26228 foo (1.2Q);
26229 bar (1.2Q);
1ec601bf
FXC
26230
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
26236
26237 libgfor_cv_have_float128=yes
26238
1ec601bf 26239else
69eb61d4
TB
26240
26241 libgfor_cv_have_float128=no
26242
1ec601bf
FXC
26243fi
26244rm -f core conftest.err conftest.$ac_objext \
26245 conftest$ac_exeext conftest.$ac_ext
69eb61d4 26246fi
1ec601bf
FXC
26247fi
26248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26249$as_echo "$libgfor_cv_have_float128" >&6; }
26250
26251 if test "x$libgfor_cv_have_float128" = xyes; then
26252
26253$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26254
26255
26256 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26258$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
22e05272 26259if ${libgfor_cv_have_as_needed+:} false; then :
1ec601bf
FXC
26260 $as_echo_n "(cached) " >&6
26261else
26262
828012a5
RO
26263 # Test for native Solaris options first.
26264 # No whitespace after -z to pass it through -Wl.
26265 libgfor_cv_as_needed_option="-zignore"
26266 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 26267 save_LDFLAGS="$LDFLAGS"
828012a5 26268 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
26269 libgfor_cv_have_as_needed=no
26270
26271ac_c_werror_flag=yes
26272 if test x$gcc_no_link = xyes; then
22e05272 26273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf
FXC
26274fi
26275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276/* end confdefs.h. */
26277
26278int
26279main ()
26280{
26281
26282 ;
26283 return 0;
26284}
26285_ACEOF
26286if ac_fn_c_try_link "$LINENO"; then :
26287 libgfor_cv_have_as_needed=yes
26288else
26289 libgfor_cv_have_as_needed=no
26290fi
26291rm -f core conftest.err conftest.$ac_objext \
26292 conftest$ac_exeext conftest.$ac_ext
26293 LDFLAGS="$save_LDFLAGS"
828012a5
RO
26294 if test "x$libgfor_cv_have_as_needed" = xno; then
26295 libgfor_cv_as_needed_option="--as-needed"
26296 libgfor_cv_no_as_needed_option="--no-as-needed"
26297 save_LDFLAGS="$LDFLAGS"
26298 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26299 libgfor_cv_have_as_needed=no
26300
26301ac_c_werror_flag=yes
26302 if test x$gcc_no_link = xyes; then
22e05272 26303 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
828012a5
RO
26304fi
26305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306/* end confdefs.h. */
26307
26308int
26309main ()
26310{
26311
26312 ;
26313 return 0;
26314}
26315_ACEOF
26316if ac_fn_c_try_link "$LINENO"; then :
26317 libgfor_cv_have_as_needed=yes
26318else
26319 libgfor_cv_have_as_needed=no
26320fi
26321rm -f core conftest.err conftest.$ac_objext \
26322 conftest$ac_exeext conftest.$ac_ext
26323 LDFLAGS="$save_LDFLAGS"
26324 fi
1ec601bf
FXC
26325 ac_c_werror_flag=$ac_xsave_c_werror_flag
26326
26327fi
26328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26329$as_echo "$libgfor_cv_have_as_needed" >&6; }
26330
26331 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 26332 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
26333 else
26334 LIBQUADSPEC="-lquadmath"
26335 fi
26336 if test -f ../libquadmath/libquadmath.la; then
26337 LIBQUADLIB=../libquadmath/libquadmath.la
26338 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26339 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26340 else
26341 LIBQUADLIB="-lquadmath"
26342 LIBQUADLIB_DEP=
26343 LIBQUADINCLUDE=
26344 fi
26345 fi
87e6d9dc
TB
26346 else
26347 # for --disable-quadmath
26348 LIBQUADLIB=
26349 LIBQUADLIB_DEP=
26350 LIBQUADINCLUDE=
26351 fi
1ec601bf
FXC
26352
26353
26354
26355
26356
26357
26358 if test "x$libgfor_cv_have_float128" = xyes; then
26359 LIBGFOR_BUILD_QUAD_TRUE=
26360 LIBGFOR_BUILD_QUAD_FALSE='#'
26361else
26362 LIBGFOR_BUILD_QUAD_TRUE='#'
26363 LIBGFOR_BUILD_QUAD_FALSE=
26364fi
26365
26366
26367
944b8b35 26368# Check for GNU libc feenableexcept
5213506e
RW
26369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26370$as_echo_n "checking for feenableexcept in -lm... " >&6; }
22e05272 26371if ${ac_cv_lib_m_feenableexcept+:} false; then :
5213506e 26372 $as_echo_n "(cached) " >&6
944b8b35
FXC
26373else
26374 ac_check_lib_save_LIBS=$LIBS
26375LIBS="-lm $LIBS"
26376if test x$gcc_no_link = xyes; then
22e05272 26377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 26378fi
5213506e 26379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
26380/* end confdefs.h. */
26381
5213506e
RW
26382/* Override any GCC internal prototype to avoid an error.
26383 Use char because int might match the return type of a GCC
26384 builtin and then its argument prototype would still apply. */
944b8b35
FXC
26385#ifdef __cplusplus
26386extern "C"
26387#endif
944b8b35
FXC
26388char feenableexcept ();
26389int
26390main ()
26391{
5213506e 26392return feenableexcept ();
944b8b35
FXC
26393 ;
26394 return 0;
26395}
26396_ACEOF
5213506e 26397if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
26398 ac_cv_lib_m_feenableexcept=yes
26399else
5213506e 26400 ac_cv_lib_m_feenableexcept=no
944b8b35 26401fi
5213506e
RW
26402rm -f core conftest.err conftest.$ac_objext \
26403 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
26404LIBS=$ac_check_lib_save_LIBS
26405fi
5213506e
RW
26406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26407$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
22e05272 26408if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
944b8b35 26409 have_feenableexcept=yes
5213506e 26410$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
26411
26412fi
26413
3b14f664 26414
5c30094f 26415# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
26416# pull that in if it still doesn't give us the function we want. This
26417# test is copied from libgomp, and modified to not link in -lrt as
26418# libgfortran calls clock_gettime via a weak reference if it's found
26419# in librt.
deb9dd74 26420if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26422$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 26423if ${ac_cv_lib_rt_clock_gettime+:} false; then :
b6e7a3d1
JB
26424 $as_echo_n "(cached) " >&6
26425else
26426 ac_check_lib_save_LIBS=$LIBS
26427LIBS="-lrt $LIBS"
26428if test x$gcc_no_link = xyes; then
22e05272 26429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b6e7a3d1
JB
26430fi
26431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432/* end confdefs.h. */
26433
26434/* Override any GCC internal prototype to avoid an error.
26435 Use char because int might match the return type of a GCC
26436 builtin and then its argument prototype would still apply. */
26437#ifdef __cplusplus
26438extern "C"
26439#endif
26440char clock_gettime ();
26441int
26442main ()
26443{
26444return clock_gettime ();
26445 ;
26446 return 0;
26447}
26448_ACEOF
26449if ac_fn_c_try_link "$LINENO"; then :
26450 ac_cv_lib_rt_clock_gettime=yes
26451else
26452 ac_cv_lib_rt_clock_gettime=no
26453fi
26454rm -f core conftest.err conftest.$ac_objext \
26455 conftest$ac_exeext conftest.$ac_ext
26456LIBS=$ac_check_lib_save_LIBS
26457fi
26458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26459$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 26460if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
b6e7a3d1 26461
2aadeae2 26462$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
26463
26464fi
26465
26466fi
26467
5213506e 26468# Check for SysV fpsetmask
3b14f664 26469
5213506e
RW
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26471$as_echo_n "checking whether fpsetmask is present... " >&6; }
22e05272 26472if ${libgfor_cv_have_fpsetmask+:} false; then :
5213506e
RW
26473 $as_echo_n "(cached) " >&6
26474else
3b14f664 26475
5213506e 26476 if test x$gcc_no_link = xyes; then
22e05272 26477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
26478fi
26479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480/* end confdefs.h. */
3b14f664 26481
5213506e
RW
26482#if HAVE_FLOATINGPOINT_H
26483# include <floatingpoint.h>
26484#endif /* HAVE_FLOATINGPOINT_H */
26485#if HAVE_IEEEFP_H
26486# include <ieeefp.h>
26487#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
26488int
26489main ()
26490{
5213506e 26491fpsetmask(0);
3b14f664
FXC
26492 ;
26493 return 0;
26494}
26495_ACEOF
5213506e
RW
26496if ac_fn_c_try_link "$LINENO"; then :
26497 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 26498else
5213506e
RW
26499 eval "libgfor_cv_have_fpsetmask=no"
26500fi
26501rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
3b14f664 26503
3b14f664 26504fi
5213506e
RW
26505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26506$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26507 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 26508 have_fpsetmask=yes
5213506e
RW
26509
26510$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26511
26512 fi
26513
6faf4751 26514ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 26515#ifdef HAVE_IEEEFP_H
6faf4751 26516#include <ieeefp.h>
67c4c164 26517#endif
6faf4751
FXC
26518#include <math.h>
26519
7ae346c3 26520"
22e05272 26521if test "x$ac_cv_type_fp_except" = xyes; then :
7ae346c3
TB
26522
26523cat >>confdefs.h <<_ACEOF
26524#define HAVE_FP_EXCEPT 1
26525_ACEOF
26526
26527
26528fi
6faf4751 26529ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 26530#ifdef HAVE_IEEEFP_H
6faf4751 26531#include <ieeefp.h>
67c4c164 26532#endif
6faf4751
FXC
26533#include <math.h>
26534
7ae346c3 26535"
22e05272 26536if test "x$ac_cv_type_fp_except_t" = xyes; then :
7ae346c3
TB
26537
26538cat >>confdefs.h <<_ACEOF
26539#define HAVE_FP_EXCEPT_T 1
26540_ACEOF
26541
26542
82a4f54c
TB
26543fi
26544
6faf4751 26545ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 26546#ifdef HAVE_IEEEFP_H
6faf4751 26547#include <ieeefp.h>
67c4c164 26548#endif
6faf4751
FXC
26549#include <math.h>
26550
82a4f54c 26551"
22e05272 26552if test "x$ac_cv_type_fp_rnd" = xyes; then :
82a4f54c
TB
26553
26554cat >>confdefs.h <<_ACEOF
26555#define HAVE_FP_RND 1
26556_ACEOF
26557
26558
26559fi
6faf4751 26560ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 26561#ifdef HAVE_IEEEFP_H
6faf4751 26562#include <ieeefp.h>
67c4c164 26563#endif
6faf4751
FXC
26564#include <math.h>
26565
82a4f54c 26566"
22e05272 26567if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
82a4f54c
TB
26568
26569cat >>confdefs.h <<_ACEOF
26570#define HAVE_FP_RND_T 1
26571_ACEOF
26572
26573
7ae346c3
TB
26574fi
26575
5213506e 26576
de51fc1b
RO
26577# Check whether we have fpsetsticky or fpresetsticky
26578ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
22e05272 26579if test "x$ac_cv_func_fpsetsticky" = xyes; then :
de51fc1b
RO
26580 have_fpsetsticky=yes
26581$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26582
26583fi
26584
26585ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
22e05272 26586if test "x$ac_cv_func_fpresetsticky" = xyes; then :
de51fc1b
RO
26587 have_fpresetsticky=yes
26588$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26589
26590fi
26591
26592
5213506e
RW
26593# Check for AIX fp_trap and fp_enable
26594ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
22e05272 26595if test "x$ac_cv_func_fp_trap" = xyes; then :
5213506e
RW
26596 have_fp_trap=yes
26597$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26598
3b14f664 26599fi
5213506e
RW
26600
26601ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
22e05272 26602if test "x$ac_cv_func_fp_enable" = xyes; then :
3b14f664 26603 have_fp_enable=yes
5213506e 26604$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
26605
26606fi
26607
26608
7b32a8f6
UB
26609# Check if _SOFT_FLOAT is defined
26610
26611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26612$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
22e05272 26613if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
7b32a8f6
UB
26614 $as_echo_n "(cached) " >&6
26615else
26616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617/* end confdefs.h. */
26618
26619int
26620main ()
26621{
26622
26623 #ifdef _SOFT_FLOAT
26624 int ok;
26625 #else
26626 choke me
26627 #endif
26628
26629 ;
26630 return 0;
26631}
26632_ACEOF
26633if ac_fn_c_try_compile "$LINENO"; then :
26634 ac_cv_defined__SOFT_FLOAT=yes
26635else
26636 ac_cv_defined__SOFT_FLOAT=no
26637fi
26638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26639fi
26640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26641$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26642if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26643 have_soft_float=yes
26644fi
26645
944b8b35
FXC
26646# Runs configure.host to set up necessary host-dependent shell variables.
26647# We then display a message about it, and propagate them through the
26648# build chain.
26649. ${srcdir}/configure.host
5213506e
RW
26650{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26651$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
26652{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26653$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
26654FPU_HOST_HEADER=config/${fpu_host}.h
26655
26656
8b198102
FXC
26657# Whether we will build the IEEE modules
26658 if test x${ieee_support} = xyes; then
26659 IEEE_SUPPORT_TRUE=
26660 IEEE_SUPPORT_FALSE='#'
26661else
26662 IEEE_SUPPORT_TRUE='#'
26663 IEEE_SUPPORT_FALSE=
26664fi
26665
26666
26667
9fc77574
KK
26668# Some targets require additional compiler options for IEEE compatibility.
26669IEEE_FLAGS="${ieee_flags}"
26670
26671
47ddb895
DE
26672# Conditionalize the makefile for this target machine.
26673tmake_file_=
26674for f in ${tmake_file}
26675do
26676 if test -f ${srcdir}/config/$f
26677 then
26678 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
26679 fi
26680done
26681tmake_file="${tmake_file_}"
26682
26683
23e6d4a5
JB
26684
26685# Check for POSIX getpwuid_r
26686#
26687# There are two versions of getpwuid_r, the POSIX one with 5
26688# arguments, and another one with 4 arguments used by at least HP-UX
26689# 10.2.
26690if test "$ac_cv_func_getpwuid_r" = "yes"; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26692$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
22e05272 26693if ${libgfor_cv_posix_getpwuid_r+:} false; then :
23e6d4a5
JB
26694 $as_echo_n "(cached) " >&6
26695else
26696
26697 if test x$gcc_no_link = xyes; then
22e05272 26698 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23e6d4a5
JB
26699fi
26700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701/* end confdefs.h. */
26702
26703#include <stdio.h>
26704#include <sys/types.h>
26705#include <pwd.h>
26706int
26707main ()
26708{
26709
26710 getpwuid_r(0, NULL, NULL, 0, NULL);
26711
26712 ;
26713 return 0;
26714}
26715_ACEOF
26716if ac_fn_c_try_link "$LINENO"; then :
26717 libgfor_cv_posix_getpwuid_r="yes"
26718else
26719 libgfor_cv_posix_getpwuid_r="no"
26720fi
26721rm -f core conftest.err conftest.$ac_objext \
26722 conftest$ac_exeext conftest.$ac_ext
26723fi
26724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26725$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26726fi
26727if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26728
26729$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26730
26731fi
26732
26733
7d7b8bfe
RH
26734# Check out attribute support.
26735
5213506e
RW
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26737$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 26738if ${libgfor_cv_have_attribute_visibility+:} false; then :
5213506e 26739 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26740else
26741
26742 save_CFLAGS="$CFLAGS"
26743 CFLAGS="$CFLAGS -Werror"
5213506e 26744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26745/* end confdefs.h. */
26746void __attribute__((visibility("hidden"))) foo(void) { }
26747int
26748main ()
26749{
26750
26751 ;
26752 return 0;
26753}
26754_ACEOF
5213506e 26755if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26756 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 26757else
5213506e 26758 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 26759fi
5213506e 26760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26761 CFLAGS="$save_CFLAGS"
26762fi
5213506e
RW
26763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26764$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 26765 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 26766
5213506e 26767$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
26768
26769 fi
26770
5213506e
RW
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26772$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 26773if ${libgfor_cv_have_attribute_alias+:} false; then :
5213506e 26774 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26775else
26776
f02d008e 26777 if test x$gcc_no_link = xyes; then
22e05272 26778 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 26779fi
5213506e 26780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26781/* end confdefs.h. */
26782
7d7b8bfe 26783void foo(void) { }
16a314a9 26784extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
26785int
26786main ()
26787{
26788bar();
26789 ;
26790 return 0;
26791}
26792_ACEOF
5213506e 26793if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26794 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 26795else
5213506e 26796 libgfor_cv_have_attribute_alias=no
7d7b8bfe 26797fi
5213506e
RW
26798rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 26800fi
5213506e
RW
26801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26802$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 26803 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 26804
5213506e 26805$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
26806
26807 fi
26808
0536d5b3 26809# Check out atomic builtins support.
5e805e44 26810
0536d5b3
JB
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26812$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26813if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
5213506e 26814 $as_echo_n "(cached) " >&6
5e805e44
JJ
26815else
26816
26817 if test x$gcc_no_link = xyes; then
22e05272 26818 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 26819fi
5213506e 26820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
26821/* end confdefs.h. */
26822int foovar = 0;
26823int
26824main ()
26825{
26826
0536d5b3
JB
26827if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26828if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
5e805e44
JJ
26829 ;
26830 return 0;
26831}
26832_ACEOF
5213506e 26833if ac_fn_c_try_link "$LINENO"; then :
0536d5b3 26834 libgfor_cv_have_atomic_fetch_add=yes
5e805e44 26835else
0536d5b3 26836 libgfor_cv_have_atomic_fetch_add=no
5e805e44 26837fi
5213506e
RW
26838rm -f core conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
5e805e44 26840fi
0536d5b3
JB
26841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26842$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26843 if test $libgfor_cv_have_atomic_fetch_add = yes; then
5e805e44 26844
0536d5b3 26845$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
5e805e44
JJ
26846
26847 fi
26848
6a822a74
FXC
26849# Check out #pragma weak.
26850
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26852$as_echo_n "checking whether pragma weak works... " >&6; }
22e05272 26853if ${libgfor_cv_have_pragma_weak+:} false; then :
6a822a74
FXC
26854 $as_echo_n "(cached) " >&6
26855else
26856
26857 gfor_save_CFLAGS="$CFLAGS"
26858 CFLAGS="$CFLAGS -Wunknown-pragmas"
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860/* end confdefs.h. */
26861
26862void foo (void);
26863#pragma weak foo
26864
26865int
26866main ()
26867{
26868if (foo) foo ();
26869 ;
26870 return 0;
26871}
26872_ACEOF
26873if ac_fn_c_try_compile "$LINENO"; then :
26874 libgfor_cv_have_pragma_weak=yes
26875else
26876 libgfor_cv_have_pragma_weak=no
26877fi
26878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879fi
26880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26881$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26882 if test $libgfor_cv_have_pragma_weak = yes; then
26883
26884$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26885
26886 fi
26887 case "$host" in
26888 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26889
26890$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26891
26892 ;;
26893 esac
26894
e7854993 26895# Check out weakref support.
5e805e44 26896
e7854993
FXC
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26898$as_echo_n "checking whether the target supports weakref... " >&6; }
22e05272 26899if ${libgfor_cv_have_weakref+:} false; then :
5213506e 26900 $as_echo_n "(cached) " >&6
5e805e44
JJ
26901else
26902
e7854993
FXC
26903 save_CFLAGS="$CFLAGS"
26904 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26905 if test x$gcc_no_link = xyes; then
22e05272 26906 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e7854993
FXC
26907fi
26908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26909/* end confdefs.h. */
de15ea94 26910
e7854993 26911static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 26912
5e805e44
JJ
26913int
26914main ()
26915{
e7854993 26916return (mytoto != 0);
5e805e44
JJ
26917 ;
26918 return 0;
26919}
26920_ACEOF
e7854993
FXC
26921if ac_fn_c_try_link "$LINENO"; then :
26922 libgfor_cv_have_weakref=yes
5e805e44 26923else
e7854993 26924 libgfor_cv_have_weakref=no
5e805e44 26925fi
e7854993
FXC
26926rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26928 CFLAGS="$save_CFLAGS"
5e805e44 26929fi
e7854993
FXC
26930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26931$as_echo "$libgfor_cv_have_weakref" >&6; }
26932 if test $libgfor_cv_have_weakref = yes; then
5e805e44 26933
e7854993 26934$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
26935
26936 fi
26937
10c682a0
FXC
26938# Various other checks on target
26939
5213506e
RW
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26941$as_echo_n "checking whether the target can unlink an open file... " >&6; }
22e05272 26942if ${libgfor_cv_have_unlink_open_file+:} false; then :
5213506e 26943 $as_echo_n "(cached) " >&6
10c682a0
FXC
26944else
26945
5213506e 26946 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26947
26948case "${target}" in
6d26724a
RW
26949 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26950 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26951esac
26952else
5213506e 26953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26954/* end confdefs.h. */
26955
26956#include <errno.h>
26957#include <fcntl.h>
26958#include <unistd.h>
26959#include <sys/stat.h>
26960
26961int main ()
26962{
26963 int fd;
26964
42dfafa9 26965 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26966 if (fd <= 0)
26967 return 0;
26968 if (unlink ("testfile") == -1)
26969 return 1;
26970 write (fd, "This is a test\n", 15);
26971 close (fd);
26972
42dfafa9 26973 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26974 return 0;
26975 else
26976 return 1;
26977}
26978_ACEOF
5213506e 26979if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26980 libgfor_cv_have_unlink_open_file=yes
10c682a0 26981else
5213506e 26982 libgfor_cv_have_unlink_open_file=no
10c682a0 26983fi
5213506e
RW
26984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26985 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26986fi
5213506e 26987
10c682a0 26988fi
5213506e
RW
26989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26990$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26991if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26992
5213506e 26993$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26994
26995fi
26996
3c127520
FXC
26997# Check whether line terminator is LF or CRLF
26998
5213506e
RW
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
27000$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
22e05272 27001if ${libgfor_cv_have_crlf+:} false; then :
5213506e 27002 $as_echo_n "(cached) " >&6
3c127520
FXC
27003else
27004
5213506e 27005 if test "$cross_compiling" = yes; then :
3c127520
FXC
27006
27007case "${target}" in
6d26724a
RW
27008 *mingw*) libgfor_cv_have_crlf=yes ;;
27009 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
27010esac
27011else
5213506e 27012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
27013/* end confdefs.h. */
27014
27015/* This test program should exit with status 0 if system uses a CRLF as
27016 line terminator, and status 1 otherwise.
27017 Since it is used to check for mingw systems, and should return 0 in any
27018 other case, in case of a failure we will not use CRLF. */
27019#include <sys/stat.h>
27020#include <stdlib.h>
27021#include <fcntl.h>
27022#include <stdio.h>
27023
27024int main ()
27025{
27026#ifndef O_BINARY
27027 exit(1);
27028#else
27029 int fd, bytes;
27030 char buff[5];
27031
27032 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
27033 if (fd < 0)
27034 exit(1);
27035 if (write (fd, "\n", 1) < 0)
27036 perror ("write");
27037
27038 close (fd);
27039
27040 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
27041 exit(1);
27042 bytes = read (fd, buff, 5);
27043 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
27044 exit(0);
27045 else
27046 exit(1);
27047#endif
27048}
27049_ACEOF
5213506e 27050if ac_fn_c_try_run "$LINENO"; then :
6d26724a 27051 libgfor_cv_have_crlf=yes
3c127520 27052else
5213506e 27053 libgfor_cv_have_crlf=no
3c127520 27054fi
5213506e
RW
27055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27056 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 27057fi
5213506e 27058
3c127520 27059fi
5213506e
RW
27060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
27061$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 27062if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 27063
5213506e 27064$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
27065
27066fi
27067
31cfd832
TK
27068# Check whether we support AVX extensions
27069
27070 ac_save_CFLAGS="$CFLAGS"
27071 CFLAGS="-O2 -mavx"
27072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27073/* end confdefs.h. */
27074
27075 void _mm256_zeroall (void)
27076 {
27077 __builtin_ia32_vzeroall ();
27078 }
27079int
27080main ()
27081{
27082
27083 ;
27084 return 0;
27085}
27086_ACEOF
27087if ac_fn_c_try_compile "$LINENO"; then :
27088
27089$as_echo "#define HAVE_AVX 1" >>confdefs.h
27090
27091fi
27092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27093 CFLAGS="$ac_save_CFLAGS"
27094
27095
27096# Check wether we support AVX2 extensions
27097
27098 ac_save_CFLAGS="$CFLAGS"
27099 CFLAGS="-O2 -mavx2"
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101/* end confdefs.h. */
27102
27103 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
27104 __v4di
27105 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
27106 {
27107 return __builtin_ia32_andnotsi256 (__X, __Y);
27108 }
27109int
27110main ()
27111{
27112
27113 ;
27114 return 0;
27115}
27116_ACEOF
27117if ac_fn_c_try_compile "$LINENO"; then :
27118
27119$as_echo "#define HAVE_AVX2 1" >>confdefs.h
27120
27121fi
27122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123 CFLAGS="$ac_save_CFLAGS"
27124
27125
27126# Check wether we support AVX512f extensions
27127
27128 ac_save_CFLAGS="$CFLAGS"
27129 CFLAGS="-O2 -mavx512f"
27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131/* end confdefs.h. */
27132
27133 typedef double __m512d __attribute__ ((__vector_size__ (64)));
27134 __m512d _mm512_add (__m512d a)
27135 {
9db0a8c2
JJ
27136 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
27137 /* For -m64/-mx32 also verify that code will work even if
27138 the target uses call saved zmm16+ and needs to emit
27139 unwind info for them (e.g. on mingw). See PR79127. */
27140#ifdef __x86_64__
27141 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
27142#endif
27143 return b;
31cfd832
TK
27144 }
27145int
27146main ()
27147{
27148
27149 ;
27150 return 0;
27151}
27152_ACEOF
27153if ac_fn_c_try_compile "$LINENO"; then :
27154
27155$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27156
27157fi
27158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 CFLAGS="$ac_save_CFLAGS"
27160
27161
1d5cf7fc
TK
27162# Check for FMA3 extensions
27163
27164 ac_save_CFLAGS="$CFLAGS"
27165 CFLAGS="-O2 -mfma -mno-fma4"
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167/* end confdefs.h. */
27168
9698e1bb
RO
27169 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27170 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27171 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 27172 {
9698e1bb
RO
27173 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27174 (__v4sf)__B,
27175 (__v4sf)__C);
1d5cf7fc
TK
27176 }
27177int
27178main ()
27179{
27180
27181 ;
27182 return 0;
27183}
27184_ACEOF
27185if ac_fn_c_try_compile "$LINENO"; then :
27186
27187$as_echo "#define HAVE_FMA3 1" >>confdefs.h
27188
27189fi
27190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191 CFLAGS="$ac_save_CFLAGS"
27192
27193
27194# Check for FMA4 extensions
27195
27196 ac_save_CFLAGS="$CFLAGS"
27197 CFLAGS="-O2 -mfma4 -mno-fma"
27198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27199/* end confdefs.h. */
27200
9698e1bb
RO
27201 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27202 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27203 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 27204 {
9698e1bb
RO
27205 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27206 (__v4sf)__B,
27207 (__v4sf)__C);
1d5cf7fc
TK
27208 }
27209int
27210main ()
27211{
27212
27213 ;
27214 return 0;
27215}
27216_ACEOF
27217if ac_fn_c_try_compile "$LINENO"; then :
27218
27219$as_echo "#define HAVE_FMA4 1" >>confdefs.h
27220
27221fi
27222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 CFLAGS="$ac_save_CFLAGS"
27224
27225
27226# Check if AVX128 works
27227
27228 ac_save_CFLAGS="$CFLAGS"
27229 CFLAGS="-O2 -mavx -mprefer-avx128"
27230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27231/* end confdefs.h. */
27232
27233 void foo()
27234 {
27235 }
27236int
27237main ()
27238{
27239
27240 ;
27241 return 0;
27242}
27243_ACEOF
27244if ac_fn_c_try_compile "$LINENO"; then :
27245
27246$as_echo "#define HAVE_AVX128 1" >>confdefs.h
27247
27248 if true; then
27249 HAVE_AVX128_TRUE=
27250 HAVE_AVX128_FALSE='#'
27251else
27252 HAVE_AVX128_TRUE='#'
27253 HAVE_AVX128_FALSE=
27254fi
27255
5596d26a
TK
27256else
27257 if false; then
27258 HAVE_AVX128_TRUE=
27259 HAVE_AVX128_FALSE='#'
27260else
27261 HAVE_AVX128_TRUE='#'
27262 HAVE_AVX128_FALSE=
27263fi
27264
1d5cf7fc
TK
27265fi
27266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267 CFLAGS="$ac_save_CFLAGS"
27268
27269
3c36aa6b
JJ
27270# Determine what GCC version number to use in filesystem paths.
27271
27272 get_gcc_base_ver="cat"
27273
27274# Check whether --with-gcc-major-version-only was given.
27275if test "${with_gcc_major_version_only+set}" = set; then :
27276 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 27277 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
27278 fi
27279
27280fi
27281
27282
27283
27284
6de9cd9a
DN
27285cat >confcache <<\_ACEOF
27286# This file is a shell script that caches the results of configure
27287# tests run on this system so they can be shared between configure
27288# scripts and configure runs, see configure's option --config-cache.
27289# It is not useful on other systems. If it contains results you don't
27290# want to keep, you may remove or edit it.
27291#
27292# config.status only pays attention to the cache file if you give it
27293# the --recheck option to rerun configure.
27294#
27295# `ac_cv_env_foo' variables (set or unset) will be overridden when
27296# loading this file, other *unset* `ac_cv_foo' will be assigned the
27297# following values.
27298
27299_ACEOF
27300
27301# The following way of writing the cache mishandles newlines in values,
27302# but we know of no workaround that is simple, portable, and efficient.
5213506e 27303# So, we kill variables containing newlines.
6de9cd9a
DN
27304# Ultrix sh set writes to stderr and can't be redirected directly,
27305# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
27306(
27307 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27308 eval ac_val=\$$ac_var
27309 case $ac_val in #(
27310 *${as_nl}*)
27311 case $ac_var in #(
27312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27314 esac
27315 case $ac_var in #(
27316 _ | IFS | as_nl) ;; #(
27317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27318 *) { eval $ac_var=; unset $ac_var;} ;;
27319 esac ;;
27320 esac
27321 done
27322
6de9cd9a 27323 (set) 2>&1 |
5213506e
RW
27324 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27325 *${as_nl}ac_space=\ *)
27326 # `set' does not quote correctly, so add quotes: double-quote
27327 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
27328 sed -n \
27329 "s/'/'\\\\''/g;
27330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 27331 ;; #(
6de9cd9a
DN
27332 *)
27333 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 27334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 27335 ;;
5213506e
RW
27336 esac |
27337 sort
27338) |
6de9cd9a 27339 sed '
5213506e 27340 /^ac_cv_env_/b end
6de9cd9a 27341 t clear
5213506e 27342 :clear
6de9cd9a
DN
27343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27344 t end
5213506e
RW
27345 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27346 :end' >>confcache
27347if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27348 if test -w "$cache_file"; then
22e05272 27349 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27351$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
27352 if test ! -f "$cache_file" || test -h "$cache_file"; then
27353 cat confcache >"$cache_file"
27354 else
27355 case $cache_file in #(
27356 */* | ?:*)
27357 mv -f confcache "$cache_file"$$ &&
27358 mv -f "$cache_file"$$ "$cache_file" ;; #(
27359 *)
27360 mv -f confcache "$cache_file" ;;
27361 esac
27362 fi
27363 fi
6de9cd9a 27364 else
5213506e
RW
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27366$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
27367 fi
27368fi
27369rm -f confcache
27370
96b8a615
AJ
27371if test ${multilib} = yes; then
27372 multilib_arg="--enable-multilib"
6de9cd9a 27373else
96b8a615 27374 multilib_arg=
6de9cd9a 27375fi
6de9cd9a 27376
1ec601bf
FXC
27377# Write our Makefile and spec file.
27378ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 27379
6de9cd9a
DN
27380cat >confcache <<\_ACEOF
27381# This file is a shell script that caches the results of configure
27382# tests run on this system so they can be shared between configure
27383# scripts and configure runs, see configure's option --config-cache.
27384# It is not useful on other systems. If it contains results you don't
27385# want to keep, you may remove or edit it.
27386#
27387# config.status only pays attention to the cache file if you give it
27388# the --recheck option to rerun configure.
27389#
27390# `ac_cv_env_foo' variables (set or unset) will be overridden when
27391# loading this file, other *unset* `ac_cv_foo' will be assigned the
27392# following values.
27393
27394_ACEOF
27395
27396# The following way of writing the cache mishandles newlines in values,
27397# but we know of no workaround that is simple, portable, and efficient.
5213506e 27398# So, we kill variables containing newlines.
6de9cd9a
DN
27399# Ultrix sh set writes to stderr and can't be redirected directly,
27400# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
27401(
27402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27403 eval ac_val=\$$ac_var
27404 case $ac_val in #(
27405 *${as_nl}*)
27406 case $ac_var in #(
27407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27409 esac
27410 case $ac_var in #(
27411 _ | IFS | as_nl) ;; #(
27412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27413 *) { eval $ac_var=; unset $ac_var;} ;;
27414 esac ;;
27415 esac
27416 done
27417
6de9cd9a 27418 (set) 2>&1 |
5213506e
RW
27419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27420 *${as_nl}ac_space=\ *)
27421 # `set' does not quote correctly, so add quotes: double-quote
27422 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
27423 sed -n \
27424 "s/'/'\\\\''/g;
27425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 27426 ;; #(
6de9cd9a
DN
27427 *)
27428 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 27429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 27430 ;;
5213506e
RW
27431 esac |
27432 sort
27433) |
6de9cd9a 27434 sed '
5213506e 27435 /^ac_cv_env_/b end
6de9cd9a 27436 t clear
5213506e 27437 :clear
6de9cd9a
DN
27438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27439 t end
5213506e
RW
27440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27441 :end' >>confcache
27442if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27443 if test -w "$cache_file"; then
22e05272 27444 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27446$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
27447 if test ! -f "$cache_file" || test -h "$cache_file"; then
27448 cat confcache >"$cache_file"
27449 else
27450 case $cache_file in #(
27451 */* | ?:*)
27452 mv -f confcache "$cache_file"$$ &&
27453 mv -f "$cache_file"$$ "$cache_file" ;; #(
27454 *)
27455 mv -f confcache "$cache_file" ;;
27456 esac
27457 fi
27458 fi
6de9cd9a 27459 else
5213506e
RW
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27461$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
27462 fi
27463fi
27464rm -f confcache
27465
27466test "x$prefix" = xNONE && prefix=$ac_default_prefix
27467# Let make expand exec_prefix.
27468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27469
6de9cd9a
DN
27470DEFS=-DHAVE_CONFIG_H
27471
27472ac_libobjs=
27473ac_ltlibobjs=
22e05272 27474U=
6de9cd9a
DN
27475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27476 # 1. Remove the extension, and $U if already installed.
5213506e
RW
27477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27480 # will be set to the directory where LIBOBJS objects are built.
27481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
27483done
27484LIBOBJS=$ac_libobjs
27485
27486LTLIBOBJS=$ac_ltlibobjs
27487
27488
b808ac33 27489if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
22e05272 27490 as_fn_error $? "conditional \"onestep\" was never defined.
5213506e
RW
27491Usually this means the macro was only invoked conditionally." "$LINENO" 5
27492fi
22e05272
JM
27493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27494$as_echo_n "checking that generated files are newer than configure... " >&6; }
27495 if test -n "$am_sleep_pid"; then
27496 # Hide warnings about reused PIDs.
27497 wait $am_sleep_pid 2>/dev/null
27498 fi
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27500$as_echo "done" >&6; }
5213506e
RW
27501 if test -n "$EXEEXT"; then
27502 am__EXEEXT_TRUE=
27503 am__EXEEXT_FALSE='#'
27504else
27505 am__EXEEXT_TRUE='#'
27506 am__EXEEXT_FALSE=
b808ac33 27507fi
5213506e 27508
6de9cd9a 27509if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 27510 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 27511Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 27512fi
679c0f9a 27513if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 27514 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 27515Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
27516fi
27517if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 27518 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 27519Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 27520fi
21be0a5a 27521if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 27522 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21be0a5a
JB
27523Usually this means the macro was only invoked conditionally." "$LINENO" 5
27524fi
c0e7e2bf 27525if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
22e05272 27526 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
5213506e 27527Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 27528fi
49ea7a0e 27529if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
22e05272 27530 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
49ea7a0e
RO
27531Usually this means the macro was only invoked conditionally." "$LINENO" 5
27532fi
27533if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
22e05272 27534 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
49ea7a0e
RO
27535Usually this means the macro was only invoked conditionally." "$LINENO" 5
27536fi
ee95f928 27537if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
22e05272 27538 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
ee95f928
BS
27539Usually this means the macro was only invoked conditionally." "$LINENO" 5
27540fi
66dbcf2d 27541if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
22e05272 27542 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
66dbcf2d
RO
27543Usually this means the macro was only invoked conditionally." "$LINENO" 5
27544fi
1ec601bf 27545if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
22e05272 27546 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
1ec601bf
FXC
27547Usually this means the macro was only invoked conditionally." "$LINENO" 5
27548fi
8b198102 27549if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
22e05272 27550 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
8b198102
FXC
27551Usually this means the macro was only invoked conditionally." "$LINENO" 5
27552fi
1d5cf7fc 27553if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 27554 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
1d5cf7fc
TK
27555Usually this means the macro was only invoked conditionally." "$LINENO" 5
27556fi
5596d26a 27557if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 27558 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
5596d26a
TK
27559Usually this means the macro was only invoked conditionally." "$LINENO" 5
27560fi
6de9cd9a 27561
22e05272 27562: "${CONFIG_STATUS=./config.status}"
5213506e 27563ac_write_fail=0
6de9cd9a
DN
27564ac_clean_files_save=$ac_clean_files
27565ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
27566{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27567$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27568as_write_fail=0
27569cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
27570#! $SHELL
27571# Generated by $as_me.
27572# Run this file to recreate the current configuration.
27573# Compiler output produced by configure, useful for debugging
27574# configure, is in config.log if it exists.
27575
27576debug=false
27577ac_cs_recheck=false
27578ac_cs_silent=false
6de9cd9a 27579
5213506e
RW
27580SHELL=\${CONFIG_SHELL-$SHELL}
27581export SHELL
27582_ASEOF
27583cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27584## -------------------- ##
27585## M4sh Initialization. ##
27586## -------------------- ##
27587
27588# Be more Bourne compatible
27589DUALCASE=1; export DUALCASE # for MKS sh
27590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
27591 emulate sh
27592 NULLCMD=:
5213506e 27593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
27594 # is contrary to our usage. Disable this feature.
27595 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
27596 setopt NO_GLOB_SUBST
27597else
27598 case `(set -o) 2>/dev/null` in #(
27599 *posix*) :
27600 set -o posix ;; #(
27601 *) :
27602 ;;
27603esac
6de9cd9a 27604fi
6de9cd9a 27605
5213506e
RW
27606
27607as_nl='
27608'
27609export as_nl
27610# Printing a long string crashes Solaris 7 /usr/bin/printf.
27611as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27613as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27614# Prefer a ksh shell builtin over an external printf program on Solaris,
27615# but without wasting forks for bash or zsh.
27616if test -z "$BASH_VERSION$ZSH_VERSION" \
27617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27618 as_echo='print -r --'
27619 as_echo_n='print -rn --'
27620elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27621 as_echo='printf %s\n'
27622 as_echo_n='printf %s'
27623else
27624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27626 as_echo_n='/usr/ucb/echo -n'
27627 else
27628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27629 as_echo_n_body='eval
27630 arg=$1;
27631 case $arg in #(
27632 *"$as_nl"*)
27633 expr "X$arg" : "X\\(.*\\)$as_nl";
27634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27635 esac;
27636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27637 '
27638 export as_echo_n_body
27639 as_echo_n='sh -c $as_echo_n_body as_echo'
27640 fi
27641 export as_echo_body
27642 as_echo='sh -c $as_echo_body as_echo'
27643fi
27644
27645# The user is always right.
27646if test "${PATH_SEPARATOR+set}" != set; then
27647 PATH_SEPARATOR=:
27648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27650 PATH_SEPARATOR=';'
27651 }
6de9cd9a
DN
27652fi
27653
27654
5213506e
RW
27655# IFS
27656# We need space, tab and new line, in precisely that order. Quoting is
27657# there to prevent editors from complaining about space-tab.
27658# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27659# splitting by setting IFS to empty value.)
27660IFS=" "" $as_nl"
27661
27662# Find who we are. Look in the path if we contain no directory separator.
22e05272 27663as_myself=
5213506e
RW
27664case $0 in #((
27665 *[\\/]* ) as_myself=$0 ;;
27666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27667for as_dir in $PATH
27668do
27669 IFS=$as_save_IFS
27670 test -z "$as_dir" && as_dir=.
27671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27672 done
27673IFS=$as_save_IFS
27674
27675 ;;
27676esac
27677# We did not find ourselves, most probably we were run as `sh COMMAND'
27678# in which case we are not to be found in the path.
27679if test "x$as_myself" = x; then
27680 as_myself=$0
27681fi
27682if test ! -f "$as_myself"; then
27683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27684 exit 1
27685fi
27686
27687# Unset variables that we do not need and which cause bugs (e.g. in
27688# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27689# suppresses any "Segmentation fault" message there. '((' could
27690# trigger a bug in pdksh 5.2.14.
27691for as_var in BASH_ENV ENV MAIL MAILPATH
27692do eval test x\${$as_var+set} = xset \
27693 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27694done
6de9cd9a
DN
27695PS1='$ '
27696PS2='> '
27697PS4='+ '
27698
27699# NLS nuisances.
5213506e
RW
27700LC_ALL=C
27701export LC_ALL
27702LANGUAGE=C
27703export LANGUAGE
27704
27705# CDPATH.
27706(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27707
27708
22e05272
JM
27709# as_fn_error STATUS ERROR [LINENO LOG_FD]
27710# ----------------------------------------
5213506e
RW
27711# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27712# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 27713# script with STATUS, using 1 if that was 0.
5213506e
RW
27714as_fn_error ()
27715{
22e05272
JM
27716 as_status=$1; test $as_status -eq 0 && as_status=1
27717 if test "$4"; then
27718 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27719 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6de9cd9a 27720 fi
22e05272 27721 $as_echo "$as_me: error: $2" >&2
5213506e
RW
27722 as_fn_exit $as_status
27723} # as_fn_error
27724
27725
27726# as_fn_set_status STATUS
27727# -----------------------
27728# Set $? to STATUS, without forking.
27729as_fn_set_status ()
27730{
27731 return $1
27732} # as_fn_set_status
27733
27734# as_fn_exit STATUS
27735# -----------------
27736# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27737as_fn_exit ()
27738{
27739 set +e
27740 as_fn_set_status $1
27741 exit $1
27742} # as_fn_exit
27743
27744# as_fn_unset VAR
27745# ---------------
27746# Portably unset VAR.
27747as_fn_unset ()
27748{
27749 { eval $1=; unset $1;}
27750}
27751as_unset=as_fn_unset
27752# as_fn_append VAR VALUE
27753# ----------------------
27754# Append the text in VALUE to the end of the definition contained in VAR. Take
27755# advantage of any shell optimizations that allow amortized linear growth over
27756# repeated appends, instead of the typical quadratic growth present in naive
27757# implementations.
27758if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27759 eval 'as_fn_append ()
27760 {
27761 eval $1+=\$2
27762 }'
27763else
27764 as_fn_append ()
27765 {
27766 eval $1=\$$1\$2
27767 }
27768fi # as_fn_append
27769
27770# as_fn_arith ARG...
27771# ------------------
27772# Perform arithmetic evaluation on the ARGs, and store the result in the
27773# global $as_val. Take advantage of shells that can avoid forks. The arguments
27774# must be portable across $(()) and expr.
27775if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27776 eval 'as_fn_arith ()
27777 {
27778 as_val=$(( $* ))
27779 }'
27780else
27781 as_fn_arith ()
27782 {
27783 as_val=`expr "$@" || test $? -eq 1`
27784 }
27785fi # as_fn_arith
6de9cd9a 27786
5213506e
RW
27787
27788if expr a : '\(a\)' >/dev/null 2>&1 &&
27789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
27790 as_expr=expr
27791else
27792 as_expr=false
27793fi
27794
5213506e 27795if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
27796 as_basename=basename
27797else
27798 as_basename=false
27799fi
27800
5213506e
RW
27801if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27802 as_dirname=dirname
27803else
27804 as_dirname=false
27805fi
6de9cd9a 27806
5213506e 27807as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
27808$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27809 X"$0" : 'X\(//\)$' \| \
5213506e
RW
27810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27811$as_echo X/"$0" |
27812 sed '/^.*\/\([^/][^/]*\)\/*$/{
27813 s//\1/
27814 q
27815 }
27816 /^X\/\(\/\/\)$/{
27817 s//\1/
27818 q
27819 }
27820 /^X\/\(\/\).*/{
27821 s//\1/
27822 q
27823 }
27824 s/.*/./; q'`
38d24731 27825
38d24731
RW
27826# Avoid depending upon Character Ranges.
27827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27830as_cr_digits='0123456789'
27831as_cr_alnum=$as_cr_Letters$as_cr_digits
27832
5213506e
RW
27833ECHO_C= ECHO_N= ECHO_T=
27834case `echo -n x` in #(((((
27835-n*)
27836 case `echo 'xy\c'` in
27837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27838 xy) ECHO_C='\c';;
27839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27840 ECHO_T=' ';;
27841 esac;;
27842*)
27843 ECHO_N='-n';;
6de9cd9a
DN
27844esac
27845
5213506e
RW
27846rm -f conf$$ conf$$.exe conf$$.file
27847if test -d conf$$.dir; then
27848 rm -f conf$$.dir/conf$$.file
6de9cd9a 27849else
5213506e
RW
27850 rm -f conf$$.dir
27851 mkdir conf$$.dir 2>/dev/null
6de9cd9a 27852fi
5213506e
RW
27853if (echo >conf$$.file) 2>/dev/null; then
27854 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 27855 as_ln_s='ln -s'
5213506e
RW
27856 # ... but there are two gotchas:
27857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 27859 # In both cases, we have to default to `cp -pR'.
5213506e 27860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 27861 as_ln_s='cp -pR'
5213506e
RW
27862 elif ln conf$$.file conf$$ 2>/dev/null; then
27863 as_ln_s=ln
27864 else
22e05272 27865 as_ln_s='cp -pR'
38d24731 27866 fi
6de9cd9a 27867else
22e05272 27868 as_ln_s='cp -pR'
6de9cd9a 27869fi
5213506e
RW
27870rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27871rmdir conf$$.dir 2>/dev/null
27872
27873
27874# as_fn_mkdir_p
27875# -------------
27876# Create "$as_dir" as a directory, including parents if necessary.
27877as_fn_mkdir_p ()
27878{
27879
27880 case $as_dir in #(
27881 -*) as_dir=./$as_dir;;
27882 esac
27883 test -d "$as_dir" || eval $as_mkdir_p || {
27884 as_dirs=
27885 while :; do
27886 case $as_dir in #(
27887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27888 *) as_qdir=$as_dir;;
27889 esac
27890 as_dirs="'$as_qdir' $as_dirs"
27891 as_dir=`$as_dirname -- "$as_dir" ||
27892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27893 X"$as_dir" : 'X\(//\)[^/]' \| \
27894 X"$as_dir" : 'X\(//\)$' \| \
27895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27896$as_echo X"$as_dir" |
27897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27898 s//\1/
27899 q
27900 }
27901 /^X\(\/\/\)[^/].*/{
27902 s//\1/
27903 q
27904 }
27905 /^X\(\/\/\)$/{
27906 s//\1/
27907 q
27908 }
27909 /^X\(\/\).*/{
27910 s//\1/
27911 q
27912 }
27913 s/.*/./; q'`
27914 test -d "$as_dir" && break
27915 done
27916 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 27917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 27918
6de9cd9a 27919
5213506e 27920} # as_fn_mkdir_p
6de9cd9a 27921if mkdir -p . 2>/dev/null; then
5213506e 27922 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
27923else
27924 test -d ./-p && rmdir ./-p
27925 as_mkdir_p=false
27926fi
27927
22e05272
JM
27928
27929# as_fn_executable_p FILE
27930# -----------------------
27931# Test if FILE is an executable regular file.
27932as_fn_executable_p ()
27933{
27934 test -f "$1" && test -x "$1"
27935} # as_fn_executable_p
27936as_test_x='test -x'
27937as_executable_p=as_fn_executable_p
6de9cd9a
DN
27938
27939# Sed expression to map a string onto a valid CPP name.
27940as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27941
27942# Sed expression to map a string onto a valid variable name.
27943as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27944
27945
6de9cd9a 27946exec 6>&1
5213506e
RW
27947## ----------------------------------- ##
27948## Main body of $CONFIG_STATUS script. ##
27949## ----------------------------------- ##
27950_ASEOF
27951test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27952
27953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27954# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 27955# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
27956# values after options handling.
27957ac_log="
0dce3ca1 27958This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 27959generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a
DN
27960
27961 CONFIG_FILES = $CONFIG_FILES
27962 CONFIG_HEADERS = $CONFIG_HEADERS
27963 CONFIG_LINKS = $CONFIG_LINKS
27964 CONFIG_COMMANDS = $CONFIG_COMMANDS
27965 $ $0 $@
27966
5213506e
RW
27967on `(hostname || uname -n) 2>/dev/null | sed 1q`
27968"
27969
6de9cd9a
DN
27970_ACEOF
27971
5213506e
RW
27972case $ac_config_files in *"
27973"*) set x $ac_config_files; shift; ac_config_files=$*;;
27974esac
78511f8b 27975
5213506e
RW
27976case $ac_config_headers in *"
27977"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27978esac
38d24731 27979
38d24731 27980
5213506e
RW
27981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27982# Files that config.status was made for.
27983config_files="$ac_config_files"
27984config_headers="$ac_config_headers"
27985config_commands="$ac_config_commands"
6de9cd9a 27986
5213506e 27987_ACEOF
38d24731 27988
5213506e 27989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 27990ac_cs_usage="\
5213506e
RW
27991\`$as_me' instantiates files and other configuration actions
27992from templates according to the current configuration. Unless the files
27993and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 27994
5213506e 27995Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
27996
27997 -h, --help print this help, then exit
5213506e 27998 -V, --version print version number and configuration settings, then exit
22e05272 27999 --config print configuration, then exit
5213506e
RW
28000 -q, --quiet, --silent
28001 do not print progress messages
6de9cd9a
DN
28002 -d, --debug don't remove temporary files
28003 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
28004 --file=FILE[:TEMPLATE]
28005 instantiate the configuration file FILE
28006 --header=FILE[:TEMPLATE]
28007 instantiate the configuration header FILE
6de9cd9a
DN
28008
28009Configuration files:
28010$config_files
28011
28012Configuration headers:
28013$config_headers
28014
28015Configuration commands:
28016$config_commands
28017
5213506e
RW
28018Report bugs to the package provider.
28019GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
28020General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 28021
5213506e
RW
28022_ACEOF
28023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 28024ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6de9cd9a 28025ac_cs_version="\\
0dce3ca1 28026GNU Fortran Runtime Library config.status 0.3
22e05272
JM
28027configured by $0, generated by GNU Autoconf 2.69,
28028 with options \\"\$ac_cs_config\\"
6de9cd9a 28029
22e05272 28030Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
28031This config.status script is free software; the Free Software Foundation
28032gives unlimited permission to copy, distribute and modify it."
5213506e
RW
28033
28034ac_pwd='$ac_pwd'
28035srcdir='$srcdir'
28036INSTALL='$INSTALL'
28037MKDIR_P='$MKDIR_P'
28038AWK='$AWK'
28039test -n "\$AWK" || AWK=awk
6de9cd9a
DN
28040_ACEOF
28041
5213506e
RW
28042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28043# The default lists apply if the user does not specify any file.
6de9cd9a
DN
28044ac_need_defaults=:
28045while test $# != 0
28046do
28047 case $1 in
22e05272 28048 --*=?*)
5213506e
RW
28049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
28051 ac_shift=:
28052 ;;
22e05272
JM
28053 --*=)
28054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28055 ac_optarg=
28056 ac_shift=:
28057 ;;
5213506e 28058 *)
6de9cd9a
DN
28059 ac_option=$1
28060 ac_optarg=$2
28061 ac_shift=shift
28062 ;;
6de9cd9a
DN
28063 esac
28064
28065 case $ac_option in
28066 # Handling of the options.
6de9cd9a
DN
28067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28068 ac_cs_recheck=: ;;
5213506e
RW
28069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28070 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
28071 --config | --confi | --conf | --con | --co | --c )
28072 $as_echo "$ac_cs_config"; exit ;;
5213506e 28073 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
28074 debug=: ;;
28075 --file | --fil | --fi | --f )
28076 $ac_shift
5213506e
RW
28077 case $ac_optarg in
28078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 28079 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
28080 esac
28081 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
28082 ac_need_defaults=false;;
28083 --header | --heade | --head | --hea )
28084 $ac_shift
5213506e
RW
28085 case $ac_optarg in
28086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28087 esac
28088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 28089 ac_need_defaults=false;;
5213506e
RW
28090 --he | --h)
28091 # Conflict between --help and --header
22e05272 28092 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
28093Try \`$0 --help' for more information.";;
28094 --help | --hel | -h )
28095 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
28096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28098 ac_cs_silent=: ;;
28099
28100 # This is an error.
22e05272 28101 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 28102Try \`$0 --help' for more information." ;;
6de9cd9a 28103
5213506e
RW
28104 *) as_fn_append ac_config_targets " $1"
28105 ac_need_defaults=false ;;
6de9cd9a
DN
28106
28107 esac
28108 shift
28109done
28110
28111ac_configure_extra_args=
28112
28113if $ac_cs_silent; then
28114 exec 6>/dev/null
28115 ac_configure_extra_args="$ac_configure_extra_args --silent"
28116fi
28117
28118_ACEOF
5213506e 28119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 28120if \$ac_cs_recheck; then
22e05272 28121 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
28122 shift
28123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28124 CONFIG_SHELL='$SHELL'
28125 export CONFIG_SHELL
28126 exec "\$@"
6de9cd9a
DN
28127fi
28128
1cf3d07d 28129_ACEOF
5213506e
RW
28130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28131exec 5>>config.log
28132{
28133 echo
28134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28135## Running $as_me. ##
28136_ASBOX
28137 $as_echo "$ac_log"
28138} >&5
1cf3d07d 28139
5213506e
RW
28140_ACEOF
28141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 28142#
5213506e 28143# INIT-COMMANDS
1cf3d07d
SE
28144#
28145
1cf3d07d
SE
28146srcdir="$srcdir"
28147host="$host"
28148target="$target"
28149with_multisubdir="$with_multisubdir"
28150with_multisrctop="$with_multisrctop"
28151with_target_subdir="$with_target_subdir"
28152ac_configure_args="${multilib_arg} ${ac_configure_args}"
28153multi_basedir="$multi_basedir"
28154CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28155CC="$CC"
2017c370
JB
28156CXX="$CXX"
28157GFORTRAN="$GFORTRAN"
22e05272 28158GDC="$GDC"
1cf3d07d
SE
28159AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28160
28161
28162# The HP-UX ksh and POSIX shell print the target directory to stdout
28163# if CDPATH is set.
28164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28165
28166sed_quote_subst='$sed_quote_subst'
28167double_quote_subst='$double_quote_subst'
28168delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
28169SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28170Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28171GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28172EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28173FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28174SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28175ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28176LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
28177macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28178macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28179enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28180enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28181pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28182enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
28183host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28184host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28185host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28186build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28187build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28188build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
28189NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28190LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28191max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28192ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28193exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28194lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28195lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28196lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28197reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28198reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28199OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28200deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28201file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28202AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28203AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28204STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28205RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28206old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28207old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28208old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28209lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28210CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28211CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28212compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28213GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28214lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28215lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28216lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28217lt_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"`'
28218objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28219MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28220lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28221lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28222lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28223lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28224lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28225need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28226DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28227NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28228LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28229OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28230OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28231libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28232shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28233extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28234archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28235enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28236export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28237whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28238compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28239old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28240old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28241archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28242archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28243module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28244module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28245with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28246allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28247no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28248hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28249hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28250hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28251hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28252hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28253hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28254hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28255hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28256inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28257link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28258fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28259always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28260export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28261exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28262include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28263prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28264file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28265variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28266need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28267need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28268version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28269runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28270shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28271shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28272libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28273library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28274soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28275install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28276postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28277postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28278finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28279finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28280hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28281sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28282sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28283hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28284enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28285enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28286enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28287old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28288striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28289compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28290predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28291postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28292predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28293postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28294compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28295LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28296reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28297reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28298old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28299compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28300GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28301lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28302lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28303lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28304lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28305lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28306archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28307enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28308export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28309whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28310compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28311old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28312old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28313archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28314archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28315module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28316module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28317with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28318allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28319no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28320hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28321hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28322hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28323hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28324hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28325hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28326hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28327hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28328inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28329link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28330fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28331always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28332export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28333exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28334include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28335prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28336file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28337hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28338compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28339predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28340postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28341predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28342postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28343compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
28344
28345LTCC='$LTCC'
28346LTCFLAGS='$LTCFLAGS'
28347compiler='$compiler_DEFAULT'
28348
43e02a8a
RW
28349# A function that is used when there is no print builtin or printf.
28350func_fallback_echo ()
28351{
28352 eval 'cat <<_LTECHO_EOF
28353\$1
28354_LTECHO_EOF'
28355}
28356
1cf3d07d 28357# Quote evaled strings.
66dbcf2d 28358for var in SED \
1cf3d07d
SE
28359GREP \
28360EGREP \
28361FGREP \
66dbcf2d
RO
28362SHELL \
28363ECHO \
1cf3d07d
SE
28364LD \
28365NM \
28366LN_S \
28367lt_SP2NL \
28368lt_NL2SP \
28369reload_flag \
d58dead8 28370OBJDUMP \
1cf3d07d
SE
28371deplibs_check_method \
28372file_magic_cmd \
28373AR \
28374AR_FLAGS \
28375STRIP \
28376RANLIB \
28377CC \
28378CFLAGS \
28379compiler \
28380lt_cv_sys_global_symbol_pipe \
28381lt_cv_sys_global_symbol_to_cdecl \
28382lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 28383lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
28384lt_prog_compiler_no_builtin_flag \
28385lt_prog_compiler_wl \
28386lt_prog_compiler_pic \
28387lt_prog_compiler_static \
28388lt_cv_prog_compiler_c_o \
28389need_locks \
d58dead8
PG
28390DSYMUTIL \
28391NMEDIT \
28392LIPO \
28393OTOOL \
28394OTOOL64 \
1cf3d07d
SE
28395shrext_cmds \
28396export_dynamic_flag_spec \
28397whole_archive_flag_spec \
28398compiler_needs_object \
28399with_gnu_ld \
28400allow_undefined_flag \
28401no_undefined_flag \
28402hardcode_libdir_flag_spec \
28403hardcode_libdir_flag_spec_ld \
28404hardcode_libdir_separator \
28405fix_srcfile_path \
28406exclude_expsyms \
28407include_expsyms \
28408file_list_spec \
28409variables_saved_for_relink \
28410libname_spec \
28411library_names_spec \
28412soname_spec \
43e02a8a 28413install_override_mode \
1cf3d07d
SE
28414finish_eval \
28415old_striplib \
28416striplib \
d58dead8 28417compiler_lib_search_dirs \
1cf3d07d
SE
28418predep_objects \
28419postdep_objects \
28420predeps \
28421postdeps \
28422compiler_lib_search_path \
28423LD_FC \
43e02a8a 28424reload_flag_FC \
1cf3d07d
SE
28425compiler_FC \
28426lt_prog_compiler_no_builtin_flag_FC \
28427lt_prog_compiler_wl_FC \
28428lt_prog_compiler_pic_FC \
28429lt_prog_compiler_static_FC \
28430lt_cv_prog_compiler_c_o_FC \
28431export_dynamic_flag_spec_FC \
28432whole_archive_flag_spec_FC \
28433compiler_needs_object_FC \
28434with_gnu_ld_FC \
28435allow_undefined_flag_FC \
28436no_undefined_flag_FC \
28437hardcode_libdir_flag_spec_FC \
28438hardcode_libdir_flag_spec_ld_FC \
28439hardcode_libdir_separator_FC \
28440fix_srcfile_path_FC \
28441exclude_expsyms_FC \
28442include_expsyms_FC \
28443file_list_spec_FC \
d58dead8 28444compiler_lib_search_dirs_FC \
1cf3d07d
SE
28445predep_objects_FC \
28446postdep_objects_FC \
28447predeps_FC \
28448postdeps_FC \
28449compiler_lib_search_path_FC; do
43e02a8a 28450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 28451 *[\\\\\\\`\\"\\\$]*)
43e02a8a 28452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
28453 ;;
28454 *)
28455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28456 ;;
28457 esac
28458done
28459
28460# Double-quote double-evaled strings.
28461for var in reload_cmds \
28462old_postinstall_cmds \
28463old_postuninstall_cmds \
28464old_archive_cmds \
28465extract_expsyms_cmds \
28466old_archive_from_new_cmds \
28467old_archive_from_expsyms_cmds \
28468archive_cmds \
28469archive_expsym_cmds \
28470module_cmds \
28471module_expsym_cmds \
28472export_symbols_cmds \
28473prelink_cmds \
28474postinstall_cmds \
28475postuninstall_cmds \
28476finish_cmds \
28477sys_lib_search_path_spec \
28478sys_lib_dlsearch_path_spec \
43e02a8a 28479reload_cmds_FC \
1cf3d07d
SE
28480old_archive_cmds_FC \
28481old_archive_from_new_cmds_FC \
28482old_archive_from_expsyms_cmds_FC \
28483archive_cmds_FC \
28484archive_expsym_cmds_FC \
28485module_cmds_FC \
28486module_expsym_cmds_FC \
28487export_symbols_cmds_FC \
28488prelink_cmds_FC; do
43e02a8a 28489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 28490 *[\\\\\\\`\\"\\\$]*)
43e02a8a 28491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
28492 ;;
28493 *)
28494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28495 ;;
28496 esac
28497done
28498
1cf3d07d
SE
28499ac_aux_dir='$ac_aux_dir'
28500xsi_shell='$xsi_shell'
28501lt_shell_append='$lt_shell_append'
28502
28503# See if we are running on zsh, and set the options which allow our
28504# commands through without removal of \ escapes INIT.
28505if test -n "\${ZSH_VERSION+set}" ; then
28506 setopt NO_GLOB_SUBST
28507fi
28508
28509
28510 PACKAGE='$PACKAGE'
28511 VERSION='$VERSION'
28512 TIMESTAMP='$TIMESTAMP'
28513 RM='$RM'
28514 ofile='$ofile'
28515
28516
6de9cd9a 28517
6de9cd9a 28518
78511f8b 28519
6de9cd9a 28520
c13e029b
PB
28521GCC="$GCC"
28522CC="$CC"
28523acx_cv_header_stdint="$acx_cv_header_stdint"
28524acx_cv_type_int8_t="$acx_cv_type_int8_t"
28525acx_cv_type_int16_t="$acx_cv_type_int16_t"
28526acx_cv_type_int32_t="$acx_cv_type_int32_t"
28527acx_cv_type_int64_t="$acx_cv_type_int64_t"
28528acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28529ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28530ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28531ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28532ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28533ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
28534ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28535ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 28536ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
28537
28538
6de9cd9a
DN
28539_ACEOF
28540
5213506e 28541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 28542
5213506e 28543# Handling of arguments.
6de9cd9a
DN
28544for ac_config_target in $ac_config_targets
28545do
5213506e
RW
28546 case $ac_config_target in
28547 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28548 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28549 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28550 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28551 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28552 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 28553 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e 28554
22e05272 28555 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
28556 esac
28557done
28558
5213506e 28559
6de9cd9a
DN
28560# If the user did not use the arguments to specify the items to instantiate,
28561# then the envvar interface is used. Set only those that are not.
28562# We use the long form for the default assignment because of an extremely
28563# bizarre bug on SunOS 4.1.3.
28564if $ac_need_defaults; then
28565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28568fi
28569
28570# Have a temporary directory for convenience. Make it in the build tree
5213506e 28571# simply because there is no reason against having it here, and in addition,
6de9cd9a 28572# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
28573# Hook for its removal unless debugging.
28574# Note that there is a small window in which the directory will not be cleaned:
28575# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
28576$debug ||
28577{
22e05272 28578 tmp= ac_tmp=
5213506e 28579 trap 'exit_status=$?
22e05272
JM
28580 : "${ac_tmp:=$tmp}"
28581 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
28582' 0
28583 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 28584}
6de9cd9a
DN
28585# Create a (secure) tmp directory for tmp files.
28586
28587{
5213506e 28588 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 28589 test -d "$tmp"
6de9cd9a
DN
28590} ||
28591{
5213506e
RW
28592 tmp=./conf$$-$RANDOM
28593 (umask 077 && mkdir "$tmp")
22e05272
JM
28594} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28595ac_tmp=$tmp
5213506e
RW
28596
28597# Set up the scripts for CONFIG_FILES section.
28598# No need to generate them if there are no CONFIG_FILES.
28599# This happens for instance with `./config.status config.h'.
28600if test -n "$CONFIG_FILES"; then
28601
28602
28603ac_cr=`echo X | tr X '\015'`
28604# On cygwin, bash can eat \r inside `` if the user requested igncr.
28605# But we know of no other shell where ac_cr would be empty at this
28606# point, so we can use a bashism as a fallback.
28607if test "x$ac_cr" = x; then
28608 eval ac_cr=\$\'\\r\'
28609fi
28610ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28611if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 28612 ac_cs_awk_cr='\\r'
5213506e
RW
28613else
28614 ac_cs_awk_cr=$ac_cr
28615fi
28616
22e05272 28617echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
28618_ACEOF
28619
28620
6de9cd9a 28621{
5213506e
RW
28622 echo "cat >conf$$subs.awk <<_ACEOF" &&
28623 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28624 echo "_ACEOF"
28625} >conf$$subs.sh ||
22e05272
JM
28626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28627ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
28628ac_delim='%!_!# '
28629for ac_last_try in false false false false false :; do
28630 . ./conf$$subs.sh ||
22e05272 28631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
28632
28633 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28634 if test $ac_delim_n = $ac_delim_num; then
28635 break
28636 elif $ac_last_try; then
22e05272 28637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
28638 else
28639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28640 fi
28641done
28642rm -f conf$$subs.sh
28643
28644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 28645cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
28646_ACEOF
28647sed -n '
28648h
28649s/^/S["/; s/!.*/"]=/
28650p
28651g
28652s/^[^!]*!//
28653:repl
28654t repl
28655s/'"$ac_delim"'$//
28656t delim
28657:nl
28658h
22e05272 28659s/\(.\{148\}\)..*/\1/
5213506e
RW
28660t more1
28661s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28662p
28663n
28664b repl
28665:more1
28666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28667p
28668g
28669s/.\{148\}//
28670t nl
28671:delim
28672h
22e05272 28673s/\(.\{148\}\)..*/\1/
5213506e
RW
28674t more2
28675s/["\\]/\\&/g; s/^/"/; s/$/"/
28676p
28677b
28678:more2
28679s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28680p
28681g
28682s/.\{148\}//
28683t delim
28684' <conf$$subs.awk | sed '
28685/^[^""]/{
28686 N
28687 s/\n//
28688}
28689' >>$CONFIG_STATUS || ac_write_fail=1
28690rm -f conf$$subs.awk
28691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28692_ACAWK
22e05272 28693cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
28694 for (key in S) S_is_set[key] = 1
28695 FS = "\a"
28696
28697}
28698{
28699 line = $ 0
28700 nfields = split(line, field, "@")
28701 substed = 0
28702 len = length(field[1])
28703 for (i = 2; i < nfields; i++) {
28704 key = field[i]
28705 keylen = length(key)
28706 if (S_is_set[key]) {
28707 value = S[key]
28708 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28709 len += length(value) + length(field[++i])
28710 substed = 1
28711 } else
28712 len += 1 + keylen
28713 }
28714
28715 print line
6de9cd9a
DN
28716}
28717
5213506e
RW
28718_ACAWK
28719_ACEOF
28720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28722 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28723else
28724 cat
22e05272
JM
28725fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28726 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38d24731
RW
28727_ACEOF
28728
22e05272
JM
28729# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28730# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
28731# trailing colons and then remove the whole line if VPATH becomes empty
28732# (actually we leave an empty line to preserve line numbers).
28733if test "x$srcdir" = x.; then
22e05272
JM
28734 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28735h
28736s///
28737s/^/:/
28738s/[ ]*$/:/
28739s/:\$(srcdir):/:/g
28740s/:\${srcdir}:/:/g
28741s/:@srcdir@:/:/g
28742s/^:*//
5213506e 28743s/:*$//
22e05272
JM
28744x
28745s/\(=[ ]*\).*/\1/
28746G
28747s/\n//
5213506e
RW
28748s/^[^=]*=[ ]*$//
28749}'
28750fi
38d24731 28751
5213506e
RW
28752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28753fi # test -n "$CONFIG_FILES"
6de9cd9a 28754
5213506e
RW
28755# Set up the scripts for CONFIG_HEADERS section.
28756# No need to generate them if there are no CONFIG_HEADERS.
28757# This happens for instance with `./config.status Makefile'.
28758if test -n "$CONFIG_HEADERS"; then
22e05272 28759cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e
RW
28760BEGIN {
28761_ACEOF
28762
28763# Transform confdefs.h into an awk script `defines.awk', embedded as
28764# here-document in config.status, that substitutes the proper values into
28765# config.h.in to produce config.h.
28766
28767# Create a delimiter string that does not exist in confdefs.h, to ease
28768# handling of long lines.
28769ac_delim='%!_!# '
28770for ac_last_try in false false :; do
22e05272
JM
28771 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28772 if test -z "$ac_tt"; then
5213506e
RW
28773 break
28774 elif $ac_last_try; then
22e05272 28775 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5213506e
RW
28776 else
28777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 28778 fi
5213506e 28779done
c0e7e2bf 28780
5213506e
RW
28781# For the awk script, D is an array of macro values keyed by name,
28782# likewise P contains macro parameters if any. Preserve backslash
28783# newline sequences.
28784
28785ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28786sed -n '
28787s/.\{148\}/&'"$ac_delim"'/g
28788t rset
28789:rset
28790s/^[ ]*#[ ]*define[ ][ ]*/ /
28791t def
28792d
28793:def
28794s/\\$//
28795t bsnl
28796s/["\\]/\\&/g
28797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28798D["\1"]=" \3"/p
28799s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28800d
28801:bsnl
28802s/["\\]/\\&/g
28803s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28804D["\1"]=" \3\\\\\\n"\\/p
28805t cont
28806s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28807t cont
28808d
28809:cont
28810n
28811s/.\{148\}/&'"$ac_delim"'/g
28812t clear
28813:clear
28814s/\\$//
28815t bsnlc
28816s/["\\]/\\&/g; s/^/"/; s/$/"/p
28817d
28818:bsnlc
28819s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28820b cont
28821' <confdefs.h | sed '
28822s/'"$ac_delim"'/"\\\
28823"/g' >>$CONFIG_STATUS || ac_write_fail=1
28824
28825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28826 for (key in D) D_is_set[key] = 1
28827 FS = "\a"
28828}
28829/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28830 line = \$ 0
28831 split(line, arg, " ")
28832 if (arg[1] == "#") {
28833 defundef = arg[2]
28834 mac1 = arg[3]
28835 } else {
28836 defundef = substr(arg[1], 2)
28837 mac1 = arg[2]
28838 }
28839 split(mac1, mac2, "(") #)
28840 macro = mac2[1]
28841 prefix = substr(line, 1, index(line, defundef) - 1)
28842 if (D_is_set[macro]) {
28843 # Preserve the white space surrounding the "#".
28844 print prefix "define", macro P[macro] D[macro]
28845 next
28846 } else {
28847 # Replace #undef with comments. This is necessary, for example,
28848 # in the case of _POSIX_SOURCE, which is predefined and required
28849 # on some systems where configure will not decide to define it.
28850 if (defundef == "undef") {
28851 print "/*", prefix defundef, macro, "*/"
28852 next
28853 }
28854 }
28855}
28856{ print }
28857_ACAWK
6de9cd9a 28858_ACEOF
5213506e 28859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 28860 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e
RW
28861fi # test -n "$CONFIG_HEADERS"
28862
28863
28864eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28865shift
28866for ac_tag
28867do
28868 case $ac_tag in
28869 :[FHLC]) ac_mode=$ac_tag; continue;;
28870 esac
28871 case $ac_mode$ac_tag in
28872 :[FHL]*:*);;
22e05272 28873 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
28874 :[FH]-) ac_tag=-:-;;
28875 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28876 esac
28877 ac_save_IFS=$IFS
28878 IFS=:
28879 set x $ac_tag
28880 IFS=$ac_save_IFS
28881 shift
28882 ac_file=$1
28883 shift
28884
28885 case $ac_mode in
28886 :L) ac_source=$1;;
28887 :[FH])
28888 ac_file_inputs=
28889 for ac_f
28890 do
28891 case $ac_f in
22e05272 28892 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
28893 *) # Look for the file first in the build tree, then in the source tree
28894 # (if the path is not absolute). The absolute path cannot be DOS-style,
28895 # because $ac_f cannot contain `:'.
28896 test -f "$ac_f" ||
28897 case $ac_f in
28898 [\\/$]*) false;;
28899 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28900 esac ||
22e05272 28901 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
28902 esac
28903 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28904 as_fn_append ac_file_inputs " '$ac_f'"
28905 done
28906
28907 # Let's still pretend it is `configure' which instantiates (i.e., don't
28908 # use $as_me), people would be surprised to read:
28909 # /* config.h. Generated by config.status. */
28910 configure_input='Generated from '`
28911 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28912 `' by configure.'
28913 if test x"$ac_file" != x-; then
28914 configure_input="$ac_file. $configure_input"
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28916$as_echo "$as_me: creating $ac_file" >&6;}
28917 fi
28918 # Neutralize special characters interpreted by sed in replacement strings.
28919 case $configure_input in #(
28920 *\&* | *\|* | *\\* )
28921 ac_sed_conf_input=`$as_echo "$configure_input" |
28922 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28923 *) ac_sed_conf_input=$configure_input;;
28924 esac
28925
28926 case $ac_tag in
22e05272
JM
28927 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
28929 esac
28930 ;;
6de9cd9a
DN
28931 esac
28932
5213506e 28933 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
28934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28935 X"$ac_file" : 'X\(//\)[^/]' \| \
28936 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
28937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28938$as_echo X"$ac_file" |
28939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28940 s//\1/
28941 q
28942 }
28943 /^X\(\/\/\)[^/].*/{
28944 s//\1/
28945 q
28946 }
28947 /^X\(\/\/\)$/{
28948 s//\1/
28949 q
28950 }
28951 /^X\(\/\).*/{
28952 s//\1/
28953 q
28954 }
28955 s/.*/./; q'`
28956 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
28957 ac_builddir=.
28958
5213506e
RW
28959case "$ac_dir" in
28960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28961*)
28962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28963 # A ".." for each directory in $ac_dir_suffix.
28964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28965 case $ac_top_builddir_sub in
28966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28968 esac ;;
28969esac
28970ac_abs_top_builddir=$ac_pwd
28971ac_abs_builddir=$ac_pwd$ac_dir_suffix
28972# for backward compatibility:
28973ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
28974
28975case $srcdir in
5213506e 28976 .) # We are building in place.
6de9cd9a 28977 ac_srcdir=.
5213506e
RW
28978 ac_top_srcdir=$ac_top_builddir_sub
28979 ac_abs_top_srcdir=$ac_pwd ;;
28980 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 28981 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
28982 ac_top_srcdir=$srcdir
28983 ac_abs_top_srcdir=$srcdir ;;
28984 *) # Relative name.
28985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28986 ac_top_srcdir=$ac_top_build_prefix$srcdir
28987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 28988esac
5213506e 28989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 28990
6de9cd9a 28991
5213506e
RW
28992 case $ac_mode in
28993 :F)
28994 #
28995 # CONFIG_FILE
28996 #
6de9cd9a
DN
28997
28998 case $INSTALL in
28999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
29000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29001 esac
29002 ac_MKDIR_P=$MKDIR_P
29003 case $MKDIR_P in
29004 [\\/$]* | ?:[\\/]* ) ;;
29005 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 29006 esac
5213506e 29007_ACEOF
6de9cd9a 29008
5213506e
RW
29009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29010# If the template does not know about datarootdir, expand it.
29011# FIXME: This hack should be removed a few years after 2.60.
29012ac_datarootdir_hack=; ac_datarootdir_seen=
29013ac_sed_dataroot='
29014/datarootdir/ {
29015 p
29016 q
29017}
29018/@datadir@/p
29019/@docdir@/p
29020/@infodir@/p
29021/@localedir@/p
29022/@mandir@/p'
29023case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29024*datarootdir*) ac_datarootdir_seen=yes;;
29025*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29027$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29028_ACEOF
29029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29030 ac_datarootdir_hack='
29031 s&@datadir@&$datadir&g
29032 s&@docdir@&$docdir&g
29033 s&@infodir@&$infodir&g
29034 s&@localedir@&$localedir&g
29035 s&@mandir@&$mandir&g
29036 s&\\\${datarootdir}&$datarootdir&g' ;;
29037esac
78511f8b 29038_ACEOF
5213506e
RW
29039
29040# Neutralize VPATH when `$srcdir' = `.'.
29041# Shell code in configure.ac might set extrasub.
29042# FIXME: do we really want to maintain this feature?
29043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29044ac_sed_extra="$ac_vpsub
6de9cd9a
DN
29045$extrasub
29046_ACEOF
5213506e 29047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
29048:t
29049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
29050s|@configure_input@|$ac_sed_conf_input|;t t
29051s&@top_builddir@&$ac_top_builddir_sub&;t t
29052s&@top_build_prefix@&$ac_top_build_prefix&;t t
29053s&@srcdir@&$ac_srcdir&;t t
29054s&@abs_srcdir@&$ac_abs_srcdir&;t t
29055s&@top_srcdir@&$ac_top_srcdir&;t t
29056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29057s&@builddir@&$ac_builddir&;t t
29058s&@abs_builddir@&$ac_abs_builddir&;t t
29059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29060s&@INSTALL@&$ac_INSTALL&;t t
29061s&@MKDIR_P@&$ac_MKDIR_P&;t t
29062$ac_datarootdir_hack
29063"
22e05272
JM
29064eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29065 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
29066
29067test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
29068 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29070 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 29072which seems to be undefined. Please make sure it is defined" >&5
5213506e 29073$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 29074which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 29075
22e05272 29076 rm -f "$ac_tmp/stdin"
6de9cd9a 29077 case $ac_file in
22e05272
JM
29078 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29079 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 29080 esac \
22e05272 29081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
29082 ;;
29083 :H)
29084 #
29085 # CONFIG_HEADER
29086 #
6de9cd9a 29087 if test x"$ac_file" != x-; then
5213506e
RW
29088 {
29089 $as_echo "/* $configure_input */" \
22e05272
JM
29090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29091 } >"$ac_tmp/config.h" \
29092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29093 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29095$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 29096 else
5213506e 29097 rm -f "$ac_file"
22e05272
JM
29098 mv "$ac_tmp/config.h" "$ac_file" \
29099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
29100 fi
29101 else
5213506e 29102 $as_echo "/* $configure_input */" \
22e05272
JM
29103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29104 || as_fn_error $? "could not create -" "$LINENO" 5
6de9cd9a 29105 fi
5213506e
RW
29106# Compute "$ac_file"'s index in $config_headers.
29107_am_arg="$ac_file"
6de9cd9a
DN
29108_am_stamp_count=1
29109for _am_header in $config_headers :; do
29110 case $_am_header in
5213506e 29111 $_am_arg | $_am_arg:* )
6de9cd9a
DN
29112 break ;;
29113 * )
29114 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29115 esac
29116done
5213506e
RW
29117echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29118$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29119 X"$_am_arg" : 'X\(//\)[^/]' \| \
29120 X"$_am_arg" : 'X\(//\)$' \| \
29121 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29122$as_echo X"$_am_arg" |
29123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29124 s//\1/
29125 q
29126 }
29127 /^X\(\/\/\)[^/].*/{
29128 s//\1/
29129 q
29130 }
29131 /^X\(\/\/\)$/{
29132 s//\1/
29133 q
29134 }
29135 /^X\(\/\).*/{
29136 s//\1/
29137 q
29138 }
29139 s/.*/./; q'`/stamp-h$_am_stamp_count
29140 ;;
38d24731 29141
5213506e
RW
29142 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29143$as_echo "$as_me: executing $ac_file commands" >&6;}
29144 ;;
29145 esac
6de9cd9a
DN
29146
29147
5213506e
RW
29148 case $ac_file$ac_mode in
29149 "default-1":C)
96b8a615
AJ
29150# Only add multilib support code if we just rebuilt the top-level
29151# Makefile.
29152case " $CONFIG_FILES " in
29153 *" Makefile "*)
29154 ac_file=Makefile . ${multi_basedir}/config-ml.in
29155 ;;
29156esac ;;
5213506e 29157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 29158 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
29159 # are listed without --file. Let's play safe and only enable the eval
29160 # if we detect the quoting.
29161 case $CONFIG_FILES in
29162 *\'*) eval set x "$CONFIG_FILES" ;;
29163 *) set x $CONFIG_FILES ;;
29164 esac
29165 shift
29166 for mf
29167 do
29168 # Strip MF so we end up with the name of the file.
29169 mf=`echo "$mf" | sed -e 's/:.*$//'`
29170 # Check whether this is an Automake generated Makefile or not.
22e05272 29171 # We used to match only the files named 'Makefile.in', but
5213506e
RW
29172 # some people rename them; so instead we look at the file content.
29173 # Grep'ing the first line is not enough: some people post-process
29174 # each Makefile.in and add a new line on top of each file to say so.
29175 # Grep'ing the whole file is not good either: AIX grep has a line
29176 # limit of 2048, but all sed's we know have understand at least 4000.
29177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29178 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
29179$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29180 X"$mf" : 'X\(//\)[^/]' \| \
29181 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
29182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29183$as_echo X"$mf" |
29184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29185 s//\1/
29186 q
29187 }
29188 /^X\(\/\/\)[^/].*/{
29189 s//\1/
29190 q
29191 }
29192 /^X\(\/\/\)$/{
29193 s//\1/
29194 q
29195 }
29196 /^X\(\/\).*/{
29197 s//\1/
29198 q
29199 }
29200 s/.*/./; q'`
29201 else
29202 continue
29203 fi
29204 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 29205 # from the Makefile without running 'make'.
5213506e
RW
29206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29207 test -z "$DEPDIR" && continue
29208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 29209 test -z "$am__include" && continue
5213506e 29210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
29211 # Find all dependency output files, they are included files with
29212 # $(DEPDIR) in their names. We invoke sed twice because it is the
29213 # simplest approach to changing $(DEPDIR) to its actual value in the
29214 # expansion.
29215 for file in `sed -n "
29216 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 29217 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
29218 # Make sure the directory exists.
29219 test -f "$dirpart/$file" && continue
29220 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
29221$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29222 X"$file" : 'X\(//\)[^/]' \| \
29223 X"$file" : 'X\(//\)$' \| \
5213506e
RW
29224 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29225$as_echo X"$file" |
29226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29227 s//\1/
29228 q
29229 }
29230 /^X\(\/\/\)[^/].*/{
29231 s//\1/
29232 q
29233 }
29234 /^X\(\/\/\)$/{
29235 s//\1/
29236 q
29237 }
29238 /^X\(\/\).*/{
29239 s//\1/
29240 q
29241 }
29242 s/.*/./; q'`
29243 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29244 # echo "creating $dirpart/$file"
29245 echo '# dummy' > "$dirpart/$file"
679c0f9a 29246 done
679c0f9a 29247 done
5213506e 29248}
1cf3d07d 29249 ;;
5213506e 29250 "libtool":C)
1cf3d07d
SE
29251
29252 # See if we are running on zsh, and set the options which allow our
29253 # commands through without removal of \ escapes.
29254 if test -n "${ZSH_VERSION+set}" ; then
29255 setopt NO_GLOB_SUBST
29256 fi
29257
29258 cfgfile="${ofile}T"
29259 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29260 $RM "$cfgfile"
29261
29262 cat <<_LT_EOF >> "$cfgfile"
29263#! $SHELL
29264
29265# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 29266# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
29267# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29268# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29269#
d58dead8 29270# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 29271# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 29272# Written by Gordon Matzigkeit, 1996
1cf3d07d 29273#
d58dead8 29274# This file is part of GNU Libtool.
1cf3d07d 29275#
d58dead8
PG
29276# GNU Libtool is free software; you can redistribute it and/or
29277# modify it under the terms of the GNU General Public License as
29278# published by the Free Software Foundation; either version 2 of
29279# the License, or (at your option) any later version.
1cf3d07d 29280#
d58dead8
PG
29281# As a special exception to the GNU General Public License,
29282# if you distribute this file as part of a program or library that
29283# is built using GNU Libtool, you may include this file under the
29284# same distribution terms that you use for the rest of that program.
1cf3d07d 29285#
d58dead8
PG
29286# GNU Libtool is distributed in the hope that it will be useful,
29287# but WITHOUT ANY WARRANTY; without even the implied warranty of
29288# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29289# GNU General Public License for more details.
1cf3d07d 29290#
d58dead8
PG
29291# You should have received a copy of the GNU General Public License
29292# along with GNU Libtool; see the file COPYING. If not, a copy
29293# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29294# obtained by writing to the Free Software Foundation, Inc.,
29295# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
29296
29297
29298# The names of the tagged configurations supported by this script.
29299available_tags="FC "
29300
29301# ### BEGIN LIBTOOL CONFIG
29302
66dbcf2d
RO
29303# A sed program that does not truncate output.
29304SED=$lt_SED
29305
29306# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29307Xsed="\$SED -e 1s/^X//"
29308
29309# A grep program that handles long lines.
29310GREP=$lt_GREP
29311
29312# An ERE matcher.
29313EGREP=$lt_EGREP
29314
29315# A literal string matcher.
29316FGREP=$lt_FGREP
29317
29318# Shell to use when invoking shell scripts.
29319SHELL=$lt_SHELL
29320
29321# An echo program that protects backslashes.
29322ECHO=$lt_ECHO
29323
1cf3d07d
SE
29324# Which release of libtool.m4 was used?
29325macro_version=$macro_version
29326macro_revision=$macro_revision
29327
29328# Whether or not to build shared libraries.
29329build_libtool_libs=$enable_shared
29330
29331# Whether or not to build static libraries.
29332build_old_libs=$enable_static
29333
29334# What type of objects to build.
29335pic_mode=$pic_mode
29336
29337# Whether or not to optimize for fast installation.
29338fast_install=$enable_fast_install
29339
29340# The host system.
29341host_alias=$host_alias
29342host=$host
29343host_os=$host_os
29344
29345# The build system.
29346build_alias=$build_alias
29347build=$build
29348build_os=$build_os
29349
1cf3d07d
SE
29350# A BSD- or MS-compatible name lister.
29351NM=$lt_NM
29352
29353# Whether we need soft or hard links.
29354LN_S=$lt_LN_S
29355
29356# What is the maximum length of a command?
29357max_cmd_len=$max_cmd_len
29358
29359# Object file suffix (normally "o").
29360objext=$ac_objext
29361
29362# Executable file suffix (normally "").
29363exeext=$exeext
29364
29365# whether the shell understands "unset".
29366lt_unset=$lt_unset
29367
29368# turn spaces into newlines.
29369SP2NL=$lt_lt_SP2NL
29370
29371# turn newlines into spaces.
29372NL2SP=$lt_lt_NL2SP
29373
d58dead8
PG
29374# An object symbol dumper.
29375OBJDUMP=$lt_OBJDUMP
29376
1cf3d07d
SE
29377# Method to check whether dependent libraries are shared objects.
29378deplibs_check_method=$lt_deplibs_check_method
29379
29380# Command to use when deplibs_check_method == "file_magic".
29381file_magic_cmd=$lt_file_magic_cmd
29382
29383# The archiver.
29384AR=$lt_AR
29385AR_FLAGS=$lt_AR_FLAGS
29386
29387# A symbol stripping program.
29388STRIP=$lt_STRIP
29389
29390# Commands used to install an old-style archive.
29391RANLIB=$lt_RANLIB
29392old_postinstall_cmds=$lt_old_postinstall_cmds
29393old_postuninstall_cmds=$lt_old_postuninstall_cmds
29394
43e02a8a
RW
29395# Whether to use a lock for old archive extraction.
29396lock_old_archive_extraction=$lock_old_archive_extraction
29397
1cf3d07d
SE
29398# A C compiler.
29399LTCC=$lt_CC
29400
29401# LTCC compiler flags.
29402LTCFLAGS=$lt_CFLAGS
29403
29404# Take the output of nm and produce a listing of raw symbols and C names.
29405global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29406
29407# Transform the output of nm in a proper C declaration.
29408global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29409
29410# Transform the output of nm in a C name address pair.
29411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29412
d58dead8
PG
29413# Transform the output of nm in a C name address pair when lib prefix is needed.
29414global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29415
1cf3d07d
SE
29416# The name of the directory that contains temporary libtool files.
29417objdir=$objdir
29418
1cf3d07d
SE
29419# Used to examine libraries when file_magic_cmd begins with "file".
29420MAGIC_CMD=$MAGIC_CMD
29421
29422# Must we lock files when doing compilation?
29423need_locks=$lt_need_locks
29424
d58dead8
PG
29425# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29426DSYMUTIL=$lt_DSYMUTIL
29427
29428# Tool to change global to local symbols on Mac OS X.
29429NMEDIT=$lt_NMEDIT
29430
29431# Tool to manipulate fat objects and archives on Mac OS X.
29432LIPO=$lt_LIPO
29433
29434# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29435OTOOL=$lt_OTOOL
29436
29437# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29438OTOOL64=$lt_OTOOL64
29439
1cf3d07d
SE
29440# Old archive suffix (normally "a").
29441libext=$libext
29442
29443# Shared library suffix (normally ".so").
29444shrext_cmds=$lt_shrext_cmds
29445
29446# The commands to extract the exported symbol list from a shared archive.
29447extract_expsyms_cmds=$lt_extract_expsyms_cmds
29448
29449# Variables whose values should be saved in libtool wrapper scripts and
29450# restored at link time.
29451variables_saved_for_relink=$lt_variables_saved_for_relink
29452
29453# Do we need the "lib" prefix for modules?
29454need_lib_prefix=$need_lib_prefix
29455
29456# Do we need a version for libraries?
29457need_version=$need_version
29458
29459# Library versioning type.
29460version_type=$version_type
29461
29462# Shared library runtime path variable.
29463runpath_var=$runpath_var
29464
29465# Shared library path variable.
29466shlibpath_var=$shlibpath_var
29467
29468# Is shlibpath searched before the hard-coded library search path?
29469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29470
29471# Format of library name prefix.
29472libname_spec=$lt_libname_spec
29473
29474# List of archive names. First name is the real one, the rest are links.
29475# The last name is the one that the linker finds with -lNAME
29476library_names_spec=$lt_library_names_spec
29477
29478# The coded name of the library, if different from the real name.
29479soname_spec=$lt_soname_spec
29480
43e02a8a
RW
29481# Permission mode override for installation of shared libraries.
29482install_override_mode=$lt_install_override_mode
29483
1cf3d07d
SE
29484# Command to use after installation of a shared archive.
29485postinstall_cmds=$lt_postinstall_cmds
29486
29487# Command to use after uninstallation of a shared archive.
29488postuninstall_cmds=$lt_postuninstall_cmds
29489
29490# Commands used to finish a libtool library installation in a directory.
29491finish_cmds=$lt_finish_cmds
29492
29493# As "finish_cmds", except a single script fragment to be evaled but
29494# not shown.
29495finish_eval=$lt_finish_eval
29496
29497# Whether we should hardcode library paths into libraries.
29498hardcode_into_libs=$hardcode_into_libs
29499
29500# Compile-time system search path for libraries.
29501sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29502
29503# Run-time system search path for libraries.
29504sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29505
29506# Whether dlopen is supported.
29507dlopen_support=$enable_dlopen
29508
29509# Whether dlopen of programs is supported.
29510dlopen_self=$enable_dlopen_self
29511
29512# Whether dlopen of statically linked programs is supported.
29513dlopen_self_static=$enable_dlopen_self_static
29514
29515# Commands to strip libraries.
29516old_striplib=$lt_old_striplib
29517striplib=$lt_striplib
29518
29519
29520# The linker used to build libraries.
29521LD=$lt_LD
29522
43e02a8a
RW
29523# How to create reloadable object files.
29524reload_flag=$lt_reload_flag
29525reload_cmds=$lt_reload_cmds
29526
1cf3d07d
SE
29527# Commands used to build an old-style archive.
29528old_archive_cmds=$lt_old_archive_cmds
29529
29530# A language specific compiler.
29531CC=$lt_compiler
29532
29533# Is the compiler the GNU compiler?
29534with_gcc=$GCC
29535
29536# Compiler flag to turn off builtin functions.
29537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29538
29539# How to pass a linker flag through the compiler.
29540wl=$lt_lt_prog_compiler_wl
29541
29542# Additional compiler flags for building library objects.
29543pic_flag=$lt_lt_prog_compiler_pic
29544
29545# Compiler flag to prevent dynamic linking.
29546link_static_flag=$lt_lt_prog_compiler_static
29547
29548# Does compiler simultaneously support -c and -o options?
29549compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29550
29551# Whether or not to add -lc for building shared libraries.
29552build_libtool_need_lc=$archive_cmds_need_lc
29553
29554# Whether or not to disallow shared libs when runtime libs are static.
29555allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29556
29557# Compiler flag to allow reflexive dlopens.
29558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29559
29560# Compiler flag to generate shared objects directly from archives.
29561whole_archive_flag_spec=$lt_whole_archive_flag_spec
29562
29563# Whether the compiler copes with passing no objects directly.
29564compiler_needs_object=$lt_compiler_needs_object
29565
29566# Create an old-style archive from a shared archive.
29567old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29568
29569# Create a temporary old-style archive to link instead of a shared archive.
29570old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29571
29572# Commands used to build a shared archive.
29573archive_cmds=$lt_archive_cmds
29574archive_expsym_cmds=$lt_archive_expsym_cmds
29575
29576# Commands used to build a loadable module if different from building
29577# a shared archive.
29578module_cmds=$lt_module_cmds
29579module_expsym_cmds=$lt_module_expsym_cmds
29580
29581# Whether we are building with GNU ld or not.
29582with_gnu_ld=$lt_with_gnu_ld
29583
29584# Flag that allows shared libraries with undefined symbols to be built.
29585allow_undefined_flag=$lt_allow_undefined_flag
29586
29587# Flag that enforces no undefined symbols.
29588no_undefined_flag=$lt_no_undefined_flag
29589
29590# Flag to hardcode \$libdir into a binary during linking.
29591# This must work even if \$libdir does not exist
29592hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29593
29594# If ld is used when linking, flag to hardcode \$libdir into a binary
29595# during linking. This must work even if \$libdir does not exist.
29596hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29597
29598# Whether we need a single "-rpath" flag with a separated argument.
29599hardcode_libdir_separator=$lt_hardcode_libdir_separator
29600
29601# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29602# DIR into the resulting binary.
29603hardcode_direct=$hardcode_direct
29604
29605# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29606# DIR into the resulting binary and the resulting library dependency is
29607# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29608# library is relocated.
29609hardcode_direct_absolute=$hardcode_direct_absolute
29610
29611# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29612# into the resulting binary.
29613hardcode_minus_L=$hardcode_minus_L
29614
29615# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29616# into the resulting binary.
29617hardcode_shlibpath_var=$hardcode_shlibpath_var
29618
29619# Set to "yes" if building a shared library automatically hardcodes DIR
29620# into the library and all subsequent libraries and executables linked
29621# against it.
29622hardcode_automatic=$hardcode_automatic
29623
29624# Set to yes if linker adds runtime paths of dependent libraries
29625# to runtime path list.
29626inherit_rpath=$inherit_rpath
29627
29628# Whether libtool must link a program against all its dependency libraries.
29629link_all_deplibs=$link_all_deplibs
29630
29631# Fix the shell variable \$srcfile for the compiler.
29632fix_srcfile_path=$lt_fix_srcfile_path
29633
29634# Set to "yes" if exported symbols are required.
29635always_export_symbols=$always_export_symbols
29636
29637# The commands to list exported symbols.
29638export_symbols_cmds=$lt_export_symbols_cmds
29639
29640# Symbols that should not be listed in the preloaded symbols.
29641exclude_expsyms=$lt_exclude_expsyms
29642
29643# Symbols that must always be exported.
29644include_expsyms=$lt_include_expsyms
29645
29646# Commands necessary for linking programs (against libraries) with templates.
29647prelink_cmds=$lt_prelink_cmds
29648
29649# Specify filename containing input files.
29650file_list_spec=$lt_file_list_spec
29651
29652# How to hardcode a shared library path into an executable.
29653hardcode_action=$hardcode_action
29654
d58dead8
PG
29655# The directories searched by this compiler when creating a shared library.
29656compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29657
1cf3d07d
SE
29658# Dependencies to place before and after the objects being linked to
29659# create a shared library.
29660predep_objects=$lt_predep_objects
29661postdep_objects=$lt_postdep_objects
29662predeps=$lt_predeps
29663postdeps=$lt_postdeps
29664
29665# The library search path used internally by the compiler when linking
29666# a shared library.
29667compiler_lib_search_path=$lt_compiler_lib_search_path
29668
29669# ### END LIBTOOL CONFIG
29670
29671_LT_EOF
29672
29673 case $host_os in
29674 aix3*)
29675 cat <<\_LT_EOF >> "$cfgfile"
29676# AIX sometimes has problems with the GCC collect2 program. For some
29677# reason, if we set the COLLECT_NAMES environment variable, the problems
29678# vanish in a puff of smoke.
29679if test "X${COLLECT_NAMES+set}" != Xset; then
29680 COLLECT_NAMES=
29681 export COLLECT_NAMES
29682fi
29683_LT_EOF
29684 ;;
29685 esac
29686
29687
29688ltmain="$ac_aux_dir/ltmain.sh"
29689
29690
29691 # We use sed instead of cat because bash on DJGPP gets confused if
29692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29693 # text mode, it properly converts lines to CR/LF. This bash problem
29694 # is reportedly fixed, but why not run on old versions too?
29695 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29696 || (rm -f "$cfgfile"; exit 1)
29697
29698 case $xsi_shell in
29699 yes)
29700 cat << \_LT_EOF >> "$cfgfile"
d58dead8 29701
1cf3d07d
SE
29702# func_dirname file append nondir_replacement
29703# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29704# otherwise set result to NONDIR_REPLACEMENT.
29705func_dirname ()
29706{
29707 case ${1} in
29708 */*) func_dirname_result="${1%/*}${2}" ;;
29709 * ) func_dirname_result="${3}" ;;
29710 esac
29711}
29712
29713# func_basename file
29714func_basename ()
29715{
29716 func_basename_result="${1##*/}"
29717}
29718
d58dead8
PG
29719# func_dirname_and_basename file append nondir_replacement
29720# perform func_basename and func_dirname in a single function
29721# call:
29722# dirname: Compute the dirname of FILE. If nonempty,
29723# add APPEND to the result, otherwise set result
29724# to NONDIR_REPLACEMENT.
29725# value returned in "$func_dirname_result"
29726# basename: Compute filename of FILE.
29727# value retuned in "$func_basename_result"
29728# Implementation must be kept synchronized with func_dirname
29729# and func_basename. For efficiency, we do not delegate to
29730# those functions but instead duplicate the functionality here.
29731func_dirname_and_basename ()
29732{
29733 case ${1} in
29734 */*) func_dirname_result="${1%/*}${2}" ;;
29735 * ) func_dirname_result="${3}" ;;
29736 esac
29737 func_basename_result="${1##*/}"
29738}
29739
1cf3d07d
SE
29740# func_stripname prefix suffix name
29741# strip PREFIX and SUFFIX off of NAME.
29742# PREFIX and SUFFIX must not contain globbing or regex special
29743# characters, hashes, percent signs, but SUFFIX may contain a leading
29744# dot (in which case that matches only a dot).
29745func_stripname ()
29746{
29747 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29748 # positional parameters, so assign one to ordinary parameter first.
29749 func_stripname_result=${3}
29750 func_stripname_result=${func_stripname_result#"${1}"}
29751 func_stripname_result=${func_stripname_result%"${2}"}
29752}
29753
29754# func_opt_split
29755func_opt_split ()
29756{
29757 func_opt_split_opt=${1%%=*}
29758 func_opt_split_arg=${1#*=}
29759}
29760
29761# func_lo2o object
29762func_lo2o ()
29763{
29764 case ${1} in
29765 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29766 *) func_lo2o_result=${1} ;;
29767 esac
29768}
d58dead8
PG
29769
29770# func_xform libobj-or-source
29771func_xform ()
29772{
29773 func_xform_result=${1%.*}.lo
29774}
29775
29776# func_arith arithmetic-term...
29777func_arith ()
29778{
29779 func_arith_result=$(( $* ))
29780}
29781
29782# func_len string
29783# STRING may not start with a hyphen.
29784func_len ()
29785{
29786 func_len_result=${#1}
29787}
29788
1cf3d07d
SE
29789_LT_EOF
29790 ;;
29791 *) # Bourne compatible functions.
29792 cat << \_LT_EOF >> "$cfgfile"
d58dead8 29793
1cf3d07d
SE
29794# func_dirname file append nondir_replacement
29795# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29796# otherwise set result to NONDIR_REPLACEMENT.
29797func_dirname ()
29798{
29799 # Extract subdirectory from the argument.
43e02a8a 29800 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
29801 if test "X$func_dirname_result" = "X${1}"; then
29802 func_dirname_result="${3}"
29803 else
29804 func_dirname_result="$func_dirname_result${2}"
29805 fi
29806}
29807
29808# func_basename file
29809func_basename ()
29810{
43e02a8a 29811 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
29812}
29813
d58dead8 29814
1cf3d07d
SE
29815# func_stripname prefix suffix name
29816# strip PREFIX and SUFFIX off of NAME.
29817# PREFIX and SUFFIX must not contain globbing or regex special
29818# characters, hashes, percent signs, but SUFFIX may contain a leading
29819# dot (in which case that matches only a dot).
29820# func_strip_suffix prefix name
29821func_stripname ()
29822{
29823 case ${2} in
43e02a8a
RW
29824 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29825 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
29826 esac
29827}
29828
29829# sed scripts:
29830my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29831my_sed_long_arg='1s/^-[^=]*=//'
29832
29833# func_opt_split
29834func_opt_split ()
29835{
43e02a8a
RW
29836 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29837 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
29838}
29839
29840# func_lo2o object
29841func_lo2o ()
29842{
43e02a8a 29843 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 29844}
d58dead8
PG
29845
29846# func_xform libobj-or-source
29847func_xform ()
29848{
43e02a8a 29849 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
29850}
29851
29852# func_arith arithmetic-term...
29853func_arith ()
29854{
29855 func_arith_result=`expr "$@"`
29856}
29857
29858# func_len string
29859# STRING may not start with a hyphen.
29860func_len ()
29861{
29862 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29863}
29864
1cf3d07d
SE
29865_LT_EOF
29866esac
29867
29868case $lt_shell_append in
29869 yes)
29870 cat << \_LT_EOF >> "$cfgfile"
29871
29872# func_append var value
29873# Append VALUE to the end of shell variable VAR.
29874func_append ()
29875{
29876 eval "$1+=\$2"
29877}
29878_LT_EOF
29879 ;;
29880 *)
29881 cat << \_LT_EOF >> "$cfgfile"
29882
29883# func_append var value
29884# Append VALUE to the end of shell variable VAR.
29885func_append ()
29886{
29887 eval "$1=\$$1\$2"
29888}
d58dead8 29889
1cf3d07d
SE
29890_LT_EOF
29891 ;;
29892 esac
29893
29894
29895 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29896 || (rm -f "$cfgfile"; exit 1)
29897
29898 mv -f "$cfgfile" "$ofile" ||
29899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29900 chmod +x "$ofile"
29901
29902
29903 cat <<_LT_EOF >> "$ofile"
29904
29905# ### BEGIN LIBTOOL TAG CONFIG: FC
29906
29907# The linker used to build libraries.
29908LD=$lt_LD_FC
29909
43e02a8a
RW
29910# How to create reloadable object files.
29911reload_flag=$lt_reload_flag_FC
29912reload_cmds=$lt_reload_cmds_FC
29913
1cf3d07d
SE
29914# Commands used to build an old-style archive.
29915old_archive_cmds=$lt_old_archive_cmds_FC
29916
29917# A language specific compiler.
29918CC=$lt_compiler_FC
29919
29920# Is the compiler the GNU compiler?
29921with_gcc=$GCC_FC
29922
29923# Compiler flag to turn off builtin functions.
29924no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29925
29926# How to pass a linker flag through the compiler.
29927wl=$lt_lt_prog_compiler_wl_FC
29928
29929# Additional compiler flags for building library objects.
29930pic_flag=$lt_lt_prog_compiler_pic_FC
29931
29932# Compiler flag to prevent dynamic linking.
29933link_static_flag=$lt_lt_prog_compiler_static_FC
29934
29935# Does compiler simultaneously support -c and -o options?
29936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29937
29938# Whether or not to add -lc for building shared libraries.
29939build_libtool_need_lc=$archive_cmds_need_lc_FC
29940
29941# Whether or not to disallow shared libs when runtime libs are static.
29942allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29943
29944# Compiler flag to allow reflexive dlopens.
29945export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29946
29947# Compiler flag to generate shared objects directly from archives.
29948whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29949
29950# Whether the compiler copes with passing no objects directly.
29951compiler_needs_object=$lt_compiler_needs_object_FC
29952
29953# Create an old-style archive from a shared archive.
29954old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29955
29956# Create a temporary old-style archive to link instead of a shared archive.
29957old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29958
29959# Commands used to build a shared archive.
29960archive_cmds=$lt_archive_cmds_FC
29961archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29962
29963# Commands used to build a loadable module if different from building
29964# a shared archive.
29965module_cmds=$lt_module_cmds_FC
29966module_expsym_cmds=$lt_module_expsym_cmds_FC
29967
29968# Whether we are building with GNU ld or not.
29969with_gnu_ld=$lt_with_gnu_ld_FC
29970
29971# Flag that allows shared libraries with undefined symbols to be built.
29972allow_undefined_flag=$lt_allow_undefined_flag_FC
29973
29974# Flag that enforces no undefined symbols.
29975no_undefined_flag=$lt_no_undefined_flag_FC
29976
29977# Flag to hardcode \$libdir into a binary during linking.
29978# This must work even if \$libdir does not exist
29979hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29980
29981# If ld is used when linking, flag to hardcode \$libdir into a binary
29982# during linking. This must work even if \$libdir does not exist.
29983hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29984
29985# Whether we need a single "-rpath" flag with a separated argument.
29986hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29987
29988# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29989# DIR into the resulting binary.
29990hardcode_direct=$hardcode_direct_FC
29991
29992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29993# DIR into the resulting binary and the resulting library dependency is
29994# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29995# library is relocated.
29996hardcode_direct_absolute=$hardcode_direct_absolute_FC
29997
29998# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29999# into the resulting binary.
30000hardcode_minus_L=$hardcode_minus_L_FC
30001
30002# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30003# into the resulting binary.
30004hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
30005
30006# Set to "yes" if building a shared library automatically hardcodes DIR
30007# into the library and all subsequent libraries and executables linked
30008# against it.
30009hardcode_automatic=$hardcode_automatic_FC
30010
30011# Set to yes if linker adds runtime paths of dependent libraries
30012# to runtime path list.
30013inherit_rpath=$inherit_rpath_FC
30014
30015# Whether libtool must link a program against all its dependency libraries.
30016link_all_deplibs=$link_all_deplibs_FC
30017
30018# Fix the shell variable \$srcfile for the compiler.
30019fix_srcfile_path=$lt_fix_srcfile_path_FC
30020
30021# Set to "yes" if exported symbols are required.
30022always_export_symbols=$always_export_symbols_FC
30023
30024# The commands to list exported symbols.
30025export_symbols_cmds=$lt_export_symbols_cmds_FC
30026
30027# Symbols that should not be listed in the preloaded symbols.
30028exclude_expsyms=$lt_exclude_expsyms_FC
30029
30030# Symbols that must always be exported.
30031include_expsyms=$lt_include_expsyms_FC
30032
30033# Commands necessary for linking programs (against libraries) with templates.
30034prelink_cmds=$lt_prelink_cmds_FC
30035
30036# Specify filename containing input files.
30037file_list_spec=$lt_file_list_spec_FC
30038
30039# How to hardcode a shared library path into an executable.
30040hardcode_action=$hardcode_action_FC
30041
d58dead8
PG
30042# The directories searched by this compiler when creating a shared library.
30043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
30044
1cf3d07d
SE
30045# Dependencies to place before and after the objects being linked to
30046# create a shared library.
30047predep_objects=$lt_predep_objects_FC
30048postdep_objects=$lt_postdep_objects_FC
30049predeps=$lt_predeps_FC
30050postdeps=$lt_postdeps_FC
30051
30052# The library search path used internally by the compiler when linking
30053# a shared library.
30054compiler_lib_search_path=$lt_compiler_lib_search_path_FC
30055
30056# ### END LIBTOOL TAG CONFIG: FC
30057_LT_EOF
30058
679c0f9a 30059 ;;
5213506e 30060 "gstdint.h":C)
c13e029b
PB
30061if test "$GCC" = yes; then
30062 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30063else
30064 echo "/* generated for $CC */" > tmp-stdint.h
30065fi
4c4b3eb0 30066
c13e029b
PB
30067sed 's/^ *//' >> tmp-stdint.h <<EOF
30068
30069 #ifndef GCC_GENERATED_STDINT_H
30070 #define GCC_GENERATED_STDINT_H 1
30071
30072 #include <sys/types.h>
4c4b3eb0 30073EOF
4c4b3eb0 30074
c13e029b
PB
30075if test "$acx_cv_header_stdint" != stdint.h; then
30076 echo "#include <stddef.h>" >> tmp-stdint.h
30077fi
30078if test "$acx_cv_header_stdint" != stddef.h; then
30079 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30080fi
30081
30082sed 's/^ *//' >> tmp-stdint.h <<EOF
30083 /* glibc uses these symbols as guards to prevent redefinitions. */
30084 #ifdef __int8_t_defined
30085 #define _INT8_T
30086 #define _INT16_T
30087 #define _INT32_T
30088 #endif
30089 #ifdef __uint32_t_defined
30090 #define _UINT32_T
30091 #endif
30092
30093EOF
30094
30095# ----------------- done header, emit basic int types -------------
30096if test "$acx_cv_header_stdint" = stddef.h; then
30097 sed 's/^ *//' >> tmp-stdint.h <<EOF
30098
30099 #ifndef _UINT8_T
30100 #define _UINT8_T
30101 #ifndef __uint8_t_defined
30102 #define __uint8_t_defined
b9497ab5 30103 #ifndef uint8_t
c13e029b
PB
30104 typedef unsigned $acx_cv_type_int8_t uint8_t;
30105 #endif
30106 #endif
b9497ab5 30107 #endif
c13e029b
PB
30108
30109 #ifndef _UINT16_T
30110 #define _UINT16_T
30111 #ifndef __uint16_t_defined
30112 #define __uint16_t_defined
b9497ab5 30113 #ifndef uint16_t
c13e029b
PB
30114 typedef unsigned $acx_cv_type_int16_t uint16_t;
30115 #endif
30116 #endif
b9497ab5 30117 #endif
c13e029b
PB
30118
30119 #ifndef _UINT32_T
30120 #define _UINT32_T
30121 #ifndef __uint32_t_defined
30122 #define __uint32_t_defined
b9497ab5 30123 #ifndef uint32_t
c13e029b
PB
30124 typedef unsigned $acx_cv_type_int32_t uint32_t;
30125 #endif
30126 #endif
b9497ab5 30127 #endif
c13e029b
PB
30128
30129 #ifndef _INT8_T
30130 #define _INT8_T
30131 #ifndef __int8_t_defined
30132 #define __int8_t_defined
b9497ab5 30133 #ifndef int8_t
c13e029b
PB
30134 typedef $acx_cv_type_int8_t int8_t;
30135 #endif
30136 #endif
b9497ab5 30137 #endif
c13e029b
PB
30138
30139 #ifndef _INT16_T
30140 #define _INT16_T
30141 #ifndef __int16_t_defined
30142 #define __int16_t_defined
b9497ab5 30143 #ifndef int16_t
c13e029b
PB
30144 typedef $acx_cv_type_int16_t int16_t;
30145 #endif
30146 #endif
b9497ab5 30147 #endif
c13e029b
PB
30148
30149 #ifndef _INT32_T
30150 #define _INT32_T
30151 #ifndef __int32_t_defined
30152 #define __int32_t_defined
b9497ab5 30153 #ifndef int32_t
c13e029b
PB
30154 typedef $acx_cv_type_int32_t int32_t;
30155 #endif
30156 #endif
b9497ab5 30157 #endif
c13e029b
PB
30158EOF
30159elif test "$ac_cv_type_u_int32_t" = yes; then
30160 sed 's/^ *//' >> tmp-stdint.h <<EOF
30161
30162 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30163 #ifndef _INT8_T
30164 #define _INT8_T
30165 #endif
30166 #ifndef _INT16_T
30167 #define _INT16_T
30168 #endif
30169 #ifndef _INT32_T
30170 #define _INT32_T
30171 #endif
30172
30173 #ifndef _UINT8_T
30174 #define _UINT8_T
30175 #ifndef __uint8_t_defined
30176 #define __uint8_t_defined
b9497ab5 30177 #ifndef uint8_t
c13e029b
PB
30178 typedef u_int8_t uint8_t;
30179 #endif
30180 #endif
b9497ab5 30181 #endif
c13e029b
PB
30182
30183 #ifndef _UINT16_T
30184 #define _UINT16_T
30185 #ifndef __uint16_t_defined
30186 #define __uint16_t_defined
b9497ab5 30187 #ifndef uint16_t
c13e029b
PB
30188 typedef u_int16_t uint16_t;
30189 #endif
30190 #endif
b9497ab5 30191 #endif
c13e029b
PB
30192
30193 #ifndef _UINT32_T
30194 #define _UINT32_T
30195 #ifndef __uint32_t_defined
30196 #define __uint32_t_defined
b9497ab5 30197 #ifndef uint32_t
c13e029b
PB
30198 typedef u_int32_t uint32_t;
30199 #endif
30200 #endif
b9497ab5 30201 #endif
c13e029b
PB
30202EOF
30203else
30204 sed 's/^ *//' >> tmp-stdint.h <<EOF
30205
30206 /* Some systems have guard macros to prevent redefinitions, define them. */
30207 #ifndef _INT8_T
30208 #define _INT8_T
30209 #endif
30210 #ifndef _INT16_T
30211 #define _INT16_T
30212 #endif
30213 #ifndef _INT32_T
30214 #define _INT32_T
30215 #endif
30216 #ifndef _UINT8_T
30217 #define _UINT8_T
30218 #endif
30219 #ifndef _UINT16_T
30220 #define _UINT16_T
30221 #endif
30222 #ifndef _UINT32_T
30223 #define _UINT32_T
30224 #endif
30225EOF
30226fi
30227
30228# ------------- done basic int types, emit int64_t types ------------
30229if test "$ac_cv_type_uint64_t" = yes; then
30230 sed 's/^ *//' >> tmp-stdint.h <<EOF
30231
30232 /* system headers have good uint64_t and int64_t */
30233 #ifndef _INT64_T
30234 #define _INT64_T
30235 #endif
30236 #ifndef _UINT64_T
30237 #define _UINT64_T
30238 #endif
30239EOF
30240elif test "$ac_cv_type_u_int64_t" = yes; then
30241 sed 's/^ *//' >> tmp-stdint.h <<EOF
30242
30243 /* system headers have an u_int64_t (and int64_t) */
30244 #ifndef _INT64_T
30245 #define _INT64_T
30246 #endif
30247 #ifndef _UINT64_T
30248 #define _UINT64_T
30249 #ifndef __uint64_t_defined
30250 #define __uint64_t_defined
b9497ab5 30251 #ifndef uint64_t
c13e029b
PB
30252 typedef u_int64_t uint64_t;
30253 #endif
30254 #endif
b9497ab5 30255 #endif
c13e029b
PB
30256EOF
30257elif test -n "$acx_cv_type_int64_t"; then
30258 sed 's/^ *//' >> tmp-stdint.h <<EOF
30259
30260 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30261 #ifndef _INT64_T
30262 #define _INT64_T
b9497ab5 30263 #ifndef int64_t
c13e029b
PB
30264 typedef $acx_cv_type_int64_t int64_t;
30265 #endif
b9497ab5 30266 #endif
c13e029b
PB
30267 #ifndef _UINT64_T
30268 #define _UINT64_T
30269 #ifndef __uint64_t_defined
30270 #define __uint64_t_defined
b9497ab5 30271 #ifndef uint64_t
c13e029b
PB
30272 typedef unsigned $acx_cv_type_int64_t uint64_t;
30273 #endif
30274 #endif
b9497ab5 30275 #endif
c13e029b
PB
30276EOF
30277else
30278 sed 's/^ *//' >> tmp-stdint.h <<EOF
30279
30280 /* some common heuristics for int64_t, using compiler-specific tests */
30281 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30282 #ifndef _INT64_T
30283 #define _INT64_T
30284 #ifndef __int64_t_defined
b9497ab5 30285 #ifndef int64_t
c13e029b
PB
30286 typedef long long int64_t;
30287 #endif
30288 #endif
b9497ab5 30289 #endif
c13e029b
PB
30290 #ifndef _UINT64_T
30291 #define _UINT64_T
b9497ab5 30292 #ifndef uint64_t
c13e029b
PB
30293 typedef unsigned long long uint64_t;
30294 #endif
b9497ab5 30295 #endif
c13e029b
PB
30296
30297 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30298 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30299 does not implement __extension__. But that compiler doesn't define
30300 __GNUC_MINOR__. */
30301 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30302 # define __extension__
30303 # endif
30304
30305 # ifndef _INT64_T
30306 # define _INT64_T
b9497ab5 30307 # ifndef int64_t
c13e029b
PB
30308 __extension__ typedef long long int64_t;
30309 # endif
b9497ab5 30310 # endif
c13e029b
PB
30311 # ifndef _UINT64_T
30312 # define _UINT64_T
b9497ab5 30313 # ifndef uint64_t
c13e029b
PB
30314 __extension__ typedef unsigned long long uint64_t;
30315 # endif
b9497ab5 30316 # endif
c13e029b
PB
30317
30318 #elif !defined __STRICT_ANSI__
30319 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30320
30321 # ifndef _INT64_T
30322 # define _INT64_T
b9497ab5 30323 # ifndef int64_t
c13e029b
PB
30324 typedef __int64 int64_t;
30325 # endif
b9497ab5 30326 # endif
c13e029b
PB
30327 # ifndef _UINT64_T
30328 # define _UINT64_T
b9497ab5 30329 # ifndef uint64_t
c13e029b
PB
30330 typedef unsigned __int64 uint64_t;
30331 # endif
b9497ab5 30332 # endif
c13e029b
PB
30333 # endif /* compiler */
30334
30335 #endif /* ANSI version */
30336EOF
30337fi
30338
30339# ------------- done int64_t types, emit intptr types ------------
30340if test "$ac_cv_type_uintptr_t" != yes; then
30341 sed 's/^ *//' >> tmp-stdint.h <<EOF
30342
30343 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30344 #ifndef __uintptr_t_defined
b9497ab5 30345 #ifndef uintptr_t
c13e029b
PB
30346 typedef u$acx_cv_type_intptr_t uintptr_t;
30347 #endif
b9497ab5 30348 #endif
c13e029b 30349 #ifndef __intptr_t_defined
b9497ab5 30350 #ifndef intptr_t
c13e029b
PB
30351 typedef $acx_cv_type_intptr_t intptr_t;
30352 #endif
b9497ab5 30353 #endif
c13e029b
PB
30354EOF
30355fi
30356
30357# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 30358if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 30359 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
30360
30361 /* Define int_least types */
30362 typedef int8_t int_least8_t;
30363 typedef int16_t int_least16_t;
30364 typedef int32_t int_least32_t;
c13e029b 30365 #ifdef _INT64_T
4c4b3eb0 30366 typedef int64_t int_least64_t;
c13e029b 30367 #endif
4c4b3eb0
PB
30368
30369 typedef uint8_t uint_least8_t;
30370 typedef uint16_t uint_least16_t;
30371 typedef uint32_t uint_least32_t;
c13e029b 30372 #ifdef _UINT64_T
4c4b3eb0 30373 typedef uint64_t uint_least64_t;
c13e029b 30374 #endif
4c4b3eb0
PB
30375EOF
30376fi
30377
c13e029b 30378# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 30379if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 30380 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
30381
30382 /* Define int_fast types. short is often slow */
30383 typedef int8_t int_fast8_t;
30384 typedef int int_fast16_t;
30385 typedef int32_t int_fast32_t;
c13e029b 30386 #ifdef _INT64_T
4c4b3eb0 30387 typedef int64_t int_fast64_t;
c13e029b 30388 #endif
4c4b3eb0
PB
30389
30390 typedef uint8_t uint_fast8_t;
30391 typedef unsigned int uint_fast16_t;
30392 typedef uint32_t uint_fast32_t;
c13e029b 30393 #ifdef _UINT64_T
4c4b3eb0 30394 typedef uint64_t uint_fast64_t;
c13e029b
PB
30395 #endif
30396EOF
30397fi
30398
30399if test "$ac_cv_type_uintmax_t" != yes; then
30400 sed 's/^ *//' >> tmp-stdint.h <<EOF
30401
30402 /* Define intmax based on what we found */
b9497ab5 30403 #ifndef intmax_t
c13e029b
PB
30404 #ifdef _INT64_T
30405 typedef int64_t intmax_t;
30406 #else
30407 typedef long intmax_t;
30408 #endif
b9497ab5
RO
30409 #endif
30410 #ifndef uintmax_t
c13e029b
PB
30411 #ifdef _UINT64_T
30412 typedef uint64_t uintmax_t;
30413 #else
30414 typedef unsigned long uintmax_t;
30415 #endif
b9497ab5 30416 #endif
4c4b3eb0
PB
30417EOF
30418fi
30419
c13e029b
PB
30420sed 's/^ *//' >> tmp-stdint.h <<EOF
30421
30422 #endif /* GCC_GENERATED_STDINT_H */
30423EOF
4c4b3eb0 30424
c13e029b
PB
30425if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30426 rm -f tmp-stdint.h
4c4b3eb0 30427else
c13e029b 30428 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
30429fi
30430
30431 ;;
5213506e 30432
6de9cd9a 30433 esac
5213506e 30434done # for ac_tag
6de9cd9a 30435
6de9cd9a 30436
5213506e 30437as_fn_exit 0
6de9cd9a 30438_ACEOF
6de9cd9a
DN
30439ac_clean_files=$ac_clean_files_save
30440
5213506e 30441test $ac_write_fail = 0 ||
22e05272 30442 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 30443
6de9cd9a
DN
30444
30445# configure is writing to config.log, and then calls config.status.
30446# config.status does its own redirection, appending to config.log.
30447# Unfortunately, on DOS this fails, as config.log is still kept open
30448# by configure, so config.status won't be able to write to it; its
30449# output is simply discarded. So we exec the FD to /dev/null,
30450# effectively closing config.log, so it can be properly (re)opened and
30451# appended to by config.status. When coming back to configure, we
30452# need to make the FD available again.
30453if test "$no_create" != yes; then
30454 ac_cs_success=:
30455 ac_config_status_args=
30456 test "$silent" = yes &&
30457 ac_config_status_args="$ac_config_status_args --quiet"
30458 exec 5>/dev/null
30459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30460 exec 5>>config.log
30461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30462 # would make configure fail if this is the last instruction.
22e05272 30463 $ac_cs_success || as_fn_exit 1
5213506e
RW
30464fi
30465if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30467$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
30468fi
30469
This page took 8.112285 seconds and 5 git commands to generate.