]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match.
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
6de9cd9a
DN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
21be0a5a 172test \$(( 1 + 1 )) = 2 || exit 1
43e02a8a
RW
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
21be0a5a 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
5213506e
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6de9cd9a 192do
5213506e
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6de9cd9a 236 else
5213506e
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
6de9cd9a 241 fi
5213506e
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
6de9cd9a 380
5213506e
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
5213506e 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
5213506e
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
6de9cd9a 399
5213506e 400as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
5213506e
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
c0e7e2bf 418
38d24731
RW
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
f489fba1 425
6de9cd9a 426
5213506e
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
6de9cd9a 436 sed '
5213506e
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
6de9cd9a 441 N
5213506e
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6de9cd9a 444 t loop
5213506e 445 s/-\n.*//
6de9cd9a 446 ' >$as_me.lineno &&
5213506e
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6de9cd9a
DN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
6de9cd9a
DN
454 # Exit status is that of the last command.
455 exit
456}
457
5213506e
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
6de9cd9a
DN
469esac
470
5213506e
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
6de9cd9a 474else
5213506e
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
6de9cd9a 477fi
5213506e
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 480 as_ln_s='ln -s'
5213506e
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
38d24731 491 fi
6de9cd9a
DN
492else
493 as_ln_s='cp -p'
494fi
5213506e
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
6de9cd9a
DN
497
498if mkdir -p . 2>/dev/null; then
5213506e 499 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
5213506e
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
6de9cd9a
DN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
1cf3d07d
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
1cf3d07d 536
5213506e
RW
537exec 7<&0 </dev/null 6>&1
538
6de9cd9a
DN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
6de9cd9a
DN
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
5213506e 548ac_clean_files=
6de9cd9a 549ac_config_libobj_dir=.
5213506e 550LIBOBJS=
6de9cd9a
DN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
38d24731 555
6de9cd9a
DN
556# Identity of this package.
557PACKAGE_NAME='GNU Fortran Runtime Library'
558PACKAGE_TARNAME='libgfortran'
0dce3ca1
FXC
559PACKAGE_VERSION='0.3'
560PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
6de9cd9a 561PACKAGE_BUGREPORT=''
5213506e 562PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
6de9cd9a
DN
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
5213506e 567#ifdef HAVE_SYS_TYPES_H
6de9cd9a
DN
568# include <sys/types.h>
569#endif
5213506e 570#ifdef HAVE_SYS_STAT_H
6de9cd9a
DN
571# include <sys/stat.h>
572#endif
5213506e 573#ifdef STDC_HEADERS
6de9cd9a
DN
574# include <stdlib.h>
575# include <stddef.h>
576#else
5213506e 577# ifdef HAVE_STDLIB_H
6de9cd9a
DN
578# include <stdlib.h>
579# endif
580#endif
5213506e
RW
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6de9cd9a
DN
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
5213506e 587#ifdef HAVE_STRINGS_H
6de9cd9a
DN
588# include <strings.h>
589#endif
5213506e 590#ifdef HAVE_INTTYPES_H
6de9cd9a 591# include <inttypes.h>
6de9cd9a 592#endif
5213506e
RW
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
6de9cd9a
DN
597# include <unistd.h>
598#endif"
599
74544378
JB
600ac_header_list=
601ac_func_list=
1ec601bf 602ac_c_werror_flag=
828012a5 603ac_c_werror_flag=
5213506e
RW
604ac_subst_vars='am__EXEEXT_FALSE
605am__EXEEXT_TRUE
606LTLIBOBJS
607LIBOBJS
608IEEE_FLAGS
609FPU_HOST_HEADER
1ec601bf
FXC
610LIBGFOR_BUILD_QUAD_FALSE
611LIBGFOR_BUILD_QUAD_TRUE
612LIBQUADINCLUDE
613LIBQUADLIB_DEP
614LIBQUADLIB
615LIBQUADSPEC
5213506e
RW
616extra_ldflags_libgfortran
617ac_ct_FC
618FCFLAGS
619FC
620enable_static
621enable_shared
7de6ba7a 622lt_host_flags
5213506e
RW
623OTOOL64
624OTOOL
625LIPO
626NMEDIT
627DSYMUTIL
5213506e
RW
628OBJDUMP
629LN_S
630NM
631ac_ct_DUMPBIN
632DUMPBIN
633LD
634FGREP
5213506e
RW
635SED
636LIBTOOL
637RANLIB
638AR
639AS
640SECTION_FLAGS
49ea7a0e
RO
641LIBGFOR_USE_SYMVER_SUN_FALSE
642LIBGFOR_USE_SYMVER_SUN_TRUE
643LIBGFOR_USE_SYMVER_GNU_FALSE
644LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
645LIBGFOR_USE_SYMVER_FALSE
646LIBGFOR_USE_SYMVER_TRUE
647AM_CFLAGS
648AM_FCFLAGS
21be0a5a
JB
649toolexeclibdir
650toolexecdir
651EGREP
652GREP
653CPP
5213506e
RW
654am__fastdepCC_FALSE
655am__fastdepCC_TRUE
656CCDEPMODE
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
5213506e
RW
670multi_basedir
671MAINT
672MAINTAINER_MODE_FALSE
673MAINTAINER_MODE_TRUE
674am__untar
675am__tar
676AMTAR
677am__leading_dot
678SET_MAKE
679AWK
680mkdir_p
681MKDIR_P
682INSTALL_STRIP_PROGRAM
683STRIP
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
60858d8a 697target_noncanonical
5213506e
RW
698target_os
699target_vendor
700target_cpu
701target
702host_os
703host_vendor
704host_cpu
705host
706onestep
707onestep_FALSE
708onestep_TRUE
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
713build_os
714build_vendor
715build_cpu
716build
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
6de9cd9a 755ac_subst_files=''
5213506e
RW
756ac_user_opts='
757enable_option_checking
758with_build_libsubdir
759enable_version_specific_runtime_libs
760enable_intermodule
761enable_maintainer_mode
762enable_multilib
763enable_dependency_tracking
bf382f5f 764enable_symvers
5213506e
RW
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_gnu_ld
770enable_libtool_lock
771enable_largefile
87e6d9dc 772enable_libquadmath_support
1ff101ff 773with_system_libunwind
5213506e
RW
774'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
21be0a5a
JB
778CC
779CFLAGS
780LDFLAGS
781LIBS
5213506e 782CPPFLAGS
21be0a5a 783CPP
5213506e 784FC
21be0a5a 785FCFLAGS'
5213506e 786
6de9cd9a
DN
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
5213506e
RW
791ac_unrecognized_opts=
792ac_unrecognized_sep=
6de9cd9a
DN
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 815# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
5213506e
RW
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
6de9cd9a
DN
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
6de9cd9a
DN
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
5213506e
RW
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
6de9cd9a
DN
835
836ac_prev=
5213506e 837ac_dashdash=
6de9cd9a
DN
838for ac_option
839do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
5213506e 842 eval $ac_prev=\$ac_option
6de9cd9a
DN
843 ac_prev=
844 continue
845 fi
846
5213506e
RW
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
6de9cd9a
DN
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
5213506e
RW
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
6de9cd9a
DN
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
5213506e 878 -datadir | --datadir | --datadi | --datad)
6de9cd9a 879 ac_prev=datadir ;;
5213506e 880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
881 datadir=$ac_optarg ;;
882
5213506e
RW
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
6de9cd9a 890 -disable-* | --disable-*)
5213506e 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 892 # Reject names that are not valid shell variable names.
5213506e
RW
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899"enable_$ac_useropt"
900"*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
6de9cd9a
DN
915
916 -enable-* | --enable-*)
5213506e 917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 918 # Reject names that are not valid shell variable names.
5213506e
RW
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
38d24731 929 esac
5213506e 930 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
5213506e
RW
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
6de9cd9a
DN
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
5213506e
RW
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
6de9cd9a 992 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 993 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
5213506e
RW
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
6de9cd9a
DN
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
5213506e 1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1122 # Reject names that are not valid shell variable names.
5213506e
RW
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129"with_$ac_useropt"
1130"*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
38d24731 1133 esac
5213506e 1134 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1135
1136 -without-* | --without-*)
5213506e 1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1138 # Reject names that are not valid shell variable names.
5213506e
RW
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
5213506e
RW
1170 -*) as_fn_error "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information."
6de9cd9a
DN
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
5213506e
RW
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
5213506e 1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1197 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1198fi
1199
5213506e
RW
1200if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1205 esac
5213506e 1206fi
38d24731 1207
5213506e
RW
1208# Check all directory arguments for consistency.
1209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
38d24731 1213do
5213506e
RW
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
38d24731 1222 case $ac_val in
5213506e
RW
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1225 esac
5213506e 1226 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
5213506e 1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
5213506e
RW
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error "pwd does not report name of working directory"
1259
1260
6de9cd9a
DN
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
5213506e
RW
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
6de9cd9a 1288 srcdir=$ac_confdir
5213506e 1289 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
5213506e
RW
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
6de9cd9a
DN
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
0dce3ca1 1327\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
6de9cd9a
DN
1347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1349 [$ac_default_prefix]
6de9cd9a 1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1351 [PREFIX]
6de9cd9a
DN
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
5213506e
RW
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1392 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
0dce3ca1 1398 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
5213506e 1403 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1406 --enable-version-specific-runtime-libs
1407 specify that runtime libraries should be installed
1408 in a compiler-specific directory
b808ac33 1409 --enable-intermodule build the library in one step
6de9cd9a
DN
1410 --enable-maintainer-mode enable make rules and dependencies not useful
1411 (and sometimes confusing) to the casual installer
96b8a615 1412 --enable-multilib build many library versions (default)
679c0f9a
TT
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
bf382f5f 1415 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
6de9cd9a 1420 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1421 --disable-largefile omit support for large files
87e6d9dc
TB
1422 --disable-libquadmath-support
1423 disable libquadmath support for Fortran
6de9cd9a
DN
1424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1428 --with-build-libsubdir=DIR Directory where to find libraries for build system
1cf3d07d
SE
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1ff101ff 1432 --with-system-libunwind use installed libunwind
6de9cd9a
DN
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
5213506e
RW
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1cf3d07d 1442 CPP C preprocessor
c7a35fe9
AS
1443 FC Fortran compiler command
1444 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
5213506e
RW
1449Report bugs to the package provider.
1450GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1451General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1452_ACEOF
5213506e 1453ac_status=$?
6de9cd9a
DN
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
6de9cd9a 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
6de9cd9a
DN
1462 ac_builddir=.
1463
5213506e
RW
1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1479
1480case $srcdir in
5213506e 1481 .) # We are building in place.
6de9cd9a 1482 ac_srcdir=.
5213506e
RW
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1486 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1493esac
5213506e
RW
1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1504 else
5213506e
RW
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1508 done
1509fi
1510
5213506e 1511test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1512if $ac_init_version; then
1513 cat <<\_ACEOF
0dce3ca1 1514GNU Fortran Runtime Library configure 0.3
5213506e 1515generated by GNU Autoconf 2.64
6de9cd9a 1516
5213506e 1517Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
5213506e 1521 exit
6de9cd9a 1522fi
6de9cd9a 1523
5213506e
RW
1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
6de9cd9a 1527
5213506e
RW
1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
1532{
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555else
1556 $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1558
5213506e
RW
1559 ac_retval=1
1560fi
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 return $ac_retval
1563
1564} # ac_fn_c_try_compile
1565
21be0a5a
JB
1566# ac_fn_c_try_cpp LINENO
1567# ----------------------
1568# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_cpp ()
6de9cd9a 1570{
5213506e 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1572 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1573case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
21be0a5a 1579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1587 test $ac_status = 0; } >/dev/null && {
1588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1589 test ! -s conftest.err
5213506e
RW
1590 }; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1595
21be0a5a 1596 ac_retval=1
5213506e 1597fi
5213506e
RW
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 return $ac_retval
6de9cd9a 1600
21be0a5a 1601} # ac_fn_c_try_cpp
6de9cd9a 1602
21be0a5a 1603# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1604# -------------------------------------------------------
21be0a5a
JB
1605# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1606# the include files in INCLUDES and setting the cache variable VAR
1607# accordingly.
1608ac_fn_c_check_header_mongrel ()
5213506e
RW
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613$as_echo_n "checking for $2... " >&6; }
1614if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
21be0a5a
JB
1616fi
1617eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619$as_echo "$ac_res" >&6; }
5213506e 1620else
21be0a5a
JB
1621 # Is the header compilable?
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1623$as_echo_n "checking $2 usability... " >&6; }
1624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1625/* end confdefs.h. */
1626$4
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1630 ac_header_compiler=yes
5213506e 1631else
21be0a5a 1632 ac_header_compiler=no
5213506e
RW
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1636$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1637
21be0a5a
JB
1638# Is the header present?
1639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1640$as_echo_n "checking $2 presence... " >&6; }
1641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h. */
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_cpp "$LINENO"; then :
1646 ac_header_preproc=yes
1647else
1648 ac_header_preproc=no
1649fi
1650rm -f conftest.err conftest.$ac_ext
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1652$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1653
21be0a5a
JB
1654# So? What about this header?
1655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 yes:no: )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1658$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 ;;
1662 no:yes:* )
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1664$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1666$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1668$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1670$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ;;
5213506e 1674esac
21be0a5a
JB
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
5213506e 1679else
21be0a5a
JB
1680 eval "$3=\$ac_header_compiler"
1681fi
1682eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
5213506e
RW
1685fi
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1687
21be0a5a 1688} # ac_fn_c_check_header_mongrel
6de9cd9a 1689
5213506e
RW
1690# ac_fn_c_try_run LINENO
1691# ----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693# that executables *can* be run.
1694ac_fn_c_try_run ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1723
5213506e
RW
1724 ac_retval=$ac_status
1725fi
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
6de9cd9a 1729
5213506e 1730} # ac_fn_c_try_run
6de9cd9a 1731
21be0a5a
JB
1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists and can be compiled using the include files in
1735# INCLUDES, setting the cache variable VAR accordingly.
1736ac_fn_c_check_header_compile ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h. */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751else
1752 eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761} # ac_fn_c_check_header_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($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_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808
5213506e
RW
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819else
1820 if test x$gcc_no_link = xyes; then
1821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1822fi
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
6de9cd9a 1828
5213506e
RW
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1833
5213506e
RW
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
6de9cd9a 1839
5213506e
RW
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
38d24731 1858{
5213506e
RW
1859return $2 ();
1860 ;
1861 return 0;
38d24731 1862}
5213506e
RW
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1876
5213506e 1877} # ac_fn_c_check_func
6de9cd9a 1878
5213506e
RW
1879# ac_fn_fc_try_compile LINENO
1880# ---------------------------
1881# Try to compile conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_fc_try_compile ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext
1886 if { { ac_try="$ac_compile"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_compile") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_fc_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest.$ac_objext; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1909
5213506e
RW
1910 ac_retval=1
1911fi
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
6de9cd9a 1914
5213506e 1915} # ac_fn_fc_try_compile
6de9cd9a 1916
5213506e
RW
1917# ac_fn_fc_try_link LINENO
1918# ------------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded.
1920ac_fn_fc_try_link ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_fc_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947else
1948 $as_echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1950
5213506e
RW
1951 ac_retval=1
1952fi
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
6de9cd9a 1960
5213506e 1961} # ac_fn_fc_try_link
6de9cd9a 1962
5213506e
RW
1963# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964# -------------------------------------------
1965# Tests whether TYPE exists after having included INCLUDES, setting cache
1966# variable VAR accordingly.
1967ac_fn_c_check_type ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1974else
1975 eval "$3=no"
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979int
1980main ()
1981{
1982if (sizeof ($2))
1983 return 0;
1984 ;
1985 return 0;
1986}
6de9cd9a 1987_ACEOF
5213506e
RW
1988if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992int
1993main ()
1994{
1995if (sizeof (($2)))
1996 return 0;
1997 ;
1998 return 0;
1999}
6de9cd9a 2000_ACEOF
5213506e 2001if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2002
5213506e
RW
2003else
2004 eval "$3=yes"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2014
5213506e 2015} # ac_fn_c_check_type
6de9cd9a 2016
21be0a5a
JB
2017# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2018# --------------------------------------------
2019# Tries to find the compile-time value of EXPR in a program that includes
2020# INCLUDES, setting VAR accordingly. Returns whether the value could be
2021# computed
2022ac_fn_c_compute_int ()
5213506e
RW
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2025 if test "$cross_compiling" = yes; then
2026 # Depending upon the size, compute the lo and hi bounds.
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2028/* end confdefs.h. */
c13e029b 2029$4
5213506e
RW
2030int
2031main ()
2032{
c13e029b 2033static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2034test_array [0] = 0
6de9cd9a 2035
5213506e
RW
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2041 ac_lo=0 ac_mid=0
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2044/* end confdefs.h. */
c13e029b 2045$4
5213506e
RW
2046int
2047main ()
2048{
c13e029b 2049static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2050test_array [0] = 0
6de9cd9a 2051
5213506e
RW
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2057 ac_hi=$ac_mid; break
5213506e 2058else
c13e029b
PB
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2061 ac_lo= ac_hi=
2062 break
2063 fi
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2067 done
2068else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) < 0)];
2076test_array [0] = 0
2077
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=-1 ac_mid=-1
2084 while :; do
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092test_array [0] = 0
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2105 fi
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2109 done
d72a3ac1 2110else
c13e029b 2111 ac_lo= ac_hi=
5213506e 2112fi
c13e029b 2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2114fi
c13e029b
PB
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116# Binary search between lo and hi bounds.
2117while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2120/* end confdefs.h. */
c13e029b 2121$4
5213506e
RW
2122int
2123main ()
2124{
c13e029b 2125static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2126test_array [0] = 0
6de9cd9a 2127
5213506e
RW
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2133 ac_hi=$ac_mid
2134else
2135 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2138done
2139case $ac_lo in #((
2140?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2141'') ac_retval=1 ;;
2142esac
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146$4
2147static long int longval () { return $2; }
2148static unsigned long int ulongval () { return $2; }
2149#include <stdio.h>
2150#include <stdlib.h>
2151int
2152main ()
2153{
6de9cd9a 2154
c13e029b
PB
2155 FILE *f = fopen ("conftest.val", "w");
2156 if (! f)
2157 return 1;
2158 if (($2) < 0)
2159 {
2160 long int i = longval ();
2161 if (i != ($2))
2162 return 1;
2163 fprintf (f, "%ld", i);
2164 }
2165 else
2166 {
2167 unsigned long int i = ulongval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%lu", i);
2171 }
2172 /* Do not output a trailing newline, as this causes \r\n confusion
2173 on some platforms. */
2174 return ferror (f) || fclose (f) != 0;
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_run "$LINENO"; then :
2181 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2182else
c13e029b 2183 ac_retval=1
d72a3ac1 2184fi
c13e029b
PB
2185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2186 conftest.$ac_objext conftest.beam conftest.$ac_ext
2187rm -f conftest.val
2188
2189 fi
5213506e 2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2191 return $ac_retval
6de9cd9a 2192
c13e029b 2193} # ac_fn_c_compute_int
6de9cd9a 2194
5213506e
RW
2195# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2196# ----------------------------------------------------
2197# Tries to find if the field MEMBER exists in type AGGR, after including
2198# INCLUDES, setting cache variable VAR accordingly.
2199ac_fn_c_check_member ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2203$as_echo_n "checking for $2.$3... " >&6; }
2204if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$5
2210int
2211main ()
2212{
2213static $2 ac_aggr;
2214if (ac_aggr.$3)
2215return 0;
2216 ;
2217 return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221 eval "$4=yes"
2222else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h. */
2225$5
2226int
2227main ()
2228{
2229static $2 ac_aggr;
2230if (sizeof ac_aggr.$3)
2231return 0;
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$4=yes"
2238else
2239 eval "$4=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244fi
2245eval ac_res=\$$4
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2249
5213506e
RW
2250} # ac_fn_c_check_member
2251cat >config.log <<_ACEOF
2252This file contains any messages produced by compilers while
2253running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2254
5213506e
RW
2255It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2256generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2257
5213506e 2258 $ $0 $@
6de9cd9a 2259
5213506e
RW
2260_ACEOF
2261exec 5>>config.log
2262{
2263cat <<_ASUNAME
2264## --------- ##
2265## Platform. ##
2266## --------- ##
6de9cd9a 2267
5213506e
RW
2268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2273
5213506e
RW
2274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2276
5213506e
RW
2277/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2284
5213506e 2285_ASUNAME
18c04407 2286
5213506e
RW
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 $as_echo "PATH: $as_dir"
2293 done
2294IFS=$as_save_IFS
18c04407 2295
5213506e 2296} >&5
18c04407 2297
5213506e 2298cat >&5 <<_ACEOF
6de9cd9a
DN
2299
2300
5213506e
RW
2301## ----------- ##
2302## Core tests. ##
2303## ----------- ##
78511f8b 2304
5213506e 2305_ACEOF
38d24731 2306
96b8a615 2307
5213506e
RW
2308# Keep a trace of the command line.
2309# Strip out --no-create and --no-recursion so they do not pile up.
2310# Strip out --silent because we don't want to record it for future runs.
2311# Also quote any args containing shell meta-characters.
2312# Make two passes to allow for proper duplicate-argument suppression.
2313ac_configure_args=
2314ac_configure_args0=
2315ac_configure_args1=
2316ac_must_keep_next=false
2317for ac_pass in 1 2
2318do
2319 for ac_arg
2320 do
2321 case $ac_arg in
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2325 continue ;;
2326 *\'*)
2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 esac
2329 case $ac_pass in
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331 2)
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2335 else
2336 case $ac_arg in
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 esac
2344 ;;
2345 -* ) ac_must_keep_next=true ;;
2346 esac
2347 fi
2348 as_fn_append ac_configure_args " '$ac_arg'"
2349 ;;
2350 esac
2351 done
6de9cd9a 2352done
5213506e
RW
2353{ ac_configure_args0=; unset ac_configure_args0;}
2354{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2355
5213506e
RW
2356# When interrupted or exit'd, cleanup temporary files, and complete
2357# config.log. We remove comments because anyway the quotes in there
2358# would cause problems or look ugly.
2359# WARNING: Use '\'' to represent an apostrophe within the trap.
2360# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2363 {
2364 echo
96b8a615 2365
5213506e
RW
2366 cat <<\_ASBOX
2367## ---------------- ##
2368## Cache variables. ##
2369## ---------------- ##
2370_ASBOX
2371 echo
2372 # The following way of writing the cache mishandles newlines in values,
2373(
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in #(
2377 *${as_nl}*)
2378 case $ac_var in #(
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 esac
2382 case $ac_var in #(
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2386 esac ;;
2387 esac
2388 done
2389 (set) 2>&1 |
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2392 sed -n \
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 ;; #(
2396 *)
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 ;;
2399 esac |
2400 sort
2401)
2402 echo
2403
2404 cat <<\_ASBOX
2405## ----------------- ##
2406## Output variables. ##
2407## ----------------- ##
2408_ASBOX
2409 echo
2410 for ac_var in $ac_subst_vars
2411 do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 esac
2416 $as_echo "$ac_var='\''$ac_val'\''"
2417 done | sort
2418 echo
2419
2420 if test -n "$ac_subst_files"; then
2421 cat <<\_ASBOX
2422## ------------------- ##
2423## File substitutions. ##
2424## ------------------- ##
2425_ASBOX
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 cat <<\_ASBOX
2440## ----------- ##
2441## confdefs.h. ##
2442## ----------- ##
2443_ASBOX
2444 echo
2445 cat confdefs.h
2446 echo
2447 fi
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2455' 0
2456for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458done
2459ac_signal=0
2460
2461# confdefs.h avoids OS command line length limits that DEFS can exceed.
2462rm -f -r conftest* confdefs.h
2463
2464$as_echo "/* confdefs.h */" > confdefs.h
2465
2466# Predefined preprocessor variables.
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_NAME "$PACKAGE_NAME"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_VERSION "$PACKAGE_VERSION"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_STRING "$PACKAGE_STRING"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_URL "$PACKAGE_URL"
2490_ACEOF
2491
2492
2493# Let the site file select an alternate cache file if it wants to.
2494# Prefer an explicitly selected file to automatically selected ones.
2495ac_site_file1=NONE
2496ac_site_file2=NONE
2497if test -n "$CONFIG_SITE"; then
2498 ac_site_file1=$CONFIG_SITE
2499elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2505fi
2506for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507do
2508 test "x$ac_site_file" = xNONE && continue
2509 if test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file"
2514 fi
2515done
2516
2517if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special
2519 # files actually), so we avoid doing that.
2520 if test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522$as_echo "$as_me: loading cache $cache_file" >&6;}
2523 case $cache_file in
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2526 esac
2527 fi
2528else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530$as_echo "$as_me: creating cache $cache_file" >&6;}
2531 >$cache_file
2532fi
2533
74544378
JB
2534as_fn_append ac_header_list " unistd.h"
2535as_fn_append ac_header_list " sys/time.h"
2536as_fn_append ac_header_list " sys/times.h"
2537as_fn_append ac_header_list " sys/resource.h"
2538as_fn_append ac_header_list " sys/types.h"
2539as_fn_append ac_header_list " sys/stat.h"
2540as_fn_append ac_header_list " sys/wait.h"
2541as_fn_append ac_header_list " floatingpoint.h"
2542as_fn_append ac_header_list " ieeefp.h"
2543as_fn_append ac_header_list " fenv.h"
2544as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2545as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2546as_fn_append ac_header_list " pwd.h"
2547as_fn_append ac_header_list " complex.h"
2548as_fn_append ac_func_list " getrusage"
2549as_fn_append ac_func_list " times"
2550as_fn_append ac_func_list " mkstemp"
2551as_fn_append ac_func_list " strtof"
2552as_fn_append ac_func_list " strtold"
2553as_fn_append ac_func_list " snprintf"
2554as_fn_append ac_func_list " ftruncate"
2555as_fn_append ac_func_list " chsize"
2556as_fn_append ac_func_list " chdir"
2557as_fn_append ac_func_list " getlogin"
2558as_fn_append ac_func_list " gethostname"
2559as_fn_append ac_func_list " kill"
2560as_fn_append ac_func_list " link"
2561as_fn_append ac_func_list " symlink"
2562as_fn_append ac_func_list " sleep"
2563as_fn_append ac_func_list " ttyname"
2564as_fn_append ac_func_list " alarm"
2565as_fn_append ac_func_list " access"
2566as_fn_append ac_func_list " fork"
2567as_fn_append ac_func_list " execl"
2568as_fn_append ac_func_list " wait"
2569as_fn_append ac_func_list " setmode"
2570as_fn_append ac_func_list " execve"
2571as_fn_append ac_func_list " pipe"
2572as_fn_append ac_func_list " dup2"
2573as_fn_append ac_func_list " close"
74544378
JB
2574as_fn_append ac_func_list " strcasestr"
2575as_fn_append ac_func_list " getrlimit"
2576as_fn_append ac_func_list " gettimeofday"
2577as_fn_append ac_func_list " stat"
2578as_fn_append ac_func_list " fstat"
2579as_fn_append ac_func_list " lstat"
2580as_fn_append ac_func_list " getpwuid"
2581as_fn_append ac_func_list " vsnprintf"
2582as_fn_append ac_func_list " dup"
2583as_fn_append ac_func_list " getcwd"
2584as_fn_append ac_func_list " localtime_r"
2585as_fn_append ac_func_list " gmtime_r"
74544378
JB
2586as_fn_append ac_func_list " getpwuid_r"
2587as_fn_append ac_func_list " ttyname_r"
2588as_fn_append ac_func_list " clock_gettime"
2589as_fn_append ac_func_list " readlink"
2590as_fn_append ac_func_list " getgid"
2591as_fn_append ac_func_list " getpid"
2592as_fn_append ac_func_list " getppid"
2593as_fn_append ac_func_list " getuid"
2594as_fn_append ac_func_list " geteuid"
8ecd1c0d 2595as_fn_append ac_func_list " umask"
68ee9c08 2596as_fn_append ac_func_list " getegid"
227e441f 2597as_fn_append ac_func_list " secure_getenv"
68ee9c08 2598as_fn_append ac_func_list " __secure_getenv"
db9f46a9 2599as_fn_append ac_header_list " math.h"
5213506e
RW
2600# Check that the precious variables saved in the cache have kept the same
2601# value.
2602ac_cache_corrupted=false
2603for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2618 *)
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2648 fi
2649done
2650if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656fi
2657## -------------------- ##
2658## Main body of script. ##
2659## -------------------- ##
2660
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669
2670
2671ac_config_headers="$ac_config_headers config.h"
2672
2673ac_aux_dir=
2674for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t in install-sh install.sh shtool; do
2676 if test -f "$ac_dir/$ac_t"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/$ac_t -c"
2679 break 2
2680 fi
2681 done
2682done
2683if test -z "$ac_aux_dir"; then
2684 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2685fi
2686
2687# These three variables are undocumented and unsupported,
2688# and are intended to be withdrawn in a future Autoconf release.
2689# They can cause serious problems if a builder's source tree is in a directory
2690# whose full name contains unusual characters.
2691ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2694
2695
2696# Make sure we can run config.sub.
2697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2699
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701$as_echo_n "checking build system type... " >&6; }
2702if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704else
2705 ac_build_alias=$build_alias
2706test "x$ac_build_alias" = x &&
2707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2708test "x$ac_build_alias" = x &&
2709 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2712
2713fi
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715$as_echo "$ac_cv_build" >&6; }
2716case $ac_cv_build in
2717*-*-*) ;;
2718*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2719esac
2720build=$ac_cv_build
2721ac_save_IFS=$IFS; IFS='-'
2722set x $ac_cv_build
2723shift
2724build_cpu=$1
2725build_vendor=$2
2726shift; shift
2727# Remember, the first character of IFS is used to create $*,
2728# except with old shells:
2729build_os=$*
2730IFS=$ac_save_IFS
2731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2732
2733
2734 case ${build_alias} in
2735 "") build_noncanonical=${build} ;;
2736 *) build_noncanonical=${build_alias} ;;
2737esac
891c05b1
JJ
2738
2739 case ${host_alias} in
2740 "") host_noncanonical=${build_noncanonical} ;;
2741 *) host_noncanonical=${host_alias} ;;
2742esac
2743
2744 case ${target_alias} in
2745 "") target_noncanonical=${host_noncanonical} ;;
2746 *) target_noncanonical=${target_alias} ;;
2747esac
2748
57255173
PB
2749
2750# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751# have matching libraries, they should use host libraries: Makefile.tpl
2752# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753# However, they still use the build modules, because the corresponding
2754# host modules (e.g. bison) are only built for the host when bootstrap
2755# finishes. So:
2756# - build_subdir is where we find build modules, and never changes.
2757# - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2760build_subdir="build-${build_noncanonical}"
57255173 2761
5213506e
RW
2762# Check whether --with-build-libsubdir was given.
2763if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2765else
2766 build_libsubdir="$build_subdir"
5213506e
RW
2767fi
2768
891c05b1
JJ
2769# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773else
2774 host_subdir=.
2775fi
2776# No prefix.
2777target_subdir=${target_noncanonical}
2778
2779
2780# -------
2781# Options
2782# -------
2783
5213506e
RW
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2785$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2786# Check whether --enable-version-specific-runtime-libs was given.
2787if test "${enable_version_specific_runtime_libs+set}" = set; then :
2788 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2789 yes) version_specific_libs=yes ;;
2790 no) version_specific_libs=no ;;
5213506e 2791 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2792 esac
2793else
2794 version_specific_libs=no
5213506e
RW
2795fi
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2798$as_echo "$version_specific_libs" >&6; }
891c05b1 2799
b808ac33 2800# Build with intermodule optimisations
5213506e
RW
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2802$as_echo_n "checking for --enable-intermodule... " >&6; }
2803# Check whether --enable-intermodule was given.
2804if test "${enable_intermodule+set}" = set; then :
2805 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2806 yes) onestep="-onestep";;
2807 *) onestep="";;
2808esac
2809else
2810 onestep=""
5213506e 2811fi
b808ac33 2812
5213506e
RW
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2814$as_echo "$enable_intermodule" >&6; }
2815 if test x$onestep = x-onestep; then
b808ac33
BF
2816 onestep_TRUE=
2817 onestep_FALSE='#'
2818else
2819 onestep_TRUE='#'
2820 onestep_FALSE=
2821fi
2822
2823
891c05b1
JJ
2824
2825# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2826#
2827# You will slowly go insane if you do not grok the following fact: when
2828# building this library, the top-level /target/ becomes the library's /host/.
2829#
2830# configure then causes --target to default to --host, exactly like any
2831# other package using autoconf. Therefore, 'target' and 'host' will
2832# always be the same. This makes sense both for native and cross compilers
2833# just think about it for a little while. :-)
2834#
2835# Also, if this library is being configured as part of a cross compiler, the
2836# top-level configure script will pass the "real" host as $with_cross_host.
2837#
2838# Do not delete or change the following two lines. For why, see
2839# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841$as_echo_n "checking host system type... " >&6; }
2842if test "${ac_cv_host+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844else
2845 if test "x$host_alias" = x; then
2846 ac_cv_host=$ac_cv_build
2847else
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850fi
2851
2852fi
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854$as_echo "$ac_cv_host" >&6; }
2855case $ac_cv_host in
2856*-*-*) ;;
2857*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2858esac
96b8a615 2859host=$ac_cv_host
5213506e
RW
2860ac_save_IFS=$IFS; IFS='-'
2861set x $ac_cv_host
2862shift
2863host_cpu=$1
2864host_vendor=$2
2865shift; shift
2866# Remember, the first character of IFS is used to create $*,
2867# except with old shells:
2868host_os=$*
2869IFS=$ac_save_IFS
2870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2871
2872
5213506e
RW
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2874$as_echo_n "checking target system type... " >&6; }
2875if test "${ac_cv_target+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
96b8a615 2877else
5213506e
RW
2878 if test "x$target_alias" = x; then
2879 ac_cv_target=$ac_cv_host
2880else
2881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2882 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2883fi
96b8a615
AJ
2884
2885fi
5213506e
RW
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2887$as_echo "$ac_cv_target" >&6; }
2888case $ac_cv_target in
2889*-*-*) ;;
2890*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2891esac
96b8a615 2892target=$ac_cv_target
5213506e
RW
2893ac_save_IFS=$IFS; IFS='-'
2894set x $ac_cv_target
2895shift
2896target_cpu=$1
2897target_vendor=$2
2898shift; shift
2899# Remember, the first character of IFS is used to create $*,
2900# except with old shells:
2901target_os=$*
2902IFS=$ac_save_IFS
2903case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2904
2905
2906# The aliases save the names the user supplied, while $host etc.
2907# will get canonicalized.
2908test -n "$target_alias" &&
2909 test "$program_prefix$program_suffix$program_transform_name" = \
2910 NONENONEs,x,x, &&
2911 program_prefix=${target_alias}-
5213506e 2912
60858d8a
TB
2913
2914
2915
96b8a615
AJ
2916target_alias=${target_alias-$host_alias}
2917
60858d8a 2918
96b8a615
AJ
2919# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2920# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2921# 1.9.6: minimum required version
96b8a615
AJ
2922# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2923# of other PACKAGE_* variables will, however, and there's nothing
2924# we can do about that; they come from AC_INIT).
2925# foreign: we don't follow the normal rules for GNU packages (no COPYING
2926# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2927# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2928# -Wall: turns on all automake warnings...
2929# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2930am__api_version='1.11'
2931
6de9cd9a
DN
2932# Find a good install program. We prefer a C program (faster),
2933# so one script is as good as another. But avoid the broken or
2934# incompatible versions:
2935# SysV /etc/install, /usr/sbin/install
2936# SunOS /usr/etc/install
2937# IRIX /sbin/install
2938# AIX /bin/install
2939# AmigaOS /C/install, which installs bootblocks on floppy discs
2940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943# OS/2's system install, which has a completely different semantic
2944# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2945# Reject install programs that cannot install multiple files.
5213506e
RW
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2948if test -z "$INSTALL"; then
5213506e
RW
2949if test "${ac_cv_path_install+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2951else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
5213506e
RW
2957 # Account for people who put trailing slashes in PATH elements.
2958case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
6de9cd9a 2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2962 /usr/ucb/* ) ;;
2963 *)
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2966 # by default.
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2973 :
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2977 :
2978 else
38d24731
RW
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2982 mkdir conftest.dir
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2987 then
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 break 3
2990 fi
6de9cd9a
DN
2991 fi
2992 fi
2993 done
2994 done
2995 ;;
2996esac
5213506e
RW
2997
2998 done
2999IFS=$as_save_IFS
6de9cd9a 3000
38d24731 3001rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3002
3003fi
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3006 else
f489fba1
FXC
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
6de9cd9a 3009 # break other packages using the cache if that directory is
f489fba1 3010 # removed, or if the value is a relative name.
6de9cd9a
DN
3011 INSTALL=$ac_install_sh
3012 fi
3013fi
5213506e
RW
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3016
3017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018# It thinks the first close brace ends the variable substitution.
3019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3020
3021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3022
3023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3024
5213506e
RW
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
3027# Just in case
3028sleep 1
3029echo timestamp > conftest.file
5213506e
RW
3030# Reject unsafe characters in $srcdir or the absolute working directory
3031# name. Accept space and tab only in the latter.
3032am_lf='
3033'
3034case `pwd` in
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3037esac
3038case $srcdir in
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041esac
3042
6de9cd9a
DN
3043# Do `set' in a subshell so we don't clobber the current shell's
3044# arguments. Must try -L first in case configure is actually a
3045# symlink; some systems play weird games with the mod time of symlinks
3046# (eg FreeBSD returns the mod time of the symlink's containing
3047# directory).
3048if (
5213506e 3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
3050 if test "$*" = "X"; then
3051 # -L didn't work.
5213506e 3052 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
3053 fi
3054 rm -f conftest.file
3055 if test "$*" != "X $srcdir/configure conftest.file" \
3056 && test "$*" != "X conftest.file $srcdir/configure"; then
3057
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
5213506e
RW
3062 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3063alias in your environment" "$LINENO" 5
6de9cd9a
DN
3064 fi
3065
3066 test "$2" = conftest.file
3067 )
3068then
3069 # Ok.
3070 :
3071else
5213506e
RW
3072 as_fn_error "newly created file is older than distributed files!
3073Check your system clock" "$LINENO" 5
6de9cd9a 3074fi
5213506e
RW
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076$as_echo "yes" >&6; }
6de9cd9a 3077test "$program_prefix" != NONE &&
5213506e 3078 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3079# Use a double $ so make ignores it.
3080test "$program_suffix" != NONE &&
5213506e
RW
3081 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082# Double any \ or $.
6de9cd9a 3083# By default was `s,x,x', remove it if useless.
5213506e
RW
3084ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3086
3087# expand $ac_aux_dir to an absolute path
3088am_aux_dir=`cd $ac_aux_dir && pwd`
3089
5213506e
RW
3090if test x"${MISSING+set}" != xset; then
3091 case $am_aux_dir in
3092 *\ * | *\ *)
3093 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3094 *)
3095 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096 esac
3097fi
6de9cd9a
DN
3098# Use eval to expand $SHELL
3099if eval "$MISSING --run true"; then
3100 am_missing_run="$MISSING --run "
3101else
3102 am_missing_run=
5213506e
RW
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3105fi
3106
5213506e
RW
3107if test x"${install_sh}" != xset; then
3108 case $am_aux_dir in
3109 *\ * | *\ *)
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3111 *)
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3113 esac
3114fi
3115
3116# Installed binaries are usually stripped using `strip' when the user
3117# run `make install-strip'. However `strip' might not be the right
3118# tool to use in cross-compilation environments, therefore Automake
3119# will honor the `STRIP' environment variable to overrule this program.
3120if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123set dummy ${ac_tool_prefix}strip; ac_word=$2
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
3126if test "${ac_cv_prog_STRIP+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
6de9cd9a 3128else
5213506e
RW
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
5213506e
RW
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3141 break 2
3142 fi
3143done
5213506e
RW
3144 done
3145IFS=$as_save_IFS
6de9cd9a
DN
3146
3147fi
3148fi
5213506e
RW
3149STRIP=$ac_cv_prog_STRIP
3150if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152$as_echo "$STRIP" >&6; }
6de9cd9a 3153else
5213506e
RW
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
6de9cd9a
DN
3156fi
3157
6de9cd9a 3158
5213506e
RW
3159fi
3160if test -z "$ac_cv_prog_STRIP"; then
3161 ac_ct_STRIP=$STRIP
3162 # Extract the first word of "strip", so it can be a program name with args.
3163set dummy strip; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
6de9cd9a 3168else
5213506e
RW
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3171else
5213506e
RW
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184 done
3185IFS=$as_save_IFS
3186
38d24731 3187fi
6de9cd9a 3188fi
5213506e
RW
3189ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192$as_echo "$ac_ct_STRIP" >&6; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198 if test "x$ac_ct_STRIP" = x; then
3199 STRIP=":"
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202yes:)
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205ac_tool_warned=yes ;;
3206esac
3207 STRIP=$ac_ct_STRIP
3208 fi
3209else
3210 STRIP="$ac_cv_prog_STRIP"
3211fi
3212
3213fi
3214INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3215
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218if test -z "$MKDIR_P"; then
3219 if test "${ac_cv_path_mkdir+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in mkdir gmkdir; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231 'mkdir (GNU coreutils) '* | \
3232 'mkdir (coreutils) '* | \
3233 'mkdir (fileutils) '4.1*)
3234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3235 break 3;;
3236 esac
3237 done
3238 done
3239 done
3240IFS=$as_save_IFS
3241
3242fi
3243
3244 if test "${ac_cv_path_mkdir+set}" = set; then
3245 MKDIR_P="$ac_cv_path_mkdir -p"
3246 else
3247 # As a last resort, use the slow shell script. Don't cache a
3248 # value for MKDIR_P within a source directory, because that will
3249 # break other packages using the cache if that directory is
3250 # removed, or if the value is a relative name.
3251 test -d ./--version && rmdir ./--version
3252 MKDIR_P="$ac_install_sh -d"
3253 fi
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256$as_echo "$MKDIR_P" >&6; }
3257
3258mkdir_p="$MKDIR_P"
3259case $mkdir_p in
3260 [\\/$]* | ?:[\\/]*) ;;
3261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3262esac
3263
3264for ac_prog in gawk mawk nawk awk
3265do
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267set dummy $ac_prog; ac_word=$2
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if test "${ac_cv_prog_AWK+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272else
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_AWK="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287done
3288 done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293AWK=$ac_cv_prog_AWK
3294if test -n "$AWK"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296$as_echo "$AWK" >&6; }
3297else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302
3303 test -n "$AWK" && break
3304done
3305
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308set x ${MAKE-make}
3309ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3311 $as_echo_n "(cached) " >&6
3312else
3313 cat >conftest.make <<\_ACEOF
3314SHELL = /bin/sh
3315all:
3316 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317_ACEOF
3318# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3319case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 *@@@%%%=?*=@@@%%%*)
3321 eval ac_cv_prog_make_${ac_make}_set=yes;;
3322 *)
3323 eval ac_cv_prog_make_${ac_make}_set=no;;
3324esac
3325rm -f conftest.make
3326fi
3327if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
6de9cd9a
DN
3330 SET_MAKE=
3331else
5213506e
RW
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
6de9cd9a
DN
3334 SET_MAKE="MAKE=${MAKE-make}"
3335fi
3336
3337rm -rf .tst 2>/dev/null
3338mkdir .tst 2>/dev/null
3339if test -d .tst; then
3340 am__leading_dot=.
3341else
3342 am__leading_dot=_
3343fi
3344rmdir .tst 2>/dev/null
3345
5213506e
RW
3346if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348 # is not polluted with repeated "-I."
3349 am__isrc=' -I$(srcdir)'
3350 # test to see if srcdir already configured
3351 if test -f $srcdir/config.status; then
3352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3353 fi
6de9cd9a
DN
3354fi
3355
3356# test whether we have cygpath
3357if test -z "$CYGPATH_W"; then
3358 if (cygpath --version) >/dev/null 2>/dev/null; then
3359 CYGPATH_W='cygpath -w'
3360 else
3361 CYGPATH_W=echo
3362 fi
3363fi
3364
3365
3366# Define the identity of the package.
3367 PACKAGE='libgfortran'
0dce3ca1 3368 VERSION='0.3'
6de9cd9a
DN
3369
3370
6de9cd9a
DN
3371# Some tools Automake needs.
3372
3373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3374
3375
3376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3377
3378
3379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3380
3381
3382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3383
3384
3385MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3386
6de9cd9a
DN
3387# We need awk for the "check" target. The system "awk" is bad on
3388# some platforms.
82a4f54c 3389# Always define AMTAR for backward compatibility.
d49ec2d1 3390
82a4f54c
TB
3391AMTAR=${AMTAR-"${am_missing_run}tar"}
3392
3393am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
d49ec2d1
KC
3394
3395
6de9cd9a
DN
3396
3397
3398
6de9cd9a 3399
5213506e
RW
3400
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3402$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3403 # Check whether --enable-maintainer-mode was given.
3404if test "${enable_maintainer_mode+set}" = set; then :
3405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3406else
3407 USE_MAINTAINER_MODE=no
5213506e 3408fi
6de9cd9a 3409
5213506e
RW
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3411$as_echo "$USE_MAINTAINER_MODE" >&6; }
3412 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3413 MAINTAINER_MODE_TRUE=
3414 MAINTAINER_MODE_FALSE='#'
3415else
3416 MAINTAINER_MODE_TRUE='#'
3417 MAINTAINER_MODE_FALSE=
3418fi
3419
3420 MAINT=$MAINTAINER_MODE_TRUE
3421
3422
96b8a615 3423# Default to --enable-multilib
5213506e
RW
3424# Check whether --enable-multilib was given.
3425if test "${enable_multilib+set}" = set; then :
3426 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3427 yes) multilib=yes ;;
3428 no) multilib=no ;;
5213506e 3429 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3430 esac
3431else
3432 multilib=yes
5213506e
RW
3433fi
3434
96b8a615
AJ
3435
3436# We may get other options which we leave undocumented:
3437# --with-target-subdir, --with-multisrctop, --with-multisubdir
3438# See config-ml.in if you want the gory details.
3439
3440if test "$srcdir" = "."; then
3441 if test "$with_target_subdir" != "."; then
3442 multi_basedir="$srcdir/$with_multisrctop../.."
3443 else
3444 multi_basedir="$srcdir/$with_multisrctop.."
3445 fi
3446else
3447 multi_basedir="$srcdir/.."
3448fi
3449
3450
9f9ef303
FXC
3451# Even if the default multilib is not a cross compilation,
3452# it may be that some of the other multilibs are.
3453if test $cross_compiling = no && test $multilib = yes \
3454 && test "x${with_multisubdir}" != x ; then
3455 cross_compiling=maybe
3456fi
3457
5213506e 3458ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3459
3460
3461# Handy for debugging:
3462#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3463
3464# Are we being configured with some form of cross compiler?
3465# NB: We don't actually need to know this just now, but when, say, a test
3466# suite is included, we'll have to know.
3467if test "$build" != "$host"; then
3468 LIBGFOR_IS_NATIVE=false
f02d008e 3469
96b8a615
AJ
3470else
3471 LIBGFOR_IS_NATIVE=true
3472fi
3473
21be0a5a 3474DEPDIR="${am__leading_dot}deps"
96b8a615 3475
21be0a5a 3476ac_config_commands="$ac_config_commands depfiles"
96b8a615 3477
6de9cd9a 3478
21be0a5a
JB
3479am_make=${MAKE-make}
3480cat > confinc << 'END'
3481am__doit:
3482 @echo this is the am__doit target
3483.PHONY: am__doit
3484END
3485# If we don't find an include directive, just comment out the code.
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487$as_echo_n "checking for style of include used by $am_make... " >&6; }
3488am__include="#"
3489am__quote=
3490_am_result=none
3491# First try GNU make style include.
3492echo "include confinc" > confmf
3493# Ignore all kinds of additional output from `make'.
3494case `$am_make -s -f confmf 2> /dev/null` in #(
3495*the\ am__doit\ target*)
3496 am__include=include
3497 am__quote=
3498 _am_result=GNU
3499 ;;
3500esac
3501# Now try BSD make style include.
3502if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3509 ;;
3510 esac
3511fi
1ec601bf 3512
6de9cd9a 3513
21be0a5a
JB
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515$as_echo "$_am_result" >&6; }
3516rm -f confinc confmf
3517
3518# Check whether --enable-dependency-tracking was given.
3519if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3521fi
3522
3523if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526fi
3527 if test "x$enable_dependency_tracking" != xno; then
3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3533fi
6de9cd9a
DN
3534
3535
6de9cd9a
DN
3536ac_ext=c
3537ac_cpp='$CPP $CPPFLAGS'
3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545$as_echo_n "checking for $ac_word... " >&6; }
3546if test "${ac_cv_prog_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3548else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
5213506e
RW
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3561 break 2
3562 fi
3563done
5213506e
RW
3564 done
3565IFS=$as_save_IFS
6de9cd9a
DN
3566
3567fi
3568fi
3569CC=$ac_cv_prog_CC
3570if test -n "$CC"; then
5213506e
RW
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572$as_echo "$CC" >&6; }
6de9cd9a 3573else
5213506e
RW
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575$as_echo "no" >&6; }
6de9cd9a
DN
3576fi
3577
5213506e 3578
6de9cd9a
DN
3579fi
3580if test -z "$ac_cv_prog_CC"; then
3581 ac_ct_CC=$CC
3582 # Extract the first word of "gcc", so it can be a program name with args.
3583set dummy gcc; ac_word=$2
5213506e
RW
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585$as_echo_n "checking for $ac_word... " >&6; }
3586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3588else
3589 if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591else
3592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH
3594do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
5213506e
RW
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3599 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3601 break 2
3602 fi
3603done
5213506e
RW
3604 done
3605IFS=$as_save_IFS
6de9cd9a
DN
3606
3607fi
3608fi
3609ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610if test -n "$ac_ct_CC"; then
5213506e
RW
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3613else
5213506e
RW
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615$as_echo "no" >&6; }
6de9cd9a
DN
3616fi
3617
5213506e
RW
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622yes:)
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625ac_tool_warned=yes ;;
3626esac
3627 CC=$ac_ct_CC
3628 fi
6de9cd9a
DN
3629else
3630 CC="$ac_cv_prog_CC"
3631fi
3632
3633if test -z "$CC"; then
5213506e
RW
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3636set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638$as_echo_n "checking for $ac_word... " >&6; }
3639if test "${ac_cv_prog_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3641else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
5213506e
RW
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3652 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3654 break 2
3655 fi
3656done
5213506e
RW
3657 done
3658IFS=$as_save_IFS
6de9cd9a
DN
3659
3660fi
3661fi
3662CC=$ac_cv_prog_CC
3663if test -n "$CC"; then
5213506e
RW
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665$as_echo "$CC" >&6; }
38d24731 3666else
5213506e
RW
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
38d24731
RW
3669fi
3670
38d24731 3671
5213506e 3672 fi
6de9cd9a
DN
3673fi
3674if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676set dummy cc; ac_word=$2
5213506e
RW
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678$as_echo_n "checking for $ac_word... " >&6; }
3679if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3681else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684else
3685 ac_prog_rejected=no
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
5213506e
RW
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected=yes
3695 continue
3696 fi
3697 ac_cv_prog_CC="cc"
5213506e 3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3699 break 2
3700 fi
3701done
5213506e
RW
3702 done
3703IFS=$as_save_IFS
6de9cd9a
DN
3704
3705if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy $ac_cv_prog_CC
3708 shift
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3713 shift
3714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3715 fi
3716fi
3717fi
3718fi
3719CC=$ac_cv_prog_CC
3720if test -n "$CC"; then
5213506e
RW
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722$as_echo "$CC" >&6; }
6de9cd9a 3723else
5213506e
RW
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
6de9cd9a
DN
3726fi
3727
5213506e 3728
6de9cd9a
DN
3729fi
3730if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
5213506e 3732 for ac_prog in cl.exe
6de9cd9a
DN
3733 do
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737$as_echo_n "checking for $ac_word... " >&6; }
3738if test "${ac_cv_prog_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3740else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
5213506e
RW
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3753 break 2
3754 fi
3755done
5213506e
RW
3756 done
3757IFS=$as_save_IFS
6de9cd9a
DN
3758
3759fi
3760fi
3761CC=$ac_cv_prog_CC
3762if test -n "$CC"; then
5213506e
RW
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764$as_echo "$CC" >&6; }
6de9cd9a 3765else
5213506e
RW
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767$as_echo "no" >&6; }
6de9cd9a
DN
3768fi
3769
5213506e 3770
6de9cd9a
DN
3771 test -n "$CC" && break
3772 done
3773fi
3774if test -z "$CC"; then
3775 ac_ct_CC=$CC
5213506e 3776 for ac_prog in cl.exe
6de9cd9a
DN
3777do
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779set dummy $ac_prog; ac_word=$2
5213506e
RW
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3784else
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
5213506e
RW
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3795 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3797 break 2
3798 fi
3799done
5213506e
RW
3800 done
3801IFS=$as_save_IFS
6de9cd9a
DN
3802
3803fi
3804fi
3805ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806if test -n "$ac_ct_CC"; then
5213506e
RW
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3809else
5213506e
RW
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
6de9cd9a
DN
3812fi
3813
5213506e 3814
6de9cd9a
DN
3815 test -n "$ac_ct_CC" && break
3816done
3817
5213506e
RW
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822yes:)
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825ac_tool_warned=yes ;;
3826esac
3827 CC=$ac_ct_CC
3828 fi
6de9cd9a
DN
3829fi
3830
3831fi
3832
3833
5213506e
RW
3834test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836as_fn_error "no acceptable C compiler found in \$PATH
3837See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3838
3839# Provide some information about the compiler.
5213506e
RW
3840$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841set X $ac_compile
3842ac_compiler=$2
3843for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3852 ac_status=$?
5213506e
RW
3853 if test -s conftest.err; then
3854 sed '10a\
3855... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3858 rm -f conftest.er1 conftest.err
3859 fi
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862done
6de9cd9a 3863
5213506e 3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3865/* end confdefs.h. */
3866
f02d008e
JD
3867int
3868main ()
3869{
3870
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875# FIXME: Cleanup?
5213506e 3876if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3877 (eval $ac_link) 2>&5
3878 ac_status=$?
5213506e
RW
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
f02d008e
JD
3881 gcc_no_link=no
3882else
3883 gcc_no_link=yes
3884fi
f02d008e
JD
3885if test x$gcc_no_link = xyes; then
3886 # Setting cross_compile will disable run tests; it will
3887 # also disable AC_CHECK_FILE but that's generally
3888 # correct if we can't link.
3889 cross_compiling=yes
3890 EXEEXT=
3891else
5213506e 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3893/* end confdefs.h. */
3894
6de9cd9a
DN
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903ac_clean_files_save=$ac_clean_files
5213506e 3904ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3905# Try to create an executable without -o first, disregard a.out.
3906# It will help us diagnose broken compilers, and finding out an intuition
3907# of exeext.
5213506e
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3909$as_echo_n "checking for C compiler default output file name... " >&6; }
3910ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3911
3912# The possible output files:
3913ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3914
3915ac_rmfiles=
3916for ac_file in $ac_files
3917do
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3921 esac
3922done
3923rm -f $ac_rmfiles
3924
3925if { { ac_try="$ac_link_default"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931$as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_link_default") 2>&5
3933 ac_status=$?
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; then :
3936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3937# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3938# in a Makefile. We should not override ac_cv_exeext if it was cached,
3939# so that the user can short-circuit this test for compilers unknown to
3940# Autoconf.
3941for ac_file in $ac_files ''
6de9cd9a
DN
3942do
3943 test -f "$ac_file" || continue
3944 case $ac_file in
5213506e 3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3946 ;;
3947 [ab].out )
3948 # We found the default executable, but exeext='' is most
3949 # certainly right.
3950 break;;
3951 *.* )
5213506e
RW
3952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3953 then :; else
3954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955 fi
3956 # We set ac_cv_exeext here because the later test for it is not
3957 # safe: cross compilers may not add the suffix if given an `-o'
3958 # argument, so we may need to know it at that point already.
3959 # Even if this section looks crufty: it has the advantage of
3960 # actually working.
6de9cd9a
DN
3961 break;;
3962 * )
3963 break;;
3964 esac
3965done
5213506e
RW
3966test "$ac_cv_exeext" = no && ac_cv_exeext=
3967
6de9cd9a 3968else
5213506e
RW
3969 ac_file=''
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972$as_echo "$ac_file" >&6; }
3973if test -z "$ac_file"; then :
3974 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
5213506e
RW
3977{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979{ as_fn_set_status 77
3980as_fn_error "C compiler cannot create executables
3981See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3982fi
6de9cd9a 3983ac_exeext=$ac_cv_exeext
6de9cd9a 3984
5213506e 3985# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3986# the compiler is broken, or we cross compile.
5213506e
RW
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3988$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
3989# If not cross compiling, check that we can run a simple program.
3990if test "$cross_compiling" != yes; then
3991 if { ac_try='./$ac_file'
5213506e
RW
3992 { { case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997$as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_try") 2>&5
6de9cd9a 3999 ac_status=$?
5213506e
RW
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; }; then
6de9cd9a
DN
4002 cross_compiling=no
4003 else
4004 if test "$cross_compiling" = maybe; then
4005 cross_compiling=yes
4006 else
5213506e
RW
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009as_fn_error "cannot run C compiled programs.
6de9cd9a 4010If you meant to cross compile, use \`--host'.
5213506e 4011See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
4012 fi
4013 fi
4014fi
5213506e
RW
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016$as_echo "yes" >&6; }
6de9cd9a 4017
5213506e 4018rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 4019ac_clean_files=$ac_clean_files_save
5213506e 4020# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4021# the compiler is broken, or we cross compile.
5213506e
RW
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4023$as_echo_n "checking whether we are cross compiling... " >&6; }
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025$as_echo "$cross_compiling" >&6; }
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4028$as_echo_n "checking for suffix of executables... " >&6; }
4029if { { ac_try="$ac_link"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
6de9cd9a 4037 ac_status=$?
5213506e
RW
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
6de9cd9a
DN
4040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4042# work properly (i.e., refer to `conftest.exe'), while it won't with
4043# `rm'.
4044for ac_file in conftest.exe conftest conftest.*; do
4045 test -f "$ac_file" || continue
4046 case $ac_file in
5213506e 4047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4049 break;;
4050 * ) break;;
4051 esac
4052done
4053else
5213506e
RW
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056as_fn_error "cannot compute suffix of executables: cannot compile and link
4057See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 4058fi
6de9cd9a 4059rm -f conftest$ac_cv_exeext
5213506e
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4061$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4062
4063rm -f conftest.$ac_ext
4064EXEEXT=$ac_cv_exeext
4065ac_exeext=$EXEEXT
f02d008e 4066fi
5213506e
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4068$as_echo_n "checking for suffix of object files... " >&6; }
4069if test "${ac_cv_objext+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
6de9cd9a 4071else
5213506e 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4073/* end confdefs.h. */
4074
4075int
4076main ()
4077{
4078
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083rm -f conftest.o conftest.obj
5213506e
RW
4084if { { ac_try="$ac_compile"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090$as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compile") 2>&5
4092 ac_status=$?
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }; then :
4095 for ac_file in conftest.o conftest.obj conftest.*; do
4096 test -f "$ac_file" || continue;
6de9cd9a 4097 case $ac_file in
5213506e 4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100 break;;
4101 esac
4102done
4103else
5213506e 4104 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
5213506e
RW
4107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109as_fn_error "cannot compute suffix of object files: cannot compile
4110See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4111fi
78511f8b
JB
4112rm -f conftest.$ac_cv_objext conftest.$ac_ext
4113fi
5213506e
RW
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4115$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4116OBJEXT=$ac_cv_objext
4117ac_objext=$OBJEXT
5213506e
RW
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4120if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
78511f8b 4122else
5213506e 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4124/* end confdefs.h. */
6de9cd9a 4125
6de9cd9a
DN
4126int
4127main ()
4128{
78511f8b
JB
4129#ifndef __GNUC__
4130 choke me
4131#endif
c0e7e2bf 4132
6de9cd9a
DN
4133 ;
4134 return 0;
4135}
4136_ACEOF
5213506e 4137if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4138 ac_compiler_gnu=yes
6de9cd9a 4139else
5213506e 4140 ac_compiler_gnu=no
78511f8b 4141fi
5213506e 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4143ac_cv_c_compiler_gnu=$ac_compiler_gnu
4144
4145fi
5213506e
RW
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148if test $ac_compiler_gnu = yes; then
4149 GCC=yes
4150else
4151 GCC=
4152fi
78511f8b
JB
4153ac_test_CFLAGS=${CFLAGS+set}
4154ac_save_CFLAGS=$CFLAGS
5213506e
RW
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156$as_echo_n "checking whether $CC accepts -g... " >&6; }
4157if test "${ac_cv_prog_cc_g+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
78511f8b 4159else
5213506e
RW
4160 ac_save_c_werror_flag=$ac_c_werror_flag
4161 ac_c_werror_flag=yes
4162 ac_cv_prog_cc_g=no
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4165/* end confdefs.h. */
c0e7e2bf 4166
6de9cd9a
DN
4167int
4168main ()
4169{
c0e7e2bf 4170
6de9cd9a
DN
4171 ;
4172 return 0;
4173}
4174_ACEOF
5213506e 4175if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4176 ac_cv_prog_cc_g=yes
4177else
5213506e
RW
4178 CFLAGS=""
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h. */
4181
4182int
4183main ()
4184{
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191
4192else
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="-g"
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
f489fba1 4197
5213506e
RW
4198int
4199main ()
4200{
4201
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_g=yes
4208fi
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4210fi
5213506e 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4212fi
5213506e
RW
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4218if test "$ac_test_CFLAGS" = set; then
4219 CFLAGS=$ac_save_CFLAGS
4220elif test $ac_cv_prog_cc_g = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="-g -O2"
4223 else
4224 CFLAGS="-g"
4225 fi
4226else
4227 if test "$GCC" = yes; then
4228 CFLAGS="-O2"
4229 else
4230 CFLAGS=
4231 fi
4232fi
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4235if test "${ac_cv_prog_cc_c89+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
38d24731 4237else
5213506e 4238 ac_cv_prog_cc_c89=no
38d24731 4239ac_save_CC=$CC
5213506e 4240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4241/* end confdefs.h. */
38d24731
RW
4242#include <stdarg.h>
4243#include <stdio.h>
4244#include <sys/types.h>
4245#include <sys/stat.h>
4246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247struct buf { int x; };
4248FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249static char *e (p, i)
4250 char **p;
4251 int i;
4252{
4253 return p[i];
4254}
4255static char *f (char * (*g) (char **, int), char **p, ...)
4256{
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4263}
f489fba1 4264
38d24731
RW
4265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
5213506e 4268 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4271 that's true only with -std. */
38d24731
RW
4272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273
5213506e
RW
4274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276#define FOO(x) 'x'
4277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278
38d24731
RW
4279int test (int i, double x);
4280struct s1 {int (*f) (int a);};
4281struct s2 {int (*f) (double a);};
4282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283int argc;
4284char **argv;
f489fba1
FXC
4285int
4286main ()
4287{
38d24731 4288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4289 ;
4290 return 0;
4291}
4292_ACEOF
5213506e
RW
4293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4295do
4296 CC="$ac_save_CC $ac_arg"
5213506e
RW
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
38d24731 4299fi
5213506e
RW
4300rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4302done
5213506e 4303rm -f conftest.$ac_ext
38d24731
RW
4304CC=$ac_save_CC
4305
4306fi
5213506e
RW
4307# AC_CACHE_VAL
4308case "x$ac_cv_prog_cc_c89" in
4309 x)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311$as_echo "none needed" >&6; } ;;
4312 xno)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314$as_echo "unsupported" >&6; } ;;
38d24731 4315 *)
5213506e
RW
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4319esac
5213506e 4320if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4321
4322fi
6de9cd9a 4323
6de9cd9a
DN
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4329
679c0f9a
TT
4330depcc="$CC" am_compiler_list=
4331
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4333$as_echo_n "checking dependency style of $depcc... " >&6; }
4334if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
679c0f9a
TT
4336else
4337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4338 # We make a subdir and do the tests there. Otherwise we can end up
4339 # making bogus files that we don't know about and never remove. For
4340 # instance it was reported that on HP-UX the gcc test will end up
4341 # making a dummy file named `D' -- because `-MD' means `put the output
4342 # in D'.
4343 mkdir conftest.dir
4344 # Copy depcomp to subdir because otherwise we won't find it if we're
4345 # using a relative directory.
4346 cp "$am_depcomp" conftest.dir
4347 cd conftest.dir
4348 # We will build objects and dependencies in a subdirectory because
4349 # it helps to detect inapplicable dependency modes. For instance
4350 # both Tru64's cc and ICC support -MD to output dependencies as a
4351 # side effect of compilation, but ICC will put the dependencies in
4352 # the current directory while Tru64 will put them in the object
4353 # directory.
4354 mkdir sub
4355
4356 am_cv_CC_dependencies_compiler_type=none
4357 if test "$am_compiler_list" = ""; then
4358 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4359 fi
5213506e
RW
4360 am__universal=false
4361 case " $depcc " in #(
4362 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4363 esac
4364
679c0f9a
TT
4365 for depmode in $am_compiler_list; do
4366 # Setup a source with many dependencies, because some compilers
4367 # like to wrap large dependency lists on column 80 (with \), and
4368 # we should not choose a depcomp mode which is confused by this.
4369 #
4370 # We need to recreate these files for each test, as the compiler may
4371 # overwrite some of them when testing with obscure command lines.
4372 # This happens at least with the AIX C compiler.
4373 : > sub/conftest.c
4374 for i in 1 2 3 4 5 6; do
4375 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4376 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4377 # Solaris 8's {/usr,}/bin/sh.
4378 touch sub/conftst$i.h
4379 done
4380 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4381
5213506e
RW
4382 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4383 # mode. It turns out that the SunPro C++ compiler does not properly
4384 # handle `-M -o', and we need to detect this. Also, some Intel
4385 # versions had trouble with output in subdirs
4386 am__obj=sub/conftest.${OBJEXT-o}
4387 am__minus_obj="-o $am__obj"
679c0f9a 4388 case $depmode in
5213506e
RW
4389 gcc)
4390 # This depmode causes a compiler race in universal mode.
4391 test "$am__universal" = false || continue
4392 ;;
679c0f9a
TT
4393 nosideeffect)
4394 # after this tag, mechanisms are not by side-effect, so they'll
4395 # only be used when explicitly requested
4396 if test "x$enable_dependency_tracking" = xyes; then
4397 continue
4398 else
4399 break
4400 fi
4401 ;;
82a4f54c 4402 msvisualcpp | msvcmsys)
5213506e
RW
4403 # This compiler won't grok `-c -o', but also, the minuso test has
4404 # not run yet. These depmodes are late enough in the game, and
4405 # so weak that their functioning should not be impacted.
4406 am__obj=conftest.${OBJEXT-o}
4407 am__minus_obj=
4408 ;;
679c0f9a
TT
4409 none) break ;;
4410 esac
679c0f9a 4411 if depmode=$depmode \
5213506e 4412 source=sub/conftest.c object=$am__obj \
679c0f9a 4413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4414 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4415 >/dev/null 2>conftest.err &&
5213506e 4416 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4418 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4420 # icc doesn't choke on unknown options, it will just issue warnings
4421 # or remarks (even with -Werror). So we grep stderr for any message
4422 # that says an option was ignored or not supported.
4423 # When given -MP, icc 7.0 and 7.1 complain thusly:
4424 # icc: Command line warning: ignoring option '-M'; no argument required
4425 # The diagnosis changed in icc 8.0:
4426 # icc: Command line remark: option '-MP' not supported
4427 if (grep 'ignoring option' conftest.err ||
4428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4429 am_cv_CC_dependencies_compiler_type=$depmode
4430 break
4431 fi
4432 fi
4433 done
4434
4435 cd ..
4436 rm -rf conftest.dir
4437else
4438 am_cv_CC_dependencies_compiler_type=none
4439fi
4440
4441fi
5213506e
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4443$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4444CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4445
5213506e 4446 if
679c0f9a
TT
4447 test "x$enable_dependency_tracking" != xno \
4448 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4449 am__fastdepCC_TRUE=
4450 am__fastdepCC_FALSE='#'
4451else
4452 am__fastdepCC_TRUE='#'
4453 am__fastdepCC_FALSE=
4454fi
4455
6de9cd9a 4456
6de9cd9a 4457
21be0a5a
JB
4458ac_ext=c
4459ac_cpp='$CPP $CPPFLAGS'
4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4464$as_echo_n "checking how to run the C preprocessor... " >&6; }
4465# On Suns, sometimes $CPP names a directory.
4466if test -n "$CPP" && test -d "$CPP"; then
4467 CPP=
6de9cd9a 4468fi
21be0a5a
JB
4469if test -z "$CPP"; then
4470 if test "${ac_cv_prog_CPP+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472else
4473 # Double quotes because CPP needs to be expanded
4474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4475 do
4476 ac_preproc_ok=false
4477for ac_c_preproc_warn_flag in '' yes
4478do
4479 # Use a header file that comes with gcc, so configuring glibc
4480 # with a fresh cross-compiler works.
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 # <limits.h> exists even on freestanding compilers.
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
4484 # not just through cpp. "Syntax error" is here to catch this case.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4486/* end confdefs.h. */
21be0a5a
JB
4487#ifdef __STDC__
4488# include <limits.h>
4489#else
4490# include <assert.h>
4491#endif
4492 Syntax error
c0e7e2bf 4493_ACEOF
21be0a5a
JB
4494if ac_fn_c_try_cpp "$LINENO"; then :
4495
49ea7a0e 4496else
21be0a5a
JB
4497 # Broken: fails on valid input.
4498continue
49ea7a0e 4499fi
21be0a5a 4500rm -f conftest.err conftest.$ac_ext
49ea7a0e 4501
21be0a5a
JB
4502 # OK, works on sane cases. Now check whether nonexistent headers
4503 # can be detected and how.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
4506#include <ac_nonexistent.h>
49ea7a0e 4507_ACEOF
21be0a5a
JB
4508if ac_fn_c_try_cpp "$LINENO"; then :
4509 # Broken: success on invalid input.
4510continue
c0e7e2bf 4511else
21be0a5a
JB
4512 # Passes both tests.
4513ac_preproc_ok=:
4514break
49ea7a0e 4515fi
21be0a5a
JB
4516rm -f conftest.err conftest.$ac_ext
4517
4518done
4519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520rm -f conftest.err conftest.$ac_ext
4521if $ac_preproc_ok; then :
4522 break
c0e7e2bf
JB
4523fi
4524
21be0a5a
JB
4525 done
4526 ac_cv_prog_CPP=$CPP
4527
4528fi
4529 CPP=$ac_cv_prog_CPP
49ea7a0e 4530else
21be0a5a 4531 ac_cv_prog_CPP=$CPP
49ea7a0e 4532fi
21be0a5a
JB
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4534$as_echo "$CPP" >&6; }
4535ac_preproc_ok=false
4536for ac_c_preproc_warn_flag in '' yes
4537do
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546#ifdef __STDC__
4547# include <limits.h>
4548#else
4549# include <assert.h>
4550#endif
4551 Syntax error
4552_ACEOF
4553if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4554
49ea7a0e 4555else
21be0a5a
JB
4556 # Broken: fails on valid input.
4557continue
49ea7a0e 4558fi
21be0a5a 4559rm -f conftest.err conftest.$ac_ext
49ea7a0e 4560
21be0a5a
JB
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4564/* end confdefs.h. */
21be0a5a 4565#include <ac_nonexistent.h>
c049309d 4566_ACEOF
21be0a5a
JB
4567if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4569continue
c049309d 4570else
21be0a5a
JB
4571 # Passes both tests.
4572ac_preproc_ok=:
4573break
c049309d 4574fi
21be0a5a
JB
4575rm -f conftest.err conftest.$ac_ext
4576
4577done
4578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579rm -f conftest.err conftest.$ac_ext
4580if $ac_preproc_ok; then :
4581
c049309d 4582else
21be0a5a
JB
4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585as_fn_error "C preprocessor \"$CPP\" fails sanity check
4586See \`config.log' for more details." "$LINENO" 5; }
c049309d 4587fi
c049309d 4588
21be0a5a
JB
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
c049309d 4594
21be0a5a
JB
4595
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4597$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4598if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4599 $as_echo_n "(cached) " >&6
6de9cd9a 4600else
21be0a5a
JB
4601 if test -z "$GREP"; then
4602 ac_path_GREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
21be0a5a 4609 for ac_prog in grep ggrep; do
5213506e 4610 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4613# Check for GNU ac_path_GREP and select it if it is found.
4614 # Check for GNU $ac_path_GREP
4615case `"$ac_path_GREP" --version 2>&1` in
4616*GNU*)
4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4618*)
4619 ac_count=0
4620 $as_echo_n 0123456789 >"conftest.in"
4621 while :
4622 do
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo 'GREP' >> "conftest.nl"
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_GREP="$ac_path_GREP"
4633 ac_path_GREP_max=$ac_count
4634 fi
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
5213506e 4637 done
21be0a5a
JB
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639esac
6de9cd9a 4640
21be0a5a
JB
4641 $ac_path_GREP_found && break 3
4642 done
4643 done
4644 done
4645IFS=$as_save_IFS
4646 if test -z "$ac_cv_path_GREP"; then
4647 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648 fi
6de9cd9a 4649else
21be0a5a 4650 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4651fi
4652
6de9cd9a 4653fi
21be0a5a
JB
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4655$as_echo "$ac_cv_path_GREP" >&6; }
4656 GREP="$ac_cv_path_GREP"
6de9cd9a 4657
21be0a5a
JB
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4660$as_echo_n "checking for egrep... " >&6; }
4661if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4662 $as_echo_n "(cached) " >&6
6de9cd9a 4663else
21be0a5a
JB
4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665 then ac_cv_path_EGREP="$GREP -E"
4666 else
4667 if test -z "$EGREP"; then
4668 ac_path_EGREP_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
21be0a5a 4675 for ac_prog in egrep; do
5213506e 4676 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4679# Check for GNU ac_path_EGREP and select it if it is found.
4680 # Check for GNU $ac_path_EGREP
4681case `"$ac_path_EGREP" --version 2>&1` in
4682*GNU*)
4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4684*)
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4688 do
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'EGREP' >> "conftest.nl"
4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_EGREP="$ac_path_EGREP"
4699 ac_path_EGREP_max=$ac_count
4700 fi
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
5213506e 4703 done
21be0a5a
JB
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705esac
6de9cd9a 4706
21be0a5a
JB
4707 $ac_path_EGREP_found && break 3
4708 done
4709 done
4710 done
4711IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_EGREP"; then
4713 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4714 fi
6de9cd9a 4715else
21be0a5a 4716 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4717fi
4718
21be0a5a 4719 fi
6de9cd9a 4720fi
21be0a5a
JB
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4722$as_echo "$ac_cv_path_EGREP" >&6; }
4723 EGREP="$ac_cv_path_EGREP"
4724
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4727$as_echo_n "checking for ANSI C header files... " >&6; }
4728if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4729 $as_echo_n "(cached) " >&6
6de9cd9a 4730else
21be0a5a
JB
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
4733#include <stdlib.h>
4734#include <stdarg.h>
4735#include <string.h>
4736#include <float.h>
4737
4738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_header_stdc=yes
6de9cd9a 4748else
21be0a5a
JB
4749 ac_cv_header_stdc=no
4750fi
4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4752
21be0a5a
JB
4753if test $ac_cv_header_stdc = yes; then
4754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h. */
4757#include <string.h>
4758
4759_ACEOF
4760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 $EGREP "memchr" >/dev/null 2>&1; then :
4762
4763else
4764 ac_cv_header_stdc=no
6de9cd9a 4765fi
21be0a5a
JB
4766rm -f conftest*
4767
6de9cd9a 4768fi
21be0a5a
JB
4769
4770if test $ac_cv_header_stdc = yes; then
4771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
4774#include <stdlib.h>
4775
4776_ACEOF
4777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "free" >/dev/null 2>&1; then :
4779
6de9cd9a 4780else
21be0a5a 4781 ac_cv_header_stdc=no
6de9cd9a 4782fi
21be0a5a 4783rm -f conftest*
6de9cd9a 4784
6de9cd9a
DN
4785fi
4786
21be0a5a
JB
4787if test $ac_cv_header_stdc = yes; then
4788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4789 if test "$cross_compiling" = yes; then :
4790 :
4791else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h. */
4794#include <ctype.h>
4795#include <stdlib.h>
4796#if ((' ' & 0x0FF) == 0x020)
4797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4799#else
4800# define ISLOWER(c) \
4801 (('a' <= (c) && (c) <= 'i') \
4802 || ('j' <= (c) && (c) <= 'r') \
4803 || ('s' <= (c) && (c) <= 'z'))
4804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4805#endif
4806
4807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4808int
4809main ()
4810{
4811 int i;
4812 for (i = 0; i < 256; i++)
4813 if (XOR (islower (i), ISLOWER (i))
4814 || toupper (i) != TOUPPER (i))
4815 return 2;
4816 return 0;
4817}
4818_ACEOF
4819if ac_fn_c_try_run "$LINENO"; then :
4820
4821else
4822 ac_cv_header_stdc=no
4823fi
4824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4825 conftest.$ac_objext conftest.beam conftest.$ac_ext
4826fi
4827
4828fi
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4831$as_echo "$ac_cv_header_stdc" >&6; }
4832if test $ac_cv_header_stdc = yes; then
4833
4834$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4835
4836fi
4837
4838# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4839for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4840 inttypes.h stdint.h unistd.h
4841do :
4842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4843ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4844"
4845eval as_val=\$$as_ac_Header
4846 if test "x$as_val" = x""yes; then :
4847 cat >>confdefs.h <<_ACEOF
4848#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4849_ACEOF
4850
4851fi
4852
4853done
4854
4855
4856
4857 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4858if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4859 MINIX=yes
4860else
4861 MINIX=
4862fi
4863
4864
4865 if test "$MINIX" = yes; then
4866
4867$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4868
4869
4870$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4871
4872
4873$as_echo "#define _MINIX 1" >>confdefs.h
4874
4875 fi
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4879$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4880if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h. */
4885
4886# define __EXTENSIONS__ 1
4887 $ac_includes_default
4888int
4889main ()
4890{
4891
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_safe_to_define___extensions__=yes
4898else
4899 ac_cv_safe_to_define___extensions__=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902fi
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4904$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4905 test $ac_cv_safe_to_define___extensions__ = yes &&
4906 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4907
4908 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4909
4910 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4911
4912 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4913
4914 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4915
4916
4917
4918# Calculate toolexeclibdir
4919# Also toolexecdir, though it's only used in toolexeclibdir
4920case ${version_specific_libs} in
4921 yes)
4922 # Need the gcc compiler version to know where to install libraries
4923 # and header files if --enable-version-specific-runtime-libs option
4924 # is selected.
4925 toolexecdir='$(libdir)/gcc/$(target_alias)'
4926 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4927 ;;
4928 no)
4929 if test -n "$with_cross_host" &&
4930 test x"$with_cross_host" != x"no"; then
4931 # Install a library built with a cross compiler in tooldir, not libdir.
4932 toolexecdir='$(exec_prefix)/$(target_alias)'
4933 toolexeclibdir='$(toolexecdir)/lib'
4934 else
4935 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4936 toolexeclibdir='$(libdir)'
4937 fi
4938 multi_os_directory=`$CC -print-multi-os-directory`
4939 case $multi_os_directory in
4940 .) ;; # Avoid trailing /.
4941 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4942 esac
4943 ;;
4944esac
4945
4946
4947
4948# Create a spec file, so that compile/link tests don't fail
4949test -f libgfortran.spec || touch libgfortran.spec
4950
60858d8a
TB
4951ac_ext=c
4952ac_cpp='$CPP $CPPFLAGS'
4953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956
21be0a5a
JB
4957# Check the compiler.
4958# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4959# We must force CC to /not/ be precious variables; otherwise
4960# the wrong, non-multilib-adjusted value will be used in multilibs.
4961# As a side effect, we have to subst CFLAGS ourselves.
4962
4963
4964
4965ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4972set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4975if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4976 $as_echo_n "(cached) " >&6
6de9cd9a 4977else
21be0a5a
JB
4978 if test -n "$CC"; then
4979 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4980else
96b8a615
AJ
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
5213506e
RW
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 4988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
4990 break 2
4991 fi
4992done
5213506e
RW
4993 done
4994IFS=$as_save_IFS
6de9cd9a 4995
6de9cd9a 4996fi
96b8a615 4997fi
21be0a5a
JB
4998CC=$ac_cv_prog_CC
4999if test -n "$CC"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001$as_echo "$CC" >&6; }
96b8a615 5002else
5213506e
RW
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
96b8a615 5005fi
6de9cd9a 5006
5213506e 5007
6de9cd9a 5008fi
21be0a5a
JB
5009if test -z "$ac_cv_prog_CC"; then
5010 ac_ct_CC=$CC
5011 # Extract the first word of "gcc", so it can be a program name with args.
5012set dummy gcc; ac_word=$2
5213506e
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 5015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 5016 $as_echo_n "(cached) " >&6
6de9cd9a 5017else
21be0a5a
JB
5018 if test -n "$ac_ct_CC"; then
5019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5020else
96b8a615
AJ
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5213506e
RW
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5028 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5030 break 2
5031 fi
5032done
5213506e
RW
5033 done
5034IFS=$as_save_IFS
6de9cd9a 5035
6de9cd9a 5036fi
6de9cd9a 5037fi
21be0a5a
JB
5038ac_ct_CC=$ac_cv_prog_ac_ct_CC
5039if test -n "$ac_ct_CC"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5041$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5042else
5213506e
RW
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
6de9cd9a
DN
5045fi
5046
21be0a5a
JB
5047 if test "x$ac_ct_CC" = x; then
5048 CC=""
5213506e
RW
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051yes:)
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054ac_tool_warned=yes ;;
5055esac
21be0a5a 5056 CC=$ac_ct_CC
5213506e 5057 fi
96b8a615 5058else
21be0a5a 5059 CC="$ac_cv_prog_CC"
6de9cd9a 5060fi
96b8a615 5061
21be0a5a
JB
5062if test -z "$CC"; then
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5065set dummy ${ac_tool_prefix}cc; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 5069 $as_echo_n "(cached) " >&6
6de9cd9a 5070else
21be0a5a
JB
5071 if test -n "$CC"; then
5072 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5073else
21be0a5a
JB
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_CC="${ac_tool_prefix}cc"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086 done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091CC=$ac_cv_prog_CC
5092if test -n "$CC"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5094$as_echo "$CC" >&6; }
5095else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101 fi
5102fi
5103if test -z "$CC"; then
5104 # Extract the first word of "cc", so it can be a program name with args.
5105set dummy cc; ac_word=$2
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107$as_echo_n "checking for $ac_word... " >&6; }
5108if test "${ac_cv_prog_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110else
5111 if test -n "$CC"; then
5112 ac_cv_prog_CC="$CC" # Let the user override the test.
5113else
5114 ac_prog_rejected=no
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5123 ac_prog_rejected=yes
5124 continue
5125 fi
5126 ac_cv_prog_CC="cc"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130done
5131 done
5132IFS=$as_save_IFS
5133
5134if test $ac_prog_rejected = yes; then
5135 # We found a bogon in the path, so make sure we never use it.
5136 set dummy $ac_cv_prog_CC
5137 shift
5138 if test $# != 0; then
5139 # We chose a different compiler from the bogus one.
5140 # However, it has the same basename, so the bogon will be chosen
5141 # first if we set CC to just the basename; use the full file name.
5142 shift
5143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5144 fi
5145fi
5146fi
5147fi
5148CC=$ac_cv_prog_CC
5149if test -n "$CC"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5151$as_echo "$CC" >&6; }
5152else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157
5158fi
5159if test -z "$CC"; then
5160 if test -n "$ac_tool_prefix"; then
5161 for ac_prog in cl.exe
5162 do
5163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if test "${ac_cv_prog_CC+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169else
5170 if test -n "$CC"; then
5171 ac_cv_prog_CC="$CC" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184done
5185 done
5186IFS=$as_save_IFS
5187
5188fi
5189fi
5190CC=$ac_cv_prog_CC
5191if test -n "$CC"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5193$as_echo "$CC" >&6; }
5194else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199
5200 test -n "$CC" && break
5201 done
5202fi
5203if test -z "$CC"; then
5204 ac_ct_CC=$CC
5205 for ac_prog in cl.exe
5206do
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208set dummy $ac_prog; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 if test -n "$ac_ct_CC"; then
5215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_prog_ac_ct_CC="$ac_prog"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229 done
5230IFS=$as_save_IFS
5231
5232fi
5233fi
5234ac_ct_CC=$ac_cv_prog_ac_ct_CC
5235if test -n "$ac_ct_CC"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5237$as_echo "$ac_ct_CC" >&6; }
5238else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240$as_echo "no" >&6; }
5241fi
5242
5243
5244 test -n "$ac_ct_CC" && break
5245done
5246
5247 if test "x$ac_ct_CC" = x; then
5248 CC=""
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251yes:)
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254ac_tool_warned=yes ;;
5255esac
5256 CC=$ac_ct_CC
5257 fi
5258fi
5259
5260fi
5261
5262
5263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5265as_fn_error "no acceptable C compiler found in \$PATH
5266See \`config.log' for more details." "$LINENO" 5; }
5267
5268# Provide some information about the compiler.
5269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5270set X $ac_compile
5271ac_compiler=$2
5272for ac_option in --version -v -V -qversion; do
5273 { { ac_try="$ac_compiler $ac_option >&5"
5274case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279$as_echo "$ac_try_echo"; } >&5
5280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5281 ac_status=$?
5282 if test -s conftest.err; then
5283 sed '10a\
5284... rest of stderr output deleted ...
5285 10q' conftest.err >conftest.er1
5286 cat conftest.er1 >&5
5287 rm -f conftest.er1 conftest.err
5288 fi
5289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5290 test $ac_status = 0; }
5291done
5292
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5295if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300
5301int
5302main ()
5303{
5304#ifndef __GNUC__
5305 choke me
5306#endif
5307
5308 ;
5309 return 0;
5310}
5311_ACEOF
5312if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_compiler_gnu=yes
5314else
5315 ac_compiler_gnu=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318ac_cv_c_compiler_gnu=$ac_compiler_gnu
5319
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5322$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5323if test $ac_compiler_gnu = yes; then
5324 GCC=yes
5325else
5326 GCC=
5327fi
5328ac_test_CFLAGS=${CFLAGS+set}
5329ac_save_CFLAGS=$CFLAGS
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5331$as_echo_n "checking whether $CC accepts -g... " >&6; }
5332if test "${ac_cv_prog_cc_g+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 ac_save_c_werror_flag=$ac_c_werror_flag
5336 ac_c_werror_flag=yes
5337 ac_cv_prog_cc_g=no
5338 CFLAGS="-g"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h. */
5341
5342int
5343main ()
5344{
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_prog_cc_g=yes
5352else
5353 CFLAGS=""
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356
5357int
5358main ()
5359{
5360
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"; then :
5366
5367else
5368 ac_c_werror_flag=$ac_save_c_werror_flag
5369 CFLAGS="-g"
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372
5373int
5374main ()
5375{
5376
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_prog_cc_g=yes
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_c_werror_flag=$ac_save_c_werror_flag
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5392$as_echo "$ac_cv_prog_cc_g" >&6; }
5393if test "$ac_test_CFLAGS" = set; then
5394 CFLAGS=$ac_save_CFLAGS
5395elif test $ac_cv_prog_cc_g = yes; then
5396 if test "$GCC" = yes; then
5397 CFLAGS="-g -O2"
5398 else
5399 CFLAGS="-g"
5400 fi
5401else
5402 if test "$GCC" = yes; then
5403 CFLAGS="-O2"
5404 else
5405 CFLAGS=
5406 fi
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5409$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5410if test "${ac_cv_prog_cc_c89+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412else
5413 ac_cv_prog_cc_c89=no
5414ac_save_CC=$CC
5415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h. */
5417#include <stdarg.h>
5418#include <stdio.h>
5419#include <sys/types.h>
5420#include <sys/stat.h>
5421/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5422struct buf { int x; };
5423FILE * (*rcsopen) (struct buf *, struct stat *, int);
5424static char *e (p, i)
5425 char **p;
5426 int i;
5427{
5428 return p[i];
5429}
5430static char *f (char * (*g) (char **, int), char **p, ...)
5431{
5432 char *s;
5433 va_list v;
5434 va_start (v,p);
5435 s = g (p, va_arg (v,int));
5436 va_end (v);
5437 return s;
5438}
5439
5440/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5441 function prototypes and stuff, but not '\xHH' hex character constants.
5442 These don't provoke an error unfortunately, instead are silently treated
5443 as 'x'. The following induces an error, until -std is added to get
5444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5445 array size at least. It's necessary to write '\x00'==0 to get something
5446 that's true only with -std. */
5447int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5448
5449/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5450 inside strings and character constants. */
5451#define FOO(x) 'x'
5452int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5453
5454int test (int i, double x);
5455struct s1 {int (*f) (int a);};
5456struct s2 {int (*f) (double a);};
5457int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5458int argc;
5459char **argv;
5460int
5461main ()
5462{
5463return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5464 ;
5465 return 0;
5466}
5467_ACEOF
5468for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5469 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5470do
5471 CC="$ac_save_CC $ac_arg"
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_prog_cc_c89=$ac_arg
5474fi
5475rm -f core conftest.err conftest.$ac_objext
5476 test "x$ac_cv_prog_cc_c89" != "xno" && break
5477done
5478rm -f conftest.$ac_ext
5479CC=$ac_save_CC
5480
5481fi
5482# AC_CACHE_VAL
5483case "x$ac_cv_prog_cc_c89" in
5484 x)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5486$as_echo "none needed" >&6; } ;;
5487 xno)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5489$as_echo "unsupported" >&6; } ;;
5490 *)
5491 CC="$CC $ac_cv_prog_cc_c89"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5493$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5494esac
5495if test "x$ac_cv_prog_cc_c89" != xno; then :
5496
5497fi
5498
5499ac_ext=c
5500ac_cpp='$CPP $CPPFLAGS'
5501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504
5505depcc="$CC" am_compiler_list=
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5508$as_echo_n "checking dependency style of $depcc... " >&6; }
5509if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5513 # We make a subdir and do the tests there. Otherwise we can end up
5514 # making bogus files that we don't know about and never remove. For
5515 # instance it was reported that on HP-UX the gcc test will end up
5516 # making a dummy file named `D' -- because `-MD' means `put the output
5517 # in D'.
5518 mkdir conftest.dir
5519 # Copy depcomp to subdir because otherwise we won't find it if we're
5520 # using a relative directory.
5521 cp "$am_depcomp" conftest.dir
5522 cd conftest.dir
5523 # We will build objects and dependencies in a subdirectory because
5524 # it helps to detect inapplicable dependency modes. For instance
5525 # both Tru64's cc and ICC support -MD to output dependencies as a
5526 # side effect of compilation, but ICC will put the dependencies in
5527 # the current directory while Tru64 will put them in the object
5528 # directory.
5529 mkdir sub
5530
5531 am_cv_CC_dependencies_compiler_type=none
5532 if test "$am_compiler_list" = ""; then
5533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5534 fi
5535 am__universal=false
5536 case " $depcc " in #(
5537 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5538 esac
5539
5540 for depmode in $am_compiler_list; do
5541 # Setup a source with many dependencies, because some compilers
5542 # like to wrap large dependency lists on column 80 (with \), and
5543 # we should not choose a depcomp mode which is confused by this.
5544 #
5545 # We need to recreate these files for each test, as the compiler may
5546 # overwrite some of them when testing with obscure command lines.
5547 # This happens at least with the AIX C compiler.
5548 : > sub/conftest.c
5549 for i in 1 2 3 4 5 6; do
5550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5551 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5552 # Solaris 8's {/usr,}/bin/sh.
5553 touch sub/conftst$i.h
5554 done
5555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5556
5557 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5558 # mode. It turns out that the SunPro C++ compiler does not properly
5559 # handle `-M -o', and we need to detect this. Also, some Intel
5560 # versions had trouble with output in subdirs
5561 am__obj=sub/conftest.${OBJEXT-o}
5562 am__minus_obj="-o $am__obj"
5563 case $depmode in
5564 gcc)
5565 # This depmode causes a compiler race in universal mode.
5566 test "$am__universal" = false || continue
5567 ;;
5568 nosideeffect)
5569 # after this tag, mechanisms are not by side-effect, so they'll
5570 # only be used when explicitly requested
5571 if test "x$enable_dependency_tracking" = xyes; then
5572 continue
5573 else
5574 break
5575 fi
5576 ;;
82a4f54c 5577 msvisualcpp | msvcmsys)
21be0a5a
JB
5578 # This compiler won't grok `-c -o', but also, the minuso test has
5579 # not run yet. These depmodes are late enough in the game, and
5580 # so weak that their functioning should not be impacted.
5581 am__obj=conftest.${OBJEXT-o}
5582 am__minus_obj=
5583 ;;
5584 none) break ;;
5585 esac
5586 if depmode=$depmode \
5587 source=sub/conftest.c object=$am__obj \
5588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5589 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5590 >/dev/null 2>conftest.err &&
5591 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5593 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5594 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5595 # icc doesn't choke on unknown options, it will just issue warnings
5596 # or remarks (even with -Werror). So we grep stderr for any message
5597 # that says an option was ignored or not supported.
5598 # When given -MP, icc 7.0 and 7.1 complain thusly:
5599 # icc: Command line warning: ignoring option '-M'; no argument required
5600 # The diagnosis changed in icc 8.0:
5601 # icc: Command line remark: option '-MP' not supported
5602 if (grep 'ignoring option' conftest.err ||
5603 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5604 am_cv_CC_dependencies_compiler_type=$depmode
5605 break
5606 fi
5607 fi
5608 done
5609
5610 cd ..
5611 rm -rf conftest.dir
5612else
5613 am_cv_CC_dependencies_compiler_type=none
5614fi
5615
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5618$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5619CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5620
5621 if
5622 test "x$enable_dependency_tracking" != xno \
5623 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5624 am__fastdepCC_TRUE=
5625 am__fastdepCC_FALSE='#'
5626else
5627 am__fastdepCC_TRUE='#'
5628 am__fastdepCC_FALSE=
5629fi
5630
5631
5632
5633
60858d8a
TB
5634
5635
5636if test "x$CC" != xcc; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5638$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5639else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5641$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5642fi
5643set dummy $CC; ac_cc=`$as_echo "$2" |
5644 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5646 $as_echo_n "(cached) " >&6
5647else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650
5651int
5652main ()
5653{
5654
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659# Make sure it works both with $CC and with simple cc.
5660# We do the test twice because some compilers refuse to overwrite an
5661# existing .o file with -o, though they will create one.
5662ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663rm -f conftest2.*
5664if { { case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669$as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_try") 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } &&
5674 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679$as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; };
5684then
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5686 if test "x$CC" != xcc; then
5687 # Test first that cc exists at all.
5688 if { ac_try='cc -c conftest.$ac_ext >&5'
5689 { { case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692esac
5693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5694$as_echo "$ac_try_echo"; } >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }; }; then
5699 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5700 rm -f conftest2.*
5701 if { { case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706$as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; } &&
5711 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716$as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; };
5721 then
5722 # cc works too.
5723 :
5724 else
5725 # cc exists but doesn't like -o.
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727 fi
5728 fi
5729 fi
5730else
5731 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5732fi
5733rm -f core conftest*
5734
5735fi
5736if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738$as_echo "yes" >&6; }
5739else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742
5743$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5744
5745fi
5746
5747# FIXME: we rely on the cache variable name because
5748# there is no other way.
5749set dummy $CC
5750am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5751eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5752if test "$am_t" != yes; then
5753 # Losing compiler, so override with the script.
5754 # FIXME: It is wrong to rewrite CC.
5755 # But if we don't then we get into trouble of one sort or another.
5756 # A longer-term fix would be to have automake use am__CC in this case,
5757 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5758 CC="$am_aux_dir/compile $CC"
5759fi
5760
5761
5762
21be0a5a
JB
5763# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5764if test "x$GCC" = "xyes"; then
5765 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5766 ## We like to use C99 routines when available. This makes sure that
5767 ## __STDC_VERSION__ is set such that libc includes make them available.
5768 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5769 ## Compile the following tests with the same system header contents
5770 ## that we'll encounter when compiling our own source files.
5771 CFLAGS="-std=gnu99 $CFLAGS"
5772fi
5773
5774
5775
5776
5777# Check for symbol versioning (copied from libssp).
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5779$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
5780# Check whether --enable-symvers was given.
5781if test "${enable_symvers+set}" = set; then :
5782 enableval=$enable_symvers; gfortran_use_symver=$enableval
5783else
5784 gfortran_use_symver=yes
5785fi
5786
19af62db 5787if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
5788 save_LDFLAGS="$LDFLAGS"
5789 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5790 cat > conftest.map <<EOF
21be0a5a
JB
5791FOO_1.0 {
5792 global: *foo*; bar; local: *;
5793};
5794EOF
bf382f5f 5795 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5797fi
5798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800int foo;
5801int
5802main ()
5803{
5804
5805 ;
5806 return 0;
5807}
5808_ACEOF
5809if ac_fn_c_try_link "$LINENO"; then :
5810 gfortran_use_symver=gnu
5811else
5812 gfortran_use_symver=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5816 if test x$gfortran_use_symver = xno; then
5817 case "$target_os" in
5818 solaris2*)
5819 LDFLAGS="$save_LDFLAGS"
5820 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5821 # Sun ld cannot handle wildcards and treats all entries as undefined.
5822 cat > conftest.map <<EOF
21be0a5a
JB
5823FOO_1.0 {
5824 global: foo; local: *;
5825};
5826EOF
bf382f5f 5827 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5829fi
5830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h. */
5832int foo;
5833int
5834main ()
5835{
5836
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 gfortran_use_symver=sun
5843else
5844 gfortran_use_symver=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5848 ;;
5849 esac
5850 fi
5851 LDFLAGS="$save_LDFLAGS"
21be0a5a 5852fi
21be0a5a
JB
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5854$as_echo "$gfortran_use_symver" >&6; }
5855 if test "x$gfortran_use_symver" != xno; then
5856 LIBGFOR_USE_SYMVER_TRUE=
5857 LIBGFOR_USE_SYMVER_FALSE='#'
5858else
5859 LIBGFOR_USE_SYMVER_TRUE='#'
5860 LIBGFOR_USE_SYMVER_FALSE=
5861fi
5862
5863 if test "x$gfortran_use_symver" = xgnu; then
5864 LIBGFOR_USE_SYMVER_GNU_TRUE=
5865 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5866else
5867 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5868 LIBGFOR_USE_SYMVER_GNU_FALSE=
5869fi
5870
5871 if test "x$gfortran_use_symver" = xsun; then
5872 LIBGFOR_USE_SYMVER_SUN_TRUE=
5873 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5874else
5875 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5876 LIBGFOR_USE_SYMVER_SUN_FALSE=
5877fi
5878
5879
5880# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5881# similarly to how libstdc++ does it
5882ac_test_CFLAGS="${CFLAGS+set}"
5883ac_save_CFLAGS="$CFLAGS"
5884
5885# Check for -ffunction-sections -fdata-sections
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5887$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5888CFLAGS='-Werror -ffunction-sections -fdata-sections'
5889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895int foo;
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"; then :
5901 ac_fdsections=yes
5902else
5903 ac_fdsections=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906if test "$ac_test_CFLAGS" = set; then
5907 CFLAGS="$ac_save_CFLAGS"
5908else
5909 # this is the suspicious part
5910 CFLAGS=""
5911fi
5912if test x"$ac_fdsections" = x"yes"; then
5913 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5916$as_echo "$ac_fdsections" >&6; }
5917
5918
5919# Find other programs we need.
5920if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5922set dummy ${ac_tool_prefix}as; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if test "${ac_cv_prog_AS+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$AS"; then
5929 ac_cv_prog_AS="$AS" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_AS="${ac_tool_prefix}as"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942done
5943 done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948AS=$ac_cv_prog_AS
5949if test -n "$AS"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5951$as_echo "$AS" >&6; }
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957
5958fi
5959if test -z "$ac_cv_prog_AS"; then
5960 ac_ct_AS=$AS
5961 # Extract the first word of "as", so it can be a program name with args.
5962set dummy as; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
5965if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967else
5968 if test -n "$ac_ct_AS"; then
5969 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_AS="as"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982done
5983 done
5984IFS=$as_save_IFS
5985
5986fi
5987fi
5988ac_ct_AS=$ac_cv_prog_ac_ct_AS
5989if test -n "$ac_ct_AS"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5991$as_echo "$ac_ct_AS" >&6; }
5992else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997 if test "x$ac_ct_AS" = x; then
5998 AS=""
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001yes:)
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004ac_tool_warned=yes ;;
6005esac
6006 AS=$ac_ct_AS
6007 fi
6008else
6009 AS="$ac_cv_prog_AS"
6010fi
6011
6012if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6014set dummy ${ac_tool_prefix}ar; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if test "${ac_cv_prog_AR+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$AR"; then
6021 ac_cv_prog_AR="$AR" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_AR="${ac_tool_prefix}ar"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040AR=$ac_cv_prog_AR
6041if test -n "$AR"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6043$as_echo "$AR" >&6; }
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050fi
6051if test -z "$ac_cv_prog_AR"; then
6052 ac_ct_AR=$AR
6053 # Extract the first word of "ar", so it can be a program name with args.
6054set dummy ar; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 if test -n "$ac_ct_AR"; then
6061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_AR="ar"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075 done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_AR=$ac_cv_prog_ac_ct_AR
6081if test -n "$ac_ct_AR"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6083$as_echo "$ac_ct_AR" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089 if test "x$ac_ct_AR" = x; then
6090 AR=""
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 AR=$ac_ct_AR
6099 fi
6100else
6101 AR="$ac_cv_prog_AR"
6102fi
6103
6104if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if test "${ac_cv_prog_RANLIB+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6111else
6112 if test -n "$RANLIB"; then
6113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126done
6127 done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132RANLIB=$ac_cv_prog_RANLIB
6133if test -n "$RANLIB"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6135$as_echo "$RANLIB" >&6; }
6136else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142fi
6143if test -z "$ac_cv_prog_RANLIB"; then
6144 ac_ct_RANLIB=$RANLIB
6145 # Extract the first word of "ranlib", so it can be a program name with args.
6146set dummy ranlib; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151else
6152 if test -n "$ac_ct_RANLIB"; then
6153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_RANLIB="ranlib"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167 done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173if test -n "$ac_ct_RANLIB"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6175$as_echo "$ac_ct_RANLIB" >&6; }
6176else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
6179fi
6180
6181 if test "x$ac_ct_RANLIB" = x; then
6182 RANLIB="ranlib-not-found-in-path-error"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185yes:)
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188ac_tool_warned=yes ;;
6189esac
6190 RANLIB=$ac_ct_RANLIB
6191 fi
6192else
6193 RANLIB="$ac_cv_prog_RANLIB"
6194fi
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6197$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6198set x ${MAKE-make}
6199ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6200if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6201 $as_echo_n "(cached) " >&6
6202else
6203 cat >conftest.make <<\_ACEOF
6204SHELL = /bin/sh
6205all:
6206 @echo '@@@%%%=$(MAKE)=@@@%%%'
6207_ACEOF
6208# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6209case `${MAKE-make} -f conftest.make 2>/dev/null` in
6210 *@@@%%%=?*=@@@%%%*)
6211 eval ac_cv_prog_make_${ac_make}_set=yes;;
6212 *)
6213 eval ac_cv_prog_make_${ac_make}_set=no;;
6214esac
6215rm -f conftest.make
6216fi
6217if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219$as_echo "yes" >&6; }
6220 SET_MAKE=
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224 SET_MAKE="MAKE=${MAKE-make}"
6225fi
6de9cd9a 6226
6de9cd9a 6227
6de9cd9a 6228
96b8a615
AJ
6229# Configure libtool
6230#AC_MSG_NOTICE([====== Starting libtool configuration])
1cf3d07d
SE
6231enable_dlopen=yes
6232
6233
6234
d58dead8
PG
6235case `pwd` in
6236 *\ * | *\ *)
5213506e
RW
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6238$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
d58dead8 6239esac
1cf3d07d
SE
6240
6241
1cf3d07d 6242
43e02a8a
RW
6243macro_version='2.2.7a'
6244macro_revision='1.3134'
1cf3d07d
SE
6245
6246
6247
6248
6249
6250
6de9cd9a 6251
1cf3d07d
SE
6252
6253
6254
6255
6256
6257
d58dead8 6258ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6259
43e02a8a
RW
6260# Backslashify metacharacters that are still active within
6261# double-quoted strings.
6262sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6263
6264# Same as above, but do not quote variable references.
6265double_quote_subst='s/\(["`\\]\)/\\\1/g'
6266
6267# Sed substitution to delay expansion of an escaped shell variable in a
6268# double_quote_subst'ed string.
6269delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6270
6271# Sed substitution to delay expansion of an escaped single quote.
6272delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6273
6274# Sed substitution to avoid accidental globbing in evaled expressions
6275no_glob_subst='s/\*/\\\*/g'
6276
6277ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6278ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6279ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6280
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6282$as_echo_n "checking how to print strings... " >&6; }
6283# Test print first, because it will be a builtin if present.
6284if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6285 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6286 ECHO='print -r --'
6287elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6288 ECHO='printf %s\n'
6289else
6290 # Use this function as a fallback that always works.
6291 func_fallback_echo ()
6292 {
6293 eval 'cat <<_LTECHO_EOF
6294$1
6295_LTECHO_EOF'
6296 }
6297 ECHO='func_fallback_echo'
6298fi
6299
6300# func_echo_all arg...
6301# Invoke $ECHO with all args, space-separated.
6302func_echo_all ()
6303{
6304 $ECHO ""
6305}
6306
6307case "$ECHO" in
6308 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6309$as_echo "printf" >&6; } ;;
6310 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6311$as_echo "print -r" >&6; } ;;
6312 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6313$as_echo "cat" >&6; } ;;
6314esac
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
21be0a5a
JB
6327
6328
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6330$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6331if test "${ac_cv_path_SED+set}" = set; then :
5213506e 6332 $as_echo_n "(cached) " >&6
1cf3d07d 6333else
21be0a5a
JB
6334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6335 for ac_i in 1 2 3 4 5 6 7; do
6336 ac_script="$ac_script$as_nl$ac_script"
6337 done
6338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6339 { ac_script=; unset ac_script;}
6340 if test -z "$SED"; then
6341 ac_path_SED_found=false
5213506e
RW
6342 # Loop through the user's path and test for each of PROGNAME-LIST
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a 6344for as_dir in $PATH
5213506e
RW
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
21be0a5a 6348 for ac_prog in sed gsed; do
5213506e 6349 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
6350 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6351 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6352# Check for GNU ac_path_SED and select it if it is found.
6353 # Check for GNU $ac_path_SED
6354case `"$ac_path_SED" --version 2>&1` in
5213506e 6355*GNU*)
21be0a5a 6356 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5213506e
RW
6357*)
6358 ac_count=0
6359 $as_echo_n 0123456789 >"conftest.in"
6360 while :
6361 do
6362 cat "conftest.in" "conftest.in" >"conftest.tmp"
6363 mv "conftest.tmp" "conftest.in"
6364 cp "conftest.in" "conftest.nl"
21be0a5a
JB
6365 $as_echo '' >> "conftest.nl"
6366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213506e
RW
6367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6368 as_fn_arith $ac_count + 1 && ac_count=$as_val
21be0a5a 6369 if test $ac_count -gt ${ac_path_SED_max-0}; then
5213506e 6370 # Best one so far, save it but keep looking for a better one
21be0a5a
JB
6371 ac_cv_path_SED="$ac_path_SED"
6372 ac_path_SED_max=$ac_count
38d24731 6373 fi
5213506e
RW
6374 # 10*(2^10) chars as input seems more than enough
6375 test $ac_count -gt 10 && break
6376 done
6377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6378esac
6379
21be0a5a 6380 $ac_path_SED_found && break 3
5213506e
RW
6381 done
6382 done
6383 done
6384IFS=$as_save_IFS
21be0a5a
JB
6385 if test -z "$ac_cv_path_SED"; then
6386 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5213506e
RW
6387 fi
6388else
21be0a5a 6389 ac_cv_path_SED=$SED
5213506e
RW
6390fi
6391
1cf3d07d 6392fi
21be0a5a
JB
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6394$as_echo "$ac_cv_path_SED" >&6; }
6395 SED="$ac_cv_path_SED"
6396 rm -f conftest.sed
6397
6398test -z "$SED" && SED=sed
6399Xsed="$SED -e 1s/^X//"
6400
6401
6402
6403
6404
6405
6406
6407
6408
1cf3d07d
SE
6409
6410
5213506e
RW
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6412$as_echo_n "checking for fgrep... " >&6; }
6413if test "${ac_cv_path_FGREP+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
38d24731 6415else
5213506e
RW
6416 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6417 then ac_cv_path_FGREP="$GREP -F"
6418 else
6419 if test -z "$FGREP"; then
6420 ac_path_FGREP_found=false
6421 # Loop through the user's path and test for each of PROGNAME-LIST
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_prog in fgrep; do
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6430 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6431# Check for GNU ac_path_FGREP and select it if it is found.
6432 # Check for GNU $ac_path_FGREP
6433case `"$ac_path_FGREP" --version 2>&1` in
6434*GNU*)
6435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6436*)
6437 ac_count=0
6438 $as_echo_n 0123456789 >"conftest.in"
6439 while :
6440 do
6441 cat "conftest.in" "conftest.in" >"conftest.tmp"
6442 mv "conftest.tmp" "conftest.in"
6443 cp "conftest.in" "conftest.nl"
6444 $as_echo 'FGREP' >> "conftest.nl"
6445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6447 as_fn_arith $ac_count + 1 && ac_count=$as_val
6448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6449 # Best one so far, save it but keep looking for a better one
6450 ac_cv_path_FGREP="$ac_path_FGREP"
6451 ac_path_FGREP_max=$ac_count
38d24731 6452 fi
5213506e
RW
6453 # 10*(2^10) chars as input seems more than enough
6454 test $ac_count -gt 10 && break
6455 done
6456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6457esac
6458
6459 $ac_path_FGREP_found && break 3
6460 done
6461 done
6462 done
6463IFS=$as_save_IFS
6464 if test -z "$ac_cv_path_FGREP"; then
6465 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6466 fi
6467else
6468 ac_cv_path_FGREP=$FGREP
1cf3d07d 6469fi
5213506e
RW
6470
6471 fi
6472fi
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6474$as_echo "$ac_cv_path_FGREP" >&6; }
6475 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6476
6477
6478test -z "$GREP" && GREP=grep
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
5213506e
RW
6498# Check whether --with-gnu-ld was given.
6499if test "${with_gnu_ld+set}" = set; then :
6500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
96b8a615
AJ
6501else
6502 with_gnu_ld=no
5213506e
RW
6503fi
6504
96b8a615
AJ
6505ac_prog=ld
6506if test "$GCC" = yes; then
6507 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6509$as_echo_n "checking for ld used by $CC... " >&6; }
96b8a615
AJ
6510 case $host in
6511 *-*-mingw*)
6512 # gcc leaves a trailing carriage return which upsets mingw
6513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6514 *)
6515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6516 esac
6517 case $ac_prog in
6518 # Accept absolute paths.
1cf3d07d 6519 [\\/]* | ?:[\\/]*)
96b8a615 6520 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
6521 # Canonicalize the pathname of ld
6522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
96b8a615
AJ
6525 done
6526 test -z "$LD" && LD="$ac_prog"
6527 ;;
6528 "")
6529 # If it fails, then pretend we aren't using GCC.
6530 ac_prog=ld
6531 ;;
6532 *)
6533 # If it is relative, then search for the first ld in PATH.
6534 with_gnu_ld=unknown
6535 ;;
6536 esac
6537elif test "$with_gnu_ld" = yes; then
5213506e
RW
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6539$as_echo_n "checking for GNU ld... " >&6; }
96b8a615 6540else
5213506e
RW
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6542$as_echo_n "checking for non-GNU ld... " >&6; }
96b8a615 6543fi
5213506e
RW
6544if test "${lt_cv_path_LD+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
96b8a615
AJ
6546else
6547 if test -z "$LD"; then
1cf3d07d 6548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
96b8a615 6549 for ac_dir in $PATH; do
1cf3d07d 6550 IFS="$lt_save_ifs"
96b8a615
AJ
6551 test -z "$ac_dir" && ac_dir=.
6552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6553 lt_cv_path_LD="$ac_dir/$ac_prog"
6554 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 6555 # but apparently some variants of GNU ld only accept -v.
96b8a615 6556 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
6557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6558 *GNU* | *'with BFD'*)
96b8a615 6559 test "$with_gnu_ld" != no && break
1cf3d07d
SE
6560 ;;
6561 *)
96b8a615 6562 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
6563 ;;
6564 esac
96b8a615
AJ
6565 fi
6566 done
1cf3d07d 6567 IFS="$lt_save_ifs"
96b8a615
AJ
6568else
6569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6570fi
6571fi
6572
6573LD="$lt_cv_path_LD"
6574if test -n "$LD"; then
5213506e
RW
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6576$as_echo "$LD" >&6; }
96b8a615 6577else
5213506e
RW
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
96b8a615 6580fi
5213506e
RW
6581test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6583$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6584if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
96b8a615 6586else
1cf3d07d
SE
6587 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6588case `$LD -v 2>&1 </dev/null` in
6589*GNU* | *'with BFD'*)
96b8a615 6590 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
6591 ;;
6592*)
96b8a615 6593 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
6594 ;;
6595esac
96b8a615 6596fi
5213506e
RW
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6598$as_echo "$lt_cv_prog_gnu_ld" >&6; }
96b8a615
AJ
6599with_gnu_ld=$lt_cv_prog_gnu_ld
6600
6601
96b8a615 6602
1cf3d07d
SE
6603
6604
6605
6606
6607
6608
5213506e
RW
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6610$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6611if test "${lt_cv_path_NM+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
96b8a615
AJ
6613else
6614 if test -n "$NM"; then
6615 # Let the user override the test.
6616 lt_cv_path_NM="$NM"
6617else
1cf3d07d
SE
6618 lt_nm_to_check="${ac_tool_prefix}nm"
6619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620 lt_nm_to_check="$lt_nm_to_check nm"
6621 fi
6622 for lt_tmp_nm in $lt_nm_to_check; do
6623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625 IFS="$lt_save_ifs"
6626 test -z "$ac_dir" && ac_dir=.
6627 tmp_nm="$ac_dir/$lt_tmp_nm"
6628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6629 # Check to see if the nm accepts a BSD-compat flag.
6630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6631 # nm: unknown option "B" ignored
6632 # Tru64's nm complains that /dev/null is an invalid object file
6633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6634 */dev/null* | *'Invalid file or object type'*)
6635 lt_cv_path_NM="$tmp_nm -B"
6636 break
6637 ;;
6638 *)
6639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640 */dev/null*)
6641 lt_cv_path_NM="$tmp_nm -p"
6642 break
6643 ;;
6644 *)
6645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6646 continue # so that we can try to find one that supports BSD flags
6647 ;;
6648 esac
6649 ;;
6650 esac
6651 fi
6652 done
6653 IFS="$lt_save_ifs"
6654 done
6655 : ${lt_cv_path_NM=no}
6656fi
6657fi
5213506e
RW
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6659$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6660if test "$lt_cv_path_NM" != "no"; then
6661 NM="$lt_cv_path_NM"
6662else
6663 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6664 if test -n "$DUMPBIN"; then :
6665 # Let the user override the test.
6666 else
6667 if test -n "$ac_tool_prefix"; then
6668 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6669 do
6670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6676else
6677 if test -n "$DUMPBIN"; then
6678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
5213506e
RW
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6689 break 2
6690 fi
6691done
5213506e
RW
6692 done
6693IFS=$as_save_IFS
1cf3d07d
SE
6694
6695fi
6696fi
6697DUMPBIN=$ac_cv_prog_DUMPBIN
6698if test -n "$DUMPBIN"; then
5213506e
RW
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6700$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6701else
5213506e
RW
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
1cf3d07d
SE
6704fi
6705
5213506e 6706
1cf3d07d
SE
6707 test -n "$DUMPBIN" && break
6708 done
6709fi
6710if test -z "$DUMPBIN"; then
6711 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6712 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6713do
6714 # Extract the first word of "$ac_prog", so it can be a program name with args.
6715set dummy $ac_prog; ac_word=$2
5213506e
RW
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6720else
6721 if test -n "$ac_ct_DUMPBIN"; then
6722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
5213506e
RW
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6733 break 2
6734 fi
6735done
5213506e
RW
6736 done
6737IFS=$as_save_IFS
1cf3d07d
SE
6738
6739fi
6740fi
6741ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6742if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6744$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6745else
5213506e
RW
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
1cf3d07d
SE
6748fi
6749
5213506e 6750
1cf3d07d
SE
6751 test -n "$ac_ct_DUMPBIN" && break
6752done
1cf3d07d 6753
5213506e
RW
6754 if test "x$ac_ct_DUMPBIN" = x; then
6755 DUMPBIN=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758yes:)
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761ac_tool_warned=yes ;;
6762esac
6763 DUMPBIN=$ac_ct_DUMPBIN
6764 fi
96b8a615 6765fi
1cf3d07d 6766
43e02a8a
RW
6767 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6768 *COFF*)
6769 DUMPBIN="$DUMPBIN -symbols"
6770 ;;
6771 *)
6772 DUMPBIN=:
6773 ;;
6774 esac
6775 fi
1cf3d07d
SE
6776
6777 if test "$DUMPBIN" != ":"; then
6778 NM="$DUMPBIN"
6779 fi
96b8a615 6780fi
1cf3d07d
SE
6781test -z "$NM" && NM=nm
6782
6783
96b8a615 6784
1cf3d07d
SE
6785
6786
6787
5213506e
RW
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6789$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6790if test "${lt_cv_nm_interface+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6792else
6793 lt_cv_nm_interface="BSD nm"
6794 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6795 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6796 (eval "$ac_compile" 2>conftest.err)
6797 cat conftest.err >&5
43e02a8a 6798 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6799 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6800 cat conftest.err >&5
43e02a8a 6801 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6802 cat conftest.out >&5
6803 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6804 lt_cv_nm_interface="MS dumpbin"
6805 fi
6806 rm -f conftest*
6807fi
5213506e
RW
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6809$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6810
5213506e
RW
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6812$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6813LN_S=$as_ln_s
6814if test "$LN_S" = "ln -s"; then
5213506e
RW
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6816$as_echo "yes" >&6; }
96b8a615 6817else
5213506e
RW
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6819$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6820fi
6821
1cf3d07d 6822# find the maximum length of command line arguments
5213506e
RW
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6824$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6825if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6827else
6828 i=0
6829 teststring="ABCD"
6830
6831 case $build_os in
6832 msdosdjgpp*)
6833 # On DJGPP, this test can blow up pretty badly due to problems in libc
6834 # (any single argument exceeding 2000 bytes causes a buffer overrun
6835 # during glob expansion). Even if it were fixed, the result of this
6836 # check would be larger than it should be.
6837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6838 ;;
6839
6840 gnu*)
6841 # Under GNU Hurd, this test is not required because there is
6842 # no limit to the length of command line arguments.
6843 # Libtool will interpret -1 as no limit whatsoever
6844 lt_cv_sys_max_cmd_len=-1;
6845 ;;
6846
d58dead8 6847 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
6848 # On Win9x/ME, this test blows up -- it succeeds, but takes
6849 # about 5 minutes as the teststring grows exponentially.
6850 # Worse, since 9x/ME are not pre-emptively multitasking,
6851 # you end up with a "frozen" computer, even though with patience
6852 # the test eventually succeeds (with a max line length of 256k).
6853 # Instead, let's just punt: use the minimum linelength reported by
6854 # all of the supported platforms: 8192 (on NT/2K/XP).
6855 lt_cv_sys_max_cmd_len=8192;
6856 ;;
6857
43e02a8a
RW
6858 mint*)
6859 # On MiNT this can take a long time and run out of memory.
6860 lt_cv_sys_max_cmd_len=8192;
6861 ;;
6862
1cf3d07d
SE
6863 amigaos*)
6864 # On AmigaOS with pdksh, this test takes hours, literally.
6865 # So we just punt and use a minimum line length of 8192.
6866 lt_cv_sys_max_cmd_len=8192;
6867 ;;
6868
6869 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6870 # This has been around since 386BSD, at least. Likely further.
6871 if test -x /sbin/sysctl; then
6872 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6873 elif test -x /usr/sbin/sysctl; then
6874 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6875 else
6876 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6877 fi
6878 # And add a safety zone
6879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6881 ;;
6882
6883 interix*)
6884 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6885 lt_cv_sys_max_cmd_len=196608
6886 ;;
6887
6888 osf*)
6889 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6890 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6891 # nice to cause kernel panics so lets avoid the loop below.
6892 # First set a reasonable default.
6893 lt_cv_sys_max_cmd_len=16384
6894 #
6895 if test -x /sbin/sysconfig; then
6896 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6897 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6898 esac
6899 fi
6900 ;;
6901 sco3.2v5*)
6902 lt_cv_sys_max_cmd_len=102400
6903 ;;
6904 sysv5* | sco5v6* | sysv4.2uw2*)
6905 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6906 if test -n "$kargmax"; then
6907 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6908 else
6909 lt_cv_sys_max_cmd_len=32768
6910 fi
6911 ;;
6912 *)
d58dead8
PG
6913 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6914 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
6915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917 else
6918 # Make teststring a little bigger before we do anything with it.
6919 # a 1K string should be a reasonable start.
6920 for i in 1 2 3 4 5 6 7 8 ; do
6921 teststring=$teststring$teststring
6922 done
6923 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6924 # If test is not a shell built-in, we'll probably end up computing a
6925 # maximum length that is only half of the actual maximum length, but
6926 # we can't tell.
43e02a8a
RW
6927 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6928 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
6929 test $i != 17 # 1/2 MB should be enough
6930 do
6931 i=`expr $i + 1`
6932 teststring=$teststring$teststring
6933 done
6934 # Only check the string length outside the loop.
6935 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6936 teststring=
6937 # Add a significant safety factor because C++ compilers can tack on
6938 # massive amounts of additional arguments before passing them to the
6939 # linker. It appears as though 1/2 is a usable value.
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6941 fi
1cf3d07d
SE
6942 ;;
6943 esac
6944
6945fi
6946
6947if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6949$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 6950else
5213506e
RW
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6952$as_echo "none" >&6; }
1cf3d07d
SE
6953fi
6954max_cmd_len=$lt_cv_sys_max_cmd_len
6955
6956
6957
6958
6959
6960
1cf3d07d
SE
6961: ${CP="cp -f"}
6962: ${MV="mv -f"}
6963: ${RM="rm -f"}
6964
5213506e
RW
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6966$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
6967# Try some XSI features
6968xsi_shell=no
6969( _lt_dummy="a/b/c"
6970 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
6971 = c,a/b,, \
6972 && eval 'test $(( 1 + 1 )) -eq 2 \
6973 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 6974 && xsi_shell=yes
5213506e
RW
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6976$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
6977
6978
5213506e
RW
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6980$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
6981lt_shell_append=no
6982( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6983 >/dev/null 2>&1 \
6984 && lt_shell_append=yes
5213506e
RW
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6986$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
6987
6988
6989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6990 lt_unset=unset
6991else
6992 lt_unset=false
6993fi
6994
6995
6996
6997
6998
6999# test EBCDIC or ASCII
7000case `echo X|tr X '\101'` in
7001 A) # ASCII based system
7002 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7003 lt_SP2NL='tr \040 \012'
7004 lt_NL2SP='tr \015\012 \040\040'
7005 ;;
7006 *) # EBCDIC based system
7007 lt_SP2NL='tr \100 \n'
7008 lt_NL2SP='tr \r\n \100\100'
7009 ;;
7010esac
7011
7012
7013
7014
7015
7016
7017
7018
7019
5213506e
RW
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7021$as_echo_n "checking for $LD option to reload object files... " >&6; }
7022if test "${lt_cv_ld_reload_flag+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7024else
7025 lt_cv_ld_reload_flag='-r'
7026fi
5213506e
RW
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7028$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7029reload_flag=$lt_cv_ld_reload_flag
7030case $reload_flag in
7031"" | " "*) ;;
7032*) reload_flag=" $reload_flag" ;;
7033esac
7034reload_cmds='$LD$reload_flag -o $output$reload_objs'
7035case $host_os in
7036 darwin*)
7037 if test "$GCC" = yes; then
7038 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7039 else
7040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7041 fi
7042 ;;
7043esac
7044
7045
7046
7047
7048
7049
7050
7051
7052
d58dead8
PG
7053if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
d58dead8
PG
7060else
7061 if test -n "$OBJDUMP"; then
7062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
5213506e
RW
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7071 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7073 break 2
7074 fi
7075done
5213506e
RW
7076 done
7077IFS=$as_save_IFS
d58dead8
PG
7078
7079fi
7080fi
7081OBJDUMP=$ac_cv_prog_OBJDUMP
7082if test -n "$OBJDUMP"; then
5213506e
RW
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7084$as_echo "$OBJDUMP" >&6; }
d58dead8 7085else
5213506e
RW
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
d58dead8
PG
7088fi
7089
5213506e 7090
d58dead8
PG
7091fi
7092if test -z "$ac_cv_prog_OBJDUMP"; then
7093 ac_ct_OBJDUMP=$OBJDUMP
7094 # Extract the first word of "objdump", so it can be a program name with args.
7095set dummy objdump; ac_word=$2
5213506e
RW
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
d58dead8
PG
7100else
7101 if test -n "$ac_ct_OBJDUMP"; then
7102 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
5213506e
RW
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7111 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7113 break 2
7114 fi
7115done
5213506e
RW
7116 done
7117IFS=$as_save_IFS
d58dead8 7118
d58dead8
PG
7119fi
7120fi
7121ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7122if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7124$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7125else
5213506e
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
d58dead8
PG
7128fi
7129
5213506e
RW
7130 if test "x$ac_ct_OBJDUMP" = x; then
7131 OBJDUMP="false"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134yes:)
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137ac_tool_warned=yes ;;
7138esac
7139 OBJDUMP=$ac_ct_OBJDUMP
7140 fi
d58dead8
PG
7141else
7142 OBJDUMP="$ac_cv_prog_OBJDUMP"
7143fi
7144
7145test -z "$OBJDUMP" && OBJDUMP=objdump
7146
7147
7148
7149
7150
7151
7152
7153
1cf3d07d 7154
5213506e
RW
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7156$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7157if test "${lt_cv_deplibs_check_method+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
96b8a615
AJ
7159else
7160 lt_cv_file_magic_cmd='$MAGIC_CMD'
7161lt_cv_file_magic_test_file=
7162lt_cv_deplibs_check_method='unknown'
7163# Need to set the preceding variable on all platforms that support
7164# interlibrary dependencies.
7165# 'none' -- dependencies not supported.
7166# `unknown' -- same as none, but documents that we really don't know.
7167# 'pass_all' -- all dependencies passed with no checks.
7168# 'test_compile' -- check by making test program.
1cf3d07d
SE
7169# 'file_magic [[regex]]' -- check by looking for files in library path
7170# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7171# If you have `file' or equivalent on your system and you're not sure
7172# whether `pass_all' will *always* work, you probably want this one.
7173
7174case $host_os in
4f6bebc3 7175aix[4-9]*)
96b8a615
AJ
7176 lt_cv_deplibs_check_method=pass_all
7177 ;;
7178
7179beos*)
7180 lt_cv_deplibs_check_method=pass_all
7181 ;;
7182
1cf3d07d 7183bsdi[45]*)
96b8a615
AJ
7184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7185 lt_cv_file_magic_cmd='/usr/bin/file -L'
7186 lt_cv_file_magic_test_file=/shlib/libc.so
7187 ;;
7188
1cf3d07d
SE
7189cygwin*)
7190 # func_win32_libid is a shell function defined in ltmain.sh
7191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7192 lt_cv_file_magic_cmd='func_win32_libid'
7193 ;;
7194
7195mingw* | pw32*)
7196 # Base MSYS/MinGW do not provide the 'file' command needed by
7197 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7198 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7199 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7200 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7202 lt_cv_file_magic_cmd='func_win32_libid'
7203 else
7204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7205 lt_cv_file_magic_cmd='$OBJDUMP -f'
7206 fi
96b8a615
AJ
7207 ;;
7208
43e02a8a 7209cegcc*)
d58dead8
PG
7210 # use the weaker test based on 'objdump'. See mingw*.
7211 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7212 lt_cv_file_magic_cmd='$OBJDUMP -f'
7213 ;;
7214
96b8a615 7215darwin* | rhapsody*)
96b8a615
AJ
7216 lt_cv_deplibs_check_method=pass_all
7217 ;;
7218
1cf3d07d
SE
7219freebsd* | dragonfly*)
7220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7221 case $host_cpu in
7222 i*86 )
7223 # Not sure whether the presence of OpenBSD here was a mistake.
7224 # Let's accept both of them until this is cleared up.
1cf3d07d 7225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7226 lt_cv_file_magic_cmd=/usr/bin/file
7227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7228 ;;
7229 esac
7230 else
7231 lt_cv_deplibs_check_method=pass_all
7232 fi
7233 ;;
7234
7235gnu*)
7236 lt_cv_deplibs_check_method=pass_all
7237 ;;
7238
43e02a8a
RW
7239haiku*)
7240 lt_cv_deplibs_check_method=pass_all
7241 ;;
7242
1cf3d07d
SE
7243hpux10.20* | hpux11*)
7244 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7245 case $host_cpu in
96b8a615
AJ
7246 ia64*)
7247 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
7248 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7249 ;;
1cf3d07d 7250 hppa*64*)
43e02a8a 7251 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 7252 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7253 ;;
7254 *)
43e02a8a 7255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7257 ;;
7258 esac
1cf3d07d
SE
7259 ;;
7260
7261interix[3-9]*)
7262 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7264 ;;
7265
7266irix5* | irix6* | nonstopux*)
7267 case $LD in
7268 *-32|*"-32 ") libmagic=32-bit;;
7269 *-n32|*"-n32 ") libmagic=N32;;
7270 *-64|*"-64 ") libmagic=64-bit;;
7271 *) libmagic=never-match;;
7272 esac
96b8a615
AJ
7273 lt_cv_deplibs_check_method=pass_all
7274 ;;
7275
7276# This must be Linux ELF.
7a9d3fe8 7277linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7278 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7279 ;;
7280
1cf3d07d
SE
7281netbsd*)
7282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7284 else
1cf3d07d 7285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7286 fi
7287 ;;
7288
1cf3d07d 7289newos6*)
96b8a615
AJ
7290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7291 lt_cv_file_magic_cmd=/usr/bin/file
7292 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7293 ;;
7294
1cf3d07d
SE
7295*nto* | *qnx*)
7296 lt_cv_deplibs_check_method=pass_all
7297 ;;
7298
7299openbsd*)
7300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7302 else
7303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7304 fi
7305 ;;
7306
96b8a615 7307osf3* | osf4* | osf5*)
96b8a615
AJ
7308 lt_cv_deplibs_check_method=pass_all
7309 ;;
7310
1cf3d07d 7311rdos*)
96b8a615
AJ
7312 lt_cv_deplibs_check_method=pass_all
7313 ;;
7314
7315solaris*)
7316 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7317 ;;
7318
1cf3d07d 7319sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7320 lt_cv_deplibs_check_method=pass_all
7321 ;;
7322
1cf3d07d 7323sysv4 | sysv4.3*)
96b8a615 7324 case $host_vendor in
96b8a615
AJ
7325 motorola)
7326 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]'
7327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7328 ;;
1cf3d07d
SE
7329 ncr)
7330 lt_cv_deplibs_check_method=pass_all
7331 ;;
7332 sequent)
7333 lt_cv_file_magic_cmd='/bin/file'
7334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7335 ;;
7336 sni)
7337 lt_cv_file_magic_cmd='/bin/file'
7338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7339 lt_cv_file_magic_test_file=/lib/libc.so
7340 ;;
7341 siemens)
7342 lt_cv_deplibs_check_method=pass_all
7343 ;;
7344 pc)
7345 lt_cv_deplibs_check_method=pass_all
7346 ;;
96b8a615
AJ
7347 esac
7348 ;;
1cf3d07d
SE
7349
7350tpf*)
7351 lt_cv_deplibs_check_method=pass_all
7352 ;;
96b8a615
AJ
7353esac
7354
7355fi
5213506e
RW
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7357$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7358file_magic_cmd=$lt_cv_file_magic_cmd
7359deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7360test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7361
7362
7363
7364
96b8a615 7365
96b8a615 7366
96b8a615 7367
96b8a615 7368
6de9cd9a 7369
6de9cd9a 7370
6de9cd9a 7371
6de9cd9a 7372
96b8a615 7373if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7374 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7375set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377$as_echo_n "checking for $ac_word... " >&6; }
7378if test "${ac_cv_prog_AR+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
6de9cd9a 7380else
1cf3d07d
SE
7381 if test -n "$AR"; then
7382 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7383else
7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
5213506e
RW
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7391 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7393 break 2
7394 fi
7395done
5213506e
RW
7396 done
7397IFS=$as_save_IFS
6de9cd9a 7398
96b8a615
AJ
7399fi
7400fi
1cf3d07d
SE
7401AR=$ac_cv_prog_AR
7402if test -n "$AR"; then
5213506e
RW
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7404$as_echo "$AR" >&6; }
96b8a615 7405else
5213506e
RW
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407$as_echo "no" >&6; }
6de9cd9a
DN
7408fi
7409
5213506e 7410
96b8a615 7411fi
1cf3d07d
SE
7412if test -z "$ac_cv_prog_AR"; then
7413 ac_ct_AR=$AR
7414 # Extract the first word of "ar", so it can be a program name with args.
7415set dummy ar; ac_word=$2
5213506e
RW
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417$as_echo_n "checking for $ac_word... " >&6; }
7418if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
96b8a615 7420else
1cf3d07d
SE
7421 if test -n "$ac_ct_AR"; then
7422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7423else
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
5213506e
RW
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7431 ac_cv_prog_ac_ct_AR="ar"
5213506e 7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7433 break 2
7434 fi
7435done
5213506e
RW
7436 done
7437IFS=$as_save_IFS
6de9cd9a 7438
96b8a615
AJ
7439fi
7440fi
1cf3d07d
SE
7441ac_ct_AR=$ac_cv_prog_ac_ct_AR
7442if test -n "$ac_ct_AR"; then
5213506e
RW
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7444$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7445else
5213506e
RW
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447$as_echo "no" >&6; }
6de9cd9a 7448fi
6de9cd9a 7449
5213506e
RW
7450 if test "x$ac_ct_AR" = x; then
7451 AR="false"
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454yes:)
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457ac_tool_warned=yes ;;
7458esac
7459 AR=$ac_ct_AR
7460 fi
96b8a615 7461else
1cf3d07d 7462 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7463fi
7464
1cf3d07d
SE
7465test -z "$AR" && AR=ar
7466test -z "$AR_FLAGS" && AR_FLAGS=cru
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
96b8a615
AJ
7478if test -n "$ac_tool_prefix"; then
7479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7480set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482$as_echo_n "checking for $ac_word... " >&6; }
7483if test "${ac_cv_prog_STRIP+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
6de9cd9a 7485else
96b8a615
AJ
7486 if test -n "$STRIP"; then
7487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
5213506e
RW
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7498 break 2
7499 fi
7500done
5213506e
RW
7501 done
7502IFS=$as_save_IFS
6de9cd9a 7503
96b8a615
AJ
7504fi
7505fi
7506STRIP=$ac_cv_prog_STRIP
7507if test -n "$STRIP"; then
5213506e
RW
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7509$as_echo "$STRIP" >&6; }
6de9cd9a 7510else
5213506e
RW
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512$as_echo "no" >&6; }
96b8a615 7513fi
6de9cd9a 7514
5213506e 7515
6de9cd9a 7516fi
96b8a615
AJ
7517if test -z "$ac_cv_prog_STRIP"; then
7518 ac_ct_STRIP=$STRIP
7519 # Extract the first word of "strip", so it can be a program name with args.
7520set dummy strip; ac_word=$2
5213506e
RW
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522$as_echo_n "checking for $ac_word... " >&6; }
7523if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
96b8a615
AJ
7525else
7526 if test -n "$ac_ct_STRIP"; then
7527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7528else
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
5213506e
RW
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7536 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7538 break 2
7539 fi
7540done
5213506e
RW
7541 done
7542IFS=$as_save_IFS
96b8a615 7543
6de9cd9a
DN
7544fi
7545fi
96b8a615
AJ
7546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7547if test -n "$ac_ct_STRIP"; then
5213506e
RW
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7549$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7550else
5213506e
RW
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552$as_echo "no" >&6; }
6de9cd9a 7553fi
6de9cd9a 7554
5213506e
RW
7555 if test "x$ac_ct_STRIP" = x; then
7556 STRIP=":"
7557 else
7558 case $cross_compiling:$ac_tool_warned in
7559yes:)
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7562ac_tool_warned=yes ;;
7563esac
7564 STRIP=$ac_ct_STRIP
7565 fi
96b8a615
AJ
7566else
7567 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7568fi
7569
1cf3d07d 7570test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7571
7572
7573
7574
7575
7576
1cf3d07d
SE
7577if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if test "${ac_cv_prog_RANLIB+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
6de9cd9a 7584else
1cf3d07d
SE
7585 if test -n "$RANLIB"; then
7586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
5213506e
RW
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7597 break 2
7598 fi
7599done
5213506e
RW
7600 done
7601IFS=$as_save_IFS
1cf3d07d
SE
7602
7603fi
7604fi
7605RANLIB=$ac_cv_prog_RANLIB
7606if test -n "$RANLIB"; then
5213506e
RW
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7608$as_echo "$RANLIB" >&6; }
1cf3d07d 7609else
5213506e
RW
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
1cf3d07d
SE
7612fi
7613
5213506e 7614
1cf3d07d
SE
7615fi
7616if test -z "$ac_cv_prog_RANLIB"; then
7617 ac_ct_RANLIB=$RANLIB
7618 # Extract the first word of "ranlib", so it can be a program name with args.
7619set dummy ranlib; ac_word=$2
5213506e
RW
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7624else
7625 if test -n "$ac_ct_RANLIB"; then
7626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
5213506e
RW
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7635 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7637 break 2
7638 fi
7639done
5213506e
RW
7640 done
7641IFS=$as_save_IFS
1cf3d07d 7642
1cf3d07d
SE
7643fi
7644fi
7645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7646if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7648$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7649else
5213506e
RW
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
1cf3d07d
SE
7652fi
7653
5213506e
RW
7654 if test "x$ac_ct_RANLIB" = x; then
7655 RANLIB=":"
7656 else
7657 case $cross_compiling:$ac_tool_warned in
7658yes:)
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661ac_tool_warned=yes ;;
7662esac
7663 RANLIB=$ac_ct_RANLIB
7664 fi
1cf3d07d
SE
7665else
7666 RANLIB="$ac_cv_prog_RANLIB"
7667fi
7668
7669test -z "$RANLIB" && RANLIB=:
7670
7671
7672
7673
7674
7675
7676# Determine commands to create old-style static archives.
d58dead8 7677old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7678old_postinstall_cmds='chmod 644 $oldlib'
7679old_postuninstall_cmds=
7680
7681if test -n "$RANLIB"; then
7682 case $host_os in
7683 openbsd*)
7684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7685 ;;
7686 *)
7687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7688 ;;
7689 esac
7690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7691fi
7692
43e02a8a
RW
7693case $host_os in
7694 darwin*)
7695 lock_old_archive_extraction=yes ;;
7696 *)
7697 lock_old_archive_extraction=no ;;
7698esac
7699
7700
7701
7702
7703
7704
1cf3d07d
SE
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738# If no C compiler was specified, use CC.
7739LTCC=${LTCC-"$CC"}
7740
7741# If no C compiler flags were specified, use CFLAGS.
7742LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7743
7744# Allow CC to be a program name with arguments.
7745compiler=$CC
7746
7747
7748# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7750$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7751if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7753else
7754
7755# These are sane defaults that work on at least a few old systems.
7756# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7757
7758# Character class describing NM global symbol codes.
7759symcode='[BCDEGRST]'
7760
7761# Regexp to match symbols that can be accessed directly from C.
7762sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7763
7764# Define system-specific variables.
7765case $host_os in
7766aix*)
7767 symcode='[BCDT]'
7768 ;;
d58dead8 7769cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7770 symcode='[ABCDGISTW]'
7771 ;;
7772hpux*)
7773 if test "$host_cpu" = ia64; then
7774 symcode='[ABCDEGRST]'
7775 fi
7776 ;;
7777irix* | nonstopux*)
7778 symcode='[BCDEGRST]'
7779 ;;
7780osf*)
7781 symcode='[BCDEGQRST]'
7782 ;;
7783solaris*)
7784 symcode='[BDRT]'
7785 ;;
7786sco3.2v5*)
7787 symcode='[DT]'
7788 ;;
7789sysv4.2uw2*)
7790 symcode='[DT]'
7791 ;;
7792sysv5* | sco5v6* | unixware* | OpenUNIX*)
7793 symcode='[ABDT]'
7794 ;;
7795sysv4)
7796 symcode='[DFNSTU]'
7797 ;;
7798esac
7799
7800# If we're using GNU nm, then use its standard symbol codes.
7801case `$NM -V 2>&1` in
7802*GNU* | *'with BFD'*)
7803 symcode='[ABCDGIRSTW]' ;;
7804esac
7805
7806# Transform an extracted symbol line into a proper C declaration.
7807# Some systems (esp. on ia64) link data and code symbols differently,
7808# so use this general approach.
7809lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7810
7811# Transform an extracted symbol line into symbol name and symbol address
7812lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7813lt_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
7814
7815# Handle CRLF in mingw tool chain
7816opt_cr=
7817case $build_os in
7818mingw*)
7819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7820 ;;
7821esac
7822
7823# Try without a prefix underscore, then with it.
7824for ac_symprfx in "" "_"; do
7825
7826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7827 symxfrm="\\1 $ac_symprfx\\2 \\2"
7828
7829 # Write the raw and C identifiers.
7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831 # Fake it for dumpbin and say T for any non-static function
7832 # and D for any global variable.
7833 # Also find C++ and __fastcall symbols from MSVC++,
7834 # which start with @ or ?.
7835 lt_cv_sys_global_symbol_pipe="$AWK '"\
7836" {last_section=section; section=\$ 3};"\
7837" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7838" \$ 0!~/External *\|/{next};"\
7839" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7840" {if(hide[section]) next};"\
7841" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7842" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7843" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7844" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7845" ' prfx=^$ac_symprfx"
7846 else
7847 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7848 fi
7849
7850 # Check to see that the pipe works correctly.
7851 pipe_works=no
7852
7853 rm -f conftest*
7854 cat > conftest.$ac_ext <<_LT_EOF
7855#ifdef __cplusplus
7856extern "C" {
7857#endif
7858char nm_test_var;
7859void nm_test_func(void);
7860void nm_test_func(void){}
7861#ifdef __cplusplus
7862}
7863#endif
7864int main(){nm_test_var='a';nm_test_func();return(0);}
7865_LT_EOF
7866
5213506e 7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7868 (eval $ac_compile) 2>&5
7869 ac_status=$?
5213506e
RW
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
1cf3d07d
SE
7872 # Now try to grab the symbols.
7873 nlist=conftest.nm
43e02a8a
RW
7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7875 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 7876 ac_status=$?
5213506e
RW
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
7879 # Try sorting and uniquifying the output.
7880 if sort "$nlist" | uniq > "$nlist"T; then
7881 mv -f "$nlist"T "$nlist"
7882 else
7883 rm -f "$nlist"T
7884 fi
7885
7886 # Make sure that we snagged all the symbols we need.
7887 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7888 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7889 cat <<_LT_EOF > conftest.$ac_ext
7890#ifdef __cplusplus
7891extern "C" {
7892#endif
7893
7894_LT_EOF
7895 # Now generate the symbol file.
7896 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7897
7898 cat <<_LT_EOF >> conftest.$ac_ext
7899
7900/* The mapping between symbol names and symbols. */
7901const struct {
7902 const char *name;
7903 void *address;
7904}
7905lt__PROGRAM__LTX_preloaded_symbols[] =
7906{
7907 { "@PROGRAM@", (void *) 0 },
7908_LT_EOF
7909 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7910 cat <<\_LT_EOF >> conftest.$ac_ext
7911 {0, (void *) 0}
7912};
7913
7914/* This works around a problem in FreeBSD linker */
7915#ifdef FREEBSD_WORKAROUND
7916static const void *lt_preloaded_setup() {
7917 return lt__PROGRAM__LTX_preloaded_symbols;
7918}
7919#endif
7920
7921#ifdef __cplusplus
7922}
7923#endif
7924_LT_EOF
7925 # Now try linking the two files.
7926 mv conftest.$ac_objext conftstm.$ac_objext
7927 lt_save_LIBS="$LIBS"
7928 lt_save_CFLAGS="$CFLAGS"
7929 LIBS="conftstm.$ac_objext"
7930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
7932 (eval $ac_link) 2>&5
7933 ac_status=$?
5213506e
RW
7934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7935 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
7936 pipe_works=yes
7937 fi
7938 LIBS="$lt_save_LIBS"
7939 CFLAGS="$lt_save_CFLAGS"
7940 else
7941 echo "cannot find nm_test_func in $nlist" >&5
7942 fi
7943 else
7944 echo "cannot find nm_test_var in $nlist" >&5
7945 fi
7946 else
7947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7948 fi
7949 else
7950 echo "$progname: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7952 fi
d58dead8 7953 rm -rf conftest* conftst*
1cf3d07d
SE
7954
7955 # Do not use the global_symbol_pipe unless it works.
7956 if test "$pipe_works" = yes; then
7957 break
7958 else
7959 lt_cv_sys_global_symbol_pipe=
7960 fi
7961done
7962
7963fi
7964
7965if test -z "$lt_cv_sys_global_symbol_pipe"; then
7966 lt_cv_sys_global_symbol_to_cdecl=
7967fi
7968if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7970$as_echo "failed" >&6; }
1cf3d07d 7971else
5213506e
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7973$as_echo "ok" >&6; }
1cf3d07d
SE
7974fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
d58dead8
PG
7990
7991
7992
7993
7994
1cf3d07d
SE
7995
7996
5213506e
RW
7997# Check whether --enable-libtool-lock was given.
7998if test "${enable_libtool_lock+set}" = set; then :
7999 enableval=$enable_libtool_lock;
8000fi
1cf3d07d 8001
1cf3d07d 8002test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8003
96b8a615
AJ
8004# Some flags need to be propagated to the compiler or linker for good
8005# libtool support.
8006case $host in
1cf3d07d 8007ia64-*-hpux*)
96b8a615 8008 # Find out which ABI we are using.
1cf3d07d 8009 echo 'int i;' > conftest.$ac_ext
5213506e 8010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8011 (eval $ac_compile) 2>&5
6de9cd9a 8012 ac_status=$?
5213506e
RW
8013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014 test $ac_status = 0; }; then
96b8a615 8015 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8016 *ELF-32*)
8017 HPUX_IA64_MODE="32"
8018 ;;
8019 *ELF-64*)
8020 HPUX_IA64_MODE="64"
8021 ;;
96b8a615 8022 esac
96b8a615
AJ
8023 fi
8024 rm -rf conftest*
8025 ;;
1cf3d07d 8026*-*-irix6*)
96b8a615 8027 # Find out which ABI we are using.
43e02a8a 8028 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8030 (eval $ac_compile) 2>&5
6de9cd9a 8031 ac_status=$?
5213506e
RW
8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033 test $ac_status = 0; }; then
1cf3d07d
SE
8034 if test "$lt_cv_prog_gnu_ld" = yes; then
8035 case `/usr/bin/file conftest.$ac_objext` in
8036 *32-bit*)
8037 LD="${LD-ld} -melf32bsmip"
8038 ;;
8039 *N32*)
8040 LD="${LD-ld} -melf32bmipn32"
8041 ;;
8042 *64-bit*)
8043 LD="${LD-ld} -melf64bmip"
8044 ;;
8045 esac
8046 else
8047 case `/usr/bin/file conftest.$ac_objext` in
8048 *32-bit*)
8049 LD="${LD-ld} -32"
8050 ;;
8051 *N32*)
8052 LD="${LD-ld} -n32"
8053 ;;
8054 *64-bit*)
8055 LD="${LD-ld} -64"
8056 ;;
8057 esac
8058 fi
96b8a615
AJ
8059 fi
8060 rm -rf conftest*
8061 ;;
6de9cd9a 8062
3cbe17f7 8063x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8064s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8065 # Find out which ABI we are using.
8066 echo 'int i;' > conftest.$ac_ext
5213506e 8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8068 (eval $ac_compile) 2>&5
6de9cd9a 8069 ac_status=$?
5213506e
RW
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }; then
1cf3d07d
SE
8072 case `/usr/bin/file conftest.o` in
8073 *32-bit*)
8074 case $host in
8075 x86_64-*kfreebsd*-gnu)
8076 LD="${LD-ld} -m elf_i386_fbsd"
8077 ;;
8078 x86_64-*linux*)
e6d5f8c9
L
8079 case `/usr/bin/file conftest.o` in
8080 *x86-64*)
8081 LD="${LD-ld} -m elf32_x86_64"
8082 ;;
8083 *)
8084 LD="${LD-ld} -m elf_i386"
8085 ;;
8086 esac
1cf3d07d 8087 ;;
3cbe17f7
AM
8088 powerpc64le-*linux*)
8089 LD="${LD-ld} -m elf32lppclinux"
8090 ;;
8091 powerpc64-*linux*)
1cf3d07d
SE
8092 LD="${LD-ld} -m elf32ppclinux"
8093 ;;
8094 s390x-*linux*)
8095 LD="${LD-ld} -m elf_s390"
8096 ;;
8097 sparc64-*linux*)
8098 LD="${LD-ld} -m elf32_sparc"
8099 ;;
8100 esac
8101 ;;
8102 *64-bit*)
8103 case $host in
8104 x86_64-*kfreebsd*-gnu)
8105 LD="${LD-ld} -m elf_x86_64_fbsd"
8106 ;;
8107 x86_64-*linux*)
8108 LD="${LD-ld} -m elf_x86_64"
8109 ;;
3cbe17f7
AM
8110 powerpcle-*linux*)
8111 LD="${LD-ld} -m elf64lppc"
8112 ;;
8113 powerpc-*linux*)
1cf3d07d
SE
8114 LD="${LD-ld} -m elf64ppc"
8115 ;;
8116 s390*-*linux*|s390*-*tpf*)
8117 LD="${LD-ld} -m elf64_s390"
8118 ;;
8119 sparc*-*linux*)
8120 LD="${LD-ld} -m elf64_sparc"
8121 ;;
8122 esac
8123 ;;
96b8a615 8124 esac
6de9cd9a 8125 fi
96b8a615
AJ
8126 rm -rf conftest*
8127 ;;
6de9cd9a 8128
96b8a615
AJ
8129*-*-sco3.2v5*)
8130 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8131 SAVE_CFLAGS="$CFLAGS"
8132 CFLAGS="$CFLAGS -belf"
5213506e
RW
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8134$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8135if test "${lt_cv_cc_needs_belf+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
6de9cd9a 8137else
1cf3d07d 8138 ac_ext=c
96b8a615
AJ
8139ac_cpp='$CPP $CPPFLAGS'
8140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8143
f02d008e 8144 if test x$gcc_no_link = xyes; then
5213506e 8145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8146fi
5213506e 8147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8148/* end confdefs.h. */
6de9cd9a
DN
8149
8150int
8151main ()
8152{
96b8a615 8153
6de9cd9a
DN
8154 ;
8155 return 0;
8156}
8157_ACEOF
5213506e 8158if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8159 lt_cv_cc_needs_belf=yes
6de9cd9a 8160else
5213506e 8161 lt_cv_cc_needs_belf=no
6de9cd9a 8162fi
5213506e
RW
8163rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8165 ac_ext=c
8166ac_cpp='$CPP $CPPFLAGS'
8167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8169ac_compiler_gnu=$ac_cv_c_compiler_gnu
8170
6de9cd9a 8171fi
5213506e
RW
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8173$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8174 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8175 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8176 CFLAGS="$SAVE_CFLAGS"
8177 fi
8178 ;;
1cf3d07d
SE
8179sparc*-*solaris*)
8180 # Find out which ABI we are using.
8181 echo 'int i;' > conftest.$ac_ext
5213506e 8182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8183 (eval $ac_compile) 2>&5
8184 ac_status=$?
5213506e
RW
8185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8186 test $ac_status = 0; }; then
1cf3d07d
SE
8187 case `/usr/bin/file conftest.o` in
8188 *64-bit*)
8189 case $lt_cv_prog_gnu_ld in
8190 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8191 *)
8192 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8193 LD="${LD-ld} -64"
8194 fi
8195 ;;
1cf3d07d
SE
8196 esac
8197 ;;
8198 esac
8199 fi
8200 rm -rf conftest*
8201 ;;
96b8a615
AJ
8202esac
8203
1cf3d07d 8204need_locks="$enable_libtool_lock"
96b8a615 8205
d58dead8
PG
8206
8207 case $host_os in
8208 rhapsody* | darwin*)
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8211set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
d58dead8
PG
8216else
8217 if test -n "$DSYMUTIL"; then
8218 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
5213506e
RW
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 8227 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8229 break 2
8230 fi
8231done
5213506e
RW
8232 done
8233IFS=$as_save_IFS
d58dead8
PG
8234
8235fi
8236fi
8237DSYMUTIL=$ac_cv_prog_DSYMUTIL
8238if test -n "$DSYMUTIL"; then
5213506e
RW
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8240$as_echo "$DSYMUTIL" >&6; }
d58dead8 8241else
5213506e
RW
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
d58dead8
PG
8244fi
8245
5213506e 8246
d58dead8
PG
8247fi
8248if test -z "$ac_cv_prog_DSYMUTIL"; then
8249 ac_ct_DSYMUTIL=$DSYMUTIL
8250 # Extract the first word of "dsymutil", so it can be a program name with args.
8251set dummy dsymutil; ac_word=$2
5213506e
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
d58dead8 8256else
21be0a5a
JB
8257 if test -n "$ac_ct_DSYMUTIL"; then
8258 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
5213506e
RW
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8267 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8269 break 2
8270 fi
8271done
5213506e
RW
8272 done
8273IFS=$as_save_IFS
d58dead8 8274
d58dead8
PG
8275fi
8276fi
21be0a5a
JB
8277ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8278if test -n "$ac_ct_DSYMUTIL"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8280$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8281else
5213506e
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
d58dead8
PG
8284fi
8285
21be0a5a
JB
8286 if test "x$ac_ct_DSYMUTIL" = x; then
8287 DSYMUTIL=":"
5213506e
RW
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290yes:)
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293ac_tool_warned=yes ;;
8294esac
21be0a5a 8295 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8296 fi
d58dead8 8297else
21be0a5a 8298 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8299fi
8300
8301 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8302 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8303set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8306if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8307 $as_echo_n "(cached) " >&6
d58dead8 8308else
21be0a5a
JB
8309 if test -n "$NMEDIT"; then
8310 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8311else
8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $PATH
8314do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
5213506e
RW
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8319 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8321 break 2
8322 fi
8323done
5213506e
RW
8324 done
8325IFS=$as_save_IFS
d58dead8
PG
8326
8327fi
8328fi
21be0a5a
JB
8329NMEDIT=$ac_cv_prog_NMEDIT
8330if test -n "$NMEDIT"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8332$as_echo "$NMEDIT" >&6; }
d58dead8 8333else
5213506e
RW
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }
d58dead8
PG
8336fi
8337
5213506e 8338
d58dead8 8339fi
21be0a5a
JB
8340if test -z "$ac_cv_prog_NMEDIT"; then
8341 ac_ct_NMEDIT=$NMEDIT
8342 # Extract the first word of "nmedit", so it can be a program name with args.
8343set dummy nmedit; ac_word=$2
5213506e
RW
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8346if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8347 $as_echo_n "(cached) " >&6
d58dead8 8348else
21be0a5a
JB
8349 if test -n "$ac_ct_NMEDIT"; then
8350 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
5213506e
RW
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8359 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8361 break 2
8362 fi
8363done
5213506e
RW
8364 done
8365IFS=$as_save_IFS
d58dead8 8366
d58dead8
PG
8367fi
8368fi
21be0a5a
JB
8369ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8370if test -n "$ac_ct_NMEDIT"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8372$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8373else
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
d58dead8
PG
8376fi
8377
21be0a5a
JB
8378 if test "x$ac_ct_NMEDIT" = x; then
8379 NMEDIT=":"
5213506e
RW
8380 else
8381 case $cross_compiling:$ac_tool_warned in
8382yes:)
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385ac_tool_warned=yes ;;
8386esac
21be0a5a 8387 NMEDIT=$ac_ct_NMEDIT
5213506e 8388 fi
d58dead8 8389else
21be0a5a 8390 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8391fi
8392
8393 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8394 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8395set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8398if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8399 $as_echo_n "(cached) " >&6
d58dead8 8400else
21be0a5a
JB
8401 if test -n "$LIPO"; then
8402 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8403else
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
5213506e
RW
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8411 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8413 break 2
8414 fi
8415done
5213506e
RW
8416 done
8417IFS=$as_save_IFS
d58dead8
PG
8418
8419fi
8420fi
21be0a5a
JB
8421LIPO=$ac_cv_prog_LIPO
8422if test -n "$LIPO"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8424$as_echo "$LIPO" >&6; }
d58dead8 8425else
5213506e
RW
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427$as_echo "no" >&6; }
d58dead8
PG
8428fi
8429
5213506e 8430
d58dead8 8431fi
21be0a5a
JB
8432if test -z "$ac_cv_prog_LIPO"; then
8433 ac_ct_LIPO=$LIPO
8434 # Extract the first word of "lipo", so it can be a program name with args.
8435set dummy lipo; ac_word=$2
5213506e
RW
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8438if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8439 $as_echo_n "(cached) " >&6
d58dead8 8440else
21be0a5a
JB
8441 if test -n "$ac_ct_LIPO"; then
8442 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
5213506e
RW
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8451 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8453 break 2
8454 fi
8455done
5213506e
RW
8456 done
8457IFS=$as_save_IFS
d58dead8 8458
d58dead8
PG
8459fi
8460fi
21be0a5a
JB
8461ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8462if test -n "$ac_ct_LIPO"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8464$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8465else
5213506e
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
d58dead8
PG
8468fi
8469
21be0a5a
JB
8470 if test "x$ac_ct_LIPO" = x; then
8471 LIPO=":"
5213506e
RW
8472 else
8473 case $cross_compiling:$ac_tool_warned in
8474yes:)
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477ac_tool_warned=yes ;;
8478esac
21be0a5a 8479 LIPO=$ac_ct_LIPO
5213506e 8480 fi
d58dead8 8481else
21be0a5a 8482 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8483fi
8484
21be0a5a
JB
8485 if test -n "$ac_tool_prefix"; then
8486 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8487set dummy ${ac_tool_prefix}otool; ac_word=$2
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489$as_echo_n "checking for $ac_word... " >&6; }
8490if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8491 $as_echo_n "(cached) " >&6
d58dead8 8492else
21be0a5a
JB
8493 if test -n "$OTOOL"; then
8494 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8495else
21be0a5a
JB
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507done
8508 done
8509IFS=$as_save_IFS
43e02a8a
RW
8510
8511fi
21be0a5a
JB
8512fi
8513OTOOL=$ac_cv_prog_OTOOL
8514if test -n "$OTOOL"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8516$as_echo "$OTOOL" >&6; }
8517else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
8520fi
8521
d58dead8 8522
1cf3d07d 8523fi
21be0a5a
JB
8524if test -z "$ac_cv_prog_OTOOL"; then
8525 ac_ct_OTOOL=$OTOOL
8526 # Extract the first word of "otool", so it can be a program name with args.
8527set dummy otool; ac_word=$2
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529$as_echo_n "checking for $ac_word... " >&6; }
8530if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8531 $as_echo_n "(cached) " >&6
1cf3d07d 8532else
21be0a5a
JB
8533 if test -n "$ac_ct_OTOOL"; then
8534 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
1cf3d07d 8538do
21be0a5a
JB
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_prog_ac_ct_OTOOL="otool"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548 done
8549IFS=$as_save_IFS
6de9cd9a 8550
21be0a5a
JB
8551fi
8552fi
8553ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8554if test -n "$ac_ct_OTOOL"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8556$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8557else
21be0a5a
JB
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
1cf3d07d 8560fi
96b8a615 8561
21be0a5a
JB
8562 if test "x$ac_ct_OTOOL" = x; then
8563 OTOOL=":"
8564 else
8565 case $cross_compiling:$ac_tool_warned in
8566yes:)
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8569ac_tool_warned=yes ;;
8570esac
8571 OTOOL=$ac_ct_OTOOL
8572 fi
1cf3d07d 8573else
21be0a5a 8574 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8575fi
6de9cd9a 8576
21be0a5a
JB
8577 if test -n "$ac_tool_prefix"; then
8578 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8579set dummy ${ac_tool_prefix}otool64; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 if test -n "$OTOOL64"; then
8586 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8587else
8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
1cf3d07d 8599done
21be0a5a
JB
8600 done
8601IFS=$as_save_IFS
8602
8603fi
8604fi
8605OTOOL64=$ac_cv_prog_OTOOL64
8606if test -n "$OTOOL64"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8608$as_echo "$OTOOL64" >&6; }
8609else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
1cf3d07d 8612fi
6de9cd9a 8613
96b8a615 8614
1cf3d07d 8615fi
21be0a5a
JB
8616if test -z "$ac_cv_prog_OTOOL64"; then
8617 ac_ct_OTOOL64=$OTOOL64
8618 # Extract the first word of "otool64", so it can be a program name with args.
8619set dummy otool64; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
96b8a615 8624else
21be0a5a
JB
8625 if test -n "$ac_ct_OTOOL64"; then
8626 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
96b8a615 8630do
21be0a5a
JB
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_prog_ac_ct_OTOOL64="otool64"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639done
8640 done
8641IFS=$as_save_IFS
96b8a615 8642
21be0a5a
JB
8643fi
8644fi
8645ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8646if test -n "$ac_ct_OTOOL64"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8648$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8649else
21be0a5a
JB
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
96b8a615
AJ
8652fi
8653
21be0a5a
JB
8654 if test "x$ac_ct_OTOOL64" = x; then
8655 OTOOL64=":"
8656 else
8657 case $cross_compiling:$ac_tool_warned in
8658yes:)
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661ac_tool_warned=yes ;;
8662esac
8663 OTOOL64=$ac_ct_OTOOL64
8664 fi
6de9cd9a 8665else
21be0a5a 8666 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8667fi
6de9cd9a 8668
5213506e 8669
1cf3d07d 8670
1cf3d07d
SE
8671
8672
6de9cd9a 8673
1cf3d07d 8674
6de9cd9a 8675
1cf3d07d 8676
5213506e 8677
6de9cd9a 8678
e87045f3 8679
15e92535 8680
5213506e 8681
15e92535 8682
15e92535 8683
21be0a5a
JB
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8696$as_echo_n "checking for -single_module linker flag... " >&6; }
8697if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
1cf3d07d 8699else
21be0a5a
JB
8700 lt_cv_apple_cc_single_mod=no
8701 if test -z "${LT_MULTI_MODULE}"; then
8702 # By default we will add the -single_module flag. You can override
8703 # by either setting the environment variable LT_MULTI_MODULE
8704 # non-empty at configure time, or by adding -multi_module to the
8705 # link flags.
8706 rm -rf libconftest.dylib*
8707 echo "int foo(void){return 1;}" > conftest.c
8708 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8709-dynamiclib -Wl,-single_module conftest.c" >&5
8710 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8711 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8712 _lt_result=$?
8713 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8714 lt_cv_apple_cc_single_mod=yes
8715 else
8716 cat conftest.err >&5
8717 fi
8718 rm -rf libconftest.dylib*
8719 rm -f conftest.*
8720 fi
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8723$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8725$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8726if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728else
8729 lt_cv_ld_exported_symbols_list=no
8730 save_LDFLAGS=$LDFLAGS
8731 echo "_main" > conftest.sym
8732 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8733 if test x$gcc_no_link = xyes; then
8734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8735fi
8736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8737/* end confdefs.h. */
15e92535 8738
1cf3d07d
SE
8739int
8740main ()
8741{
21be0a5a
JB
8742
8743 ;
5213506e 8744 return 0;
1cf3d07d 8745}
15e92535 8746_ACEOF
21be0a5a
JB
8747if ac_fn_c_try_link "$LINENO"; then :
8748 lt_cv_ld_exported_symbols_list=yes
5213506e 8749else
21be0a5a 8750 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8751fi
21be0a5a
JB
8752rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8755
8756fi
21be0a5a
JB
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8758$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8760$as_echo_n "checking for -force_load linker flag... " >&6; }
8761if test "${lt_cv_ld_force_load+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763else
8764 lt_cv_ld_force_load=no
8765 cat > conftest.c << _LT_EOF
8766int forced_loaded() { return 2;}
8767_LT_EOF
8768 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8769 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8770 echo "$AR cru libconftest.a conftest.o" >&5
8771 $AR cru libconftest.a conftest.o 2>&5
8772 cat > conftest.c << _LT_EOF
8773int main() { return 0;}
8774_LT_EOF
8775 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8776 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8777 _lt_result=$?
8778 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8779 lt_cv_ld_force_load=yes
8780 else
8781 cat conftest.err >&5
8782 fi
8783 rm -f conftest.err libconftest.a conftest conftest.c
8784 rm -rf conftest.dSYM
1cf3d07d
SE
8785
8786fi
21be0a5a
JB
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8788$as_echo "$lt_cv_ld_force_load" >&6; }
8789 case $host_os in
8790 rhapsody* | darwin1.[012])
8791 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8792 darwin1.*)
8793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8794 darwin*) # darwin 5.x on
8795 # if running on 10.5 or later, the deployment target defaults
8796 # to the OS version, if on x86, and 10.4, the deployment
8797 # target defaults to 10.4. Don't you love it?
8798 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8799 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8800 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8801 10.[012]*)
8802 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8803 10.*)
8804 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8805 esac
8806 ;;
8807 esac
8808 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8809 _lt_dar_single_mod='$single_module'
8810 fi
8811 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8812 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8813 else
8814 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8815 fi
8816 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8817 _lt_dsymutil='~$DSYMUTIL $lib || :'
8818 else
8819 _lt_dsymutil=
8820 fi
8821 ;;
8822 esac
1cf3d07d 8823
1cf3d07d 8824for ac_header in dlfcn.h
5213506e
RW
8825do :
8826 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8827"
8828if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 8829 cat >>confdefs.h <<_ACEOF
5213506e 8830#define HAVE_DLFCN_H 1
9cdc381b 8831_ACEOF
9cdc381b 8832
1cf3d07d
SE
8833fi
8834
8835done
8836
8837
8838
43e02a8a
RW
8839
8840
d58dead8
PG
8841# Set options
8842
8843
8844
8845
8846 enable_win32_dll=no
8847
8848
5213506e
RW
8849 # Check whether --enable-shared was given.
8850if test "${enable_shared+set}" = set; then :
8851 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
8852 case $enableval in
8853 yes) enable_shared=yes ;;
8854 no) enable_shared=no ;;
8855 *)
8856 enable_shared=no
8857 # Look at the argument we got. We use all the common list separators.
8858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8859 for pkg in $enableval; do
8860 IFS="$lt_save_ifs"
8861 if test "X$pkg" = "X$p"; then
8862 enable_shared=yes
8863 fi
8864 done
8865 IFS="$lt_save_ifs"
8866 ;;
8867 esac
8868else
8869 enable_shared=yes
5213506e
RW
8870fi
8871
d58dead8
PG
8872
8873
8874
8875
8876
8877
8878
8879
5213506e
RW
8880 # Check whether --enable-static was given.
8881if test "${enable_static+set}" = set; then :
8882 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
8883 case $enableval in
8884 yes) enable_static=yes ;;
8885 no) enable_static=no ;;
8886 *)
8887 enable_static=no
8888 # Look at the argument we got. We use all the common list separators.
8889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8890 for pkg in $enableval; do
8891 IFS="$lt_save_ifs"
8892 if test "X$pkg" = "X$p"; then
8893 enable_static=yes
8894 fi
8895 done
8896 IFS="$lt_save_ifs"
8897 ;;
8898 esac
8899else
8900 enable_static=yes
5213506e
RW
8901fi
8902
d58dead8
PG
8903
8904
8905
8906
8907
8908
8909
8910
8911
5213506e
RW
8912# Check whether --with-pic was given.
8913if test "${with_pic+set}" = set; then :
8914 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
8915else
8916 pic_mode=default
5213506e
RW
8917fi
8918
d58dead8
PG
8919
8920test -z "$pic_mode" && pic_mode=default
8921
8922
8923
8924
8925
8926
8927
5213506e
RW
8928 # Check whether --enable-fast-install was given.
8929if test "${enable_fast_install+set}" = set; then :
8930 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
8931 case $enableval in
8932 yes) enable_fast_install=yes ;;
8933 no) enable_fast_install=no ;;
8934 *)
8935 enable_fast_install=no
8936 # Look at the argument we got. We use all the common list separators.
8937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938 for pkg in $enableval; do
8939 IFS="$lt_save_ifs"
8940 if test "X$pkg" = "X$p"; then
8941 enable_fast_install=yes
8942 fi
8943 done
8944 IFS="$lt_save_ifs"
8945 ;;
8946 esac
8947else
8948 enable_fast_install=yes
5213506e
RW
8949fi
8950
d58dead8
PG
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
1cf3d07d
SE
8961# This can be used to rebuild libtool when needed
8962LIBTOOL_DEPS="$ltmain"
8963
8964# Always use our own libtool.
8965LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
43e02a8a 8989
1cf3d07d
SE
8990
8991
8992test -z "$LN_S" && LN_S="ln -s"
8993
8994
8995
8996
8997
9cdc381b 8998
1cf3d07d
SE
8999
9000
9001
9002
9003
9004
9005
9006
9007if test -n "${ZSH_VERSION+set}" ; then
9008 setopt NO_GLOB_SUBST
9cdc381b 9009fi
9cdc381b 9010
5213506e
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9012$as_echo_n "checking for objdir... " >&6; }
9013if test "${lt_cv_objdir+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9cdc381b 9015else
1cf3d07d
SE
9016 rm -f .libs 2>/dev/null
9017mkdir .libs 2>/dev/null
9018if test -d .libs; then
9019 lt_cv_objdir=.libs
9020else
9021 # MS-DOS does not allow filenames that begin with a dot.
9022 lt_cv_objdir=_libs
9cdc381b 9023fi
1cf3d07d 9024rmdir .libs 2>/dev/null
9cdc381b 9025fi
5213506e
RW
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9027$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9028objdir=$lt_cv_objdir
9029
9030
9031
9032
9cdc381b
BD
9033
9034cat >>confdefs.h <<_ACEOF
1cf3d07d 9035#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9036_ACEOF
9037
1cf3d07d
SE
9038
9039
9040
1cf3d07d
SE
9041case $host_os in
9042aix3*)
9043 # AIX sometimes has problems with the GCC collect2 program. For some
9044 # reason, if we set the COLLECT_NAMES environment variable, the problems
9045 # vanish in a puff of smoke.
9046 if test "X${COLLECT_NAMES+set}" != Xset; then
9047 COLLECT_NAMES=
9048 export COLLECT_NAMES
9049 fi
9050 ;;
9051esac
9052
1cf3d07d
SE
9053# Global variables:
9054ofile=libtool
9055can_build_shared=yes
9056
9057# All known linkers require a `.a' archive for static linking (except MSVC,
9058# which needs '.lib').
9059libext=a
9060
9061with_gnu_ld="$lt_cv_prog_gnu_ld"
9062
9063old_CC="$CC"
9064old_CFLAGS="$CFLAGS"
9065
9066# Set sane defaults for various variables
9067test -z "$CC" && CC=cc
9068test -z "$LTCC" && LTCC=$CC
9069test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9070test -z "$LD" && LD=ld
9071test -z "$ac_objext" && ac_objext=o
9072
9073for cc_temp in $compiler""; do
9074 case $cc_temp in
9075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9077 \-*) ;;
9078 *) break;;
9079 esac
9080done
43e02a8a 9081cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9082
9083
9084# Only perform the check for file, if the check method requires it
9085test -z "$MAGIC_CMD" && MAGIC_CMD=file
9086case $deplibs_check_method in
9087file_magic*)
9088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9090$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9091if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9cdc381b 9093else
1cf3d07d
SE
9094 case $MAGIC_CMD in
9095[\\/*] | ?:[\\/]*)
9096 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9097 ;;
9098*)
9099 lt_save_MAGIC_CMD="$MAGIC_CMD"
9100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9101 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9102 for ac_dir in $ac_dummy; do
9103 IFS="$lt_save_ifs"
9104 test -z "$ac_dir" && ac_dir=.
9105 if test -f $ac_dir/${ac_tool_prefix}file; then
9106 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9107 if test -n "$file_magic_test_file"; then
9108 case $deplibs_check_method in
9109 "file_magic "*)
9110 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9113 $EGREP "$file_magic_regex" > /dev/null; then
9114 :
9115 else
9116 cat <<_LT_EOF 1>&2
9cdc381b 9117
1cf3d07d
SE
9118*** Warning: the command libtool uses to detect shared libraries,
9119*** $file_magic_cmd, produces output that libtool cannot recognize.
9120*** The result is that libtool may fail to recognize shared libraries
9121*** as such. This will affect the creation of libtool libraries that
9122*** depend on shared libraries, but programs linked with such libtool
9123*** libraries will work regardless of this problem. Nevertheless, you
9124*** may want to report the problem to your system manager and/or to
9125*** bug-libtool@gnu.org
9126
9127_LT_EOF
9128 fi ;;
9129 esac
9130 fi
9131 break
9132 fi
9133 done
9134 IFS="$lt_save_ifs"
9135 MAGIC_CMD="$lt_save_MAGIC_CMD"
9136 ;;
9137esac
9138fi
9139
9140MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9141if test -n "$MAGIC_CMD"; then
5213506e
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9143$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9144else
5213506e
RW
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
1cf3d07d
SE
9147fi
9148
9149
9150
9151
9152
9153if test -z "$lt_cv_path_MAGIC_CMD"; then
9154 if test -n "$ac_tool_prefix"; then
5213506e
RW
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9156$as_echo_n "checking for file... " >&6; }
9157if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9159else
9160 case $MAGIC_CMD in
9161[\\/*] | ?:[\\/]*)
9162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9163 ;;
9164*)
9165 lt_save_MAGIC_CMD="$MAGIC_CMD"
9166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9169 IFS="$lt_save_ifs"
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f $ac_dir/file; then
9172 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9175 "file_magic "*)
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9180 :
9181 else
9182 cat <<_LT_EOF 1>&2
9183
9184*** Warning: the command libtool uses to detect shared libraries,
9185*** $file_magic_cmd, produces output that libtool cannot recognize.
9186*** The result is that libtool may fail to recognize shared libraries
9187*** as such. This will affect the creation of libtool libraries that
9188*** depend on shared libraries, but programs linked with such libtool
9189*** libraries will work regardless of this problem. Nevertheless, you
9190*** may want to report the problem to your system manager and/or to
9191*** bug-libtool@gnu.org
9192
9193_LT_EOF
9194 fi ;;
9195 esac
9196 fi
9197 break
9198 fi
9199 done
9200 IFS="$lt_save_ifs"
9201 MAGIC_CMD="$lt_save_MAGIC_CMD"
9202 ;;
9203esac
9204fi
9205
9206MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207if test -n "$MAGIC_CMD"; then
5213506e
RW
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9209$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9210else
5213506e
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
1cf3d07d
SE
9213fi
9214
9215
9216 else
9217 MAGIC_CMD=:
9218 fi
9219fi
9220
9221 fi
9222 ;;
9223esac
9224
9225# Use C for the default configuration in the libtool script
9226
9227lt_save_CC="$CC"
9228ac_ext=c
9229ac_cpp='$CPP $CPPFLAGS'
9230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9232ac_compiler_gnu=$ac_cv_c_compiler_gnu
9233
9234
9235# Source file extension for C test sources.
9236ac_ext=c
9237
9238# Object file extension for compiled C test sources.
9239objext=o
9240objext=$objext
9241
9242# Code to be used in simple compile tests
9243lt_simple_compile_test_code="int some_variable = 0;"
9244
9245# Code to be used in simple link tests
9246lt_simple_link_test_code='int main(){return(0);}'
9247
9248
9249
9250
9251
9252
9253
9254# If no C compiler was specified, use CC.
9255LTCC=${LTCC-"$CC"}
9256
9257# If no C compiler flags were specified, use CFLAGS.
9258LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9259
9260# Allow CC to be a program name with arguments.
9261compiler=$CC
9262
9263# Save the default compiler, since it gets overwritten when the other
9264# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9265compiler_DEFAULT=$CC
9266
9267# save warnings/boilerplate of simple test code
9268ac_outfile=conftest.$ac_objext
9269echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9270eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9271_lt_compiler_boilerplate=`cat conftest.err`
9272$RM conftest*
9273
9274ac_outfile=conftest.$ac_objext
9275echo "$lt_simple_link_test_code" >conftest.$ac_ext
9276eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9277_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9278$RM -r conftest*
1cf3d07d
SE
9279
9280
9281## CAVEAT EMPTOR:
9282## There is no encapsulation within the following macros, do not change
9283## the running order or otherwise move them around unless you know exactly
9284## what you are doing...
9285if test -n "$compiler"; then
9286
9287lt_prog_compiler_no_builtin_flag=
9288
9289if test "$GCC" = yes; then
43e02a8a
RW
9290 case $cc_basename in
9291 nvcc*)
9292 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9293 *)
9294 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9295 esac
1cf3d07d 9296
5213506e
RW
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9298$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9299if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9301else
9302 lt_cv_prog_compiler_rtti_exceptions=no
9303 ac_outfile=conftest.$ac_objext
9304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305 lt_compiler_flag="-fno-rtti -fno-exceptions"
9306 # Insert the option either (1) after the last *FLAGS variable, or
9307 # (2) before a word containing "conftest.", or (3) at the end.
9308 # Note that $ac_compile itself does not contain backslashes and begins
9309 # with a dollar sign (not a hyphen), so the echo should work correctly.
9310 # The option is referenced via a variable to avoid confusing sed.
9311 lt_compile=`echo "$ac_compile" | $SED \
9312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9316 (eval "$lt_compile" 2>conftest.err)
9317 ac_status=$?
9318 cat conftest.err >&5
43e02a8a 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9320 if (exit $ac_status) && test -s "$ac_outfile"; then
9321 # The compiler can only warn and ignore the option if not recognized
9322 # So say no if there are warnings other than the usual output.
43e02a8a 9323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9326 lt_cv_prog_compiler_rtti_exceptions=yes
9327 fi
9328 fi
9329 $RM conftest*
9330
9331fi
5213506e
RW
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9333$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9334
9335if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9337else
9338 :
9339fi
9340
9341fi
9342
9343
9344
9345
9346
9347
9348 lt_prog_compiler_wl=
9349lt_prog_compiler_pic=
9350lt_prog_compiler_static=
9351
5213506e
RW
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9353$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9354
9355 if test "$GCC" = yes; then
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_static='-static'
9358
9359 case $host_os in
9360 aix*)
9361 # All AIX code is PIC.
9362 if test "$host_cpu" = ia64; then
9363 # AIX 5 now supports IA64 processor
9364 lt_prog_compiler_static='-Bstatic'
9365 fi
bad8a4a7 9366 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9367 ;;
9368
9369 amigaos*)
d58dead8
PG
9370 case $host_cpu in
9371 powerpc)
9372 # see comment about AmigaOS4 .so support
9373 lt_prog_compiler_pic='-fPIC'
9374 ;;
9375 m68k)
9376 # FIXME: we need at least 68020 code to build shared libraries, but
9377 # adding the `-m68020' flag to GCC prevents building anything better,
9378 # like `-m68040'.
9379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9380 ;;
9381 esac
1cf3d07d
SE
9382 ;;
9383
9384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9385 # PIC is the default for these OSes.
9386 ;;
9387
d58dead8 9388 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9389 # This hack is so that the source file can tell whether it is being
9390 # built for inclusion in a dll (and should export symbols for example).
9391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9392 # (--disable-auto-import) libraries
9393 lt_prog_compiler_pic='-DDLL_EXPORT'
9394 ;;
9395
9396 darwin* | rhapsody*)
9397 # PIC is the default on this platform
9398 # Common symbols not allowed in MH_DYLIB files
9399 lt_prog_compiler_pic='-fno-common'
9400 ;;
9401
43e02a8a
RW
9402 haiku*)
9403 # PIC is the default for Haiku.
9404 # The "-static" flag exists, but is broken.
9405 lt_prog_compiler_static=
9406 ;;
9407
1cf3d07d 9408 hpux*)
d58dead8
PG
9409 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9410 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9411 # sets the default TLS model and affects inlining.
1cf3d07d 9412 case $host_cpu in
d58dead8 9413 hppa*64*)
1cf3d07d
SE
9414 # +Z the default
9415 ;;
9416 *)
9417 lt_prog_compiler_pic='-fPIC'
9418 ;;
9419 esac
9420 ;;
9421
9422 interix[3-9]*)
9423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9424 # Instead, we relocate shared libraries at runtime.
9425 ;;
9426
9427 msdosdjgpp*)
9428 # Just because we use GCC doesn't mean we suddenly get shared libraries
9429 # on systems that don't support them.
9430 lt_prog_compiler_can_build_shared=no
9431 enable_shared=no
9432 ;;
9433
9434 *nto* | *qnx*)
9435 # QNX uses GNU C++, but need to define -shared option too, otherwise
9436 # it will coredump.
9437 lt_prog_compiler_pic='-fPIC -shared'
9438 ;;
9439
9440 sysv4*MP*)
9441 if test -d /usr/nec; then
9442 lt_prog_compiler_pic=-Kconform_pic
9443 fi
9444 ;;
9445
9446 *)
9447 lt_prog_compiler_pic='-fPIC'
9448 ;;
9449 esac
43e02a8a
RW
9450
9451 case $cc_basename in
9452 nvcc*) # Cuda Compiler Driver 2.2
9453 lt_prog_compiler_wl='-Xlinker '
9454 lt_prog_compiler_pic='-Xcompiler -fPIC'
9455 ;;
9456 esac
1cf3d07d
SE
9457 else
9458 # PORTME Check for flag to pass linker flags through the system compiler.
9459 case $host_os in
9460 aix*)
9461 lt_prog_compiler_wl='-Wl,'
9462 if test "$host_cpu" = ia64; then
9463 # AIX 5 now supports IA64 processor
9464 lt_prog_compiler_static='-Bstatic'
9465 else
9466 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9467 fi
9468 ;;
1cf3d07d 9469
d58dead8 9470 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9471 # This hack is so that the source file can tell whether it is being
9472 # built for inclusion in a dll (and should export symbols for example).
9473 lt_prog_compiler_pic='-DDLL_EXPORT'
9474 ;;
9475
9476 hpux9* | hpux10* | hpux11*)
9477 lt_prog_compiler_wl='-Wl,'
9478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9479 # not for PA HP-UX.
9480 case $host_cpu in
9481 hppa*64*|ia64*)
9482 # +Z the default
9483 ;;
9484 *)
9485 lt_prog_compiler_pic='+Z'
9486 ;;
9487 esac
9488 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9489 lt_prog_compiler_static='${wl}-a ${wl}archive'
9490 ;;
9491
9492 irix5* | irix6* | nonstopux*)
9493 lt_prog_compiler_wl='-Wl,'
9494 # PIC (with -KPIC) is the default.
9495 lt_prog_compiler_static='-non_shared'
9496 ;;
9497
7a9d3fe8 9498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9499 case $cc_basename in
d58dead8
PG
9500 # old Intel for x86_64 which still supported -KPIC.
9501 ecc*)
1cf3d07d
SE
9502 lt_prog_compiler_wl='-Wl,'
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-static'
9505 ;;
d58dead8
PG
9506 # icc used to be incompatible with GCC.
9507 # ICC 10 doesn't accept -KPIC any more.
9508 icc* | ifort*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-fPIC'
9511 lt_prog_compiler_static='-static'
9512 ;;
9513 # Lahey Fortran 8.1.
9514 lf95*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='--shared'
9517 lt_prog_compiler_static='--static'
9518 ;;
43e02a8a 9519 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9520 # Portland Group compilers (*not* the Pentium gcc compiler,
9521 # which looks to be a dead project)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-fpic'
9524 lt_prog_compiler_static='-Bstatic'
9525 ;;
9526 ccc*)
9527 lt_prog_compiler_wl='-Wl,'
9528 # All Alpha code is PIC.
9529 lt_prog_compiler_static='-non_shared'
9530 ;;
43e02a8a
RW
9531 xl* | bgxl* | bgf* | mpixl*)
9532 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-qpic'
9535 lt_prog_compiler_static='-qstaticlink'
9536 ;;
1cf3d07d
SE
9537 *)
9538 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9539 *Sun\ F* | *Sun*Fortran*)
9540 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
43e02a8a 9543 lt_prog_compiler_wl=''
1cf3d07d 9544 ;;
43e02a8a
RW
9545 *Sun\ C*)
9546 # Sun C 5.9
1cf3d07d
SE
9547 lt_prog_compiler_pic='-KPIC'
9548 lt_prog_compiler_static='-Bstatic'
43e02a8a 9549 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9550 ;;
9551 esac
9552 ;;
9553 esac
9554 ;;
9555
9556 newsos6)
9557 lt_prog_compiler_pic='-KPIC'
9558 lt_prog_compiler_static='-Bstatic'
9559 ;;
9560
9561 *nto* | *qnx*)
9562 # QNX uses GNU C++, but need to define -shared option too, otherwise
9563 # it will coredump.
9564 lt_prog_compiler_pic='-fPIC -shared'
9565 ;;
9566
9567 osf3* | osf4* | osf5*)
9568 lt_prog_compiler_wl='-Wl,'
9569 # All OSF/1 code is PIC.
9570 lt_prog_compiler_static='-non_shared'
9571 ;;
9572
9573 rdos*)
9574 lt_prog_compiler_static='-non_shared'
9575 ;;
9576
9577 solaris*)
9578 lt_prog_compiler_pic='-KPIC'
9579 lt_prog_compiler_static='-Bstatic'
9580 case $cc_basename in
9581 f77* | f90* | f95*)
9582 lt_prog_compiler_wl='-Qoption ld ';;
9583 *)
9584 lt_prog_compiler_wl='-Wl,';;
9585 esac
9586 ;;
9587
9588 sunos4*)
9589 lt_prog_compiler_wl='-Qoption ld '
9590 lt_prog_compiler_pic='-PIC'
9591 lt_prog_compiler_static='-Bstatic'
9592 ;;
9593
9594 sysv4 | sysv4.2uw2* | sysv4.3*)
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 ;;
9599
9600 sysv4*MP*)
9601 if test -d /usr/nec ;then
9602 lt_prog_compiler_pic='-Kconform_pic'
9603 lt_prog_compiler_static='-Bstatic'
9604 fi
9605 ;;
9606
9607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 ;;
9612
9613 unicos*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_can_build_shared=no
9616 ;;
9617
9618 uts4*)
9619 lt_prog_compiler_pic='-pic'
9620 lt_prog_compiler_static='-Bstatic'
9621 ;;
9622
9623 *)
9624 lt_prog_compiler_can_build_shared=no
9625 ;;
9626 esac
9627 fi
9628
9629case $host_os in
9630 # For platforms which do not support PIC, -DPIC is meaningless:
9631 *djgpp*)
9632 lt_prog_compiler_pic=
9633 ;;
9634 *)
9635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9636 ;;
9637esac
5213506e
RW
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9639$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9640
9641
9642
9643
9644
9645
9646#
9647# Check to make sure the PIC flag actually works.
9648#
9649if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9652if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
1cf3d07d 9654else
d58dead8 9655 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9659 # Insert the option either (1) after the last *FLAGS variable, or
9660 # (2) before a word containing "conftest.", or (3) at the end.
9661 # Note that $ac_compile itself does not contain backslashes and begins
9662 # with a dollar sign (not a hyphen), so the echo should work correctly.
9663 # The option is referenced via a variable to avoid confusing sed.
9664 lt_compile=`echo "$ac_compile" | $SED \
9665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9669 (eval "$lt_compile" 2>conftest.err)
9670 ac_status=$?
9671 cat conftest.err >&5
43e02a8a 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9673 if (exit $ac_status) && test -s "$ac_outfile"; then
9674 # The compiler can only warn and ignore the option if not recognized
9675 # So say no if there are warnings other than the usual output.
43e02a8a 9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9679 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9680 fi
9681 fi
9682 $RM conftest*
9683
9684fi
5213506e
RW
9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9686$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9687
d58dead8 9688if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9689 case $lt_prog_compiler_pic in
9690 "" | " "*) ;;
9691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9692 esac
9693else
9694 lt_prog_compiler_pic=
9695 lt_prog_compiler_can_build_shared=no
9696fi
9697
9698fi
9699
9700
9701
9702
9703
9704
9705#
9706# Check to make sure the static flag actually works.
9707#
9708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9711if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
1cf3d07d 9713else
d58dead8 9714 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9715 save_LDFLAGS="$LDFLAGS"
9716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9719 # The linker can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 if test -s conftest.err; then
9722 # Append any errors to the config.log.
9723 cat conftest.err 1>&5
43e02a8a 9724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9727 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9728 fi
9729 else
d58dead8 9730 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9731 fi
9732 fi
d58dead8 9733 $RM -r conftest*
1cf3d07d
SE
9734 LDFLAGS="$save_LDFLAGS"
9735
9736fi
5213506e
RW
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9738$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9739
d58dead8 9740if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9741 :
9742else
9743 lt_prog_compiler_static=
9744fi
9745
9746
9747
9748
9749
9750
9751
5213506e
RW
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9754if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9756else
9757 lt_cv_prog_compiler_c_o=no
9758 $RM -r conftest 2>/dev/null
9759 mkdir conftest
9760 cd conftest
9761 mkdir out
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763
9764 lt_compiler_flag="-o out/conftest2.$ac_objext"
9765 # Insert the option either (1) after the last *FLAGS variable, or
9766 # (2) before a word containing "conftest.", or (3) at the end.
9767 # Note that $ac_compile itself does not contain backslashes and begins
9768 # with a dollar sign (not a hyphen), so the echo should work correctly.
9769 lt_compile=`echo "$ac_compile" | $SED \
9770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9774 (eval "$lt_compile" 2>out/conftest.err)
9775 ac_status=$?
9776 cat out/conftest.err >&5
43e02a8a 9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9779 then
9780 # The compiler can only warn and ignore the option if not recognized
9781 # So say no if there are warnings
43e02a8a 9782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9785 lt_cv_prog_compiler_c_o=yes
9786 fi
9787 fi
9788 chmod u+w . 2>&5
9789 $RM conftest*
9790 # SGI C++ compiler will create directory out/ii_files/ for
9791 # template instantiation
9792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9793 $RM out/* && rmdir out
9794 cd ..
9795 $RM -r conftest
9796 $RM conftest*
9797
9798fi
5213506e
RW
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9800$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9801
9802
9803
9804
9805
9806
5213506e
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9809if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9811else
9812 lt_cv_prog_compiler_c_o=no
9813 $RM -r conftest 2>/dev/null
9814 mkdir conftest
9815 cd conftest
9816 mkdir out
9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9818
9819 lt_compiler_flag="-o out/conftest2.$ac_objext"
9820 # Insert the option either (1) after the last *FLAGS variable, or
9821 # (2) before a word containing "conftest.", or (3) at the end.
9822 # Note that $ac_compile itself does not contain backslashes and begins
9823 # with a dollar sign (not a hyphen), so the echo should work correctly.
9824 lt_compile=`echo "$ac_compile" | $SED \
9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9829 (eval "$lt_compile" 2>out/conftest.err)
9830 ac_status=$?
9831 cat out/conftest.err >&5
43e02a8a 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9834 then
9835 # The compiler can only warn and ignore the option if not recognized
9836 # So say no if there are warnings
43e02a8a 9837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9840 lt_cv_prog_compiler_c_o=yes
9841 fi
9842 fi
9843 chmod u+w . 2>&5
9844 $RM conftest*
9845 # SGI C++ compiler will create directory out/ii_files/ for
9846 # template instantiation
9847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9848 $RM out/* && rmdir out
9849 cd ..
9850 $RM -r conftest
9851 $RM conftest*
9852
9853fi
5213506e
RW
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9855$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9856
9857
9858
9859
9860hard_links="nottested"
9861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9862 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9864$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9865 hard_links=yes
9866 $RM conftest*
9867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9868 touch conftest.a
9869 ln conftest.a conftest.b 2>&5 || hard_links=no
9870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9872$as_echo "$hard_links" >&6; }
1cf3d07d 9873 if test "$hard_links" = no; then
5213506e
RW
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9875$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9876 need_locks=warn
9877 fi
9878else
9879 need_locks=no
9880fi
9881
9882
9883
9884
9885
9886
5213506e
RW
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9888$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9889
9890 runpath_var=
9891 allow_undefined_flag=
9892 always_export_symbols=no
9893 archive_cmds=
9894 archive_expsym_cmds=
9895 compiler_needs_object=no
9896 enable_shared_with_static_runtimes=no
9897 export_dynamic_flag_spec=
9898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9899 hardcode_automatic=no
9900 hardcode_direct=no
9901 hardcode_direct_absolute=no
9902 hardcode_libdir_flag_spec=
9903 hardcode_libdir_flag_spec_ld=
9904 hardcode_libdir_separator=
9905 hardcode_minus_L=no
9906 hardcode_shlibpath_var=unsupported
9907 inherit_rpath=no
9908 link_all_deplibs=unknown
9909 module_cmds=
9910 module_expsym_cmds=
9911 old_archive_from_new_cmds=
9912 old_archive_from_expsyms_cmds=
9913 thread_safe_flag_spec=
9914 whole_archive_flag_spec=
9915 # include_expsyms should be a list of space-separated symbols to be *always*
9916 # included in the symbol list
9917 include_expsyms=
9918 # exclude_expsyms can be an extended regexp of symbols to exclude
9919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9921 # as well as any symbol that contains `d'.
d58dead8 9922 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9924 # platforms (ab)use it in PIC code, but their linkers get confused if
9925 # the symbol is explicitly referenced. Since portable code cannot
9926 # rely on this symbol name, it's probably fine to never include it in
9927 # preloaded symbol tables.
d58dead8 9928 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9929 extract_expsyms_cmds=
9930
9931 case $host_os in
d58dead8 9932 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9934 # When not using gcc, we currently assume that we are using
9935 # Microsoft Visual C++.
9936 if test "$GCC" != yes; then
9937 with_gnu_ld=no
9938 fi
9939 ;;
9940 interix*)
9941 # we just hope/assume this is gcc and not c89 (= MSVC++)
9942 with_gnu_ld=yes
9943 ;;
9944 openbsd*)
9945 with_gnu_ld=no
9946 ;;
9947 esac
9948
9949 ld_shlibs=yes
43e02a8a
RW
9950
9951 # On some targets, GNU ld is compatible enough with the native linker
9952 # that we're better off using the native interface for both.
9953 lt_use_gnu_ld_interface=no
1cf3d07d 9954 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9955 case $host_os in
9956 aix*)
9957 # The AIX port of GNU ld has always aspired to compatibility
9958 # with the native linker. However, as the warning in the GNU ld
9959 # block says, versions before 2.19.5* couldn't really create working
9960 # shared libraries, regardless of the interface used.
9961 case `$LD -v 2>&1` in
9962 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9963 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9964 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9965 *)
9966 lt_use_gnu_ld_interface=yes
9967 ;;
9968 esac
9969 ;;
9970 *)
9971 lt_use_gnu_ld_interface=yes
9972 ;;
9973 esac
9974 fi
9975
9976 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9977 # If archive_cmds runs LD, not CC, wlarc should be empty
9978 wlarc='${wl}'
9979
9980 # Set some defaults for GNU ld with shared library support. These
9981 # are reset later if shared libraries are not supported. Putting them
9982 # here allows them to be overridden if necessary.
9983 runpath_var=LD_RUN_PATH
9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 export_dynamic_flag_spec='${wl}--export-dynamic'
9986 # ancient GNU ld didn't support --whole-archive et. al.
9987 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9988 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9989 else
9990 whole_archive_flag_spec=
9991 fi
9992 supports_anon_versioning=no
9993 case `$LD -v 2>&1` in
43e02a8a 9994 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9998 *\ 2.11.*) ;; # other 2.11 versions
9999 *) supports_anon_versioning=yes ;;
10000 esac
10001
10002 # See if GNU ld supports shared libraries.
10003 case $host_os in
4f6bebc3 10004 aix[3-9]*)
1cf3d07d
SE
10005 # On AIX/PPC, the GNU linker is very broken
10006 if test "$host_cpu" != ia64; then
10007 ld_shlibs=no
10008 cat <<_LT_EOF 1>&2
10009
43e02a8a 10010*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10011*** to be unable to reliably create shared libraries on AIX.
10012*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10013*** really care for shared libraries, you may want to install binutils
10014*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10015*** You will then need to restart the configuration process.
1cf3d07d
SE
10016
10017_LT_EOF
10018 fi
10019 ;;
10020
10021 amigaos*)
d58dead8
PG
10022 case $host_cpu in
10023 powerpc)
10024 # see comment about AmigaOS4 .so support
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 archive_expsym_cmds=''
10027 ;;
10028 m68k)
10029 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)'
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_minus_L=yes
10032 ;;
10033 esac
1cf3d07d
SE
10034 ;;
10035
10036 beos*)
10037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10038 allow_undefined_flag=unsupported
10039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10040 # support --undefined. This deserves some investigation. FIXME
10041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042 else
10043 ld_shlibs=no
10044 fi
10045 ;;
10046
d58dead8 10047 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10048 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10049 # as there is no search path for DLLs.
10050 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10051 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10052 allow_undefined_flag=unsupported
10053 always_export_symbols=no
10054 enable_shared_with_static_runtimes=yes
10055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10056
10057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10059 # If the export-symbols file already is a .def file (1st line
10060 # is EXPORTS), use it as is; otherwise, prepend...
10061 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10062 cp $export_symbols $output_objdir/$soname.def;
10063 else
10064 echo EXPORTS > $output_objdir/$soname.def;
10065 cat $export_symbols >> $output_objdir/$soname.def;
10066 fi~
10067 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10068 else
10069 ld_shlibs=no
10070 fi
10071 ;;
10072
43e02a8a
RW
10073 haiku*)
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 link_all_deplibs=yes
10076 ;;
10077
1cf3d07d
SE
10078 interix[3-9]*)
10079 hardcode_direct=no
10080 hardcode_shlibpath_var=no
10081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082 export_dynamic_flag_spec='${wl}-E'
10083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10084 # Instead, shared libraries are loaded at an image base (0x10000000 by
10085 # default) and relocated if they conflict, which is a slow very memory
10086 # consuming and fragmenting process. To avoid this, we pick a random,
10087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10090 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'
10091 ;;
10092
7a9d3fe8 10093 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10094 tmp_diet=no
10095 if test "$host_os" = linux-dietlibc; then
10096 case $cc_basename in
10097 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10098 esac
10099 fi
10100 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10101 && test "$tmp_diet" = no
10102 then
10103 tmp_addflag=
d58dead8 10104 tmp_sharedflag='-shared'
1cf3d07d
SE
10105 case $cc_basename,$host_cpu in
10106 pgcc*) # Portland Group C compiler
43e02a8a 10107 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
10108 tmp_addflag=' $pic_flag'
10109 ;;
43e02a8a
RW
10110 pgf77* | pgf90* | pgf95* | pgfortran*)
10111 # Portland Group f77 and f90 compilers
10112 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
10113 tmp_addflag=' $pic_flag -Mnomain' ;;
10114 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10115 tmp_addflag=' -i_dynamic' ;;
10116 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10117 tmp_addflag=' -i_dynamic -nofor_main' ;;
10118 ifc* | ifort*) # Intel Fortran compiler
10119 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10120 lf95*) # Lahey Fortran 8.1
10121 whole_archive_flag_spec=
10122 tmp_sharedflag='--shared' ;;
43e02a8a 10123 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10124 tmp_sharedflag='-qmkshrobj'
10125 tmp_addflag= ;;
43e02a8a
RW
10126 nvcc*) # Cuda Compiler Driver 2.2
10127 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'
10128 compiler_needs_object=yes
10129 ;;
1cf3d07d
SE
10130 esac
10131 case `$CC -V 2>&1 | sed 5q` in
10132 *Sun\ C*) # Sun C 5.9
43e02a8a 10133 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
10134 compiler_needs_object=yes
10135 tmp_sharedflag='-G' ;;
10136 *Sun\ F*) # Sun Fortran 8.3
10137 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10138 esac
10139 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140
10141 if test "x$supports_anon_versioning" = xyes; then
10142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10144 echo "local: *; };" >> $output_objdir/$libname.ver~
10145 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10146 fi
d58dead8
PG
10147
10148 case $cc_basename in
43e02a8a 10149 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10150 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10151 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10152 hardcode_libdir_flag_spec=
10153 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10154 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10155 if test "x$supports_anon_versioning" = xyes; then
10156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10158 echo "local: *; };" >> $output_objdir/$libname.ver~
10159 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10160 fi
10161 ;;
10162 esac
1cf3d07d
SE
10163 else
10164 ld_shlibs=no
10165 fi
10166 ;;
10167
10168 netbsd*)
10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10171 wlarc=
10172 else
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 fi
10176 ;;
10177
10178 solaris*)
10179 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10180 ld_shlibs=no
10181 cat <<_LT_EOF 1>&2
10182
10183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10184*** create shared libraries on Solaris systems. Therefore, libtool
10185*** is disabling shared libraries support. We urge you to upgrade GNU
10186*** binutils to release 2.9.1 or newer. Another option is to modify
10187*** your PATH or compiler configuration so that the native linker is
10188*** used, and then restart.
10189
10190_LT_EOF
10191 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194 else
10195 ld_shlibs=no
10196 fi
10197 ;;
10198
10199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10200 case `$LD -v 2>&1` in
10201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10202 ld_shlibs=no
10203 cat <<_LT_EOF 1>&2
10204
10205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10206*** reliably create shared libraries on SCO systems. Therefore, libtool
10207*** is disabling shared libraries support. We urge you to upgrade GNU
10208*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10209*** your PATH or compiler configuration so that the native linker is
10210*** used, and then restart.
10211
10212_LT_EOF
10213 ;;
10214 *)
10215 # For security reasons, it is highly recommended that you always
10216 # use absolute paths for naming shared libraries, and exclude the
10217 # DT_RUNPATH tag from executables and libraries. But doing so
10218 # requires that you compile everything twice, which is a pain.
10219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10223 else
10224 ld_shlibs=no
10225 fi
10226 ;;
10227 esac
10228 ;;
10229
10230 sunos4*)
10231 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232 wlarc=
10233 hardcode_direct=yes
10234 hardcode_shlibpath_var=no
10235 ;;
10236
10237 *)
10238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241 else
10242 ld_shlibs=no
10243 fi
10244 ;;
10245 esac
10246
10247 if test "$ld_shlibs" = no; then
10248 runpath_var=
10249 hardcode_libdir_flag_spec=
10250 export_dynamic_flag_spec=
10251 whole_archive_flag_spec=
10252 fi
10253 else
10254 # PORTME fill in a description of your system's linker (not GNU ld)
10255 case $host_os in
10256 aix3*)
10257 allow_undefined_flag=unsupported
10258 always_export_symbols=yes
10259 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'
10260 # Note: this linker hardcodes the directories in LIBPATH if there
10261 # are no directories specified by -L.
10262 hardcode_minus_L=yes
10263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10264 # Neither direct hardcoding nor static linking is supported with a
10265 # broken collect2.
10266 hardcode_direct=unsupported
10267 fi
10268 ;;
10269
4f6bebc3 10270 aix[4-9]*)
1cf3d07d
SE
10271 if test "$host_cpu" = ia64; then
10272 # On IA64, the linker does run time linking by default, so we don't
10273 # have to do anything special.
10274 aix_use_runtimelinking=no
10275 exp_sym_flag='-Bexport'
10276 no_entry_flag=""
10277 else
10278 # If we're using GNU nm, then we don't want the "-C" option.
10279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10280 # Also, AIX nm treats weak defined symbols like other global
10281 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10282 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10283 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
SE
10284 else
10285 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10286 fi
10287 aix_use_runtimelinking=no
10288
10289 # Test if we are trying to use run time linking or normal
10290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10291 # need to do runtime linking.
4f6bebc3 10292 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10293 for ld_flag in $LDFLAGS; do
10294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10295 aix_use_runtimelinking=yes
10296 break
10297 fi
10298 done
10299 ;;
10300 esac
10301
10302 exp_sym_flag='-bexport'
10303 no_entry_flag='-bnoentry'
10304 fi
10305
10306 # When large executables or shared objects are built, AIX ld can
10307 # have problems creating the table of contents. If linking a library
10308 # or program results in "error TOC overflow" add -mminimal-toc to
10309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10311
10312 archive_cmds=''
10313 hardcode_direct=yes
10314 hardcode_direct_absolute=yes
10315 hardcode_libdir_separator=':'
10316 link_all_deplibs=yes
10317 file_list_spec='${wl}-f,'
10318
10319 if test "$GCC" = yes; then
10320 case $host_os in aix4.[012]|aix4.[012].*)
10321 # We only want to do this on AIX 4.2 and lower, the check
10322 # below for broken collect2 doesn't work under 4.3+
10323 collect2name=`${CC} -print-prog-name=collect2`
10324 if test -f "$collect2name" &&
10325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10326 then
10327 # We have reworked collect2
10328 :
10329 else
10330 # We have old collect2
10331 hardcode_direct=unsupported
10332 # It fails to find uninstalled libraries when the uninstalled
10333 # path is not listed in the libpath. Setting hardcode_minus_L
10334 # to unsupported forces relinking
10335 hardcode_minus_L=yes
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_libdir_separator=
10338 fi
10339 ;;
10340 esac
10341 shared_flag='-shared'
10342 if test "$aix_use_runtimelinking" = yes; then
10343 shared_flag="$shared_flag "'${wl}-G'
10344 fi
10345 else
10346 # not using gcc
10347 if test "$host_cpu" = ia64; then
10348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10349 # chokes on -Wl,-G. The following line is correct:
10350 shared_flag='-G'
10351 else
10352 if test "$aix_use_runtimelinking" = yes; then
10353 shared_flag='${wl}-G'
10354 else
10355 shared_flag='${wl}-bM:SRE'
10356 fi
10357 fi
10358 fi
10359
d58dead8 10360 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10361 # It seems that -bexpall does not export symbols beginning with
10362 # underscore (_), so it is better to generate a list of symbols to export.
10363 always_export_symbols=yes
10364 if test "$aix_use_runtimelinking" = yes; then
10365 # Warning - without using the other runtime loading flags (-brtl),
10366 # -berok will link without error, but may produce a broken library.
10367 allow_undefined_flag='-berok'
10368 # Determine the default libpath from the value encoded in an
10369 # empty executable.
10370 if test x$gcc_no_link = xyes; then
5213506e 10371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10372fi
5213506e 10373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10374/* end confdefs.h. */
10375
10376int
10377main ()
10378{
10379
10380 ;
10381 return 0;
10382}
10383_ACEOF
5213506e 10384if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10385
10386lt_aix_libpath_sed='
10387 /Import File Strings/,/^$/ {
10388 /^0/ {
10389 s/^0 *\(.*\)$/\1/
10390 p
10391 }
10392 }'
10393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10394# Check for a 64-bit object if we didn't find anything.
10395if test -z "$aix_libpath"; then
10396 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10397fi
1cf3d07d 10398fi
5213506e
RW
10399rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10401if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10402
10403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10404 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
10405 else
10406 if test "$host_cpu" = ia64; then
10407 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10408 allow_undefined_flag="-z nodefs"
10409 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"
10410 else
10411 # Determine the default libpath from the value encoded in an
10412 # empty executable.
10413 if test x$gcc_no_link = xyes; then
5213506e 10414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10415fi
5213506e 10416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10417/* end confdefs.h. */
10418
10419int
10420main ()
10421{
10422
10423 ;
10424 return 0;
10425}
10426_ACEOF
5213506e 10427if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10428
10429lt_aix_libpath_sed='
10430 /Import File Strings/,/^$/ {
10431 /^0/ {
10432 s/^0 *\(.*\)$/\1/
10433 p
10434 }
10435 }'
10436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10437# Check for a 64-bit object if we didn't find anything.
10438if test -z "$aix_libpath"; then
10439 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10440fi
1cf3d07d 10441fi
5213506e
RW
10442rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10445
10446 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10447 # Warning - without using the other run time loading flags,
10448 # -berok will link without error, but may produce a broken library.
10449 no_undefined_flag=' ${wl}-bernotok'
10450 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10451 if test "$with_gnu_ld" = yes; then
10452 # We only use this code for GNU lds that support --whole-archive.
10453 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10454 else
10455 # Exported symbols can be pulled into shared objects from archives
10456 whole_archive_flag_spec='$convenience'
10457 fi
1cf3d07d
SE
10458 archive_cmds_need_lc=yes
10459 # This is similar to how AIX traditionally builds its shared libraries.
10460 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'
10461 fi
10462 fi
10463 ;;
10464
10465 amigaos*)
d58dead8
PG
10466 case $host_cpu in
10467 powerpc)
10468 # see comment about AmigaOS4 .so support
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 archive_expsym_cmds=''
10471 ;;
10472 m68k)
10473 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)'
10474 hardcode_libdir_flag_spec='-L$libdir'
10475 hardcode_minus_L=yes
10476 ;;
10477 esac
1cf3d07d
SE
10478 ;;
10479
10480 bsdi[45]*)
10481 export_dynamic_flag_spec=-rdynamic
10482 ;;
10483
d58dead8 10484 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10485 # When not using gcc, we currently assume that we are using
10486 # Microsoft Visual C++.
10487 # hardcode_libdir_flag_spec is actually meaningless, as there is
10488 # no search path for DLLs.
10489 hardcode_libdir_flag_spec=' '
10490 allow_undefined_flag=unsupported
10491 # Tell ltmain to make .lib files, not .a files.
10492 libext=lib
10493 # Tell ltmain to make .dll files, not .so files.
10494 shrext_cmds=".dll"
10495 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10497 # The linker will automatically build a .lib file if we build a DLL.
10498 old_archive_from_new_cmds='true'
10499 # FIXME: Should let the user specify the lib program.
10500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10501 fix_srcfile_path='`cygpath -w "$srcfile"`'
10502 enable_shared_with_static_runtimes=yes
10503 ;;
10504
10505 darwin* | rhapsody*)
1cf3d07d 10506
d58dead8
PG
10507
10508 archive_cmds_need_lc=no
10509 hardcode_direct=no
10510 hardcode_automatic=yes
10511 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10512 if test "$lt_cv_ld_force_load" = "yes"; then
10513 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\"`'
10514 else
10515 whole_archive_flag_spec=''
10516 fi
d58dead8
PG
10517 link_all_deplibs=yes
10518 allow_undefined_flag="$_lt_dar_allow_undefined"
10519 case $cc_basename in
10520 ifort*) _lt_dar_can_shared=yes ;;
10521 *) _lt_dar_can_shared=$GCC ;;
10522 esac
10523 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10524 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10525 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10526 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10527 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}"
10528 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}"
10529
10530 else
10531 ld_shlibs=no
10532 fi
10533
1cf3d07d
SE
10534 ;;
10535
10536 dgux*)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_shlibpath_var=no
10540 ;;
10541
1cf3d07d
SE
10542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10543 # support. Future versions do this automatically, but an explicit c++rt0.o
10544 # does not break anything, and helps significantly (at the cost of a little
10545 # extra space).
10546 freebsd2.2*)
10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10554 freebsd2.*)
1cf3d07d
SE
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_minus_L=yes
10558 hardcode_shlibpath_var=no
10559 ;;
10560
10561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10562 freebsd* | dragonfly*)
10563 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10564 hardcode_libdir_flag_spec='-R$libdir'
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 hpux9*)
10570 if test "$GCC" = yes; then
10571 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'
10572 else
10573 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'
10574 fi
10575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_direct=yes
10578
10579 # hardcode_minus_L: Not really in the search PATH,
10580 # but as the default location of the library.
10581 hardcode_minus_L=yes
10582 export_dynamic_flag_spec='${wl}-E'
10583 ;;
10584
10585 hpux10*)
43e02a8a 10586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10588 else
10589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10590 fi
10591 if test "$with_gnu_ld" = no; then
10592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10593 hardcode_libdir_flag_spec_ld='+b $libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_direct=yes
10596 hardcode_direct_absolute=yes
10597 export_dynamic_flag_spec='${wl}-E'
10598 # hardcode_minus_L: Not really in the search PATH,
10599 # but as the default location of the library.
10600 hardcode_minus_L=yes
10601 fi
10602 ;;
10603
10604 hpux11*)
43e02a8a 10605 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10606 case $host_cpu in
10607 hppa*64*)
10608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 ia64*)
d58dead8 10611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10612 ;;
10613 *)
10614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 esac
10617 else
10618 case $host_cpu in
10619 hppa*64*)
10620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 ia64*)
10623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10624 ;;
10625 *)
43e02a8a
RW
10626
10627 # Older versions of the 11.00 compiler do not understand -b yet
10628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10630$as_echo_n "checking if $CC understands -b... " >&6; }
10631if test "${lt_cv_prog_compiler__b+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 lt_cv_prog_compiler__b=no
10635 save_LDFLAGS="$LDFLAGS"
10636 LDFLAGS="$LDFLAGS -b"
10637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10639 # The linker can only warn and ignore the option if not recognized
10640 # So say no if there are warnings
10641 if test -s conftest.err; then
10642 # Append any errors to the config.log.
10643 cat conftest.err 1>&5
10644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10646 if diff conftest.exp conftest.er2 >/dev/null; then
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 else
10650 lt_cv_prog_compiler__b=yes
10651 fi
10652 fi
10653 $RM -r conftest*
10654 LDFLAGS="$save_LDFLAGS"
10655
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10658$as_echo "$lt_cv_prog_compiler__b" >&6; }
10659
10660if test x"$lt_cv_prog_compiler__b" = xyes; then
10661 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10662else
10663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10664fi
10665
1cf3d07d
SE
10666 ;;
10667 esac
10668 fi
10669 if test "$with_gnu_ld" = no; then
10670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10671 hardcode_libdir_separator=:
10672
10673 case $host_cpu in
10674 hppa*64*|ia64*)
10675 hardcode_direct=no
10676 hardcode_shlibpath_var=no
10677 ;;
10678 *)
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='${wl}-E'
10682
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 ;;
10687 esac
10688 fi
10689 ;;
10690
10691 irix5* | irix6* | nonstopux*)
10692 if test "$GCC" = yes; then
43e02a8a 10693 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
10694 # Try to use the -exported_symbol ld option, if it does not
10695 # work, assume that -exports_file does not work either and
10696 # implicitly export all symbols.
10697 save_LDFLAGS="$LDFLAGS"
10698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10699 if test x$gcc_no_link = xyes; then
5213506e 10700 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10701fi
5213506e
RW
10702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703/* end confdefs.h. */
1cf3d07d
SE
10704int foo(void) {}
10705_ACEOF
5213506e 10706if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10707 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 10708
1cf3d07d 10709fi
5213506e
RW
10710rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10712 LDFLAGS="$save_LDFLAGS"
10713 else
43e02a8a
RW
10714 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'
10715 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
10716 fi
10717 archive_cmds_need_lc='no'
10718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10719 hardcode_libdir_separator=:
10720 inherit_rpath=yes
10721 link_all_deplibs=yes
10722 ;;
10723
10724 netbsd*)
10725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10727 else
10728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10729 fi
10730 hardcode_libdir_flag_spec='-R$libdir'
10731 hardcode_direct=yes
10732 hardcode_shlibpath_var=no
10733 ;;
10734
10735 newsos6)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_direct=yes
10738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739 hardcode_libdir_separator=:
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 *nto* | *qnx*)
10744 ;;
10745
10746 openbsd*)
d58dead8
PG
10747 if test -f /usr/libexec/ld.so; then
10748 hardcode_direct=yes
10749 hardcode_shlibpath_var=no
10750 hardcode_direct_absolute=yes
10751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10755 export_dynamic_flag_spec='${wl}-E'
10756 else
10757 case $host_os in
10758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_libdir_flag_spec='-R$libdir'
10761 ;;
10762 *)
10763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10765 ;;
10766 esac
10767 fi
10768 else
10769 ld_shlibs=no
1cf3d07d
SE
10770 fi
10771 ;;
10772
10773 os2*)
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_minus_L=yes
10776 allow_undefined_flag=unsupported
43e02a8a 10777 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
10778 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10779 ;;
10780
10781 osf3*)
10782 if test "$GCC" = yes; then
10783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10784 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
10785 else
10786 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10787 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
10788 fi
10789 archive_cmds_need_lc='no'
10790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10791 hardcode_libdir_separator=:
10792 ;;
10793
10794 osf4* | osf5*) # as osf3* with the addition of -msym flag
10795 if test "$GCC" = yes; then
10796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10797 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
10798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799 else
10800 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10801 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 10802 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 10803 $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
10804
10805 # Both c and cxx compiler support -rpath directly
10806 hardcode_libdir_flag_spec='-rpath $libdir'
10807 fi
10808 archive_cmds_need_lc='no'
10809 hardcode_libdir_separator=:
10810 ;;
10811
10812 solaris*)
10813 no_undefined_flag=' -z defs'
10814 if test "$GCC" = yes; then
10815 wlarc='${wl}'
10816 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10818 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10819 else
10820 case `$CC -V 2>&1` in
10821 *"Compilers 5.0"*)
10822 wlarc=''
10823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10826 ;;
10827 *)
10828 wlarc='${wl}'
10829 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10832 ;;
10833 esac
10834 fi
10835 hardcode_libdir_flag_spec='-R$libdir'
10836 hardcode_shlibpath_var=no
10837 case $host_os in
10838 solaris2.[0-5] | solaris2.[0-5].*) ;;
10839 *)
10840 # The compiler driver will combine and reorder linker options,
10841 # but understands `-z linker_flag'. GCC discards it without `$wl',
10842 # but is careful enough not to reorder.
10843 # Supported since Solaris 2.6 (maybe 2.5.1?)
10844 if test "$GCC" = yes; then
10845 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10846 else
10847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10848 fi
10849 ;;
10850 esac
10851 link_all_deplibs=yes
10852 ;;
10853
10854 sunos4*)
10855 if test "x$host_vendor" = xsequent; then
10856 # Use $CC to link under sequent, because it throws in some extra .o
10857 # files that make .init and .fini sections work.
10858 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859 else
10860 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10861 fi
10862 hardcode_libdir_flag_spec='-L$libdir'
10863 hardcode_direct=yes
10864 hardcode_minus_L=yes
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 sysv4)
10869 case $host_vendor in
10870 sni)
10871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10872 hardcode_direct=yes # is this really true???
10873 ;;
10874 siemens)
10875 ## LD is ld it makes a PLAMLIB
10876 ## CC just makes a GrossModule.
10877 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10878 reload_cmds='$CC -r -o $output$reload_objs'
10879 hardcode_direct=no
10880 ;;
10881 motorola)
10882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10883 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10884 ;;
10885 esac
10886 runpath_var='LD_RUN_PATH'
10887 hardcode_shlibpath_var=no
10888 ;;
10889
10890 sysv4.3*)
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_shlibpath_var=no
10893 export_dynamic_flag_spec='-Bexport'
10894 ;;
10895
10896 sysv4*MP*)
10897 if test -d /usr/nec; then
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_shlibpath_var=no
10900 runpath_var=LD_RUN_PATH
10901 hardcode_runpath_var=yes
10902 ld_shlibs=yes
10903 fi
10904 ;;
10905
10906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10907 no_undefined_flag='${wl}-z,text'
10908 archive_cmds_need_lc=no
10909 hardcode_shlibpath_var=no
10910 runpath_var='LD_RUN_PATH'
10911
10912 if test "$GCC" = yes; then
10913 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 else
10916 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10917 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 fi
10919 ;;
10920
10921 sysv5* | sco3.2v5* | sco5v6*)
10922 # Note: We can NOT use -z defs as we might desire, because we do not
10923 # link with -lc, and that would cause any symbols used from libc to
10924 # always be unresolved, which means just about no library would
10925 # ever link correctly. If we're not using GNU ld we use -z text
10926 # though, which does catch some bad symbols but isn't as heavy-handed
10927 # as -z defs.
10928 no_undefined_flag='${wl}-z,text'
10929 allow_undefined_flag='${wl}-z,nodefs'
10930 archive_cmds_need_lc=no
10931 hardcode_shlibpath_var=no
10932 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10933 hardcode_libdir_separator=':'
10934 link_all_deplibs=yes
10935 export_dynamic_flag_spec='${wl}-Bexport'
10936 runpath_var='LD_RUN_PATH'
10937
10938 if test "$GCC" = yes; then
10939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 else
10942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 fi
10945 ;;
10946
10947 uts4*)
10948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 hardcode_shlibpath_var=no
10951 ;;
10952
10953 *)
10954 ld_shlibs=no
10955 ;;
10956 esac
10957
10958 if test x$host_vendor = xsni; then
10959 case $host in
10960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10961 export_dynamic_flag_spec='${wl}-Blargedynsym'
10962 ;;
10963 esac
10964 fi
10965 fi
10966
5213506e
RW
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10968$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10969test "$ld_shlibs" = no && can_build_shared=no
10970
10971with_gnu_ld=$with_gnu_ld
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987#
10988# Do we need to explicitly link libc?
10989#
10990case "x$archive_cmds_need_lc" in
10991x|xyes)
10992 # Assume -lc should be added
10993 archive_cmds_need_lc=yes
10994
10995 if test "$enable_shared" = yes && test "$GCC" = yes; then
10996 case $archive_cmds in
10997 *'~'*)
10998 # FIXME: we may have to deal with multi-command sequences.
10999 ;;
11000 '$CC '*)
11001 # Test whether the compiler implicitly links with -lc since on some
11002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11003 # to ld, don't add -lc before -lgcc.
5213506e
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11005$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11006if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
baafc534
RW
11008else
11009 $RM conftest*
11010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11011
5213506e 11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11013 (eval $ac_compile) 2>&5
11014 ac_status=$?
5213506e
RW
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11017 soname=conftest
11018 lib=conftest
11019 libobjs=conftest.$ac_objext
11020 deplibs=
11021 wl=$lt_prog_compiler_wl
11022 pic_flag=$lt_prog_compiler_pic
11023 compiler_flags=-v
11024 linker_flags=-v
11025 verstring=
11026 output_objdir=.
11027 libname=conftest
11028 lt_save_allow_undefined_flag=$allow_undefined_flag
11029 allow_undefined_flag=
5213506e 11030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11031 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11032 ac_status=$?
5213506e
RW
11033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11034 test $ac_status = 0; }
baafc534
RW
11035 then
11036 lt_cv_archive_cmds_need_lc=no
11037 else
11038 lt_cv_archive_cmds_need_lc=yes
11039 fi
11040 allow_undefined_flag=$lt_save_allow_undefined_flag
11041 else
11042 cat conftest.err 1>&5
11043 fi
11044 $RM conftest*
11045
11046fi
5213506e
RW
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11048$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11049 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11050 ;;
11051 esac
11052 fi
11053 ;;
11054esac
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
5213506e
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11213$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11214
11215if test "$GCC" = yes; then
1cf3d07d
SE
11216 case $host_os in
11217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11218 *) lt_awk_arg="/^libraries:/" ;;
11219 esac
43e02a8a
RW
11220 case $host_os in
11221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11222 *) lt_sed_strip_eq="s,=/,/,g" ;;
11223 esac
11224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11225 case $lt_search_path_spec in
11226 *\;*)
1cf3d07d
SE
11227 # if the path contains ";" then we assume it to be the separator
11228 # otherwise default to the standard path separator (i.e. ":") - it is
11229 # assumed that no part of a normal pathname contains ";" but that should
11230 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11232 ;;
11233 *)
11234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11235 ;;
11236 esac
1cf3d07d
SE
11237 # Ok, now we have the path, separated by spaces, we can step through it
11238 # and add multilib dir if necessary.
11239 lt_tmp_lt_search_path_spec=
11240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11241 for lt_sys_path in $lt_search_path_spec; do
11242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11244 else
11245 test -d "$lt_sys_path" && \
11246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11247 fi
11248 done
43e02a8a 11249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11250BEGIN {RS=" "; FS="/|\n";} {
11251 lt_foo="";
11252 lt_count=0;
11253 for (lt_i = NF; lt_i > 0; lt_i--) {
11254 if ($lt_i != "" && $lt_i != ".") {
11255 if ($lt_i == "..") {
11256 lt_count++;
11257 } else {
11258 if (lt_count == 0) {
11259 lt_foo="/" $lt_i lt_foo;
11260 } else {
11261 lt_count--;
11262 }
11263 }
11264 }
11265 }
11266 if (lt_foo != "") { lt_freq[lt_foo]++; }
11267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11268}'`
43e02a8a
RW
11269 # AWK program above erroneously prepends '/' to C:/dos/paths
11270 # for these hosts.
11271 case $host_os in
11272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11274 esac
11275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11276else
11277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278fi
11279library_names_spec=
11280libname_spec='lib$name'
11281soname_spec=
11282shrext_cmds=".so"
11283postinstall_cmds=
11284postuninstall_cmds=
11285finish_cmds=
11286finish_eval=
11287shlibpath_var=
11288shlibpath_overrides_runpath=unknown
11289version_type=none
11290dynamic_linker="$host_os ld.so"
11291sys_lib_dlsearch_path_spec="/lib /usr/lib"
11292need_lib_prefix=unknown
11293hardcode_into_libs=no
11294
11295# when you set need_version to no, make sure it does not cause -set_version
11296# flags to be left without arguments
11297need_version=unknown
11298
11299case $host_os in
11300aix3*)
11301 version_type=linux
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11303 shlibpath_var=LIBPATH
11304
11305 # AIX 3 has no versioning support, so we append a major version to the name.
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 ;;
11308
4f6bebc3 11309aix[4-9]*)
1cf3d07d
SE
11310 version_type=linux
11311 need_lib_prefix=no
11312 need_version=no
11313 hardcode_into_libs=yes
11314 if test "$host_cpu" = ia64; then
11315 # AIX 5 supports IA64
11316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 else
11319 # With GCC up to 2.95.x, collect2 would create an import file
11320 # for dependence libraries. The import file would start with
11321 # the line `#! .'. This would cause the generated library to
11322 # depend on `.', always an invalid library. This was fixed in
11323 # development snapshots of GCC prior to 3.0.
11324 case $host_os in
11325 aix4 | aix4.[01] | aix4.[01].*)
11326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11327 echo ' yes '
11328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11329 :
11330 else
11331 can_build_shared=no
11332 fi
11333 ;;
11334 esac
11335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11336 # soname into executable. Probably we can add versioning support to
11337 # collect2, so additional links can be useful in future.
11338 if test "$aix_use_runtimelinking" = yes; then
11339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11340 # instead of lib<name>.a to let people know that these are not
11341 # typical AIX shared libraries.
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 else
11344 # We preserve .a as extension for shared libraries through AIX4.2
11345 # and later when we are not doing run time linking.
11346 library_names_spec='${libname}${release}.a $libname.a'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 fi
11349 shlibpath_var=LIBPATH
11350 fi
11351 ;;
11352
11353amigaos*)
d58dead8
PG
11354 case $host_cpu in
11355 powerpc)
11356 # Since July 2007 AmigaOS4 officially supports .so libraries.
11357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 ;;
11360 m68k)
1cf3d07d
SE
11361 library_names_spec='$libname.ixlibrary $libname.a'
11362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11363 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
11364 ;;
11365 esac
1cf3d07d
SE
11366 ;;
11367
11368beos*)
11369 library_names_spec='${libname}${shared_ext}'
11370 dynamic_linker="$host_os ld.so"
11371 shlibpath_var=LIBRARY_PATH
11372 ;;
11373
11374bsdi[45]*)
11375 version_type=linux
11376 need_version=no
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383 # the default ld.so.conf also contains /usr/contrib/lib and
11384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385 # libtool to hard-code these into programs
11386 ;;
11387
d58dead8 11388cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11389 version_type=windows
11390 shrext_cmds=".dll"
11391 need_version=no
11392 need_lib_prefix=no
11393
d58dead8
PG
11394 case $GCC,$host_os in
11395 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11396 library_names_spec='$libname.dll.a'
11397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11398 postinstall_cmds='base_file=`basename \${file}`~
11399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11400 dldir=$destdir/`dirname \$dlpath`~
11401 test -d \$dldir || mkdir -p \$dldir~
11402 $install_prog $dir/$dlname \$dldir/$dlname~
11403 chmod a+x \$dldir/$dlname~
11404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11406 fi'
11407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11408 dlpath=$dir/\$dldll~
11409 $RM \$dlpath'
11410 shlibpath_overrides_runpath=yes
11411
11412 case $host_os in
11413 cygwin*)
11414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11416
11417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11418 ;;
d58dead8 11419 mingw* | cegcc*)
1cf3d07d
SE
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11422 ;;
11423 pw32*)
11424 # pw32 DLLs use 'pw' prefix rather than 'lib'
11425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 ;;
11427 esac
11428 ;;
11429
11430 *)
11431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11432 ;;
11433 esac
11434 dynamic_linker='Win32 ld.exe'
11435 # FIXME: first we should search . and the directory the executable is in
11436 shlibpath_var=PATH
11437 ;;
11438
11439darwin* | rhapsody*)
11440 dynamic_linker="$host_os dyld"
11441 version_type=darwin
11442 need_lib_prefix=no
11443 need_version=no
11444 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11445 soname_spec='${libname}${release}${major}$shared_ext'
11446 shlibpath_overrides_runpath=yes
11447 shlibpath_var=DYLD_LIBRARY_PATH
11448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11449
11450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11452 ;;
11453
11454dgux*)
11455 version_type=linux
11456 need_lib_prefix=no
11457 need_version=no
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 ;;
11462
1cf3d07d
SE
11463freebsd* | dragonfly*)
11464 # DragonFly does not have aout. When/if they implement a new
11465 # versioning mechanism, adjust this.
11466 if test -x /usr/bin/objformat; then
11467 objformat=`/usr/bin/objformat`
11468 else
11469 case $host_os in
c6084f68 11470 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11471 *) objformat=elf ;;
11472 esac
11473 fi
11474 version_type=freebsd-$objformat
11475 case $version_type in
11476 freebsd-elf*)
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11478 need_version=no
11479 need_lib_prefix=no
11480 ;;
11481 freebsd-*)
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11483 need_version=yes
11484 ;;
11485 esac
11486 shlibpath_var=LD_LIBRARY_PATH
11487 case $host_os in
c6084f68 11488 freebsd2.*)
1cf3d07d
SE
11489 shlibpath_overrides_runpath=yes
11490 ;;
11491 freebsd3.[01]* | freebsdelf3.[01]*)
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11494 ;;
11495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 ;;
11500 *) # from 4.6 on, and DragonFly
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 ;;
11504 esac
11505 ;;
11506
11507gnu*)
11508 version_type=linux
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 hardcode_into_libs=yes
11515 ;;
11516
43e02a8a
RW
11517haiku*)
11518 version_type=linux
11519 need_lib_prefix=no
11520 need_version=no
11521 dynamic_linker="$host_os runtime_loader"
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 shlibpath_var=LIBRARY_PATH
11525 shlibpath_overrides_runpath=yes
11526 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11527 hardcode_into_libs=yes
11528 ;;
11529
1cf3d07d
SE
11530hpux9* | hpux10* | hpux11*)
11531 # Give a soname corresponding to the major version so that dld.sl refuses to
11532 # link against other versions.
11533 version_type=sunos
11534 need_lib_prefix=no
11535 need_version=no
11536 case $host_cpu in
11537 ia64*)
11538 shrext_cmds='.so'
11539 hardcode_into_libs=yes
11540 dynamic_linker="$host_os dld.so"
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 if test "X$HPUX_IA64_MODE" = X32; then
11546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11547 else
11548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11549 fi
11550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551 ;;
11552 hppa*64*)
11553 shrext_cmds='.sl'
11554 hardcode_into_libs=yes
11555 dynamic_linker="$host_os dld.sl"
11556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11562 ;;
11563 *)
11564 shrext_cmds='.sl'
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=SHLIB_PATH
11567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 ;;
11571 esac
43e02a8a 11572 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11573 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11574 # or fails outright, so override atomically:
11575 install_override_mode=555
1cf3d07d
SE
11576 ;;
11577
11578interix[3-9]*)
11579 version_type=linux
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=no
11587 hardcode_into_libs=yes
11588 ;;
11589
11590irix5* | irix6* | nonstopux*)
11591 case $host_os in
11592 nonstopux*) version_type=nonstopux ;;
11593 *)
11594 if test "$lt_cv_prog_gnu_ld" = yes; then
11595 version_type=linux
11596 else
11597 version_type=irix
11598 fi ;;
11599 esac
11600 need_lib_prefix=no
11601 need_version=no
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11604 case $host_os in
11605 irix5* | nonstopux*)
11606 libsuff= shlibsuff=
11607 ;;
11608 *)
11609 case $LD in # libtool.m4 will add one of these switches to LD
11610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11611 libsuff= shlibsuff= libmagic=32-bit;;
11612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11613 libsuff=32 shlibsuff=N32 libmagic=N32;;
11614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11616 *) libsuff= shlibsuff= libmagic=never-match;;
11617 esac
11618 ;;
11619 esac
11620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11621 shlibpath_overrides_runpath=no
11622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11624 hardcode_into_libs=yes
11625 ;;
11626
11627# No shared lib support for Linux oldld, aout, or coff.
11628linux*oldld* | linux*aout* | linux*coff*)
11629 dynamic_linker=no
11630 ;;
11631
11632# This must be Linux ELF.
7a9d3fe8 11633linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11634 version_type=linux
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=no
baafc534 11642
1cf3d07d 11643 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11644 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
baafc534
RW
11646else
11647 lt_cv_shlibpath_overrides_runpath=no
11648 save_LDFLAGS=$LDFLAGS
11649 save_libdir=$libdir
11650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11652 if test x$gcc_no_link = xyes; then
5213506e 11653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11654fi
5213506e 11655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11656/* end confdefs.h. */
11657
11658int
11659main ()
11660{
11661
11662 ;
11663 return 0;
11664}
11665_ACEOF
5213506e
RW
11666if ac_fn_c_try_link "$LINENO"; then :
11667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11668 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11669fi
1cf3d07d 11670fi
5213506e
RW
11671rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11673 LDFLAGS=$save_LDFLAGS
11674 libdir=$save_libdir
11675
11676fi
11677
11678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11679
11680 # This implies no fast_install, which is unacceptable.
11681 # Some rework will be needed to allow for fast_install
11682 # before this can be enabled.
11683 hardcode_into_libs=yes
11684
11685 # Append ld.so.conf contents to the search path
11686 if test -f /etc/ld.so.conf; then
43e02a8a 11687 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
11688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11689 fi
11690
11691 # We used to test for /lib/ld.so.1 and disable shared libraries on
11692 # powerpc, because MkLinux only supported shared libraries with the
11693 # GNU dynamic linker. Since this was broken with cross compilers,
11694 # most powerpc-linux boxes support dynamic linking these days and
11695 # people can always --disable-shared, the test was removed, and we
11696 # assume the GNU/Linux dynamic linker is in use.
11697 dynamic_linker='GNU/Linux ld.so'
11698 ;;
11699
11700netbsd*)
11701 version_type=sunos
11702 need_lib_prefix=no
11703 need_version=no
11704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11707 dynamic_linker='NetBSD (a.out) ld.so'
11708 else
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 dynamic_linker='NetBSD ld.elf_so'
11712 fi
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11715 hardcode_into_libs=yes
11716 ;;
11717
11718newsos6)
11719 version_type=linux
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11723 ;;
11724
11725*nto* | *qnx*)
11726 version_type=qnx
11727 need_lib_prefix=no
11728 need_version=no
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=no
11733 hardcode_into_libs=yes
11734 dynamic_linker='ldqnx.so'
11735 ;;
11736
11737openbsd*)
11738 version_type=sunos
11739 sys_lib_dlsearch_path_spec="/usr/lib"
11740 need_lib_prefix=no
11741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11742 case $host_os in
11743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11744 *) need_version=no ;;
11745 esac
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11750 case $host_os in
11751 openbsd2.[89] | openbsd2.[89].*)
11752 shlibpath_overrides_runpath=no
11753 ;;
11754 *)
11755 shlibpath_overrides_runpath=yes
11756 ;;
11757 esac
11758 else
11759 shlibpath_overrides_runpath=yes
11760 fi
11761 ;;
11762
11763os2*)
11764 libname_spec='$name'
11765 shrext_cmds=".dll"
11766 need_lib_prefix=no
11767 library_names_spec='$libname${shared_ext} $libname.a'
11768 dynamic_linker='OS/2 ld.exe'
11769 shlibpath_var=LIBPATH
11770 ;;
11771
11772osf3* | osf4* | osf5*)
11773 version_type=osf
11774 need_lib_prefix=no
11775 need_version=no
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11781 ;;
11782
11783rdos*)
11784 dynamic_linker=no
11785 ;;
11786
11787solaris*)
11788 version_type=linux
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 soname_spec='${libname}${release}${shared_ext}$major'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11796 # ldd complains unless libraries are executable
11797 postinstall_cmds='chmod +x $lib'
11798 ;;
11799
11800sunos4*)
11801 version_type=sunos
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11806 if test "$with_gnu_ld" = yes; then
11807 need_lib_prefix=no
11808 fi
11809 need_version=yes
11810 ;;
11811
11812sysv4 | sysv4.3*)
11813 version_type=linux
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 case $host_vendor in
11818 sni)
11819 shlibpath_overrides_runpath=no
11820 need_lib_prefix=no
11821 runpath_var=LD_RUN_PATH
11822 ;;
11823 siemens)
11824 need_lib_prefix=no
11825 ;;
11826 motorola)
11827 need_lib_prefix=no
11828 need_version=no
11829 shlibpath_overrides_runpath=no
11830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11831 ;;
11832 esac
11833 ;;
11834
11835sysv4*MP*)
11836 if test -d /usr/nec ;then
11837 version_type=linux
11838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11839 soname_spec='$libname${shared_ext}.$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 fi
11842 ;;
11843
11844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11845 version_type=freebsd-elf
11846 need_lib_prefix=no
11847 need_version=no
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11852 hardcode_into_libs=yes
11853 if test "$with_gnu_ld" = yes; then
11854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11855 else
11856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11857 case $host_os in
11858 sco3.2v5*)
11859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11860 ;;
11861 esac
11862 fi
11863 sys_lib_dlsearch_path_spec='/usr/lib'
11864 ;;
11865
11866tpf*)
11867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11868 version_type=linux
11869 need_lib_prefix=no
11870 need_version=no
d58dead8 11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11872 shlibpath_var=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath=no
11874 hardcode_into_libs=yes
11875 ;;
11876
11877uts4*)
11878 version_type=linux
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880 soname_spec='${libname}${release}${shared_ext}$major'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 ;;
11883
11884*)
11885 dynamic_linker=no
11886 ;;
11887esac
5213506e
RW
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11889$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11890test "$dynamic_linker" = no && can_build_shared=no
11891
11892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11893if test "$GCC" = yes; then
11894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11895fi
11896
d58dead8
PG
11897if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11899fi
11900if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11902fi
11903
1cf3d07d
SE
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
43e02a8a
RW
11984
11985
11986
11987
11988
1cf3d07d
SE
11989
11990
11991
11992
11993
11994
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11996$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11997hardcode_action=
11998if test -n "$hardcode_libdir_flag_spec" ||
11999 test -n "$runpath_var" ||
12000 test "X$hardcode_automatic" = "Xyes" ; then
12001
12002 # We can hardcode non-existent directories.
12003 if test "$hardcode_direct" != no &&
12004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12005 # have to relink, otherwise we might link with an installed library
12006 # when we should be linking with a yet-to-be-installed one
12007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12008 test "$hardcode_minus_L" != no; then
12009 # Linking always hardcodes the temporary library directory.
12010 hardcode_action=relink
12011 else
12012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12013 hardcode_action=immediate
12014 fi
12015else
12016 # We cannot hardcode anything, or else we can only hardcode existing
12017 # directories.
12018 hardcode_action=unsupported
12019fi
5213506e
RW
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12021$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12022
12023if test "$hardcode_action" = relink ||
12024 test "$inherit_rpath" = yes; then
12025 # Fast installation is not supported
12026 enable_fast_install=no
12027elif test "$shlibpath_overrides_runpath" = yes ||
12028 test "$enable_shared" = no; then
12029 # Fast installation is not necessary
12030 enable_fast_install=needless
12031fi
12032
12033
12034
12035
12036
12037
12038 if test "x$enable_dlopen" != xyes; then
12039 enable_dlopen=unknown
12040 enable_dlopen_self=unknown
12041 enable_dlopen_self_static=unknown
12042else
12043 lt_cv_dlopen=no
12044 lt_cv_dlopen_libs=
12045
12046 case $host_os in
12047 beos*)
12048 lt_cv_dlopen="load_add_on"
12049 lt_cv_dlopen_libs=
12050 lt_cv_dlopen_self=yes
12051 ;;
12052
d58dead8 12053 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12054 lt_cv_dlopen="LoadLibrary"
12055 lt_cv_dlopen_libs=
12056 ;;
12057
12058 cygwin*)
12059 lt_cv_dlopen="dlopen"
12060 lt_cv_dlopen_libs=
12061 ;;
12062
12063 darwin*)
12064 # if libdl is installed we need to link against it
5213506e
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12066$as_echo_n "checking for dlopen in -ldl... " >&6; }
12067if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12069else
12070 ac_check_lib_save_LIBS=$LIBS
12071LIBS="-ldl $LIBS"
12072if test x$gcc_no_link = xyes; then
5213506e 12073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12074fi
5213506e 12075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12076/* end confdefs.h. */
12077
5213506e
RW
12078/* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12081#ifdef __cplusplus
12082extern "C"
12083#endif
1cf3d07d
SE
12084char dlopen ();
12085int
12086main ()
12087{
5213506e 12088return dlopen ();
1cf3d07d
SE
12089 ;
12090 return 0;
12091}
12092_ACEOF
5213506e 12093if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12094 ac_cv_lib_dl_dlopen=yes
12095else
5213506e 12096 ac_cv_lib_dl_dlopen=no
1cf3d07d 12097fi
5213506e
RW
12098rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12100LIBS=$ac_check_lib_save_LIBS
12101fi
5213506e
RW
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12104if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12106else
12107
12108 lt_cv_dlopen="dyld"
12109 lt_cv_dlopen_libs=
12110 lt_cv_dlopen_self=yes
12111
12112fi
12113
12114 ;;
12115
12116 *)
5213506e
RW
12117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12118if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
12119 lt_cv_dlopen="shl_load"
12120else
5213506e
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12122$as_echo_n "checking for shl_load in -ldld... " >&6; }
12123if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12125else
12126 ac_check_lib_save_LIBS=$LIBS
12127LIBS="-ldld $LIBS"
12128if test x$gcc_no_link = xyes; then
5213506e 12129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12130fi
5213506e 12131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12132/* end confdefs.h. */
12133
5213506e
RW
12134/* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12137#ifdef __cplusplus
12138extern "C"
12139#endif
1cf3d07d
SE
12140char shl_load ();
12141int
12142main ()
12143{
5213506e 12144return shl_load ();
1cf3d07d
SE
12145 ;
12146 return 0;
12147}
12148_ACEOF
5213506e 12149if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12150 ac_cv_lib_dld_shl_load=yes
12151else
5213506e 12152 ac_cv_lib_dld_shl_load=no
1cf3d07d 12153fi
5213506e
RW
12154rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12156LIBS=$ac_check_lib_save_LIBS
12157fi
5213506e
RW
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12159$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12160if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 12161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12162else
5213506e
RW
12163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12164if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
12165 lt_cv_dlopen="dlopen"
12166else
5213506e
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12168$as_echo_n "checking for dlopen in -ldl... " >&6; }
12169if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12171else
12172 ac_check_lib_save_LIBS=$LIBS
12173LIBS="-ldl $LIBS"
12174if test x$gcc_no_link = xyes; then
5213506e 12175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12176fi
5213506e 12177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12178/* end confdefs.h. */
12179
5213506e
RW
12180/* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12183#ifdef __cplusplus
12184extern "C"
12185#endif
1cf3d07d
SE
12186char dlopen ();
12187int
12188main ()
12189{
5213506e 12190return dlopen ();
1cf3d07d
SE
12191 ;
12192 return 0;
12193}
12194_ACEOF
5213506e 12195if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12196 ac_cv_lib_dl_dlopen=yes
12197else
5213506e 12198 ac_cv_lib_dl_dlopen=no
1cf3d07d 12199fi
5213506e
RW
12200rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12202LIBS=$ac_check_lib_save_LIBS
12203fi
5213506e
RW
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12205$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12206if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12208else
5213506e
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12210$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12211if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12213else
12214 ac_check_lib_save_LIBS=$LIBS
12215LIBS="-lsvld $LIBS"
12216if test x$gcc_no_link = xyes; then
5213506e 12217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12218fi
5213506e 12219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12220/* end confdefs.h. */
12221
5213506e
RW
12222/* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12225#ifdef __cplusplus
12226extern "C"
12227#endif
1cf3d07d
SE
12228char dlopen ();
12229int
12230main ()
12231{
5213506e 12232return dlopen ();
1cf3d07d
SE
12233 ;
12234 return 0;
12235}
12236_ACEOF
5213506e 12237if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12238 ac_cv_lib_svld_dlopen=yes
12239else
5213506e 12240 ac_cv_lib_svld_dlopen=no
1cf3d07d 12241fi
5213506e
RW
12242rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12244LIBS=$ac_check_lib_save_LIBS
12245fi
5213506e
RW
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12247$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12248if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12250else
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12252$as_echo_n "checking for dld_link in -ldld... " >&6; }
12253if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12255else
12256 ac_check_lib_save_LIBS=$LIBS
12257LIBS="-ldld $LIBS"
12258if test x$gcc_no_link = xyes; then
5213506e 12259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12260fi
5213506e 12261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12262/* end confdefs.h. */
12263
5213506e
RW
12264/* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12267#ifdef __cplusplus
12268extern "C"
12269#endif
1cf3d07d
SE
12270char dld_link ();
12271int
12272main ()
12273{
5213506e 12274return dld_link ();
1cf3d07d
SE
12275 ;
12276 return 0;
12277}
12278_ACEOF
5213506e 12279if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12280 ac_cv_lib_dld_dld_link=yes
12281else
5213506e 12282 ac_cv_lib_dld_dld_link=no
1cf3d07d 12283fi
5213506e
RW
12284rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12286LIBS=$ac_check_lib_save_LIBS
12287fi
5213506e
RW
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12289$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12290if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12292fi
12293
12294
12295fi
12296
12297
12298fi
12299
12300
12301fi
12302
12303
12304fi
12305
12306
12307fi
12308
12309 ;;
12310 esac
12311
12312 if test "x$lt_cv_dlopen" != xno; then
12313 enable_dlopen=yes
12314 else
12315 enable_dlopen=no
12316 fi
12317
12318 case $lt_cv_dlopen in
12319 dlopen)
12320 save_CPPFLAGS="$CPPFLAGS"
12321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12322
12323 save_LDFLAGS="$LDFLAGS"
12324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12325
12326 save_LIBS="$LIBS"
12327 LIBS="$lt_cv_dlopen_libs $LIBS"
12328
5213506e
RW
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12330$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12331if test "${lt_cv_dlopen_self+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12333else
12334 if test "$cross_compiling" = yes; then :
12335 lt_cv_dlopen_self=cross
12336else
12337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12338 lt_status=$lt_dlunknown
12339 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 12340#line 12340 "configure"
1cf3d07d
SE
12341#include "confdefs.h"
12342
12343#if HAVE_DLFCN_H
12344#include <dlfcn.h>
12345#endif
12346
12347#include <stdio.h>
12348
12349#ifdef RTLD_GLOBAL
12350# define LT_DLGLOBAL RTLD_GLOBAL
12351#else
12352# ifdef DL_GLOBAL
12353# define LT_DLGLOBAL DL_GLOBAL
12354# else
12355# define LT_DLGLOBAL 0
12356# endif
12357#endif
12358
12359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12360 find out it does not work in some platform. */
12361#ifndef LT_DLLAZY_OR_NOW
12362# ifdef RTLD_LAZY
12363# define LT_DLLAZY_OR_NOW RTLD_LAZY
12364# else
12365# ifdef DL_LAZY
12366# define LT_DLLAZY_OR_NOW DL_LAZY
12367# else
12368# ifdef RTLD_NOW
12369# define LT_DLLAZY_OR_NOW RTLD_NOW
12370# else
12371# ifdef DL_NOW
12372# define LT_DLLAZY_OR_NOW DL_NOW
12373# else
12374# define LT_DLLAZY_OR_NOW 0
12375# endif
12376# endif
12377# endif
12378# endif
12379#endif
12380
43e02a8a
RW
12381/* When -fvisbility=hidden is used, assume the code has been annotated
12382 correspondingly for the symbols needed. */
12383#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12384void fnord () __attribute__((visibility("default")));
12385#endif
12386
12387void fnord () { int i=42; }
1cf3d07d
SE
12388int main ()
12389{
12390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12391 int status = $lt_dlunknown;
12392
12393 if (self)
12394 {
12395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12396 else
12397 {
12398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12399 else puts (dlerror ());
12400 }
1cf3d07d
SE
12401 /* dlclose (self); */
12402 }
12403 else
12404 puts (dlerror ());
12405
d58dead8 12406 return status;
1cf3d07d
SE
12407}
12408_LT_EOF
5213506e 12409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12410 (eval $ac_link) 2>&5
12411 ac_status=$?
5213506e
RW
12412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12414 (./conftest; exit; ) >&5 2>/dev/null
12415 lt_status=$?
12416 case x$lt_status in
12417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12420 esac
12421 else :
12422 # compilation failed
12423 lt_cv_dlopen_self=no
12424 fi
12425fi
12426rm -fr conftest*
12427
12428
12429fi
5213506e
RW
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12431$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12432
12433 if test "x$lt_cv_dlopen_self" = xyes; then
12434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12436$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12437if test "${lt_cv_dlopen_self_static+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12439else
12440 if test "$cross_compiling" = yes; then :
12441 lt_cv_dlopen_self_static=cross
12442else
12443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12444 lt_status=$lt_dlunknown
12445 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 12446#line 12446 "configure"
1cf3d07d
SE
12447#include "confdefs.h"
12448
12449#if HAVE_DLFCN_H
12450#include <dlfcn.h>
12451#endif
12452
12453#include <stdio.h>
12454
12455#ifdef RTLD_GLOBAL
12456# define LT_DLGLOBAL RTLD_GLOBAL
12457#else
12458# ifdef DL_GLOBAL
12459# define LT_DLGLOBAL DL_GLOBAL
12460# else
12461# define LT_DLGLOBAL 0
12462# endif
12463#endif
12464
12465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12466 find out it does not work in some platform. */
12467#ifndef LT_DLLAZY_OR_NOW
12468# ifdef RTLD_LAZY
12469# define LT_DLLAZY_OR_NOW RTLD_LAZY
12470# else
12471# ifdef DL_LAZY
12472# define LT_DLLAZY_OR_NOW DL_LAZY
12473# else
12474# ifdef RTLD_NOW
12475# define LT_DLLAZY_OR_NOW RTLD_NOW
12476# else
12477# ifdef DL_NOW
12478# define LT_DLLAZY_OR_NOW DL_NOW
12479# else
12480# define LT_DLLAZY_OR_NOW 0
12481# endif
12482# endif
12483# endif
12484# endif
12485#endif
12486
43e02a8a
RW
12487/* When -fvisbility=hidden is used, assume the code has been annotated
12488 correspondingly for the symbols needed. */
12489#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12490void fnord () __attribute__((visibility("default")));
12491#endif
12492
12493void fnord () { int i=42; }
1cf3d07d
SE
12494int main ()
12495{
12496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12497 int status = $lt_dlunknown;
12498
12499 if (self)
12500 {
12501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12502 else
12503 {
12504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12505 else puts (dlerror ());
12506 }
1cf3d07d
SE
12507 /* dlclose (self); */
12508 }
12509 else
12510 puts (dlerror ());
12511
d58dead8 12512 return status;
1cf3d07d
SE
12513}
12514_LT_EOF
5213506e 12515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12516 (eval $ac_link) 2>&5
12517 ac_status=$?
5213506e
RW
12518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12520 (./conftest; exit; ) >&5 2>/dev/null
12521 lt_status=$?
12522 case x$lt_status in
12523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12526 esac
12527 else :
12528 # compilation failed
12529 lt_cv_dlopen_self_static=no
12530 fi
12531fi
12532rm -fr conftest*
12533
12534
12535fi
5213506e
RW
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12537$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12538 fi
12539
12540 CPPFLAGS="$save_CPPFLAGS"
12541 LDFLAGS="$save_LDFLAGS"
12542 LIBS="$save_LIBS"
12543 ;;
12544 esac
12545
12546 case $lt_cv_dlopen_self in
12547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12548 *) enable_dlopen_self=unknown ;;
12549 esac
12550
12551 case $lt_cv_dlopen_self_static in
12552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12553 *) enable_dlopen_self_static=unknown ;;
12554 esac
12555fi
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573striplib=
12574old_striplib=
5213506e
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12576$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12577if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581$as_echo "yes" >&6; }
1cf3d07d
SE
12582else
12583# FIXME - insert some real tests, host_os isn't really good enough
12584 case $host_os in
12585 darwin*)
12586 if test -n "$STRIP" ; then
12587 striplib="$STRIP -x"
12588 old_striplib="$STRIP -S"
5213506e
RW
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12590$as_echo "yes" >&6; }
1cf3d07d 12591 else
5213506e
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
1cf3d07d
SE
12594 fi
12595 ;;
12596 *)
5213506e
RW
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598$as_echo "no" >&6; }
1cf3d07d
SE
12599 ;;
12600 esac
12601fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
43e02a8a
RW
12614 # Report which library types will actually be built
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12616$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12618$as_echo "$can_build_shared" >&6; }
1cf3d07d 12619
43e02a8a
RW
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12621$as_echo_n "checking whether to build shared libraries... " >&6; }
12622 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12623
43e02a8a
RW
12624 # On AIX, shared libraries and static libraries use the same namespace, and
12625 # are all built from PIC.
12626 case $host_os in
12627 aix3*)
12628 test "$enable_shared" = yes && enable_static=no
12629 if test -n "$RANLIB"; then
12630 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12631 postinstall_cmds='$RANLIB $lib'
12632 fi
12633 ;;
1cf3d07d 12634
43e02a8a
RW
12635 aix[4-9]*)
12636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12637 test "$enable_shared" = yes && enable_static=no
12638 fi
12639 ;;
12640 esac
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12642$as_echo "$enable_shared" >&6; }
1cf3d07d 12643
43e02a8a
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12645$as_echo_n "checking whether to build static libraries... " >&6; }
12646 # Make sure either enable_shared or enable_static is yes.
12647 test "$enable_shared" = yes || enable_static=yes
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12649$as_echo "$enable_static" >&6; }
1cf3d07d 12650
1cf3d07d 12651
1cf3d07d 12652
1cf3d07d
SE
12653
12654fi
1cf3d07d
SE
12655ac_ext=c
12656ac_cpp='$CPP $CPPFLAGS'
12657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12659ac_compiler_gnu=$ac_cv_c_compiler_gnu
12660
43e02a8a
RW
12661CC="$lt_save_CC"
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675 ac_config_commands="$ac_config_commands libtool"
12676
12677
12678
12679
12680# Only expand once:
12681
12682
12683
12684
7de6ba7a
DK
12685
12686case $host in
12687 *-cygwin* | *-mingw*)
12688 # 'host' will be top-level target in the case of a target lib,
12689 # we must compare to with_cross_host to decide if this is a native
12690 # or cross-compiler and select where to install dlls appropriately.
12691 if test -n "$with_cross_host" &&
12692 test x"$with_cross_host" != x"no"; then
12693 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12694 else
12695 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12696 fi
12697 ;;
12698 *)
12699 lt_host_flags=
12700 ;;
12701esac
12702
12703
12704
12705
12706
43e02a8a 12707#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12708
43e02a8a
RW
12709# We need gfortran to compile parts of the library
12710#AC_PROG_FC(gfortran)
12711FC="$GFORTRAN"
5213506e
RW
12712ac_ext=${ac_fc_srcext-f}
12713ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12714ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12715ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12716if test -n "$ac_tool_prefix"; then
43e02a8a 12717 for ac_prog in gfortran
1cf3d07d
SE
12718 do
12719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
12723if test "${ac_cv_prog_FC+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12725else
12726 if test -n "$FC"; then
12727 ac_cv_prog_FC="$FC" # Let the user override the test.
12728else
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
5213506e
RW
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12736 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12738 break 2
12739 fi
12740done
5213506e
RW
12741 done
12742IFS=$as_save_IFS
1cf3d07d
SE
12743
12744fi
12745fi
12746FC=$ac_cv_prog_FC
12747if test -n "$FC"; then
5213506e
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12749$as_echo "$FC" >&6; }
1cf3d07d 12750else
5213506e
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
1cf3d07d
SE
12753fi
12754
5213506e 12755
1cf3d07d
SE
12756 test -n "$FC" && break
12757 done
12758fi
12759if test -z "$FC"; then
12760 ac_ct_FC=$FC
43e02a8a 12761 for ac_prog in gfortran
1cf3d07d
SE
12762do
12763 # Extract the first word of "$ac_prog", so it can be a program name with args.
12764set dummy $ac_prog; ac_word=$2
5213506e
RW
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
12767if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12769else
12770 if test -n "$ac_ct_FC"; then
12771 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
5213506e
RW
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12780 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12782 break 2
12783 fi
12784done
5213506e
RW
12785 done
12786IFS=$as_save_IFS
1cf3d07d
SE
12787
12788fi
12789fi
12790ac_ct_FC=$ac_cv_prog_ac_ct_FC
12791if test -n "$ac_ct_FC"; then
5213506e
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12793$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12794else
5213506e
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
1cf3d07d
SE
12797fi
12798
5213506e 12799
1cf3d07d 12800 test -n "$ac_ct_FC" && break
38d24731
RW
12801done
12802
5213506e
RW
12803 if test "x$ac_ct_FC" = x; then
12804 FC=""
12805 else
12806 case $cross_compiling:$ac_tool_warned in
12807yes:)
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12810ac_tool_warned=yes ;;
12811esac
12812 FC=$ac_ct_FC
12813 fi
1cf3d07d
SE
12814fi
12815
12816
12817# Provide some information about the compiler.
5213506e
RW
12818$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12819set X $ac_compile
12820ac_compiler=$2
12821for ac_option in --version -v -V -qversion; do
12822 { { ac_try="$ac_compiler $ac_option >&5"
12823case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12826esac
12827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12828$as_echo "$ac_try_echo"; } >&5
12829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 12830 ac_status=$?
5213506e
RW
12831 if test -s conftest.err; then
12832 sed '10a\
12833... rest of stderr output deleted ...
12834 10q' conftest.err >conftest.er1
12835 cat conftest.er1 >&5
12836 rm -f conftest.er1 conftest.err
12837 fi
12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; }
12840done
1cf3d07d
SE
12841rm -f a.out
12842
12843# If we don't use `.F' as extension, the preprocessor is not run on the
12844# input file. (Note that this only needs to work for GNU compilers.)
12845ac_save_ext=$ac_ext
12846ac_ext=F
5213506e
RW
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12848$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12849if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
1cf3d07d 12851else
5213506e 12852 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12853 program main
12854#ifndef __GNUC__
12855 choke me
12856#endif
12857
12858 end
12859_ACEOF
5213506e 12860if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12861 ac_compiler_gnu=yes
12862else
5213506e 12863 ac_compiler_gnu=no
1cf3d07d 12864fi
5213506e 12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12866ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12867
12868fi
5213506e
RW
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12870$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 12871ac_ext=$ac_save_ext
5213506e
RW
12872ac_test_FCFLAGS=${FCFLAGS+set}
12873ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 12874FCFLAGS=
5213506e
RW
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12876$as_echo_n "checking whether $FC accepts -g... " >&6; }
12877if test "${ac_cv_prog_fc_g+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12879else
12880 FCFLAGS=-g
5213506e 12881cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12882 program main
12883
12884 end
12885_ACEOF
5213506e 12886if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12887 ac_cv_prog_fc_g=yes
12888else
5213506e 12889 ac_cv_prog_fc_g=no
1cf3d07d 12890fi
5213506e 12891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12892
12893fi
5213506e
RW
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12895$as_echo "$ac_cv_prog_fc_g" >&6; }
12896if test "$ac_test_FCFLAGS" = set; then
12897 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
12898elif test $ac_cv_prog_fc_g = yes; then
12899 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12900 FCFLAGS="-g -O2"
12901 else
12902 FCFLAGS="-g"
12903 fi
12904else
12905 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12906 FCFLAGS="-O2"
12907 else
12908 FCFLAGS=
12909 fi
12910fi
12911
12912ac_ext=c
12913ac_cpp='$CPP $CPPFLAGS'
12914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12916ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917
5213506e
RW
12918 ac_ext=${ac_fc_srcext-f}
12919ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12920ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12921ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12922
12923
43e02a8a
RW
12924if test -z "$FC" || test "X$FC" = "Xno"; then
12925 _lt_disable_FC=yes
12926fi
12927
1cf3d07d
SE
12928archive_cmds_need_lc_FC=no
12929allow_undefined_flag_FC=
12930always_export_symbols_FC=no
12931archive_expsym_cmds_FC=
12932export_dynamic_flag_spec_FC=
12933hardcode_direct_FC=no
12934hardcode_direct_absolute_FC=no
12935hardcode_libdir_flag_spec_FC=
12936hardcode_libdir_flag_spec_ld_FC=
12937hardcode_libdir_separator_FC=
12938hardcode_minus_L_FC=no
12939hardcode_automatic_FC=no
12940inherit_rpath_FC=no
12941module_cmds_FC=
12942module_expsym_cmds_FC=
12943link_all_deplibs_FC=unknown
12944old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
12945reload_flag_FC=$reload_flag
12946reload_cmds_FC=$reload_cmds
1cf3d07d
SE
12947no_undefined_flag_FC=
12948whole_archive_flag_spec_FC=
12949enable_shared_with_static_runtimes_FC=no
12950
12951# Source file extension for fc test sources.
12952ac_ext=${ac_fc_srcext-f}
12953
12954# Object file extension for compiled fc test sources.
12955objext=o
12956objext_FC=$objext
12957
12958# No sense in running all these tests if we already determined that
12959# the FC compiler isn't working. Some variables (like enable_shared)
12960# are currently assumed to apply to all compilers on this platform,
12961# and will be corrupted by setting them based on a non-working compiler.
12962if test "$_lt_disable_FC" != yes; then
12963 # Code to be used in simple compile tests
12964 lt_simple_compile_test_code="\
12965 subroutine t
12966 return
12967 end
12968"
12969
12970 # Code to be used in simple link tests
12971 lt_simple_link_test_code="\
12972 program t
12973 end
12974"
12975
12976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12977
12978
12979
12980
12981
12982
12983# If no C compiler was specified, use CC.
12984LTCC=${LTCC-"$CC"}
12985
12986# If no C compiler flags were specified, use CFLAGS.
12987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12988
12989# Allow CC to be a program name with arguments.
12990compiler=$CC
12991
12992
12993 # save warnings/boilerplate of simple test code
12994 ac_outfile=conftest.$ac_objext
12995echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12996eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12997_lt_compiler_boilerplate=`cat conftest.err`
12998$RM conftest*
12999
13000 ac_outfile=conftest.$ac_objext
13001echo "$lt_simple_link_test_code" >conftest.$ac_ext
13002eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13004$RM -r conftest*
1cf3d07d
SE
13005
13006
13007 # Allow CC to be a program name with arguments.
13008 lt_save_CC="$CC"
d58dead8 13009 lt_save_GCC=$GCC
1cf3d07d
SE
13010 CC=${FC-"f95"}
13011 compiler=$CC
d58dead8
PG
13012 GCC=$ac_cv_fc_compiler_gnu
13013
1cf3d07d
SE
13014 compiler_FC=$CC
13015 for cc_temp in $compiler""; do
13016 case $cc_temp in
13017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13019 \-*) ;;
13020 *) break;;
13021 esac
13022done
43e02a8a 13023cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13024
13025
13026 if test -n "$compiler"; then
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13028$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13030$as_echo "$can_build_shared" >&6; }
1cf3d07d 13031
5213506e
RW
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13033$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13034 test "$can_build_shared" = "no" && enable_shared=no
13035
13036 # On AIX, shared libraries and static libraries use the same namespace, and
13037 # are all built from PIC.
13038 case $host_os in
13039 aix3*)
13040 test "$enable_shared" = yes && enable_static=no
13041 if test -n "$RANLIB"; then
13042 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13043 postinstall_cmds='$RANLIB $lib'
13044 fi
13045 ;;
4f6bebc3 13046 aix[4-9]*)
1cf3d07d
SE
13047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13048 test "$enable_shared" = yes && enable_static=no
13049 fi
13050 ;;
13051 esac
5213506e
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13053$as_echo "$enable_shared" >&6; }
1cf3d07d 13054
5213506e
RW
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13056$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13057 # Make sure either enable_shared or enable_static is yes.
13058 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13060$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13061
13062 GCC_FC="$ac_cv_fc_compiler_gnu"
13063 LD_FC="$LD"
13064
13065 ## CAVEAT EMPTOR:
13066 ## There is no encapsulation within the following macros, do not change
13067 ## the running order or otherwise move them around unless you know exactly
13068 ## what you are doing...
13069 # Dependencies to place before and after the object being linked:
13070predep_objects_FC=
13071postdep_objects_FC=
13072predeps_FC=
13073postdeps_FC=
13074compiler_lib_search_path_FC=
13075
13076cat > conftest.$ac_ext <<_LT_EOF
13077 subroutine foo
13078 implicit none
13079 integer a
13080 a=0
13081 return
13082 end
13083_LT_EOF
13084
5213506e 13085if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13086 (eval $ac_compile) 2>&5
13087 ac_status=$?
5213506e
RW
13088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089 test $ac_status = 0; }; then
1cf3d07d
SE
13090 # Parse the compiler output and extract the necessary
13091 # objects, libraries and library flags.
13092
13093 # Sentinel used to keep track of whether or not we are before
13094 # the conftest object file.
13095 pre_test_object_deps_done=no
13096
d58dead8 13097 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13098 case $p in
13099
13100 -L* | -R* | -l*)
13101 # Some compilers place space between "-{L,R}" and the path.
13102 # Remove the space.
13103 if test $p = "-L" ||
13104 test $p = "-R"; then
13105 prev=$p
13106 continue
13107 else
13108 prev=
13109 fi
13110
13111 if test "$pre_test_object_deps_done" = no; then
13112 case $p in
13113 -L* | -R*)
13114 # Internal compiler library paths should come after those
13115 # provided the user. The postdeps already come after the
13116 # user supplied libs so there is no need to process them.
13117 if test -z "$compiler_lib_search_path_FC"; then
13118 compiler_lib_search_path_FC="${prev}${p}"
13119 else
13120 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13121 fi
13122 ;;
13123 # The "-l" case would never come before the object being
13124 # linked, so don't bother handling this case.
13125 esac
13126 else
13127 if test -z "$postdeps_FC"; then
13128 postdeps_FC="${prev}${p}"
13129 else
13130 postdeps_FC="${postdeps_FC} ${prev}${p}"
13131 fi
13132 fi
13133 ;;
13134
13135 *.$objext)
13136 # This assumes that the test object file only shows up
13137 # once in the compiler output.
13138 if test "$p" = "conftest.$objext"; then
13139 pre_test_object_deps_done=yes
13140 continue
13141 fi
13142
13143 if test "$pre_test_object_deps_done" = no; then
13144 if test -z "$predep_objects_FC"; then
13145 predep_objects_FC="$p"
13146 else
13147 predep_objects_FC="$predep_objects_FC $p"
13148 fi
13149 else
13150 if test -z "$postdep_objects_FC"; then
13151 postdep_objects_FC="$p"
13152 else
13153 postdep_objects_FC="$postdep_objects_FC $p"
13154 fi
13155 fi
13156 ;;
13157
13158 *) ;; # Ignore the rest.
13159
13160 esac
13161 done
13162
13163 # Clean up.
13164 rm -f a.out a.exe
13165else
13166 echo "libtool.m4: error: problem compiling FC test program"
13167fi
13168
13169$RM -f confest.$objext
13170
13171# PORTME: override above test on systems where it is broken
13172
13173
13174case " $postdeps_FC " in
13175*" -lc "*) archive_cmds_need_lc_FC=no ;;
13176esac
d58dead8
PG
13177 compiler_lib_search_dirs_FC=
13178if test -n "${compiler_lib_search_path_FC}"; then
13179 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13180fi
13181
13182
13183
13184
13185
1cf3d07d
SE
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212 lt_prog_compiler_wl_FC=
13213lt_prog_compiler_pic_FC=
13214lt_prog_compiler_static_FC=
13215
5213506e
RW
13216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13217$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13218
13219 if test "$GCC" = yes; then
13220 lt_prog_compiler_wl_FC='-Wl,'
13221 lt_prog_compiler_static_FC='-static'
13222
13223 case $host_os in
13224 aix*)
13225 # All AIX code is PIC.
13226 if test "$host_cpu" = ia64; then
13227 # AIX 5 now supports IA64 processor
13228 lt_prog_compiler_static_FC='-Bstatic'
13229 fi
bad8a4a7 13230 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13231 ;;
13232
13233 amigaos*)
d58dead8
PG
13234 case $host_cpu in
13235 powerpc)
13236 # see comment about AmigaOS4 .so support
13237 lt_prog_compiler_pic_FC='-fPIC'
13238 ;;
13239 m68k)
13240 # FIXME: we need at least 68020 code to build shared libraries, but
13241 # adding the `-m68020' flag to GCC prevents building anything better,
13242 # like `-m68040'.
13243 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13244 ;;
13245 esac
1cf3d07d
SE
13246 ;;
13247
13248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13249 # PIC is the default for these OSes.
13250 ;;
13251
d58dead8 13252 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13253 # This hack is so that the source file can tell whether it is being
13254 # built for inclusion in a dll (and should export symbols for example).
13255 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13256 # (--disable-auto-import) libraries
13257 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13258 ;;
13259
13260 darwin* | rhapsody*)
13261 # PIC is the default on this platform
13262 # Common symbols not allowed in MH_DYLIB files
13263 lt_prog_compiler_pic_FC='-fno-common'
13264 ;;
13265
43e02a8a
RW
13266 haiku*)
13267 # PIC is the default for Haiku.
13268 # The "-static" flag exists, but is broken.
13269 lt_prog_compiler_static_FC=
13270 ;;
13271
1cf3d07d 13272 hpux*)
d58dead8
PG
13273 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13274 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13275 # sets the default TLS model and affects inlining.
1cf3d07d 13276 case $host_cpu in
d58dead8 13277 hppa*64*)
1cf3d07d
SE
13278 # +Z the default
13279 ;;
13280 *)
13281 lt_prog_compiler_pic_FC='-fPIC'
13282 ;;
13283 esac
13284 ;;
13285
13286 interix[3-9]*)
13287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13288 # Instead, we relocate shared libraries at runtime.
13289 ;;
13290
13291 msdosdjgpp*)
13292 # Just because we use GCC doesn't mean we suddenly get shared libraries
13293 # on systems that don't support them.
13294 lt_prog_compiler_can_build_shared_FC=no
13295 enable_shared=no
13296 ;;
13297
13298 *nto* | *qnx*)
13299 # QNX uses GNU C++, but need to define -shared option too, otherwise
13300 # it will coredump.
13301 lt_prog_compiler_pic_FC='-fPIC -shared'
13302 ;;
13303
13304 sysv4*MP*)
13305 if test -d /usr/nec; then
13306 lt_prog_compiler_pic_FC=-Kconform_pic
13307 fi
13308 ;;
13309
13310 *)
13311 lt_prog_compiler_pic_FC='-fPIC'
13312 ;;
13313 esac
43e02a8a
RW
13314
13315 case $cc_basename in
13316 nvcc*) # Cuda Compiler Driver 2.2
13317 lt_prog_compiler_wl_FC='-Xlinker '
13318 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13319 ;;
13320 esac
1cf3d07d
SE
13321 else
13322 # PORTME Check for flag to pass linker flags through the system compiler.
13323 case $host_os in
13324 aix*)
13325 lt_prog_compiler_wl_FC='-Wl,'
13326 if test "$host_cpu" = ia64; then
13327 # AIX 5 now supports IA64 processor
13328 lt_prog_compiler_static_FC='-Bstatic'
13329 else
13330 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13331 fi
13332 ;;
1cf3d07d 13333
d58dead8 13334 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13335 # This hack is so that the source file can tell whether it is being
13336 # built for inclusion in a dll (and should export symbols for example).
13337 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13338 ;;
13339
13340 hpux9* | hpux10* | hpux11*)
13341 lt_prog_compiler_wl_FC='-Wl,'
13342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13343 # not for PA HP-UX.
13344 case $host_cpu in
13345 hppa*64*|ia64*)
13346 # +Z the default
13347 ;;
13348 *)
13349 lt_prog_compiler_pic_FC='+Z'
13350 ;;
13351 esac
13352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13353 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13354 ;;
13355
13356 irix5* | irix6* | nonstopux*)
13357 lt_prog_compiler_wl_FC='-Wl,'
13358 # PIC (with -KPIC) is the default.
13359 lt_prog_compiler_static_FC='-non_shared'
13360 ;;
13361
7a9d3fe8 13362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13363 case $cc_basename in
d58dead8
PG
13364 # old Intel for x86_64 which still supported -KPIC.
13365 ecc*)
1cf3d07d
SE
13366 lt_prog_compiler_wl_FC='-Wl,'
13367 lt_prog_compiler_pic_FC='-KPIC'
13368 lt_prog_compiler_static_FC='-static'
13369 ;;
d58dead8
PG
13370 # icc used to be incompatible with GCC.
13371 # ICC 10 doesn't accept -KPIC any more.
13372 icc* | ifort*)
13373 lt_prog_compiler_wl_FC='-Wl,'
13374 lt_prog_compiler_pic_FC='-fPIC'
13375 lt_prog_compiler_static_FC='-static'
13376 ;;
13377 # Lahey Fortran 8.1.
13378 lf95*)
13379 lt_prog_compiler_wl_FC='-Wl,'
13380 lt_prog_compiler_pic_FC='--shared'
13381 lt_prog_compiler_static_FC='--static'
13382 ;;
43e02a8a 13383 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13384 # Portland Group compilers (*not* the Pentium gcc compiler,
13385 # which looks to be a dead project)
13386 lt_prog_compiler_wl_FC='-Wl,'
13387 lt_prog_compiler_pic_FC='-fpic'
13388 lt_prog_compiler_static_FC='-Bstatic'
13389 ;;
13390 ccc*)
13391 lt_prog_compiler_wl_FC='-Wl,'
13392 # All Alpha code is PIC.
13393 lt_prog_compiler_static_FC='-non_shared'
13394 ;;
43e02a8a
RW
13395 xl* | bgxl* | bgf* | mpixl*)
13396 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13397 lt_prog_compiler_wl_FC='-Wl,'
13398 lt_prog_compiler_pic_FC='-qpic'
13399 lt_prog_compiler_static_FC='-qstaticlink'
13400 ;;
1cf3d07d
SE
13401 *)
13402 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13403 *Sun\ F* | *Sun*Fortran*)
13404 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13405 lt_prog_compiler_pic_FC='-KPIC'
13406 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13407 lt_prog_compiler_wl_FC=''
1cf3d07d 13408 ;;
43e02a8a
RW
13409 *Sun\ C*)
13410 # Sun C 5.9
1cf3d07d
SE
13411 lt_prog_compiler_pic_FC='-KPIC'
13412 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13413 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13414 ;;
13415 esac
13416 ;;
13417 esac
13418 ;;
13419
13420 newsos6)
13421 lt_prog_compiler_pic_FC='-KPIC'
13422 lt_prog_compiler_static_FC='-Bstatic'
13423 ;;
13424
13425 *nto* | *qnx*)
13426 # QNX uses GNU C++, but need to define -shared option too, otherwise
13427 # it will coredump.
13428 lt_prog_compiler_pic_FC='-fPIC -shared'
13429 ;;
13430
13431 osf3* | osf4* | osf5*)
13432 lt_prog_compiler_wl_FC='-Wl,'
13433 # All OSF/1 code is PIC.
13434 lt_prog_compiler_static_FC='-non_shared'
13435 ;;
13436
13437 rdos*)
13438 lt_prog_compiler_static_FC='-non_shared'
13439 ;;
13440
13441 solaris*)
13442 lt_prog_compiler_pic_FC='-KPIC'
13443 lt_prog_compiler_static_FC='-Bstatic'
13444 case $cc_basename in
13445 f77* | f90* | f95*)
13446 lt_prog_compiler_wl_FC='-Qoption ld ';;
13447 *)
13448 lt_prog_compiler_wl_FC='-Wl,';;
13449 esac
13450 ;;
13451
13452 sunos4*)
13453 lt_prog_compiler_wl_FC='-Qoption ld '
13454 lt_prog_compiler_pic_FC='-PIC'
13455 lt_prog_compiler_static_FC='-Bstatic'
13456 ;;
13457
13458 sysv4 | sysv4.2uw2* | sysv4.3*)
13459 lt_prog_compiler_wl_FC='-Wl,'
13460 lt_prog_compiler_pic_FC='-KPIC'
13461 lt_prog_compiler_static_FC='-Bstatic'
13462 ;;
13463
13464 sysv4*MP*)
13465 if test -d /usr/nec ;then
13466 lt_prog_compiler_pic_FC='-Kconform_pic'
13467 lt_prog_compiler_static_FC='-Bstatic'
13468 fi
13469 ;;
13470
13471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13472 lt_prog_compiler_wl_FC='-Wl,'
13473 lt_prog_compiler_pic_FC='-KPIC'
13474 lt_prog_compiler_static_FC='-Bstatic'
13475 ;;
13476
13477 unicos*)
13478 lt_prog_compiler_wl_FC='-Wl,'
13479 lt_prog_compiler_can_build_shared_FC=no
13480 ;;
13481
13482 uts4*)
13483 lt_prog_compiler_pic_FC='-pic'
13484 lt_prog_compiler_static_FC='-Bstatic'
13485 ;;
13486
13487 *)
13488 lt_prog_compiler_can_build_shared_FC=no
13489 ;;
13490 esac
13491 fi
13492
13493case $host_os in
13494 # For platforms which do not support PIC, -DPIC is meaningless:
13495 *djgpp*)
13496 lt_prog_compiler_pic_FC=
13497 ;;
13498 *)
13499 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13500 ;;
13501esac
5213506e
RW
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13503$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13504
13505
13506
13507#
13508# Check to make sure the PIC flag actually works.
13509#
13510if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13512$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13513if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
1cf3d07d 13515else
d58dead8 13516 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13517 ac_outfile=conftest.$ac_objext
13518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13519 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13520 # Insert the option either (1) after the last *FLAGS variable, or
13521 # (2) before a word containing "conftest.", or (3) at the end.
13522 # Note that $ac_compile itself does not contain backslashes and begins
13523 # with a dollar sign (not a hyphen), so the echo should work correctly.
13524 # The option is referenced via a variable to avoid confusing sed.
13525 lt_compile=`echo "$ac_compile" | $SED \
13526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13528 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13530 (eval "$lt_compile" 2>conftest.err)
13531 ac_status=$?
13532 cat conftest.err >&5
43e02a8a 13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13534 if (exit $ac_status) && test -s "$ac_outfile"; then
13535 # The compiler can only warn and ignore the option if not recognized
13536 # So say no if there are warnings other than the usual output.
43e02a8a 13537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13540 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13541 fi
13542 fi
13543 $RM conftest*
13544
13545fi
5213506e
RW
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13547$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13548
d58dead8 13549if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13550 case $lt_prog_compiler_pic_FC in
13551 "" | " "*) ;;
13552 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13553 esac
13554else
13555 lt_prog_compiler_pic_FC=
13556 lt_prog_compiler_can_build_shared_FC=no
13557fi
13558
13559fi
13560
13561
13562
13563#
13564# Check to make sure the static flag actually works.
13565#
13566wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13568$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13569if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
1cf3d07d 13571else
d58dead8 13572 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13573 save_LDFLAGS="$LDFLAGS"
13574 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13575 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13576 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13577 # The linker can only warn and ignore the option if not recognized
13578 # So say no if there are warnings
13579 if test -s conftest.err; then
13580 # Append any errors to the config.log.
13581 cat conftest.err 1>&5
43e02a8a 13582 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13584 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13585 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13586 fi
13587 else
d58dead8 13588 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13589 fi
13590 fi
d58dead8 13591 $RM -r conftest*
1cf3d07d
SE
13592 LDFLAGS="$save_LDFLAGS"
13593
13594fi
5213506e
RW
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13596$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13597
d58dead8 13598if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13599 :
13600else
13601 lt_prog_compiler_static_FC=
13602fi
13603
13604
13605
13606
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13608$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13609if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13611else
13612 lt_cv_prog_compiler_c_o_FC=no
13613 $RM -r conftest 2>/dev/null
13614 mkdir conftest
13615 cd conftest
13616 mkdir out
13617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13618
13619 lt_compiler_flag="-o out/conftest2.$ac_objext"
13620 # Insert the option either (1) after the last *FLAGS variable, or
13621 # (2) before a word containing "conftest.", or (3) at the end.
13622 # Note that $ac_compile itself does not contain backslashes and begins
13623 # with a dollar sign (not a hyphen), so the echo should work correctly.
13624 lt_compile=`echo "$ac_compile" | $SED \
13625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13627 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13629 (eval "$lt_compile" 2>out/conftest.err)
13630 ac_status=$?
13631 cat out/conftest.err >&5
43e02a8a 13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13634 then
13635 # The compiler can only warn and ignore the option if not recognized
13636 # So say no if there are warnings
43e02a8a 13637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13640 lt_cv_prog_compiler_c_o_FC=yes
13641 fi
13642 fi
13643 chmod u+w . 2>&5
13644 $RM conftest*
13645 # SGI C++ compiler will create directory out/ii_files/ for
13646 # template instantiation
13647 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13648 $RM out/* && rmdir out
13649 cd ..
13650 $RM -r conftest
13651 $RM conftest*
13652
13653fi
5213506e
RW
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13655$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13656
13657
13658
5213506e
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13661if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13663else
13664 lt_cv_prog_compiler_c_o_FC=no
13665 $RM -r conftest 2>/dev/null
13666 mkdir conftest
13667 cd conftest
13668 mkdir out
13669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13670
13671 lt_compiler_flag="-o out/conftest2.$ac_objext"
13672 # Insert the option either (1) after the last *FLAGS variable, or
13673 # (2) before a word containing "conftest.", or (3) at the end.
13674 # Note that $ac_compile itself does not contain backslashes and begins
13675 # with a dollar sign (not a hyphen), so the echo should work correctly.
13676 lt_compile=`echo "$ac_compile" | $SED \
13677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13679 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13681 (eval "$lt_compile" 2>out/conftest.err)
13682 ac_status=$?
13683 cat out/conftest.err >&5
43e02a8a 13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13686 then
13687 # The compiler can only warn and ignore the option if not recognized
13688 # So say no if there are warnings
43e02a8a 13689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13692 lt_cv_prog_compiler_c_o_FC=yes
13693 fi
13694 fi
13695 chmod u+w . 2>&5
13696 $RM conftest*
13697 # SGI C++ compiler will create directory out/ii_files/ for
13698 # template instantiation
13699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13700 $RM out/* && rmdir out
13701 cd ..
13702 $RM -r conftest
13703 $RM conftest*
13704
13705fi
5213506e
RW
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13707$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13708
13709
13710
13711
13712hard_links="nottested"
13713if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13714 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13716$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13717 hard_links=yes
13718 $RM conftest*
13719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13720 touch conftest.a
13721 ln conftest.a conftest.b 2>&5 || hard_links=no
13722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13724$as_echo "$hard_links" >&6; }
1cf3d07d 13725 if test "$hard_links" = no; then
5213506e
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13727$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13728 need_locks=warn
13729 fi
13730else
13731 need_locks=no
13732fi
13733
13734
13735
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13738
13739 runpath_var=
13740 allow_undefined_flag_FC=
13741 always_export_symbols_FC=no
13742 archive_cmds_FC=
13743 archive_expsym_cmds_FC=
13744 compiler_needs_object_FC=no
13745 enable_shared_with_static_runtimes_FC=no
13746 export_dynamic_flag_spec_FC=
13747 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13748 hardcode_automatic_FC=no
13749 hardcode_direct_FC=no
13750 hardcode_direct_absolute_FC=no
13751 hardcode_libdir_flag_spec_FC=
13752 hardcode_libdir_flag_spec_ld_FC=
13753 hardcode_libdir_separator_FC=
13754 hardcode_minus_L_FC=no
13755 hardcode_shlibpath_var_FC=unsupported
13756 inherit_rpath_FC=no
13757 link_all_deplibs_FC=unknown
13758 module_cmds_FC=
13759 module_expsym_cmds_FC=
13760 old_archive_from_new_cmds_FC=
13761 old_archive_from_expsyms_cmds_FC=
13762 thread_safe_flag_spec_FC=
13763 whole_archive_flag_spec_FC=
13764 # include_expsyms should be a list of space-separated symbols to be *always*
13765 # included in the symbol list
13766 include_expsyms_FC=
13767 # exclude_expsyms can be an extended regexp of symbols to exclude
13768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13770 # as well as any symbol that contains `d'.
d58dead8 13771 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13773 # platforms (ab)use it in PIC code, but their linkers get confused if
13774 # the symbol is explicitly referenced. Since portable code cannot
13775 # rely on this symbol name, it's probably fine to never include it in
13776 # preloaded symbol tables.
d58dead8 13777 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13778 extract_expsyms_cmds=
13779
13780 case $host_os in
d58dead8 13781 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13783 # When not using gcc, we currently assume that we are using
13784 # Microsoft Visual C++.
13785 if test "$GCC" != yes; then
13786 with_gnu_ld=no
13787 fi
13788 ;;
13789 interix*)
13790 # we just hope/assume this is gcc and not c89 (= MSVC++)
13791 with_gnu_ld=yes
13792 ;;
13793 openbsd*)
13794 with_gnu_ld=no
13795 ;;
13796 esac
13797
13798 ld_shlibs_FC=yes
43e02a8a
RW
13799
13800 # On some targets, GNU ld is compatible enough with the native linker
13801 # that we're better off using the native interface for both.
13802 lt_use_gnu_ld_interface=no
1cf3d07d 13803 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13804 case $host_os in
13805 aix*)
13806 # The AIX port of GNU ld has always aspired to compatibility
13807 # with the native linker. However, as the warning in the GNU ld
13808 # block says, versions before 2.19.5* couldn't really create working
13809 # shared libraries, regardless of the interface used.
13810 case `$LD -v 2>&1` in
13811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13813 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13814 *)
13815 lt_use_gnu_ld_interface=yes
13816 ;;
13817 esac
13818 ;;
13819 *)
13820 lt_use_gnu_ld_interface=yes
13821 ;;
13822 esac
13823 fi
13824
13825 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
13826 # If archive_cmds runs LD, not CC, wlarc should be empty
13827 wlarc='${wl}'
13828
13829 # Set some defaults for GNU ld with shared library support. These
13830 # are reset later if shared libraries are not supported. Putting them
13831 # here allows them to be overridden if necessary.
13832 runpath_var=LD_RUN_PATH
13833 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13834 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13835 # ancient GNU ld didn't support --whole-archive et. al.
13836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13837 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13838 else
13839 whole_archive_flag_spec_FC=
13840 fi
13841 supports_anon_versioning=no
13842 case `$LD -v 2>&1` in
43e02a8a 13843 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
13844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13847 *\ 2.11.*) ;; # other 2.11 versions
13848 *) supports_anon_versioning=yes ;;
13849 esac
13850
13851 # See if GNU ld supports shared libraries.
13852 case $host_os in
4f6bebc3 13853 aix[3-9]*)
1cf3d07d
SE
13854 # On AIX/PPC, the GNU linker is very broken
13855 if test "$host_cpu" != ia64; then
13856 ld_shlibs_FC=no
13857 cat <<_LT_EOF 1>&2
13858
43e02a8a 13859*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
13860*** to be unable to reliably create shared libraries on AIX.
13861*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
13862*** really care for shared libraries, you may want to install binutils
13863*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13864*** You will then need to restart the configuration process.
1cf3d07d
SE
13865
13866_LT_EOF
13867 fi
13868 ;;
13869
13870 amigaos*)
d58dead8
PG
13871 case $host_cpu in
13872 powerpc)
13873 # see comment about AmigaOS4 .so support
13874 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875 archive_expsym_cmds_FC=''
13876 ;;
13877 m68k)
13878 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)'
13879 hardcode_libdir_flag_spec_FC='-L$libdir'
13880 hardcode_minus_L_FC=yes
13881 ;;
13882 esac
1cf3d07d
SE
13883 ;;
13884
13885 beos*)
13886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13887 allow_undefined_flag_FC=unsupported
13888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13889 # support --undefined. This deserves some investigation. FIXME
13890 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 else
13892 ld_shlibs_FC=no
13893 fi
13894 ;;
13895
d58dead8 13896 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13897 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13898 # as there is no search path for DLLs.
13899 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 13900 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
13901 allow_undefined_flag_FC=unsupported
13902 always_export_symbols_FC=no
13903 enable_shared_with_static_runtimes_FC=yes
13904 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13905
13906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13907 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13908 # If the export-symbols file already is a .def file (1st line
13909 # is EXPORTS), use it as is; otherwise, prepend...
13910 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13911 cp $export_symbols $output_objdir/$soname.def;
13912 else
13913 echo EXPORTS > $output_objdir/$soname.def;
13914 cat $export_symbols >> $output_objdir/$soname.def;
13915 fi~
13916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13917 else
13918 ld_shlibs_FC=no
13919 fi
13920 ;;
13921
43e02a8a
RW
13922 haiku*)
13923 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924 link_all_deplibs_FC=yes
13925 ;;
13926
1cf3d07d
SE
13927 interix[3-9]*)
13928 hardcode_direct_FC=no
13929 hardcode_shlibpath_var_FC=no
13930 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13931 export_dynamic_flag_spec_FC='${wl}-E'
13932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13933 # Instead, shared libraries are loaded at an image base (0x10000000 by
13934 # default) and relocated if they conflict, which is a slow very memory
13935 # consuming and fragmenting process. To avoid this, we pick a random,
13936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13937 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13938 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'
13939 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'
13940 ;;
13941
7a9d3fe8 13942 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13943 tmp_diet=no
13944 if test "$host_os" = linux-dietlibc; then
13945 case $cc_basename in
13946 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13947 esac
13948 fi
13949 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13950 && test "$tmp_diet" = no
13951 then
13952 tmp_addflag=
d58dead8 13953 tmp_sharedflag='-shared'
1cf3d07d
SE
13954 case $cc_basename,$host_cpu in
13955 pgcc*) # Portland Group C compiler
43e02a8a 13956 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
13957 tmp_addflag=' $pic_flag'
13958 ;;
43e02a8a
RW
13959 pgf77* | pgf90* | pgf95* | pgfortran*)
13960 # Portland Group f77 and f90 compilers
13961 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
13962 tmp_addflag=' $pic_flag -Mnomain' ;;
13963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13964 tmp_addflag=' -i_dynamic' ;;
13965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13966 tmp_addflag=' -i_dynamic -nofor_main' ;;
13967 ifc* | ifort*) # Intel Fortran compiler
13968 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
13969 lf95*) # Lahey Fortran 8.1
13970 whole_archive_flag_spec_FC=
13971 tmp_sharedflag='--shared' ;;
43e02a8a 13972 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
13973 tmp_sharedflag='-qmkshrobj'
13974 tmp_addflag= ;;
43e02a8a
RW
13975 nvcc*) # Cuda Compiler Driver 2.2
13976 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'
13977 compiler_needs_object_FC=yes
13978 ;;
1cf3d07d
SE
13979 esac
13980 case `$CC -V 2>&1 | sed 5q` in
13981 *Sun\ C*) # Sun C 5.9
43e02a8a 13982 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
13983 compiler_needs_object_FC=yes
13984 tmp_sharedflag='-G' ;;
13985 *Sun\ F*) # Sun Fortran 8.3
13986 tmp_sharedflag='-G' ;;
1cf3d07d
SE
13987 esac
13988 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13989
13990 if test "x$supports_anon_versioning" = xyes; then
13991 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13993 echo "local: *; };" >> $output_objdir/$libname.ver~
13994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13995 fi
d58dead8
PG
13996
13997 case $cc_basename in
43e02a8a 13998 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
13999 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14000 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14001 hardcode_libdir_flag_spec_FC=
14002 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14003 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14004 if test "x$supports_anon_versioning" = xyes; then
14005 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14007 echo "local: *; };" >> $output_objdir/$libname.ver~
14008 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14009 fi
14010 ;;
14011 esac
1cf3d07d
SE
14012 else
14013 ld_shlibs_FC=no
14014 fi
14015 ;;
14016
14017 netbsd*)
14018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14019 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14020 wlarc=
14021 else
14022 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14023 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14024 fi
14025 ;;
14026
14027 solaris*)
14028 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14029 ld_shlibs_FC=no
14030 cat <<_LT_EOF 1>&2
14031
14032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14033*** create shared libraries on Solaris systems. Therefore, libtool
14034*** is disabling shared libraries support. We urge you to upgrade GNU
14035*** binutils to release 2.9.1 or newer. Another option is to modify
14036*** your PATH or compiler configuration so that the native linker is
14037*** used, and then restart.
14038
14039_LT_EOF
14040 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14041 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14042 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14043 else
14044 ld_shlibs_FC=no
14045 fi
14046 ;;
14047
14048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14049 case `$LD -v 2>&1` in
14050 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14051 ld_shlibs_FC=no
14052 cat <<_LT_EOF 1>&2
14053
14054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14055*** reliably create shared libraries on SCO systems. Therefore, libtool
14056*** is disabling shared libraries support. We urge you to upgrade GNU
14057*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14058*** your PATH or compiler configuration so that the native linker is
14059*** used, and then restart.
14060
14061_LT_EOF
14062 ;;
14063 *)
14064 # For security reasons, it is highly recommended that you always
14065 # use absolute paths for naming shared libraries, and exclude the
14066 # DT_RUNPATH tag from executables and libraries. But doing so
14067 # requires that you compile everything twice, which is a pain.
14068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14069 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14070 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14071 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14072 else
14073 ld_shlibs_FC=no
14074 fi
14075 ;;
14076 esac
14077 ;;
14078
14079 sunos4*)
14080 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14081 wlarc=
14082 hardcode_direct_FC=yes
14083 hardcode_shlibpath_var_FC=no
14084 ;;
14085
14086 *)
14087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14088 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14089 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14090 else
14091 ld_shlibs_FC=no
14092 fi
14093 ;;
14094 esac
14095
14096 if test "$ld_shlibs_FC" = no; then
14097 runpath_var=
14098 hardcode_libdir_flag_spec_FC=
14099 export_dynamic_flag_spec_FC=
14100 whole_archive_flag_spec_FC=
14101 fi
14102 else
14103 # PORTME fill in a description of your system's linker (not GNU ld)
14104 case $host_os in
14105 aix3*)
14106 allow_undefined_flag_FC=unsupported
14107 always_export_symbols_FC=yes
14108 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'
14109 # Note: this linker hardcodes the directories in LIBPATH if there
14110 # are no directories specified by -L.
14111 hardcode_minus_L_FC=yes
14112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14113 # Neither direct hardcoding nor static linking is supported with a
14114 # broken collect2.
14115 hardcode_direct_FC=unsupported
14116 fi
14117 ;;
14118
4f6bebc3 14119 aix[4-9]*)
1cf3d07d
SE
14120 if test "$host_cpu" = ia64; then
14121 # On IA64, the linker does run time linking by default, so we don't
14122 # have to do anything special.
14123 aix_use_runtimelinking=no
14124 exp_sym_flag='-Bexport'
14125 no_entry_flag=""
14126 else
14127 # If we're using GNU nm, then we don't want the "-C" option.
14128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14129 # Also, AIX nm treats weak defined symbols like other global
14130 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14132 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
SE
14133 else
14134 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14135 fi
14136 aix_use_runtimelinking=no
14137
14138 # Test if we are trying to use run time linking or normal
14139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140 # need to do runtime linking.
4f6bebc3 14141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14142 for ld_flag in $LDFLAGS; do
14143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14144 aix_use_runtimelinking=yes
14145 break
14146 fi
14147 done
14148 ;;
14149 esac
14150
14151 exp_sym_flag='-bexport'
14152 no_entry_flag='-bnoentry'
14153 fi
14154
14155 # When large executables or shared objects are built, AIX ld can
14156 # have problems creating the table of contents. If linking a library
14157 # or program results in "error TOC overflow" add -mminimal-toc to
14158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14160
14161 archive_cmds_FC=''
14162 hardcode_direct_FC=yes
14163 hardcode_direct_absolute_FC=yes
14164 hardcode_libdir_separator_FC=':'
14165 link_all_deplibs_FC=yes
14166 file_list_spec_FC='${wl}-f,'
14167
14168 if test "$GCC" = yes; then
14169 case $host_os in aix4.[012]|aix4.[012].*)
14170 # We only want to do this on AIX 4.2 and lower, the check
14171 # below for broken collect2 doesn't work under 4.3+
14172 collect2name=`${CC} -print-prog-name=collect2`
14173 if test -f "$collect2name" &&
14174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14175 then
14176 # We have reworked collect2
14177 :
14178 else
14179 # We have old collect2
14180 hardcode_direct_FC=unsupported
14181 # It fails to find uninstalled libraries when the uninstalled
14182 # path is not listed in the libpath. Setting hardcode_minus_L
14183 # to unsupported forces relinking
14184 hardcode_minus_L_FC=yes
14185 hardcode_libdir_flag_spec_FC='-L$libdir'
14186 hardcode_libdir_separator_FC=
14187 fi
14188 ;;
14189 esac
14190 shared_flag='-shared'
14191 if test "$aix_use_runtimelinking" = yes; then
14192 shared_flag="$shared_flag "'${wl}-G'
14193 fi
14194 else
14195 # not using gcc
14196 if test "$host_cpu" = ia64; then
14197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14198 # chokes on -Wl,-G. The following line is correct:
14199 shared_flag='-G'
14200 else
14201 if test "$aix_use_runtimelinking" = yes; then
14202 shared_flag='${wl}-G'
14203 else
14204 shared_flag='${wl}-bM:SRE'
14205 fi
14206 fi
14207 fi
14208
d58dead8 14209 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14210 # It seems that -bexpall does not export symbols beginning with
14211 # underscore (_), so it is better to generate a list of symbols to export.
14212 always_export_symbols_FC=yes
14213 if test "$aix_use_runtimelinking" = yes; then
14214 # Warning - without using the other runtime loading flags (-brtl),
14215 # -berok will link without error, but may produce a broken library.
14216 allow_undefined_flag_FC='-berok'
14217 # Determine the default libpath from the value encoded in an
14218 # empty executable.
14219 if test x$gcc_no_link = xyes; then
5213506e 14220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14221fi
5213506e 14222cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14223 program main
14224
14225 end
14226_ACEOF
5213506e 14227if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14228
14229lt_aix_libpath_sed='
14230 /Import File Strings/,/^$/ {
14231 /^0/ {
14232 s/^0 *\(.*\)$/\1/
14233 p
14234 }
14235 }'
14236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14237# Check for a 64-bit object if we didn't find anything.
14238if test -z "$aix_libpath"; then
14239 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14240fi
1cf3d07d 14241fi
5213506e
RW
14242rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14244if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14245
14246 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14247 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
14248 else
14249 if test "$host_cpu" = ia64; then
14250 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14251 allow_undefined_flag_FC="-z nodefs"
14252 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"
14253 else
14254 # Determine the default libpath from the value encoded in an
14255 # empty executable.
14256 if test x$gcc_no_link = xyes; then
5213506e 14257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14258fi
5213506e 14259cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14260 program main
14261
14262 end
14263_ACEOF
5213506e 14264if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14265
14266lt_aix_libpath_sed='
14267 /Import File Strings/,/^$/ {
14268 /^0/ {
14269 s/^0 *\(.*\)$/\1/
14270 p
14271 }
14272 }'
14273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274# Check for a 64-bit object if we didn't find anything.
14275if test -z "$aix_libpath"; then
14276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277fi
1cf3d07d 14278fi
5213506e
RW
14279rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14282
14283 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14284 # Warning - without using the other run time loading flags,
14285 # -berok will link without error, but may produce a broken library.
14286 no_undefined_flag_FC=' ${wl}-bernotok'
14287 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14288 if test "$with_gnu_ld" = yes; then
14289 # We only use this code for GNU lds that support --whole-archive.
14290 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14291 else
14292 # Exported symbols can be pulled into shared objects from archives
14293 whole_archive_flag_spec_FC='$convenience'
14294 fi
1cf3d07d
SE
14295 archive_cmds_need_lc_FC=yes
14296 # This is similar to how AIX traditionally builds its shared libraries.
14297 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'
14298 fi
14299 fi
14300 ;;
14301
14302 amigaos*)
d58dead8
PG
14303 case $host_cpu in
14304 powerpc)
14305 # see comment about AmigaOS4 .so support
14306 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14307 archive_expsym_cmds_FC=''
14308 ;;
14309 m68k)
14310 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)'
14311 hardcode_libdir_flag_spec_FC='-L$libdir'
14312 hardcode_minus_L_FC=yes
14313 ;;
14314 esac
1cf3d07d
SE
14315 ;;
14316
14317 bsdi[45]*)
14318 export_dynamic_flag_spec_FC=-rdynamic
14319 ;;
14320
d58dead8 14321 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14322 # When not using gcc, we currently assume that we are using
14323 # Microsoft Visual C++.
14324 # hardcode_libdir_flag_spec is actually meaningless, as there is
14325 # no search path for DLLs.
14326 hardcode_libdir_flag_spec_FC=' '
14327 allow_undefined_flag_FC=unsupported
14328 # Tell ltmain to make .lib files, not .a files.
14329 libext=lib
14330 # Tell ltmain to make .dll files, not .so files.
14331 shrext_cmds=".dll"
14332 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14333 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14334 # The linker will automatically build a .lib file if we build a DLL.
14335 old_archive_from_new_cmds_FC='true'
14336 # FIXME: Should let the user specify the lib program.
14337 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14338 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14339 enable_shared_with_static_runtimes_FC=yes
14340 ;;
14341
14342 darwin* | rhapsody*)
1cf3d07d 14343
d58dead8
PG
14344
14345 archive_cmds_need_lc_FC=no
14346 hardcode_direct_FC=no
14347 hardcode_automatic_FC=yes
14348 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14349 if test "$lt_cv_ld_force_load" = "yes"; then
14350 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\"`'
14351 else
14352 whole_archive_flag_spec_FC=''
14353 fi
d58dead8
PG
14354 link_all_deplibs_FC=yes
14355 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14356 case $cc_basename in
14357 ifort*) _lt_dar_can_shared=yes ;;
14358 *) _lt_dar_can_shared=$GCC ;;
14359 esac
14360 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14361 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14362 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}"
14363 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14364 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}"
14365 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}"
14366
14367 else
14368 ld_shlibs_FC=no
14369 fi
14370
1cf3d07d
SE
14371 ;;
14372
14373 dgux*)
14374 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14375 hardcode_libdir_flag_spec_FC='-L$libdir'
14376 hardcode_shlibpath_var_FC=no
14377 ;;
14378
1cf3d07d
SE
14379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14380 # support. Future versions do this automatically, but an explicit c++rt0.o
14381 # does not break anything, and helps significantly (at the cost of a little
14382 # extra space).
14383 freebsd2.2*)
14384 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14385 hardcode_libdir_flag_spec_FC='-R$libdir'
14386 hardcode_direct_FC=yes
14387 hardcode_shlibpath_var_FC=no
14388 ;;
14389
14390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14391 freebsd2.*)
1cf3d07d
SE
14392 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14393 hardcode_direct_FC=yes
14394 hardcode_minus_L_FC=yes
14395 hardcode_shlibpath_var_FC=no
14396 ;;
14397
14398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14399 freebsd* | dragonfly*)
14400 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14401 hardcode_libdir_flag_spec_FC='-R$libdir'
14402 hardcode_direct_FC=yes
14403 hardcode_shlibpath_var_FC=no
14404 ;;
14405
14406 hpux9*)
14407 if test "$GCC" = yes; then
14408 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'
14409 else
14410 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'
14411 fi
14412 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14413 hardcode_libdir_separator_FC=:
14414 hardcode_direct_FC=yes
14415
14416 # hardcode_minus_L: Not really in the search PATH,
14417 # but as the default location of the library.
14418 hardcode_minus_L_FC=yes
14419 export_dynamic_flag_spec_FC='${wl}-E'
14420 ;;
14421
14422 hpux10*)
43e02a8a 14423 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14424 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14425 else
14426 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14427 fi
14428 if test "$with_gnu_ld" = no; then
14429 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14430 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14431 hardcode_libdir_separator_FC=:
14432 hardcode_direct_FC=yes
14433 hardcode_direct_absolute_FC=yes
14434 export_dynamic_flag_spec_FC='${wl}-E'
14435 # hardcode_minus_L: Not really in the search PATH,
14436 # but as the default location of the library.
14437 hardcode_minus_L_FC=yes
14438 fi
14439 ;;
14440
14441 hpux11*)
43e02a8a 14442 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14443 case $host_cpu in
14444 hppa*64*)
14445 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14446 ;;
14447 ia64*)
d58dead8 14448 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14449 ;;
14450 *)
14451 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14452 ;;
14453 esac
14454 else
14455 case $host_cpu in
14456 hppa*64*)
14457 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14458 ;;
14459 ia64*)
14460 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14461 ;;
14462 *)
43e02a8a 14463 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14464 ;;
14465 esac
14466 fi
14467 if test "$with_gnu_ld" = no; then
14468 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14469 hardcode_libdir_separator_FC=:
14470
14471 case $host_cpu in
14472 hppa*64*|ia64*)
14473 hardcode_direct_FC=no
14474 hardcode_shlibpath_var_FC=no
14475 ;;
14476 *)
14477 hardcode_direct_FC=yes
14478 hardcode_direct_absolute_FC=yes
14479 export_dynamic_flag_spec_FC='${wl}-E'
14480
14481 # hardcode_minus_L: Not really in the search PATH,
14482 # but as the default location of the library.
14483 hardcode_minus_L_FC=yes
14484 ;;
14485 esac
14486 fi
14487 ;;
14488
14489 irix5* | irix6* | nonstopux*)
14490 if test "$GCC" = yes; then
43e02a8a 14491 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
14492 # Try to use the -exported_symbol ld option, if it does not
14493 # work, assume that -exports_file does not work either and
14494 # implicitly export all symbols.
14495 save_LDFLAGS="$LDFLAGS"
14496 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14497 if test x$gcc_no_link = xyes; then
5213506e 14498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14499fi
5213506e 14500cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14501int foo(void) {}
14502_ACEOF
5213506e 14503if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14504 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 14505
1cf3d07d 14506fi
5213506e
RW
14507rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14509 LDFLAGS="$save_LDFLAGS"
14510 else
43e02a8a
RW
14511 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'
14512 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
14513 fi
14514 archive_cmds_need_lc_FC='no'
14515 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14516 hardcode_libdir_separator_FC=:
14517 inherit_rpath_FC=yes
14518 link_all_deplibs_FC=yes
14519 ;;
14520
14521 netbsd*)
14522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14523 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14524 else
14525 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14526 fi
14527 hardcode_libdir_flag_spec_FC='-R$libdir'
14528 hardcode_direct_FC=yes
14529 hardcode_shlibpath_var_FC=no
14530 ;;
14531
14532 newsos6)
14533 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 hardcode_direct_FC=yes
14535 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14536 hardcode_libdir_separator_FC=:
14537 hardcode_shlibpath_var_FC=no
14538 ;;
14539
14540 *nto* | *qnx*)
14541 ;;
14542
14543 openbsd*)
d58dead8
PG
14544 if test -f /usr/libexec/ld.so; then
14545 hardcode_direct_FC=yes
14546 hardcode_shlibpath_var_FC=no
14547 hardcode_direct_absolute_FC=yes
14548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14549 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14550 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14551 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14552 export_dynamic_flag_spec_FC='${wl}-E'
14553 else
14554 case $host_os in
14555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14556 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_libdir_flag_spec_FC='-R$libdir'
14558 ;;
14559 *)
14560 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14561 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14562 ;;
14563 esac
14564 fi
14565 else
14566 ld_shlibs_FC=no
1cf3d07d
SE
14567 fi
14568 ;;
14569
14570 os2*)
14571 hardcode_libdir_flag_spec_FC='-L$libdir'
14572 hardcode_minus_L_FC=yes
14573 allow_undefined_flag_FC=unsupported
43e02a8a 14574 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
14575 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14576 ;;
14577
14578 osf3*)
14579 if test "$GCC" = yes; then
14580 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14581 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
14582 else
14583 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14584 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
14585 fi
14586 archive_cmds_need_lc_FC='no'
14587 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14588 hardcode_libdir_separator_FC=:
14589 ;;
14590
14591 osf4* | osf5*) # as osf3* with the addition of -msym flag
14592 if test "$GCC" = yes; then
14593 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14594 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
14595 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14596 else
14597 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14598 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 14599 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 14600 $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
14601
14602 # Both c and cxx compiler support -rpath directly
14603 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14604 fi
14605 archive_cmds_need_lc_FC='no'
14606 hardcode_libdir_separator_FC=:
14607 ;;
14608
14609 solaris*)
14610 no_undefined_flag_FC=' -z defs'
14611 if test "$GCC" = yes; then
14612 wlarc='${wl}'
14613 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14615 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14616 else
14617 case `$CC -V 2>&1` in
14618 *"Compilers 5.0"*)
14619 wlarc=''
14620 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14621 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14623 ;;
14624 *)
14625 wlarc='${wl}'
14626 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14628 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14629 ;;
14630 esac
14631 fi
14632 hardcode_libdir_flag_spec_FC='-R$libdir'
14633 hardcode_shlibpath_var_FC=no
14634 case $host_os in
14635 solaris2.[0-5] | solaris2.[0-5].*) ;;
14636 *)
14637 # The compiler driver will combine and reorder linker options,
14638 # but understands `-z linker_flag'. GCC discards it without `$wl',
14639 # but is careful enough not to reorder.
14640 # Supported since Solaris 2.6 (maybe 2.5.1?)
14641 if test "$GCC" = yes; then
14642 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14643 else
14644 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14645 fi
14646 ;;
14647 esac
14648 link_all_deplibs_FC=yes
14649 ;;
14650
14651 sunos4*)
14652 if test "x$host_vendor" = xsequent; then
14653 # Use $CC to link under sequent, because it throws in some extra .o
14654 # files that make .init and .fini sections work.
14655 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14656 else
14657 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14658 fi
14659 hardcode_libdir_flag_spec_FC='-L$libdir'
14660 hardcode_direct_FC=yes
14661 hardcode_minus_L_FC=yes
14662 hardcode_shlibpath_var_FC=no
14663 ;;
14664
14665 sysv4)
14666 case $host_vendor in
14667 sni)
14668 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_direct_FC=yes # is this really true???
14670 ;;
14671 siemens)
14672 ## LD is ld it makes a PLAMLIB
14673 ## CC just makes a GrossModule.
14674 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14675 reload_cmds_FC='$CC -r -o $output$reload_objs'
14676 hardcode_direct_FC=no
14677 ;;
14678 motorola)
14679 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14680 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14681 ;;
14682 esac
14683 runpath_var='LD_RUN_PATH'
14684 hardcode_shlibpath_var_FC=no
14685 ;;
14686
14687 sysv4.3*)
14688 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14689 hardcode_shlibpath_var_FC=no
14690 export_dynamic_flag_spec_FC='-Bexport'
14691 ;;
14692
14693 sysv4*MP*)
14694 if test -d /usr/nec; then
14695 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14696 hardcode_shlibpath_var_FC=no
14697 runpath_var=LD_RUN_PATH
14698 hardcode_runpath_var=yes
14699 ld_shlibs_FC=yes
14700 fi
14701 ;;
14702
14703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14704 no_undefined_flag_FC='${wl}-z,text'
14705 archive_cmds_need_lc_FC=no
14706 hardcode_shlibpath_var_FC=no
14707 runpath_var='LD_RUN_PATH'
14708
14709 if test "$GCC" = yes; then
14710 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 else
14713 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 fi
14716 ;;
14717
14718 sysv5* | sco3.2v5* | sco5v6*)
14719 # Note: We can NOT use -z defs as we might desire, because we do not
14720 # link with -lc, and that would cause any symbols used from libc to
14721 # always be unresolved, which means just about no library would
14722 # ever link correctly. If we're not using GNU ld we use -z text
14723 # though, which does catch some bad symbols but isn't as heavy-handed
14724 # as -z defs.
14725 no_undefined_flag_FC='${wl}-z,text'
14726 allow_undefined_flag_FC='${wl}-z,nodefs'
14727 archive_cmds_need_lc_FC=no
14728 hardcode_shlibpath_var_FC=no
14729 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14730 hardcode_libdir_separator_FC=':'
14731 link_all_deplibs_FC=yes
14732 export_dynamic_flag_spec_FC='${wl}-Bexport'
14733 runpath_var='LD_RUN_PATH'
14734
14735 if test "$GCC" = yes; then
14736 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 else
14739 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14740 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741 fi
14742 ;;
14743
14744 uts4*)
14745 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_libdir_flag_spec_FC='-L$libdir'
14747 hardcode_shlibpath_var_FC=no
14748 ;;
14749
14750 *)
14751 ld_shlibs_FC=no
14752 ;;
14753 esac
14754
14755 if test x$host_vendor = xsni; then
14756 case $host in
14757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14758 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14759 ;;
14760 esac
14761 fi
14762 fi
14763
5213506e
RW
14764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14765$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14766test "$ld_shlibs_FC" = no && can_build_shared=no
14767
14768with_gnu_ld_FC=$with_gnu_ld
14769
14770
14771
14772
14773
14774
14775#
14776# Do we need to explicitly link libc?
14777#
14778case "x$archive_cmds_need_lc_FC" in
14779x|xyes)
14780 # Assume -lc should be added
14781 archive_cmds_need_lc_FC=yes
14782
14783 if test "$enable_shared" = yes && test "$GCC" = yes; then
14784 case $archive_cmds_FC in
14785 *'~'*)
14786 # FIXME: we may have to deal with multi-command sequences.
14787 ;;
14788 '$CC '*)
14789 # Test whether the compiler implicitly links with -lc since on some
14790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14791 # to ld, don't add -lc before -lgcc.
5213506e
RW
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14793$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14794if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
baafc534
RW
14796else
14797 $RM conftest*
14798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14799
5213506e 14800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14801 (eval $ac_compile) 2>&5
14802 ac_status=$?
5213506e
RW
14803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14805 soname=conftest
14806 lib=conftest
14807 libobjs=conftest.$ac_objext
14808 deplibs=
14809 wl=$lt_prog_compiler_wl_FC
14810 pic_flag=$lt_prog_compiler_pic_FC
14811 compiler_flags=-v
14812 linker_flags=-v
14813 verstring=
14814 output_objdir=.
14815 libname=conftest
14816 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14817 allow_undefined_flag_FC=
5213506e 14818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14819 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14820 ac_status=$?
5213506e
RW
14821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; }
baafc534
RW
14823 then
14824 lt_cv_archive_cmds_need_lc_FC=no
14825 else
14826 lt_cv_archive_cmds_need_lc_FC=yes
14827 fi
14828 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14829 else
14830 cat conftest.err 1>&5
14831 fi
14832 $RM conftest*
14833
14834fi
5213506e
RW
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14836$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 14837 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
14838 ;;
14839 esac
14840 fi
14841 ;;
14842esac
9cdc381b 14843
9cdc381b 14844
1cf3d07d
SE
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
5213506e
RW
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14908$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 14909
1cf3d07d
SE
14910library_names_spec=
14911libname_spec='lib$name'
14912soname_spec=
14913shrext_cmds=".so"
14914postinstall_cmds=
14915postuninstall_cmds=
14916finish_cmds=
14917finish_eval=
14918shlibpath_var=
14919shlibpath_overrides_runpath=unknown
14920version_type=none
14921dynamic_linker="$host_os ld.so"
14922sys_lib_dlsearch_path_spec="/lib /usr/lib"
14923need_lib_prefix=unknown
14924hardcode_into_libs=no
14925
14926# when you set need_version to no, make sure it does not cause -set_version
14927# flags to be left without arguments
14928need_version=unknown
14929
14930case $host_os in
14931aix3*)
14932 version_type=linux
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14934 shlibpath_var=LIBPATH
14935
14936 # AIX 3 has no versioning support, so we append a major version to the name.
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 ;;
14939
4f6bebc3 14940aix[4-9]*)
1cf3d07d
SE
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 hardcode_into_libs=yes
14945 if test "$host_cpu" = ia64; then
14946 # AIX 5 supports IA64
14947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 else
14950 # With GCC up to 2.95.x, collect2 would create an import file
14951 # for dependence libraries. The import file would start with
14952 # the line `#! .'. This would cause the generated library to
14953 # depend on `.', always an invalid library. This was fixed in
14954 # development snapshots of GCC prior to 3.0.
14955 case $host_os in
14956 aix4 | aix4.[01] | aix4.[01].*)
14957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14958 echo ' yes '
14959 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14960 :
14961 else
14962 can_build_shared=no
14963 fi
14964 ;;
14965 esac
14966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14967 # soname into executable. Probably we can add versioning support to
14968 # collect2, so additional links can be useful in future.
14969 if test "$aix_use_runtimelinking" = yes; then
14970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14971 # instead of lib<name>.a to let people know that these are not
14972 # typical AIX shared libraries.
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 else
14975 # We preserve .a as extension for shared libraries through AIX4.2
14976 # and later when we are not doing run time linking.
14977 library_names_spec='${libname}${release}.a $libname.a'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 fi
14980 shlibpath_var=LIBPATH
14981 fi
14982 ;;
14983
14984amigaos*)
d58dead8
PG
14985 case $host_cpu in
14986 powerpc)
14987 # Since July 2007 AmigaOS4 officially supports .so libraries.
14988 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 ;;
14991 m68k)
1cf3d07d
SE
14992 library_names_spec='$libname.ixlibrary $libname.a'
14993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 14994 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
14995 ;;
14996 esac
1cf3d07d
SE
14997 ;;
14998
14999beos*)
15000 library_names_spec='${libname}${shared_ext}'
15001 dynamic_linker="$host_os ld.so"
15002 shlibpath_var=LIBRARY_PATH
15003 ;;
15004
15005bsdi[45]*)
15006 version_type=linux
15007 need_version=no
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15011 shlibpath_var=LD_LIBRARY_PATH
15012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15014 # the default ld.so.conf also contains /usr/contrib/lib and
15015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15016 # libtool to hard-code these into programs
15017 ;;
15018
d58dead8 15019cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15020 version_type=windows
15021 shrext_cmds=".dll"
15022 need_version=no
15023 need_lib_prefix=no
15024
d58dead8
PG
15025 case $GCC,$host_os in
15026 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15027 library_names_spec='$libname.dll.a'
15028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15029 postinstall_cmds='base_file=`basename \${file}`~
15030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15031 dldir=$destdir/`dirname \$dlpath`~
15032 test -d \$dldir || mkdir -p \$dldir~
15033 $install_prog $dir/$dlname \$dldir/$dlname~
15034 chmod a+x \$dldir/$dlname~
15035 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15036 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15037 fi'
15038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15039 dlpath=$dir/\$dldll~
15040 $RM \$dlpath'
15041 shlibpath_overrides_runpath=yes
15042
15043 case $host_os in
15044 cygwin*)
15045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15047
1cf3d07d 15048 ;;
d58dead8 15049 mingw* | cegcc*)
1cf3d07d
SE
15050 # MinGW DLLs use traditional 'lib' prefix
15051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15052 ;;
15053 pw32*)
15054 # pw32 DLLs use 'pw' prefix rather than 'lib'
15055 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15056 ;;
15057 esac
15058 ;;
15059
15060 *)
15061 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15062 ;;
15063 esac
15064 dynamic_linker='Win32 ld.exe'
15065 # FIXME: first we should search . and the directory the executable is in
15066 shlibpath_var=PATH
15067 ;;
15068
15069darwin* | rhapsody*)
15070 dynamic_linker="$host_os dyld"
15071 version_type=darwin
15072 need_lib_prefix=no
15073 need_version=no
15074 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15075 soname_spec='${libname}${release}${major}$shared_ext'
15076 shlibpath_overrides_runpath=yes
15077 shlibpath_var=DYLD_LIBRARY_PATH
15078 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15079
15080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15081 ;;
15082
15083dgux*)
15084 version_type=linux
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 ;;
15091
1cf3d07d
SE
15092freebsd* | dragonfly*)
15093 # DragonFly does not have aout. When/if they implement a new
15094 # versioning mechanism, adjust this.
15095 if test -x /usr/bin/objformat; then
15096 objformat=`/usr/bin/objformat`
15097 else
15098 case $host_os in
c6084f68 15099 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15100 *) objformat=elf ;;
15101 esac
15102 fi
15103 version_type=freebsd-$objformat
15104 case $version_type in
15105 freebsd-elf*)
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15107 need_version=no
15108 need_lib_prefix=no
15109 ;;
15110 freebsd-*)
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15112 need_version=yes
15113 ;;
15114 esac
15115 shlibpath_var=LD_LIBRARY_PATH
15116 case $host_os in
c6084f68 15117 freebsd2.*)
1cf3d07d
SE
15118 shlibpath_overrides_runpath=yes
15119 ;;
15120 freebsd3.[01]* | freebsdelf3.[01]*)
15121 shlibpath_overrides_runpath=yes
15122 hardcode_into_libs=yes
15123 ;;
15124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15126 shlibpath_overrides_runpath=no
15127 hardcode_into_libs=yes
15128 ;;
15129 *) # from 4.6 on, and DragonFly
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15132 ;;
15133 esac
15134 ;;
15135
15136gnu*)
15137 version_type=linux
15138 need_lib_prefix=no
15139 need_version=no
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 hardcode_into_libs=yes
15144 ;;
15145
43e02a8a
RW
15146haiku*)
15147 version_type=linux
15148 need_lib_prefix=no
15149 need_version=no
15150 dynamic_linker="$host_os runtime_loader"
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LIBRARY_PATH
15154 shlibpath_overrides_runpath=yes
15155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15156 hardcode_into_libs=yes
15157 ;;
15158
1cf3d07d
SE
15159hpux9* | hpux10* | hpux11*)
15160 # Give a soname corresponding to the major version so that dld.sl refuses to
15161 # link against other versions.
15162 version_type=sunos
15163 need_lib_prefix=no
15164 need_version=no
15165 case $host_cpu in
15166 ia64*)
15167 shrext_cmds='.so'
15168 hardcode_into_libs=yes
15169 dynamic_linker="$host_os dld.so"
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 if test "X$HPUX_IA64_MODE" = X32; then
15175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15176 else
15177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15178 fi
15179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15180 ;;
15181 hppa*64*)
15182 shrext_cmds='.sl'
15183 hardcode_into_libs=yes
15184 dynamic_linker="$host_os dld.sl"
15185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15191 ;;
15192 *)
15193 shrext_cmds='.sl'
15194 dynamic_linker="$host_os dld.sl"
15195 shlibpath_var=SHLIB_PATH
15196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 ;;
15200 esac
43e02a8a 15201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15202 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15203 # or fails outright, so override atomically:
15204 install_override_mode=555
1cf3d07d
SE
15205 ;;
15206
15207interix[3-9]*)
15208 version_type=linux
15209 need_lib_prefix=no
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=no
15216 hardcode_into_libs=yes
15217 ;;
15218
15219irix5* | irix6* | nonstopux*)
15220 case $host_os in
15221 nonstopux*) version_type=nonstopux ;;
15222 *)
15223 if test "$lt_cv_prog_gnu_ld" = yes; then
15224 version_type=linux
15225 else
15226 version_type=irix
15227 fi ;;
15228 esac
15229 need_lib_prefix=no
15230 need_version=no
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15233 case $host_os in
15234 irix5* | nonstopux*)
15235 libsuff= shlibsuff=
15236 ;;
15237 *)
15238 case $LD in # libtool.m4 will add one of these switches to LD
15239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15240 libsuff= shlibsuff= libmagic=32-bit;;
15241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15242 libsuff=32 shlibsuff=N32 libmagic=N32;;
15243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15245 *) libsuff= shlibsuff= libmagic=never-match;;
15246 esac
15247 ;;
15248 esac
15249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15250 shlibpath_overrides_runpath=no
15251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15253 hardcode_into_libs=yes
15254 ;;
15255
15256# No shared lib support for Linux oldld, aout, or coff.
15257linux*oldld* | linux*aout* | linux*coff*)
15258 dynamic_linker=no
15259 ;;
15260
15261# This must be Linux ELF.
7a9d3fe8 15262linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=no
baafc534 15271
1cf3d07d 15272 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15273 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15274 $as_echo_n "(cached) " >&6
baafc534
RW
15275else
15276 lt_cv_shlibpath_overrides_runpath=no
15277 save_LDFLAGS=$LDFLAGS
15278 save_libdir=$libdir
15279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15281 if test x$gcc_no_link = xyes; then
5213506e 15282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15283fi
5213506e 15284cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15285 program main
15286
15287 end
9cdc381b 15288_ACEOF
5213506e
RW
15289if ac_fn_fc_try_link "$LINENO"; then :
15290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15291 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15292fi
9cdc381b 15293fi
5213506e
RW
15294rm -f core conftest.err conftest.$ac_objext \
15295 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15296 LDFLAGS=$save_LDFLAGS
15297 libdir=$save_libdir
15298
15299fi
15300
15301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15302
15303 # This implies no fast_install, which is unacceptable.
15304 # Some rework will be needed to allow for fast_install
15305 # before this can be enabled.
15306 hardcode_into_libs=yes
15307
15308 # Append ld.so.conf contents to the search path
15309 if test -f /etc/ld.so.conf; then
43e02a8a 15310 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
15311 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15312 fi
15313
15314 # We used to test for /lib/ld.so.1 and disable shared libraries on
15315 # powerpc, because MkLinux only supported shared libraries with the
15316 # GNU dynamic linker. Since this was broken with cross compilers,
15317 # most powerpc-linux boxes support dynamic linking these days and
15318 # people can always --disable-shared, the test was removed, and we
15319 # assume the GNU/Linux dynamic linker is in use.
15320 dynamic_linker='GNU/Linux ld.so'
15321 ;;
15322
15323netbsd*)
15324 version_type=sunos
15325 need_lib_prefix=no
15326 need_version=no
15327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15330 dynamic_linker='NetBSD (a.out) ld.so'
15331 else
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 dynamic_linker='NetBSD ld.elf_so'
15335 fi
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15338 hardcode_into_libs=yes
15339 ;;
15340
15341newsos6)
15342 version_type=linux
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=yes
15346 ;;
15347
15348*nto* | *qnx*)
15349 version_type=qnx
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=no
15356 hardcode_into_libs=yes
15357 dynamic_linker='ldqnx.so'
15358 ;;
15359
15360openbsd*)
15361 version_type=sunos
15362 sys_lib_dlsearch_path_spec="/usr/lib"
15363 need_lib_prefix=no
15364 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15365 case $host_os in
15366 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15367 *) need_version=no ;;
15368 esac
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15373 case $host_os in
15374 openbsd2.[89] | openbsd2.[89].*)
15375 shlibpath_overrides_runpath=no
15376 ;;
15377 *)
15378 shlibpath_overrides_runpath=yes
15379 ;;
15380 esac
15381 else
15382 shlibpath_overrides_runpath=yes
15383 fi
15384 ;;
15385
15386os2*)
15387 libname_spec='$name'
15388 shrext_cmds=".dll"
15389 need_lib_prefix=no
15390 library_names_spec='$libname${shared_ext} $libname.a'
15391 dynamic_linker='OS/2 ld.exe'
15392 shlibpath_var=LIBPATH
15393 ;;
15394
15395osf3* | osf4* | osf5*)
15396 version_type=osf
15397 need_lib_prefix=no
15398 need_version=no
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15403 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15404 ;;
15405
15406rdos*)
15407 dynamic_linker=no
15408 ;;
15409
15410solaris*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=yes
15418 hardcode_into_libs=yes
15419 # ldd complains unless libraries are executable
15420 postinstall_cmds='chmod +x $lib'
15421 ;;
15422
15423sunos4*)
15424 version_type=sunos
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15426 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=yes
15429 if test "$with_gnu_ld" = yes; then
15430 need_lib_prefix=no
15431 fi
15432 need_version=yes
15433 ;;
15434
15435sysv4 | sysv4.3*)
15436 version_type=linux
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 case $host_vendor in
15441 sni)
15442 shlibpath_overrides_runpath=no
15443 need_lib_prefix=no
15444 runpath_var=LD_RUN_PATH
15445 ;;
15446 siemens)
15447 need_lib_prefix=no
15448 ;;
15449 motorola)
15450 need_lib_prefix=no
15451 need_version=no
15452 shlibpath_overrides_runpath=no
15453 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15454 ;;
15455 esac
15456 ;;
15457
15458sysv4*MP*)
15459 if test -d /usr/nec ;then
15460 version_type=linux
15461 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15462 soname_spec='$libname${shared_ext}.$major'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 fi
15465 ;;
15466
15467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15468 version_type=freebsd-elf
15469 need_lib_prefix=no
15470 need_version=no
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=yes
15475 hardcode_into_libs=yes
15476 if test "$with_gnu_ld" = yes; then
15477 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15478 else
15479 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15480 case $host_os in
15481 sco3.2v5*)
15482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15483 ;;
15484 esac
15485 fi
15486 sys_lib_dlsearch_path_spec='/usr/lib'
15487 ;;
15488
15489tpf*)
15490 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15491 version_type=linux
15492 need_lib_prefix=no
15493 need_version=no
d58dead8 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=no
15497 hardcode_into_libs=yes
15498 ;;
15499
15500uts4*)
15501 version_type=linux
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 ;;
15506
15507*)
15508 dynamic_linker=no
15509 ;;
15510esac
5213506e
RW
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15512$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15513test "$dynamic_linker" = no && can_build_shared=no
15514
15515variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15516if test "$GCC" = yes; then
15517 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15518fi
9cdc381b 15519
d58dead8
PG
15520if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15521 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15522fi
15523if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15524 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15525fi
15526
9cdc381b 15527
1cf3d07d
SE
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
43e02a8a
RW
15559
15560
1cf3d07d
SE
15561
15562
15563
5213506e
RW
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15565$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15566hardcode_action_FC=
15567if test -n "$hardcode_libdir_flag_spec_FC" ||
15568 test -n "$runpath_var_FC" ||
15569 test "X$hardcode_automatic_FC" = "Xyes" ; then
15570
15571 # We can hardcode non-existent directories.
15572 if test "$hardcode_direct_FC" != no &&
15573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15574 # have to relink, otherwise we might link with an installed library
15575 # when we should be linking with a yet-to-be-installed one
15576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15577 test "$hardcode_minus_L_FC" != no; then
15578 # Linking always hardcodes the temporary library directory.
15579 hardcode_action_FC=relink
15580 else
15581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15582 hardcode_action_FC=immediate
15583 fi
15584else
15585 # We cannot hardcode anything, or else we can only hardcode existing
15586 # directories.
15587 hardcode_action_FC=unsupported
9cdc381b 15588fi
5213506e
RW
15589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15590$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15591
15592if test "$hardcode_action_FC" = relink ||
15593 test "$inherit_rpath_FC" = yes; then
15594 # Fast installation is not supported
15595 enable_fast_install=no
15596elif test "$shlibpath_overrides_runpath" = yes ||
15597 test "$enable_shared" = no; then
15598 # Fast installation is not necessary
15599 enable_fast_install=needless
9cdc381b
BD
15600fi
15601
1cf3d07d
SE
15602
15603
15604
15605
15606
15607
15608 fi # test -n "$compiler"
15609
d58dead8 15610 GCC=$lt_save_GCC
1cf3d07d
SE
15611 CC="$lt_save_CC"
15612fi # test "$_lt_disable_FC" != yes
15613
dd46a4de 15614ac_ext=c
96b8a615
AJ
15615ac_cpp='$CPP $CPPFLAGS'
15616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15618ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15619
15620
15621
15622# extra LD Flags which are required for targets
15623case "${host}" in
15624 *-darwin*)
15625 # Darwin needs -single_module when linking libgfortran
15626 extra_ldflags_libgfortran=-Wl,-single_module
15627 ;;
15628esac
15629
15630
15631# We need a working compiler at that point, otherwise give a clear
15632# error message and bail out.
15633
5213506e
RW
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15635$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15636ac_ext=${ac_fc_srcext-f}
15637ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15638ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15639ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15640
5213506e 15641cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15642
15643 program foo
15644 real, parameter :: bar = sin (12.34 / 2.5)
15645 end program foo
6de9cd9a 15646_ACEOF
5213506e
RW
15647if ac_fn_fc_try_compile "$LINENO"; then :
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649$as_echo "yes" >&6; }
6de9cd9a 15650else
5213506e
RW
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652$as_echo "no" >&6; }
15653 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 15654
96b8a615 15655fi
5213506e 15656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15657ac_ext=c
15658ac_cpp='$CPP $CPPFLAGS'
15659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15661ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15662
96b8a615 15663
1cf3d07d 15664
5213506e
RW
15665# Check whether --enable-largefile was given.
15666if test "${enable_largefile+set}" = set; then :
15667 enableval=$enable_largefile;
15668fi
1cf3d07d 15669
1cf3d07d
SE
15670if test "$enable_largefile" != no; then
15671
5213506e
RW
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15673$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15674if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15675 $as_echo_n "(cached) " >&6
96b8a615 15676else
1cf3d07d
SE
15677 ac_cv_sys_largefile_CC=no
15678 if test "$GCC" != yes; then
15679 ac_save_CC=$CC
15680 while :; do
5213506e
RW
15681 # IRIX 6.2 and later do not support large files by default,
15682 # so use the C compiler's -n32 option if that helps.
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15684/* end confdefs.h. */
1cf3d07d
SE
15685#include <sys/types.h>
15686 /* Check that off_t can represent 2**63 - 1 correctly.
15687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15688 since some C++ compilers masquerading as C compilers
15689 incorrectly reject 9223372036854775807. */
15690#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15692 && LARGE_OFF_T % 2147483647 == 1)
15693 ? 1 : -1];
4c4b3eb0
PB
15694int
15695main ()
15696{
4c4b3eb0
PB
15697
15698 ;
15699 return 0;
15700}
15701_ACEOF
5213506e
RW
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 break
4c4b3eb0 15704fi
5213506e
RW
15705rm -f core conftest.err conftest.$ac_objext
15706 CC="$CC -n32"
15707 if ac_fn_c_try_compile "$LINENO"; then :
15708 ac_cv_sys_largefile_CC=' -n32'; break
15709fi
15710rm -f core conftest.err conftest.$ac_objext
15711 break
15712 done
15713 CC=$ac_save_CC
15714 rm -f conftest.$ac_ext
15715 fi
15716fi
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15718$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15719 if test "$ac_cv_sys_largefile_CC" != no; then
15720 CC=$CC$ac_cv_sys_largefile_CC
15721 fi
4c4b3eb0 15722
5213506e
RW
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15724$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15725if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15727else
15728 while :; do
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15730/* end confdefs.h. */
5213506e
RW
15731#include <sys/types.h>
15732 /* Check that off_t can represent 2**63 - 1 correctly.
15733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15734 since some C++ compilers masquerading as C compilers
15735 incorrectly reject 9223372036854775807. */
15736#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15738 && LARGE_OFF_T % 2147483647 == 1)
15739 ? 1 : -1];
4c4b3eb0
PB
15740int
15741main ()
15742{
4c4b3eb0
PB
15743
15744 ;
15745 return 0;
15746}
15747_ACEOF
5213506e
RW
15748if ac_fn_c_try_compile "$LINENO"; then :
15749 ac_cv_sys_file_offset_bits=no; break
15750fi
15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15753/* end confdefs.h. */
5213506e
RW
15754#define _FILE_OFFSET_BITS 64
15755#include <sys/types.h>
15756 /* Check that off_t can represent 2**63 - 1 correctly.
15757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15758 since some C++ compilers masquerading as C compilers
15759 incorrectly reject 9223372036854775807. */
15760#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15762 && LARGE_OFF_T % 2147483647 == 1)
15763 ? 1 : -1];
4c4b3eb0
PB
15764int
15765main ()
15766{
4c4b3eb0
PB
15767
15768 ;
15769 return 0;
15770}
15771_ACEOF
5213506e
RW
15772if ac_fn_c_try_compile "$LINENO"; then :
15773 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15774fi
5213506e
RW
15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 ac_cv_sys_file_offset_bits=unknown
15777 break
15778done
4c4b3eb0 15779fi
5213506e
RW
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15781$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15782case $ac_cv_sys_file_offset_bits in #(
15783 no | unknown) ;;
15784 *)
15785cat >>confdefs.h <<_ACEOF
15786#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15787_ACEOF
5213506e
RW
15788;;
15789esac
15790rm -rf conftest*
15791 if test $ac_cv_sys_file_offset_bits = unknown; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15793$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15794if test "${ac_cv_sys_large_files+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15796else
15797 while :; do
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15799/* end confdefs.h. */
5213506e
RW
15800#include <sys/types.h>
15801 /* Check that off_t can represent 2**63 - 1 correctly.
15802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15803 since some C++ compilers masquerading as C compilers
15804 incorrectly reject 9223372036854775807. */
15805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15807 && LARGE_OFF_T % 2147483647 == 1)
15808 ? 1 : -1];
4c4b3eb0
PB
15809int
15810main ()
15811{
4c4b3eb0
PB
15812
15813 ;
15814 return 0;
15815}
15816_ACEOF
5213506e
RW
15817if ac_fn_c_try_compile "$LINENO"; then :
15818 ac_cv_sys_large_files=no; break
4c4b3eb0 15819fi
5213506e
RW
15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15822/* end confdefs.h. */
5213506e
RW
15823#define _LARGE_FILES 1
15824#include <sys/types.h>
15825 /* Check that off_t can represent 2**63 - 1 correctly.
15826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15827 since some C++ compilers masquerading as C compilers
15828 incorrectly reject 9223372036854775807. */
15829#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15831 && LARGE_OFF_T % 2147483647 == 1)
15832 ? 1 : -1];
4c4b3eb0
PB
15833int
15834main ()
15835{
15836
4c4b3eb0
PB
15837 ;
15838 return 0;
15839}
15840_ACEOF
5213506e
RW
15841if ac_fn_c_try_compile "$LINENO"; then :
15842 ac_cv_sys_large_files=1; break
4c4b3eb0 15843fi
5213506e
RW
15844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 ac_cv_sys_large_files=unknown
15846 break
15847done
38d24731 15848fi
5213506e
RW
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15850$as_echo "$ac_cv_sys_large_files" >&6; }
15851case $ac_cv_sys_large_files in #(
15852 no | unknown) ;;
15853 *)
4c4b3eb0 15854cat >>confdefs.h <<_ACEOF
5213506e 15855#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 15856_ACEOF
5213506e
RW
15857;;
15858esac
15859rm -rf conftest*
15860 fi
4c4b3eb0
PB
15861fi
15862
44720bef
JB
15863
15864# Types
5213506e
RW
15865ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15866if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 15867
5213506e 15868else
4c4b3eb0 15869
5213506e
RW
15870cat >>confdefs.h <<_ACEOF
15871#define off_t long int
15872_ACEOF
4c4b3eb0 15873
44720bef
JB
15874fi
15875
15876
15877 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15878if test "x$ac_cv_type_intptr_t" = x""yes; then :
15879
15880$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15881
15882else
15883 for ac_type in 'int' 'long int' 'long long int'; do
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885/* end confdefs.h. */
15886$ac_includes_default
15887int
15888main ()
15889{
15890static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15891test_array [0] = 0
15892
15893 ;
15894 return 0;
15895}
15896_ACEOF
15897if ac_fn_c_try_compile "$LINENO"; then :
15898
15899cat >>confdefs.h <<_ACEOF
15900#define intptr_t $ac_type
15901_ACEOF
15902
15903 ac_type=
15904fi
15905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 test -z "$ac_type" && break
15907 done
15908fi
15909
15910
15911
15912 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15913if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15914
15915$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15916
15917else
15918 for ac_type in 'unsigned int' 'unsigned long int' \
15919 'unsigned long long int'; do
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h. */
15922$ac_includes_default
15923int
15924main ()
15925{
15926static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15927test_array [0] = 0
15928
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933if ac_fn_c_try_compile "$LINENO"; then :
15934
15935cat >>confdefs.h <<_ACEOF
15936#define uintptr_t $ac_type
15937_ACEOF
15938
15939 ac_type=
15940fi
15941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 test -z "$ac_type" && break
15943 done
15944fi
15945
15946
15947ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15948if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15949
15950cat >>confdefs.h <<_ACEOF
15951#define HAVE_PTRDIFF_T 1
15952_ACEOF
15953
15954
4c4b3eb0
PB
15955fi
15956
4c4b3eb0 15957
74544378 15958# check header files (we assume C89 is available, so don't check for that)
df65f093 15959
5213506e 15960
df65f093 15961
74544378
JB
15962 for ac_header in $ac_header_list
15963do :
15964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15966"
15967eval as_val=\$$as_ac_Header
15968 if test "x$as_val" = x""yes; then :
15969 cat >>confdefs.h <<_ACEOF
15970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
15971_ACEOF
15972
5213506e 15973fi
df65f093 15974
74544378 15975done
df65f093 15976
5213506e 15977
5213506e 15978
df65f093 15979
5213506e 15980
5213506e 15981
df65f093 15982
df65f093 15983
df65f093
SK
15984
15985
df65f093 15986
df65f093 15987
df65f093
SK
15988
15989
df65f093
SK
15990
15991
41724e6a 15992
2cbcdeba 15993
3969c39f 15994
1fb2002d
FXC
15995
15996
32aa3bff 15997
f77b6ca3 15998
f77b6ca3 15999
f77b6ca3 16000
f77b6ca3 16001
f77b6ca3 16002
f77b6ca3 16003
fa86f4f9
TB
16004
16005
f77b6ca3 16006
f77b6ca3 16007
6de9cd9a 16008
c13e029b 16009inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16010
c13e029b
PB
16011acx_cv_header_stdint=stddef.h
16012acx_cv_header_stdint_kind="(already complete)"
16013for i in stdint.h $inttype_headers; do
16014 unset ac_cv_type_uintptr_t
16015 unset ac_cv_type_uintmax_t
16016 unset ac_cv_type_int_least32_t
16017 unset ac_cv_type_int_fast32_t
16018 unset ac_cv_type_uint64_t
16019 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16020 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16021#include <$i>
16022"
16023if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16024 acx_cv_header_stdint=$i
5213506e 16025else
c13e029b 16026 continue
5213506e 16027fi
6de9cd9a 16028
c13e029b
PB
16029 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16030#include <$i>
16031"
16032if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 16033
5213506e 16034else
c13e029b 16035 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16036fi
96b8a615 16037
c13e029b
PB
16038 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16039#include <$i>
16040"
16041if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16042
f77b6ca3 16043else
c13e029b 16044 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16045fi
5213506e 16046
c13e029b
PB
16047 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16048#include <$i>
16049"
16050if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 16051
c13e029b
PB
16052else
16053 acx_cv_header_stdint_kind="(mostly complete)"
16054fi
d72a3ac1 16055
c13e029b
PB
16056 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16057#include <$i>
16058"
16059if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 16060
5213506e 16061else
c13e029b
PB
16062 acx_cv_header_stdint_kind="(lacks uint64_t)"
16063fi
f77b6ca3 16064
c13e029b
PB
16065 break
16066done
16067if test "$acx_cv_header_stdint" = stddef.h; then
16068 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16069 for i in stdint.h $inttype_headers; do
16070 unset ac_cv_type_uintptr_t
16071 unset ac_cv_type_uint32_t
16072 unset ac_cv_type_uint64_t
16073 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16074 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16075#include <$i>
16076"
16077if test "x$ac_cv_type_uint32_t" = x""yes; then :
16078 acx_cv_header_stdint=$i
16079else
16080 continue
5213506e 16081fi
f77b6ca3 16082
c13e029b
PB
16083 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16084#include <$i>
16085"
16086if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 16087
c13e029b 16088fi
185d7d97 16089
c13e029b
PB
16090 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16091#include <$i>
16092"
16093if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 16094
c13e029b 16095fi
35059811 16096
c13e029b
PB
16097 break
16098 done
16099fi
16100if test "$acx_cv_header_stdint" = stddef.h; then
16101 acx_cv_header_stdint_kind="(u_intXX_t style)"
16102 for i in sys/types.h $inttype_headers; do
16103 unset ac_cv_type_u_int32_t
16104 unset ac_cv_type_u_int64_t
16105 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16106 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16107#include <$i>
16108"
16109if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16110 acx_cv_header_stdint=$i
d72a3ac1 16111else
c13e029b
PB
16112 continue
16113fi
a119fc1c 16114
c13e029b
PB
16115 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16116#include <$i>
16117"
16118if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 16119
c13e029b 16120fi
a119fc1c 16121
c13e029b
PB
16122 break
16123 done
a119fc1c 16124fi
c13e029b
PB
16125if test "$acx_cv_header_stdint" = stddef.h; then
16126 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16127fi
a119fc1c 16128
c13e029b
PB
16129test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16130test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16131test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16132test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16133test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16134
c13e029b 16135# ----------------- Summarize what we found so far
5213506e 16136
c13e029b
PB
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16138$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16139
c13e029b
PB
16140case `$as_basename -- gstdint.h ||
16141$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16142 Xgstdint.h : 'X\(//\)$' \| \
16143 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16144$as_echo X/gstdint.h |
16145 sed '/^.*\/\([^/][^/]*\)\/*$/{
16146 s//\1/
16147 q
16148 }
16149 /^X\/\(\/\/\)$/{
16150 s//\1/
16151 q
16152 }
16153 /^X\/\(\/\).*/{
16154 s//\1/
16155 q
16156 }
16157 s/.*/./; q'` in
16158 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16159$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16160 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16161$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16162 *) ;;
16163esac
a119fc1c 16164
c13e029b
PB
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16166$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16167
c13e029b 16168# ----------------- done included file, check C basic types --------
868d75db 16169
c13e029b
PB
16170# Lacking an uintptr_t? Test size of void *
16171case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16172 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16175# This bug is HP SR number 8606223364.
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16177$as_echo_n "checking size of void *... " >&6; }
16178if test "${ac_cv_sizeof_void_p+set}" = set; then :
16179 $as_echo_n "(cached) " >&6
16180else
16181 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16182
c13e029b
PB
16183else
16184 if test "$ac_cv_type_void_p" = yes; then
16185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16187{ as_fn_set_status 77
16188as_fn_error "cannot compute sizeof (void *)
16189See \`config.log' for more details." "$LINENO" 5; }; }
16190 else
16191 ac_cv_sizeof_void_p=0
16192 fi
16193fi
d72a3ac1 16194
c13e029b
PB
16195fi
16196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16197$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16198
868d75db
FXC
16199
16200
d72a3ac1 16201cat >>confdefs.h <<_ACEOF
c13e029b 16202#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16203_ACEOF
d72a3ac1 16204
c13e029b
PB
16205 ;;
16206esac
d72a3ac1 16207
c13e029b
PB
16208# Lacking an uint64_t? Test size of long
16209case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16210 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16211# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16212# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16213# This bug is HP SR number 8606223364.
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16215$as_echo_n "checking size of long... " >&6; }
16216if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16217 $as_echo_n "(cached) " >&6
16218else
c13e029b 16219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16220
7f483eec 16221else
c13e029b
PB
16222 if test "$ac_cv_type_long" = yes; then
16223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16225{ as_fn_set_status 77
16226as_fn_error "cannot compute sizeof (long)
16227See \`config.log' for more details." "$LINENO" 5; }; }
16228 else
16229 ac_cv_sizeof_long=0
16230 fi
5213506e 16231fi
7f483eec 16232
c13e029b
PB
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16235$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16236
7f483eec 16237
d72a3ac1
PB
16238
16239cat >>confdefs.h <<_ACEOF
c13e029b 16240#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16241_ACEOF
7f483eec 16242
c13e029b
PB
16243 ;;
16244esac
29e86cb0 16245
c13e029b
PB
16246if test $acx_cv_header_stdint = stddef.h; then
16247 # Lacking a good header? Test size of everything and deduce all types.
16248 # The cast to long int works around a bug in the HP C Compiler
16249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16251# This bug is HP SR number 8606223364.
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16253$as_echo_n "checking size of int... " >&6; }
16254if test "${ac_cv_sizeof_int+set}" = set; then :
16255 $as_echo_n "(cached) " >&6
16256else
16257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16258
c13e029b
PB
16259else
16260 if test "$ac_cv_type_int" = yes; then
16261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16263{ as_fn_set_status 77
16264as_fn_error "cannot compute sizeof (int)
16265See \`config.log' for more details." "$LINENO" 5; }; }
16266 else
16267 ac_cv_sizeof_int=0
16268 fi
16269fi
d8163f5c 16270
c13e029b
PB
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16273$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16274
16275
868d75db 16276
d72a3ac1 16277cat >>confdefs.h <<_ACEOF
c13e029b 16278#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16279_ACEOF
16280
d72a3ac1 16281
c13e029b
PB
16282 # The cast to long int works around a bug in the HP C Compiler
16283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16285# This bug is HP SR number 8606223364.
16286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16287$as_echo_n "checking size of short... " >&6; }
16288if test "${ac_cv_sizeof_short+set}" = set; then :
16289 $as_echo_n "(cached) " >&6
16290else
16291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16292
c13e029b
PB
16293else
16294 if test "$ac_cv_type_short" = yes; then
16295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16297{ as_fn_set_status 77
16298as_fn_error "cannot compute sizeof (short)
16299See \`config.log' for more details." "$LINENO" 5; }; }
16300 else
16301 ac_cv_sizeof_short=0
16302 fi
16303fi
d72a3ac1 16304
c13e029b
PB
16305fi
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16307$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16308
16309
16310
c13e029b
PB
16311cat >>confdefs.h <<_ACEOF
16312#define SIZEOF_SHORT $ac_cv_sizeof_short
16313_ACEOF
d72a3ac1
PB
16314
16315
c13e029b
PB
16316 # The cast to long int works around a bug in the HP C Compiler
16317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16319# This bug is HP SR number 8606223364.
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16321$as_echo_n "checking size of char... " >&6; }
16322if test "${ac_cv_sizeof_char+set}" = set; then :
16323 $as_echo_n "(cached) " >&6
16324else
16325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16326
c13e029b
PB
16327else
16328 if test "$ac_cv_type_char" = yes; then
16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16331{ as_fn_set_status 77
16332as_fn_error "cannot compute sizeof (char)
16333See \`config.log' for more details." "$LINENO" 5; }; }
16334 else
16335 ac_cv_sizeof_char=0
16336 fi
16337fi
d72a3ac1 16338
c13e029b
PB
16339fi
16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16341$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16342
16343
d72a3ac1 16344
5213506e 16345cat >>confdefs.h <<_ACEOF
c13e029b 16346#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16347_ACEOF
868d75db 16348
868d75db 16349
2017c370 16350
c13e029b
PB
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16352$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16353 case "$ac_cv_sizeof_char" in
16354 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16355 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16356 esac
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16358$as_echo "$acx_cv_type_int8_t" >&6; }
16359
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16361$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16362 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16363 2:*) acx_cv_type_int16_t=int ;;
16364 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16365 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16366 esac
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16368$as_echo "$acx_cv_type_int16_t" >&6; }
16369
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16371$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16372 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16373 4:*) acx_cv_type_int32_t=int ;;
16374 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16375 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16376 esac
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16378$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16379fi
16380
c13e029b 16381# These tests are here to make the output prettier
d72a3ac1 16382
c13e029b
PB
16383if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16384 case "$ac_cv_sizeof_long" in
16385 8) acx_cv_type_int64_t=long ;;
16386 esac
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16388$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16390$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16391fi
16392
16393# Now we can use the above types
16394
16395if test "$ac_cv_type_uintptr_t" != yes; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16397$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16398 case $ac_cv_sizeof_void_p in
16399 2) acx_cv_type_intptr_t=int16_t ;;
16400 4) acx_cv_type_intptr_t=int32_t ;;
16401 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16402 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16403 esac
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16405$as_echo "$acx_cv_type_intptr_t" >&6; }
16406fi
d72a3ac1 16407
c13e029b 16408# ----------------- done all checks, emit header -------------
5213506e 16409ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16410
2017c370 16411
5213506e
RW
16412
16413
16414ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16415if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16416
16417cat >>confdefs.h <<_ACEOF
16418#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16419_ACEOF
2017c370 16420
5213506e 16421
2017c370 16422fi
5213506e
RW
16423ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16424if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16425
16426cat >>confdefs.h <<_ACEOF
16427#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16428_ACEOF
16429
5213506e 16430
2017c370 16431fi
5213506e
RW
16432ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16433if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16434
5213506e
RW
16435cat >>confdefs.h <<_ACEOF
16436#define HAVE_STRUCT_STAT_ST_RDEV 1
16437_ACEOF
868d75db
FXC
16438
16439
f02d008e 16440fi
5213506e
RW
16441
16442
16443# Check for library functions.
b4005c71
SE
16444if test "x${with_newlib}" = "xyes"; then
16445 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16446 # may not work correctly, because the compiler may not be able to
16447 # link executables.
16448
16449$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16450
16451
16452$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16453
16454
16455$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16456
16457
16458$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16459
16460
16461$as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16462
16463
16464$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16465
16466
16467$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16468
16469
16470$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16471
16472else
f77b6ca3 16473
f77b6ca3 16474
74544378
JB
16475
16476 for ac_func in $ac_func_list
5213506e
RW
16477do :
16478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16480eval as_val=\$$as_ac_var
16481 if test "x$as_val" = x""yes; then :
16482 cat >>confdefs.h <<_ACEOF
16483#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16484_ACEOF
f77b6ca3 16485
5213506e
RW
16486fi
16487done
f77b6ca3 16488
f77b6ca3 16489
5213506e 16490
96b8a615 16491
5213506e 16492
5213506e 16493
5213506e 16494
6de9cd9a 16495
6de9cd9a 16496
b6e7a3d1 16497
b6e7a3d1 16498
6de9cd9a 16499
4c0c6b9f 16500
4c0c6b9f 16501
4c0c6b9f 16502
4c0c6b9f 16503
4c0c6b9f 16504
4c0c6b9f 16505
4c0c6b9f 16506
4c0c6b9f 16507
868d75db 16508
868d75db 16509
868d75db 16510
868d75db 16511
4c0c6b9f 16512
4c0c6b9f 16513
4c0c6b9f 16514
4c0c6b9f 16515
6422c112 16516
6422c112 16517
6422c112 16518
74544378
JB
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
68ee9c08
JB
16584
16585
16586
16587
227e441f
JB
16588
16589
8ecd1c0d
TB
16590
16591
b4005c71 16592fi
74544378 16593
4179e59a
TB
16594# Check strerror_r, cannot be above as versions with two and three arguments exist
16595
16596 ac_save_CFLAGS="$CFLAGS"
16597 CFLAGS="-Wimplicit-function-declaration -Werror"
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h. */
16600#define _GNU_SOURCE 1
16601 #include <string.h>
16602 #include <locale.h>
16603int
16604main ()
16605{
16606char s[128]; strerror_r(5, s, 128);
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611if ac_fn_c_try_compile "$LINENO"; then :
16612
16613$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16614
16615fi
16616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 CFLAGS="$ac_save_CFLAGS"
16618
16619 ac_save_CFLAGS="$CFLAGS"
16620 CFLAGS="-Wimplicit-function-declaration -Werror"
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622/* end confdefs.h. */
16623#define _GNU_SOURCE 1
16624 #include <string.h>
16625 #include <locale.h>
16626int
16627main ()
16628{
16629char s[128]; strerror_r(5, s);
16630 ;
16631 return 0;
16632}
16633_ACEOF
16634if ac_fn_c_try_compile "$LINENO"; then :
16635
16636$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16637
16638fi
16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 CFLAGS="$ac_save_CFLAGS"
6422c112 16641
4c0c6b9f 16642
453310d8 16643# Check for C99 (and other IEEE) math functions
db9f46a9
TG
16644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16645$as_echo_n "checking for sin in -lm... " >&6; }
16646if test "${ac_cv_lib_m_sin+set}" = set; then :
5213506e 16647 $as_echo_n "(cached) " >&6
453310d8
RS
16648else
16649 ac_check_lib_save_LIBS=$LIBS
16650LIBS="-lm $LIBS"
f02d008e 16651if test x$gcc_no_link = xyes; then
5213506e 16652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16653fi
5213506e 16654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16655/* end confdefs.h. */
16656
5213506e
RW
16657/* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
453310d8
RS
16660#ifdef __cplusplus
16661extern "C"
16662#endif
db9f46a9 16663char sin ();
453310d8
RS
16664int
16665main ()
16666{
db9f46a9 16667return sin ();
453310d8
RS
16668 ;
16669 return 0;
16670}
16671_ACEOF
5213506e 16672if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16673 ac_cv_lib_m_sin=yes
453310d8 16674else
db9f46a9 16675 ac_cv_lib_m_sin=no
453310d8 16676fi
5213506e
RW
16677rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16679LIBS=$ac_check_lib_save_LIBS
16680fi
db9f46a9
TG
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16682$as_echo "$ac_cv_lib_m_sin" >&6; }
16683if test "x$ac_cv_lib_m_sin" = x""yes; then :
16684 cat >>confdefs.h <<_ACEOF
16685#define HAVE_LIBM 1
16686_ACEOF
453310d8 16687
db9f46a9 16688 LIBS="-lm $LIBS"
453310d8
RS
16689
16690fi
16691
db9f46a9
TG
16692
16693
16694
16695
16696
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16699$as_echo_n "checking for acosf... " >&6; }
16700if test "${gcc_cv_math_func_acosf+set}" = set; then :
5213506e 16701 $as_echo_n "(cached) " >&6
f02d008e 16702else
db9f46a9 16703 if test x$gcc_no_link = xyes; then
5213506e 16704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16705fi
5213506e 16706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16707/* end confdefs.h. */
16708
db9f46a9
TG
16709#ifdef HAVE_COMPLEX_H
16710#include <complex.h>
16711#endif
16712#ifdef HAVE_MATH_H
16713#include <math.h>
f02d008e 16714#endif
db9f46a9
TG
16715
16716int (*ptr)() = (int (*)())acosf;
16717
f02d008e
JD
16718int
16719main ()
16720{
f02d008e
JD
16721 return 0;
16722}
db9f46a9 16723
f02d008e 16724_ACEOF
5213506e 16725if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16726 gcc_cv_math_func_acosf=yes
f02d008e 16727else
db9f46a9 16728 gcc_cv_math_func_acosf=no
f02d008e 16729fi
5213506e
RW
16730rm -f core conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
f02d008e 16732fi
db9f46a9
TG
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16734$as_echo "$gcc_cv_math_func_acosf" >&6; }
16735 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 16736
f38a14ca
TG
16737cat >>confdefs.h <<_ACEOF
16738#define HAVE_ACOSF 1
16739_ACEOF
db9f46a9
TG
16740
16741 fi
f02d008e 16742
f02d008e 16743
f02d008e 16744
db9f46a9
TG
16745
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16747$as_echo_n "checking for acos... " >&6; }
16748if test "${gcc_cv_math_func_acos+set}" = set; then :
5213506e 16749 $as_echo_n "(cached) " >&6
453310d8 16750else
db9f46a9 16751 if test x$gcc_no_link = xyes; then
5213506e 16752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16753fi
5213506e 16754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16755/* end confdefs.h. */
16756
db9f46a9
TG
16757#ifdef HAVE_COMPLEX_H
16758#include <complex.h>
453310d8 16759#endif
db9f46a9
TG
16760#ifdef HAVE_MATH_H
16761#include <math.h>
16762#endif
16763
16764int (*ptr)() = (int (*)())acos;
16765
453310d8
RS
16766int
16767main ()
16768{
453310d8
RS
16769 return 0;
16770}
db9f46a9 16771
453310d8 16772_ACEOF
5213506e 16773if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16774 gcc_cv_math_func_acos=yes
453310d8 16775else
db9f46a9 16776 gcc_cv_math_func_acos=no
453310d8 16777fi
5213506e
RW
16778rm -f core conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
453310d8 16780fi
db9f46a9
TG
16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16782$as_echo "$gcc_cv_math_func_acos" >&6; }
16783 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 16784
f38a14ca
TG
16785cat >>confdefs.h <<_ACEOF
16786#define HAVE_ACOS 1
16787_ACEOF
db9f46a9
TG
16788
16789 fi
16790
453310d8 16791
453310d8 16792
453310d8 16793
db9f46a9
TG
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16795$as_echo_n "checking for acosl... " >&6; }
16796if test "${gcc_cv_math_func_acosl+set}" = set; then :
5213506e 16797 $as_echo_n "(cached) " >&6
f02d008e 16798else
db9f46a9 16799 if test x$gcc_no_link = xyes; then
5213506e 16800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16801fi
5213506e 16802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16803/* end confdefs.h. */
16804
db9f46a9
TG
16805#ifdef HAVE_COMPLEX_H
16806#include <complex.h>
16807#endif
16808#ifdef HAVE_MATH_H
16809#include <math.h>
f02d008e 16810#endif
db9f46a9
TG
16811
16812int (*ptr)() = (int (*)())acosl;
16813
f02d008e
JD
16814int
16815main ()
16816{
f02d008e
JD
16817 return 0;
16818}
db9f46a9 16819
f02d008e 16820_ACEOF
5213506e 16821if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16822 gcc_cv_math_func_acosl=yes
f02d008e 16823else
db9f46a9 16824 gcc_cv_math_func_acosl=no
f02d008e 16825fi
5213506e
RW
16826rm -f core conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
f02d008e 16828fi
db9f46a9
TG
16829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16830$as_echo "$gcc_cv_math_func_acosl" >&6; }
16831 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 16832
f38a14ca
TG
16833cat >>confdefs.h <<_ACEOF
16834#define HAVE_ACOSL 1
16835_ACEOF
db9f46a9
TG
16836
16837 fi
f02d008e 16838
f02d008e 16839
f02d008e 16840
db9f46a9
TG
16841
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16843$as_echo_n "checking for acoshf... " >&6; }
16844if test "${gcc_cv_math_func_acoshf+set}" = set; then :
5213506e 16845 $as_echo_n "(cached) " >&6
453310d8 16846else
db9f46a9 16847 if test x$gcc_no_link = xyes; then
5213506e 16848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16849fi
5213506e 16850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16851/* end confdefs.h. */
16852
db9f46a9
TG
16853#ifdef HAVE_COMPLEX_H
16854#include <complex.h>
453310d8 16855#endif
db9f46a9
TG
16856#ifdef HAVE_MATH_H
16857#include <math.h>
16858#endif
16859
16860int (*ptr)() = (int (*)())acoshf;
16861
453310d8
RS
16862int
16863main ()
16864{
453310d8
RS
16865 return 0;
16866}
db9f46a9 16867
453310d8 16868_ACEOF
5213506e 16869if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16870 gcc_cv_math_func_acoshf=yes
453310d8 16871else
db9f46a9 16872 gcc_cv_math_func_acoshf=no
453310d8 16873fi
5213506e
RW
16874rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
453310d8 16876fi
db9f46a9
TG
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16878$as_echo "$gcc_cv_math_func_acoshf" >&6; }
16879 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 16880
f38a14ca
TG
16881cat >>confdefs.h <<_ACEOF
16882#define HAVE_ACOSHF 1
16883_ACEOF
453310d8 16884
db9f46a9 16885 fi
453310d8 16886
453310d8 16887
db9f46a9
TG
16888
16889
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16891$as_echo_n "checking for acosh... " >&6; }
16892if test "${gcc_cv_math_func_acosh+set}" = set; then :
5213506e 16893 $as_echo_n "(cached) " >&6
453310d8 16894else
db9f46a9 16895 if test x$gcc_no_link = xyes; then
5213506e 16896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16897fi
5213506e 16898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16899/* end confdefs.h. */
16900
db9f46a9
TG
16901#ifdef HAVE_COMPLEX_H
16902#include <complex.h>
16903#endif
16904#ifdef HAVE_MATH_H
16905#include <math.h>
453310d8 16906#endif
db9f46a9
TG
16907
16908int (*ptr)() = (int (*)())acosh;
16909
453310d8
RS
16910int
16911main ()
16912{
5213506e
RW
16913 return 0;
16914}
db9f46a9 16915
5213506e
RW
16916_ACEOF
16917if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16918 gcc_cv_math_func_acosh=yes
453310d8 16919else
db9f46a9 16920 gcc_cv_math_func_acosh=no
453310d8 16921fi
5213506e
RW
16922rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
453310d8 16924fi
db9f46a9
TG
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16926$as_echo "$gcc_cv_math_func_acosh" >&6; }
16927 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 16928
f38a14ca
TG
16929cat >>confdefs.h <<_ACEOF
16930#define HAVE_ACOSH 1
16931_ACEOF
db9f46a9
TG
16932
16933 fi
453310d8 16934
453310d8 16935
453310d8 16936
db9f46a9
TG
16937
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16939$as_echo_n "checking for acoshl... " >&6; }
16940if test "${gcc_cv_math_func_acoshl+set}" = set; then :
5213506e 16941 $as_echo_n "(cached) " >&6
f02d008e 16942else
db9f46a9 16943 if test x$gcc_no_link = xyes; then
5213506e 16944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16945fi
5213506e 16946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16947/* end confdefs.h. */
16948
db9f46a9
TG
16949#ifdef HAVE_COMPLEX_H
16950#include <complex.h>
f02d008e 16951#endif
db9f46a9
TG
16952#ifdef HAVE_MATH_H
16953#include <math.h>
16954#endif
16955
16956int (*ptr)() = (int (*)())acoshl;
16957
f02d008e
JD
16958int
16959main ()
16960{
f02d008e
JD
16961 return 0;
16962}
db9f46a9 16963
f02d008e 16964_ACEOF
5213506e 16965if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16966 gcc_cv_math_func_acoshl=yes
f02d008e 16967else
db9f46a9 16968 gcc_cv_math_func_acoshl=no
f02d008e 16969fi
5213506e
RW
16970rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
f02d008e 16972fi
db9f46a9
TG
16973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16974$as_echo "$gcc_cv_math_func_acoshl" >&6; }
16975 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 16976
f38a14ca
TG
16977cat >>confdefs.h <<_ACEOF
16978#define HAVE_ACOSHL 1
16979_ACEOF
db9f46a9
TG
16980
16981 fi
16982
f02d008e 16983
f02d008e 16984
f02d008e 16985
db9f46a9
TG
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16987$as_echo_n "checking for asinf... " >&6; }
16988if test "${gcc_cv_math_func_asinf+set}" = set; then :
5213506e 16989 $as_echo_n "(cached) " >&6
453310d8 16990else
db9f46a9 16991 if test x$gcc_no_link = xyes; then
5213506e 16992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16993fi
5213506e 16994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16995/* end confdefs.h. */
16996
db9f46a9
TG
16997#ifdef HAVE_COMPLEX_H
16998#include <complex.h>
16999#endif
17000#ifdef HAVE_MATH_H
17001#include <math.h>
453310d8 17002#endif
db9f46a9
TG
17003
17004int (*ptr)() = (int (*)())asinf;
17005
453310d8
RS
17006int
17007main ()
17008{
453310d8
RS
17009 return 0;
17010}
db9f46a9 17011
453310d8 17012_ACEOF
5213506e 17013if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17014 gcc_cv_math_func_asinf=yes
453310d8 17015else
db9f46a9 17016 gcc_cv_math_func_asinf=no
453310d8 17017fi
5213506e
RW
17018rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
453310d8 17020fi
db9f46a9
TG
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17022$as_echo "$gcc_cv_math_func_asinf" >&6; }
17023 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17024
f38a14ca
TG
17025cat >>confdefs.h <<_ACEOF
17026#define HAVE_ASINF 1
17027_ACEOF
db9f46a9
TG
17028
17029 fi
453310d8 17030
453310d8 17031
453310d8 17032
db9f46a9
TG
17033
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17035$as_echo_n "checking for asin... " >&6; }
17036if test "${gcc_cv_math_func_asin+set}" = set; then :
5213506e 17037 $as_echo_n "(cached) " >&6
453310d8 17038else
db9f46a9 17039 if test x$gcc_no_link = xyes; then
5213506e 17040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17041fi
5213506e 17042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17043/* end confdefs.h. */
17044
db9f46a9
TG
17045#ifdef HAVE_COMPLEX_H
17046#include <complex.h>
453310d8 17047#endif
db9f46a9
TG
17048#ifdef HAVE_MATH_H
17049#include <math.h>
17050#endif
17051
17052int (*ptr)() = (int (*)())asin;
17053
453310d8
RS
17054int
17055main ()
17056{
453310d8
RS
17057 return 0;
17058}
db9f46a9 17059
453310d8 17060_ACEOF
5213506e 17061if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17062 gcc_cv_math_func_asin=yes
453310d8 17063else
db9f46a9 17064 gcc_cv_math_func_asin=no
453310d8 17065fi
5213506e
RW
17066rm -f core conftest.err conftest.$ac_objext \
17067 conftest$ac_exeext conftest.$ac_ext
453310d8 17068fi
db9f46a9
TG
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17070$as_echo "$gcc_cv_math_func_asin" >&6; }
17071 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17072
f38a14ca
TG
17073cat >>confdefs.h <<_ACEOF
17074#define HAVE_ASIN 1
17075_ACEOF
453310d8 17076
db9f46a9 17077 fi
453310d8 17078
453310d8 17079
db9f46a9
TG
17080
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17083$as_echo_n "checking for asinl... " >&6; }
17084if test "${gcc_cv_math_func_asinl+set}" = set; then :
5213506e 17085 $as_echo_n "(cached) " >&6
453310d8 17086else
db9f46a9 17087 if test x$gcc_no_link = xyes; then
5213506e 17088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17089fi
5213506e 17090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17091/* end confdefs.h. */
17092
db9f46a9
TG
17093#ifdef HAVE_COMPLEX_H
17094#include <complex.h>
17095#endif
17096#ifdef HAVE_MATH_H
17097#include <math.h>
453310d8 17098#endif
db9f46a9
TG
17099
17100int (*ptr)() = (int (*)())asinl;
17101
453310d8
RS
17102int
17103main ()
17104{
453310d8
RS
17105 return 0;
17106}
db9f46a9 17107
453310d8 17108_ACEOF
5213506e 17109if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17110 gcc_cv_math_func_asinl=yes
453310d8 17111else
db9f46a9 17112 gcc_cv_math_func_asinl=no
453310d8 17113fi
5213506e
RW
17114rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
453310d8 17116fi
db9f46a9
TG
17117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17118$as_echo "$gcc_cv_math_func_asinl" >&6; }
17119 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17120
f38a14ca
TG
17121cat >>confdefs.h <<_ACEOF
17122#define HAVE_ASINL 1
17123_ACEOF
db9f46a9
TG
17124
17125 fi
453310d8 17126
453310d8 17127
453310d8 17128
db9f46a9
TG
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17131$as_echo_n "checking for asinhf... " >&6; }
17132if test "${gcc_cv_math_func_asinhf+set}" = set; then :
5213506e 17133 $as_echo_n "(cached) " >&6
453310d8 17134else
db9f46a9 17135 if test x$gcc_no_link = xyes; then
5213506e 17136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17137fi
5213506e 17138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17139/* end confdefs.h. */
17140
db9f46a9
TG
17141#ifdef HAVE_COMPLEX_H
17142#include <complex.h>
453310d8 17143#endif
db9f46a9
TG
17144#ifdef HAVE_MATH_H
17145#include <math.h>
17146#endif
17147
17148int (*ptr)() = (int (*)())asinhf;
17149
453310d8
RS
17150int
17151main ()
17152{
453310d8
RS
17153 return 0;
17154}
db9f46a9 17155
453310d8 17156_ACEOF
5213506e 17157if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17158 gcc_cv_math_func_asinhf=yes
453310d8 17159else
db9f46a9 17160 gcc_cv_math_func_asinhf=no
453310d8 17161fi
5213506e
RW
17162rm -f core conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
453310d8 17164fi
db9f46a9
TG
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17166$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17167 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17168
f38a14ca
TG
17169cat >>confdefs.h <<_ACEOF
17170#define HAVE_ASINHF 1
17171_ACEOF
db9f46a9
TG
17172
17173 fi
17174
453310d8 17175
453310d8 17176
453310d8 17177
db9f46a9
TG
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17179$as_echo_n "checking for asinh... " >&6; }
17180if test "${gcc_cv_math_func_asinh+set}" = set; then :
5213506e 17181 $as_echo_n "(cached) " >&6
453310d8 17182else
db9f46a9 17183 if test x$gcc_no_link = xyes; then
5213506e 17184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17185fi
5213506e 17186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17187/* end confdefs.h. */
17188
db9f46a9
TG
17189#ifdef HAVE_COMPLEX_H
17190#include <complex.h>
17191#endif
17192#ifdef HAVE_MATH_H
17193#include <math.h>
453310d8 17194#endif
db9f46a9
TG
17195
17196int (*ptr)() = (int (*)())asinh;
17197
453310d8
RS
17198int
17199main ()
17200{
453310d8
RS
17201 return 0;
17202}
db9f46a9 17203
453310d8 17204_ACEOF
5213506e 17205if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17206 gcc_cv_math_func_asinh=yes
453310d8 17207else
db9f46a9 17208 gcc_cv_math_func_asinh=no
453310d8 17209fi
5213506e
RW
17210rm -f core conftest.err conftest.$ac_objext \
17211 conftest$ac_exeext conftest.$ac_ext
453310d8 17212fi
db9f46a9
TG
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17214$as_echo "$gcc_cv_math_func_asinh" >&6; }
17215 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17216
f38a14ca
TG
17217cat >>confdefs.h <<_ACEOF
17218#define HAVE_ASINH 1
17219_ACEOF
db9f46a9
TG
17220
17221 fi
453310d8 17222
453310d8 17223
453310d8 17224
db9f46a9
TG
17225
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17227$as_echo_n "checking for asinhl... " >&6; }
17228if test "${gcc_cv_math_func_asinhl+set}" = set; then :
5213506e 17229 $as_echo_n "(cached) " >&6
6e4d9244 17230else
db9f46a9 17231 if test x$gcc_no_link = xyes; then
5213506e 17232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17233fi
5213506e 17234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17235/* end confdefs.h. */
17236
db9f46a9
TG
17237#ifdef HAVE_COMPLEX_H
17238#include <complex.h>
6e4d9244 17239#endif
db9f46a9
TG
17240#ifdef HAVE_MATH_H
17241#include <math.h>
17242#endif
17243
17244int (*ptr)() = (int (*)())asinhl;
17245
6e4d9244
EB
17246int
17247main ()
17248{
6e4d9244
EB
17249 return 0;
17250}
db9f46a9 17251
6e4d9244 17252_ACEOF
5213506e 17253if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17254 gcc_cv_math_func_asinhl=yes
6e4d9244 17255else
db9f46a9 17256 gcc_cv_math_func_asinhl=no
6e4d9244 17257fi
5213506e
RW
17258rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17260fi
db9f46a9
TG
17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17262$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17263 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17264
f38a14ca
TG
17265cat >>confdefs.h <<_ACEOF
17266#define HAVE_ASINHL 1
17267_ACEOF
6e4d9244 17268
db9f46a9 17269 fi
6e4d9244 17270
6e4d9244 17271
db9f46a9
TG
17272
17273
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17275$as_echo_n "checking for atan2f... " >&6; }
17276if test "${gcc_cv_math_func_atan2f+set}" = set; then :
5213506e 17277 $as_echo_n "(cached) " >&6
453310d8 17278else
db9f46a9 17279 if test x$gcc_no_link = xyes; then
5213506e 17280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17281fi
5213506e 17282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17283/* end confdefs.h. */
17284
db9f46a9
TG
17285#ifdef HAVE_COMPLEX_H
17286#include <complex.h>
453310d8 17287#endif
db9f46a9
TG
17288#ifdef HAVE_MATH_H
17289#include <math.h>
17290#endif
17291
17292int (*ptr)() = (int (*)())atan2f;
17293
17294int
453310d8
RS
17295main ()
17296{
453310d8
RS
17297 return 0;
17298}
db9f46a9 17299
453310d8 17300_ACEOF
5213506e 17301if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17302 gcc_cv_math_func_atan2f=yes
453310d8 17303else
db9f46a9 17304 gcc_cv_math_func_atan2f=no
453310d8 17305fi
5213506e
RW
17306rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
453310d8 17308fi
db9f46a9
TG
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17310$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17311 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17312
f38a14ca
TG
17313cat >>confdefs.h <<_ACEOF
17314#define HAVE_ATAN2F 1
17315_ACEOF
db9f46a9
TG
17316
17317 fi
453310d8 17318
453310d8 17319
453310d8 17320
db9f46a9
TG
17321
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17323$as_echo_n "checking for atan2... " >&6; }
17324if test "${gcc_cv_math_func_atan2+set}" = set; then :
5213506e 17325 $as_echo_n "(cached) " >&6
453310d8 17326else
db9f46a9 17327 if test x$gcc_no_link = xyes; then
5213506e 17328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17329fi
5213506e 17330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17331/* end confdefs.h. */
17332
db9f46a9
TG
17333#ifdef HAVE_COMPLEX_H
17334#include <complex.h>
453310d8 17335#endif
db9f46a9
TG
17336#ifdef HAVE_MATH_H
17337#include <math.h>
17338#endif
17339
17340int (*ptr)() = (int (*)())atan2;
17341
453310d8
RS
17342int
17343main ()
17344{
453310d8
RS
17345 return 0;
17346}
db9f46a9 17347
453310d8 17348_ACEOF
5213506e 17349if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17350 gcc_cv_math_func_atan2=yes
453310d8 17351else
db9f46a9 17352 gcc_cv_math_func_atan2=no
453310d8 17353fi
5213506e
RW
17354rm -f core conftest.err conftest.$ac_objext \
17355 conftest$ac_exeext conftest.$ac_ext
453310d8 17356fi
db9f46a9
TG
17357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17358$as_echo "$gcc_cv_math_func_atan2" >&6; }
17359 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17360
f38a14ca
TG
17361cat >>confdefs.h <<_ACEOF
17362#define HAVE_ATAN2 1
17363_ACEOF
453310d8 17364
db9f46a9 17365 fi
453310d8 17366
453310d8 17367
db9f46a9
TG
17368
17369
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17371$as_echo_n "checking for atan2l... " >&6; }
17372if test "${gcc_cv_math_func_atan2l+set}" = set; then :
5213506e 17373 $as_echo_n "(cached) " >&6
453310d8 17374else
db9f46a9 17375 if test x$gcc_no_link = xyes; then
5213506e 17376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17377fi
5213506e 17378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17379/* end confdefs.h. */
17380
db9f46a9
TG
17381#ifdef HAVE_COMPLEX_H
17382#include <complex.h>
17383#endif
17384#ifdef HAVE_MATH_H
17385#include <math.h>
453310d8 17386#endif
db9f46a9
TG
17387
17388int (*ptr)() = (int (*)())atan2l;
17389
453310d8
RS
17390int
17391main ()
17392{
453310d8
RS
17393 return 0;
17394}
db9f46a9 17395
453310d8 17396_ACEOF
5213506e 17397if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17398 gcc_cv_math_func_atan2l=yes
453310d8 17399else
db9f46a9 17400 gcc_cv_math_func_atan2l=no
453310d8 17401fi
5213506e
RW
17402rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
453310d8 17404fi
db9f46a9
TG
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17406$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17407 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17408
f38a14ca
TG
17409cat >>confdefs.h <<_ACEOF
17410#define HAVE_ATAN2L 1
17411_ACEOF
db9f46a9
TG
17412
17413 fi
453310d8 17414
453310d8 17415
453310d8 17416
db9f46a9
TG
17417
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17419$as_echo_n "checking for atanf... " >&6; }
17420if test "${gcc_cv_math_func_atanf+set}" = set; then :
5213506e 17421 $as_echo_n "(cached) " >&6
453310d8 17422else
db9f46a9 17423 if test x$gcc_no_link = xyes; then
5213506e 17424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17425fi
5213506e 17426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17427/* end confdefs.h. */
17428
db9f46a9
TG
17429#ifdef HAVE_COMPLEX_H
17430#include <complex.h>
453310d8 17431#endif
db9f46a9
TG
17432#ifdef HAVE_MATH_H
17433#include <math.h>
17434#endif
17435
17436int (*ptr)() = (int (*)())atanf;
17437
453310d8
RS
17438int
17439main ()
17440{
453310d8
RS
17441 return 0;
17442}
db9f46a9 17443
453310d8 17444_ACEOF
5213506e 17445if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17446 gcc_cv_math_func_atanf=yes
453310d8 17447else
db9f46a9 17448 gcc_cv_math_func_atanf=no
453310d8 17449fi
5213506e
RW
17450rm -f core conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
453310d8 17452fi
db9f46a9
TG
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17454$as_echo "$gcc_cv_math_func_atanf" >&6; }
17455 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 17456
f38a14ca
TG
17457cat >>confdefs.h <<_ACEOF
17458#define HAVE_ATANF 1
17459_ACEOF
db9f46a9
TG
17460
17461 fi
17462
453310d8 17463
453310d8 17464
453310d8 17465
db9f46a9
TG
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17467$as_echo_n "checking for atan... " >&6; }
17468if test "${gcc_cv_math_func_atan+set}" = set; then :
5213506e 17469 $as_echo_n "(cached) " >&6
453310d8 17470else
db9f46a9 17471 if test x$gcc_no_link = xyes; then
5213506e 17472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17473fi
5213506e 17474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17475/* end confdefs.h. */
17476
db9f46a9
TG
17477#ifdef HAVE_COMPLEX_H
17478#include <complex.h>
17479#endif
17480#ifdef HAVE_MATH_H
17481#include <math.h>
453310d8 17482#endif
db9f46a9
TG
17483
17484int (*ptr)() = (int (*)())atan;
17485
453310d8
RS
17486int
17487main ()
17488{
453310d8
RS
17489 return 0;
17490}
db9f46a9 17491
453310d8 17492_ACEOF
5213506e 17493if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17494 gcc_cv_math_func_atan=yes
453310d8 17495else
db9f46a9 17496 gcc_cv_math_func_atan=no
453310d8 17497fi
5213506e
RW
17498rm -f core conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
453310d8 17500fi
db9f46a9
TG
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17502$as_echo "$gcc_cv_math_func_atan" >&6; }
17503 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 17504
f38a14ca
TG
17505cat >>confdefs.h <<_ACEOF
17506#define HAVE_ATAN 1
17507_ACEOF
db9f46a9
TG
17508
17509 fi
453310d8 17510
453310d8 17511
453310d8 17512
db9f46a9
TG
17513
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17515$as_echo_n "checking for atanl... " >&6; }
17516if test "${gcc_cv_math_func_atanl+set}" = set; then :
5213506e 17517 $as_echo_n "(cached) " >&6
32aa3bff 17518else
db9f46a9 17519 if test x$gcc_no_link = xyes; then
5213506e 17520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17521fi
5213506e 17522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17523/* end confdefs.h. */
17524
db9f46a9
TG
17525#ifdef HAVE_COMPLEX_H
17526#include <complex.h>
32aa3bff 17527#endif
db9f46a9
TG
17528#ifdef HAVE_MATH_H
17529#include <math.h>
17530#endif
17531
17532int (*ptr)() = (int (*)())atanl;
17533
32aa3bff
FXC
17534int
17535main ()
17536{
32aa3bff
FXC
17537 return 0;
17538}
db9f46a9 17539
32aa3bff 17540_ACEOF
5213506e 17541if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17542 gcc_cv_math_func_atanl=yes
32aa3bff 17543else
db9f46a9 17544 gcc_cv_math_func_atanl=no
32aa3bff 17545fi
5213506e
RW
17546rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
32aa3bff 17548fi
db9f46a9
TG
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17550$as_echo "$gcc_cv_math_func_atanl" >&6; }
17551 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 17552
f38a14ca
TG
17553cat >>confdefs.h <<_ACEOF
17554#define HAVE_ATANL 1
17555_ACEOF
32aa3bff 17556
db9f46a9 17557 fi
32aa3bff 17558
32aa3bff 17559
db9f46a9
TG
17560
17561
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17563$as_echo_n "checking for atanhf... " >&6; }
17564if test "${gcc_cv_math_func_atanhf+set}" = set; then :
5213506e 17565 $as_echo_n "(cached) " >&6
453310d8 17566else
db9f46a9 17567 if test x$gcc_no_link = xyes; then
5213506e 17568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17569fi
5213506e 17570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17571/* end confdefs.h. */
17572
db9f46a9
TG
17573#ifdef HAVE_COMPLEX_H
17574#include <complex.h>
17575#endif
17576#ifdef HAVE_MATH_H
17577#include <math.h>
453310d8 17578#endif
db9f46a9
TG
17579
17580int (*ptr)() = (int (*)())atanhf;
17581
453310d8
RS
17582int
17583main ()
17584{
453310d8
RS
17585 return 0;
17586}
db9f46a9 17587
453310d8 17588_ACEOF
5213506e 17589if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17590 gcc_cv_math_func_atanhf=yes
453310d8 17591else
db9f46a9 17592 gcc_cv_math_func_atanhf=no
453310d8 17593fi
5213506e
RW
17594rm -f core conftest.err conftest.$ac_objext \
17595 conftest$ac_exeext conftest.$ac_ext
453310d8 17596fi
db9f46a9
TG
17597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17598$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17599 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 17600
f38a14ca
TG
17601cat >>confdefs.h <<_ACEOF
17602#define HAVE_ATANHF 1
17603_ACEOF
db9f46a9
TG
17604
17605 fi
453310d8 17606
453310d8 17607
453310d8 17608
db9f46a9
TG
17609
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17611$as_echo_n "checking for atanh... " >&6; }
17612if test "${gcc_cv_math_func_atanh+set}" = set; then :
5213506e 17613 $as_echo_n "(cached) " >&6
453310d8 17614else
db9f46a9 17615 if test x$gcc_no_link = xyes; then
5213506e 17616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17617fi
5213506e 17618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17619/* end confdefs.h. */
17620
db9f46a9
TG
17621#ifdef HAVE_COMPLEX_H
17622#include <complex.h>
453310d8 17623#endif
db9f46a9
TG
17624#ifdef HAVE_MATH_H
17625#include <math.h>
17626#endif
17627
17628int (*ptr)() = (int (*)())atanh;
17629
453310d8
RS
17630int
17631main ()
17632{
453310d8
RS
17633 return 0;
17634}
db9f46a9 17635
453310d8 17636_ACEOF
5213506e 17637if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17638 gcc_cv_math_func_atanh=yes
453310d8 17639else
db9f46a9 17640 gcc_cv_math_func_atanh=no
453310d8 17641fi
5213506e
RW
17642rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
453310d8 17644fi
db9f46a9
TG
17645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17646$as_echo "$gcc_cv_math_func_atanh" >&6; }
17647 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 17648
f38a14ca
TG
17649cat >>confdefs.h <<_ACEOF
17650#define HAVE_ATANH 1
17651_ACEOF
db9f46a9
TG
17652
17653 fi
17654
453310d8 17655
453310d8 17656
453310d8 17657
db9f46a9
TG
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17659$as_echo_n "checking for atanhl... " >&6; }
17660if test "${gcc_cv_math_func_atanhl+set}" = set; then :
5213506e 17661 $as_echo_n "(cached) " >&6
bf4d99cf 17662else
db9f46a9 17663 if test x$gcc_no_link = xyes; then
5213506e 17664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17665fi
5213506e 17666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17667/* end confdefs.h. */
17668
db9f46a9
TG
17669#ifdef HAVE_COMPLEX_H
17670#include <complex.h>
17671#endif
17672#ifdef HAVE_MATH_H
17673#include <math.h>
bf4d99cf 17674#endif
db9f46a9
TG
17675
17676int (*ptr)() = (int (*)())atanhl;
17677
bf4d99cf
TS
17678int
17679main ()
17680{
bf4d99cf
TS
17681 return 0;
17682}
db9f46a9 17683
bf4d99cf 17684_ACEOF
5213506e 17685if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17686 gcc_cv_math_func_atanhl=yes
bf4d99cf 17687else
db9f46a9 17688 gcc_cv_math_func_atanhl=no
bf4d99cf 17689fi
5213506e
RW
17690rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 17692fi
db9f46a9
TG
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17694$as_echo "$gcc_cv_math_func_atanhl" >&6; }
17695 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 17696
f38a14ca
TG
17697cat >>confdefs.h <<_ACEOF
17698#define HAVE_ATANHL 1
17699_ACEOF
db9f46a9
TG
17700
17701 fi
bf4d99cf 17702
bf4d99cf 17703
bf4d99cf 17704
db9f46a9
TG
17705
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17707$as_echo_n "checking for cargf... " >&6; }
17708if test "${gcc_cv_math_func_cargf+set}" = set; then :
5213506e 17709 $as_echo_n "(cached) " >&6
a2a2059f 17710else
db9f46a9 17711 if test x$gcc_no_link = xyes; then
5213506e 17712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17713fi
5213506e 17714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17715/* end confdefs.h. */
17716
db9f46a9
TG
17717#ifdef HAVE_COMPLEX_H
17718#include <complex.h>
a2a2059f 17719#endif
db9f46a9
TG
17720#ifdef HAVE_MATH_H
17721#include <math.h>
17722#endif
17723
17724int (*ptr)() = (int (*)())cargf;
17725
453310d8
RS
17726int
17727main ()
17728{
453310d8
RS
17729 return 0;
17730}
db9f46a9 17731
453310d8 17732_ACEOF
5213506e 17733if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17734 gcc_cv_math_func_cargf=yes
453310d8 17735else
db9f46a9 17736 gcc_cv_math_func_cargf=no
453310d8 17737fi
5213506e
RW
17738rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
453310d8 17740fi
db9f46a9
TG
17741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17742$as_echo "$gcc_cv_math_func_cargf" >&6; }
17743 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 17744
f38a14ca
TG
17745cat >>confdefs.h <<_ACEOF
17746#define HAVE_CARGF 1
17747_ACEOF
453310d8 17748
db9f46a9 17749 fi
453310d8 17750
453310d8 17751
db9f46a9
TG
17752
17753
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17755$as_echo_n "checking for carg... " >&6; }
17756if test "${gcc_cv_math_func_carg+set}" = set; then :
5213506e 17757 $as_echo_n "(cached) " >&6
453310d8 17758else
db9f46a9 17759 if test x$gcc_no_link = xyes; then
5213506e 17760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17761fi
5213506e 17762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17763/* end confdefs.h. */
17764
db9f46a9
TG
17765#ifdef HAVE_COMPLEX_H
17766#include <complex.h>
17767#endif
17768#ifdef HAVE_MATH_H
17769#include <math.h>
453310d8 17770#endif
db9f46a9
TG
17771
17772int (*ptr)() = (int (*)())carg;
17773
a2a2059f
BD
17774int
17775main ()
17776{
a2a2059f
BD
17777 return 0;
17778}
db9f46a9 17779
a2a2059f 17780_ACEOF
5213506e 17781if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17782 gcc_cv_math_func_carg=yes
a2a2059f 17783else
db9f46a9 17784 gcc_cv_math_func_carg=no
a2a2059f 17785fi
5213506e
RW
17786rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17788fi
db9f46a9
TG
17789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17790$as_echo "$gcc_cv_math_func_carg" >&6; }
17791 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 17792
f38a14ca
TG
17793cat >>confdefs.h <<_ACEOF
17794#define HAVE_CARG 1
17795_ACEOF
db9f46a9
TG
17796
17797 fi
a2a2059f 17798
a2a2059f 17799
a2a2059f 17800
db9f46a9
TG
17801
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17803$as_echo_n "checking for cargl... " >&6; }
17804if test "${gcc_cv_math_func_cargl+set}" = set; then :
5213506e 17805 $as_echo_n "(cached) " >&6
a2a2059f 17806else
db9f46a9 17807 if test x$gcc_no_link = xyes; then
5213506e 17808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17809fi
5213506e 17810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17811/* end confdefs.h. */
17812
db9f46a9
TG
17813#ifdef HAVE_COMPLEX_H
17814#include <complex.h>
a2a2059f 17815#endif
db9f46a9
TG
17816#ifdef HAVE_MATH_H
17817#include <math.h>
17818#endif
17819
17820int (*ptr)() = (int (*)())cargl;
17821
a2a2059f
BD
17822int
17823main ()
17824{
a2a2059f
BD
17825 return 0;
17826}
db9f46a9 17827
a2a2059f 17828_ACEOF
5213506e 17829if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17830 gcc_cv_math_func_cargl=yes
a2a2059f 17831else
db9f46a9 17832 gcc_cv_math_func_cargl=no
a2a2059f 17833fi
5213506e
RW
17834rm -f core conftest.err conftest.$ac_objext \
17835 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17836fi
db9f46a9
TG
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17838$as_echo "$gcc_cv_math_func_cargl" >&6; }
17839 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 17840
f38a14ca
TG
17841cat >>confdefs.h <<_ACEOF
17842#define HAVE_CARGL 1
17843_ACEOF
db9f46a9
TG
17844
17845 fi
17846
a2a2059f 17847
a2a2059f 17848
a2a2059f 17849
db9f46a9
TG
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17851$as_echo_n "checking for ceilf... " >&6; }
17852if test "${gcc_cv_math_func_ceilf+set}" = set; then :
5213506e 17853 $as_echo_n "(cached) " >&6
ae973d6a 17854else
db9f46a9 17855 if test x$gcc_no_link = xyes; then
5213506e 17856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17857fi
5213506e 17858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
17859/* end confdefs.h. */
17860
db9f46a9
TG
17861#ifdef HAVE_COMPLEX_H
17862#include <complex.h>
17863#endif
17864#ifdef HAVE_MATH_H
17865#include <math.h>
ae973d6a 17866#endif
db9f46a9
TG
17867
17868int (*ptr)() = (int (*)())ceilf;
17869
ae973d6a
FXC
17870int
17871main ()
17872{
ae973d6a
FXC
17873 return 0;
17874}
db9f46a9 17875
ae973d6a 17876_ACEOF
5213506e 17877if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17878 gcc_cv_math_func_ceilf=yes
ae973d6a 17879else
db9f46a9 17880 gcc_cv_math_func_ceilf=no
ae973d6a 17881fi
5213506e
RW
17882rm -f core conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
ae973d6a 17884fi
db9f46a9
TG
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17886$as_echo "$gcc_cv_math_func_ceilf" >&6; }
17887 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 17888
f38a14ca
TG
17889cat >>confdefs.h <<_ACEOF
17890#define HAVE_CEILF 1
17891_ACEOF
db9f46a9
TG
17892
17893 fi
ae973d6a 17894
ae973d6a 17895
ae973d6a 17896
db9f46a9
TG
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17899$as_echo_n "checking for ceil... " >&6; }
17900if test "${gcc_cv_math_func_ceil+set}" = set; then :
5213506e 17901 $as_echo_n "(cached) " >&6
a9e7b9d3 17902else
db9f46a9 17903 if test x$gcc_no_link = xyes; then
5213506e 17904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17905fi
5213506e 17906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17907/* end confdefs.h. */
17908
db9f46a9
TG
17909#ifdef HAVE_COMPLEX_H
17910#include <complex.h>
a9e7b9d3 17911#endif
db9f46a9
TG
17912#ifdef HAVE_MATH_H
17913#include <math.h>
17914#endif
17915
17916int (*ptr)() = (int (*)())ceil;
17917
a9e7b9d3
PB
17918int
17919main ()
17920{
a9e7b9d3
PB
17921 return 0;
17922}
db9f46a9 17923
a9e7b9d3 17924_ACEOF
5213506e 17925if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17926 gcc_cv_math_func_ceil=yes
a9e7b9d3 17927else
db9f46a9 17928 gcc_cv_math_func_ceil=no
a9e7b9d3 17929fi
5213506e
RW
17930rm -f core conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 17932fi
db9f46a9
TG
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17934$as_echo "$gcc_cv_math_func_ceil" >&6; }
17935 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 17936
f38a14ca
TG
17937cat >>confdefs.h <<_ACEOF
17938#define HAVE_CEIL 1
17939_ACEOF
a9e7b9d3 17940
db9f46a9 17941 fi
a9e7b9d3 17942
a9e7b9d3 17943
db9f46a9
TG
17944
17945
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17947$as_echo_n "checking for ceill... " >&6; }
17948if test "${gcc_cv_math_func_ceill+set}" = set; then :
5213506e 17949 $as_echo_n "(cached) " >&6
a9e7b9d3 17950else
db9f46a9 17951 if test x$gcc_no_link = xyes; then
5213506e 17952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17953fi
5213506e 17954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17955/* end confdefs.h. */
17956
db9f46a9
TG
17957#ifdef HAVE_COMPLEX_H
17958#include <complex.h>
17959#endif
17960#ifdef HAVE_MATH_H
17961#include <math.h>
a9e7b9d3 17962#endif
db9f46a9
TG
17963
17964int (*ptr)() = (int (*)())ceill;
17965
a9e7b9d3
PB
17966int
17967main ()
17968{
a9e7b9d3
PB
17969 return 0;
17970}
db9f46a9 17971
a9e7b9d3 17972_ACEOF
5213506e 17973if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17974 gcc_cv_math_func_ceill=yes
a9e7b9d3 17975else
db9f46a9 17976 gcc_cv_math_func_ceill=no
a9e7b9d3 17977fi
5213506e
RW
17978rm -f core conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 17980fi
db9f46a9
TG
17981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17982$as_echo "$gcc_cv_math_func_ceill" >&6; }
17983 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 17984
f38a14ca
TG
17985cat >>confdefs.h <<_ACEOF
17986#define HAVE_CEILL 1
17987_ACEOF
db9f46a9
TG
17988
17989 fi
a9e7b9d3 17990
453310d8 17991
453310d8 17992
db9f46a9
TG
17993
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17995$as_echo_n "checking for copysignf... " >&6; }
17996if test "${gcc_cv_math_func_copysignf+set}" = set; then :
5213506e 17997 $as_echo_n "(cached) " >&6
453310d8 17998else
db9f46a9 17999 if test x$gcc_no_link = xyes; then
5213506e 18000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18001fi
5213506e 18002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18003/* end confdefs.h. */
18004
db9f46a9
TG
18005#ifdef HAVE_COMPLEX_H
18006#include <complex.h>
453310d8 18007#endif
db9f46a9
TG
18008#ifdef HAVE_MATH_H
18009#include <math.h>
18010#endif
18011
18012int (*ptr)() = (int (*)())copysignf;
18013
453310d8
RS
18014int
18015main ()
18016{
453310d8
RS
18017 return 0;
18018}
db9f46a9 18019
453310d8 18020_ACEOF
5213506e 18021if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18022 gcc_cv_math_func_copysignf=yes
453310d8 18023else
db9f46a9 18024 gcc_cv_math_func_copysignf=no
453310d8 18025fi
5213506e
RW
18026rm -f core conftest.err conftest.$ac_objext \
18027 conftest$ac_exeext conftest.$ac_ext
453310d8 18028fi
db9f46a9
TG
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18030$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18031 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18032
f38a14ca
TG
18033cat >>confdefs.h <<_ACEOF
18034#define HAVE_COPYSIGNF 1
18035_ACEOF
db9f46a9
TG
18036
18037 fi
18038
453310d8 18039
453310d8 18040
453310d8 18041
db9f46a9
TG
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18043$as_echo_n "checking for copysign... " >&6; }
18044if test "${gcc_cv_math_func_copysign+set}" = set; then :
5213506e 18045 $as_echo_n "(cached) " >&6
453310d8 18046else
db9f46a9 18047 if test x$gcc_no_link = xyes; then
5213506e 18048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18049fi
5213506e 18050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18051/* end confdefs.h. */
18052
db9f46a9
TG
18053#ifdef HAVE_COMPLEX_H
18054#include <complex.h>
18055#endif
18056#ifdef HAVE_MATH_H
18057#include <math.h>
453310d8 18058#endif
db9f46a9
TG
18059
18060int (*ptr)() = (int (*)())copysign;
18061
453310d8
RS
18062int
18063main ()
18064{
453310d8
RS
18065 return 0;
18066}
db9f46a9 18067
453310d8 18068_ACEOF
5213506e 18069if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18070 gcc_cv_math_func_copysign=yes
453310d8 18071else
db9f46a9 18072 gcc_cv_math_func_copysign=no
453310d8 18073fi
5213506e
RW
18074rm -f core conftest.err conftest.$ac_objext \
18075 conftest$ac_exeext conftest.$ac_ext
453310d8 18076fi
db9f46a9
TG
18077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18078$as_echo "$gcc_cv_math_func_copysign" >&6; }
18079 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18080
f38a14ca
TG
18081cat >>confdefs.h <<_ACEOF
18082#define HAVE_COPYSIGN 1
18083_ACEOF
db9f46a9
TG
18084
18085 fi
453310d8 18086
453310d8 18087
453310d8 18088
db9f46a9
TG
18089
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18091$as_echo_n "checking for copysignl... " >&6; }
18092if test "${gcc_cv_math_func_copysignl+set}" = set; then :
5213506e 18093 $as_echo_n "(cached) " >&6
453310d8 18094else
db9f46a9 18095 if test x$gcc_no_link = xyes; then
5213506e 18096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18097fi
5213506e 18098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18099/* end confdefs.h. */
18100
db9f46a9
TG
18101#ifdef HAVE_COMPLEX_H
18102#include <complex.h>
453310d8 18103#endif
db9f46a9
TG
18104#ifdef HAVE_MATH_H
18105#include <math.h>
18106#endif
18107
18108int (*ptr)() = (int (*)())copysignl;
18109
453310d8
RS
18110int
18111main ()
18112{
5213506e
RW
18113 return 0;
18114}
db9f46a9 18115
5213506e
RW
18116_ACEOF
18117if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18118 gcc_cv_math_func_copysignl=yes
453310d8 18119else
db9f46a9 18120 gcc_cv_math_func_copysignl=no
453310d8 18121fi
5213506e
RW
18122rm -f core conftest.err conftest.$ac_objext \
18123 conftest$ac_exeext conftest.$ac_ext
453310d8 18124fi
db9f46a9
TG
18125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18126$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18127 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18128
f38a14ca
TG
18129cat >>confdefs.h <<_ACEOF
18130#define HAVE_COPYSIGNL 1
18131_ACEOF
453310d8 18132
db9f46a9 18133 fi
a9e7b9d3 18134
a9e7b9d3 18135
db9f46a9
TG
18136
18137
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18139$as_echo_n "checking for cosf... " >&6; }
18140if test "${gcc_cv_math_func_cosf+set}" = set; then :
5213506e 18141 $as_echo_n "(cached) " >&6
69a2d125 18142else
db9f46a9 18143 if test x$gcc_no_link = xyes; then
5213506e 18144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18145fi
5213506e 18146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18147/* end confdefs.h. */
18148
db9f46a9
TG
18149#ifdef HAVE_COMPLEX_H
18150#include <complex.h>
18151#endif
18152#ifdef HAVE_MATH_H
18153#include <math.h>
69a2d125 18154#endif
db9f46a9
TG
18155
18156int (*ptr)() = (int (*)())cosf;
18157
69a2d125
EB
18158int
18159main ()
18160{
69a2d125
EB
18161 return 0;
18162}
db9f46a9 18163
69a2d125 18164_ACEOF
5213506e 18165if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18166 gcc_cv_math_func_cosf=yes
69a2d125 18167else
db9f46a9 18168 gcc_cv_math_func_cosf=no
69a2d125 18169fi
5213506e
RW
18170rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
69a2d125 18172fi
db9f46a9
TG
18173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18174$as_echo "$gcc_cv_math_func_cosf" >&6; }
18175 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18176
f38a14ca
TG
18177cat >>confdefs.h <<_ACEOF
18178#define HAVE_COSF 1
18179_ACEOF
db9f46a9
TG
18180
18181 fi
69a2d125 18182
1409cd0b 18183
1409cd0b 18184
db9f46a9
TG
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18187$as_echo_n "checking for cos... " >&6; }
18188if test "${gcc_cv_math_func_cos+set}" = set; then :
5213506e 18189 $as_echo_n "(cached) " >&6
1409cd0b 18190else
db9f46a9 18191 if test x$gcc_no_link = xyes; then
5213506e 18192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18193fi
5213506e 18194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18195/* end confdefs.h. */
18196
db9f46a9
TG
18197#ifdef HAVE_COMPLEX_H
18198#include <complex.h>
1409cd0b 18199#endif
db9f46a9
TG
18200#ifdef HAVE_MATH_H
18201#include <math.h>
18202#endif
18203
18204int (*ptr)() = (int (*)())cos;
18205
1409cd0b
FXC
18206int
18207main ()
18208{
1409cd0b
FXC
18209 return 0;
18210}
db9f46a9 18211
1409cd0b 18212_ACEOF
5213506e 18213if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18214 gcc_cv_math_func_cos=yes
1409cd0b 18215else
db9f46a9 18216 gcc_cv_math_func_cos=no
1409cd0b 18217fi
5213506e
RW
18218rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18220fi
db9f46a9
TG
18221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18222$as_echo "$gcc_cv_math_func_cos" >&6; }
18223 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18224
f38a14ca
TG
18225cat >>confdefs.h <<_ACEOF
18226#define HAVE_COS 1
18227_ACEOF
db9f46a9
TG
18228
18229 fi
18230
1409cd0b 18231
1409cd0b 18232
1409cd0b 18233
db9f46a9
TG
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18235$as_echo_n "checking for cosl... " >&6; }
18236if test "${gcc_cv_math_func_cosl+set}" = set; then :
5213506e 18237 $as_echo_n "(cached) " >&6
1409cd0b 18238else
db9f46a9 18239 if test x$gcc_no_link = xyes; then
5213506e 18240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18241fi
5213506e 18242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18243/* end confdefs.h. */
18244
db9f46a9
TG
18245#ifdef HAVE_COMPLEX_H
18246#include <complex.h>
18247#endif
18248#ifdef HAVE_MATH_H
18249#include <math.h>
1409cd0b 18250#endif
db9f46a9
TG
18251
18252int (*ptr)() = (int (*)())cosl;
18253
1409cd0b
FXC
18254int
18255main ()
18256{
1409cd0b
FXC
18257 return 0;
18258}
db9f46a9 18259
1409cd0b 18260_ACEOF
5213506e 18261if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18262 gcc_cv_math_func_cosl=yes
1409cd0b 18263else
db9f46a9 18264 gcc_cv_math_func_cosl=no
1409cd0b 18265fi
5213506e
RW
18266rm -f core conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18268fi
db9f46a9
TG
18269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18270$as_echo "$gcc_cv_math_func_cosl" >&6; }
18271 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18272
f38a14ca
TG
18273cat >>confdefs.h <<_ACEOF
18274#define HAVE_COSL 1
18275_ACEOF
db9f46a9
TG
18276
18277 fi
1409cd0b 18278
1409cd0b 18279
1409cd0b 18280
db9f46a9
TG
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18283$as_echo_n "checking for ccosf... " >&6; }
18284if test "${gcc_cv_math_func_ccosf+set}" = set; then :
5213506e 18285 $as_echo_n "(cached) " >&6
1409cd0b 18286else
db9f46a9 18287 if test x$gcc_no_link = xyes; then
5213506e 18288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18289fi
5213506e 18290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18291/* end confdefs.h. */
18292
db9f46a9
TG
18293#ifdef HAVE_COMPLEX_H
18294#include <complex.h>
1409cd0b 18295#endif
db9f46a9
TG
18296#ifdef HAVE_MATH_H
18297#include <math.h>
18298#endif
18299
18300int (*ptr)() = (int (*)())ccosf;
18301
1409cd0b
FXC
18302int
18303main ()
18304{
1409cd0b
FXC
18305 return 0;
18306}
db9f46a9 18307
1409cd0b 18308_ACEOF
5213506e 18309if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18310 gcc_cv_math_func_ccosf=yes
1409cd0b 18311else
db9f46a9 18312 gcc_cv_math_func_ccosf=no
1409cd0b 18313fi
5213506e
RW
18314rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18316fi
db9f46a9
TG
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18318$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18319 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18320
f38a14ca
TG
18321cat >>confdefs.h <<_ACEOF
18322#define HAVE_CCOSF 1
18323_ACEOF
1409cd0b 18324
db9f46a9 18325 fi
1409cd0b 18326
1409cd0b 18327
db9f46a9
TG
18328
18329
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18331$as_echo_n "checking for ccos... " >&6; }
18332if test "${gcc_cv_math_func_ccos+set}" = set; then :
5213506e 18333 $as_echo_n "(cached) " >&6
1409cd0b 18334else
db9f46a9 18335 if test x$gcc_no_link = xyes; then
5213506e 18336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18337fi
5213506e 18338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18339/* end confdefs.h. */
18340
db9f46a9
TG
18341#ifdef HAVE_COMPLEX_H
18342#include <complex.h>
18343#endif
18344#ifdef HAVE_MATH_H
18345#include <math.h>
1409cd0b 18346#endif
db9f46a9
TG
18347
18348int (*ptr)() = (int (*)())ccos;
18349
1409cd0b
FXC
18350int
18351main ()
18352{
1409cd0b
FXC
18353 return 0;
18354}
db9f46a9 18355
1409cd0b 18356_ACEOF
5213506e 18357if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18358 gcc_cv_math_func_ccos=yes
1409cd0b 18359else
db9f46a9 18360 gcc_cv_math_func_ccos=no
1409cd0b 18361fi
5213506e
RW
18362rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18364fi
db9f46a9
TG
18365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18366$as_echo "$gcc_cv_math_func_ccos" >&6; }
18367 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18368
f38a14ca
TG
18369cat >>confdefs.h <<_ACEOF
18370#define HAVE_CCOS 1
18371_ACEOF
db9f46a9
TG
18372
18373 fi
1409cd0b 18374
1409cd0b 18375
1409cd0b 18376
db9f46a9
TG
18377
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18379$as_echo_n "checking for ccosl... " >&6; }
18380if test "${gcc_cv_math_func_ccosl+set}" = set; then :
5213506e 18381 $as_echo_n "(cached) " >&6
1409cd0b 18382else
db9f46a9 18383 if test x$gcc_no_link = xyes; then
5213506e 18384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18385fi
5213506e 18386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18387/* end confdefs.h. */
18388
db9f46a9
TG
18389#ifdef HAVE_COMPLEX_H
18390#include <complex.h>
1409cd0b 18391#endif
db9f46a9
TG
18392#ifdef HAVE_MATH_H
18393#include <math.h>
18394#endif
18395
18396int (*ptr)() = (int (*)())ccosl;
18397
1409cd0b
FXC
18398int
18399main ()
18400{
1409cd0b
FXC
18401 return 0;
18402}
db9f46a9 18403
1409cd0b 18404_ACEOF
5213506e 18405if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18406 gcc_cv_math_func_ccosl=yes
1409cd0b 18407else
db9f46a9 18408 gcc_cv_math_func_ccosl=no
1409cd0b 18409fi
5213506e
RW
18410rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18412fi
db9f46a9
TG
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18414$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18415 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18416
f38a14ca
TG
18417cat >>confdefs.h <<_ACEOF
18418#define HAVE_CCOSL 1
18419_ACEOF
db9f46a9
TG
18420
18421 fi
18422
1409cd0b 18423
1409cd0b 18424
1409cd0b 18425
db9f46a9
TG
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18427$as_echo_n "checking for coshf... " >&6; }
18428if test "${gcc_cv_math_func_coshf+set}" = set; then :
5213506e 18429 $as_echo_n "(cached) " >&6
1409cd0b 18430else
db9f46a9 18431 if test x$gcc_no_link = xyes; then
5213506e 18432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18433fi
5213506e 18434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18435/* end confdefs.h. */
18436
db9f46a9
TG
18437#ifdef HAVE_COMPLEX_H
18438#include <complex.h>
18439#endif
18440#ifdef HAVE_MATH_H
18441#include <math.h>
1409cd0b 18442#endif
db9f46a9
TG
18443
18444int (*ptr)() = (int (*)())coshf;
18445
1409cd0b
FXC
18446int
18447main ()
18448{
1409cd0b
FXC
18449 return 0;
18450}
db9f46a9 18451
1409cd0b 18452_ACEOF
5213506e 18453if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18454 gcc_cv_math_func_coshf=yes
1409cd0b 18455else
db9f46a9 18456 gcc_cv_math_func_coshf=no
1409cd0b 18457fi
5213506e
RW
18458rm -f core conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18460fi
db9f46a9
TG
18461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18462$as_echo "$gcc_cv_math_func_coshf" >&6; }
18463 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 18464
f38a14ca
TG
18465cat >>confdefs.h <<_ACEOF
18466#define HAVE_COSHF 1
18467_ACEOF
db9f46a9
TG
18468
18469 fi
1409cd0b 18470
1409cd0b 18471
1409cd0b 18472
db9f46a9
TG
18473
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18475$as_echo_n "checking for cosh... " >&6; }
18476if test "${gcc_cv_math_func_cosh+set}" = set; then :
5213506e 18477 $as_echo_n "(cached) " >&6
1409cd0b 18478else
db9f46a9 18479 if test x$gcc_no_link = xyes; then
5213506e 18480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18481fi
5213506e 18482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18483/* end confdefs.h. */
18484
db9f46a9
TG
18485#ifdef HAVE_COMPLEX_H
18486#include <complex.h>
1409cd0b 18487#endif
db9f46a9
TG
18488#ifdef HAVE_MATH_H
18489#include <math.h>
18490#endif
18491
18492int (*ptr)() = (int (*)())cosh;
18493
1409cd0b
FXC
18494int
18495main ()
18496{
1409cd0b
FXC
18497 return 0;
18498}
db9f46a9 18499
1409cd0b 18500_ACEOF
5213506e 18501if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18502 gcc_cv_math_func_cosh=yes
1409cd0b 18503else
db9f46a9 18504 gcc_cv_math_func_cosh=no
1409cd0b 18505fi
5213506e
RW
18506rm -f core conftest.err conftest.$ac_objext \
18507 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18508fi
db9f46a9
TG
18509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18510$as_echo "$gcc_cv_math_func_cosh" >&6; }
18511 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 18512
f38a14ca
TG
18513cat >>confdefs.h <<_ACEOF
18514#define HAVE_COSH 1
18515_ACEOF
1409cd0b 18516
db9f46a9 18517 fi
1409cd0b 18518
1409cd0b 18519
db9f46a9
TG
18520
18521
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18523$as_echo_n "checking for coshl... " >&6; }
18524if test "${gcc_cv_math_func_coshl+set}" = set; then :
5213506e 18525 $as_echo_n "(cached) " >&6
1409cd0b 18526else
db9f46a9 18527 if test x$gcc_no_link = xyes; then
5213506e 18528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18529fi
5213506e 18530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18531/* end confdefs.h. */
18532
db9f46a9
TG
18533#ifdef HAVE_COMPLEX_H
18534#include <complex.h>
18535#endif
18536#ifdef HAVE_MATH_H
18537#include <math.h>
1409cd0b 18538#endif
db9f46a9
TG
18539
18540int (*ptr)() = (int (*)())coshl;
18541
1409cd0b
FXC
18542int
18543main ()
18544{
1409cd0b
FXC
18545 return 0;
18546}
db9f46a9 18547
1409cd0b 18548_ACEOF
5213506e 18549if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18550 gcc_cv_math_func_coshl=yes
1409cd0b 18551else
db9f46a9 18552 gcc_cv_math_func_coshl=no
1409cd0b 18553fi
5213506e
RW
18554rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18556fi
db9f46a9
TG
18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18558$as_echo "$gcc_cv_math_func_coshl" >&6; }
18559 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 18560
f38a14ca
TG
18561cat >>confdefs.h <<_ACEOF
18562#define HAVE_COSHL 1
18563_ACEOF
db9f46a9
TG
18564
18565 fi
1409cd0b 18566
1409cd0b 18567
1409cd0b 18568
db9f46a9
TG
18569
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18571$as_echo_n "checking for ccoshf... " >&6; }
18572if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
5213506e 18573 $as_echo_n "(cached) " >&6
1409cd0b 18574else
db9f46a9 18575 if test x$gcc_no_link = xyes; then
5213506e 18576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18577fi
5213506e 18578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18579/* end confdefs.h. */
18580
db9f46a9
TG
18581#ifdef HAVE_COMPLEX_H
18582#include <complex.h>
1409cd0b 18583#endif
db9f46a9
TG
18584#ifdef HAVE_MATH_H
18585#include <math.h>
18586#endif
18587
18588int (*ptr)() = (int (*)())ccoshf;
18589
1409cd0b
FXC
18590int
18591main ()
18592{
1409cd0b
FXC
18593 return 0;
18594}
db9f46a9 18595
1409cd0b 18596_ACEOF
5213506e 18597if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18598 gcc_cv_math_func_ccoshf=yes
1409cd0b 18599else
db9f46a9 18600 gcc_cv_math_func_ccoshf=no
1409cd0b 18601fi
5213506e
RW
18602rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18604fi
db9f46a9
TG
18605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18606$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18607 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 18608
f38a14ca
TG
18609cat >>confdefs.h <<_ACEOF
18610#define HAVE_CCOSHF 1
18611_ACEOF
db9f46a9
TG
18612
18613 fi
18614
1409cd0b 18615
1409cd0b 18616
1409cd0b 18617
db9f46a9
TG
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18619$as_echo_n "checking for ccosh... " >&6; }
18620if test "${gcc_cv_math_func_ccosh+set}" = set; then :
5213506e 18621 $as_echo_n "(cached) " >&6
1409cd0b 18622else
db9f46a9 18623 if test x$gcc_no_link = xyes; then
5213506e 18624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18625fi
5213506e 18626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18627/* end confdefs.h. */
18628
db9f46a9
TG
18629#ifdef HAVE_COMPLEX_H
18630#include <complex.h>
18631#endif
18632#ifdef HAVE_MATH_H
18633#include <math.h>
1409cd0b 18634#endif
db9f46a9
TG
18635
18636int (*ptr)() = (int (*)())ccosh;
18637
1409cd0b
FXC
18638int
18639main ()
18640{
1409cd0b
FXC
18641 return 0;
18642}
db9f46a9 18643
1409cd0b 18644_ACEOF
5213506e 18645if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18646 gcc_cv_math_func_ccosh=yes
1409cd0b 18647else
db9f46a9 18648 gcc_cv_math_func_ccosh=no
1409cd0b 18649fi
5213506e
RW
18650rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18652fi
db9f46a9
TG
18653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18654$as_echo "$gcc_cv_math_func_ccosh" >&6; }
18655 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 18656
f38a14ca
TG
18657cat >>confdefs.h <<_ACEOF
18658#define HAVE_CCOSH 1
18659_ACEOF
db9f46a9
TG
18660
18661 fi
1409cd0b 18662
1409cd0b 18663
1409cd0b 18664
db9f46a9
TG
18665
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18667$as_echo_n "checking for ccoshl... " >&6; }
18668if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
5213506e 18669 $as_echo_n "(cached) " >&6
1409cd0b 18670else
db9f46a9 18671 if test x$gcc_no_link = xyes; then
5213506e 18672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18673fi
5213506e 18674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18675/* end confdefs.h. */
18676
db9f46a9
TG
18677#ifdef HAVE_COMPLEX_H
18678#include <complex.h>
1409cd0b 18679#endif
db9f46a9
TG
18680#ifdef HAVE_MATH_H
18681#include <math.h>
18682#endif
18683
18684int (*ptr)() = (int (*)())ccoshl;
18685
1409cd0b
FXC
18686int
18687main ()
18688{
1409cd0b
FXC
18689 return 0;
18690}
db9f46a9 18691
1409cd0b 18692_ACEOF
5213506e 18693if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18694 gcc_cv_math_func_ccoshl=yes
1409cd0b 18695else
db9f46a9 18696 gcc_cv_math_func_ccoshl=no
1409cd0b 18697fi
5213506e
RW
18698rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18700fi
db9f46a9
TG
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18702$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18703 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 18704
f38a14ca
TG
18705cat >>confdefs.h <<_ACEOF
18706#define HAVE_CCOSHL 1
18707_ACEOF
1409cd0b 18708
db9f46a9 18709 fi
1409cd0b 18710
1409cd0b 18711
db9f46a9
TG
18712
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18715$as_echo_n "checking for expf... " >&6; }
18716if test "${gcc_cv_math_func_expf+set}" = set; then :
5213506e 18717 $as_echo_n "(cached) " >&6
1409cd0b 18718else
db9f46a9 18719 if test x$gcc_no_link = xyes; then
5213506e 18720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18721fi
5213506e 18722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18723/* end confdefs.h. */
18724
db9f46a9
TG
18725#ifdef HAVE_COMPLEX_H
18726#include <complex.h>
18727#endif
18728#ifdef HAVE_MATH_H
18729#include <math.h>
1409cd0b 18730#endif
db9f46a9
TG
18731
18732int (*ptr)() = (int (*)())expf;
18733
1409cd0b
FXC
18734int
18735main ()
18736{
1409cd0b
FXC
18737 return 0;
18738}
db9f46a9 18739
1409cd0b 18740_ACEOF
5213506e 18741if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18742 gcc_cv_math_func_expf=yes
1409cd0b 18743else
db9f46a9 18744 gcc_cv_math_func_expf=no
1409cd0b 18745fi
5213506e
RW
18746rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18748fi
db9f46a9
TG
18749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18750$as_echo "$gcc_cv_math_func_expf" >&6; }
18751 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 18752
f38a14ca
TG
18753cat >>confdefs.h <<_ACEOF
18754#define HAVE_EXPF 1
18755_ACEOF
db9f46a9
TG
18756
18757 fi
1409cd0b 18758
1409cd0b 18759
1409cd0b 18760
db9f46a9
TG
18761
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18763$as_echo_n "checking for exp... " >&6; }
18764if test "${gcc_cv_math_func_exp+set}" = set; then :
5213506e 18765 $as_echo_n "(cached) " >&6
1409cd0b 18766else
db9f46a9 18767 if test x$gcc_no_link = xyes; then
5213506e 18768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18769fi
5213506e 18770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18771/* end confdefs.h. */
18772
db9f46a9
TG
18773#ifdef HAVE_COMPLEX_H
18774#include <complex.h>
1409cd0b 18775#endif
db9f46a9
TG
18776#ifdef HAVE_MATH_H
18777#include <math.h>
18778#endif
18779
18780int (*ptr)() = (int (*)())exp;
18781
1409cd0b
FXC
18782int
18783main ()
18784{
1409cd0b
FXC
18785 return 0;
18786}
db9f46a9 18787
1409cd0b 18788_ACEOF
5213506e 18789if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18790 gcc_cv_math_func_exp=yes
1409cd0b 18791else
db9f46a9 18792 gcc_cv_math_func_exp=no
1409cd0b 18793fi
5213506e
RW
18794rm -f core conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18796fi
db9f46a9
TG
18797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18798$as_echo "$gcc_cv_math_func_exp" >&6; }
18799 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 18800
f38a14ca
TG
18801cat >>confdefs.h <<_ACEOF
18802#define HAVE_EXP 1
18803_ACEOF
db9f46a9
TG
18804
18805 fi
18806
1409cd0b 18807
1409cd0b 18808
1409cd0b 18809
db9f46a9
TG
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18811$as_echo_n "checking for expl... " >&6; }
18812if test "${gcc_cv_math_func_expl+set}" = set; then :
5213506e 18813 $as_echo_n "(cached) " >&6
1409cd0b 18814else
db9f46a9 18815 if test x$gcc_no_link = xyes; then
5213506e 18816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18817fi
5213506e 18818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18819/* end confdefs.h. */
18820
db9f46a9
TG
18821#ifdef HAVE_COMPLEX_H
18822#include <complex.h>
18823#endif
18824#ifdef HAVE_MATH_H
18825#include <math.h>
1409cd0b 18826#endif
db9f46a9
TG
18827
18828int (*ptr)() = (int (*)())expl;
18829
1409cd0b
FXC
18830int
18831main ()
18832{
1409cd0b
FXC
18833 return 0;
18834}
db9f46a9 18835
1409cd0b 18836_ACEOF
5213506e 18837if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18838 gcc_cv_math_func_expl=yes
1409cd0b 18839else
db9f46a9 18840 gcc_cv_math_func_expl=no
1409cd0b 18841fi
5213506e
RW
18842rm -f core conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18844fi
db9f46a9
TG
18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18846$as_echo "$gcc_cv_math_func_expl" >&6; }
18847 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 18848
f38a14ca
TG
18849cat >>confdefs.h <<_ACEOF
18850#define HAVE_EXPL 1
18851_ACEOF
db9f46a9
TG
18852
18853 fi
1409cd0b 18854
1409cd0b 18855
1409cd0b 18856
db9f46a9
TG
18857
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18859$as_echo_n "checking for cexpf... " >&6; }
18860if test "${gcc_cv_math_func_cexpf+set}" = set; then :
5213506e 18861 $as_echo_n "(cached) " >&6
1409cd0b 18862else
db9f46a9 18863 if test x$gcc_no_link = xyes; then
5213506e 18864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18865fi
5213506e 18866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18867/* end confdefs.h. */
18868
db9f46a9
TG
18869#ifdef HAVE_COMPLEX_H
18870#include <complex.h>
1409cd0b 18871#endif
db9f46a9
TG
18872#ifdef HAVE_MATH_H
18873#include <math.h>
18874#endif
18875
18876int (*ptr)() = (int (*)())cexpf;
18877
1409cd0b
FXC
18878int
18879main ()
18880{
1409cd0b
FXC
18881 return 0;
18882}
db9f46a9 18883
1409cd0b 18884_ACEOF
5213506e 18885if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18886 gcc_cv_math_func_cexpf=yes
1409cd0b 18887else
db9f46a9 18888 gcc_cv_math_func_cexpf=no
1409cd0b 18889fi
5213506e
RW
18890rm -f core conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18892fi
db9f46a9
TG
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18894$as_echo "$gcc_cv_math_func_cexpf" >&6; }
18895 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 18896
f38a14ca
TG
18897cat >>confdefs.h <<_ACEOF
18898#define HAVE_CEXPF 1
18899_ACEOF
1409cd0b 18900
db9f46a9 18901 fi
1409cd0b 18902
1409cd0b 18903
db9f46a9
TG
18904
18905
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18907$as_echo_n "checking for cexp... " >&6; }
18908if test "${gcc_cv_math_func_cexp+set}" = set; then :
5213506e 18909 $as_echo_n "(cached) " >&6
1409cd0b 18910else
db9f46a9 18911 if test x$gcc_no_link = xyes; then
5213506e 18912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18913fi
5213506e 18914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18915/* end confdefs.h. */
18916
db9f46a9
TG
18917#ifdef HAVE_COMPLEX_H
18918#include <complex.h>
18919#endif
18920#ifdef HAVE_MATH_H
18921#include <math.h>
1409cd0b 18922#endif
db9f46a9
TG
18923
18924int (*ptr)() = (int (*)())cexp;
18925
1409cd0b
FXC
18926int
18927main ()
18928{
1409cd0b
FXC
18929 return 0;
18930}
db9f46a9 18931
1409cd0b 18932_ACEOF
5213506e 18933if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18934 gcc_cv_math_func_cexp=yes
1409cd0b 18935else
db9f46a9 18936 gcc_cv_math_func_cexp=no
1409cd0b 18937fi
5213506e
RW
18938rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18940fi
db9f46a9
TG
18941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18942$as_echo "$gcc_cv_math_func_cexp" >&6; }
18943 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 18944
f38a14ca
TG
18945cat >>confdefs.h <<_ACEOF
18946#define HAVE_CEXP 1
18947_ACEOF
db9f46a9
TG
18948
18949 fi
1409cd0b 18950
1409cd0b 18951
1409cd0b 18952
db9f46a9
TG
18953
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18955$as_echo_n "checking for cexpl... " >&6; }
18956if test "${gcc_cv_math_func_cexpl+set}" = set; then :
5213506e 18957 $as_echo_n "(cached) " >&6
1409cd0b 18958else
db9f46a9 18959 if test x$gcc_no_link = xyes; then
5213506e 18960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18961fi
5213506e 18962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18963/* end confdefs.h. */
18964
db9f46a9
TG
18965#ifdef HAVE_COMPLEX_H
18966#include <complex.h>
1409cd0b 18967#endif
db9f46a9
TG
18968#ifdef HAVE_MATH_H
18969#include <math.h>
18970#endif
18971
18972int (*ptr)() = (int (*)())cexpl;
18973
1409cd0b
FXC
18974int
18975main ()
18976{
1409cd0b
FXC
18977 return 0;
18978}
db9f46a9 18979
1409cd0b 18980_ACEOF
5213506e 18981if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18982 gcc_cv_math_func_cexpl=yes
1409cd0b 18983else
db9f46a9 18984 gcc_cv_math_func_cexpl=no
1409cd0b 18985fi
5213506e
RW
18986rm -f core conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18988fi
db9f46a9
TG
18989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18990$as_echo "$gcc_cv_math_func_cexpl" >&6; }
18991 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 18992
f38a14ca
TG
18993cat >>confdefs.h <<_ACEOF
18994#define HAVE_CEXPL 1
18995_ACEOF
db9f46a9
TG
18996
18997 fi
18998
1409cd0b 18999
1409cd0b 19000
1409cd0b 19001
db9f46a9
TG
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19003$as_echo_n "checking for fabsf... " >&6; }
19004if test "${gcc_cv_math_func_fabsf+set}" = set; then :
5213506e 19005 $as_echo_n "(cached) " >&6
1409cd0b 19006else
db9f46a9 19007 if test x$gcc_no_link = xyes; then
5213506e 19008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19009fi
5213506e 19010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19011/* end confdefs.h. */
19012
db9f46a9
TG
19013#ifdef HAVE_COMPLEX_H
19014#include <complex.h>
19015#endif
19016#ifdef HAVE_MATH_H
19017#include <math.h>
1409cd0b 19018#endif
db9f46a9
TG
19019
19020int (*ptr)() = (int (*)())fabsf;
19021
1409cd0b
FXC
19022int
19023main ()
19024{
1409cd0b
FXC
19025 return 0;
19026}
db9f46a9 19027
1409cd0b 19028_ACEOF
5213506e 19029if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19030 gcc_cv_math_func_fabsf=yes
1409cd0b 19031else
db9f46a9 19032 gcc_cv_math_func_fabsf=no
1409cd0b 19033fi
5213506e
RW
19034rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19036fi
db9f46a9
TG
19037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19038$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19039 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19040
f38a14ca
TG
19041cat >>confdefs.h <<_ACEOF
19042#define HAVE_FABSF 1
19043_ACEOF
db9f46a9
TG
19044
19045 fi
1409cd0b 19046
1409cd0b 19047
1409cd0b 19048
db9f46a9
TG
19049
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19051$as_echo_n "checking for fabs... " >&6; }
19052if test "${gcc_cv_math_func_fabs+set}" = set; then :
5213506e 19053 $as_echo_n "(cached) " >&6
1409cd0b 19054else
db9f46a9 19055 if test x$gcc_no_link = xyes; then
5213506e 19056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19057fi
5213506e 19058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19059/* end confdefs.h. */
19060
db9f46a9
TG
19061#ifdef HAVE_COMPLEX_H
19062#include <complex.h>
1409cd0b 19063#endif
db9f46a9
TG
19064#ifdef HAVE_MATH_H
19065#include <math.h>
19066#endif
19067
19068int (*ptr)() = (int (*)())fabs;
19069
1409cd0b
FXC
19070int
19071main ()
19072{
1409cd0b
FXC
19073 return 0;
19074}
db9f46a9 19075
1409cd0b 19076_ACEOF
5213506e 19077if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19078 gcc_cv_math_func_fabs=yes
1409cd0b 19079else
db9f46a9 19080 gcc_cv_math_func_fabs=no
1409cd0b 19081fi
5213506e
RW
19082rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19084fi
db9f46a9
TG
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19086$as_echo "$gcc_cv_math_func_fabs" >&6; }
19087 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19088
f38a14ca
TG
19089cat >>confdefs.h <<_ACEOF
19090#define HAVE_FABS 1
19091_ACEOF
1409cd0b 19092
db9f46a9 19093 fi
1409cd0b 19094
1409cd0b 19095
db9f46a9
TG
19096
19097
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19099$as_echo_n "checking for fabsl... " >&6; }
19100if test "${gcc_cv_math_func_fabsl+set}" = set; then :
5213506e 19101 $as_echo_n "(cached) " >&6
1409cd0b 19102else
db9f46a9 19103 if test x$gcc_no_link = xyes; then
5213506e 19104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19105fi
5213506e 19106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19107/* end confdefs.h. */
19108
db9f46a9
TG
19109#ifdef HAVE_COMPLEX_H
19110#include <complex.h>
19111#endif
19112#ifdef HAVE_MATH_H
19113#include <math.h>
1409cd0b 19114#endif
db9f46a9
TG
19115
19116int (*ptr)() = (int (*)())fabsl;
19117
1409cd0b
FXC
19118int
19119main ()
19120{
1409cd0b
FXC
19121 return 0;
19122}
db9f46a9 19123
1409cd0b 19124_ACEOF
5213506e 19125if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19126 gcc_cv_math_func_fabsl=yes
1409cd0b 19127else
db9f46a9 19128 gcc_cv_math_func_fabsl=no
1409cd0b 19129fi
5213506e
RW
19130rm -f core conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19132fi
db9f46a9
TG
19133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19134$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19135 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19136
f38a14ca
TG
19137cat >>confdefs.h <<_ACEOF
19138#define HAVE_FABSL 1
19139_ACEOF
db9f46a9
TG
19140
19141 fi
1409cd0b 19142
1409cd0b 19143
1409cd0b 19144
db9f46a9
TG
19145
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19147$as_echo_n "checking for cabsf... " >&6; }
19148if test "${gcc_cv_math_func_cabsf+set}" = set; then :
5213506e 19149 $as_echo_n "(cached) " >&6
1409cd0b 19150else
db9f46a9 19151 if test x$gcc_no_link = xyes; then
5213506e 19152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19153fi
5213506e 19154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19155/* end confdefs.h. */
19156
db9f46a9
TG
19157#ifdef HAVE_COMPLEX_H
19158#include <complex.h>
1409cd0b 19159#endif
db9f46a9
TG
19160#ifdef HAVE_MATH_H
19161#include <math.h>
19162#endif
19163
19164int (*ptr)() = (int (*)())cabsf;
19165
1409cd0b
FXC
19166int
19167main ()
19168{
1409cd0b
FXC
19169 return 0;
19170}
db9f46a9 19171
1409cd0b 19172_ACEOF
5213506e 19173if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19174 gcc_cv_math_func_cabsf=yes
1409cd0b 19175else
db9f46a9 19176 gcc_cv_math_func_cabsf=no
1409cd0b 19177fi
5213506e
RW
19178rm -f core conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19180fi
db9f46a9
TG
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19182$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19183 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19184
f38a14ca
TG
19185cat >>confdefs.h <<_ACEOF
19186#define HAVE_CABSF 1
19187_ACEOF
db9f46a9
TG
19188
19189 fi
19190
1409cd0b 19191
1409cd0b 19192
1409cd0b 19193
db9f46a9
TG
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19195$as_echo_n "checking for cabs... " >&6; }
19196if test "${gcc_cv_math_func_cabs+set}" = set; then :
5213506e 19197 $as_echo_n "(cached) " >&6
1409cd0b 19198else
db9f46a9 19199 if test x$gcc_no_link = xyes; then
5213506e 19200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19201fi
5213506e 19202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19203/* end confdefs.h. */
19204
db9f46a9
TG
19205#ifdef HAVE_COMPLEX_H
19206#include <complex.h>
19207#endif
19208#ifdef HAVE_MATH_H
19209#include <math.h>
1409cd0b 19210#endif
db9f46a9
TG
19211
19212int (*ptr)() = (int (*)())cabs;
19213
1409cd0b
FXC
19214int
19215main ()
19216{
1409cd0b
FXC
19217 return 0;
19218}
db9f46a9 19219
1409cd0b 19220_ACEOF
5213506e 19221if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19222 gcc_cv_math_func_cabs=yes
1409cd0b 19223else
db9f46a9 19224 gcc_cv_math_func_cabs=no
1409cd0b 19225fi
5213506e
RW
19226rm -f core conftest.err conftest.$ac_objext \
19227 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19228fi
db9f46a9
TG
19229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19230$as_echo "$gcc_cv_math_func_cabs" >&6; }
19231 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19232
f38a14ca
TG
19233cat >>confdefs.h <<_ACEOF
19234#define HAVE_CABS 1
19235_ACEOF
db9f46a9
TG
19236
19237 fi
1409cd0b 19238
1409cd0b 19239
1409cd0b 19240
db9f46a9
TG
19241
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19243$as_echo_n "checking for cabsl... " >&6; }
19244if test "${gcc_cv_math_func_cabsl+set}" = set; then :
5213506e 19245 $as_echo_n "(cached) " >&6
1409cd0b 19246else
db9f46a9 19247 if test x$gcc_no_link = xyes; then
5213506e 19248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19249fi
5213506e 19250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19251/* end confdefs.h. */
19252
db9f46a9
TG
19253#ifdef HAVE_COMPLEX_H
19254#include <complex.h>
1409cd0b 19255#endif
db9f46a9
TG
19256#ifdef HAVE_MATH_H
19257#include <math.h>
19258#endif
19259
19260int (*ptr)() = (int (*)())cabsl;
19261
1409cd0b
FXC
19262int
19263main ()
19264{
1409cd0b
FXC
19265 return 0;
19266}
db9f46a9 19267
1409cd0b 19268_ACEOF
5213506e 19269if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19270 gcc_cv_math_func_cabsl=yes
1409cd0b 19271else
db9f46a9 19272 gcc_cv_math_func_cabsl=no
1409cd0b 19273fi
5213506e
RW
19274rm -f core conftest.err conftest.$ac_objext \
19275 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19276fi
db9f46a9
TG
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19278$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19279 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19280
f38a14ca
TG
19281cat >>confdefs.h <<_ACEOF
19282#define HAVE_CABSL 1
19283_ACEOF
1409cd0b 19284
db9f46a9 19285 fi
1409cd0b 19286
1409cd0b 19287
db9f46a9
TG
19288
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19291$as_echo_n "checking for floorf... " >&6; }
19292if test "${gcc_cv_math_func_floorf+set}" = set; then :
5213506e 19293 $as_echo_n "(cached) " >&6
1409cd0b 19294else
db9f46a9 19295 if test x$gcc_no_link = xyes; then
5213506e 19296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19297fi
5213506e 19298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19299/* end confdefs.h. */
19300
db9f46a9
TG
19301#ifdef HAVE_COMPLEX_H
19302#include <complex.h>
19303#endif
19304#ifdef HAVE_MATH_H
19305#include <math.h>
1409cd0b 19306#endif
db9f46a9
TG
19307
19308int (*ptr)() = (int (*)())floorf;
19309
1409cd0b
FXC
19310int
19311main ()
19312{
5213506e
RW
19313 return 0;
19314}
db9f46a9 19315
5213506e
RW
19316_ACEOF
19317if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19318 gcc_cv_math_func_floorf=yes
1409cd0b 19319else
db9f46a9 19320 gcc_cv_math_func_floorf=no
1409cd0b 19321fi
5213506e
RW
19322rm -f core conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19324fi
db9f46a9
TG
19325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19326$as_echo "$gcc_cv_math_func_floorf" >&6; }
19327 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19328
f38a14ca
TG
19329cat >>confdefs.h <<_ACEOF
19330#define HAVE_FLOORF 1
19331_ACEOF
db9f46a9
TG
19332
19333 fi
1409cd0b 19334
1409cd0b 19335
1409cd0b 19336
db9f46a9
TG
19337
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19339$as_echo_n "checking for floor... " >&6; }
19340if test "${gcc_cv_math_func_floor+set}" = set; then :
5213506e 19341 $as_echo_n "(cached) " >&6
1409cd0b 19342else
db9f46a9 19343 if test x$gcc_no_link = xyes; then
5213506e 19344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19345fi
5213506e 19346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19347/* end confdefs.h. */
19348
db9f46a9
TG
19349#ifdef HAVE_COMPLEX_H
19350#include <complex.h>
1409cd0b 19351#endif
db9f46a9
TG
19352#ifdef HAVE_MATH_H
19353#include <math.h>
19354#endif
19355
19356int (*ptr)() = (int (*)())floor;
19357
1409cd0b
FXC
19358int
19359main ()
19360{
1409cd0b
FXC
19361 return 0;
19362}
db9f46a9 19363
1409cd0b 19364_ACEOF
5213506e 19365if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19366 gcc_cv_math_func_floor=yes
1409cd0b 19367else
db9f46a9 19368 gcc_cv_math_func_floor=no
1409cd0b 19369fi
5213506e
RW
19370rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19372fi
db9f46a9
TG
19373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19374$as_echo "$gcc_cv_math_func_floor" >&6; }
19375 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19376
f38a14ca
TG
19377cat >>confdefs.h <<_ACEOF
19378#define HAVE_FLOOR 1
19379_ACEOF
db9f46a9
TG
19380
19381 fi
19382
1409cd0b 19383
1409cd0b 19384
1409cd0b 19385
db9f46a9
TG
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19387$as_echo_n "checking for floorl... " >&6; }
19388if test "${gcc_cv_math_func_floorl+set}" = set; then :
5213506e 19389 $as_echo_n "(cached) " >&6
eb647f7d 19390else
db9f46a9 19391 if test x$gcc_no_link = xyes; then
5213506e 19392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19393fi
5213506e 19394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19395/* end confdefs.h. */
19396
db9f46a9
TG
19397#ifdef HAVE_COMPLEX_H
19398#include <complex.h>
19399#endif
19400#ifdef HAVE_MATH_H
19401#include <math.h>
eb647f7d 19402#endif
db9f46a9
TG
19403
19404int (*ptr)() = (int (*)())floorl;
19405
eb647f7d
FXC
19406int
19407main ()
19408{
eb647f7d
FXC
19409 return 0;
19410}
db9f46a9 19411
eb647f7d 19412_ACEOF
5213506e 19413if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19414 gcc_cv_math_func_floorl=yes
eb647f7d 19415else
db9f46a9 19416 gcc_cv_math_func_floorl=no
eb647f7d 19417fi
5213506e
RW
19418rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19420fi
db9f46a9
TG
19421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19422$as_echo "$gcc_cv_math_func_floorl" >&6; }
19423 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19424
f38a14ca
TG
19425cat >>confdefs.h <<_ACEOF
19426#define HAVE_FLOORL 1
19427_ACEOF
db9f46a9
TG
19428
19429 fi
eb647f7d 19430
eb647f7d 19431
eb647f7d 19432
db9f46a9
TG
19433
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19435$as_echo_n "checking for fmodf... " >&6; }
19436if test "${gcc_cv_math_func_fmodf+set}" = set; then :
5213506e 19437 $as_echo_n "(cached) " >&6
eb647f7d 19438else
db9f46a9 19439 if test x$gcc_no_link = xyes; then
5213506e 19440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19441fi
5213506e 19442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19443/* end confdefs.h. */
19444
db9f46a9
TG
19445#ifdef HAVE_COMPLEX_H
19446#include <complex.h>
eb647f7d 19447#endif
db9f46a9
TG
19448#ifdef HAVE_MATH_H
19449#include <math.h>
19450#endif
19451
19452int (*ptr)() = (int (*)())fmodf;
19453
eb647f7d
FXC
19454int
19455main ()
19456{
eb647f7d
FXC
19457 return 0;
19458}
db9f46a9 19459
eb647f7d 19460_ACEOF
5213506e 19461if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19462 gcc_cv_math_func_fmodf=yes
eb647f7d 19463else
db9f46a9 19464 gcc_cv_math_func_fmodf=no
eb647f7d 19465fi
5213506e
RW
19466rm -f core conftest.err conftest.$ac_objext \
19467 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19468fi
db9f46a9
TG
19469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19470$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19471 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 19472
f38a14ca
TG
19473cat >>confdefs.h <<_ACEOF
19474#define HAVE_FMODF 1
19475_ACEOF
eb647f7d 19476
db9f46a9 19477 fi
eb647f7d 19478
eb647f7d 19479
db9f46a9
TG
19480
19481
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19483$as_echo_n "checking for fmod... " >&6; }
19484if test "${gcc_cv_math_func_fmod+set}" = set; then :
5213506e 19485 $as_echo_n "(cached) " >&6
eb647f7d 19486else
db9f46a9 19487 if test x$gcc_no_link = xyes; then
5213506e 19488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19489fi
5213506e 19490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19491/* end confdefs.h. */
19492
db9f46a9
TG
19493#ifdef HAVE_COMPLEX_H
19494#include <complex.h>
19495#endif
19496#ifdef HAVE_MATH_H
19497#include <math.h>
eb647f7d 19498#endif
db9f46a9
TG
19499
19500int (*ptr)() = (int (*)())fmod;
19501
eb647f7d
FXC
19502int
19503main ()
19504{
eb647f7d
FXC
19505 return 0;
19506}
db9f46a9 19507
eb647f7d 19508_ACEOF
5213506e 19509if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19510 gcc_cv_math_func_fmod=yes
eb647f7d 19511else
db9f46a9 19512 gcc_cv_math_func_fmod=no
eb647f7d 19513fi
5213506e
RW
19514rm -f core conftest.err conftest.$ac_objext \
19515 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19516fi
db9f46a9
TG
19517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19518$as_echo "$gcc_cv_math_func_fmod" >&6; }
19519 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 19520
f38a14ca
TG
19521cat >>confdefs.h <<_ACEOF
19522#define HAVE_FMOD 1
19523_ACEOF
db9f46a9
TG
19524
19525 fi
eb647f7d 19526
eb647f7d 19527
eb647f7d 19528
db9f46a9
TG
19529
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19531$as_echo_n "checking for fmodl... " >&6; }
19532if test "${gcc_cv_math_func_fmodl+set}" = set; then :
5213506e 19533 $as_echo_n "(cached) " >&6
1409cd0b 19534else
db9f46a9 19535 if test x$gcc_no_link = xyes; then
5213506e 19536 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19537fi
5213506e 19538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19539/* end confdefs.h. */
19540
db9f46a9
TG
19541#ifdef HAVE_COMPLEX_H
19542#include <complex.h>
1409cd0b 19543#endif
db9f46a9
TG
19544#ifdef HAVE_MATH_H
19545#include <math.h>
19546#endif
19547
19548int (*ptr)() = (int (*)())fmodl;
19549
1409cd0b
FXC
19550int
19551main ()
19552{
1409cd0b
FXC
19553 return 0;
19554}
db9f46a9 19555
1409cd0b 19556_ACEOF
5213506e 19557if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19558 gcc_cv_math_func_fmodl=yes
1409cd0b 19559else
db9f46a9 19560 gcc_cv_math_func_fmodl=no
1409cd0b 19561fi
5213506e
RW
19562rm -f core conftest.err conftest.$ac_objext \
19563 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19564fi
db9f46a9
TG
19565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19566$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19567 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 19568
f38a14ca
TG
19569cat >>confdefs.h <<_ACEOF
19570#define HAVE_FMODL 1
19571_ACEOF
db9f46a9
TG
19572
19573 fi
19574
1409cd0b 19575
1409cd0b 19576
1409cd0b 19577
db9f46a9
TG
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19579$as_echo_n "checking for frexpf... " >&6; }
19580if test "${gcc_cv_math_func_frexpf+set}" = set; then :
5213506e 19581 $as_echo_n "(cached) " >&6
1409cd0b 19582else
db9f46a9 19583 if test x$gcc_no_link = xyes; then
5213506e 19584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19585fi
5213506e 19586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19587/* end confdefs.h. */
19588
db9f46a9
TG
19589#ifdef HAVE_COMPLEX_H
19590#include <complex.h>
19591#endif
19592#ifdef HAVE_MATH_H
19593#include <math.h>
1409cd0b 19594#endif
db9f46a9
TG
19595
19596int (*ptr)() = (int (*)())frexpf;
19597
1409cd0b
FXC
19598int
19599main ()
19600{
1409cd0b
FXC
19601 return 0;
19602}
db9f46a9 19603
1409cd0b 19604_ACEOF
5213506e 19605if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19606 gcc_cv_math_func_frexpf=yes
1409cd0b 19607else
db9f46a9 19608 gcc_cv_math_func_frexpf=no
1409cd0b 19609fi
5213506e
RW
19610rm -f core conftest.err conftest.$ac_objext \
19611 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19612fi
db9f46a9
TG
19613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19614$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19615 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 19616
f38a14ca
TG
19617cat >>confdefs.h <<_ACEOF
19618#define HAVE_FREXPF 1
19619_ACEOF
db9f46a9
TG
19620
19621 fi
1409cd0b 19622
1409cd0b 19623
1409cd0b 19624
db9f46a9
TG
19625
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19627$as_echo_n "checking for frexp... " >&6; }
19628if test "${gcc_cv_math_func_frexp+set}" = set; then :
5213506e 19629 $as_echo_n "(cached) " >&6
1409cd0b 19630else
db9f46a9 19631 if test x$gcc_no_link = xyes; then
5213506e 19632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19633fi
5213506e 19634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19635/* end confdefs.h. */
19636
db9f46a9
TG
19637#ifdef HAVE_COMPLEX_H
19638#include <complex.h>
1409cd0b 19639#endif
db9f46a9
TG
19640#ifdef HAVE_MATH_H
19641#include <math.h>
19642#endif
19643
19644int (*ptr)() = (int (*)())frexp;
19645
1409cd0b
FXC
19646int
19647main ()
19648{
1409cd0b
FXC
19649 return 0;
19650}
db9f46a9 19651
1409cd0b 19652_ACEOF
5213506e 19653if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19654 gcc_cv_math_func_frexp=yes
1409cd0b 19655else
db9f46a9 19656 gcc_cv_math_func_frexp=no
1409cd0b 19657fi
5213506e
RW
19658rm -f core conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19660fi
db9f46a9
TG
19661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19662$as_echo "$gcc_cv_math_func_frexp" >&6; }
19663 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 19664
f38a14ca
TG
19665cat >>confdefs.h <<_ACEOF
19666#define HAVE_FREXP 1
19667_ACEOF
1409cd0b 19668
db9f46a9 19669 fi
1409cd0b 19670
1409cd0b 19671
db9f46a9
TG
19672
19673
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19675$as_echo_n "checking for frexpl... " >&6; }
19676if test "${gcc_cv_math_func_frexpl+set}" = set; then :
5213506e 19677 $as_echo_n "(cached) " >&6
1409cd0b 19678else
db9f46a9 19679 if test x$gcc_no_link = xyes; then
5213506e 19680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19681fi
5213506e 19682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19683/* end confdefs.h. */
19684
db9f46a9
TG
19685#ifdef HAVE_COMPLEX_H
19686#include <complex.h>
19687#endif
19688#ifdef HAVE_MATH_H
19689#include <math.h>
1409cd0b 19690#endif
db9f46a9
TG
19691
19692int (*ptr)() = (int (*)())frexpl;
19693
1409cd0b
FXC
19694int
19695main ()
19696{
1409cd0b
FXC
19697 return 0;
19698}
db9f46a9 19699
1409cd0b 19700_ACEOF
5213506e 19701if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19702 gcc_cv_math_func_frexpl=yes
1409cd0b 19703else
db9f46a9 19704 gcc_cv_math_func_frexpl=no
1409cd0b 19705fi
5213506e
RW
19706rm -f core conftest.err conftest.$ac_objext \
19707 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19708fi
db9f46a9
TG
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19710$as_echo "$gcc_cv_math_func_frexpl" >&6; }
19711 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 19712
f38a14ca
TG
19713cat >>confdefs.h <<_ACEOF
19714#define HAVE_FREXPL 1
19715_ACEOF
db9f46a9
TG
19716
19717 fi
1409cd0b 19718
1409cd0b 19719
1409cd0b 19720
db9f46a9
TG
19721
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19723$as_echo_n "checking for hypotf... " >&6; }
19724if test "${gcc_cv_math_func_hypotf+set}" = set; then :
5213506e 19725 $as_echo_n "(cached) " >&6
1409cd0b 19726else
db9f46a9 19727 if test x$gcc_no_link = xyes; then
5213506e 19728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19729fi
5213506e 19730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19731/* end confdefs.h. */
19732
db9f46a9
TG
19733#ifdef HAVE_COMPLEX_H
19734#include <complex.h>
1409cd0b 19735#endif
db9f46a9
TG
19736#ifdef HAVE_MATH_H
19737#include <math.h>
19738#endif
19739
19740int (*ptr)() = (int (*)())hypotf;
19741
1409cd0b
FXC
19742int
19743main ()
19744{
1409cd0b
FXC
19745 return 0;
19746}
db9f46a9 19747
1409cd0b 19748_ACEOF
5213506e 19749if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19750 gcc_cv_math_func_hypotf=yes
1409cd0b 19751else
db9f46a9 19752 gcc_cv_math_func_hypotf=no
1409cd0b 19753fi
5213506e
RW
19754rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19756fi
db9f46a9
TG
19757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19758$as_echo "$gcc_cv_math_func_hypotf" >&6; }
19759 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 19760
f38a14ca
TG
19761cat >>confdefs.h <<_ACEOF
19762#define HAVE_HYPOTF 1
19763_ACEOF
db9f46a9
TG
19764
19765 fi
19766
1409cd0b 19767
1409cd0b 19768
1409cd0b 19769
db9f46a9
TG
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19771$as_echo_n "checking for hypot... " >&6; }
19772if test "${gcc_cv_math_func_hypot+set}" = set; then :
5213506e 19773 $as_echo_n "(cached) " >&6
1409cd0b 19774else
db9f46a9 19775 if test x$gcc_no_link = xyes; then
5213506e 19776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19777fi
5213506e 19778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19779/* end confdefs.h. */
19780
db9f46a9
TG
19781#ifdef HAVE_COMPLEX_H
19782#include <complex.h>
19783#endif
19784#ifdef HAVE_MATH_H
19785#include <math.h>
1409cd0b 19786#endif
db9f46a9
TG
19787
19788int (*ptr)() = (int (*)())hypot;
19789
1409cd0b
FXC
19790int
19791main ()
19792{
1409cd0b
FXC
19793 return 0;
19794}
db9f46a9 19795
1409cd0b 19796_ACEOF
5213506e 19797if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19798 gcc_cv_math_func_hypot=yes
1409cd0b 19799else
db9f46a9 19800 gcc_cv_math_func_hypot=no
1409cd0b 19801fi
5213506e
RW
19802rm -f core conftest.err conftest.$ac_objext \
19803 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19804fi
db9f46a9
TG
19805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19806$as_echo "$gcc_cv_math_func_hypot" >&6; }
19807 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 19808
f38a14ca
TG
19809cat >>confdefs.h <<_ACEOF
19810#define HAVE_HYPOT 1
19811_ACEOF
db9f46a9
TG
19812
19813 fi
1409cd0b 19814
1409cd0b 19815
1409cd0b 19816
db9f46a9
TG
19817
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19819$as_echo_n "checking for hypotl... " >&6; }
19820if test "${gcc_cv_math_func_hypotl+set}" = set; then :
5213506e 19821 $as_echo_n "(cached) " >&6
cc6d3bde 19822else
db9f46a9 19823 if test x$gcc_no_link = xyes; then
5213506e 19824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19825fi
5213506e 19826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19827/* end confdefs.h. */
19828
db9f46a9
TG
19829#ifdef HAVE_COMPLEX_H
19830#include <complex.h>
cc6d3bde 19831#endif
db9f46a9
TG
19832#ifdef HAVE_MATH_H
19833#include <math.h>
19834#endif
19835
19836int (*ptr)() = (int (*)())hypotl;
19837
cc6d3bde
SK
19838int
19839main ()
19840{
cc6d3bde
SK
19841 return 0;
19842}
db9f46a9 19843
cc6d3bde 19844_ACEOF
5213506e 19845if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19846 gcc_cv_math_func_hypotl=yes
cc6d3bde 19847else
db9f46a9 19848 gcc_cv_math_func_hypotl=no
cc6d3bde 19849fi
5213506e
RW
19850rm -f core conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19852fi
db9f46a9
TG
19853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19854$as_echo "$gcc_cv_math_func_hypotl" >&6; }
19855 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 19856
f38a14ca
TG
19857cat >>confdefs.h <<_ACEOF
19858#define HAVE_HYPOTL 1
19859_ACEOF
cc6d3bde 19860
db9f46a9 19861 fi
cc6d3bde 19862
cc6d3bde 19863
db9f46a9
TG
19864
19865
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19867$as_echo_n "checking for ldexpf... " >&6; }
19868if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
5213506e 19869 $as_echo_n "(cached) " >&6
cc6d3bde 19870else
db9f46a9 19871 if test x$gcc_no_link = xyes; then
5213506e 19872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19873fi
5213506e 19874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19875/* end confdefs.h. */
19876
db9f46a9
TG
19877#ifdef HAVE_COMPLEX_H
19878#include <complex.h>
19879#endif
19880#ifdef HAVE_MATH_H
19881#include <math.h>
cc6d3bde 19882#endif
db9f46a9
TG
19883
19884int (*ptr)() = (int (*)())ldexpf;
19885
cc6d3bde
SK
19886int
19887main ()
19888{
cc6d3bde
SK
19889 return 0;
19890}
db9f46a9 19891
cc6d3bde 19892_ACEOF
5213506e 19893if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19894 gcc_cv_math_func_ldexpf=yes
cc6d3bde 19895else
db9f46a9 19896 gcc_cv_math_func_ldexpf=no
cc6d3bde 19897fi
5213506e
RW
19898rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19900fi
db9f46a9
TG
19901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19902$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19903 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 19904
f38a14ca
TG
19905cat >>confdefs.h <<_ACEOF
19906#define HAVE_LDEXPF 1
19907_ACEOF
db9f46a9
TG
19908
19909 fi
cc6d3bde 19910
cc6d3bde 19911
cc6d3bde 19912
db9f46a9
TG
19913
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19915$as_echo_n "checking for ldexp... " >&6; }
19916if test "${gcc_cv_math_func_ldexp+set}" = set; then :
5213506e 19917 $as_echo_n "(cached) " >&6
cc6d3bde 19918else
db9f46a9 19919 if test x$gcc_no_link = xyes; then
5213506e 19920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19921fi
5213506e 19922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19923/* end confdefs.h. */
19924
db9f46a9
TG
19925#ifdef HAVE_COMPLEX_H
19926#include <complex.h>
cc6d3bde 19927#endif
db9f46a9
TG
19928#ifdef HAVE_MATH_H
19929#include <math.h>
19930#endif
19931
19932int (*ptr)() = (int (*)())ldexp;
19933
cc6d3bde
SK
19934int
19935main ()
19936{
cc6d3bde
SK
19937 return 0;
19938}
db9f46a9 19939
cc6d3bde 19940_ACEOF
5213506e 19941if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19942 gcc_cv_math_func_ldexp=yes
cc6d3bde 19943else
db9f46a9 19944 gcc_cv_math_func_ldexp=no
cc6d3bde 19945fi
5213506e
RW
19946rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19948fi
db9f46a9
TG
19949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19950$as_echo "$gcc_cv_math_func_ldexp" >&6; }
19951 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 19952
f38a14ca
TG
19953cat >>confdefs.h <<_ACEOF
19954#define HAVE_LDEXP 1
19955_ACEOF
db9f46a9
TG
19956
19957 fi
19958
cc6d3bde 19959
cc6d3bde 19960
cc6d3bde 19961
db9f46a9
TG
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19963$as_echo_n "checking for ldexpl... " >&6; }
19964if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
5213506e 19965 $as_echo_n "(cached) " >&6
1409cd0b 19966else
db9f46a9 19967 if test x$gcc_no_link = xyes; then
5213506e 19968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19969fi
5213506e 19970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19971/* end confdefs.h. */
19972
db9f46a9
TG
19973#ifdef HAVE_COMPLEX_H
19974#include <complex.h>
19975#endif
19976#ifdef HAVE_MATH_H
19977#include <math.h>
1409cd0b 19978#endif
db9f46a9
TG
19979
19980int (*ptr)() = (int (*)())ldexpl;
19981
1409cd0b
FXC
19982int
19983main ()
19984{
1409cd0b
FXC
19985 return 0;
19986}
db9f46a9 19987
1409cd0b 19988_ACEOF
5213506e 19989if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19990 gcc_cv_math_func_ldexpl=yes
1409cd0b 19991else
db9f46a9 19992 gcc_cv_math_func_ldexpl=no
1409cd0b 19993fi
5213506e
RW
19994rm -f core conftest.err conftest.$ac_objext \
19995 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19996fi
db9f46a9
TG
19997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19998$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19999 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20000
f38a14ca
TG
20001cat >>confdefs.h <<_ACEOF
20002#define HAVE_LDEXPL 1
20003_ACEOF
db9f46a9
TG
20004
20005 fi
1409cd0b 20006
1409cd0b 20007
1409cd0b 20008
db9f46a9
TG
20009
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20011$as_echo_n "checking for logf... " >&6; }
20012if test "${gcc_cv_math_func_logf+set}" = set; then :
5213506e 20013 $as_echo_n "(cached) " >&6
1409cd0b 20014else
db9f46a9 20015 if test x$gcc_no_link = xyes; then
5213506e 20016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20017fi
5213506e 20018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20019/* end confdefs.h. */
20020
db9f46a9
TG
20021#ifdef HAVE_COMPLEX_H
20022#include <complex.h>
1409cd0b 20023#endif
db9f46a9
TG
20024#ifdef HAVE_MATH_H
20025#include <math.h>
20026#endif
20027
20028int (*ptr)() = (int (*)())logf;
20029
1409cd0b
FXC
20030int
20031main ()
20032{
1409cd0b
FXC
20033 return 0;
20034}
db9f46a9 20035
1409cd0b 20036_ACEOF
5213506e 20037if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20038 gcc_cv_math_func_logf=yes
1409cd0b 20039else
db9f46a9 20040 gcc_cv_math_func_logf=no
1409cd0b 20041fi
5213506e
RW
20042rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20044fi
db9f46a9
TG
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20046$as_echo "$gcc_cv_math_func_logf" >&6; }
20047 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20048
f38a14ca
TG
20049cat >>confdefs.h <<_ACEOF
20050#define HAVE_LOGF 1
20051_ACEOF
1409cd0b 20052
db9f46a9 20053 fi
1409cd0b 20054
1409cd0b 20055
db9f46a9
TG
20056
20057
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20059$as_echo_n "checking for log... " >&6; }
20060if test "${gcc_cv_math_func_log+set}" = set; then :
5213506e 20061 $as_echo_n "(cached) " >&6
1409cd0b 20062else
db9f46a9 20063 if test x$gcc_no_link = xyes; then
5213506e 20064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20065fi
5213506e 20066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20067/* end confdefs.h. */
20068
db9f46a9
TG
20069#ifdef HAVE_COMPLEX_H
20070#include <complex.h>
20071#endif
20072#ifdef HAVE_MATH_H
20073#include <math.h>
1409cd0b 20074#endif
db9f46a9
TG
20075
20076int (*ptr)() = (int (*)())log;
20077
1409cd0b
FXC
20078int
20079main ()
20080{
1409cd0b
FXC
20081 return 0;
20082}
db9f46a9 20083
1409cd0b 20084_ACEOF
5213506e 20085if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20086 gcc_cv_math_func_log=yes
1409cd0b 20087else
db9f46a9 20088 gcc_cv_math_func_log=no
1409cd0b 20089fi
5213506e
RW
20090rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20092fi
db9f46a9
TG
20093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20094$as_echo "$gcc_cv_math_func_log" >&6; }
20095 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20096
f38a14ca
TG
20097cat >>confdefs.h <<_ACEOF
20098#define HAVE_LOG 1
20099_ACEOF
db9f46a9
TG
20100
20101 fi
1409cd0b 20102
1409cd0b 20103
1409cd0b 20104
db9f46a9
TG
20105
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20107$as_echo_n "checking for logl... " >&6; }
20108if test "${gcc_cv_math_func_logl+set}" = set; then :
5213506e 20109 $as_echo_n "(cached) " >&6
1409cd0b 20110else
db9f46a9 20111 if test x$gcc_no_link = xyes; then
5213506e 20112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20113fi
5213506e 20114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20115/* end confdefs.h. */
20116
db9f46a9
TG
20117#ifdef HAVE_COMPLEX_H
20118#include <complex.h>
1409cd0b 20119#endif
db9f46a9
TG
20120#ifdef HAVE_MATH_H
20121#include <math.h>
20122#endif
20123
20124int (*ptr)() = (int (*)())logl;
20125
1409cd0b
FXC
20126int
20127main ()
20128{
1409cd0b
FXC
20129 return 0;
20130}
db9f46a9 20131
1409cd0b 20132_ACEOF
5213506e 20133if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20134 gcc_cv_math_func_logl=yes
1409cd0b 20135else
db9f46a9 20136 gcc_cv_math_func_logl=no
1409cd0b 20137fi
5213506e
RW
20138rm -f core conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20140fi
db9f46a9
TG
20141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20142$as_echo "$gcc_cv_math_func_logl" >&6; }
20143 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20144
f38a14ca
TG
20145cat >>confdefs.h <<_ACEOF
20146#define HAVE_LOGL 1
20147_ACEOF
db9f46a9
TG
20148
20149 fi
20150
1409cd0b 20151
1409cd0b 20152
1409cd0b 20153
db9f46a9
TG
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20155$as_echo_n "checking for clogf... " >&6; }
20156if test "${gcc_cv_math_func_clogf+set}" = set; then :
5213506e 20157 $as_echo_n "(cached) " >&6
1409cd0b 20158else
db9f46a9 20159 if test x$gcc_no_link = xyes; then
5213506e 20160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20161fi
5213506e 20162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20163/* end confdefs.h. */
20164
db9f46a9
TG
20165#ifdef HAVE_COMPLEX_H
20166#include <complex.h>
20167#endif
20168#ifdef HAVE_MATH_H
20169#include <math.h>
1409cd0b 20170#endif
db9f46a9
TG
20171
20172int (*ptr)() = (int (*)())clogf;
20173
1409cd0b
FXC
20174int
20175main ()
20176{
1409cd0b
FXC
20177 return 0;
20178}
db9f46a9 20179
1409cd0b 20180_ACEOF
5213506e 20181if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20182 gcc_cv_math_func_clogf=yes
1409cd0b 20183else
db9f46a9 20184 gcc_cv_math_func_clogf=no
1409cd0b 20185fi
5213506e
RW
20186rm -f core conftest.err conftest.$ac_objext \
20187 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20188fi
db9f46a9
TG
20189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20190$as_echo "$gcc_cv_math_func_clogf" >&6; }
20191 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20192
f38a14ca
TG
20193cat >>confdefs.h <<_ACEOF
20194#define HAVE_CLOGF 1
20195_ACEOF
db9f46a9
TG
20196
20197 fi
1409cd0b 20198
1409cd0b 20199
1409cd0b 20200
db9f46a9
TG
20201
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20203$as_echo_n "checking for clog... " >&6; }
20204if test "${gcc_cv_math_func_clog+set}" = set; then :
5213506e 20205 $as_echo_n "(cached) " >&6
1409cd0b 20206else
db9f46a9 20207 if test x$gcc_no_link = xyes; then
5213506e 20208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20209fi
5213506e 20210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20211/* end confdefs.h. */
20212
db9f46a9
TG
20213#ifdef HAVE_COMPLEX_H
20214#include <complex.h>
1409cd0b 20215#endif
db9f46a9
TG
20216#ifdef HAVE_MATH_H
20217#include <math.h>
20218#endif
20219
20220int (*ptr)() = (int (*)())clog;
20221
1409cd0b
FXC
20222int
20223main ()
20224{
1409cd0b
FXC
20225 return 0;
20226}
db9f46a9 20227
1409cd0b 20228_ACEOF
5213506e 20229if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20230 gcc_cv_math_func_clog=yes
1409cd0b 20231else
db9f46a9 20232 gcc_cv_math_func_clog=no
1409cd0b 20233fi
5213506e
RW
20234rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20236fi
db9f46a9
TG
20237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20238$as_echo "$gcc_cv_math_func_clog" >&6; }
20239 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20240
f38a14ca
TG
20241cat >>confdefs.h <<_ACEOF
20242#define HAVE_CLOG 1
20243_ACEOF
1409cd0b 20244
db9f46a9 20245 fi
1409cd0b 20246
1409cd0b 20247
db9f46a9
TG
20248
20249
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20251$as_echo_n "checking for clogl... " >&6; }
20252if test "${gcc_cv_math_func_clogl+set}" = set; then :
5213506e 20253 $as_echo_n "(cached) " >&6
1409cd0b 20254else
db9f46a9 20255 if test x$gcc_no_link = xyes; then
5213506e 20256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20257fi
5213506e 20258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20259/* end confdefs.h. */
20260
db9f46a9
TG
20261#ifdef HAVE_COMPLEX_H
20262#include <complex.h>
20263#endif
20264#ifdef HAVE_MATH_H
20265#include <math.h>
1409cd0b 20266#endif
db9f46a9
TG
20267
20268int (*ptr)() = (int (*)())clogl;
20269
1409cd0b
FXC
20270int
20271main ()
20272{
1409cd0b
FXC
20273 return 0;
20274}
db9f46a9 20275
1409cd0b 20276_ACEOF
5213506e 20277if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20278 gcc_cv_math_func_clogl=yes
1409cd0b 20279else
db9f46a9 20280 gcc_cv_math_func_clogl=no
1409cd0b 20281fi
5213506e
RW
20282rm -f core conftest.err conftest.$ac_objext \
20283 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20284fi
db9f46a9
TG
20285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20286$as_echo "$gcc_cv_math_func_clogl" >&6; }
20287 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20288
f38a14ca
TG
20289cat >>confdefs.h <<_ACEOF
20290#define HAVE_CLOGL 1
20291_ACEOF
db9f46a9
TG
20292
20293 fi
1409cd0b 20294
1409cd0b 20295
1409cd0b 20296
db9f46a9
TG
20297
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20299$as_echo_n "checking for log10f... " >&6; }
20300if test "${gcc_cv_math_func_log10f+set}" = set; then :
5213506e 20301 $as_echo_n "(cached) " >&6
1409cd0b 20302else
db9f46a9 20303 if test x$gcc_no_link = xyes; then
5213506e 20304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20305fi
5213506e 20306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20307/* end confdefs.h. */
20308
db9f46a9
TG
20309#ifdef HAVE_COMPLEX_H
20310#include <complex.h>
1409cd0b 20311#endif
db9f46a9
TG
20312#ifdef HAVE_MATH_H
20313#include <math.h>
20314#endif
20315
20316int (*ptr)() = (int (*)())log10f;
20317
1409cd0b
FXC
20318int
20319main ()
20320{
1409cd0b
FXC
20321 return 0;
20322}
db9f46a9 20323
1409cd0b 20324_ACEOF
5213506e 20325if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20326 gcc_cv_math_func_log10f=yes
1409cd0b 20327else
db9f46a9 20328 gcc_cv_math_func_log10f=no
1409cd0b 20329fi
5213506e
RW
20330rm -f core conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20332fi
db9f46a9
TG
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20334$as_echo "$gcc_cv_math_func_log10f" >&6; }
20335 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 20336
f38a14ca
TG
20337cat >>confdefs.h <<_ACEOF
20338#define HAVE_LOG10F 1
20339_ACEOF
db9f46a9
TG
20340
20341 fi
20342
1409cd0b 20343
1409cd0b 20344
1409cd0b 20345
db9f46a9
TG
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20347$as_echo_n "checking for log10... " >&6; }
20348if test "${gcc_cv_math_func_log10+set}" = set; then :
5213506e 20349 $as_echo_n "(cached) " >&6
1409cd0b 20350else
db9f46a9 20351 if test x$gcc_no_link = xyes; then
5213506e 20352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20353fi
5213506e 20354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20355/* end confdefs.h. */
20356
db9f46a9
TG
20357#ifdef HAVE_COMPLEX_H
20358#include <complex.h>
20359#endif
20360#ifdef HAVE_MATH_H
20361#include <math.h>
1409cd0b 20362#endif
db9f46a9
TG
20363
20364int (*ptr)() = (int (*)())log10;
20365
1409cd0b
FXC
20366int
20367main ()
20368{
1409cd0b
FXC
20369 return 0;
20370}
db9f46a9 20371
1409cd0b 20372_ACEOF
5213506e 20373if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20374 gcc_cv_math_func_log10=yes
1409cd0b 20375else
db9f46a9 20376 gcc_cv_math_func_log10=no
1409cd0b 20377fi
5213506e
RW
20378rm -f core conftest.err conftest.$ac_objext \
20379 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20380fi
db9f46a9
TG
20381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20382$as_echo "$gcc_cv_math_func_log10" >&6; }
20383 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 20384
f38a14ca
TG
20385cat >>confdefs.h <<_ACEOF
20386#define HAVE_LOG10 1
20387_ACEOF
db9f46a9
TG
20388
20389 fi
1409cd0b 20390
1409cd0b 20391
1409cd0b 20392
db9f46a9
TG
20393
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20395$as_echo_n "checking for log10l... " >&6; }
20396if test "${gcc_cv_math_func_log10l+set}" = set; then :
5213506e 20397 $as_echo_n "(cached) " >&6
1409cd0b 20398else
db9f46a9 20399 if test x$gcc_no_link = xyes; then
5213506e 20400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20401fi
5213506e 20402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20403/* end confdefs.h. */
20404
db9f46a9
TG
20405#ifdef HAVE_COMPLEX_H
20406#include <complex.h>
1409cd0b 20407#endif
db9f46a9
TG
20408#ifdef HAVE_MATH_H
20409#include <math.h>
20410#endif
20411
20412int (*ptr)() = (int (*)())log10l;
20413
1409cd0b
FXC
20414int
20415main ()
20416{
1409cd0b
FXC
20417 return 0;
20418}
db9f46a9 20419
1409cd0b 20420_ACEOF
5213506e 20421if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20422 gcc_cv_math_func_log10l=yes
1409cd0b 20423else
db9f46a9 20424 gcc_cv_math_func_log10l=no
1409cd0b 20425fi
5213506e
RW
20426rm -f core conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20428fi
db9f46a9
TG
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20430$as_echo "$gcc_cv_math_func_log10l" >&6; }
20431 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 20432
f38a14ca
TG
20433cat >>confdefs.h <<_ACEOF
20434#define HAVE_LOG10L 1
20435_ACEOF
1409cd0b 20436
db9f46a9 20437 fi
1409cd0b 20438
1409cd0b 20439
db9f46a9
TG
20440
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20443$as_echo_n "checking for clog10f... " >&6; }
20444if test "${gcc_cv_math_func_clog10f+set}" = set; then :
5213506e 20445 $as_echo_n "(cached) " >&6
1409cd0b 20446else
db9f46a9 20447 if test x$gcc_no_link = xyes; then
5213506e 20448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20449fi
5213506e 20450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20451/* end confdefs.h. */
20452
db9f46a9
TG
20453#ifdef HAVE_COMPLEX_H
20454#include <complex.h>
20455#endif
20456#ifdef HAVE_MATH_H
20457#include <math.h>
1409cd0b 20458#endif
db9f46a9
TG
20459
20460int (*ptr)() = (int (*)())clog10f;
20461
1409cd0b
FXC
20462int
20463main ()
20464{
1409cd0b
FXC
20465 return 0;
20466}
db9f46a9 20467
1409cd0b 20468_ACEOF
5213506e 20469if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20470 gcc_cv_math_func_clog10f=yes
1409cd0b 20471else
db9f46a9 20472 gcc_cv_math_func_clog10f=no
1409cd0b 20473fi
5213506e
RW
20474rm -f core conftest.err conftest.$ac_objext \
20475 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20476fi
db9f46a9
TG
20477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20478$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20479 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 20480
f38a14ca
TG
20481cat >>confdefs.h <<_ACEOF
20482#define HAVE_CLOG10F 1
20483_ACEOF
db9f46a9
TG
20484
20485 fi
1409cd0b 20486
1409cd0b 20487
1409cd0b 20488
db9f46a9
TG
20489
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20491$as_echo_n "checking for clog10... " >&6; }
20492if test "${gcc_cv_math_func_clog10+set}" = set; then :
5213506e 20493 $as_echo_n "(cached) " >&6
1409cd0b 20494else
db9f46a9 20495 if test x$gcc_no_link = xyes; then
5213506e 20496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20497fi
5213506e 20498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20499/* end confdefs.h. */
20500
db9f46a9
TG
20501#ifdef HAVE_COMPLEX_H
20502#include <complex.h>
1409cd0b 20503#endif
db9f46a9
TG
20504#ifdef HAVE_MATH_H
20505#include <math.h>
20506#endif
20507
20508int (*ptr)() = (int (*)())clog10;
20509
1409cd0b
FXC
20510int
20511main ()
20512{
5213506e
RW
20513 return 0;
20514}
db9f46a9 20515
5213506e
RW
20516_ACEOF
20517if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20518 gcc_cv_math_func_clog10=yes
1409cd0b 20519else
db9f46a9 20520 gcc_cv_math_func_clog10=no
1409cd0b 20521fi
5213506e
RW
20522rm -f core conftest.err conftest.$ac_objext \
20523 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20524fi
db9f46a9
TG
20525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20526$as_echo "$gcc_cv_math_func_clog10" >&6; }
20527 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 20528
f38a14ca
TG
20529cat >>confdefs.h <<_ACEOF
20530#define HAVE_CLOG10 1
20531_ACEOF
db9f46a9
TG
20532
20533 fi
20534
1409cd0b 20535
1409cd0b 20536
1409cd0b 20537
db9f46a9
TG
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20539$as_echo_n "checking for clog10l... " >&6; }
20540if test "${gcc_cv_math_func_clog10l+set}" = set; then :
5213506e 20541 $as_echo_n "(cached) " >&6
1409cd0b 20542else
db9f46a9 20543 if test x$gcc_no_link = xyes; then
5213506e 20544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20545fi
5213506e 20546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20547/* end confdefs.h. */
20548
db9f46a9
TG
20549#ifdef HAVE_COMPLEX_H
20550#include <complex.h>
20551#endif
20552#ifdef HAVE_MATH_H
20553#include <math.h>
1409cd0b 20554#endif
db9f46a9
TG
20555
20556int (*ptr)() = (int (*)())clog10l;
20557
1409cd0b
FXC
20558int
20559main ()
20560{
1409cd0b
FXC
20561 return 0;
20562}
db9f46a9 20563
1409cd0b 20564_ACEOF
5213506e 20565if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20566 gcc_cv_math_func_clog10l=yes
1409cd0b 20567else
db9f46a9 20568 gcc_cv_math_func_clog10l=no
1409cd0b 20569fi
5213506e
RW
20570rm -f core conftest.err conftest.$ac_objext \
20571 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20572fi
db9f46a9
TG
20573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20574$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20575 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 20576
f38a14ca
TG
20577cat >>confdefs.h <<_ACEOF
20578#define HAVE_CLOG10L 1
20579_ACEOF
db9f46a9
TG
20580
20581 fi
1409cd0b 20582
1409cd0b 20583
1409cd0b 20584
db9f46a9
TG
20585
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20587$as_echo_n "checking for nextafterf... " >&6; }
20588if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
5213506e 20589 $as_echo_n "(cached) " >&6
1409cd0b 20590else
db9f46a9 20591 if test x$gcc_no_link = xyes; then
5213506e 20592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20593fi
5213506e 20594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20595/* end confdefs.h. */
20596
db9f46a9
TG
20597#ifdef HAVE_COMPLEX_H
20598#include <complex.h>
1409cd0b 20599#endif
db9f46a9
TG
20600#ifdef HAVE_MATH_H
20601#include <math.h>
20602#endif
20603
20604int (*ptr)() = (int (*)())nextafterf;
20605
1409cd0b
FXC
20606int
20607main ()
20608{
1409cd0b
FXC
20609 return 0;
20610}
db9f46a9 20611
1409cd0b 20612_ACEOF
5213506e 20613if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20614 gcc_cv_math_func_nextafterf=yes
1409cd0b 20615else
db9f46a9 20616 gcc_cv_math_func_nextafterf=no
1409cd0b 20617fi
5213506e
RW
20618rm -f core conftest.err conftest.$ac_objext \
20619 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20620fi
db9f46a9
TG
20621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20622$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20623 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 20624
f38a14ca
TG
20625cat >>confdefs.h <<_ACEOF
20626#define HAVE_NEXTAFTERF 1
20627_ACEOF
1409cd0b 20628
db9f46a9 20629 fi
1409cd0b 20630
1409cd0b 20631
db9f46a9
TG
20632
20633
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20635$as_echo_n "checking for nextafter... " >&6; }
20636if test "${gcc_cv_math_func_nextafter+set}" = set; then :
5213506e 20637 $as_echo_n "(cached) " >&6
1409cd0b 20638else
db9f46a9 20639 if test x$gcc_no_link = xyes; then
5213506e 20640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20641fi
5213506e 20642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20643/* end confdefs.h. */
20644
db9f46a9
TG
20645#ifdef HAVE_COMPLEX_H
20646#include <complex.h>
20647#endif
20648#ifdef HAVE_MATH_H
20649#include <math.h>
1409cd0b 20650#endif
db9f46a9
TG
20651
20652int (*ptr)() = (int (*)())nextafter;
20653
1409cd0b
FXC
20654int
20655main ()
20656{
1409cd0b
FXC
20657 return 0;
20658}
db9f46a9 20659
1409cd0b 20660_ACEOF
5213506e 20661if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20662 gcc_cv_math_func_nextafter=yes
1409cd0b 20663else
db9f46a9 20664 gcc_cv_math_func_nextafter=no
1409cd0b 20665fi
5213506e
RW
20666rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20668fi
db9f46a9
TG
20669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20670$as_echo "$gcc_cv_math_func_nextafter" >&6; }
20671 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 20672
f38a14ca
TG
20673cat >>confdefs.h <<_ACEOF
20674#define HAVE_NEXTAFTER 1
20675_ACEOF
db9f46a9
TG
20676
20677 fi
1409cd0b 20678
1409cd0b 20679
1409cd0b 20680
db9f46a9
TG
20681
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20683$as_echo_n "checking for nextafterl... " >&6; }
20684if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
5213506e 20685 $as_echo_n "(cached) " >&6
1409cd0b 20686else
db9f46a9 20687 if test x$gcc_no_link = xyes; then
5213506e 20688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20689fi
5213506e 20690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20691/* end confdefs.h. */
20692
db9f46a9
TG
20693#ifdef HAVE_COMPLEX_H
20694#include <complex.h>
1409cd0b 20695#endif
db9f46a9
TG
20696#ifdef HAVE_MATH_H
20697#include <math.h>
20698#endif
20699
20700int (*ptr)() = (int (*)())nextafterl;
20701
1409cd0b
FXC
20702int
20703main ()
20704{
1409cd0b
FXC
20705 return 0;
20706}
db9f46a9 20707
1409cd0b 20708_ACEOF
5213506e 20709if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20710 gcc_cv_math_func_nextafterl=yes
1409cd0b 20711else
db9f46a9 20712 gcc_cv_math_func_nextafterl=no
1409cd0b 20713fi
5213506e
RW
20714rm -f core conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20716fi
db9f46a9
TG
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20718$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20719 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 20720
f38a14ca
TG
20721cat >>confdefs.h <<_ACEOF
20722#define HAVE_NEXTAFTERL 1
20723_ACEOF
db9f46a9
TG
20724
20725 fi
20726
1409cd0b 20727
1409cd0b 20728
1409cd0b 20729
db9f46a9
TG
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20731$as_echo_n "checking for powf... " >&6; }
20732if test "${gcc_cv_math_func_powf+set}" = set; then :
5213506e 20733 $as_echo_n "(cached) " >&6
1409cd0b 20734else
db9f46a9 20735 if test x$gcc_no_link = xyes; then
5213506e 20736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20737fi
5213506e 20738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20739/* end confdefs.h. */
20740
db9f46a9
TG
20741#ifdef HAVE_COMPLEX_H
20742#include <complex.h>
20743#endif
20744#ifdef HAVE_MATH_H
20745#include <math.h>
1409cd0b 20746#endif
db9f46a9
TG
20747
20748int (*ptr)() = (int (*)())powf;
20749
1409cd0b
FXC
20750int
20751main ()
20752{
1409cd0b
FXC
20753 return 0;
20754}
db9f46a9 20755
1409cd0b 20756_ACEOF
5213506e 20757if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20758 gcc_cv_math_func_powf=yes
1409cd0b 20759else
db9f46a9 20760 gcc_cv_math_func_powf=no
1409cd0b 20761fi
5213506e
RW
20762rm -f core conftest.err conftest.$ac_objext \
20763 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20764fi
db9f46a9
TG
20765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20766$as_echo "$gcc_cv_math_func_powf" >&6; }
20767 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 20768
f38a14ca
TG
20769cat >>confdefs.h <<_ACEOF
20770#define HAVE_POWF 1
20771_ACEOF
db9f46a9
TG
20772
20773 fi
1409cd0b 20774
1409cd0b 20775
1409cd0b 20776
db9f46a9
TG
20777
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20779$as_echo_n "checking for pow... " >&6; }
20780if test "${gcc_cv_math_func_pow+set}" = set; then :
5213506e 20781 $as_echo_n "(cached) " >&6
1409cd0b 20782else
db9f46a9 20783 if test x$gcc_no_link = xyes; then
5213506e 20784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20785fi
5213506e 20786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20787/* end confdefs.h. */
20788
db9f46a9
TG
20789#ifdef HAVE_COMPLEX_H
20790#include <complex.h>
1409cd0b 20791#endif
db9f46a9
TG
20792#ifdef HAVE_MATH_H
20793#include <math.h>
20794#endif
20795
20796int (*ptr)() = (int (*)())pow;
20797
1409cd0b
FXC
20798int
20799main ()
20800{
1409cd0b
FXC
20801 return 0;
20802}
db9f46a9 20803
1409cd0b 20804_ACEOF
5213506e 20805if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20806 gcc_cv_math_func_pow=yes
1409cd0b 20807else
db9f46a9 20808 gcc_cv_math_func_pow=no
1409cd0b 20809fi
5213506e
RW
20810rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20812fi
db9f46a9
TG
20813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20814$as_echo "$gcc_cv_math_func_pow" >&6; }
20815 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 20816
f38a14ca
TG
20817cat >>confdefs.h <<_ACEOF
20818#define HAVE_POW 1
20819_ACEOF
1409cd0b 20820
db9f46a9 20821 fi
1409cd0b 20822
1409cd0b 20823
db9f46a9
TG
20824
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20827$as_echo_n "checking for powl... " >&6; }
20828if test "${gcc_cv_math_func_powl+set}" = set; then :
5213506e 20829 $as_echo_n "(cached) " >&6
1409cd0b 20830else
db9f46a9 20831 if test x$gcc_no_link = xyes; then
5213506e 20832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20833fi
5213506e 20834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20835/* end confdefs.h. */
20836
db9f46a9
TG
20837#ifdef HAVE_COMPLEX_H
20838#include <complex.h>
20839#endif
20840#ifdef HAVE_MATH_H
20841#include <math.h>
1409cd0b 20842#endif
db9f46a9
TG
20843
20844int (*ptr)() = (int (*)())powl;
20845
1409cd0b
FXC
20846int
20847main ()
20848{
1409cd0b
FXC
20849 return 0;
20850}
db9f46a9 20851
1409cd0b 20852_ACEOF
5213506e 20853if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20854 gcc_cv_math_func_powl=yes
1409cd0b 20855else
db9f46a9 20856 gcc_cv_math_func_powl=no
1409cd0b 20857fi
5213506e
RW
20858rm -f core conftest.err conftest.$ac_objext \
20859 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20860fi
db9f46a9
TG
20861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20862$as_echo "$gcc_cv_math_func_powl" >&6; }
20863 if test $gcc_cv_math_func_powl = yes; then
f1cdfa01 20864
f38a14ca
TG
20865cat >>confdefs.h <<_ACEOF
20866#define HAVE_POWL 1
20867_ACEOF
db9f46a9
TG
20868
20869 fi
1409cd0b 20870
1409cd0b 20871
1409cd0b 20872
db9f46a9
TG
20873
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20875$as_echo_n "checking for cpowf... " >&6; }
20876if test "${gcc_cv_math_func_cpowf+set}" = set; then :
5213506e 20877 $as_echo_n "(cached) " >&6
1409cd0b 20878else
db9f46a9 20879 if test x$gcc_no_link = xyes; then
5213506e 20880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20881fi
5213506e 20882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20883/* end confdefs.h. */
20884
db9f46a9
TG
20885#ifdef HAVE_COMPLEX_H
20886#include <complex.h>
1409cd0b 20887#endif
db9f46a9
TG
20888#ifdef HAVE_MATH_H
20889#include <math.h>
20890#endif
20891
20892int (*ptr)() = (int (*)())cpowf;
20893
1409cd0b
FXC
20894int
20895main ()
20896{
1409cd0b
FXC
20897 return 0;
20898}
db9f46a9 20899
1409cd0b 20900_ACEOF
5213506e 20901if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20902 gcc_cv_math_func_cpowf=yes
1409cd0b 20903else
db9f46a9 20904 gcc_cv_math_func_cpowf=no
1409cd0b 20905fi
5213506e
RW
20906rm -f core conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20908fi
db9f46a9
TG
20909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20910$as_echo "$gcc_cv_math_func_cpowf" >&6; }
20911 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 20912
f38a14ca
TG
20913cat >>confdefs.h <<_ACEOF
20914#define HAVE_CPOWF 1
20915_ACEOF
db9f46a9
TG
20916
20917 fi
20918
1409cd0b 20919
1409cd0b 20920
1409cd0b 20921
db9f46a9
TG
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20923$as_echo_n "checking for cpow... " >&6; }
20924if test "${gcc_cv_math_func_cpow+set}" = set; then :
5213506e 20925 $as_echo_n "(cached) " >&6
1409cd0b 20926else
db9f46a9 20927 if test x$gcc_no_link = xyes; then
5213506e 20928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20929fi
5213506e 20930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20931/* end confdefs.h. */
20932
db9f46a9
TG
20933#ifdef HAVE_COMPLEX_H
20934#include <complex.h>
20935#endif
20936#ifdef HAVE_MATH_H
20937#include <math.h>
1409cd0b 20938#endif
db9f46a9
TG
20939
20940int (*ptr)() = (int (*)())cpow;
20941
1409cd0b
FXC
20942int
20943main ()
20944{
1409cd0b
FXC
20945 return 0;
20946}
db9f46a9 20947
1409cd0b 20948_ACEOF
5213506e 20949if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20950 gcc_cv_math_func_cpow=yes
1409cd0b 20951else
db9f46a9 20952 gcc_cv_math_func_cpow=no
1409cd0b 20953fi
5213506e
RW
20954rm -f core conftest.err conftest.$ac_objext \
20955 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20956fi
db9f46a9
TG
20957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20958$as_echo "$gcc_cv_math_func_cpow" >&6; }
20959 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 20960
f38a14ca
TG
20961cat >>confdefs.h <<_ACEOF
20962#define HAVE_CPOW 1
20963_ACEOF
db9f46a9
TG
20964
20965 fi
1409cd0b 20966
1409cd0b 20967
1409cd0b 20968
db9f46a9
TG
20969
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20971$as_echo_n "checking for cpowl... " >&6; }
20972if test "${gcc_cv_math_func_cpowl+set}" = set; then :
5213506e 20973 $as_echo_n "(cached) " >&6
1409cd0b 20974else
db9f46a9 20975 if test x$gcc_no_link = xyes; then
5213506e 20976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20977fi
5213506e 20978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20979/* end confdefs.h. */
20980
db9f46a9
TG
20981#ifdef HAVE_COMPLEX_H
20982#include <complex.h>
1409cd0b 20983#endif
db9f46a9
TG
20984#ifdef HAVE_MATH_H
20985#include <math.h>
20986#endif
20987
20988int (*ptr)() = (int (*)())cpowl;
20989
1409cd0b
FXC
20990int
20991main ()
20992{
1409cd0b
FXC
20993 return 0;
20994}
db9f46a9 20995
1409cd0b 20996_ACEOF
5213506e 20997if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20998 gcc_cv_math_func_cpowl=yes
1409cd0b 20999else
db9f46a9 21000 gcc_cv_math_func_cpowl=no
1409cd0b 21001fi
5213506e
RW
21002rm -f core conftest.err conftest.$ac_objext \
21003 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21004fi
db9f46a9
TG
21005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21006$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21007 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21008
f38a14ca
TG
21009cat >>confdefs.h <<_ACEOF
21010#define HAVE_CPOWL 1
21011_ACEOF
1409cd0b 21012
db9f46a9 21013 fi
1409cd0b 21014
1409cd0b 21015
db9f46a9
TG
21016
21017
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21019$as_echo_n "checking for roundf... " >&6; }
21020if test "${gcc_cv_math_func_roundf+set}" = set; then :
5213506e 21021 $as_echo_n "(cached) " >&6
1409cd0b 21022else
db9f46a9 21023 if test x$gcc_no_link = xyes; then
5213506e 21024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21025fi
5213506e 21026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21027/* end confdefs.h. */
21028
db9f46a9
TG
21029#ifdef HAVE_COMPLEX_H
21030#include <complex.h>
21031#endif
21032#ifdef HAVE_MATH_H
21033#include <math.h>
1409cd0b 21034#endif
db9f46a9
TG
21035
21036int (*ptr)() = (int (*)())roundf;
21037
1409cd0b
FXC
21038int
21039main ()
21040{
1409cd0b
FXC
21041 return 0;
21042}
db9f46a9 21043
1409cd0b 21044_ACEOF
5213506e 21045if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21046 gcc_cv_math_func_roundf=yes
1409cd0b 21047else
db9f46a9 21048 gcc_cv_math_func_roundf=no
1409cd0b 21049fi
5213506e
RW
21050rm -f core conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21052fi
db9f46a9
TG
21053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21054$as_echo "$gcc_cv_math_func_roundf" >&6; }
21055 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21056
f38a14ca
TG
21057cat >>confdefs.h <<_ACEOF
21058#define HAVE_ROUNDF 1
21059_ACEOF
db9f46a9
TG
21060
21061 fi
1409cd0b 21062
1409cd0b 21063
1409cd0b 21064
db9f46a9
TG
21065
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21067$as_echo_n "checking for round... " >&6; }
21068if test "${gcc_cv_math_func_round+set}" = set; then :
5213506e 21069 $as_echo_n "(cached) " >&6
1409cd0b 21070else
db9f46a9 21071 if test x$gcc_no_link = xyes; then
5213506e 21072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21073fi
5213506e 21074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21075/* end confdefs.h. */
21076
db9f46a9
TG
21077#ifdef HAVE_COMPLEX_H
21078#include <complex.h>
1409cd0b 21079#endif
db9f46a9
TG
21080#ifdef HAVE_MATH_H
21081#include <math.h>
21082#endif
21083
21084int (*ptr)() = (int (*)())round;
21085
1409cd0b
FXC
21086int
21087main ()
21088{
1409cd0b
FXC
21089 return 0;
21090}
db9f46a9 21091
1409cd0b 21092_ACEOF
5213506e 21093if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21094 gcc_cv_math_func_round=yes
1409cd0b 21095else
db9f46a9 21096 gcc_cv_math_func_round=no
1409cd0b 21097fi
5213506e
RW
21098rm -f core conftest.err conftest.$ac_objext \
21099 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21100fi
db9f46a9
TG
21101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21102$as_echo "$gcc_cv_math_func_round" >&6; }
21103 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21104
f38a14ca
TG
21105cat >>confdefs.h <<_ACEOF
21106#define HAVE_ROUND 1
21107_ACEOF
db9f46a9
TG
21108
21109 fi
21110
1409cd0b 21111
1409cd0b 21112
1409cd0b 21113
db9f46a9
TG
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21115$as_echo_n "checking for roundl... " >&6; }
21116if test "${gcc_cv_math_func_roundl+set}" = set; then :
5213506e 21117 $as_echo_n "(cached) " >&6
94f548c2 21118else
db9f46a9 21119 if test x$gcc_no_link = xyes; then
5213506e 21120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21121fi
5213506e 21122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21123/* end confdefs.h. */
21124
db9f46a9
TG
21125#ifdef HAVE_COMPLEX_H
21126#include <complex.h>
21127#endif
21128#ifdef HAVE_MATH_H
21129#include <math.h>
94f548c2 21130#endif
db9f46a9
TG
21131
21132int (*ptr)() = (int (*)())roundl;
21133
94f548c2
FXC
21134int
21135main ()
21136{
94f548c2
FXC
21137 return 0;
21138}
db9f46a9 21139
94f548c2 21140_ACEOF
5213506e 21141if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21142 gcc_cv_math_func_roundl=yes
94f548c2 21143else
db9f46a9 21144 gcc_cv_math_func_roundl=no
94f548c2 21145fi
5213506e
RW
21146rm -f core conftest.err conftest.$ac_objext \
21147 conftest$ac_exeext conftest.$ac_ext
94f548c2 21148fi
db9f46a9
TG
21149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21150$as_echo "$gcc_cv_math_func_roundl" >&6; }
21151 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21152
f38a14ca
TG
21153cat >>confdefs.h <<_ACEOF
21154#define HAVE_ROUNDL 1
21155_ACEOF
db9f46a9
TG
21156
21157 fi
94f548c2 21158
94f548c2 21159
94f548c2 21160
db9f46a9
TG
21161
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21163$as_echo_n "checking for lroundf... " >&6; }
21164if test "${gcc_cv_math_func_lroundf+set}" = set; then :
5213506e 21165 $as_echo_n "(cached) " >&6
94f548c2 21166else
db9f46a9 21167 if test x$gcc_no_link = xyes; then
5213506e 21168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21169fi
5213506e 21170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21171/* end confdefs.h. */
21172
db9f46a9
TG
21173#ifdef HAVE_COMPLEX_H
21174#include <complex.h>
94f548c2 21175#endif
db9f46a9
TG
21176#ifdef HAVE_MATH_H
21177#include <math.h>
21178#endif
21179
21180int (*ptr)() = (int (*)())lroundf;
21181
94f548c2
FXC
21182int
21183main ()
21184{
94f548c2
FXC
21185 return 0;
21186}
db9f46a9 21187
94f548c2 21188_ACEOF
5213506e 21189if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21190 gcc_cv_math_func_lroundf=yes
94f548c2 21191else
db9f46a9 21192 gcc_cv_math_func_lroundf=no
94f548c2 21193fi
5213506e
RW
21194rm -f core conftest.err conftest.$ac_objext \
21195 conftest$ac_exeext conftest.$ac_ext
94f548c2 21196fi
db9f46a9
TG
21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21198$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21199 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21200
f38a14ca
TG
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_LROUNDF 1
21203_ACEOF
94f548c2 21204
db9f46a9 21205 fi
94f548c2 21206
94f548c2 21207
db9f46a9
TG
21208
21209
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21211$as_echo_n "checking for lround... " >&6; }
21212if test "${gcc_cv_math_func_lround+set}" = set; then :
5213506e 21213 $as_echo_n "(cached) " >&6
94f548c2 21214else
db9f46a9 21215 if test x$gcc_no_link = xyes; then
5213506e 21216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21217fi
5213506e 21218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21219/* end confdefs.h. */
21220
db9f46a9
TG
21221#ifdef HAVE_COMPLEX_H
21222#include <complex.h>
21223#endif
21224#ifdef HAVE_MATH_H
21225#include <math.h>
94f548c2 21226#endif
db9f46a9
TG
21227
21228int (*ptr)() = (int (*)())lround;
21229
94f548c2
FXC
21230int
21231main ()
21232{
94f548c2
FXC
21233 return 0;
21234}
db9f46a9 21235
94f548c2 21236_ACEOF
5213506e 21237if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21238 gcc_cv_math_func_lround=yes
94f548c2 21239else
db9f46a9 21240 gcc_cv_math_func_lround=no
94f548c2 21241fi
5213506e
RW
21242rm -f core conftest.err conftest.$ac_objext \
21243 conftest$ac_exeext conftest.$ac_ext
94f548c2 21244fi
db9f46a9
TG
21245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21246$as_echo "$gcc_cv_math_func_lround" >&6; }
21247 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21248
f38a14ca
TG
21249cat >>confdefs.h <<_ACEOF
21250#define HAVE_LROUND 1
21251_ACEOF
db9f46a9
TG
21252
21253 fi
21254
94f548c2 21255
94f548c2 21256
94f548c2 21257
db9f46a9
TG
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21259$as_echo_n "checking for lroundl... " >&6; }
21260if test "${gcc_cv_math_func_lroundl+set}" = set; then :
5213506e 21261 $as_echo_n "(cached) " >&6
94f548c2 21262else
db9f46a9 21263 if test x$gcc_no_link = xyes; then
5213506e 21264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21265fi
5213506e 21266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21267/* end confdefs.h. */
21268
db9f46a9
TG
21269#ifdef HAVE_COMPLEX_H
21270#include <complex.h>
21271#endif
21272#ifdef HAVE_MATH_H
21273#include <math.h>
94f548c2 21274#endif
db9f46a9
TG
21275
21276int (*ptr)() = (int (*)())lroundl;
21277
94f548c2
FXC
21278int
21279main ()
21280{
94f548c2
FXC
21281 return 0;
21282}
db9f46a9 21283
94f548c2 21284_ACEOF
5213506e 21285if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21286 gcc_cv_math_func_lroundl=yes
94f548c2 21287else
db9f46a9 21288 gcc_cv_math_func_lroundl=no
94f548c2 21289fi
5213506e
RW
21290rm -f core conftest.err conftest.$ac_objext \
21291 conftest$ac_exeext conftest.$ac_ext
94f548c2 21292fi
db9f46a9
TG
21293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21294$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21295 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21296
f38a14ca
TG
21297cat >>confdefs.h <<_ACEOF
21298#define HAVE_LROUNDL 1
21299_ACEOF
94f548c2 21300
db9f46a9 21301 fi
94f548c2 21302
94f548c2 21303
db9f46a9
TG
21304
21305
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21307$as_echo_n "checking for llroundf... " >&6; }
21308if test "${gcc_cv_math_func_llroundf+set}" = set; then :
5213506e 21309 $as_echo_n "(cached) " >&6
94f548c2 21310else
db9f46a9 21311 if test x$gcc_no_link = xyes; then
5213506e 21312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21313fi
5213506e 21314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21315/* end confdefs.h. */
21316
db9f46a9
TG
21317#ifdef HAVE_COMPLEX_H
21318#include <complex.h>
94f548c2 21319#endif
db9f46a9
TG
21320#ifdef HAVE_MATH_H
21321#include <math.h>
21322#endif
21323
21324int (*ptr)() = (int (*)())llroundf;
21325
94f548c2
FXC
21326int
21327main ()
21328{
94f548c2
FXC
21329 return 0;
21330}
db9f46a9 21331
94f548c2 21332_ACEOF
5213506e 21333if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21334 gcc_cv_math_func_llroundf=yes
94f548c2 21335else
db9f46a9 21336 gcc_cv_math_func_llroundf=no
94f548c2 21337fi
5213506e
RW
21338rm -f core conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
94f548c2 21340fi
db9f46a9
TG
21341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21342$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21343 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21344
f38a14ca
TG
21345cat >>confdefs.h <<_ACEOF
21346#define HAVE_LLROUNDF 1
21347_ACEOF
94f548c2 21348
db9f46a9 21349 fi
94f548c2 21350
94f548c2 21351
db9f46a9
TG
21352
21353
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21355$as_echo_n "checking for llround... " >&6; }
21356if test "${gcc_cv_math_func_llround+set}" = set; then :
5213506e 21357 $as_echo_n "(cached) " >&6
94f548c2 21358else
db9f46a9 21359 if test x$gcc_no_link = xyes; then
5213506e 21360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21361fi
5213506e 21362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21363/* end confdefs.h. */
21364
db9f46a9
TG
21365#ifdef HAVE_COMPLEX_H
21366#include <complex.h>
21367#endif
21368#ifdef HAVE_MATH_H
21369#include <math.h>
94f548c2 21370#endif
db9f46a9
TG
21371
21372int (*ptr)() = (int (*)())llround;
21373
94f548c2
FXC
21374int
21375main ()
21376{
94f548c2
FXC
21377 return 0;
21378}
db9f46a9 21379
94f548c2 21380_ACEOF
5213506e 21381if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21382 gcc_cv_math_func_llround=yes
94f548c2 21383else
db9f46a9 21384 gcc_cv_math_func_llround=no
94f548c2 21385fi
5213506e
RW
21386rm -f core conftest.err conftest.$ac_objext \
21387 conftest$ac_exeext conftest.$ac_ext
94f548c2 21388fi
db9f46a9
TG
21389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21390$as_echo "$gcc_cv_math_func_llround" >&6; }
21391 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 21392
f38a14ca
TG
21393cat >>confdefs.h <<_ACEOF
21394#define HAVE_LLROUND 1
21395_ACEOF
db9f46a9
TG
21396
21397 fi
21398
94f548c2 21399
94f548c2 21400
94f548c2 21401
db9f46a9
TG
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21403$as_echo_n "checking for llroundl... " >&6; }
21404if test "${gcc_cv_math_func_llroundl+set}" = set; then :
5213506e 21405 $as_echo_n "(cached) " >&6
1409cd0b 21406else
db9f46a9 21407 if test x$gcc_no_link = xyes; then
5213506e 21408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21409fi
5213506e 21410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21411/* end confdefs.h. */
21412
db9f46a9
TG
21413#ifdef HAVE_COMPLEX_H
21414#include <complex.h>
21415#endif
21416#ifdef HAVE_MATH_H
21417#include <math.h>
1409cd0b 21418#endif
db9f46a9
TG
21419
21420int (*ptr)() = (int (*)())llroundl;
21421
1409cd0b
FXC
21422int
21423main ()
21424{
1409cd0b
FXC
21425 return 0;
21426}
db9f46a9 21427
1409cd0b 21428_ACEOF
5213506e 21429if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21430 gcc_cv_math_func_llroundl=yes
1409cd0b 21431else
db9f46a9 21432 gcc_cv_math_func_llroundl=no
1409cd0b 21433fi
5213506e
RW
21434rm -f core conftest.err conftest.$ac_objext \
21435 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21436fi
db9f46a9
TG
21437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21438$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21439 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 21440
f38a14ca
TG
21441cat >>confdefs.h <<_ACEOF
21442#define HAVE_LLROUNDL 1
21443_ACEOF
1409cd0b 21444
db9f46a9 21445 fi
1409cd0b 21446
1409cd0b 21447
db9f46a9
TG
21448
21449
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21451$as_echo_n "checking for scalbnf... " >&6; }
21452if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
5213506e 21453 $as_echo_n "(cached) " >&6
1409cd0b 21454else
db9f46a9 21455 if test x$gcc_no_link = xyes; then
5213506e 21456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21457fi
5213506e 21458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21459/* end confdefs.h. */
21460
db9f46a9
TG
21461#ifdef HAVE_COMPLEX_H
21462#include <complex.h>
1409cd0b 21463#endif
db9f46a9
TG
21464#ifdef HAVE_MATH_H
21465#include <math.h>
21466#endif
21467
21468int (*ptr)() = (int (*)())scalbnf;
21469
1409cd0b
FXC
21470int
21471main ()
21472{
1409cd0b
FXC
21473 return 0;
21474}
db9f46a9 21475
1409cd0b 21476_ACEOF
5213506e 21477if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21478 gcc_cv_math_func_scalbnf=yes
1409cd0b 21479else
db9f46a9 21480 gcc_cv_math_func_scalbnf=no
1409cd0b 21481fi
5213506e
RW
21482rm -f core conftest.err conftest.$ac_objext \
21483 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21484fi
db9f46a9
TG
21485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21486$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21487 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 21488
f38a14ca
TG
21489cat >>confdefs.h <<_ACEOF
21490#define HAVE_SCALBNF 1
21491_ACEOF
1409cd0b 21492
db9f46a9 21493 fi
1409cd0b 21494
1409cd0b 21495
db9f46a9
TG
21496
21497
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21499$as_echo_n "checking for scalbn... " >&6; }
21500if test "${gcc_cv_math_func_scalbn+set}" = set; then :
5213506e 21501 $as_echo_n "(cached) " >&6
1409cd0b 21502else
db9f46a9 21503 if test x$gcc_no_link = xyes; then
5213506e 21504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21505fi
5213506e 21506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21507/* end confdefs.h. */
21508
db9f46a9
TG
21509#ifdef HAVE_COMPLEX_H
21510#include <complex.h>
21511#endif
21512#ifdef HAVE_MATH_H
21513#include <math.h>
1409cd0b 21514#endif
db9f46a9
TG
21515
21516int (*ptr)() = (int (*)())scalbn;
21517
1409cd0b
FXC
21518int
21519main ()
21520{
1409cd0b
FXC
21521 return 0;
21522}
db9f46a9 21523
1409cd0b 21524_ACEOF
5213506e 21525if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21526 gcc_cv_math_func_scalbn=yes
1409cd0b 21527else
db9f46a9 21528 gcc_cv_math_func_scalbn=no
1409cd0b 21529fi
5213506e
RW
21530rm -f core conftest.err conftest.$ac_objext \
21531 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21532fi
db9f46a9
TG
21533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21534$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21535 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 21536
f38a14ca
TG
21537cat >>confdefs.h <<_ACEOF
21538#define HAVE_SCALBN 1
21539_ACEOF
db9f46a9
TG
21540
21541 fi
21542
1409cd0b 21543
1409cd0b 21544
1409cd0b 21545
db9f46a9
TG
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21547$as_echo_n "checking for scalbnl... " >&6; }
21548if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
5213506e 21549 $as_echo_n "(cached) " >&6
1409cd0b 21550else
db9f46a9 21551 if test x$gcc_no_link = xyes; then
5213506e 21552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21553fi
5213506e 21554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21555/* end confdefs.h. */
21556
db9f46a9
TG
21557#ifdef HAVE_COMPLEX_H
21558#include <complex.h>
21559#endif
21560#ifdef HAVE_MATH_H
21561#include <math.h>
1409cd0b 21562#endif
db9f46a9
TG
21563
21564int (*ptr)() = (int (*)())scalbnl;
21565
1409cd0b
FXC
21566int
21567main ()
21568{
1409cd0b
FXC
21569 return 0;
21570}
db9f46a9 21571
1409cd0b 21572_ACEOF
5213506e 21573if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21574 gcc_cv_math_func_scalbnl=yes
1409cd0b 21575else
db9f46a9 21576 gcc_cv_math_func_scalbnl=no
1409cd0b 21577fi
5213506e
RW
21578rm -f core conftest.err conftest.$ac_objext \
21579 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21580fi
db9f46a9
TG
21581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21582$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21583 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 21584
f38a14ca
TG
21585cat >>confdefs.h <<_ACEOF
21586#define HAVE_SCALBNL 1
21587_ACEOF
1409cd0b 21588
db9f46a9 21589 fi
1409cd0b 21590
1409cd0b 21591
db9f46a9
TG
21592
21593
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21595$as_echo_n "checking for sinf... " >&6; }
21596if test "${gcc_cv_math_func_sinf+set}" = set; then :
5213506e 21597 $as_echo_n "(cached) " >&6
1409cd0b 21598else
db9f46a9 21599 if test x$gcc_no_link = xyes; then
5213506e 21600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21601fi
5213506e 21602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21603/* end confdefs.h. */
21604
db9f46a9
TG
21605#ifdef HAVE_COMPLEX_H
21606#include <complex.h>
1409cd0b 21607#endif
db9f46a9
TG
21608#ifdef HAVE_MATH_H
21609#include <math.h>
21610#endif
21611
21612int (*ptr)() = (int (*)())sinf;
21613
1409cd0b
FXC
21614int
21615main ()
21616{
1409cd0b
FXC
21617 return 0;
21618}
db9f46a9 21619
1409cd0b 21620_ACEOF
5213506e 21621if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21622 gcc_cv_math_func_sinf=yes
1409cd0b 21623else
db9f46a9 21624 gcc_cv_math_func_sinf=no
1409cd0b 21625fi
5213506e
RW
21626rm -f core conftest.err conftest.$ac_objext \
21627 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21628fi
db9f46a9
TG
21629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21630$as_echo "$gcc_cv_math_func_sinf" >&6; }
21631 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 21632
f38a14ca
TG
21633cat >>confdefs.h <<_ACEOF
21634#define HAVE_SINF 1
21635_ACEOF
1409cd0b 21636
db9f46a9 21637 fi
1409cd0b 21638
1409cd0b 21639
db9f46a9
TG
21640
21641
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21643$as_echo_n "checking for sin... " >&6; }
21644if test "${gcc_cv_math_func_sin+set}" = set; then :
5213506e 21645 $as_echo_n "(cached) " >&6
1409cd0b 21646else
db9f46a9 21647 if test x$gcc_no_link = xyes; then
5213506e 21648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21649fi
5213506e 21650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21651/* end confdefs.h. */
21652
db9f46a9
TG
21653#ifdef HAVE_COMPLEX_H
21654#include <complex.h>
1409cd0b 21655#endif
db9f46a9
TG
21656#ifdef HAVE_MATH_H
21657#include <math.h>
21658#endif
21659
21660int (*ptr)() = (int (*)())sin;
21661
1409cd0b
FXC
21662int
21663main ()
21664{
1409cd0b
FXC
21665 return 0;
21666}
db9f46a9 21667
1409cd0b 21668_ACEOF
5213506e 21669if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21670 gcc_cv_math_func_sin=yes
1409cd0b 21671else
db9f46a9 21672 gcc_cv_math_func_sin=no
1409cd0b 21673fi
5213506e
RW
21674rm -f core conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21676fi
db9f46a9
TG
21677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21678$as_echo "$gcc_cv_math_func_sin" >&6; }
21679 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 21680
f38a14ca
TG
21681cat >>confdefs.h <<_ACEOF
21682#define HAVE_SIN 1
21683_ACEOF
db9f46a9
TG
21684
21685 fi
21686
1409cd0b 21687
1409cd0b 21688
1409cd0b 21689
db9f46a9
TG
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21691$as_echo_n "checking for sinl... " >&6; }
21692if test "${gcc_cv_math_func_sinl+set}" = set; then :
5213506e 21693 $as_echo_n "(cached) " >&6
1409cd0b 21694else
db9f46a9 21695 if test x$gcc_no_link = xyes; then
5213506e 21696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21697fi
5213506e 21698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21699/* end confdefs.h. */
21700
db9f46a9
TG
21701#ifdef HAVE_COMPLEX_H
21702#include <complex.h>
1409cd0b 21703#endif
db9f46a9
TG
21704#ifdef HAVE_MATH_H
21705#include <math.h>
21706#endif
21707
21708int (*ptr)() = (int (*)())sinl;
21709
1409cd0b
FXC
21710int
21711main ()
21712{
5213506e
RW
21713 return 0;
21714}
db9f46a9 21715
5213506e
RW
21716_ACEOF
21717if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21718 gcc_cv_math_func_sinl=yes
1409cd0b 21719else
db9f46a9 21720 gcc_cv_math_func_sinl=no
1409cd0b 21721fi
5213506e
RW
21722rm -f core conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21724fi
db9f46a9
TG
21725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21726$as_echo "$gcc_cv_math_func_sinl" >&6; }
21727 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 21728
f38a14ca
TG
21729cat >>confdefs.h <<_ACEOF
21730#define HAVE_SINL 1
21731_ACEOF
db9f46a9
TG
21732
21733 fi
1409cd0b 21734
1409cd0b 21735
1409cd0b 21736
db9f46a9
TG
21737
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21739$as_echo_n "checking for csinf... " >&6; }
21740if test "${gcc_cv_math_func_csinf+set}" = set; then :
5213506e 21741 $as_echo_n "(cached) " >&6
1409cd0b 21742else
db9f46a9 21743 if test x$gcc_no_link = xyes; then
5213506e 21744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21745fi
5213506e 21746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21747/* end confdefs.h. */
21748
db9f46a9
TG
21749#ifdef HAVE_COMPLEX_H
21750#include <complex.h>
21751#endif
21752#ifdef HAVE_MATH_H
21753#include <math.h>
1409cd0b 21754#endif
db9f46a9
TG
21755
21756int (*ptr)() = (int (*)())csinf;
21757
1409cd0b
FXC
21758int
21759main ()
21760{
1409cd0b
FXC
21761 return 0;
21762}
db9f46a9 21763
1409cd0b 21764_ACEOF
5213506e 21765if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21766 gcc_cv_math_func_csinf=yes
1409cd0b 21767else
db9f46a9 21768 gcc_cv_math_func_csinf=no
1409cd0b 21769fi
5213506e
RW
21770rm -f core conftest.err conftest.$ac_objext \
21771 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21772fi
db9f46a9
TG
21773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21774$as_echo "$gcc_cv_math_func_csinf" >&6; }
21775 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 21776
f38a14ca
TG
21777cat >>confdefs.h <<_ACEOF
21778#define HAVE_CSINF 1
21779_ACEOF
1409cd0b 21780
db9f46a9 21781 fi
1409cd0b 21782
1409cd0b 21783
db9f46a9
TG
21784
21785
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21787$as_echo_n "checking for csin... " >&6; }
21788if test "${gcc_cv_math_func_csin+set}" = set; then :
5213506e 21789 $as_echo_n "(cached) " >&6
1409cd0b 21790else
db9f46a9 21791 if test x$gcc_no_link = xyes; then
5213506e 21792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21793fi
5213506e 21794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21795/* end confdefs.h. */
21796
db9f46a9
TG
21797#ifdef HAVE_COMPLEX_H
21798#include <complex.h>
1409cd0b 21799#endif
db9f46a9
TG
21800#ifdef HAVE_MATH_H
21801#include <math.h>
21802#endif
21803
21804int (*ptr)() = (int (*)())csin;
21805
1409cd0b
FXC
21806int
21807main ()
21808{
1409cd0b
FXC
21809 return 0;
21810}
db9f46a9 21811
1409cd0b 21812_ACEOF
5213506e 21813if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21814 gcc_cv_math_func_csin=yes
1409cd0b 21815else
db9f46a9 21816 gcc_cv_math_func_csin=no
1409cd0b 21817fi
5213506e
RW
21818rm -f core conftest.err conftest.$ac_objext \
21819 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21820fi
db9f46a9
TG
21821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21822$as_echo "$gcc_cv_math_func_csin" >&6; }
21823 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 21824
f38a14ca
TG
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_CSIN 1
21827_ACEOF
db9f46a9
TG
21828
21829 fi
21830
1409cd0b 21831
1409cd0b 21832
1409cd0b 21833
db9f46a9
TG
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21835$as_echo_n "checking for csinl... " >&6; }
21836if test "${gcc_cv_math_func_csinl+set}" = set; then :
5213506e 21837 $as_echo_n "(cached) " >&6
1409cd0b 21838else
db9f46a9 21839 if test x$gcc_no_link = xyes; then
5213506e 21840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21841fi
5213506e 21842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21843/* end confdefs.h. */
21844
db9f46a9
TG
21845#ifdef HAVE_COMPLEX_H
21846#include <complex.h>
1409cd0b 21847#endif
db9f46a9
TG
21848#ifdef HAVE_MATH_H
21849#include <math.h>
21850#endif
21851
21852int (*ptr)() = (int (*)())csinl;
21853
1409cd0b
FXC
21854int
21855main ()
21856{
1409cd0b
FXC
21857 return 0;
21858}
db9f46a9 21859
1409cd0b 21860_ACEOF
5213506e 21861if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21862 gcc_cv_math_func_csinl=yes
1409cd0b 21863else
db9f46a9 21864 gcc_cv_math_func_csinl=no
1409cd0b 21865fi
5213506e
RW
21866rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21868fi
db9f46a9
TG
21869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21870$as_echo "$gcc_cv_math_func_csinl" >&6; }
21871 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 21872
f38a14ca
TG
21873cat >>confdefs.h <<_ACEOF
21874#define HAVE_CSINL 1
21875_ACEOF
db9f46a9
TG
21876
21877 fi
1409cd0b 21878
1409cd0b 21879
1409cd0b 21880
db9f46a9
TG
21881
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21883$as_echo_n "checking for sinhf... " >&6; }
21884if test "${gcc_cv_math_func_sinhf+set}" = set; then :
5213506e 21885 $as_echo_n "(cached) " >&6
1409cd0b 21886else
db9f46a9 21887 if test x$gcc_no_link = xyes; then
5213506e 21888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21889fi
5213506e 21890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21891/* end confdefs.h. */
21892
db9f46a9
TG
21893#ifdef HAVE_COMPLEX_H
21894#include <complex.h>
21895#endif
21896#ifdef HAVE_MATH_H
21897#include <math.h>
1409cd0b 21898#endif
db9f46a9
TG
21899
21900int (*ptr)() = (int (*)())sinhf;
21901
1409cd0b
FXC
21902int
21903main ()
21904{
1409cd0b
FXC
21905 return 0;
21906}
db9f46a9 21907
1409cd0b 21908_ACEOF
5213506e 21909if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21910 gcc_cv_math_func_sinhf=yes
1409cd0b 21911else
db9f46a9 21912 gcc_cv_math_func_sinhf=no
1409cd0b 21913fi
5213506e
RW
21914rm -f core conftest.err conftest.$ac_objext \
21915 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21916fi
db9f46a9
TG
21917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21918$as_echo "$gcc_cv_math_func_sinhf" >&6; }
21919 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 21920
f38a14ca
TG
21921cat >>confdefs.h <<_ACEOF
21922#define HAVE_SINHF 1
21923_ACEOF
1409cd0b 21924
db9f46a9 21925 fi
1409cd0b 21926
1409cd0b 21927
db9f46a9
TG
21928
21929
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21931$as_echo_n "checking for sinh... " >&6; }
21932if test "${gcc_cv_math_func_sinh+set}" = set; then :
5213506e 21933 $as_echo_n "(cached) " >&6
1409cd0b 21934else
db9f46a9 21935 if test x$gcc_no_link = xyes; then
5213506e 21936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21937fi
5213506e 21938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21939/* end confdefs.h. */
21940
db9f46a9
TG
21941#ifdef HAVE_COMPLEX_H
21942#include <complex.h>
1409cd0b 21943#endif
db9f46a9
TG
21944#ifdef HAVE_MATH_H
21945#include <math.h>
21946#endif
21947
21948int (*ptr)() = (int (*)())sinh;
21949
1409cd0b
FXC
21950int
21951main ()
21952{
1409cd0b
FXC
21953 return 0;
21954}
db9f46a9 21955
1409cd0b 21956_ACEOF
5213506e 21957if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21958 gcc_cv_math_func_sinh=yes
1409cd0b 21959else
db9f46a9 21960 gcc_cv_math_func_sinh=no
1409cd0b 21961fi
5213506e
RW
21962rm -f core conftest.err conftest.$ac_objext \
21963 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21964fi
db9f46a9
TG
21965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21966$as_echo "$gcc_cv_math_func_sinh" >&6; }
21967 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 21968
f38a14ca
TG
21969cat >>confdefs.h <<_ACEOF
21970#define HAVE_SINH 1
21971_ACEOF
db9f46a9
TG
21972
21973 fi
21974
1409cd0b 21975
1409cd0b 21976
1409cd0b 21977
db9f46a9
TG
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21979$as_echo_n "checking for sinhl... " >&6; }
21980if test "${gcc_cv_math_func_sinhl+set}" = set; then :
5213506e 21981 $as_echo_n "(cached) " >&6
1409cd0b 21982else
db9f46a9 21983 if test x$gcc_no_link = xyes; then
5213506e 21984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21985fi
5213506e 21986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21987/* end confdefs.h. */
21988
db9f46a9
TG
21989#ifdef HAVE_COMPLEX_H
21990#include <complex.h>
1409cd0b 21991#endif
db9f46a9
TG
21992#ifdef HAVE_MATH_H
21993#include <math.h>
21994#endif
21995
21996int (*ptr)() = (int (*)())sinhl;
21997
1409cd0b
FXC
21998int
21999main ()
22000{
1409cd0b
FXC
22001 return 0;
22002}
db9f46a9 22003
1409cd0b 22004_ACEOF
5213506e 22005if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22006 gcc_cv_math_func_sinhl=yes
1409cd0b 22007else
db9f46a9 22008 gcc_cv_math_func_sinhl=no
1409cd0b 22009fi
5213506e
RW
22010rm -f core conftest.err conftest.$ac_objext \
22011 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22012fi
db9f46a9
TG
22013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22014$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22015 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22016
f38a14ca
TG
22017cat >>confdefs.h <<_ACEOF
22018#define HAVE_SINHL 1
22019_ACEOF
db9f46a9
TG
22020
22021 fi
1409cd0b 22022
1409cd0b 22023
1409cd0b 22024
db9f46a9
TG
22025
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22027$as_echo_n "checking for csinhf... " >&6; }
22028if test "${gcc_cv_math_func_csinhf+set}" = set; then :
5213506e 22029 $as_echo_n "(cached) " >&6
1409cd0b 22030else
db9f46a9 22031 if test x$gcc_no_link = xyes; then
5213506e 22032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22033fi
5213506e 22034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22035/* end confdefs.h. */
22036
db9f46a9
TG
22037#ifdef HAVE_COMPLEX_H
22038#include <complex.h>
22039#endif
22040#ifdef HAVE_MATH_H
22041#include <math.h>
1409cd0b 22042#endif
db9f46a9
TG
22043
22044int (*ptr)() = (int (*)())csinhf;
22045
1409cd0b
FXC
22046int
22047main ()
22048{
1409cd0b
FXC
22049 return 0;
22050}
db9f46a9 22051
1409cd0b 22052_ACEOF
5213506e 22053if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22054 gcc_cv_math_func_csinhf=yes
1409cd0b 22055else
db9f46a9 22056 gcc_cv_math_func_csinhf=no
1409cd0b 22057fi
5213506e
RW
22058rm -f core conftest.err conftest.$ac_objext \
22059 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22060fi
db9f46a9
TG
22061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22062$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22063 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22064
f38a14ca
TG
22065cat >>confdefs.h <<_ACEOF
22066#define HAVE_CSINHF 1
22067_ACEOF
1409cd0b 22068
db9f46a9 22069 fi
1409cd0b 22070
1409cd0b 22071
db9f46a9
TG
22072
22073
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22075$as_echo_n "checking for csinh... " >&6; }
22076if test "${gcc_cv_math_func_csinh+set}" = set; then :
5213506e 22077 $as_echo_n "(cached) " >&6
1409cd0b 22078else
db9f46a9 22079 if test x$gcc_no_link = xyes; then
5213506e 22080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22081fi
5213506e 22082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22083/* end confdefs.h. */
22084
db9f46a9
TG
22085#ifdef HAVE_COMPLEX_H
22086#include <complex.h>
1409cd0b 22087#endif
db9f46a9
TG
22088#ifdef HAVE_MATH_H
22089#include <math.h>
22090#endif
22091
22092int (*ptr)() = (int (*)())csinh;
22093
1409cd0b
FXC
22094int
22095main ()
22096{
1409cd0b
FXC
22097 return 0;
22098}
db9f46a9 22099
1409cd0b 22100_ACEOF
5213506e 22101if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22102 gcc_cv_math_func_csinh=yes
1409cd0b 22103else
db9f46a9 22104 gcc_cv_math_func_csinh=no
1409cd0b 22105fi
5213506e
RW
22106rm -f core conftest.err conftest.$ac_objext \
22107 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22108fi
db9f46a9
TG
22109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22110$as_echo "$gcc_cv_math_func_csinh" >&6; }
22111 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22112
f38a14ca
TG
22113cat >>confdefs.h <<_ACEOF
22114#define HAVE_CSINH 1
22115_ACEOF
db9f46a9
TG
22116
22117 fi
22118
1409cd0b 22119
1409cd0b 22120
1409cd0b 22121
db9f46a9
TG
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22123$as_echo_n "checking for csinhl... " >&6; }
22124if test "${gcc_cv_math_func_csinhl+set}" = set; then :
5213506e 22125 $as_echo_n "(cached) " >&6
1409cd0b 22126else
db9f46a9 22127 if test x$gcc_no_link = xyes; then
5213506e 22128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22129fi
5213506e 22130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22131/* end confdefs.h. */
22132
db9f46a9
TG
22133#ifdef HAVE_COMPLEX_H
22134#include <complex.h>
1409cd0b 22135#endif
db9f46a9
TG
22136#ifdef HAVE_MATH_H
22137#include <math.h>
22138#endif
22139
22140int (*ptr)() = (int (*)())csinhl;
22141
1409cd0b
FXC
22142int
22143main ()
22144{
1409cd0b
FXC
22145 return 0;
22146}
db9f46a9 22147
1409cd0b 22148_ACEOF
5213506e 22149if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22150 gcc_cv_math_func_csinhl=yes
1409cd0b 22151else
db9f46a9 22152 gcc_cv_math_func_csinhl=no
1409cd0b 22153fi
5213506e
RW
22154rm -f core conftest.err conftest.$ac_objext \
22155 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22156fi
db9f46a9
TG
22157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22158$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22159 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22160
f38a14ca
TG
22161cat >>confdefs.h <<_ACEOF
22162#define HAVE_CSINHL 1
22163_ACEOF
db9f46a9
TG
22164
22165 fi
1409cd0b 22166
1409cd0b 22167
1409cd0b 22168
db9f46a9
TG
22169
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22171$as_echo_n "checking for sqrtf... " >&6; }
22172if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
5213506e 22173 $as_echo_n "(cached) " >&6
1409cd0b 22174else
db9f46a9 22175 if test x$gcc_no_link = xyes; then
5213506e 22176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22177fi
5213506e 22178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22179/* end confdefs.h. */
22180
db9f46a9
TG
22181#ifdef HAVE_COMPLEX_H
22182#include <complex.h>
22183#endif
22184#ifdef HAVE_MATH_H
22185#include <math.h>
1409cd0b 22186#endif
db9f46a9
TG
22187
22188int (*ptr)() = (int (*)())sqrtf;
22189
1409cd0b
FXC
22190int
22191main ()
22192{
1409cd0b
FXC
22193 return 0;
22194}
db9f46a9 22195
1409cd0b 22196_ACEOF
5213506e 22197if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22198 gcc_cv_math_func_sqrtf=yes
1409cd0b 22199else
db9f46a9 22200 gcc_cv_math_func_sqrtf=no
1409cd0b 22201fi
5213506e
RW
22202rm -f core conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22204fi
db9f46a9
TG
22205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22206$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22207 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22208
f38a14ca
TG
22209cat >>confdefs.h <<_ACEOF
22210#define HAVE_SQRTF 1
22211_ACEOF
db9f46a9
TG
22212
22213 fi
1409cd0b 22214
1409cd0b 22215
db9f46a9
TG
22216
22217
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22219$as_echo_n "checking for sqrt... " >&6; }
22220if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22222else
22223 if test x$gcc_no_link = xyes; then
22224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22225fi
db9f46a9
TG
22226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227/* end confdefs.h. */
22228
22229#ifdef HAVE_COMPLEX_H
22230#include <complex.h>
22231#endif
22232#ifdef HAVE_MATH_H
22233#include <math.h>
22234#endif
22235
22236int (*ptr)() = (int (*)())sqrt;
22237
22238int
22239main ()
22240{
22241 return 0;
22242}
22243
22244_ACEOF
22245if ac_fn_c_try_link "$LINENO"; then :
22246 gcc_cv_math_func_sqrt=yes
22247else
22248 gcc_cv_math_func_sqrt=no
22249fi
22250rm -f core conftest.err conftest.$ac_objext \
22251 conftest$ac_exeext conftest.$ac_ext
22252fi
22253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22254$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22255 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22256
f38a14ca
TG
22257cat >>confdefs.h <<_ACEOF
22258#define HAVE_SQRT 1
22259_ACEOF
db9f46a9
TG
22260
22261 fi
1409cd0b 22262
db9f46a9
TG
22263
22264
22265
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22267$as_echo_n "checking for sqrtl... " >&6; }
22268if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
5213506e 22269 $as_echo_n "(cached) " >&6
1409cd0b 22270else
db9f46a9 22271 if test x$gcc_no_link = xyes; then
5213506e 22272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22273fi
5213506e 22274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22275/* end confdefs.h. */
22276
db9f46a9
TG
22277#ifdef HAVE_COMPLEX_H
22278#include <complex.h>
22279#endif
22280#ifdef HAVE_MATH_H
22281#include <math.h>
1409cd0b 22282#endif
db9f46a9
TG
22283
22284int (*ptr)() = (int (*)())sqrtl;
22285
1409cd0b
FXC
22286int
22287main ()
22288{
1409cd0b
FXC
22289 return 0;
22290}
db9f46a9 22291
1409cd0b 22292_ACEOF
5213506e 22293if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22294 gcc_cv_math_func_sqrtl=yes
1409cd0b 22295else
db9f46a9 22296 gcc_cv_math_func_sqrtl=no
1409cd0b 22297fi
5213506e
RW
22298rm -f core conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22300fi
db9f46a9
TG
22301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22302$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22303 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22304
f38a14ca
TG
22305cat >>confdefs.h <<_ACEOF
22306#define HAVE_SQRTL 1
22307_ACEOF
db9f46a9
TG
22308
22309 fi
1409cd0b 22310
1409cd0b 22311
1409cd0b 22312
db9f46a9
TG
22313
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22315$as_echo_n "checking for csqrtf... " >&6; }
22316if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
5213506e 22317 $as_echo_n "(cached) " >&6
1409cd0b 22318else
db9f46a9 22319 if test x$gcc_no_link = xyes; then
5213506e 22320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22321fi
5213506e 22322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22323/* end confdefs.h. */
22324
db9f46a9
TG
22325#ifdef HAVE_COMPLEX_H
22326#include <complex.h>
1409cd0b 22327#endif
db9f46a9
TG
22328#ifdef HAVE_MATH_H
22329#include <math.h>
22330#endif
22331
22332int (*ptr)() = (int (*)())csqrtf;
22333
1409cd0b
FXC
22334int
22335main ()
22336{
1409cd0b
FXC
22337 return 0;
22338}
db9f46a9 22339
1409cd0b 22340_ACEOF
5213506e 22341if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22342 gcc_cv_math_func_csqrtf=yes
1409cd0b 22343else
db9f46a9 22344 gcc_cv_math_func_csqrtf=no
1409cd0b 22345fi
5213506e
RW
22346rm -f core conftest.err conftest.$ac_objext \
22347 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22348fi
db9f46a9
TG
22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22350$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22351 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 22352
f38a14ca
TG
22353cat >>confdefs.h <<_ACEOF
22354#define HAVE_CSQRTF 1
22355_ACEOF
1409cd0b 22356
db9f46a9 22357 fi
1409cd0b 22358
1409cd0b 22359
db9f46a9
TG
22360
22361
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22363$as_echo_n "checking for csqrt... " >&6; }
22364if test "${gcc_cv_math_func_csqrt+set}" = set; then :
5213506e 22365 $as_echo_n "(cached) " >&6
1409cd0b 22366else
db9f46a9 22367 if test x$gcc_no_link = xyes; then
5213506e 22368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22369fi
5213506e 22370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22371/* end confdefs.h. */
22372
db9f46a9
TG
22373#ifdef HAVE_COMPLEX_H
22374#include <complex.h>
22375#endif
22376#ifdef HAVE_MATH_H
22377#include <math.h>
1409cd0b 22378#endif
db9f46a9
TG
22379
22380int (*ptr)() = (int (*)())csqrt;
22381
1409cd0b
FXC
22382int
22383main ()
22384{
1409cd0b
FXC
22385 return 0;
22386}
db9f46a9 22387
1409cd0b 22388_ACEOF
5213506e 22389if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22390 gcc_cv_math_func_csqrt=yes
1409cd0b 22391else
db9f46a9 22392 gcc_cv_math_func_csqrt=no
1409cd0b 22393fi
5213506e
RW
22394rm -f core conftest.err conftest.$ac_objext \
22395 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22396fi
db9f46a9
TG
22397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22398$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22399 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 22400
f38a14ca
TG
22401cat >>confdefs.h <<_ACEOF
22402#define HAVE_CSQRT 1
22403_ACEOF
db9f46a9
TG
22404
22405 fi
1409cd0b 22406
1409cd0b 22407
1409cd0b 22408
db9f46a9
TG
22409
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22411$as_echo_n "checking for csqrtl... " >&6; }
22412if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
5213506e 22413 $as_echo_n "(cached) " >&6
1409cd0b 22414else
db9f46a9 22415 if test x$gcc_no_link = xyes; then
5213506e 22416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22417fi
5213506e 22418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22419/* end confdefs.h. */
22420
db9f46a9
TG
22421#ifdef HAVE_COMPLEX_H
22422#include <complex.h>
1409cd0b 22423#endif
db9f46a9
TG
22424#ifdef HAVE_MATH_H
22425#include <math.h>
22426#endif
22427
22428int (*ptr)() = (int (*)())csqrtl;
22429
1409cd0b
FXC
22430int
22431main ()
22432{
1409cd0b
FXC
22433 return 0;
22434}
db9f46a9 22435
1409cd0b 22436_ACEOF
5213506e 22437if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22438 gcc_cv_math_func_csqrtl=yes
1409cd0b 22439else
db9f46a9 22440 gcc_cv_math_func_csqrtl=no
1409cd0b 22441fi
5213506e
RW
22442rm -f core conftest.err conftest.$ac_objext \
22443 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22444fi
db9f46a9
TG
22445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22446$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22447 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 22448
f38a14ca
TG
22449cat >>confdefs.h <<_ACEOF
22450#define HAVE_CSQRTL 1
22451_ACEOF
db9f46a9
TG
22452
22453 fi
22454
1409cd0b 22455
1409cd0b 22456
1409cd0b 22457
db9f46a9
TG
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22459$as_echo_n "checking for tanf... " >&6; }
22460if test "${gcc_cv_math_func_tanf+set}" = set; then :
5213506e 22461 $as_echo_n "(cached) " >&6
1409cd0b 22462else
db9f46a9 22463 if test x$gcc_no_link = xyes; then
5213506e 22464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22465fi
5213506e 22466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22467/* end confdefs.h. */
22468
db9f46a9
TG
22469#ifdef HAVE_COMPLEX_H
22470#include <complex.h>
22471#endif
22472#ifdef HAVE_MATH_H
22473#include <math.h>
1409cd0b 22474#endif
db9f46a9
TG
22475
22476int (*ptr)() = (int (*)())tanf;
22477
1409cd0b
FXC
22478int
22479main ()
22480{
1409cd0b
FXC
22481 return 0;
22482}
db9f46a9 22483
1409cd0b 22484_ACEOF
5213506e 22485if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22486 gcc_cv_math_func_tanf=yes
1409cd0b 22487else
db9f46a9 22488 gcc_cv_math_func_tanf=no
1409cd0b 22489fi
5213506e
RW
22490rm -f core conftest.err conftest.$ac_objext \
22491 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22492fi
db9f46a9
TG
22493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22494$as_echo "$gcc_cv_math_func_tanf" >&6; }
22495 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 22496
f38a14ca
TG
22497cat >>confdefs.h <<_ACEOF
22498#define HAVE_TANF 1
22499_ACEOF
db9f46a9
TG
22500
22501 fi
1409cd0b 22502
1409cd0b 22503
1409cd0b 22504
db9f46a9
TG
22505
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22507$as_echo_n "checking for tan... " >&6; }
22508if test "${gcc_cv_math_func_tan+set}" = set; then :
5213506e 22509 $as_echo_n "(cached) " >&6
1409cd0b 22510else
db9f46a9 22511 if test x$gcc_no_link = xyes; then
5213506e 22512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22513fi
5213506e 22514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22515/* end confdefs.h. */
22516
db9f46a9
TG
22517#ifdef HAVE_COMPLEX_H
22518#include <complex.h>
1409cd0b 22519#endif
db9f46a9
TG
22520#ifdef HAVE_MATH_H
22521#include <math.h>
22522#endif
22523
22524int (*ptr)() = (int (*)())tan;
22525
1409cd0b
FXC
22526int
22527main ()
22528{
1409cd0b
FXC
22529 return 0;
22530}
db9f46a9 22531
1409cd0b 22532_ACEOF
5213506e 22533if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22534 gcc_cv_math_func_tan=yes
1409cd0b 22535else
db9f46a9 22536 gcc_cv_math_func_tan=no
1409cd0b 22537fi
5213506e
RW
22538rm -f core conftest.err conftest.$ac_objext \
22539 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22540fi
db9f46a9
TG
22541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22542$as_echo "$gcc_cv_math_func_tan" >&6; }
22543 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 22544
f38a14ca
TG
22545cat >>confdefs.h <<_ACEOF
22546#define HAVE_TAN 1
22547_ACEOF
1409cd0b 22548
db9f46a9 22549 fi
1409cd0b 22550
1409cd0b 22551
db9f46a9
TG
22552
22553
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22555$as_echo_n "checking for tanl... " >&6; }
22556if test "${gcc_cv_math_func_tanl+set}" = set; then :
5213506e 22557 $as_echo_n "(cached) " >&6
1409cd0b 22558else
db9f46a9 22559 if test x$gcc_no_link = xyes; then
5213506e 22560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22561fi
5213506e 22562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22563/* end confdefs.h. */
22564
db9f46a9
TG
22565#ifdef HAVE_COMPLEX_H
22566#include <complex.h>
22567#endif
22568#ifdef HAVE_MATH_H
22569#include <math.h>
1409cd0b 22570#endif
db9f46a9
TG
22571
22572int (*ptr)() = (int (*)())tanl;
22573
1409cd0b
FXC
22574int
22575main ()
22576{
1409cd0b
FXC
22577 return 0;
22578}
db9f46a9 22579
1409cd0b 22580_ACEOF
5213506e 22581if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22582 gcc_cv_math_func_tanl=yes
1409cd0b 22583else
db9f46a9 22584 gcc_cv_math_func_tanl=no
1409cd0b 22585fi
5213506e
RW
22586rm -f core conftest.err conftest.$ac_objext \
22587 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22588fi
db9f46a9
TG
22589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22590$as_echo "$gcc_cv_math_func_tanl" >&6; }
22591 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 22592
f38a14ca
TG
22593cat >>confdefs.h <<_ACEOF
22594#define HAVE_TANL 1
22595_ACEOF
db9f46a9
TG
22596
22597 fi
1409cd0b 22598
1409cd0b 22599
1409cd0b 22600
db9f46a9
TG
22601
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22603$as_echo_n "checking for ctanf... " >&6; }
22604if test "${gcc_cv_math_func_ctanf+set}" = set; then :
5213506e 22605 $as_echo_n "(cached) " >&6
1409cd0b 22606else
db9f46a9 22607 if test x$gcc_no_link = xyes; then
5213506e 22608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22609fi
5213506e 22610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22611/* end confdefs.h. */
22612
db9f46a9
TG
22613#ifdef HAVE_COMPLEX_H
22614#include <complex.h>
1409cd0b 22615#endif
db9f46a9
TG
22616#ifdef HAVE_MATH_H
22617#include <math.h>
22618#endif
22619
22620int (*ptr)() = (int (*)())ctanf;
22621
1409cd0b
FXC
22622int
22623main ()
22624{
1409cd0b
FXC
22625 return 0;
22626}
db9f46a9 22627
1409cd0b 22628_ACEOF
5213506e 22629if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22630 gcc_cv_math_func_ctanf=yes
1409cd0b 22631else
db9f46a9 22632 gcc_cv_math_func_ctanf=no
1409cd0b 22633fi
5213506e
RW
22634rm -f core conftest.err conftest.$ac_objext \
22635 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22636fi
db9f46a9
TG
22637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22638$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22639 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 22640
f38a14ca
TG
22641cat >>confdefs.h <<_ACEOF
22642#define HAVE_CTANF 1
22643_ACEOF
db9f46a9
TG
22644
22645 fi
22646
1409cd0b 22647
1409cd0b 22648
1409cd0b 22649
db9f46a9
TG
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22651$as_echo_n "checking for ctan... " >&6; }
22652if test "${gcc_cv_math_func_ctan+set}" = set; then :
5213506e 22653 $as_echo_n "(cached) " >&6
1409cd0b 22654else
db9f46a9 22655 if test x$gcc_no_link = xyes; then
5213506e 22656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22657fi
5213506e 22658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22659/* end confdefs.h. */
22660
db9f46a9
TG
22661#ifdef HAVE_COMPLEX_H
22662#include <complex.h>
22663#endif
22664#ifdef HAVE_MATH_H
22665#include <math.h>
1409cd0b 22666#endif
db9f46a9
TG
22667
22668int (*ptr)() = (int (*)())ctan;
22669
1409cd0b
FXC
22670int
22671main ()
22672{
1409cd0b
FXC
22673 return 0;
22674}
db9f46a9 22675
1409cd0b 22676_ACEOF
5213506e 22677if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22678 gcc_cv_math_func_ctan=yes
1409cd0b 22679else
db9f46a9 22680 gcc_cv_math_func_ctan=no
1409cd0b 22681fi
5213506e
RW
22682rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22684fi
db9f46a9
TG
22685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22686$as_echo "$gcc_cv_math_func_ctan" >&6; }
22687 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 22688
f38a14ca
TG
22689cat >>confdefs.h <<_ACEOF
22690#define HAVE_CTAN 1
22691_ACEOF
db9f46a9
TG
22692
22693 fi
1409cd0b 22694
1409cd0b 22695
1409cd0b 22696
db9f46a9
TG
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22699$as_echo_n "checking for ctanl... " >&6; }
22700if test "${gcc_cv_math_func_ctanl+set}" = set; then :
5213506e 22701 $as_echo_n "(cached) " >&6
1409cd0b 22702else
db9f46a9 22703 if test x$gcc_no_link = xyes; then
5213506e 22704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22705fi
5213506e 22706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22707/* end confdefs.h. */
22708
db9f46a9
TG
22709#ifdef HAVE_COMPLEX_H
22710#include <complex.h>
1409cd0b 22711#endif
db9f46a9
TG
22712#ifdef HAVE_MATH_H
22713#include <math.h>
22714#endif
22715
22716int (*ptr)() = (int (*)())ctanl;
22717
1409cd0b
FXC
22718int
22719main ()
22720{
1409cd0b
FXC
22721 return 0;
22722}
db9f46a9 22723
1409cd0b 22724_ACEOF
5213506e 22725if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22726 gcc_cv_math_func_ctanl=yes
1409cd0b 22727else
db9f46a9 22728 gcc_cv_math_func_ctanl=no
1409cd0b 22729fi
5213506e
RW
22730rm -f core conftest.err conftest.$ac_objext \
22731 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22732fi
db9f46a9
TG
22733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22734$as_echo "$gcc_cv_math_func_ctanl" >&6; }
22735 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 22736
f38a14ca
TG
22737cat >>confdefs.h <<_ACEOF
22738#define HAVE_CTANL 1
22739_ACEOF
1409cd0b 22740
db9f46a9 22741 fi
1409cd0b 22742
1409cd0b 22743
db9f46a9
TG
22744
22745
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22747$as_echo_n "checking for tanhf... " >&6; }
22748if test "${gcc_cv_math_func_tanhf+set}" = set; then :
5213506e 22749 $as_echo_n "(cached) " >&6
1409cd0b 22750else
db9f46a9 22751 if test x$gcc_no_link = xyes; then
5213506e 22752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22753fi
5213506e 22754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22755/* end confdefs.h. */
22756
db9f46a9
TG
22757#ifdef HAVE_COMPLEX_H
22758#include <complex.h>
22759#endif
22760#ifdef HAVE_MATH_H
22761#include <math.h>
1409cd0b 22762#endif
db9f46a9
TG
22763
22764int (*ptr)() = (int (*)())tanhf;
22765
1409cd0b
FXC
22766int
22767main ()
22768{
1409cd0b
FXC
22769 return 0;
22770}
db9f46a9 22771
1409cd0b 22772_ACEOF
5213506e 22773if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22774 gcc_cv_math_func_tanhf=yes
1409cd0b 22775else
db9f46a9 22776 gcc_cv_math_func_tanhf=no
1409cd0b 22777fi
5213506e
RW
22778rm -f core conftest.err conftest.$ac_objext \
22779 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22780fi
db9f46a9
TG
22781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22782$as_echo "$gcc_cv_math_func_tanhf" >&6; }
22783 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 22784
f38a14ca
TG
22785cat >>confdefs.h <<_ACEOF
22786#define HAVE_TANHF 1
22787_ACEOF
db9f46a9
TG
22788
22789 fi
1409cd0b 22790
1409cd0b 22791
1409cd0b 22792
db9f46a9
TG
22793
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22795$as_echo_n "checking for tanh... " >&6; }
22796if test "${gcc_cv_math_func_tanh+set}" = set; then :
5213506e 22797 $as_echo_n "(cached) " >&6
1409cd0b 22798else
db9f46a9 22799 if test x$gcc_no_link = xyes; then
5213506e 22800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22801fi
5213506e 22802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22803/* end confdefs.h. */
22804
db9f46a9
TG
22805#ifdef HAVE_COMPLEX_H
22806#include <complex.h>
1409cd0b 22807#endif
db9f46a9
TG
22808#ifdef HAVE_MATH_H
22809#include <math.h>
22810#endif
22811
22812int (*ptr)() = (int (*)())tanh;
22813
1409cd0b
FXC
22814int
22815main ()
22816{
1409cd0b
FXC
22817 return 0;
22818}
db9f46a9 22819
1409cd0b 22820_ACEOF
5213506e 22821if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22822 gcc_cv_math_func_tanh=yes
1409cd0b 22823else
db9f46a9 22824 gcc_cv_math_func_tanh=no
1409cd0b 22825fi
5213506e
RW
22826rm -f core conftest.err conftest.$ac_objext \
22827 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22828fi
db9f46a9
TG
22829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22830$as_echo "$gcc_cv_math_func_tanh" >&6; }
22831 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 22832
f38a14ca
TG
22833cat >>confdefs.h <<_ACEOF
22834#define HAVE_TANH 1
22835_ACEOF
db9f46a9
TG
22836
22837 fi
22838
1409cd0b 22839
1409cd0b 22840
1409cd0b 22841
db9f46a9
TG
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22843$as_echo_n "checking for tanhl... " >&6; }
22844if test "${gcc_cv_math_func_tanhl+set}" = set; then :
5213506e 22845 $as_echo_n "(cached) " >&6
1409cd0b 22846else
db9f46a9 22847 if test x$gcc_no_link = xyes; then
5213506e 22848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22849fi
5213506e 22850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22851/* end confdefs.h. */
22852
db9f46a9
TG
22853#ifdef HAVE_COMPLEX_H
22854#include <complex.h>
22855#endif
22856#ifdef HAVE_MATH_H
22857#include <math.h>
1409cd0b 22858#endif
db9f46a9
TG
22859
22860int (*ptr)() = (int (*)())tanhl;
22861
1409cd0b
FXC
22862int
22863main ()
22864{
1409cd0b
FXC
22865 return 0;
22866}
db9f46a9 22867
1409cd0b 22868_ACEOF
5213506e 22869if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22870 gcc_cv_math_func_tanhl=yes
1409cd0b 22871else
db9f46a9 22872 gcc_cv_math_func_tanhl=no
1409cd0b 22873fi
5213506e
RW
22874rm -f core conftest.err conftest.$ac_objext \
22875 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22876fi
db9f46a9
TG
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22878$as_echo "$gcc_cv_math_func_tanhl" >&6; }
22879 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 22880
f38a14ca
TG
22881cat >>confdefs.h <<_ACEOF
22882#define HAVE_TANHL 1
22883_ACEOF
db9f46a9
TG
22884
22885 fi
1409cd0b 22886
1409cd0b 22887
1409cd0b 22888
db9f46a9
TG
22889
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22891$as_echo_n "checking for ctanhf... " >&6; }
22892if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
5213506e 22893 $as_echo_n "(cached) " >&6
1409cd0b 22894else
db9f46a9 22895 if test x$gcc_no_link = xyes; then
5213506e 22896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
22897fi
22898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22899/* end confdefs.h. */
22900
22901#ifdef HAVE_COMPLEX_H
22902#include <complex.h>
1409cd0b 22903#endif
db9f46a9
TG
22904#ifdef HAVE_MATH_H
22905#include <math.h>
22906#endif
22907
22908int (*ptr)() = (int (*)())ctanhf;
22909
1409cd0b
FXC
22910int
22911main ()
22912{
1409cd0b
FXC
22913 return 0;
22914}
db9f46a9 22915
1409cd0b 22916_ACEOF
5213506e 22917if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22918 gcc_cv_math_func_ctanhf=yes
1409cd0b 22919else
db9f46a9 22920 gcc_cv_math_func_ctanhf=no
1409cd0b 22921fi
5213506e
RW
22922rm -f core conftest.err conftest.$ac_objext \
22923 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22924fi
db9f46a9
TG
22925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22926$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22927 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 22928
f38a14ca
TG
22929cat >>confdefs.h <<_ACEOF
22930#define HAVE_CTANHF 1
22931_ACEOF
1409cd0b 22932
db9f46a9 22933 fi
1409cd0b 22934
1409cd0b 22935
db9f46a9
TG
22936
22937
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22939$as_echo_n "checking for ctanh... " >&6; }
22940if test "${gcc_cv_math_func_ctanh+set}" = set; then :
5213506e 22941 $as_echo_n "(cached) " >&6
1409cd0b 22942else
db9f46a9 22943 if test x$gcc_no_link = xyes; then
5213506e 22944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22945fi
5213506e 22946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22947/* end confdefs.h. */
22948
db9f46a9
TG
22949#ifdef HAVE_COMPLEX_H
22950#include <complex.h>
22951#endif
22952#ifdef HAVE_MATH_H
22953#include <math.h>
1409cd0b 22954#endif
db9f46a9
TG
22955
22956int (*ptr)() = (int (*)())ctanh;
22957
1409cd0b
FXC
22958int
22959main ()
22960{
5213506e
RW
22961 return 0;
22962}
db9f46a9 22963
5213506e
RW
22964_ACEOF
22965if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22966 gcc_cv_math_func_ctanh=yes
1409cd0b 22967else
db9f46a9 22968 gcc_cv_math_func_ctanh=no
1409cd0b 22969fi
5213506e
RW
22970rm -f core conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22972fi
db9f46a9
TG
22973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22974$as_echo "$gcc_cv_math_func_ctanh" >&6; }
22975 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 22976
f38a14ca
TG
22977cat >>confdefs.h <<_ACEOF
22978#define HAVE_CTANH 1
22979_ACEOF
db9f46a9
TG
22980
22981 fi
1409cd0b 22982
1409cd0b 22983
1409cd0b 22984
db9f46a9
TG
22985
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22987$as_echo_n "checking for ctanhl... " >&6; }
22988if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
5213506e 22989 $as_echo_n "(cached) " >&6
1409cd0b 22990else
db9f46a9 22991 if test x$gcc_no_link = xyes; then
5213506e 22992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22993fi
5213506e 22994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22995/* end confdefs.h. */
22996
db9f46a9
TG
22997#ifdef HAVE_COMPLEX_H
22998#include <complex.h>
1409cd0b 22999#endif
db9f46a9
TG
23000#ifdef HAVE_MATH_H
23001#include <math.h>
23002#endif
23003
23004int (*ptr)() = (int (*)())ctanhl;
23005
1409cd0b
FXC
23006int
23007main ()
23008{
1409cd0b
FXC
23009 return 0;
23010}
db9f46a9 23011
1409cd0b 23012_ACEOF
5213506e 23013if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23014 gcc_cv_math_func_ctanhl=yes
1409cd0b 23015else
db9f46a9 23016 gcc_cv_math_func_ctanhl=no
1409cd0b 23017fi
5213506e
RW
23018rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23020fi
db9f46a9
TG
23021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23022$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23023 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23024
f38a14ca
TG
23025cat >>confdefs.h <<_ACEOF
23026#define HAVE_CTANHL 1
23027_ACEOF
db9f46a9
TG
23028
23029 fi
23030
1409cd0b 23031
69a2d125 23032
69a2d125 23033
db9f46a9
TG
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23035$as_echo_n "checking for truncf... " >&6; }
23036if test "${gcc_cv_math_func_truncf+set}" = set; then :
5213506e 23037 $as_echo_n "(cached) " >&6
69a2d125 23038else
db9f46a9 23039 if test x$gcc_no_link = xyes; then
5213506e 23040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23041fi
5213506e 23042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23043/* end confdefs.h. */
23044
db9f46a9
TG
23045#ifdef HAVE_COMPLEX_H
23046#include <complex.h>
23047#endif
23048#ifdef HAVE_MATH_H
23049#include <math.h>
69a2d125 23050#endif
db9f46a9
TG
23051
23052int (*ptr)() = (int (*)())truncf;
23053
1409cd0b
FXC
23054int
23055main ()
23056{
1409cd0b
FXC
23057 return 0;
23058}
db9f46a9 23059
1409cd0b 23060_ACEOF
5213506e 23061if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23062 gcc_cv_math_func_truncf=yes
1409cd0b 23063else
db9f46a9 23064 gcc_cv_math_func_truncf=no
1409cd0b 23065fi
5213506e
RW
23066rm -f core conftest.err conftest.$ac_objext \
23067 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23068fi
db9f46a9
TG
23069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23070$as_echo "$gcc_cv_math_func_truncf" >&6; }
23071 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23072
f38a14ca
TG
23073cat >>confdefs.h <<_ACEOF
23074#define HAVE_TRUNCF 1
23075_ACEOF
db9f46a9
TG
23076
23077 fi
1409cd0b 23078
1409cd0b 23079
1409cd0b 23080
db9f46a9
TG
23081
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23083$as_echo_n "checking for trunc... " >&6; }
23084if test "${gcc_cv_math_func_trunc+set}" = set; then :
5213506e 23085 $as_echo_n "(cached) " >&6
1409cd0b 23086else
db9f46a9 23087 if test x$gcc_no_link = xyes; then
5213506e 23088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23089fi
5213506e 23090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23091/* end confdefs.h. */
23092
db9f46a9
TG
23093#ifdef HAVE_COMPLEX_H
23094#include <complex.h>
1409cd0b 23095#endif
db9f46a9
TG
23096#ifdef HAVE_MATH_H
23097#include <math.h>
23098#endif
23099
23100int (*ptr)() = (int (*)())trunc;
23101
1409cd0b
FXC
23102int
23103main ()
23104{
1409cd0b
FXC
23105 return 0;
23106}
db9f46a9 23107
1409cd0b 23108_ACEOF
5213506e 23109if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23110 gcc_cv_math_func_trunc=yes
1409cd0b 23111else
db9f46a9 23112 gcc_cv_math_func_trunc=no
1409cd0b 23113fi
5213506e
RW
23114rm -f core conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23116fi
db9f46a9
TG
23117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23118$as_echo "$gcc_cv_math_func_trunc" >&6; }
23119 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23120
f38a14ca
TG
23121cat >>confdefs.h <<_ACEOF
23122#define HAVE_TRUNC 1
23123_ACEOF
1409cd0b 23124
db9f46a9 23125 fi
1409cd0b 23126
1409cd0b 23127
db9f46a9
TG
23128
23129
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23131$as_echo_n "checking for truncl... " >&6; }
23132if test "${gcc_cv_math_func_truncl+set}" = set; then :
5213506e 23133 $as_echo_n "(cached) " >&6
1409cd0b 23134else
db9f46a9 23135 if test x$gcc_no_link = xyes; then
5213506e 23136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23137fi
5213506e 23138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23139/* end confdefs.h. */
23140
db9f46a9
TG
23141#ifdef HAVE_COMPLEX_H
23142#include <complex.h>
23143#endif
23144#ifdef HAVE_MATH_H
23145#include <math.h>
1409cd0b 23146#endif
db9f46a9
TG
23147
23148int (*ptr)() = (int (*)())truncl;
23149
1409cd0b
FXC
23150int
23151main ()
23152{
1409cd0b
FXC
23153 return 0;
23154}
db9f46a9 23155
1409cd0b 23156_ACEOF
5213506e 23157if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23158 gcc_cv_math_func_truncl=yes
1409cd0b 23159else
db9f46a9 23160 gcc_cv_math_func_truncl=no
1409cd0b 23161fi
5213506e
RW
23162rm -f core conftest.err conftest.$ac_objext \
23163 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23164fi
db9f46a9
TG
23165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23166$as_echo "$gcc_cv_math_func_truncl" >&6; }
23167 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23168
f38a14ca
TG
23169cat >>confdefs.h <<_ACEOF
23170#define HAVE_TRUNCL 1
23171_ACEOF
db9f46a9
TG
23172
23173 fi
1409cd0b 23174
1409cd0b 23175
1409cd0b 23176
db9f46a9
TG
23177
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23179$as_echo_n "checking for erff... " >&6; }
23180if test "${gcc_cv_math_func_erff+set}" = set; then :
5213506e 23181 $as_echo_n "(cached) " >&6
1409cd0b 23182else
db9f46a9 23183 if test x$gcc_no_link = xyes; then
5213506e 23184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23185fi
5213506e 23186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23187/* end confdefs.h. */
23188
db9f46a9
TG
23189#ifdef HAVE_COMPLEX_H
23190#include <complex.h>
1409cd0b 23191#endif
db9f46a9
TG
23192#ifdef HAVE_MATH_H
23193#include <math.h>
23194#endif
23195
23196int (*ptr)() = (int (*)())erff;
23197
1409cd0b
FXC
23198int
23199main ()
23200{
1409cd0b
FXC
23201 return 0;
23202}
db9f46a9 23203
1409cd0b 23204_ACEOF
5213506e 23205if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23206 gcc_cv_math_func_erff=yes
1409cd0b 23207else
db9f46a9 23208 gcc_cv_math_func_erff=no
1409cd0b 23209fi
5213506e
RW
23210rm -f core conftest.err conftest.$ac_objext \
23211 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23212fi
db9f46a9
TG
23213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23214$as_echo "$gcc_cv_math_func_erff" >&6; }
23215 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23216
f38a14ca
TG
23217cat >>confdefs.h <<_ACEOF
23218#define HAVE_ERFF 1
23219_ACEOF
db9f46a9
TG
23220
23221 fi
23222
1409cd0b 23223
1409cd0b 23224
1409cd0b 23225
db9f46a9
TG
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23227$as_echo_n "checking for erf... " >&6; }
23228if test "${gcc_cv_math_func_erf+set}" = set; then :
5213506e 23229 $as_echo_n "(cached) " >&6
1409cd0b 23230else
db9f46a9 23231 if test x$gcc_no_link = xyes; then
5213506e 23232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23233fi
5213506e 23234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23235/* end confdefs.h. */
23236
db9f46a9
TG
23237#ifdef HAVE_COMPLEX_H
23238#include <complex.h>
23239#endif
23240#ifdef HAVE_MATH_H
23241#include <math.h>
1409cd0b 23242#endif
db9f46a9
TG
23243
23244int (*ptr)() = (int (*)())erf;
23245
1409cd0b
FXC
23246int
23247main ()
23248{
1409cd0b
FXC
23249 return 0;
23250}
db9f46a9 23251
1409cd0b 23252_ACEOF
5213506e 23253if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23254 gcc_cv_math_func_erf=yes
1409cd0b 23255else
db9f46a9 23256 gcc_cv_math_func_erf=no
1409cd0b 23257fi
5213506e
RW
23258rm -f core conftest.err conftest.$ac_objext \
23259 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23260fi
db9f46a9
TG
23261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23262$as_echo "$gcc_cv_math_func_erf" >&6; }
23263 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23264
f38a14ca
TG
23265cat >>confdefs.h <<_ACEOF
23266#define HAVE_ERF 1
23267_ACEOF
db9f46a9
TG
23268
23269 fi
1409cd0b 23270
1409cd0b 23271
1409cd0b 23272
db9f46a9
TG
23273
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23275$as_echo_n "checking for erfl... " >&6; }
23276if test "${gcc_cv_math_func_erfl+set}" = set; then :
5213506e 23277 $as_echo_n "(cached) " >&6
1409cd0b 23278else
db9f46a9 23279 if test x$gcc_no_link = xyes; then
5213506e 23280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23281fi
5213506e 23282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23283/* end confdefs.h. */
23284
db9f46a9
TG
23285#ifdef HAVE_COMPLEX_H
23286#include <complex.h>
1409cd0b 23287#endif
db9f46a9
TG
23288#ifdef HAVE_MATH_H
23289#include <math.h>
23290#endif
23291
23292int (*ptr)() = (int (*)())erfl;
23293
1409cd0b
FXC
23294int
23295main ()
23296{
1409cd0b
FXC
23297 return 0;
23298}
db9f46a9 23299
1409cd0b 23300_ACEOF
5213506e 23301if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23302 gcc_cv_math_func_erfl=yes
1409cd0b 23303else
db9f46a9 23304 gcc_cv_math_func_erfl=no
1409cd0b 23305fi
5213506e
RW
23306rm -f core conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23308fi
db9f46a9
TG
23309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23310$as_echo "$gcc_cv_math_func_erfl" >&6; }
23311 if test $gcc_cv_math_func_erfl = yes; then
f1cdfa01 23312
f38a14ca
TG
23313cat >>confdefs.h <<_ACEOF
23314#define HAVE_ERFL 1
23315_ACEOF
1409cd0b 23316
db9f46a9 23317 fi
1409cd0b 23318
1409cd0b 23319
db9f46a9
TG
23320
23321
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23323$as_echo_n "checking for erfcf... " >&6; }
23324if test "${gcc_cv_math_func_erfcf+set}" = set; then :
5213506e 23325 $as_echo_n "(cached) " >&6
1409cd0b 23326else
db9f46a9 23327 if test x$gcc_no_link = xyes; then
5213506e 23328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23329fi
5213506e 23330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23331/* end confdefs.h. */
23332
db9f46a9
TG
23333#ifdef HAVE_COMPLEX_H
23334#include <complex.h>
23335#endif
23336#ifdef HAVE_MATH_H
23337#include <math.h>
1409cd0b 23338#endif
db9f46a9
TG
23339
23340int (*ptr)() = (int (*)())erfcf;
23341
1409cd0b
FXC
23342int
23343main ()
23344{
1409cd0b
FXC
23345 return 0;
23346}
db9f46a9 23347
1409cd0b 23348_ACEOF
5213506e 23349if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23350 gcc_cv_math_func_erfcf=yes
1409cd0b 23351else
db9f46a9 23352 gcc_cv_math_func_erfcf=no
1409cd0b 23353fi
5213506e
RW
23354rm -f core conftest.err conftest.$ac_objext \
23355 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23356fi
db9f46a9
TG
23357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23358$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23359 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23360
f38a14ca
TG
23361cat >>confdefs.h <<_ACEOF
23362#define HAVE_ERFCF 1
23363_ACEOF
db9f46a9
TG
23364
23365 fi
1409cd0b 23366
1409cd0b 23367
1409cd0b 23368
db9f46a9
TG
23369
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23371$as_echo_n "checking for erfc... " >&6; }
23372if test "${gcc_cv_math_func_erfc+set}" = set; then :
5213506e 23373 $as_echo_n "(cached) " >&6
1409cd0b 23374else
db9f46a9 23375 if test x$gcc_no_link = xyes; then
5213506e 23376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23377fi
5213506e 23378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23379/* end confdefs.h. */
23380
db9f46a9
TG
23381#ifdef HAVE_COMPLEX_H
23382#include <complex.h>
1409cd0b 23383#endif
db9f46a9
TG
23384#ifdef HAVE_MATH_H
23385#include <math.h>
23386#endif
23387
23388int (*ptr)() = (int (*)())erfc;
23389
69a2d125
EB
23390int
23391main ()
23392{
69a2d125
EB
23393 return 0;
23394}
db9f46a9 23395
69a2d125 23396_ACEOF
5213506e 23397if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23398 gcc_cv_math_func_erfc=yes
69a2d125 23399else
db9f46a9 23400 gcc_cv_math_func_erfc=no
69a2d125 23401fi
5213506e
RW
23402rm -f core conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
69a2d125 23404fi
db9f46a9
TG
23405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23406$as_echo "$gcc_cv_math_func_erfc" >&6; }
23407 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 23408
f38a14ca
TG
23409cat >>confdefs.h <<_ACEOF
23410#define HAVE_ERFC 1
23411_ACEOF
db9f46a9
TG
23412
23413 fi
23414
69a2d125 23415
69a2d125 23416
69a2d125 23417
db9f46a9
TG
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23419$as_echo_n "checking for erfcl... " >&6; }
23420if test "${gcc_cv_math_func_erfcl+set}" = set; then :
5213506e 23421 $as_echo_n "(cached) " >&6
e8525382 23422else
db9f46a9 23423 if test x$gcc_no_link = xyes; then
5213506e 23424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23425fi
5213506e 23426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23427/* end confdefs.h. */
23428
db9f46a9
TG
23429#ifdef HAVE_COMPLEX_H
23430#include <complex.h>
23431#endif
23432#ifdef HAVE_MATH_H
23433#include <math.h>
e8525382 23434#endif
db9f46a9
TG
23435
23436int (*ptr)() = (int (*)())erfcl;
23437
e8525382
SK
23438int
23439main ()
23440{
e8525382
SK
23441 return 0;
23442}
db9f46a9 23443
e8525382 23444_ACEOF
5213506e 23445if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23446 gcc_cv_math_func_erfcl=yes
e8525382 23447else
db9f46a9 23448 gcc_cv_math_func_erfcl=no
e8525382 23449fi
5213506e
RW
23450rm -f core conftest.err conftest.$ac_objext \
23451 conftest$ac_exeext conftest.$ac_ext
e8525382 23452fi
db9f46a9
TG
23453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23454$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23455 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 23456
f38a14ca
TG
23457cat >>confdefs.h <<_ACEOF
23458#define HAVE_ERFCL 1
23459_ACEOF
db9f46a9
TG
23460
23461 fi
e8525382 23462
e8525382 23463
e8525382 23464
db9f46a9
TG
23465
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23467$as_echo_n "checking for j0f... " >&6; }
23468if test "${gcc_cv_math_func_j0f+set}" = set; then :
5213506e 23469 $as_echo_n "(cached) " >&6
e8525382 23470else
db9f46a9 23471 if test x$gcc_no_link = xyes; then
5213506e 23472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23473fi
5213506e 23474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23475/* end confdefs.h. */
23476
db9f46a9
TG
23477#ifdef HAVE_COMPLEX_H
23478#include <complex.h>
e8525382 23479#endif
db9f46a9
TG
23480#ifdef HAVE_MATH_H
23481#include <math.h>
23482#endif
23483
23484int (*ptr)() = (int (*)())j0f;
23485
e8525382
SK
23486int
23487main ()
23488{
e8525382
SK
23489 return 0;
23490}
db9f46a9 23491
e8525382 23492_ACEOF
5213506e 23493if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23494 gcc_cv_math_func_j0f=yes
e8525382 23495else
db9f46a9 23496 gcc_cv_math_func_j0f=no
1409cd0b 23497fi
5213506e
RW
23498rm -f core conftest.err conftest.$ac_objext \
23499 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23500fi
db9f46a9
TG
23501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23502$as_echo "$gcc_cv_math_func_j0f" >&6; }
23503 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 23504
f38a14ca
TG
23505cat >>confdefs.h <<_ACEOF
23506#define HAVE_J0F 1
23507_ACEOF
1409cd0b 23508
db9f46a9 23509 fi
1409cd0b 23510
1409cd0b 23511
db9f46a9
TG
23512
23513
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23515$as_echo_n "checking for j0... " >&6; }
23516if test "${gcc_cv_math_func_j0+set}" = set; then :
5213506e 23517 $as_echo_n "(cached) " >&6
1409cd0b 23518else
db9f46a9 23519 if test x$gcc_no_link = xyes; then
5213506e 23520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23521fi
5213506e 23522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23523/* end confdefs.h. */
23524
db9f46a9
TG
23525#ifdef HAVE_COMPLEX_H
23526#include <complex.h>
23527#endif
23528#ifdef HAVE_MATH_H
23529#include <math.h>
1409cd0b 23530#endif
db9f46a9
TG
23531
23532int (*ptr)() = (int (*)())j0;
23533
1409cd0b
FXC
23534int
23535main ()
23536{
1409cd0b
FXC
23537 return 0;
23538}
db9f46a9 23539
1409cd0b 23540_ACEOF
5213506e 23541if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23542 gcc_cv_math_func_j0=yes
1409cd0b 23543else
db9f46a9 23544 gcc_cv_math_func_j0=no
1409cd0b 23545fi
5213506e
RW
23546rm -f core conftest.err conftest.$ac_objext \
23547 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23548fi
db9f46a9
TG
23549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23550$as_echo "$gcc_cv_math_func_j0" >&6; }
23551 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 23552
f38a14ca
TG
23553cat >>confdefs.h <<_ACEOF
23554#define HAVE_J0 1
23555_ACEOF
db9f46a9
TG
23556
23557 fi
1409cd0b 23558
1409cd0b 23559
1409cd0b 23560
db9f46a9
TG
23561
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23563$as_echo_n "checking for j0l... " >&6; }
23564if test "${gcc_cv_math_func_j0l+set}" = set; then :
5213506e 23565 $as_echo_n "(cached) " >&6
1409cd0b 23566else
db9f46a9 23567 if test x$gcc_no_link = xyes; then
5213506e 23568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23569fi
5213506e 23570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23571/* end confdefs.h. */
23572
db9f46a9
TG
23573#ifdef HAVE_COMPLEX_H
23574#include <complex.h>
1409cd0b 23575#endif
db9f46a9
TG
23576#ifdef HAVE_MATH_H
23577#include <math.h>
23578#endif
23579
23580int (*ptr)() = (int (*)())j0l;
23581
1409cd0b
FXC
23582int
23583main ()
23584{
1409cd0b
FXC
23585 return 0;
23586}
db9f46a9 23587
1409cd0b 23588_ACEOF
5213506e 23589if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23590 gcc_cv_math_func_j0l=yes
1409cd0b 23591else
db9f46a9 23592 gcc_cv_math_func_j0l=no
1409cd0b 23593fi
5213506e
RW
23594rm -f core conftest.err conftest.$ac_objext \
23595 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23596fi
db9f46a9
TG
23597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23598$as_echo "$gcc_cv_math_func_j0l" >&6; }
23599 if test $gcc_cv_math_func_j0l = yes; then
f1cdfa01 23600
f38a14ca
TG
23601cat >>confdefs.h <<_ACEOF
23602#define HAVE_J0L 1
23603_ACEOF
db9f46a9
TG
23604
23605 fi
23606
1409cd0b 23607
1409cd0b 23608
1409cd0b 23609
db9f46a9
TG
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23611$as_echo_n "checking for j1f... " >&6; }
23612if test "${gcc_cv_math_func_j1f+set}" = set; then :
5213506e 23613 $as_echo_n "(cached) " >&6
1409cd0b 23614else
db9f46a9 23615 if test x$gcc_no_link = xyes; then
5213506e 23616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23617fi
5213506e 23618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23619/* end confdefs.h. */
23620
db9f46a9
TG
23621#ifdef HAVE_COMPLEX_H
23622#include <complex.h>
23623#endif
23624#ifdef HAVE_MATH_H
23625#include <math.h>
1409cd0b 23626#endif
db9f46a9
TG
23627
23628int (*ptr)() = (int (*)())j1f;
23629
1409cd0b
FXC
23630int
23631main ()
23632{
1409cd0b
FXC
23633 return 0;
23634}
db9f46a9 23635
1409cd0b 23636_ACEOF
5213506e 23637if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23638 gcc_cv_math_func_j1f=yes
1409cd0b 23639else
db9f46a9 23640 gcc_cv_math_func_j1f=no
e8525382 23641fi
5213506e
RW
23642rm -f core conftest.err conftest.$ac_objext \
23643 conftest$ac_exeext conftest.$ac_ext
e8525382 23644fi
db9f46a9
TG
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23646$as_echo "$gcc_cv_math_func_j1f" >&6; }
23647 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 23648
f38a14ca
TG
23649cat >>confdefs.h <<_ACEOF
23650#define HAVE_J1F 1
23651_ACEOF
db9f46a9
TG
23652
23653 fi
e8525382 23654
e8525382 23655
e8525382 23656
db9f46a9
TG
23657
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23659$as_echo_n "checking for j1... " >&6; }
23660if test "${gcc_cv_math_func_j1+set}" = set; then :
5213506e 23661 $as_echo_n "(cached) " >&6
e8525382 23662else
db9f46a9 23663 if test x$gcc_no_link = xyes; then
5213506e 23664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23665fi
5213506e 23666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23667/* end confdefs.h. */
23668
db9f46a9
TG
23669#ifdef HAVE_COMPLEX_H
23670#include <complex.h>
e8525382 23671#endif
db9f46a9
TG
23672#ifdef HAVE_MATH_H
23673#include <math.h>
23674#endif
23675
23676int (*ptr)() = (int (*)())j1;
23677
e8525382
SK
23678int
23679main ()
23680{
e8525382
SK
23681 return 0;
23682}
db9f46a9 23683
e8525382 23684_ACEOF
5213506e 23685if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23686 gcc_cv_math_func_j1=yes
e8525382 23687else
db9f46a9 23688 gcc_cv_math_func_j1=no
e8525382 23689fi
5213506e
RW
23690rm -f core conftest.err conftest.$ac_objext \
23691 conftest$ac_exeext conftest.$ac_ext
e8525382 23692fi
db9f46a9
TG
23693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23694$as_echo "$gcc_cv_math_func_j1" >&6; }
23695 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 23696
f38a14ca
TG
23697cat >>confdefs.h <<_ACEOF
23698#define HAVE_J1 1
23699_ACEOF
e8525382 23700
db9f46a9 23701 fi
e8525382 23702
e8525382 23703
db9f46a9
TG
23704
23705
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23707$as_echo_n "checking for j1l... " >&6; }
23708if test "${gcc_cv_math_func_j1l+set}" = set; then :
5213506e 23709 $as_echo_n "(cached) " >&6
e8525382 23710else
db9f46a9 23711 if test x$gcc_no_link = xyes; then
5213506e 23712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23713fi
5213506e 23714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23715/* end confdefs.h. */
23716
db9f46a9
TG
23717#ifdef HAVE_COMPLEX_H
23718#include <complex.h>
23719#endif
23720#ifdef HAVE_MATH_H
23721#include <math.h>
e8525382 23722#endif
db9f46a9
TG
23723
23724int (*ptr)() = (int (*)())j1l;
23725
e8525382
SK
23726int
23727main ()
23728{
e8525382
SK
23729 return 0;
23730}
db9f46a9 23731
e8525382 23732_ACEOF
5213506e 23733if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23734 gcc_cv_math_func_j1l=yes
e8525382 23735else
db9f46a9 23736 gcc_cv_math_func_j1l=no
e8525382 23737fi
5213506e
RW
23738rm -f core conftest.err conftest.$ac_objext \
23739 conftest$ac_exeext conftest.$ac_ext
e8525382 23740fi
db9f46a9
TG
23741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23742$as_echo "$gcc_cv_math_func_j1l" >&6; }
23743 if test $gcc_cv_math_func_j1l = yes; then
f1cdfa01 23744
f38a14ca
TG
23745cat >>confdefs.h <<_ACEOF
23746#define HAVE_J1L 1
23747_ACEOF
db9f46a9
TG
23748
23749 fi
e8525382 23750
e8525382 23751
e8525382 23752
db9f46a9
TG
23753
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23755$as_echo_n "checking for jnf... " >&6; }
23756if test "${gcc_cv_math_func_jnf+set}" = set; then :
5213506e 23757 $as_echo_n "(cached) " >&6
e8525382 23758else
db9f46a9 23759 if test x$gcc_no_link = xyes; then
5213506e 23760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23761fi
5213506e 23762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23763/* end confdefs.h. */
23764
db9f46a9
TG
23765#ifdef HAVE_COMPLEX_H
23766#include <complex.h>
e8525382 23767#endif
db9f46a9
TG
23768#ifdef HAVE_MATH_H
23769#include <math.h>
23770#endif
23771
23772int (*ptr)() = (int (*)())jnf;
23773
e8525382
SK
23774int
23775main ()
23776{
e8525382
SK
23777 return 0;
23778}
db9f46a9 23779
e8525382 23780_ACEOF
5213506e 23781if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23782 gcc_cv_math_func_jnf=yes
e8525382 23783else
db9f46a9 23784 gcc_cv_math_func_jnf=no
e8525382 23785fi
5213506e
RW
23786rm -f core conftest.err conftest.$ac_objext \
23787 conftest$ac_exeext conftest.$ac_ext
e8525382 23788fi
db9f46a9
TG
23789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23790$as_echo "$gcc_cv_math_func_jnf" >&6; }
23791 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 23792
f38a14ca
TG
23793cat >>confdefs.h <<_ACEOF
23794#define HAVE_JNF 1
23795_ACEOF
db9f46a9
TG
23796
23797 fi
23798
e8525382 23799
e8525382 23800
e8525382 23801
db9f46a9
TG
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23803$as_echo_n "checking for jn... " >&6; }
23804if test "${gcc_cv_math_func_jn+set}" = set; then :
5213506e 23805 $as_echo_n "(cached) " >&6
e8525382 23806else
db9f46a9 23807 if test x$gcc_no_link = xyes; then
5213506e 23808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23809fi
5213506e 23810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23811/* end confdefs.h. */
23812
db9f46a9
TG
23813#ifdef HAVE_COMPLEX_H
23814#include <complex.h>
23815#endif
23816#ifdef HAVE_MATH_H
23817#include <math.h>
e8525382 23818#endif
db9f46a9
TG
23819
23820int (*ptr)() = (int (*)())jn;
23821
e8525382
SK
23822int
23823main ()
23824{
e8525382
SK
23825 return 0;
23826}
db9f46a9 23827
e8525382 23828_ACEOF
5213506e 23829if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23830 gcc_cv_math_func_jn=yes
e8525382 23831else
db9f46a9 23832 gcc_cv_math_func_jn=no
e8525382 23833fi
5213506e
RW
23834rm -f core conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
e8525382 23836fi
db9f46a9
TG
23837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23838$as_echo "$gcc_cv_math_func_jn" >&6; }
23839 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 23840
f38a14ca
TG
23841cat >>confdefs.h <<_ACEOF
23842#define HAVE_JN 1
23843_ACEOF
db9f46a9
TG
23844
23845 fi
e8525382 23846
e8525382 23847
e8525382 23848
db9f46a9
TG
23849
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23851$as_echo_n "checking for jnl... " >&6; }
23852if test "${gcc_cv_math_func_jnl+set}" = set; then :
5213506e 23853 $as_echo_n "(cached) " >&6
e8525382 23854else
db9f46a9 23855 if test x$gcc_no_link = xyes; then
5213506e 23856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23857fi
5213506e 23858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23859/* end confdefs.h. */
23860
db9f46a9
TG
23861#ifdef HAVE_COMPLEX_H
23862#include <complex.h>
e8525382 23863#endif
db9f46a9
TG
23864#ifdef HAVE_MATH_H
23865#include <math.h>
23866#endif
23867
23868int (*ptr)() = (int (*)())jnl;
23869
e8525382
SK
23870int
23871main ()
23872{
e8525382
SK
23873 return 0;
23874}
db9f46a9 23875
e8525382 23876_ACEOF
5213506e 23877if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23878 gcc_cv_math_func_jnl=yes
e8525382 23879else
db9f46a9 23880 gcc_cv_math_func_jnl=no
e8525382 23881fi
5213506e
RW
23882rm -f core conftest.err conftest.$ac_objext \
23883 conftest$ac_exeext conftest.$ac_ext
e8525382 23884fi
db9f46a9
TG
23885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23886$as_echo "$gcc_cv_math_func_jnl" >&6; }
23887 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 23888
f38a14ca
TG
23889cat >>confdefs.h <<_ACEOF
23890#define HAVE_JNL 1
23891_ACEOF
e8525382 23892
db9f46a9 23893 fi
e8525382 23894
e8525382 23895
db9f46a9
TG
23896
23897
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23899$as_echo_n "checking for y0f... " >&6; }
23900if test "${gcc_cv_math_func_y0f+set}" = set; then :
5213506e 23901 $as_echo_n "(cached) " >&6
e8525382 23902else
db9f46a9 23903 if test x$gcc_no_link = xyes; then
5213506e 23904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23905fi
5213506e 23906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23907/* end confdefs.h. */
23908
db9f46a9
TG
23909#ifdef HAVE_COMPLEX_H
23910#include <complex.h>
23911#endif
23912#ifdef HAVE_MATH_H
23913#include <math.h>
e8525382 23914#endif
db9f46a9
TG
23915
23916int (*ptr)() = (int (*)())y0f;
23917
e8525382
SK
23918int
23919main ()
23920{
e8525382
SK
23921 return 0;
23922}
db9f46a9 23923
e8525382 23924_ACEOF
5213506e 23925if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23926 gcc_cv_math_func_y0f=yes
e8525382 23927else
db9f46a9 23928 gcc_cv_math_func_y0f=no
e8525382 23929fi
5213506e
RW
23930rm -f core conftest.err conftest.$ac_objext \
23931 conftest$ac_exeext conftest.$ac_ext
e8525382 23932fi
db9f46a9
TG
23933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23934$as_echo "$gcc_cv_math_func_y0f" >&6; }
23935 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 23936
f38a14ca
TG
23937cat >>confdefs.h <<_ACEOF
23938#define HAVE_Y0F 1
23939_ACEOF
db9f46a9
TG
23940
23941 fi
e8525382 23942
e8525382 23943
e8525382 23944
db9f46a9
TG
23945
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23947$as_echo_n "checking for y0... " >&6; }
23948if test "${gcc_cv_math_func_y0+set}" = set; then :
5213506e 23949 $as_echo_n "(cached) " >&6
e8525382 23950else
db9f46a9 23951 if test x$gcc_no_link = xyes; then
5213506e 23952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23953fi
5213506e 23954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23955/* end confdefs.h. */
23956
db9f46a9
TG
23957#ifdef HAVE_COMPLEX_H
23958#include <complex.h>
e8525382 23959#endif
db9f46a9
TG
23960#ifdef HAVE_MATH_H
23961#include <math.h>
23962#endif
23963
23964int (*ptr)() = (int (*)())y0;
23965
e8525382
SK
23966int
23967main ()
23968{
e8525382
SK
23969 return 0;
23970}
db9f46a9 23971
e8525382 23972_ACEOF
5213506e 23973if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23974 gcc_cv_math_func_y0=yes
e8525382 23975else
db9f46a9 23976 gcc_cv_math_func_y0=no
e8525382 23977fi
5213506e
RW
23978rm -f core conftest.err conftest.$ac_objext \
23979 conftest$ac_exeext conftest.$ac_ext
e8525382 23980fi
db9f46a9
TG
23981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23982$as_echo "$gcc_cv_math_func_y0" >&6; }
23983 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 23984
f38a14ca
TG
23985cat >>confdefs.h <<_ACEOF
23986#define HAVE_Y0 1
23987_ACEOF
db9f46a9
TG
23988
23989 fi
23990
e8525382 23991
e8525382 23992
e8525382 23993
db9f46a9
TG
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23995$as_echo_n "checking for y0l... " >&6; }
23996if test "${gcc_cv_math_func_y0l+set}" = set; then :
5213506e 23997 $as_echo_n "(cached) " >&6
e8525382 23998else
db9f46a9 23999 if test x$gcc_no_link = xyes; then
5213506e 24000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24001fi
5213506e 24002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24003/* end confdefs.h. */
24004
db9f46a9
TG
24005#ifdef HAVE_COMPLEX_H
24006#include <complex.h>
24007#endif
24008#ifdef HAVE_MATH_H
24009#include <math.h>
e8525382 24010#endif
db9f46a9
TG
24011
24012int (*ptr)() = (int (*)())y0l;
24013
e8525382
SK
24014int
24015main ()
24016{
e8525382
SK
24017 return 0;
24018}
db9f46a9 24019
e8525382 24020_ACEOF
5213506e 24021if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24022 gcc_cv_math_func_y0l=yes
e8525382 24023else
db9f46a9 24024 gcc_cv_math_func_y0l=no
e8525382 24025fi
5213506e
RW
24026rm -f core conftest.err conftest.$ac_objext \
24027 conftest$ac_exeext conftest.$ac_ext
e8525382 24028fi
db9f46a9
TG
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24030$as_echo "$gcc_cv_math_func_y0l" >&6; }
24031 if test $gcc_cv_math_func_y0l = yes; then
f1cdfa01 24032
f38a14ca
TG
24033cat >>confdefs.h <<_ACEOF
24034#define HAVE_Y0L 1
24035_ACEOF
db9f46a9
TG
24036
24037 fi
e8525382 24038
e8525382 24039
e8525382 24040
db9f46a9
TG
24041
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24043$as_echo_n "checking for y1f... " >&6; }
24044if test "${gcc_cv_math_func_y1f+set}" = set; then :
5213506e 24045 $as_echo_n "(cached) " >&6
e8525382 24046else
db9f46a9 24047 if test x$gcc_no_link = xyes; then
5213506e 24048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24049fi
5213506e 24050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24051/* end confdefs.h. */
24052
db9f46a9
TG
24053#ifdef HAVE_COMPLEX_H
24054#include <complex.h>
e8525382 24055#endif
db9f46a9
TG
24056#ifdef HAVE_MATH_H
24057#include <math.h>
24058#endif
24059
24060int (*ptr)() = (int (*)())y1f;
24061
e8525382
SK
24062int
24063main ()
24064{
e8525382
SK
24065 return 0;
24066}
db9f46a9 24067
e8525382 24068_ACEOF
5213506e 24069if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24070 gcc_cv_math_func_y1f=yes
e8525382 24071else
db9f46a9 24072 gcc_cv_math_func_y1f=no
e8525382 24073fi
5213506e
RW
24074rm -f core conftest.err conftest.$ac_objext \
24075 conftest$ac_exeext conftest.$ac_ext
e8525382 24076fi
db9f46a9
TG
24077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24078$as_echo "$gcc_cv_math_func_y1f" >&6; }
24079 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24080
f38a14ca
TG
24081cat >>confdefs.h <<_ACEOF
24082#define HAVE_Y1F 1
24083_ACEOF
e8525382 24084
db9f46a9 24085 fi
e8525382 24086
e8525382 24087
db9f46a9
TG
24088
24089
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24091$as_echo_n "checking for y1... " >&6; }
24092if test "${gcc_cv_math_func_y1+set}" = set; then :
5213506e 24093 $as_echo_n "(cached) " >&6
e8525382 24094else
db9f46a9 24095 if test x$gcc_no_link = xyes; then
5213506e 24096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24097fi
5213506e 24098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24099/* end confdefs.h. */
24100
db9f46a9
TG
24101#ifdef HAVE_COMPLEX_H
24102#include <complex.h>
24103#endif
24104#ifdef HAVE_MATH_H
24105#include <math.h>
e8525382 24106#endif
db9f46a9
TG
24107
24108int (*ptr)() = (int (*)())y1;
24109
e8525382
SK
24110int
24111main ()
24112{
e8525382
SK
24113 return 0;
24114}
db9f46a9 24115
e8525382 24116_ACEOF
5213506e 24117if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24118 gcc_cv_math_func_y1=yes
e8525382 24119else
db9f46a9 24120 gcc_cv_math_func_y1=no
e8525382 24121fi
5213506e
RW
24122rm -f core conftest.err conftest.$ac_objext \
24123 conftest$ac_exeext conftest.$ac_ext
e8525382 24124fi
db9f46a9
TG
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24126$as_echo "$gcc_cv_math_func_y1" >&6; }
24127 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24128
f38a14ca
TG
24129cat >>confdefs.h <<_ACEOF
24130#define HAVE_Y1 1
24131_ACEOF
db9f46a9
TG
24132
24133 fi
e8525382 24134
e8525382 24135
e8525382 24136
db9f46a9
TG
24137
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24139$as_echo_n "checking for y1l... " >&6; }
24140if test "${gcc_cv_math_func_y1l+set}" = set; then :
5213506e 24141 $as_echo_n "(cached) " >&6
e8525382 24142else
db9f46a9 24143 if test x$gcc_no_link = xyes; then
5213506e 24144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24145fi
5213506e 24146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24147/* end confdefs.h. */
24148
db9f46a9
TG
24149#ifdef HAVE_COMPLEX_H
24150#include <complex.h>
e8525382 24151#endif
db9f46a9
TG
24152#ifdef HAVE_MATH_H
24153#include <math.h>
24154#endif
24155
24156int (*ptr)() = (int (*)())y1l;
24157
e8525382
SK
24158int
24159main ()
24160{
e8525382
SK
24161 return 0;
24162}
db9f46a9 24163
e8525382 24164_ACEOF
5213506e 24165if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24166 gcc_cv_math_func_y1l=yes
e8525382 24167else
db9f46a9 24168 gcc_cv_math_func_y1l=no
e8525382 24169fi
5213506e
RW
24170rm -f core conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
e8525382 24172fi
db9f46a9
TG
24173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24174$as_echo "$gcc_cv_math_func_y1l" >&6; }
24175 if test $gcc_cv_math_func_y1l = yes; then
f1cdfa01 24176
f38a14ca
TG
24177cat >>confdefs.h <<_ACEOF
24178#define HAVE_Y1L 1
24179_ACEOF
db9f46a9
TG
24180
24181 fi
24182
e8525382 24183
e8525382 24184
e8525382 24185
db9f46a9
TG
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24187$as_echo_n "checking for ynf... " >&6; }
24188if test "${gcc_cv_math_func_ynf+set}" = set; then :
5213506e 24189 $as_echo_n "(cached) " >&6
db9f46a9
TG
24190else
24191 if test x$gcc_no_link = xyes; then
5213506e 24192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24193fi
5213506e 24194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24195/* end confdefs.h. */
24196
db9f46a9
TG
24197#ifdef HAVE_COMPLEX_H
24198#include <complex.h>
24199#endif
24200#ifdef HAVE_MATH_H
24201#include <math.h>
e8525382 24202#endif
db9f46a9
TG
24203
24204int (*ptr)() = (int (*)())ynf;
24205
e8525382
SK
24206int
24207main ()
24208{
e8525382
SK
24209 return 0;
24210}
db9f46a9 24211
e8525382 24212_ACEOF
5213506e 24213if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24214 gcc_cv_math_func_ynf=yes
e8525382 24215else
db9f46a9 24216 gcc_cv_math_func_ynf=no
e8525382 24217fi
5213506e
RW
24218rm -f core conftest.err conftest.$ac_objext \
24219 conftest$ac_exeext conftest.$ac_ext
e8525382 24220fi
db9f46a9
TG
24221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24222$as_echo "$gcc_cv_math_func_ynf" >&6; }
24223 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24224
f38a14ca
TG
24225cat >>confdefs.h <<_ACEOF
24226#define HAVE_YNF 1
24227_ACEOF
db9f46a9
TG
24228
24229 fi
e8525382 24230
e8525382 24231
e8525382 24232
db9f46a9
TG
24233
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24235$as_echo_n "checking for yn... " >&6; }
24236if test "${gcc_cv_math_func_yn+set}" = set; then :
5213506e 24237 $as_echo_n "(cached) " >&6
e8525382 24238else
db9f46a9 24239 if test x$gcc_no_link = xyes; then
5213506e 24240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24241fi
5213506e 24242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24243/* end confdefs.h. */
24244
db9f46a9
TG
24245#ifdef HAVE_COMPLEX_H
24246#include <complex.h>
e8525382 24247#endif
db9f46a9
TG
24248#ifdef HAVE_MATH_H
24249#include <math.h>
24250#endif
24251
24252int (*ptr)() = (int (*)())yn;
24253
e8525382
SK
24254int
24255main ()
24256{
e8525382
SK
24257 return 0;
24258}
db9f46a9 24259
e8525382 24260_ACEOF
5213506e 24261if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24262 gcc_cv_math_func_yn=yes
e8525382 24263else
db9f46a9 24264 gcc_cv_math_func_yn=no
e8525382 24265fi
5213506e
RW
24266rm -f core conftest.err conftest.$ac_objext \
24267 conftest$ac_exeext conftest.$ac_ext
e8525382 24268fi
db9f46a9
TG
24269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24270$as_echo "$gcc_cv_math_func_yn" >&6; }
24271 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24272
f38a14ca
TG
24273cat >>confdefs.h <<_ACEOF
24274#define HAVE_YN 1
24275_ACEOF
db9f46a9
TG
24276
24277 fi
24278
e8525382 24279
e8525382 24280
e8525382 24281
db9f46a9
TG
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24283$as_echo_n "checking for ynl... " >&6; }
24284if test "${gcc_cv_math_func_ynl+set}" = set; then :
5213506e 24285 $as_echo_n "(cached) " >&6
e8525382 24286else
db9f46a9 24287 if test x$gcc_no_link = xyes; then
5213506e 24288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24289fi
5213506e 24290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24291/* end confdefs.h. */
24292
db9f46a9
TG
24293#ifdef HAVE_COMPLEX_H
24294#include <complex.h>
24295#endif
24296#ifdef HAVE_MATH_H
24297#include <math.h>
e8525382 24298#endif
db9f46a9
TG
24299
24300int (*ptr)() = (int (*)())ynl;
24301
e8525382
SK
24302int
24303main ()
24304{
e8525382
SK
24305 return 0;
24306}
db9f46a9 24307
e8525382 24308_ACEOF
5213506e 24309if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24310 gcc_cv_math_func_ynl=yes
e8525382 24311else
db9f46a9 24312 gcc_cv_math_func_ynl=no
e8525382 24313fi
5213506e
RW
24314rm -f core conftest.err conftest.$ac_objext \
24315 conftest$ac_exeext conftest.$ac_ext
e8525382 24316fi
db9f46a9
TG
24317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24318$as_echo "$gcc_cv_math_func_ynl" >&6; }
24319 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24320
f38a14ca
TG
24321cat >>confdefs.h <<_ACEOF
24322#define HAVE_YNL 1
24323_ACEOF
db9f46a9
TG
24324
24325 fi
e8525382 24326
e8525382 24327
e8525382 24328
db9f46a9
TG
24329
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24331$as_echo_n "checking for tgamma... " >&6; }
24332if test "${gcc_cv_math_func_tgamma+set}" = set; then :
5213506e 24333 $as_echo_n "(cached) " >&6
fb0a0e15 24334else
db9f46a9 24335 if test x$gcc_no_link = xyes; then
5213506e 24336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24337fi
5213506e 24338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24339/* end confdefs.h. */
24340
db9f46a9
TG
24341#ifdef HAVE_COMPLEX_H
24342#include <complex.h>
fb0a0e15 24343#endif
db9f46a9
TG
24344#ifdef HAVE_MATH_H
24345#include <math.h>
24346#endif
24347
24348int (*ptr)() = (int (*)())tgamma;
24349
fb0a0e15
FXC
24350int
24351main ()
24352{
fb0a0e15
FXC
24353 return 0;
24354}
db9f46a9 24355
fb0a0e15 24356_ACEOF
5213506e 24357if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24358 gcc_cv_math_func_tgamma=yes
fb0a0e15 24359else
db9f46a9 24360 gcc_cv_math_func_tgamma=no
fb0a0e15 24361fi
5213506e
RW
24362rm -f core conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24364fi
db9f46a9
TG
24365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24366$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24367 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24368
f38a14ca
TG
24369cat >>confdefs.h <<_ACEOF
24370#define HAVE_TGAMMA 1
24371_ACEOF
fb0a0e15 24372
db9f46a9 24373 fi
fb0a0e15 24374
fb0a0e15 24375
db9f46a9
TG
24376
24377
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24379$as_echo_n "checking for tgammaf... " >&6; }
24380if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
5213506e 24381 $as_echo_n "(cached) " >&6
fb0a0e15 24382else
db9f46a9 24383 if test x$gcc_no_link = xyes; then
5213506e 24384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24385fi
5213506e 24386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24387/* end confdefs.h. */
24388
db9f46a9
TG
24389#ifdef HAVE_COMPLEX_H
24390#include <complex.h>
24391#endif
24392#ifdef HAVE_MATH_H
24393#include <math.h>
fb0a0e15 24394#endif
db9f46a9
TG
24395
24396int (*ptr)() = (int (*)())tgammaf;
24397
fb0a0e15
FXC
24398int
24399main ()
24400{
fb0a0e15
FXC
24401 return 0;
24402}
db9f46a9 24403
fb0a0e15 24404_ACEOF
5213506e 24405if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24406 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24407else
db9f46a9 24408 gcc_cv_math_func_tgammaf=no
fb0a0e15 24409fi
5213506e
RW
24410rm -f core conftest.err conftest.$ac_objext \
24411 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24412fi
db9f46a9
TG
24413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24414$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24415 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24416
f38a14ca
TG
24417cat >>confdefs.h <<_ACEOF
24418#define HAVE_TGAMMAF 1
24419_ACEOF
db9f46a9
TG
24420
24421 fi
fb0a0e15 24422
fb0a0e15 24423
fb0a0e15 24424
db9f46a9
TG
24425
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24427$as_echo_n "checking for tgammal... " >&6; }
24428if test "${gcc_cv_math_func_tgammal+set}" = set; then :
5213506e 24429 $as_echo_n "(cached) " >&6
fb0a0e15 24430else
db9f46a9 24431 if test x$gcc_no_link = xyes; then
5213506e 24432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24433fi
5213506e 24434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24435/* end confdefs.h. */
24436
db9f46a9
TG
24437#ifdef HAVE_COMPLEX_H
24438#include <complex.h>
fb0a0e15 24439#endif
db9f46a9
TG
24440#ifdef HAVE_MATH_H
24441#include <math.h>
24442#endif
24443
24444int (*ptr)() = (int (*)())tgammal;
24445
fb0a0e15
FXC
24446int
24447main ()
24448{
fb0a0e15
FXC
24449 return 0;
24450}
db9f46a9 24451
fb0a0e15 24452_ACEOF
5213506e 24453if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24454 gcc_cv_math_func_tgammal=yes
fb0a0e15 24455else
db9f46a9 24456 gcc_cv_math_func_tgammal=no
fb0a0e15 24457fi
5213506e
RW
24458rm -f core conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24460fi
db9f46a9
TG
24461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24462$as_echo "$gcc_cv_math_func_tgammal" >&6; }
24463 if test $gcc_cv_math_func_tgammal = yes; then
f1cdfa01 24464
f38a14ca
TG
24465cat >>confdefs.h <<_ACEOF
24466#define HAVE_TGAMMAL 1
24467_ACEOF
db9f46a9
TG
24468
24469 fi
24470
fb0a0e15 24471
fb0a0e15 24472
fb0a0e15 24473
db9f46a9
TG
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24475$as_echo_n "checking for lgamma... " >&6; }
24476if test "${gcc_cv_math_func_lgamma+set}" = set; then :
5213506e 24477 $as_echo_n "(cached) " >&6
fb0a0e15 24478else
db9f46a9 24479 if test x$gcc_no_link = xyes; then
5213506e 24480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24481fi
5213506e 24482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24483/* end confdefs.h. */
24484
db9f46a9
TG
24485#ifdef HAVE_COMPLEX_H
24486#include <complex.h>
24487#endif
24488#ifdef HAVE_MATH_H
24489#include <math.h>
fb0a0e15 24490#endif
db9f46a9
TG
24491
24492int (*ptr)() = (int (*)())lgamma;
24493
fb0a0e15
FXC
24494int
24495main ()
24496{
fb0a0e15
FXC
24497 return 0;
24498}
db9f46a9 24499
fb0a0e15 24500_ACEOF
5213506e 24501if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24502 gcc_cv_math_func_lgamma=yes
fb0a0e15 24503else
db9f46a9 24504 gcc_cv_math_func_lgamma=no
fb0a0e15 24505fi
5213506e
RW
24506rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24508fi
db9f46a9
TG
24509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24510$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24511 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24512
f38a14ca
TG
24513cat >>confdefs.h <<_ACEOF
24514#define HAVE_LGAMMA 1
24515_ACEOF
db9f46a9
TG
24516
24517 fi
fb0a0e15 24518
fb0a0e15 24519
fb0a0e15 24520
db9f46a9
TG
24521
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24523$as_echo_n "checking for lgammaf... " >&6; }
24524if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
5213506e 24525 $as_echo_n "(cached) " >&6
fb0a0e15 24526else
db9f46a9 24527 if test x$gcc_no_link = xyes; then
5213506e 24528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24529fi
5213506e 24530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24531/* end confdefs.h. */
24532
db9f46a9
TG
24533#ifdef HAVE_COMPLEX_H
24534#include <complex.h>
fb0a0e15 24535#endif
db9f46a9
TG
24536#ifdef HAVE_MATH_H
24537#include <math.h>
24538#endif
24539
24540int (*ptr)() = (int (*)())lgammaf;
24541
fb0a0e15
FXC
24542int
24543main ()
24544{
fb0a0e15
FXC
24545 return 0;
24546}
db9f46a9 24547
fb0a0e15 24548_ACEOF
5213506e 24549if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24550 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24551else
db9f46a9 24552 gcc_cv_math_func_lgammaf=no
fb0a0e15 24553fi
5213506e
RW
24554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24556fi
db9f46a9
TG
24557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24558$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24559 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24560
f38a14ca
TG
24561cat >>confdefs.h <<_ACEOF
24562#define HAVE_LGAMMAF 1
24563_ACEOF
fb0a0e15 24564
db9f46a9 24565 fi
fb0a0e15 24566
fb0a0e15 24567
db9f46a9
TG
24568
24569
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24571$as_echo_n "checking for lgammal... " >&6; }
24572if test "${gcc_cv_math_func_lgammal+set}" = set; then :
5213506e 24573 $as_echo_n "(cached) " >&6
fb0a0e15 24574else
db9f46a9 24575 if test x$gcc_no_link = xyes; then
5213506e 24576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24577fi
5213506e 24578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24579/* end confdefs.h. */
24580
db9f46a9
TG
24581#ifdef HAVE_COMPLEX_H
24582#include <complex.h>
24583#endif
24584#ifdef HAVE_MATH_H
24585#include <math.h>
fb0a0e15 24586#endif
db9f46a9
TG
24587
24588int (*ptr)() = (int (*)())lgammal;
24589
fb0a0e15
FXC
24590int
24591main ()
24592{
fb0a0e15
FXC
24593 return 0;
24594}
db9f46a9 24595
fb0a0e15 24596_ACEOF
5213506e 24597if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24598 gcc_cv_math_func_lgammal=yes
fb0a0e15 24599else
db9f46a9 24600 gcc_cv_math_func_lgammal=no
fb0a0e15 24601fi
5213506e
RW
24602rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24604fi
db9f46a9
TG
24605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24606$as_echo "$gcc_cv_math_func_lgammal" >&6; }
24607 if test $gcc_cv_math_func_lgammal = yes; then
f1cdfa01 24608
f38a14ca
TG
24609cat >>confdefs.h <<_ACEOF
24610#define HAVE_LGAMMAL 1
24611_ACEOF
fb0a0e15 24612
db9f46a9 24613 fi
fb0a0e15 24614
a2a2059f 24615
db1cf15c 24616# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24617
24618
24619
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24621$as_echo_n "checking for cacos... " >&6; }
24622if test "${gcc_cv_math_func_cacos+set}" = set; then :
db1cf15c
IS
24623 $as_echo_n "(cached) " >&6
24624else
db9f46a9 24625 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24627fi
24628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24629/* end confdefs.h. */
24630
db9f46a9
TG
24631#ifdef HAVE_COMPLEX_H
24632#include <complex.h>
db1cf15c 24633#endif
db9f46a9
TG
24634#ifdef HAVE_MATH_H
24635#include <math.h>
24636#endif
24637
24638int (*ptr)() = (int (*)())cacos;
24639
db1cf15c
IS
24640int
24641main ()
24642{
db1cf15c
IS
24643 return 0;
24644}
db9f46a9 24645
db1cf15c
IS
24646_ACEOF
24647if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24648 gcc_cv_math_func_cacos=yes
db1cf15c 24649else
db9f46a9 24650 gcc_cv_math_func_cacos=no
db1cf15c
IS
24651fi
24652rm -f core conftest.err conftest.$ac_objext \
24653 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24654fi
db9f46a9
TG
24655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24656$as_echo "$gcc_cv_math_func_cacos" >&6; }
24657 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24658
f38a14ca
TG
24659cat >>confdefs.h <<_ACEOF
24660#define HAVE_CACOS 1
24661_ACEOF
db1cf15c 24662
db9f46a9 24663 fi
db1cf15c 24664
db1cf15c 24665
db9f46a9
TG
24666
24667
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24669$as_echo_n "checking for cacosf... " >&6; }
24670if test "${gcc_cv_math_func_cacosf+set}" = set; then :
db1cf15c
IS
24671 $as_echo_n "(cached) " >&6
24672else
db9f46a9 24673 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24675fi
24676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677/* end confdefs.h. */
24678
db9f46a9
TG
24679#ifdef HAVE_COMPLEX_H
24680#include <complex.h>
24681#endif
24682#ifdef HAVE_MATH_H
24683#include <math.h>
db1cf15c 24684#endif
db9f46a9
TG
24685
24686int (*ptr)() = (int (*)())cacosf;
24687
db1cf15c
IS
24688int
24689main ()
24690{
db1cf15c
IS
24691 return 0;
24692}
db9f46a9 24693
db1cf15c
IS
24694_ACEOF
24695if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24696 gcc_cv_math_func_cacosf=yes
db1cf15c 24697else
db9f46a9 24698 gcc_cv_math_func_cacosf=no
db1cf15c
IS
24699fi
24700rm -f core conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24702fi
db9f46a9
TG
24703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24704$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24705 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 24706
f38a14ca
TG
24707cat >>confdefs.h <<_ACEOF
24708#define HAVE_CACOSF 1
24709_ACEOF
db9f46a9
TG
24710
24711 fi
db1cf15c 24712
db1cf15c 24713
db1cf15c 24714
db9f46a9
TG
24715
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24717$as_echo_n "checking for cacosh... " >&6; }
24718if test "${gcc_cv_math_func_cacosh+set}" = set; then :
db1cf15c
IS
24719 $as_echo_n "(cached) " >&6
24720else
db9f46a9 24721 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24723fi
24724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24725/* end confdefs.h. */
24726
db9f46a9
TG
24727#ifdef HAVE_COMPLEX_H
24728#include <complex.h>
db1cf15c 24729#endif
db9f46a9
TG
24730#ifdef HAVE_MATH_H
24731#include <math.h>
24732#endif
24733
24734int (*ptr)() = (int (*)())cacosh;
24735
db1cf15c
IS
24736int
24737main ()
24738{
db1cf15c
IS
24739 return 0;
24740}
db9f46a9 24741
db1cf15c
IS
24742_ACEOF
24743if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24744 gcc_cv_math_func_cacosh=yes
db1cf15c 24745else
db9f46a9 24746 gcc_cv_math_func_cacosh=no
db1cf15c
IS
24747fi
24748rm -f core conftest.err conftest.$ac_objext \
24749 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24750fi
db9f46a9
TG
24751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24752$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24753 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 24754
f38a14ca
TG
24755cat >>confdefs.h <<_ACEOF
24756#define HAVE_CACOSH 1
24757_ACEOF
db9f46a9
TG
24758
24759 fi
24760
db1cf15c 24761
db1cf15c 24762
db1cf15c 24763
db9f46a9
TG
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24765$as_echo_n "checking for cacoshf... " >&6; }
24766if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
db1cf15c
IS
24767 $as_echo_n "(cached) " >&6
24768else
db9f46a9 24769 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24771fi
24772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24773/* end confdefs.h. */
24774
db9f46a9
TG
24775#ifdef HAVE_COMPLEX_H
24776#include <complex.h>
24777#endif
24778#ifdef HAVE_MATH_H
24779#include <math.h>
db1cf15c 24780#endif
db9f46a9
TG
24781
24782int (*ptr)() = (int (*)())cacoshf;
24783
db1cf15c
IS
24784int
24785main ()
24786{
db1cf15c
IS
24787 return 0;
24788}
db9f46a9 24789
db1cf15c
IS
24790_ACEOF
24791if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24792 gcc_cv_math_func_cacoshf=yes
db1cf15c 24793else
db9f46a9 24794 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
24795fi
24796rm -f core conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24798fi
db9f46a9
TG
24799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24800$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24801 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 24802
f38a14ca
TG
24803cat >>confdefs.h <<_ACEOF
24804#define HAVE_CACOSHF 1
24805_ACEOF
db9f46a9
TG
24806
24807 fi
db1cf15c 24808
db1cf15c 24809
db1cf15c 24810
db9f46a9
TG
24811
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24813$as_echo_n "checking for cacoshl... " >&6; }
24814if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
db1cf15c
IS
24815 $as_echo_n "(cached) " >&6
24816else
db9f46a9 24817 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24819fi
24820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24821/* end confdefs.h. */
24822
db9f46a9
TG
24823#ifdef HAVE_COMPLEX_H
24824#include <complex.h>
db1cf15c 24825#endif
db9f46a9
TG
24826#ifdef HAVE_MATH_H
24827#include <math.h>
24828#endif
24829
24830int (*ptr)() = (int (*)())cacoshl;
24831
db1cf15c
IS
24832int
24833main ()
24834{
db1cf15c
IS
24835 return 0;
24836}
db9f46a9 24837
db1cf15c
IS
24838_ACEOF
24839if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24840 gcc_cv_math_func_cacoshl=yes
db1cf15c 24841else
db9f46a9 24842 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
24843fi
24844rm -f core conftest.err conftest.$ac_objext \
24845 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24846fi
db9f46a9
TG
24847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24848$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24849 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 24850
f38a14ca
TG
24851cat >>confdefs.h <<_ACEOF
24852#define HAVE_CACOSHL 1
24853_ACEOF
db1cf15c 24854
db9f46a9 24855 fi
db1cf15c 24856
db1cf15c 24857
db9f46a9
TG
24858
24859
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24861$as_echo_n "checking for cacosl... " >&6; }
24862if test "${gcc_cv_math_func_cacosl+set}" = set; then :
db1cf15c
IS
24863 $as_echo_n "(cached) " >&6
24864else
db9f46a9 24865 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24867fi
24868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869/* end confdefs.h. */
24870
db9f46a9
TG
24871#ifdef HAVE_COMPLEX_H
24872#include <complex.h>
24873#endif
24874#ifdef HAVE_MATH_H
24875#include <math.h>
db1cf15c 24876#endif
db9f46a9
TG
24877
24878int (*ptr)() = (int (*)())cacosl;
24879
db1cf15c
IS
24880int
24881main ()
24882{
db1cf15c
IS
24883 return 0;
24884}
db9f46a9 24885
db1cf15c
IS
24886_ACEOF
24887if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24888 gcc_cv_math_func_cacosl=yes
db1cf15c 24889else
db9f46a9 24890 gcc_cv_math_func_cacosl=no
db1cf15c
IS
24891fi
24892rm -f core conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24894fi
db9f46a9
TG
24895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24896$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24897 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 24898
f38a14ca
TG
24899cat >>confdefs.h <<_ACEOF
24900#define HAVE_CACOSL 1
24901_ACEOF
db9f46a9
TG
24902
24903 fi
db1cf15c 24904
db1cf15c 24905
db1cf15c 24906
db9f46a9
TG
24907
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24909$as_echo_n "checking for casin... " >&6; }
24910if test "${gcc_cv_math_func_casin+set}" = set; then :
db1cf15c
IS
24911 $as_echo_n "(cached) " >&6
24912else
db9f46a9 24913 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24915fi
24916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917/* end confdefs.h. */
24918
db9f46a9
TG
24919#ifdef HAVE_COMPLEX_H
24920#include <complex.h>
db1cf15c 24921#endif
db9f46a9
TG
24922#ifdef HAVE_MATH_H
24923#include <math.h>
24924#endif
24925
24926int (*ptr)() = (int (*)())casin;
24927
db1cf15c
IS
24928int
24929main ()
24930{
db1cf15c
IS
24931 return 0;
24932}
db9f46a9 24933
db1cf15c
IS
24934_ACEOF
24935if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24936 gcc_cv_math_func_casin=yes
db1cf15c 24937else
db9f46a9 24938 gcc_cv_math_func_casin=no
db1cf15c
IS
24939fi
24940rm -f core conftest.err conftest.$ac_objext \
24941 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24942fi
db9f46a9
TG
24943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24944$as_echo "$gcc_cv_math_func_casin" >&6; }
24945 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 24946
f38a14ca
TG
24947cat >>confdefs.h <<_ACEOF
24948#define HAVE_CASIN 1
24949_ACEOF
db9f46a9
TG
24950
24951 fi
24952
db1cf15c 24953
db1cf15c 24954
db1cf15c 24955
db9f46a9
TG
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24957$as_echo_n "checking for casinf... " >&6; }
24958if test "${gcc_cv_math_func_casinf+set}" = set; then :
db1cf15c
IS
24959 $as_echo_n "(cached) " >&6
24960else
db9f46a9 24961 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24963fi
24964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24965/* end confdefs.h. */
24966
db9f46a9
TG
24967#ifdef HAVE_COMPLEX_H
24968#include <complex.h>
24969#endif
24970#ifdef HAVE_MATH_H
24971#include <math.h>
db1cf15c 24972#endif
db9f46a9
TG
24973
24974int (*ptr)() = (int (*)())casinf;
24975
db1cf15c
IS
24976int
24977main ()
24978{
db1cf15c
IS
24979 return 0;
24980}
db9f46a9 24981
db1cf15c
IS
24982_ACEOF
24983if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24984 gcc_cv_math_func_casinf=yes
db1cf15c 24985else
db9f46a9 24986 gcc_cv_math_func_casinf=no
db1cf15c
IS
24987fi
24988rm -f core conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24990fi
db9f46a9
TG
24991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24992$as_echo "$gcc_cv_math_func_casinf" >&6; }
24993 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 24994
f38a14ca
TG
24995cat >>confdefs.h <<_ACEOF
24996#define HAVE_CASINF 1
24997_ACEOF
db9f46a9
TG
24998
24999 fi
db1cf15c 25000
db1cf15c 25001
db1cf15c 25002
db9f46a9
TG
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25005$as_echo_n "checking for casinh... " >&6; }
25006if test "${gcc_cv_math_func_casinh+set}" = set; then :
db1cf15c
IS
25007 $as_echo_n "(cached) " >&6
25008else
db9f46a9 25009 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25011fi
25012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013/* end confdefs.h. */
25014
db9f46a9
TG
25015#ifdef HAVE_COMPLEX_H
25016#include <complex.h>
db1cf15c 25017#endif
db9f46a9
TG
25018#ifdef HAVE_MATH_H
25019#include <math.h>
25020#endif
25021
25022int (*ptr)() = (int (*)())casinh;
25023
db1cf15c
IS
25024int
25025main ()
25026{
db1cf15c
IS
25027 return 0;
25028}
db9f46a9 25029
db1cf15c
IS
25030_ACEOF
25031if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25032 gcc_cv_math_func_casinh=yes
db1cf15c 25033else
db9f46a9 25034 gcc_cv_math_func_casinh=no
db1cf15c
IS
25035fi
25036rm -f core conftest.err conftest.$ac_objext \
25037 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25038fi
db9f46a9
TG
25039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25040$as_echo "$gcc_cv_math_func_casinh" >&6; }
25041 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 25042
f38a14ca
TG
25043cat >>confdefs.h <<_ACEOF
25044#define HAVE_CASINH 1
25045_ACEOF
db1cf15c 25046
db9f46a9 25047 fi
db1cf15c 25048
db1cf15c 25049
db9f46a9
TG
25050
25051
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25053$as_echo_n "checking for casinhf... " >&6; }
25054if test "${gcc_cv_math_func_casinhf+set}" = set; then :
db1cf15c
IS
25055 $as_echo_n "(cached) " >&6
25056else
db9f46a9 25057 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25059fi
25060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25061/* end confdefs.h. */
25062
db9f46a9
TG
25063#ifdef HAVE_COMPLEX_H
25064#include <complex.h>
25065#endif
25066#ifdef HAVE_MATH_H
25067#include <math.h>
db1cf15c 25068#endif
db9f46a9
TG
25069
25070int (*ptr)() = (int (*)())casinhf;
25071
db1cf15c
IS
25072int
25073main ()
25074{
db1cf15c
IS
25075 return 0;
25076}
db9f46a9 25077
db1cf15c
IS
25078_ACEOF
25079if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25080 gcc_cv_math_func_casinhf=yes
db1cf15c 25081else
db9f46a9 25082 gcc_cv_math_func_casinhf=no
db1cf15c
IS
25083fi
25084rm -f core conftest.err conftest.$ac_objext \
25085 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25086fi
db9f46a9
TG
25087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25088$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25089 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 25090
f38a14ca
TG
25091cat >>confdefs.h <<_ACEOF
25092#define HAVE_CASINHF 1
25093_ACEOF
db9f46a9
TG
25094
25095 fi
db1cf15c 25096
db1cf15c 25097
db1cf15c 25098
db9f46a9
TG
25099
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25101$as_echo_n "checking for casinhl... " >&6; }
25102if test "${gcc_cv_math_func_casinhl+set}" = set; then :
db1cf15c
IS
25103 $as_echo_n "(cached) " >&6
25104else
db9f46a9 25105 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25107fi
25108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109/* end confdefs.h. */
25110
db9f46a9
TG
25111#ifdef HAVE_COMPLEX_H
25112#include <complex.h>
db1cf15c 25113#endif
db9f46a9
TG
25114#ifdef HAVE_MATH_H
25115#include <math.h>
25116#endif
25117
25118int (*ptr)() = (int (*)())casinhl;
25119
db1cf15c
IS
25120int
25121main ()
25122{
db1cf15c
IS
25123 return 0;
25124}
db9f46a9 25125
db1cf15c
IS
25126_ACEOF
25127if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25128 gcc_cv_math_func_casinhl=yes
db1cf15c 25129else
db9f46a9 25130 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25131fi
25132rm -f core conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25134fi
db9f46a9
TG
25135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25136$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25137 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25138
f38a14ca
TG
25139cat >>confdefs.h <<_ACEOF
25140#define HAVE_CASINHL 1
25141_ACEOF
db9f46a9
TG
25142
25143 fi
25144
db1cf15c 25145
db1cf15c 25146
db1cf15c 25147
db9f46a9
TG
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25149$as_echo_n "checking for casinl... " >&6; }
25150if test "${gcc_cv_math_func_casinl+set}" = set; then :
db1cf15c
IS
25151 $as_echo_n "(cached) " >&6
25152else
db9f46a9 25153 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25155fi
25156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157/* end confdefs.h. */
25158
db9f46a9
TG
25159#ifdef HAVE_COMPLEX_H
25160#include <complex.h>
25161#endif
25162#ifdef HAVE_MATH_H
25163#include <math.h>
db1cf15c 25164#endif
db9f46a9
TG
25165
25166int (*ptr)() = (int (*)())casinl;
25167
db1cf15c
IS
25168int
25169main ()
25170{
db1cf15c
IS
25171 return 0;
25172}
db9f46a9 25173
db1cf15c
IS
25174_ACEOF
25175if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25176 gcc_cv_math_func_casinl=yes
db1cf15c 25177else
db9f46a9 25178 gcc_cv_math_func_casinl=no
db1cf15c
IS
25179fi
25180rm -f core conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25182fi
db9f46a9
TG
25183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25184$as_echo "$gcc_cv_math_func_casinl" >&6; }
25185 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25186
f38a14ca
TG
25187cat >>confdefs.h <<_ACEOF
25188#define HAVE_CASINL 1
25189_ACEOF
db9f46a9
TG
25190
25191 fi
db1cf15c 25192
db1cf15c 25193
db1cf15c 25194
db9f46a9
TG
25195
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25197$as_echo_n "checking for catan... " >&6; }
25198if test "${gcc_cv_math_func_catan+set}" = set; then :
db1cf15c
IS
25199 $as_echo_n "(cached) " >&6
25200else
db9f46a9 25201 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25203fi
25204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205/* end confdefs.h. */
25206
db9f46a9
TG
25207#ifdef HAVE_COMPLEX_H
25208#include <complex.h>
db1cf15c 25209#endif
db9f46a9
TG
25210#ifdef HAVE_MATH_H
25211#include <math.h>
25212#endif
25213
25214int (*ptr)() = (int (*)())catan;
25215
db1cf15c
IS
25216int
25217main ()
25218{
db1cf15c
IS
25219 return 0;
25220}
db9f46a9 25221
db1cf15c
IS
25222_ACEOF
25223if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25224 gcc_cv_math_func_catan=yes
db1cf15c 25225else
db9f46a9 25226 gcc_cv_math_func_catan=no
db1cf15c
IS
25227fi
25228rm -f core conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25230fi
db9f46a9
TG
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25232$as_echo "$gcc_cv_math_func_catan" >&6; }
25233 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25234
f38a14ca
TG
25235cat >>confdefs.h <<_ACEOF
25236#define HAVE_CATAN 1
25237_ACEOF
db1cf15c 25238
db9f46a9 25239 fi
db1cf15c 25240
db1cf15c 25241
db9f46a9
TG
25242
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25245$as_echo_n "checking for catanf... " >&6; }
25246if test "${gcc_cv_math_func_catanf+set}" = set; then :
db1cf15c
IS
25247 $as_echo_n "(cached) " >&6
25248else
db9f46a9 25249 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25251fi
25252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25253/* end confdefs.h. */
25254
db9f46a9
TG
25255#ifdef HAVE_COMPLEX_H
25256#include <complex.h>
25257#endif
25258#ifdef HAVE_MATH_H
25259#include <math.h>
db1cf15c 25260#endif
db9f46a9
TG
25261
25262int (*ptr)() = (int (*)())catanf;
25263
db1cf15c
IS
25264int
25265main ()
25266{
db1cf15c
IS
25267 return 0;
25268}
db9f46a9 25269
db1cf15c
IS
25270_ACEOF
25271if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25272 gcc_cv_math_func_catanf=yes
db1cf15c 25273else
db9f46a9 25274 gcc_cv_math_func_catanf=no
db1cf15c
IS
25275fi
25276rm -f core conftest.err conftest.$ac_objext \
25277 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25278fi
db9f46a9
TG
25279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25280$as_echo "$gcc_cv_math_func_catanf" >&6; }
25281 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25282
f38a14ca
TG
25283cat >>confdefs.h <<_ACEOF
25284#define HAVE_CATANF 1
25285_ACEOF
db9f46a9
TG
25286
25287 fi
db1cf15c 25288
db1cf15c 25289
db1cf15c 25290
db9f46a9
TG
25291
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25293$as_echo_n "checking for catanh... " >&6; }
25294if test "${gcc_cv_math_func_catanh+set}" = set; then :
db1cf15c
IS
25295 $as_echo_n "(cached) " >&6
25296else
db9f46a9 25297 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25299fi
25300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301/* end confdefs.h. */
25302
db9f46a9
TG
25303#ifdef HAVE_COMPLEX_H
25304#include <complex.h>
db1cf15c 25305#endif
db9f46a9
TG
25306#ifdef HAVE_MATH_H
25307#include <math.h>
25308#endif
25309
25310int (*ptr)() = (int (*)())catanh;
25311
db1cf15c
IS
25312int
25313main ()
25314{
db1cf15c
IS
25315 return 0;
25316}
db9f46a9 25317
db1cf15c
IS
25318_ACEOF
25319if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25320 gcc_cv_math_func_catanh=yes
db1cf15c 25321else
db9f46a9 25322 gcc_cv_math_func_catanh=no
db1cf15c
IS
25323fi
25324rm -f core conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25326fi
db9f46a9
TG
25327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25328$as_echo "$gcc_cv_math_func_catanh" >&6; }
25329 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25330
f38a14ca
TG
25331cat >>confdefs.h <<_ACEOF
25332#define HAVE_CATANH 1
25333_ACEOF
db9f46a9
TG
25334
25335 fi
25336
db1cf15c 25337
db1cf15c 25338
db1cf15c 25339
db9f46a9
TG
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25341$as_echo_n "checking for catanhf... " >&6; }
25342if test "${gcc_cv_math_func_catanhf+set}" = set; then :
db1cf15c
IS
25343 $as_echo_n "(cached) " >&6
25344else
db9f46a9 25345 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25347fi
25348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349/* end confdefs.h. */
25350
db9f46a9
TG
25351#ifdef HAVE_COMPLEX_H
25352#include <complex.h>
25353#endif
25354#ifdef HAVE_MATH_H
25355#include <math.h>
db1cf15c 25356#endif
db9f46a9
TG
25357
25358int (*ptr)() = (int (*)())catanhf;
25359
db1cf15c
IS
25360int
25361main ()
25362{
db1cf15c
IS
25363 return 0;
25364}
db9f46a9 25365
db1cf15c
IS
25366_ACEOF
25367if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25368 gcc_cv_math_func_catanhf=yes
db1cf15c 25369else
db9f46a9 25370 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25371fi
25372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25374fi
db9f46a9
TG
25375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25376$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25377 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25378
f38a14ca
TG
25379cat >>confdefs.h <<_ACEOF
25380#define HAVE_CATANHF 1
25381_ACEOF
db9f46a9
TG
25382
25383 fi
db1cf15c 25384
db1cf15c 25385
db1cf15c 25386
db9f46a9
TG
25387
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25389$as_echo_n "checking for catanhl... " >&6; }
25390if test "${gcc_cv_math_func_catanhl+set}" = set; then :
db1cf15c
IS
25391 $as_echo_n "(cached) " >&6
25392else
db9f46a9 25393 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25395fi
25396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397/* end confdefs.h. */
25398
db9f46a9
TG
25399#ifdef HAVE_COMPLEX_H
25400#include <complex.h>
db1cf15c 25401#endif
db9f46a9
TG
25402#ifdef HAVE_MATH_H
25403#include <math.h>
25404#endif
25405
25406int (*ptr)() = (int (*)())catanhl;
25407
db1cf15c
IS
25408int
25409main ()
25410{
db1cf15c
IS
25411 return 0;
25412}
db9f46a9 25413
db1cf15c
IS
25414_ACEOF
25415if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25416 gcc_cv_math_func_catanhl=yes
db1cf15c 25417else
db9f46a9 25418 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25419fi
25420rm -f core conftest.err conftest.$ac_objext \
25421 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25422fi
db9f46a9
TG
25423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25424$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25425 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25426
f38a14ca
TG
25427cat >>confdefs.h <<_ACEOF
25428#define HAVE_CATANHL 1
25429_ACEOF
db1cf15c 25430
db9f46a9 25431 fi
db1cf15c 25432
db1cf15c 25433
db9f46a9
TG
25434
25435
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25437$as_echo_n "checking for catanl... " >&6; }
25438if test "${gcc_cv_math_func_catanl+set}" = set; then :
db1cf15c
IS
25439 $as_echo_n "(cached) " >&6
25440else
db9f46a9 25441 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25443fi
25444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445/* end confdefs.h. */
25446
db9f46a9
TG
25447#ifdef HAVE_COMPLEX_H
25448#include <complex.h>
25449#endif
25450#ifdef HAVE_MATH_H
25451#include <math.h>
db1cf15c 25452#endif
db9f46a9
TG
25453
25454int (*ptr)() = (int (*)())catanl;
25455
db1cf15c
IS
25456int
25457main ()
25458{
db1cf15c
IS
25459 return 0;
25460}
db9f46a9 25461
db1cf15c
IS
25462_ACEOF
25463if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25464 gcc_cv_math_func_catanl=yes
db1cf15c 25465else
db9f46a9 25466 gcc_cv_math_func_catanl=no
db1cf15c
IS
25467fi
25468rm -f core conftest.err conftest.$ac_objext \
25469 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25470fi
db9f46a9
TG
25471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25472$as_echo "$gcc_cv_math_func_catanl" >&6; }
25473 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25474
f38a14ca
TG
25475cat >>confdefs.h <<_ACEOF
25476#define HAVE_CATANL 1
25477_ACEOF
db1cf15c 25478
db9f46a9 25479 fi
db1cf15c
IS
25480
25481
118ea208 25482# On AIX, clog is present in libm as __clog
5213506e
RW
25483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25484$as_echo_n "checking for __clog in -lm... " >&6; }
25485if test "${ac_cv_lib_m___clog+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
e097b4f1
DE
25487else
25488 ac_check_lib_save_LIBS=$LIBS
25489LIBS="-lm $LIBS"
25490if test x$gcc_no_link = xyes; then
5213506e 25491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25492fi
5213506e 25493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25494/* end confdefs.h. */
25495
5213506e
RW
25496/* Override any GCC internal prototype to avoid an error.
25497 Use char because int might match the return type of a GCC
25498 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25499#ifdef __cplusplus
25500extern "C"
25501#endif
e097b4f1
DE
25502char __clog ();
25503int
25504main ()
25505{
5213506e 25506return __clog ();
e097b4f1
DE
25507 ;
25508 return 0;
25509}
25510_ACEOF
5213506e 25511if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25512 ac_cv_lib_m___clog=yes
25513else
5213506e 25514 ac_cv_lib_m___clog=no
e097b4f1 25515fi
5213506e
RW
25516rm -f core conftest.err conftest.$ac_objext \
25517 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25518LIBS=$ac_check_lib_save_LIBS
25519fi
5213506e
RW
25520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25521$as_echo "$ac_cv_lib_m___clog" >&6; }
25522if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 25523
5213506e 25524$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25525
25526fi
25527
25528
ad238e4f
FXC
25529# Check whether the system has a working stat()
25530
5213506e
RW
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25532$as_echo_n "checking whether the target stat is reliable... " >&6; }
25533if test "${libgfor_cv_have_working_stat+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
ad238e4f
FXC
25535else
25536
5213506e 25537 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
25538
25539case "${target}" in
6d26724a
RW
25540 *mingw*) libgfor_cv_have_working_stat=no ;;
25541 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
25542esac
25543else
5213506e 25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
25545/* end confdefs.h. */
25546
25547#include <stdio.h>
25548#include <sys/types.h>
25549#include <sys/stat.h>
25550#include <unistd.h>
25551
25552int main ()
25553{
25554 FILE *f, *g;
25555 struct stat st1, st2;
25556
25557 f = fopen ("foo", "w");
25558 g = fopen ("bar", "w");
25559 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25560 return 1;
25561 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25562 return 1;
25563 fclose(f);
25564 fclose(g);
25565 return 0;
25566}
25567_ACEOF
5213506e 25568if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25569 libgfor_cv_have_working_stat=yes
ad238e4f 25570else
5213506e 25571 libgfor_cv_have_working_stat=no
ad238e4f 25572fi
5213506e
RW
25573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25574 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 25575fi
5213506e 25576
ad238e4f 25577fi
5213506e
RW
25578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25579$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 25580if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 25581
5213506e 25582$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
25583
25584fi
25585
db8092dc
FXC
25586# Check whether __mingw_snprintf() is present
25587
5213506e
RW
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25589$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25590if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
db8092dc
FXC
25592else
25593
25594 if test x$gcc_no_link = xyes; then
5213506e 25595 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 25596fi
5213506e 25597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
25598/* end confdefs.h. */
25599
25600#include <stdio.h>
25601extern int __mingw_snprintf (char *, size_t, const char *, ...);
25602
25603int
25604main ()
25605{
25606
25607__mingw_snprintf (NULL, 0, "%d\n", 1);
25608
25609 ;
25610 return 0;
25611}
25612_ACEOF
5213506e 25613if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25614 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25615else
5213506e 25616 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25617fi
5213506e
RW
25618rm -f core conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25620
25621fi
5213506e
RW
25622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25623$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25624 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25625
5213506e 25626$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25627
25628 fi
25629
25630
87e6d9dc
TB
25631# Check whether libquadmath should be used
25632# Check whether --enable-libquadmath-support was given.
25633if test "${enable_libquadmath_support+set}" = set; then :
25634 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25635else
25636 ENABLE_LIBQUADMATH_SUPPORT=yes
25637fi
25638
25639enable_libquadmath_support=
25640if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25641 enable_libquadmath_support=no
25642fi
25643
25644# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25645
25646 LIBQUADSPEC=
87e6d9dc
TB
25647
25648 if test "x$enable_libquadmath_support" != xno; then
25649
1ec601bf
FXC
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25651$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25652if test "${libgfor_cv_have_float128+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654else
25655
69eb61d4
TB
25656 if test x$gcc_no_link = xyes; then
25657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
25658/* end confdefs.h. */
25659
69eb61d4
TB
25660 typedef _Complex float __attribute__((mode(TC))) __complex128;
25661
25662 __float128 foo (__float128 x)
25663 {
25664
25665 __complex128 z1, z2;
25666
25667 z1 = x;
25668 z2 = x / 7.Q;
25669 z2 /= z1;
25670
25671 return (__float128) z2;
25672 }
25673
25674 __float128 bar (__float128 x)
25675 {
25676 return x * __builtin_huge_valq ();
25677 }
1ec601bf
FXC
25678
25679int
25680main ()
25681{
25682
69eb61d4
TB
25683 foo (1.2Q);
25684 bar (1.2Q);
1ec601bf 25685
69eb61d4
TB
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 25691
69eb61d4 25692 libgfor_cv_have_float128=yes
1ec601bf 25693
69eb61d4
TB
25694else
25695
25696 libgfor_cv_have_float128=no
25697
25698fi
25699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25700else
25701 if test x$gcc_no_link = xyes; then
25702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25703fi
25704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705/* end confdefs.h. */
25706
25707 typedef _Complex float __attribute__((mode(TC))) __complex128;
25708
25709 __float128 foo (__float128 x)
25710 {
25711
25712 __complex128 z1, z2;
25713
25714 z1 = x;
25715 z2 = x / 7.Q;
25716 z2 /= z1;
25717
25718 return (__float128) z2;
25719 }
25720
25721 __float128 bar (__float128 x)
25722 {
25723 return x * __builtin_huge_valq ();
25724 }
25725
25726int
25727main ()
25728{
25729
25730 foo (1.2Q);
25731 bar (1.2Q);
1ec601bf
FXC
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
25738
25739 libgfor_cv_have_float128=yes
25740
1ec601bf 25741else
69eb61d4
TB
25742
25743 libgfor_cv_have_float128=no
25744
1ec601bf
FXC
25745fi
25746rm -f core conftest.err conftest.$ac_objext \
25747 conftest$ac_exeext conftest.$ac_ext
69eb61d4 25748fi
1ec601bf
FXC
25749fi
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25751$as_echo "$libgfor_cv_have_float128" >&6; }
25752
25753 if test "x$libgfor_cv_have_float128" = xyes; then
25754
25755$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25756
25757
25758 ac_xsave_c_werror_flag=$ac_c_werror_flag
828012a5
RO
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25760$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
1ec601bf
FXC
25761if test "${libgfor_cv_have_as_needed+set}" = set; then :
25762 $as_echo_n "(cached) " >&6
25763else
25764
828012a5
RO
25765 # Test for native Solaris options first.
25766 # No whitespace after -z to pass it through -Wl.
25767 libgfor_cv_as_needed_option="-zignore"
25768 libgfor_cv_no_as_needed_option="-zrecord"
1ec601bf 25769 save_LDFLAGS="$LDFLAGS"
828012a5 25770 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
1ec601bf
FXC
25771 libgfor_cv_have_as_needed=no
25772
25773ac_c_werror_flag=yes
25774 if test x$gcc_no_link = xyes; then
25775 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25776fi
25777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778/* end confdefs.h. */
25779
25780int
25781main ()
25782{
25783
25784 ;
25785 return 0;
25786}
25787_ACEOF
25788if ac_fn_c_try_link "$LINENO"; then :
25789 libgfor_cv_have_as_needed=yes
25790else
25791 libgfor_cv_have_as_needed=no
25792fi
25793rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
25795 LDFLAGS="$save_LDFLAGS"
828012a5
RO
25796 if test "x$libgfor_cv_have_as_needed" = xno; then
25797 libgfor_cv_as_needed_option="--as-needed"
25798 libgfor_cv_no_as_needed_option="--no-as-needed"
25799 save_LDFLAGS="$LDFLAGS"
25800 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25801 libgfor_cv_have_as_needed=no
25802
25803ac_c_werror_flag=yes
25804 if test x$gcc_no_link = xyes; then
25805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25806fi
25807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25808/* end confdefs.h. */
25809
25810int
25811main ()
25812{
25813
25814 ;
25815 return 0;
25816}
25817_ACEOF
25818if ac_fn_c_try_link "$LINENO"; then :
25819 libgfor_cv_have_as_needed=yes
25820else
25821 libgfor_cv_have_as_needed=no
25822fi
25823rm -f core conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
25825 LDFLAGS="$save_LDFLAGS"
25826 fi
1ec601bf
FXC
25827 ac_c_werror_flag=$ac_xsave_c_werror_flag
25828
25829fi
25830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25831$as_echo "$libgfor_cv_have_as_needed" >&6; }
25832
25833 if test "x$libgfor_cv_have_as_needed" = xyes; then
828012a5 25834 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
1ec601bf
FXC
25835 else
25836 LIBQUADSPEC="-lquadmath"
25837 fi
25838 if test -f ../libquadmath/libquadmath.la; then
25839 LIBQUADLIB=../libquadmath/libquadmath.la
25840 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25841 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25842 else
25843 LIBQUADLIB="-lquadmath"
25844 LIBQUADLIB_DEP=
25845 LIBQUADINCLUDE=
25846 fi
25847 fi
87e6d9dc
TB
25848 else
25849 # for --disable-quadmath
25850 LIBQUADLIB=
25851 LIBQUADLIB_DEP=
25852 LIBQUADINCLUDE=
25853 fi
1ec601bf
FXC
25854
25855
25856
25857
25858
25859
25860 if test "x$libgfor_cv_have_float128" = xyes; then
25861 LIBGFOR_BUILD_QUAD_TRUE=
25862 LIBGFOR_BUILD_QUAD_FALSE='#'
25863else
25864 LIBGFOR_BUILD_QUAD_TRUE='#'
25865 LIBGFOR_BUILD_QUAD_FALSE=
25866fi
25867
25868
25869
944b8b35 25870# Check for GNU libc feenableexcept
5213506e
RW
25871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25872$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25873if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
944b8b35
FXC
25875else
25876 ac_check_lib_save_LIBS=$LIBS
25877LIBS="-lm $LIBS"
25878if test x$gcc_no_link = xyes; then
5213506e 25879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25880fi
5213506e 25881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25882/* end confdefs.h. */
25883
5213506e
RW
25884/* Override any GCC internal prototype to avoid an error.
25885 Use char because int might match the return type of a GCC
25886 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25887#ifdef __cplusplus
25888extern "C"
25889#endif
944b8b35
FXC
25890char feenableexcept ();
25891int
25892main ()
25893{
5213506e 25894return feenableexcept ();
944b8b35
FXC
25895 ;
25896 return 0;
25897}
25898_ACEOF
5213506e 25899if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25900 ac_cv_lib_m_feenableexcept=yes
25901else
5213506e 25902 ac_cv_lib_m_feenableexcept=no
944b8b35 25903fi
5213506e
RW
25904rm -f core conftest.err conftest.$ac_objext \
25905 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25906LIBS=$ac_check_lib_save_LIBS
25907fi
5213506e
RW
25908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25909$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25910if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25911 have_feenableexcept=yes
5213506e 25912$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25913
25914fi
25915
3b14f664 25916
5c30094f 25917# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
25918# pull that in if it still doesn't give us the function we want. This
25919# test is copied from libgomp, and modified to not link in -lrt as
25920# libgfortran calls clock_gettime via a weak reference if it's found
25921# in librt.
b6e7a3d1
JB
25922if test $ac_cv_func_clock_gettime = no; then
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25924$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25925if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25926 $as_echo_n "(cached) " >&6
25927else
25928 ac_check_lib_save_LIBS=$LIBS
25929LIBS="-lrt $LIBS"
25930if test x$gcc_no_link = xyes; then
25931 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25932fi
25933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25934/* end confdefs.h. */
25935
25936/* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25939#ifdef __cplusplus
25940extern "C"
25941#endif
25942char clock_gettime ();
25943int
25944main ()
25945{
25946return clock_gettime ();
25947 ;
25948 return 0;
25949}
25950_ACEOF
25951if ac_fn_c_try_link "$LINENO"; then :
25952 ac_cv_lib_rt_clock_gettime=yes
25953else
25954 ac_cv_lib_rt_clock_gettime=no
25955fi
25956rm -f core conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
25958LIBS=$ac_check_lib_save_LIBS
25959fi
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25961$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25962if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1 25963
2aadeae2 25964$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
25965
25966fi
25967
25968fi
25969
5213506e 25970# Check for SysV fpsetmask
3b14f664 25971
5213506e
RW
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25973$as_echo_n "checking whether fpsetmask is present... " >&6; }
25974if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25975 $as_echo_n "(cached) " >&6
25976else
3b14f664 25977
5213506e
RW
25978 if test x$gcc_no_link = xyes; then
25979 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25980fi
25981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982/* end confdefs.h. */
3b14f664 25983
5213506e
RW
25984#if HAVE_FLOATINGPOINT_H
25985# include <floatingpoint.h>
25986#endif /* HAVE_FLOATINGPOINT_H */
25987#if HAVE_IEEEFP_H
25988# include <ieeefp.h>
25989#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25990int
25991main ()
25992{
5213506e 25993fpsetmask(0);
3b14f664
FXC
25994 ;
25995 return 0;
25996}
25997_ACEOF
5213506e
RW
25998if ac_fn_c_try_link "$LINENO"; then :
25999 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 26000else
5213506e
RW
26001 eval "libgfor_cv_have_fpsetmask=no"
26002fi
26003rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
3b14f664 26005
3b14f664 26006fi
5213506e
RW
26007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26008$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26009 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 26010 have_fpsetmask=yes
5213506e
RW
26011
26012$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26013
26014 fi
26015
7ae346c3
TB
26016ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "#include <ieeefp.h>
26017"
26018if test "x$ac_cv_type_fp_except" = x""yes; then :
26019
26020cat >>confdefs.h <<_ACEOF
26021#define HAVE_FP_EXCEPT 1
26022_ACEOF
26023
26024
26025fi
26026ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "#include <ieeefp.h>
26027"
26028if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26029
26030cat >>confdefs.h <<_ACEOF
26031#define HAVE_FP_EXCEPT_T 1
26032_ACEOF
26033
26034
82a4f54c
TB
26035fi
26036
26037ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "#include <ieeefp.h>
26038"
26039if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26040
26041cat >>confdefs.h <<_ACEOF
26042#define HAVE_FP_RND 1
26043_ACEOF
26044
26045
26046fi
26047ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "#include <ieeefp.h>
26048"
26049if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26050
26051cat >>confdefs.h <<_ACEOF
26052#define HAVE_FP_RND_T 1
26053_ACEOF
26054
26055
7ae346c3
TB
26056fi
26057
5213506e
RW
26058
26059# Check for AIX fp_trap and fp_enable
26060ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26061if test "x$ac_cv_func_fp_trap" = x""yes; then :
26062 have_fp_trap=yes
26063$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26064
3b14f664 26065fi
5213506e
RW
26066
26067ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26068if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 26069 have_fp_enable=yes
5213506e 26070$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
26071
26072fi
26073
26074
944b8b35
FXC
26075# Runs configure.host to set up necessary host-dependent shell variables.
26076# We then display a message about it, and propagate them through the
26077# build chain.
26078. ${srcdir}/configure.host
5213506e
RW
26079{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26080$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
944b8b35
FXC
26081FPU_HOST_HEADER=config/${fpu_host}.h
26082
26083
9fc77574
KK
26084# Some targets require additional compiler options for IEEE compatibility.
26085IEEE_FLAGS="${ieee_flags}"
26086
26087
23e6d4a5
JB
26088
26089# Check for POSIX getpwuid_r
26090#
26091# There are two versions of getpwuid_r, the POSIX one with 5
26092# arguments, and another one with 4 arguments used by at least HP-UX
26093# 10.2.
26094if test "$ac_cv_func_getpwuid_r" = "yes"; then
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26096$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26097if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26098 $as_echo_n "(cached) " >&6
26099else
26100
26101 if test x$gcc_no_link = xyes; then
26102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26103fi
26104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105/* end confdefs.h. */
26106
26107#include <stdio.h>
26108#include <sys/types.h>
26109#include <pwd.h>
26110int
26111main ()
26112{
26113
26114 getpwuid_r(0, NULL, NULL, 0, NULL);
26115
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120if ac_fn_c_try_link "$LINENO"; then :
26121 libgfor_cv_posix_getpwuid_r="yes"
26122else
26123 libgfor_cv_posix_getpwuid_r="no"
26124fi
26125rm -f core conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
26127fi
26128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26129$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26130fi
26131if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26132
26133$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26134
26135fi
26136
26137
7d7b8bfe
RH
26138# Check out attribute support.
26139
5213506e
RW
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26141$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26142if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26144else
26145
26146 save_CFLAGS="$CFLAGS"
26147 CFLAGS="$CFLAGS -Werror"
5213506e 26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26149/* end confdefs.h. */
26150void __attribute__((visibility("hidden"))) foo(void) { }
26151int
26152main ()
26153{
26154
26155 ;
26156 return 0;
26157}
26158_ACEOF
5213506e 26159if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26160 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 26161else
5213506e 26162 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 26163fi
5213506e 26164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26165 CFLAGS="$save_CFLAGS"
26166fi
5213506e
RW
26167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26168$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 26169 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 26170
5213506e 26171$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
26172
26173 fi
26174
5213506e
RW
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26176$as_echo_n "checking whether the target supports dllexport... " >&6; }
26177if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26178 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26179else
26180
26181 save_CFLAGS="$CFLAGS"
26182 CFLAGS="$CFLAGS -Werror"
5213506e 26183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26184/* end confdefs.h. */
26185void __attribute__((dllexport)) foo(void) { }
26186int
26187main ()
26188{
26189
26190 ;
26191 return 0;
26192}
26193_ACEOF
5213506e 26194if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26195 libgfor_cv_have_attribute_dllexport=yes
7d7b8bfe 26196else
5213506e 26197 libgfor_cv_have_attribute_dllexport=no
7d7b8bfe 26198fi
5213506e 26199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26200 CFLAGS="$save_CFLAGS"
26201fi
5213506e
RW
26202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26203$as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
6d26724a 26204 if test $libgfor_cv_have_attribute_dllexport = yes; then
7d7b8bfe 26205
5213506e 26206$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
7d7b8bfe
RH
26207
26208 fi
26209
5213506e
RW
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26211$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26212if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26213 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26214else
26215
f02d008e 26216 if test x$gcc_no_link = xyes; then
5213506e 26217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 26218fi
5213506e 26219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26220/* end confdefs.h. */
26221
7d7b8bfe 26222void foo(void) { }
16a314a9 26223extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
26224int
26225main ()
26226{
26227bar();
26228 ;
26229 return 0;
26230}
26231_ACEOF
5213506e 26232if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26233 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 26234else
5213506e 26235 libgfor_cv_have_attribute_alias=no
7d7b8bfe 26236fi
5213506e
RW
26237rm -f core conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 26239fi
5213506e
RW
26240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26241$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 26242 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 26243
5213506e 26244$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
26245
26246 fi
26247
5e805e44
JJ
26248# Check out sync builtins support.
26249
5213506e
RW
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26251$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26252if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26253 $as_echo_n "(cached) " >&6
5e805e44
JJ
26254else
26255
26256 if test x$gcc_no_link = xyes; then
5213506e 26257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 26258fi
5213506e 26259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
26260/* end confdefs.h. */
26261int foovar = 0;
26262int
26263main ()
26264{
26265
26266if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26267if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26268 ;
26269 return 0;
26270}
26271_ACEOF
5213506e 26272if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26273 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 26274else
5213506e 26275 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 26276fi
5213506e
RW
26277rm -f core conftest.err conftest.$ac_objext \
26278 conftest$ac_exeext conftest.$ac_ext
5e805e44 26279fi
5213506e
RW
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26281$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 26282 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 26283
5213506e 26284$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
26285
26286 fi
26287
5e805e44
JJ
26288# Check out #pragma weak.
26289
5213506e
RW
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26291$as_echo_n "checking whether pragma weak works... " >&6; }
26292if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26293 $as_echo_n "(cached) " >&6
5e805e44
JJ
26294else
26295
26296 gfor_save_CFLAGS="$CFLAGS"
26297 CFLAGS="$CFLAGS -Wunknown-pragmas"
5213506e 26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26299/* end confdefs.h. */
de15ea94 26300
5e805e44
JJ
26301void foo (void);
26302#pragma weak foo
de15ea94 26303
5e805e44
JJ
26304int
26305main ()
26306{
26307if (foo) foo ();
26308 ;
26309 return 0;
26310}
26311_ACEOF
5213506e 26312if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26313 libgfor_cv_have_pragma_weak=yes
5e805e44 26314else
5213506e 26315 libgfor_cv_have_pragma_weak=no
5e805e44 26316fi
5213506e 26317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e805e44 26318fi
5213506e
RW
26319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26320$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
6d26724a 26321 if test $libgfor_cv_have_pragma_weak = yes; then
5e805e44 26322
5213506e 26323$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
5e805e44
JJ
26324
26325 fi
e669bd2b 26326 case "$host" in
5c30094f 26327 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
e669bd2b 26328
5213506e 26329$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
e669bd2b
JJ
26330
26331 ;;
26332 esac
5e805e44 26333
10c682a0
FXC
26334# Various other checks on target
26335
5213506e
RW
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26337$as_echo_n "checking whether the target can unlink an open file... " >&6; }
26338if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
10c682a0
FXC
26340else
26341
5213506e 26342 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26343
26344case "${target}" in
6d26724a
RW
26345 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26346 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26347esac
26348else
5213506e 26349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26350/* end confdefs.h. */
26351
26352#include <errno.h>
26353#include <fcntl.h>
26354#include <unistd.h>
26355#include <sys/stat.h>
26356
26357int main ()
26358{
26359 int fd;
26360
42dfafa9 26361 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26362 if (fd <= 0)
26363 return 0;
26364 if (unlink ("testfile") == -1)
26365 return 1;
26366 write (fd, "This is a test\n", 15);
26367 close (fd);
26368
42dfafa9 26369 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26370 return 0;
26371 else
26372 return 1;
26373}
26374_ACEOF
5213506e 26375if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26376 libgfor_cv_have_unlink_open_file=yes
10c682a0 26377else
5213506e 26378 libgfor_cv_have_unlink_open_file=no
10c682a0 26379fi
5213506e
RW
26380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26381 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26382fi
5213506e 26383
10c682a0 26384fi
5213506e
RW
26385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26386$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26387if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26388
5213506e 26389$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26390
26391fi
26392
3c127520
FXC
26393# Check whether line terminator is LF or CRLF
26394
5213506e
RW
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26396$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26397if test "${libgfor_cv_have_crlf+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
3c127520
FXC
26399else
26400
5213506e 26401 if test "$cross_compiling" = yes; then :
3c127520
FXC
26402
26403case "${target}" in
6d26724a
RW
26404 *mingw*) libgfor_cv_have_crlf=yes ;;
26405 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
26406esac
26407else
5213506e 26408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
26409/* end confdefs.h. */
26410
26411/* This test program should exit with status 0 if system uses a CRLF as
26412 line terminator, and status 1 otherwise.
26413 Since it is used to check for mingw systems, and should return 0 in any
26414 other case, in case of a failure we will not use CRLF. */
26415#include <sys/stat.h>
26416#include <stdlib.h>
26417#include <fcntl.h>
26418#include <stdio.h>
26419
26420int main ()
26421{
26422#ifndef O_BINARY
26423 exit(1);
26424#else
26425 int fd, bytes;
26426 char buff[5];
26427
26428 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26429 if (fd < 0)
26430 exit(1);
26431 if (write (fd, "\n", 1) < 0)
26432 perror ("write");
26433
26434 close (fd);
26435
26436 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26437 exit(1);
26438 bytes = read (fd, buff, 5);
26439 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26440 exit(0);
26441 else
26442 exit(1);
26443#endif
26444}
26445_ACEOF
5213506e 26446if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26447 libgfor_cv_have_crlf=yes
3c127520 26448else
5213506e 26449 libgfor_cv_have_crlf=no
3c127520 26450fi
5213506e
RW
26451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26452 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 26453fi
5213506e 26454
3c127520 26455fi
5213506e
RW
26456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26457$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 26458if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 26459
5213506e 26460$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
26461
26462fi
26463
1ff101ff
JB
26464# Check whether we have _Unwind_GetIPInfo for backtrace
26465
26466
26467# Check whether --with-system-libunwind was given.
26468if test "${with_system_libunwind+set}" = set; then :
26469 withval=$with_system_libunwind;
26470fi
26471
26472 # If system-libunwind was not specifically set, pick a default setting.
26473 if test x$with_system_libunwind = x; then
26474 case ${target} in
26475 ia64-*-hpux*) with_system_libunwind=yes ;;
26476 *) with_system_libunwind=no ;;
26477 esac
26478 fi
26479 # Based on system-libunwind and target, do we have ipinfo?
26480 if test x$with_system_libunwind = xyes; then
26481 case ${target} in
26482 ia64-*-*) have_unwind_getipinfo=no ;;
26483 *) have_unwind_getipinfo=yes ;;
26484 esac
26485 else
26486 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26487
26488 case ${target} in
26489 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26490 *) have_unwind_getipinfo=yes ;;
26491 esac
26492
26493 fi
26494
26495 if test x$have_unwind_getipinfo = xyes; then
26496
26497$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26498
26499 fi
26500
26501
6de9cd9a
DN
26502cat >confcache <<\_ACEOF
26503# This file is a shell script that caches the results of configure
26504# tests run on this system so they can be shared between configure
26505# scripts and configure runs, see configure's option --config-cache.
26506# It is not useful on other systems. If it contains results you don't
26507# want to keep, you may remove or edit it.
26508#
26509# config.status only pays attention to the cache file if you give it
26510# the --recheck option to rerun configure.
26511#
26512# `ac_cv_env_foo' variables (set or unset) will be overridden when
26513# loading this file, other *unset* `ac_cv_foo' will be assigned the
26514# following values.
26515
26516_ACEOF
26517
26518# The following way of writing the cache mishandles newlines in values,
26519# but we know of no workaround that is simple, portable, and efficient.
5213506e 26520# So, we kill variables containing newlines.
6de9cd9a
DN
26521# Ultrix sh set writes to stderr and can't be redirected directly,
26522# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26523(
26524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26525 eval ac_val=\$$ac_var
26526 case $ac_val in #(
26527 *${as_nl}*)
26528 case $ac_var in #(
26529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26530$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26531 esac
26532 case $ac_var in #(
26533 _ | IFS | as_nl) ;; #(
26534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26535 *) { eval $ac_var=; unset $ac_var;} ;;
26536 esac ;;
26537 esac
26538 done
26539
6de9cd9a 26540 (set) 2>&1 |
5213506e
RW
26541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26542 *${as_nl}ac_space=\ *)
26543 # `set' does not quote correctly, so add quotes: double-quote
26544 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26545 sed -n \
26546 "s/'/'\\\\''/g;
26547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26548 ;; #(
6de9cd9a
DN
26549 *)
26550 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26552 ;;
5213506e
RW
26553 esac |
26554 sort
26555) |
6de9cd9a 26556 sed '
5213506e 26557 /^ac_cv_env_/b end
6de9cd9a 26558 t clear
5213506e 26559 :clear
6de9cd9a
DN
26560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26561 t end
5213506e
RW
26562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26563 :end' >>confcache
26564if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26565 if test -w "$cache_file"; then
26566 test "x$cache_file" != "x/dev/null" &&
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26568$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26569 cat confcache >$cache_file
26570 else
5213506e
RW
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26573 fi
26574fi
26575rm -f confcache
26576
96b8a615
AJ
26577if test ${multilib} = yes; then
26578 multilib_arg="--enable-multilib"
6de9cd9a 26579else
96b8a615 26580 multilib_arg=
6de9cd9a 26581fi
6de9cd9a 26582
1ec601bf
FXC
26583# Write our Makefile and spec file.
26584ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 26585
6de9cd9a
DN
26586cat >confcache <<\_ACEOF
26587# This file is a shell script that caches the results of configure
26588# tests run on this system so they can be shared between configure
26589# scripts and configure runs, see configure's option --config-cache.
26590# It is not useful on other systems. If it contains results you don't
26591# want to keep, you may remove or edit it.
26592#
26593# config.status only pays attention to the cache file if you give it
26594# the --recheck option to rerun configure.
26595#
26596# `ac_cv_env_foo' variables (set or unset) will be overridden when
26597# loading this file, other *unset* `ac_cv_foo' will be assigned the
26598# following values.
26599
26600_ACEOF
26601
26602# The following way of writing the cache mishandles newlines in values,
26603# but we know of no workaround that is simple, portable, and efficient.
5213506e 26604# So, we kill variables containing newlines.
6de9cd9a
DN
26605# Ultrix sh set writes to stderr and can't be redirected directly,
26606# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26607(
26608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26609 eval ac_val=\$$ac_var
26610 case $ac_val in #(
26611 *${as_nl}*)
26612 case $ac_var in #(
26613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26614$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26615 esac
26616 case $ac_var in #(
26617 _ | IFS | as_nl) ;; #(
26618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26619 *) { eval $ac_var=; unset $ac_var;} ;;
26620 esac ;;
26621 esac
26622 done
26623
6de9cd9a 26624 (set) 2>&1 |
5213506e
RW
26625 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26626 *${as_nl}ac_space=\ *)
26627 # `set' does not quote correctly, so add quotes: double-quote
26628 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26629 sed -n \
26630 "s/'/'\\\\''/g;
26631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26632 ;; #(
6de9cd9a
DN
26633 *)
26634 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26636 ;;
5213506e
RW
26637 esac |
26638 sort
26639) |
6de9cd9a 26640 sed '
5213506e 26641 /^ac_cv_env_/b end
6de9cd9a 26642 t clear
5213506e 26643 :clear
6de9cd9a
DN
26644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26645 t end
5213506e
RW
26646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26647 :end' >>confcache
26648if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26649 if test -w "$cache_file"; then
26650 test "x$cache_file" != "x/dev/null" &&
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26652$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26653 cat confcache >$cache_file
26654 else
5213506e
RW
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26656$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26657 fi
26658fi
26659rm -f confcache
26660
26661test "x$prefix" = xNONE && prefix=$ac_default_prefix
26662# Let make expand exec_prefix.
26663test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26664
6de9cd9a
DN
26665DEFS=-DHAVE_CONFIG_H
26666
26667ac_libobjs=
26668ac_ltlibobjs=
26669for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26670 # 1. Remove the extension, and $U if already installed.
5213506e
RW
26671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26674 # will be set to the directory where LIBOBJS objects are built.
26675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
26677done
26678LIBOBJS=$ac_libobjs
26679
26680LTLIBOBJS=$ac_ltlibobjs
26681
26682
b808ac33 26683if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
26684 as_fn_error "conditional \"onestep\" was never defined.
26685Usually this means the macro was only invoked conditionally." "$LINENO" 5
26686fi
26687 if test -n "$EXEEXT"; then
26688 am__EXEEXT_TRUE=
26689 am__EXEEXT_FALSE='#'
26690else
26691 am__EXEEXT_TRUE='#'
26692 am__EXEEXT_FALSE=
b808ac33 26693fi
5213506e 26694
6de9cd9a 26695if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26696 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26697Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 26698fi
679c0f9a 26699if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26700 as_fn_error "conditional \"AMDEP\" was never defined.
26701Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
26702fi
26703if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26704 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26705Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 26706fi
21be0a5a
JB
26707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26708 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26709Usually this means the macro was only invoked conditionally." "$LINENO" 5
26710fi
c0e7e2bf 26711if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
26712 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26713Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 26714fi
49ea7a0e
RO
26715if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26716 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26717Usually this means the macro was only invoked conditionally." "$LINENO" 5
26718fi
26719if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26720 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26721Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722fi
1ec601bf
FXC
26723if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26724 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26725Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726fi
6de9cd9a
DN
26727
26728: ${CONFIG_STATUS=./config.status}
5213506e 26729ac_write_fail=0
6de9cd9a
DN
26730ac_clean_files_save=$ac_clean_files
26731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26732{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26733$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26734as_write_fail=0
26735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
26736#! $SHELL
26737# Generated by $as_me.
26738# Run this file to recreate the current configuration.
26739# Compiler output produced by configure, useful for debugging
26740# configure, is in config.log if it exists.
26741
26742debug=false
26743ac_cs_recheck=false
26744ac_cs_silent=false
6de9cd9a 26745
5213506e
RW
26746SHELL=\${CONFIG_SHELL-$SHELL}
26747export SHELL
26748_ASEOF
26749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26750## -------------------- ##
26751## M4sh Initialization. ##
26752## -------------------- ##
26753
26754# Be more Bourne compatible
26755DUALCASE=1; export DUALCASE # for MKS sh
26756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
26757 emulate sh
26758 NULLCMD=:
5213506e 26759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
26760 # is contrary to our usage. Disable this feature.
26761 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26762 setopt NO_GLOB_SUBST
26763else
26764 case `(set -o) 2>/dev/null` in #(
26765 *posix*) :
26766 set -o posix ;; #(
26767 *) :
26768 ;;
26769esac
6de9cd9a 26770fi
6de9cd9a 26771
5213506e
RW
26772
26773as_nl='
26774'
26775export as_nl
26776# Printing a long string crashes Solaris 7 /usr/bin/printf.
26777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26780# Prefer a ksh shell builtin over an external printf program on Solaris,
26781# but without wasting forks for bash or zsh.
26782if test -z "$BASH_VERSION$ZSH_VERSION" \
26783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26784 as_echo='print -r --'
26785 as_echo_n='print -rn --'
26786elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26787 as_echo='printf %s\n'
26788 as_echo_n='printf %s'
26789else
26790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26792 as_echo_n='/usr/ucb/echo -n'
26793 else
26794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26795 as_echo_n_body='eval
26796 arg=$1;
26797 case $arg in #(
26798 *"$as_nl"*)
26799 expr "X$arg" : "X\\(.*\\)$as_nl";
26800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26801 esac;
26802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26803 '
26804 export as_echo_n_body
26805 as_echo_n='sh -c $as_echo_n_body as_echo'
26806 fi
26807 export as_echo_body
26808 as_echo='sh -c $as_echo_body as_echo'
26809fi
26810
26811# The user is always right.
26812if test "${PATH_SEPARATOR+set}" != set; then
26813 PATH_SEPARATOR=:
26814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26816 PATH_SEPARATOR=';'
26817 }
6de9cd9a
DN
26818fi
26819
26820
5213506e
RW
26821# IFS
26822# We need space, tab and new line, in precisely that order. Quoting is
26823# there to prevent editors from complaining about space-tab.
26824# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26825# splitting by setting IFS to empty value.)
26826IFS=" "" $as_nl"
26827
26828# Find who we are. Look in the path if we contain no directory separator.
26829case $0 in #((
26830 *[\\/]* ) as_myself=$0 ;;
26831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26832for as_dir in $PATH
26833do
26834 IFS=$as_save_IFS
26835 test -z "$as_dir" && as_dir=.
26836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26837 done
26838IFS=$as_save_IFS
26839
26840 ;;
26841esac
26842# We did not find ourselves, most probably we were run as `sh COMMAND'
26843# in which case we are not to be found in the path.
26844if test "x$as_myself" = x; then
26845 as_myself=$0
26846fi
26847if test ! -f "$as_myself"; then
26848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26849 exit 1
26850fi
26851
26852# Unset variables that we do not need and which cause bugs (e.g. in
26853# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26854# suppresses any "Segmentation fault" message there. '((' could
26855# trigger a bug in pdksh 5.2.14.
26856for as_var in BASH_ENV ENV MAIL MAILPATH
26857do eval test x\${$as_var+set} = xset \
26858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26859done
6de9cd9a
DN
26860PS1='$ '
26861PS2='> '
26862PS4='+ '
26863
26864# NLS nuisances.
5213506e
RW
26865LC_ALL=C
26866export LC_ALL
26867LANGUAGE=C
26868export LANGUAGE
26869
26870# CDPATH.
26871(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26872
26873
26874# as_fn_error ERROR [LINENO LOG_FD]
26875# ---------------------------------
26876# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26877# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26878# script with status $?, using 1 if that was 0.
26879as_fn_error ()
26880{
26881 as_status=$?; test $as_status -eq 0 && as_status=1
26882 if test "$3"; then
26883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26885 fi
5213506e
RW
26886 $as_echo "$as_me: error: $1" >&2
26887 as_fn_exit $as_status
26888} # as_fn_error
26889
26890
26891# as_fn_set_status STATUS
26892# -----------------------
26893# Set $? to STATUS, without forking.
26894as_fn_set_status ()
26895{
26896 return $1
26897} # as_fn_set_status
26898
26899# as_fn_exit STATUS
26900# -----------------
26901# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26902as_fn_exit ()
26903{
26904 set +e
26905 as_fn_set_status $1
26906 exit $1
26907} # as_fn_exit
26908
26909# as_fn_unset VAR
26910# ---------------
26911# Portably unset VAR.
26912as_fn_unset ()
26913{
26914 { eval $1=; unset $1;}
26915}
26916as_unset=as_fn_unset
26917# as_fn_append VAR VALUE
26918# ----------------------
26919# Append the text in VALUE to the end of the definition contained in VAR. Take
26920# advantage of any shell optimizations that allow amortized linear growth over
26921# repeated appends, instead of the typical quadratic growth present in naive
26922# implementations.
26923if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26924 eval 'as_fn_append ()
26925 {
26926 eval $1+=\$2
26927 }'
26928else
26929 as_fn_append ()
26930 {
26931 eval $1=\$$1\$2
26932 }
26933fi # as_fn_append
26934
26935# as_fn_arith ARG...
26936# ------------------
26937# Perform arithmetic evaluation on the ARGs, and store the result in the
26938# global $as_val. Take advantage of shells that can avoid forks. The arguments
26939# must be portable across $(()) and expr.
26940if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26941 eval 'as_fn_arith ()
26942 {
26943 as_val=$(( $* ))
26944 }'
26945else
26946 as_fn_arith ()
26947 {
26948 as_val=`expr "$@" || test $? -eq 1`
26949 }
26950fi # as_fn_arith
6de9cd9a 26951
5213506e
RW
26952
26953if expr a : '\(a\)' >/dev/null 2>&1 &&
26954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
26955 as_expr=expr
26956else
26957 as_expr=false
26958fi
26959
5213506e 26960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
26961 as_basename=basename
26962else
26963 as_basename=false
26964fi
26965
5213506e
RW
26966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26967 as_dirname=dirname
26968else
26969 as_dirname=false
26970fi
6de9cd9a 26971
5213506e 26972as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
26973$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26974 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26976$as_echo X/"$0" |
26977 sed '/^.*\/\([^/][^/]*\)\/*$/{
26978 s//\1/
26979 q
26980 }
26981 /^X\/\(\/\/\)$/{
26982 s//\1/
26983 q
26984 }
26985 /^X\/\(\/\).*/{
26986 s//\1/
26987 q
26988 }
26989 s/.*/./; q'`
38d24731 26990
38d24731
RW
26991# Avoid depending upon Character Ranges.
26992as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26993as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26994as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26995as_cr_digits='0123456789'
26996as_cr_alnum=$as_cr_Letters$as_cr_digits
26997
5213506e
RW
26998ECHO_C= ECHO_N= ECHO_T=
26999case `echo -n x` in #(((((
27000-n*)
27001 case `echo 'xy\c'` in
27002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27003 xy) ECHO_C='\c';;
27004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27005 ECHO_T=' ';;
27006 esac;;
27007*)
27008 ECHO_N='-n';;
6de9cd9a
DN
27009esac
27010
5213506e
RW
27011rm -f conf$$ conf$$.exe conf$$.file
27012if test -d conf$$.dir; then
27013 rm -f conf$$.dir/conf$$.file
6de9cd9a 27014else
5213506e
RW
27015 rm -f conf$$.dir
27016 mkdir conf$$.dir 2>/dev/null
6de9cd9a 27017fi
5213506e
RW
27018if (echo >conf$$.file) 2>/dev/null; then
27019 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 27020 as_ln_s='ln -s'
5213506e
RW
27021 # ... but there are two gotchas:
27022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27024 # In both cases, we have to default to `cp -p'.
27025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27026 as_ln_s='cp -p'
27027 elif ln conf$$.file conf$$ 2>/dev/null; then
27028 as_ln_s=ln
27029 else
27030 as_ln_s='cp -p'
38d24731 27031 fi
6de9cd9a
DN
27032else
27033 as_ln_s='cp -p'
27034fi
5213506e
RW
27035rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27036rmdir conf$$.dir 2>/dev/null
27037
27038
27039# as_fn_mkdir_p
27040# -------------
27041# Create "$as_dir" as a directory, including parents if necessary.
27042as_fn_mkdir_p ()
27043{
27044
27045 case $as_dir in #(
27046 -*) as_dir=./$as_dir;;
27047 esac
27048 test -d "$as_dir" || eval $as_mkdir_p || {
27049 as_dirs=
27050 while :; do
27051 case $as_dir in #(
27052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27053 *) as_qdir=$as_dir;;
27054 esac
27055 as_dirs="'$as_qdir' $as_dirs"
27056 as_dir=`$as_dirname -- "$as_dir" ||
27057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27058 X"$as_dir" : 'X\(//\)[^/]' \| \
27059 X"$as_dir" : 'X\(//\)$' \| \
27060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27061$as_echo X"$as_dir" |
27062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27063 s//\1/
27064 q
27065 }
27066 /^X\(\/\/\)[^/].*/{
27067 s//\1/
27068 q
27069 }
27070 /^X\(\/\/\)$/{
27071 s//\1/
27072 q
27073 }
27074 /^X\(\/\).*/{
27075 s//\1/
27076 q
27077 }
27078 s/.*/./; q'`
27079 test -d "$as_dir" && break
27080 done
27081 test -z "$as_dirs" || eval "mkdir $as_dirs"
27082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27083
6de9cd9a 27084
5213506e 27085} # as_fn_mkdir_p
6de9cd9a 27086if mkdir -p . 2>/dev/null; then
5213506e 27087 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
27088else
27089 test -d ./-p && rmdir ./-p
27090 as_mkdir_p=false
27091fi
27092
5213506e
RW
27093if test -x / >/dev/null 2>&1; then
27094 as_test_x='test -x'
27095else
27096 if ls -dL / >/dev/null 2>&1; then
27097 as_ls_L_option=L
27098 else
27099 as_ls_L_option=
27100 fi
27101 as_test_x='
27102 eval sh -c '\''
27103 if test -d "$1"; then
27104 test -d "$1/.";
27105 else
27106 case $1 in #(
27107 -*)set "./$1";;
27108 esac;
27109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27110 ???[sx]*):;;*)false;;esac;fi
27111 '\'' sh
27112 '
27113fi
27114as_executable_p=$as_test_x
6de9cd9a
DN
27115
27116# Sed expression to map a string onto a valid CPP name.
27117as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27118
27119# Sed expression to map a string onto a valid variable name.
27120as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27121
27122
6de9cd9a 27123exec 6>&1
5213506e
RW
27124## ----------------------------------- ##
27125## Main body of $CONFIG_STATUS script. ##
27126## ----------------------------------- ##
27127_ASEOF
27128test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27129
27130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27131# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 27132# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
27133# values after options handling.
27134ac_log="
0dce3ca1 27135This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 27136generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
27137
27138 CONFIG_FILES = $CONFIG_FILES
27139 CONFIG_HEADERS = $CONFIG_HEADERS
27140 CONFIG_LINKS = $CONFIG_LINKS
27141 CONFIG_COMMANDS = $CONFIG_COMMANDS
27142 $ $0 $@
27143
5213506e
RW
27144on `(hostname || uname -n) 2>/dev/null | sed 1q`
27145"
27146
6de9cd9a
DN
27147_ACEOF
27148
5213506e
RW
27149case $ac_config_files in *"
27150"*) set x $ac_config_files; shift; ac_config_files=$*;;
27151esac
78511f8b 27152
5213506e
RW
27153case $ac_config_headers in *"
27154"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27155esac
38d24731 27156
38d24731 27157
5213506e
RW
27158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27159# Files that config.status was made for.
27160config_files="$ac_config_files"
27161config_headers="$ac_config_headers"
27162config_commands="$ac_config_commands"
6de9cd9a 27163
5213506e 27164_ACEOF
38d24731 27165
5213506e 27166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 27167ac_cs_usage="\
5213506e
RW
27168\`$as_me' instantiates files and other configuration actions
27169from templates according to the current configuration. Unless the files
27170and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 27171
5213506e 27172Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
27173
27174 -h, --help print this help, then exit
5213506e
RW
27175 -V, --version print version number and configuration settings, then exit
27176 -q, --quiet, --silent
27177 do not print progress messages
6de9cd9a
DN
27178 -d, --debug don't remove temporary files
27179 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
27180 --file=FILE[:TEMPLATE]
27181 instantiate the configuration file FILE
27182 --header=FILE[:TEMPLATE]
27183 instantiate the configuration header FILE
6de9cd9a
DN
27184
27185Configuration files:
27186$config_files
27187
27188Configuration headers:
27189$config_headers
27190
27191Configuration commands:
27192$config_commands
27193
5213506e
RW
27194Report bugs to the package provider.
27195GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27196General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 27197
5213506e
RW
27198_ACEOF
27199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27200ac_cs_version="\\
0dce3ca1 27201GNU Fortran Runtime Library config.status 0.3
5213506e
RW
27202configured by $0, generated by GNU Autoconf 2.64,
27203 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 27204
5213506e 27205Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
27206This config.status script is free software; the Free Software Foundation
27207gives unlimited permission to copy, distribute and modify it."
5213506e
RW
27208
27209ac_pwd='$ac_pwd'
27210srcdir='$srcdir'
27211INSTALL='$INSTALL'
27212MKDIR_P='$MKDIR_P'
27213AWK='$AWK'
27214test -n "\$AWK" || AWK=awk
6de9cd9a
DN
27215_ACEOF
27216
5213506e
RW
27217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27218# The default lists apply if the user does not specify any file.
6de9cd9a
DN
27219ac_need_defaults=:
27220while test $# != 0
27221do
27222 case $1 in
27223 --*=*)
5213506e
RW
27224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
27226 ac_shift=:
27227 ;;
5213506e 27228 *)
6de9cd9a
DN
27229 ac_option=$1
27230 ac_optarg=$2
27231 ac_shift=shift
27232 ;;
6de9cd9a
DN
27233 esac
27234
27235 case $ac_option in
27236 # Handling of the options.
6de9cd9a
DN
27237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27238 ac_cs_recheck=: ;;
5213506e
RW
27239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27240 $as_echo "$ac_cs_version"; exit ;;
27241 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
27242 debug=: ;;
27243 --file | --fil | --fi | --f )
27244 $ac_shift
5213506e
RW
27245 case $ac_optarg in
27246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27247 esac
27248 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
27249 ac_need_defaults=false;;
27250 --header | --heade | --head | --hea )
27251 $ac_shift
5213506e
RW
27252 case $ac_optarg in
27253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27254 esac
27255 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 27256 ac_need_defaults=false;;
5213506e
RW
27257 --he | --h)
27258 # Conflict between --help and --header
27259 as_fn_error "ambiguous option: \`$1'
27260Try \`$0 --help' for more information.";;
27261 --help | --hel | -h )
27262 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
27263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27265 ac_cs_silent=: ;;
27266
27267 # This is an error.
5213506e
RW
27268 -*) as_fn_error "unrecognized option: \`$1'
27269Try \`$0 --help' for more information." ;;
6de9cd9a 27270
5213506e
RW
27271 *) as_fn_append ac_config_targets " $1"
27272 ac_need_defaults=false ;;
6de9cd9a
DN
27273
27274 esac
27275 shift
27276done
27277
27278ac_configure_extra_args=
27279
27280if $ac_cs_silent; then
27281 exec 6>/dev/null
27282 ac_configure_extra_args="$ac_configure_extra_args --silent"
27283fi
27284
27285_ACEOF
5213506e 27286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27287if \$ac_cs_recheck; then
5213506e
RW
27288 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27289 shift
27290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27291 CONFIG_SHELL='$SHELL'
27292 export CONFIG_SHELL
27293 exec "\$@"
6de9cd9a
DN
27294fi
27295
1cf3d07d 27296_ACEOF
5213506e
RW
27297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27298exec 5>>config.log
27299{
27300 echo
27301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27302## Running $as_me. ##
27303_ASBOX
27304 $as_echo "$ac_log"
27305} >&5
1cf3d07d 27306
5213506e
RW
27307_ACEOF
27308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 27309#
5213506e 27310# INIT-COMMANDS
1cf3d07d
SE
27311#
27312
1cf3d07d
SE
27313srcdir="$srcdir"
27314host="$host"
27315target="$target"
27316with_multisubdir="$with_multisubdir"
27317with_multisrctop="$with_multisrctop"
27318with_target_subdir="$with_target_subdir"
27319ac_configure_args="${multilib_arg} ${ac_configure_args}"
27320multi_basedir="$multi_basedir"
27321CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27322CC="$CC"
2017c370
JB
27323CXX="$CXX"
27324GFORTRAN="$GFORTRAN"
27325GCJ="$GCJ"
1cf3d07d
SE
27326AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27327
27328
27329# The HP-UX ksh and POSIX shell print the target directory to stdout
27330# if CDPATH is set.
27331(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27332
27333sed_quote_subst='$sed_quote_subst'
27334double_quote_subst='$double_quote_subst'
27335delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
27336macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27337macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27338enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27339enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27340pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27341enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27342SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27343ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27344host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27345host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27346host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27347build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27348build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27349build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27350SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27351Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27352GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27353EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27354FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27355LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27356NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27357LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27358max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27359ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27360exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27361lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27362lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27363lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27364reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27365reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27366OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27367deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27368file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27369AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27370AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27371STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27372RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27373old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27374old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27375old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27376lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27377CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27378CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27379compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27380GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27381lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27382lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27383lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27384lt_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"`'
27385objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27386MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27387lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27388lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27389lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27390lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27391lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27392need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27393DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27394NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27395LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27396OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27397OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27398libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27399shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27400extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27401archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27402enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27403export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27404whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27405compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27406old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27407old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27408archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27409archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27410module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27411module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27412with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27413allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27414no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27415hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27416hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27417hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27418hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27419hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27420hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27421hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27422hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27423inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27424link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27425fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27426always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27427export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27428exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27429include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27430prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27431file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27432variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27433need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27434need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27435version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27436runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27437shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27438shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27439libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27440library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27441soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27442install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27443postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27444postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27445finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27446finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27447hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27448sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27449sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27450hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27451enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27452enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27453enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27454old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27455striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27456compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27457predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27458postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27459predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27460postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27461compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27462LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27463reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27464reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27465old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27466compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27467GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27468lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27469lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27470lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27471lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27472lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27473archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27474enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27475export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27476whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27477compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27478old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27479old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27480archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27481archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27482module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27483module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27484with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27485allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27486no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27487hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27488hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27489hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27490hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27491hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27492hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27493hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27494hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27495inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27496link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27497fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27498always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27499export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27500exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27501include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27502prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27503file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27504hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27505compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27506predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27507postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27508predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27509postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27510compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
27511
27512LTCC='$LTCC'
27513LTCFLAGS='$LTCFLAGS'
27514compiler='$compiler_DEFAULT'
27515
43e02a8a
RW
27516# A function that is used when there is no print builtin or printf.
27517func_fallback_echo ()
27518{
27519 eval 'cat <<_LTECHO_EOF
27520\$1
27521_LTECHO_EOF'
27522}
27523
1cf3d07d 27524# Quote evaled strings.
43e02a8a
RW
27525for var in SHELL \
27526ECHO \
27527SED \
1cf3d07d
SE
27528GREP \
27529EGREP \
27530FGREP \
27531LD \
27532NM \
27533LN_S \
27534lt_SP2NL \
27535lt_NL2SP \
27536reload_flag \
d58dead8 27537OBJDUMP \
1cf3d07d
SE
27538deplibs_check_method \
27539file_magic_cmd \
27540AR \
27541AR_FLAGS \
27542STRIP \
27543RANLIB \
27544CC \
27545CFLAGS \
27546compiler \
27547lt_cv_sys_global_symbol_pipe \
27548lt_cv_sys_global_symbol_to_cdecl \
27549lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 27550lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
27551lt_prog_compiler_no_builtin_flag \
27552lt_prog_compiler_wl \
27553lt_prog_compiler_pic \
27554lt_prog_compiler_static \
27555lt_cv_prog_compiler_c_o \
27556need_locks \
d58dead8
PG
27557DSYMUTIL \
27558NMEDIT \
27559LIPO \
27560OTOOL \
27561OTOOL64 \
1cf3d07d
SE
27562shrext_cmds \
27563export_dynamic_flag_spec \
27564whole_archive_flag_spec \
27565compiler_needs_object \
27566with_gnu_ld \
27567allow_undefined_flag \
27568no_undefined_flag \
27569hardcode_libdir_flag_spec \
27570hardcode_libdir_flag_spec_ld \
27571hardcode_libdir_separator \
27572fix_srcfile_path \
27573exclude_expsyms \
27574include_expsyms \
27575file_list_spec \
27576variables_saved_for_relink \
27577libname_spec \
27578library_names_spec \
27579soname_spec \
43e02a8a 27580install_override_mode \
1cf3d07d
SE
27581finish_eval \
27582old_striplib \
27583striplib \
d58dead8 27584compiler_lib_search_dirs \
1cf3d07d
SE
27585predep_objects \
27586postdep_objects \
27587predeps \
27588postdeps \
27589compiler_lib_search_path \
27590LD_FC \
43e02a8a 27591reload_flag_FC \
1cf3d07d
SE
27592compiler_FC \
27593lt_prog_compiler_no_builtin_flag_FC \
27594lt_prog_compiler_wl_FC \
27595lt_prog_compiler_pic_FC \
27596lt_prog_compiler_static_FC \
27597lt_cv_prog_compiler_c_o_FC \
27598export_dynamic_flag_spec_FC \
27599whole_archive_flag_spec_FC \
27600compiler_needs_object_FC \
27601with_gnu_ld_FC \
27602allow_undefined_flag_FC \
27603no_undefined_flag_FC \
27604hardcode_libdir_flag_spec_FC \
27605hardcode_libdir_flag_spec_ld_FC \
27606hardcode_libdir_separator_FC \
27607fix_srcfile_path_FC \
27608exclude_expsyms_FC \
27609include_expsyms_FC \
27610file_list_spec_FC \
d58dead8 27611compiler_lib_search_dirs_FC \
1cf3d07d
SE
27612predep_objects_FC \
27613postdep_objects_FC \
27614predeps_FC \
27615postdeps_FC \
27616compiler_lib_search_path_FC; do
43e02a8a 27617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27618 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27620 ;;
27621 *)
27622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27623 ;;
27624 esac
27625done
27626
27627# Double-quote double-evaled strings.
27628for var in reload_cmds \
27629old_postinstall_cmds \
27630old_postuninstall_cmds \
27631old_archive_cmds \
27632extract_expsyms_cmds \
27633old_archive_from_new_cmds \
27634old_archive_from_expsyms_cmds \
27635archive_cmds \
27636archive_expsym_cmds \
27637module_cmds \
27638module_expsym_cmds \
27639export_symbols_cmds \
27640prelink_cmds \
27641postinstall_cmds \
27642postuninstall_cmds \
27643finish_cmds \
27644sys_lib_search_path_spec \
27645sys_lib_dlsearch_path_spec \
43e02a8a 27646reload_cmds_FC \
1cf3d07d
SE
27647old_archive_cmds_FC \
27648old_archive_from_new_cmds_FC \
27649old_archive_from_expsyms_cmds_FC \
27650archive_cmds_FC \
27651archive_expsym_cmds_FC \
27652module_cmds_FC \
27653module_expsym_cmds_FC \
27654export_symbols_cmds_FC \
27655prelink_cmds_FC; do
43e02a8a 27656 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27657 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27659 ;;
27660 *)
27661 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27662 ;;
27663 esac
27664done
27665
1cf3d07d
SE
27666ac_aux_dir='$ac_aux_dir'
27667xsi_shell='$xsi_shell'
27668lt_shell_append='$lt_shell_append'
27669
27670# See if we are running on zsh, and set the options which allow our
27671# commands through without removal of \ escapes INIT.
27672if test -n "\${ZSH_VERSION+set}" ; then
27673 setopt NO_GLOB_SUBST
27674fi
27675
27676
27677 PACKAGE='$PACKAGE'
27678 VERSION='$VERSION'
27679 TIMESTAMP='$TIMESTAMP'
27680 RM='$RM'
27681 ofile='$ofile'
27682
27683
6de9cd9a 27684
6de9cd9a 27685
78511f8b 27686
6de9cd9a 27687
c13e029b
PB
27688GCC="$GCC"
27689CC="$CC"
27690acx_cv_header_stdint="$acx_cv_header_stdint"
27691acx_cv_type_int8_t="$acx_cv_type_int8_t"
27692acx_cv_type_int16_t="$acx_cv_type_int16_t"
27693acx_cv_type_int32_t="$acx_cv_type_int32_t"
27694acx_cv_type_int64_t="$acx_cv_type_int64_t"
27695acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27696ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27697ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27698ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27699ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27700ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
27701ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27702ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 27703ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
27704
27705
6de9cd9a
DN
27706_ACEOF
27707
5213506e 27708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 27709
5213506e 27710# Handling of arguments.
6de9cd9a
DN
27711for ac_config_target in $ac_config_targets
27712do
5213506e
RW
27713 case $ac_config_target in
27714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27715 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27717 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27718 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 27720 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
27721
27722 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
27723 esac
27724done
27725
5213506e 27726
6de9cd9a
DN
27727# If the user did not use the arguments to specify the items to instantiate,
27728# then the envvar interface is used. Set only those that are not.
27729# We use the long form for the default assignment because of an extremely
27730# bizarre bug on SunOS 4.1.3.
27731if $ac_need_defaults; then
27732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27735fi
27736
27737# Have a temporary directory for convenience. Make it in the build tree
5213506e 27738# simply because there is no reason against having it here, and in addition,
6de9cd9a 27739# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27740# Hook for its removal unless debugging.
27741# Note that there is a small window in which the directory will not be cleaned:
27742# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
27743$debug ||
27744{
5213506e
RW
27745 tmp=
27746 trap 'exit_status=$?
27747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27748' 0
27749 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 27750}
6de9cd9a
DN
27751# Create a (secure) tmp directory for tmp files.
27752
27753{
5213506e 27754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
27755 test -n "$tmp" && test -d "$tmp"
27756} ||
27757{
5213506e
RW
27758 tmp=./conf$$-$RANDOM
27759 (umask 077 && mkdir "$tmp")
27760} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27761
27762# Set up the scripts for CONFIG_FILES section.
27763# No need to generate them if there are no CONFIG_FILES.
27764# This happens for instance with `./config.status config.h'.
27765if test -n "$CONFIG_FILES"; then
27766
27767
27768ac_cr=`echo X | tr X '\015'`
27769# On cygwin, bash can eat \r inside `` if the user requested igncr.
27770# But we know of no other shell where ac_cr would be empty at this
27771# point, so we can use a bashism as a fallback.
27772if test "x$ac_cr" = x; then
27773 eval ac_cr=\$\'\\r\'
27774fi
27775ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27776if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27777 ac_cs_awk_cr='\r'
27778else
27779 ac_cs_awk_cr=$ac_cr
27780fi
27781
27782echo 'BEGIN {' >"$tmp/subs1.awk" &&
27783_ACEOF
27784
27785
6de9cd9a 27786{
5213506e
RW
27787 echo "cat >conf$$subs.awk <<_ACEOF" &&
27788 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27789 echo "_ACEOF"
27790} >conf$$subs.sh ||
27791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27792ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27793ac_delim='%!_!# '
27794for ac_last_try in false false false false false :; do
27795 . ./conf$$subs.sh ||
27796 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27797
27798 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27799 if test $ac_delim_n = $ac_delim_num; then
27800 break
27801 elif $ac_last_try; then
27802 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27803 else
27804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27805 fi
27806done
27807rm -f conf$$subs.sh
27808
27809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27810cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27811_ACEOF
27812sed -n '
27813h
27814s/^/S["/; s/!.*/"]=/
27815p
27816g
27817s/^[^!]*!//
27818:repl
27819t repl
27820s/'"$ac_delim"'$//
27821t delim
27822:nl
27823h
27824s/\(.\{148\}\).*/\1/
27825t more1
27826s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27827p
27828n
27829b repl
27830:more1
27831s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27832p
27833g
27834s/.\{148\}//
27835t nl
27836:delim
27837h
27838s/\(.\{148\}\).*/\1/
27839t more2
27840s/["\\]/\\&/g; s/^/"/; s/$/"/
27841p
27842b
27843:more2
27844s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27845p
27846g
27847s/.\{148\}//
27848t delim
27849' <conf$$subs.awk | sed '
27850/^[^""]/{
27851 N
27852 s/\n//
27853}
27854' >>$CONFIG_STATUS || ac_write_fail=1
27855rm -f conf$$subs.awk
27856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27857_ACAWK
27858cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27859 for (key in S) S_is_set[key] = 1
27860 FS = "\a"
27861
27862}
27863{
27864 line = $ 0
27865 nfields = split(line, field, "@")
27866 substed = 0
27867 len = length(field[1])
27868 for (i = 2; i < nfields; i++) {
27869 key = field[i]
27870 keylen = length(key)
27871 if (S_is_set[key]) {
27872 value = S[key]
27873 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27874 len += length(value) + length(field[++i])
27875 substed = 1
27876 } else
27877 len += 1 + keylen
27878 }
27879
27880 print line
6de9cd9a
DN
27881}
27882
5213506e
RW
27883_ACAWK
27884_ACEOF
27885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27886if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27888else
27889 cat
27890fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27891 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27892_ACEOF
27893
5213506e
RW
27894# VPATH may cause trouble with some makes, so we remove $(srcdir),
27895# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27896# trailing colons and then remove the whole line if VPATH becomes empty
27897# (actually we leave an empty line to preserve line numbers).
27898if test "x$srcdir" = x.; then
27899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27900s/:*\$(srcdir):*/:/
27901s/:*\${srcdir}:*/:/
27902s/:*@srcdir@:*/:/
27903s/^\([^=]*=[ ]*\):*/\1/
27904s/:*$//
27905s/^[^=]*=[ ]*$//
27906}'
27907fi
38d24731 27908
5213506e
RW
27909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27910fi # test -n "$CONFIG_FILES"
6de9cd9a 27911
5213506e
RW
27912# Set up the scripts for CONFIG_HEADERS section.
27913# No need to generate them if there are no CONFIG_HEADERS.
27914# This happens for instance with `./config.status Makefile'.
27915if test -n "$CONFIG_HEADERS"; then
27916cat >"$tmp/defines.awk" <<\_ACAWK ||
27917BEGIN {
27918_ACEOF
27919
27920# Transform confdefs.h into an awk script `defines.awk', embedded as
27921# here-document in config.status, that substitutes the proper values into
27922# config.h.in to produce config.h.
27923
27924# Create a delimiter string that does not exist in confdefs.h, to ease
27925# handling of long lines.
27926ac_delim='%!_!# '
27927for ac_last_try in false false :; do
27928 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27929 if test -z "$ac_t"; then
27930 break
27931 elif $ac_last_try; then
27932 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27933 else
27934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 27935 fi
5213506e 27936done
c0e7e2bf 27937
5213506e
RW
27938# For the awk script, D is an array of macro values keyed by name,
27939# likewise P contains macro parameters if any. Preserve backslash
27940# newline sequences.
27941
27942ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27943sed -n '
27944s/.\{148\}/&'"$ac_delim"'/g
27945t rset
27946:rset
27947s/^[ ]*#[ ]*define[ ][ ]*/ /
27948t def
27949d
27950:def
27951s/\\$//
27952t bsnl
27953s/["\\]/\\&/g
27954s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27955D["\1"]=" \3"/p
27956s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27957d
27958:bsnl
27959s/["\\]/\\&/g
27960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27961D["\1"]=" \3\\\\\\n"\\/p
27962t cont
27963s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27964t cont
27965d
27966:cont
27967n
27968s/.\{148\}/&'"$ac_delim"'/g
27969t clear
27970:clear
27971s/\\$//
27972t bsnlc
27973s/["\\]/\\&/g; s/^/"/; s/$/"/p
27974d
27975:bsnlc
27976s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27977b cont
27978' <confdefs.h | sed '
27979s/'"$ac_delim"'/"\\\
27980"/g' >>$CONFIG_STATUS || ac_write_fail=1
27981
27982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27983 for (key in D) D_is_set[key] = 1
27984 FS = "\a"
27985}
27986/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27987 line = \$ 0
27988 split(line, arg, " ")
27989 if (arg[1] == "#") {
27990 defundef = arg[2]
27991 mac1 = arg[3]
27992 } else {
27993 defundef = substr(arg[1], 2)
27994 mac1 = arg[2]
27995 }
27996 split(mac1, mac2, "(") #)
27997 macro = mac2[1]
27998 prefix = substr(line, 1, index(line, defundef) - 1)
27999 if (D_is_set[macro]) {
28000 # Preserve the white space surrounding the "#".
28001 print prefix "define", macro P[macro] D[macro]
28002 next
28003 } else {
28004 # Replace #undef with comments. This is necessary, for example,
28005 # in the case of _POSIX_SOURCE, which is predefined and required
28006 # on some systems where configure will not decide to define it.
28007 if (defundef == "undef") {
28008 print "/*", prefix defundef, macro, "*/"
28009 next
28010 }
28011 }
28012}
28013{ print }
28014_ACAWK
6de9cd9a 28015_ACEOF
5213506e
RW
28016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28017 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28018fi # test -n "$CONFIG_HEADERS"
28019
28020
28021eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28022shift
28023for ac_tag
28024do
28025 case $ac_tag in
28026 :[FHLC]) ac_mode=$ac_tag; continue;;
28027 esac
28028 case $ac_mode$ac_tag in
28029 :[FHL]*:*);;
28030 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28031 :[FH]-) ac_tag=-:-;;
28032 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28033 esac
28034 ac_save_IFS=$IFS
28035 IFS=:
28036 set x $ac_tag
28037 IFS=$ac_save_IFS
28038 shift
28039 ac_file=$1
28040 shift
28041
28042 case $ac_mode in
28043 :L) ac_source=$1;;
28044 :[FH])
28045 ac_file_inputs=
28046 for ac_f
28047 do
28048 case $ac_f in
28049 -) ac_f="$tmp/stdin";;
28050 *) # Look for the file first in the build tree, then in the source tree
28051 # (if the path is not absolute). The absolute path cannot be DOS-style,
28052 # because $ac_f cannot contain `:'.
28053 test -f "$ac_f" ||
28054 case $ac_f in
28055 [\\/$]*) false;;
28056 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28057 esac ||
28058 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28059 esac
28060 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28061 as_fn_append ac_file_inputs " '$ac_f'"
28062 done
28063
28064 # Let's still pretend it is `configure' which instantiates (i.e., don't
28065 # use $as_me), people would be surprised to read:
28066 # /* config.h. Generated by config.status. */
28067 configure_input='Generated from '`
28068 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28069 `' by configure.'
28070 if test x"$ac_file" != x-; then
28071 configure_input="$ac_file. $configure_input"
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28073$as_echo "$as_me: creating $ac_file" >&6;}
28074 fi
28075 # Neutralize special characters interpreted by sed in replacement strings.
28076 case $configure_input in #(
28077 *\&* | *\|* | *\\* )
28078 ac_sed_conf_input=`$as_echo "$configure_input" |
28079 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28080 *) ac_sed_conf_input=$configure_input;;
28081 esac
28082
28083 case $ac_tag in
28084 *:-:* | *:-) cat >"$tmp/stdin" \
28085 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28086 esac
28087 ;;
6de9cd9a
DN
28088 esac
28089
5213506e 28090 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
28091$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28092 X"$ac_file" : 'X\(//\)[^/]' \| \
28093 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
28094 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28095$as_echo X"$ac_file" |
28096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28097 s//\1/
28098 q
28099 }
28100 /^X\(\/\/\)[^/].*/{
28101 s//\1/
28102 q
28103 }
28104 /^X\(\/\/\)$/{
28105 s//\1/
28106 q
28107 }
28108 /^X\(\/\).*/{
28109 s//\1/
28110 q
28111 }
28112 s/.*/./; q'`
28113 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
28114 ac_builddir=.
28115
5213506e
RW
28116case "$ac_dir" in
28117.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28118*)
28119 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28120 # A ".." for each directory in $ac_dir_suffix.
28121 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28122 case $ac_top_builddir_sub in
28123 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28124 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28125 esac ;;
28126esac
28127ac_abs_top_builddir=$ac_pwd
28128ac_abs_builddir=$ac_pwd$ac_dir_suffix
28129# for backward compatibility:
28130ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
28131
28132case $srcdir in
5213506e 28133 .) # We are building in place.
6de9cd9a 28134 ac_srcdir=.
5213506e
RW
28135 ac_top_srcdir=$ac_top_builddir_sub
28136 ac_abs_top_srcdir=$ac_pwd ;;
28137 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 28138 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
28139 ac_top_srcdir=$srcdir
28140 ac_abs_top_srcdir=$srcdir ;;
28141 *) # Relative name.
28142 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28143 ac_top_srcdir=$ac_top_build_prefix$srcdir
28144 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 28145esac
5213506e 28146ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 28147
6de9cd9a 28148
5213506e
RW
28149 case $ac_mode in
28150 :F)
28151 #
28152 # CONFIG_FILE
28153 #
6de9cd9a
DN
28154
28155 case $INSTALL in
28156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
28157 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28158 esac
28159 ac_MKDIR_P=$MKDIR_P
28160 case $MKDIR_P in
28161 [\\/$]* | ?:[\\/]* ) ;;
28162 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 28163 esac
5213506e 28164_ACEOF
6de9cd9a 28165
5213506e
RW
28166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28167# If the template does not know about datarootdir, expand it.
28168# FIXME: This hack should be removed a few years after 2.60.
28169ac_datarootdir_hack=; ac_datarootdir_seen=
28170ac_sed_dataroot='
28171/datarootdir/ {
28172 p
28173 q
28174}
28175/@datadir@/p
28176/@docdir@/p
28177/@infodir@/p
28178/@localedir@/p
28179/@mandir@/p'
28180case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28181*datarootdir*) ac_datarootdir_seen=yes;;
28182*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28184$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28185_ACEOF
28186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28187 ac_datarootdir_hack='
28188 s&@datadir@&$datadir&g
28189 s&@docdir@&$docdir&g
28190 s&@infodir@&$infodir&g
28191 s&@localedir@&$localedir&g
28192 s&@mandir@&$mandir&g
28193 s&\\\${datarootdir}&$datarootdir&g' ;;
28194esac
78511f8b 28195_ACEOF
5213506e
RW
28196
28197# Neutralize VPATH when `$srcdir' = `.'.
28198# Shell code in configure.ac might set extrasub.
28199# FIXME: do we really want to maintain this feature?
28200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28201ac_sed_extra="$ac_vpsub
6de9cd9a
DN
28202$extrasub
28203_ACEOF
5213506e 28204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
28205:t
28206/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
28207s|@configure_input@|$ac_sed_conf_input|;t t
28208s&@top_builddir@&$ac_top_builddir_sub&;t t
28209s&@top_build_prefix@&$ac_top_build_prefix&;t t
28210s&@srcdir@&$ac_srcdir&;t t
28211s&@abs_srcdir@&$ac_abs_srcdir&;t t
28212s&@top_srcdir@&$ac_top_srcdir&;t t
28213s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28214s&@builddir@&$ac_builddir&;t t
28215s&@abs_builddir@&$ac_abs_builddir&;t t
28216s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28217s&@INSTALL@&$ac_INSTALL&;t t
28218s&@MKDIR_P@&$ac_MKDIR_P&;t t
28219$ac_datarootdir_hack
28220"
28221eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28222 || as_fn_error "could not create $ac_file" "$LINENO" 5
28223
28224test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28225 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28226 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28228which seems to be undefined. Please make sure it is defined." >&5
28229$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28230which seems to be undefined. Please make sure it is defined." >&2;}
28231
28232 rm -f "$tmp/stdin"
6de9cd9a 28233 case $ac_file in
5213506e
RW
28234 -) cat "$tmp/out" && rm -f "$tmp/out";;
28235 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28236 esac \
28237 || as_fn_error "could not create $ac_file" "$LINENO" 5
28238 ;;
28239 :H)
28240 #
28241 # CONFIG_HEADER
28242 #
6de9cd9a 28243 if test x"$ac_file" != x-; then
5213506e
RW
28244 {
28245 $as_echo "/* $configure_input */" \
28246 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28247 } >"$tmp/config.h" \
28248 || as_fn_error "could not create $ac_file" "$LINENO" 5
28249 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28251$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 28252 else
5213506e
RW
28253 rm -f "$ac_file"
28254 mv "$tmp/config.h" "$ac_file" \
28255 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
28256 fi
28257 else
5213506e
RW
28258 $as_echo "/* $configure_input */" \
28259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28260 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 28261 fi
5213506e
RW
28262# Compute "$ac_file"'s index in $config_headers.
28263_am_arg="$ac_file"
6de9cd9a
DN
28264_am_stamp_count=1
28265for _am_header in $config_headers :; do
28266 case $_am_header in
5213506e 28267 $_am_arg | $_am_arg:* )
6de9cd9a
DN
28268 break ;;
28269 * )
28270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28271 esac
28272done
5213506e
RW
28273echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28274$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28275 X"$_am_arg" : 'X\(//\)[^/]' \| \
28276 X"$_am_arg" : 'X\(//\)$' \| \
28277 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28278$as_echo X"$_am_arg" |
28279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28280 s//\1/
28281 q
28282 }
28283 /^X\(\/\/\)[^/].*/{
28284 s//\1/
28285 q
28286 }
28287 /^X\(\/\/\)$/{
28288 s//\1/
28289 q
28290 }
28291 /^X\(\/\).*/{
28292 s//\1/
28293 q
28294 }
28295 s/.*/./; q'`/stamp-h$_am_stamp_count
28296 ;;
38d24731 28297
5213506e
RW
28298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28299$as_echo "$as_me: executing $ac_file commands" >&6;}
28300 ;;
28301 esac
6de9cd9a
DN
28302
28303
5213506e
RW
28304 case $ac_file$ac_mode in
28305 "default-1":C)
96b8a615
AJ
28306# Only add multilib support code if we just rebuilt the top-level
28307# Makefile.
28308case " $CONFIG_FILES " in
28309 *" Makefile "*)
28310 ac_file=Makefile . ${multi_basedir}/config-ml.in
28311 ;;
28312esac ;;
5213506e
RW
28313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28314 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28315 # are listed without --file. Let's play safe and only enable the eval
28316 # if we detect the quoting.
28317 case $CONFIG_FILES in
28318 *\'*) eval set x "$CONFIG_FILES" ;;
28319 *) set x $CONFIG_FILES ;;
28320 esac
28321 shift
28322 for mf
28323 do
28324 # Strip MF so we end up with the name of the file.
28325 mf=`echo "$mf" | sed -e 's/:.*$//'`
28326 # Check whether this is an Automake generated Makefile or not.
28327 # We used to match only the files named `Makefile.in', but
28328 # some people rename them; so instead we look at the file content.
28329 # Grep'ing the first line is not enough: some people post-process
28330 # each Makefile.in and add a new line on top of each file to say so.
28331 # Grep'ing the whole file is not good either: AIX grep has a line
28332 # limit of 2048, but all sed's we know have understand at least 4000.
28333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28334 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
28335$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28336 X"$mf" : 'X\(//\)[^/]' \| \
28337 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
28338 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28339$as_echo X"$mf" |
28340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28341 s//\1/
28342 q
28343 }
28344 /^X\(\/\/\)[^/].*/{
28345 s//\1/
28346 q
28347 }
28348 /^X\(\/\/\)$/{
28349 s//\1/
28350 q
28351 }
28352 /^X\(\/\).*/{
28353 s//\1/
28354 q
28355 }
28356 s/.*/./; q'`
28357 else
28358 continue
28359 fi
28360 # Extract the definition of DEPDIR, am__include, and am__quote
28361 # from the Makefile without running `make'.
28362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28363 test -z "$DEPDIR" && continue
28364 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28365 test -z "am__include" && continue
28366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28367 # When using ansi2knr, U may be empty or an underscore; expand it
28368 U=`sed -n 's/^U = //p' < "$mf"`
28369 # Find all dependency output files, they are included files with
28370 # $(DEPDIR) in their names. We invoke sed twice because it is the
28371 # simplest approach to changing $(DEPDIR) to its actual value in the
28372 # expansion.
28373 for file in `sed -n "
28374 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28375 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28376 # Make sure the directory exists.
28377 test -f "$dirpart/$file" && continue
28378 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
28379$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28380 X"$file" : 'X\(//\)[^/]' \| \
28381 X"$file" : 'X\(//\)$' \| \
5213506e
RW
28382 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28383$as_echo X"$file" |
28384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28385 s//\1/
28386 q
28387 }
28388 /^X\(\/\/\)[^/].*/{
28389 s//\1/
28390 q
28391 }
28392 /^X\(\/\/\)$/{
28393 s//\1/
28394 q
28395 }
28396 /^X\(\/\).*/{
28397 s//\1/
28398 q
28399 }
28400 s/.*/./; q'`
28401 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28402 # echo "creating $dirpart/$file"
28403 echo '# dummy' > "$dirpart/$file"
679c0f9a 28404 done
679c0f9a 28405 done
5213506e 28406}
1cf3d07d 28407 ;;
5213506e 28408 "libtool":C)
1cf3d07d
SE
28409
28410 # See if we are running on zsh, and set the options which allow our
28411 # commands through without removal of \ escapes.
28412 if test -n "${ZSH_VERSION+set}" ; then
28413 setopt NO_GLOB_SUBST
28414 fi
28415
28416 cfgfile="${ofile}T"
28417 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28418 $RM "$cfgfile"
28419
28420 cat <<_LT_EOF >> "$cfgfile"
28421#! $SHELL
28422
28423# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 28424# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
28425# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28426# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28427#
d58dead8 28428# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 28429# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 28430# Written by Gordon Matzigkeit, 1996
1cf3d07d 28431#
d58dead8 28432# This file is part of GNU Libtool.
1cf3d07d 28433#
d58dead8
PG
28434# GNU Libtool is free software; you can redistribute it and/or
28435# modify it under the terms of the GNU General Public License as
28436# published by the Free Software Foundation; either version 2 of
28437# the License, or (at your option) any later version.
1cf3d07d 28438#
d58dead8
PG
28439# As a special exception to the GNU General Public License,
28440# if you distribute this file as part of a program or library that
28441# is built using GNU Libtool, you may include this file under the
28442# same distribution terms that you use for the rest of that program.
1cf3d07d 28443#
d58dead8
PG
28444# GNU Libtool is distributed in the hope that it will be useful,
28445# but WITHOUT ANY WARRANTY; without even the implied warranty of
28446# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28447# GNU General Public License for more details.
1cf3d07d 28448#
d58dead8
PG
28449# You should have received a copy of the GNU General Public License
28450# along with GNU Libtool; see the file COPYING. If not, a copy
28451# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28452# obtained by writing to the Free Software Foundation, Inc.,
28453# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
28454
28455
28456# The names of the tagged configurations supported by this script.
28457available_tags="FC "
28458
28459# ### BEGIN LIBTOOL CONFIG
28460
28461# Which release of libtool.m4 was used?
28462macro_version=$macro_version
28463macro_revision=$macro_revision
28464
28465# Whether or not to build shared libraries.
28466build_libtool_libs=$enable_shared
28467
28468# Whether or not to build static libraries.
28469build_old_libs=$enable_static
28470
28471# What type of objects to build.
28472pic_mode=$pic_mode
28473
28474# Whether or not to optimize for fast installation.
28475fast_install=$enable_fast_install
28476
43e02a8a
RW
28477# Shell to use when invoking shell scripts.
28478SHELL=$lt_SHELL
28479
28480# An echo program that protects backslashes.
28481ECHO=$lt_ECHO
28482
1cf3d07d
SE
28483# The host system.
28484host_alias=$host_alias
28485host=$host
28486host_os=$host_os
28487
28488# The build system.
28489build_alias=$build_alias
28490build=$build
28491build_os=$build_os
28492
28493# A sed program that does not truncate output.
28494SED=$lt_SED
28495
28496# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28497Xsed="\$SED -e 1s/^X//"
28498
28499# A grep program that handles long lines.
28500GREP=$lt_GREP
28501
28502# An ERE matcher.
28503EGREP=$lt_EGREP
28504
28505# A literal string matcher.
28506FGREP=$lt_FGREP
28507
28508# A BSD- or MS-compatible name lister.
28509NM=$lt_NM
28510
28511# Whether we need soft or hard links.
28512LN_S=$lt_LN_S
28513
28514# What is the maximum length of a command?
28515max_cmd_len=$max_cmd_len
28516
28517# Object file suffix (normally "o").
28518objext=$ac_objext
28519
28520# Executable file suffix (normally "").
28521exeext=$exeext
28522
28523# whether the shell understands "unset".
28524lt_unset=$lt_unset
28525
28526# turn spaces into newlines.
28527SP2NL=$lt_lt_SP2NL
28528
28529# turn newlines into spaces.
28530NL2SP=$lt_lt_NL2SP
28531
d58dead8
PG
28532# An object symbol dumper.
28533OBJDUMP=$lt_OBJDUMP
28534
1cf3d07d
SE
28535# Method to check whether dependent libraries are shared objects.
28536deplibs_check_method=$lt_deplibs_check_method
28537
28538# Command to use when deplibs_check_method == "file_magic".
28539file_magic_cmd=$lt_file_magic_cmd
28540
28541# The archiver.
28542AR=$lt_AR
28543AR_FLAGS=$lt_AR_FLAGS
28544
28545# A symbol stripping program.
28546STRIP=$lt_STRIP
28547
28548# Commands used to install an old-style archive.
28549RANLIB=$lt_RANLIB
28550old_postinstall_cmds=$lt_old_postinstall_cmds
28551old_postuninstall_cmds=$lt_old_postuninstall_cmds
28552
43e02a8a
RW
28553# Whether to use a lock for old archive extraction.
28554lock_old_archive_extraction=$lock_old_archive_extraction
28555
1cf3d07d
SE
28556# A C compiler.
28557LTCC=$lt_CC
28558
28559# LTCC compiler flags.
28560LTCFLAGS=$lt_CFLAGS
28561
28562# Take the output of nm and produce a listing of raw symbols and C names.
28563global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28564
28565# Transform the output of nm in a proper C declaration.
28566global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28567
28568# Transform the output of nm in a C name address pair.
28569global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28570
d58dead8
PG
28571# Transform the output of nm in a C name address pair when lib prefix is needed.
28572global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28573
1cf3d07d
SE
28574# The name of the directory that contains temporary libtool files.
28575objdir=$objdir
28576
1cf3d07d
SE
28577# Used to examine libraries when file_magic_cmd begins with "file".
28578MAGIC_CMD=$MAGIC_CMD
28579
28580# Must we lock files when doing compilation?
28581need_locks=$lt_need_locks
28582
d58dead8
PG
28583# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28584DSYMUTIL=$lt_DSYMUTIL
28585
28586# Tool to change global to local symbols on Mac OS X.
28587NMEDIT=$lt_NMEDIT
28588
28589# Tool to manipulate fat objects and archives on Mac OS X.
28590LIPO=$lt_LIPO
28591
28592# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28593OTOOL=$lt_OTOOL
28594
28595# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28596OTOOL64=$lt_OTOOL64
28597
1cf3d07d
SE
28598# Old archive suffix (normally "a").
28599libext=$libext
28600
28601# Shared library suffix (normally ".so").
28602shrext_cmds=$lt_shrext_cmds
28603
28604# The commands to extract the exported symbol list from a shared archive.
28605extract_expsyms_cmds=$lt_extract_expsyms_cmds
28606
28607# Variables whose values should be saved in libtool wrapper scripts and
28608# restored at link time.
28609variables_saved_for_relink=$lt_variables_saved_for_relink
28610
28611# Do we need the "lib" prefix for modules?
28612need_lib_prefix=$need_lib_prefix
28613
28614# Do we need a version for libraries?
28615need_version=$need_version
28616
28617# Library versioning type.
28618version_type=$version_type
28619
28620# Shared library runtime path variable.
28621runpath_var=$runpath_var
28622
28623# Shared library path variable.
28624shlibpath_var=$shlibpath_var
28625
28626# Is shlibpath searched before the hard-coded library search path?
28627shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28628
28629# Format of library name prefix.
28630libname_spec=$lt_libname_spec
28631
28632# List of archive names. First name is the real one, the rest are links.
28633# The last name is the one that the linker finds with -lNAME
28634library_names_spec=$lt_library_names_spec
28635
28636# The coded name of the library, if different from the real name.
28637soname_spec=$lt_soname_spec
28638
43e02a8a
RW
28639# Permission mode override for installation of shared libraries.
28640install_override_mode=$lt_install_override_mode
28641
1cf3d07d
SE
28642# Command to use after installation of a shared archive.
28643postinstall_cmds=$lt_postinstall_cmds
28644
28645# Command to use after uninstallation of a shared archive.
28646postuninstall_cmds=$lt_postuninstall_cmds
28647
28648# Commands used to finish a libtool library installation in a directory.
28649finish_cmds=$lt_finish_cmds
28650
28651# As "finish_cmds", except a single script fragment to be evaled but
28652# not shown.
28653finish_eval=$lt_finish_eval
28654
28655# Whether we should hardcode library paths into libraries.
28656hardcode_into_libs=$hardcode_into_libs
28657
28658# Compile-time system search path for libraries.
28659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28660
28661# Run-time system search path for libraries.
28662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28663
28664# Whether dlopen is supported.
28665dlopen_support=$enable_dlopen
28666
28667# Whether dlopen of programs is supported.
28668dlopen_self=$enable_dlopen_self
28669
28670# Whether dlopen of statically linked programs is supported.
28671dlopen_self_static=$enable_dlopen_self_static
28672
28673# Commands to strip libraries.
28674old_striplib=$lt_old_striplib
28675striplib=$lt_striplib
28676
28677
28678# The linker used to build libraries.
28679LD=$lt_LD
28680
43e02a8a
RW
28681# How to create reloadable object files.
28682reload_flag=$lt_reload_flag
28683reload_cmds=$lt_reload_cmds
28684
1cf3d07d
SE
28685# Commands used to build an old-style archive.
28686old_archive_cmds=$lt_old_archive_cmds
28687
28688# A language specific compiler.
28689CC=$lt_compiler
28690
28691# Is the compiler the GNU compiler?
28692with_gcc=$GCC
28693
28694# Compiler flag to turn off builtin functions.
28695no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28696
28697# How to pass a linker flag through the compiler.
28698wl=$lt_lt_prog_compiler_wl
28699
28700# Additional compiler flags for building library objects.
28701pic_flag=$lt_lt_prog_compiler_pic
28702
28703# Compiler flag to prevent dynamic linking.
28704link_static_flag=$lt_lt_prog_compiler_static
28705
28706# Does compiler simultaneously support -c and -o options?
28707compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28708
28709# Whether or not to add -lc for building shared libraries.
28710build_libtool_need_lc=$archive_cmds_need_lc
28711
28712# Whether or not to disallow shared libs when runtime libs are static.
28713allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28714
28715# Compiler flag to allow reflexive dlopens.
28716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28717
28718# Compiler flag to generate shared objects directly from archives.
28719whole_archive_flag_spec=$lt_whole_archive_flag_spec
28720
28721# Whether the compiler copes with passing no objects directly.
28722compiler_needs_object=$lt_compiler_needs_object
28723
28724# Create an old-style archive from a shared archive.
28725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28726
28727# Create a temporary old-style archive to link instead of a shared archive.
28728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28729
28730# Commands used to build a shared archive.
28731archive_cmds=$lt_archive_cmds
28732archive_expsym_cmds=$lt_archive_expsym_cmds
28733
28734# Commands used to build a loadable module if different from building
28735# a shared archive.
28736module_cmds=$lt_module_cmds
28737module_expsym_cmds=$lt_module_expsym_cmds
28738
28739# Whether we are building with GNU ld or not.
28740with_gnu_ld=$lt_with_gnu_ld
28741
28742# Flag that allows shared libraries with undefined symbols to be built.
28743allow_undefined_flag=$lt_allow_undefined_flag
28744
28745# Flag that enforces no undefined symbols.
28746no_undefined_flag=$lt_no_undefined_flag
28747
28748# Flag to hardcode \$libdir into a binary during linking.
28749# This must work even if \$libdir does not exist
28750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28751
28752# If ld is used when linking, flag to hardcode \$libdir into a binary
28753# during linking. This must work even if \$libdir does not exist.
28754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28755
28756# Whether we need a single "-rpath" flag with a separated argument.
28757hardcode_libdir_separator=$lt_hardcode_libdir_separator
28758
28759# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28760# DIR into the resulting binary.
28761hardcode_direct=$hardcode_direct
28762
28763# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28764# DIR into the resulting binary and the resulting library dependency is
28765# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28766# library is relocated.
28767hardcode_direct_absolute=$hardcode_direct_absolute
28768
28769# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28770# into the resulting binary.
28771hardcode_minus_L=$hardcode_minus_L
28772
28773# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28774# into the resulting binary.
28775hardcode_shlibpath_var=$hardcode_shlibpath_var
28776
28777# Set to "yes" if building a shared library automatically hardcodes DIR
28778# into the library and all subsequent libraries and executables linked
28779# against it.
28780hardcode_automatic=$hardcode_automatic
28781
28782# Set to yes if linker adds runtime paths of dependent libraries
28783# to runtime path list.
28784inherit_rpath=$inherit_rpath
28785
28786# Whether libtool must link a program against all its dependency libraries.
28787link_all_deplibs=$link_all_deplibs
28788
28789# Fix the shell variable \$srcfile for the compiler.
28790fix_srcfile_path=$lt_fix_srcfile_path
28791
28792# Set to "yes" if exported symbols are required.
28793always_export_symbols=$always_export_symbols
28794
28795# The commands to list exported symbols.
28796export_symbols_cmds=$lt_export_symbols_cmds
28797
28798# Symbols that should not be listed in the preloaded symbols.
28799exclude_expsyms=$lt_exclude_expsyms
28800
28801# Symbols that must always be exported.
28802include_expsyms=$lt_include_expsyms
28803
28804# Commands necessary for linking programs (against libraries) with templates.
28805prelink_cmds=$lt_prelink_cmds
28806
28807# Specify filename containing input files.
28808file_list_spec=$lt_file_list_spec
28809
28810# How to hardcode a shared library path into an executable.
28811hardcode_action=$hardcode_action
28812
d58dead8
PG
28813# The directories searched by this compiler when creating a shared library.
28814compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28815
1cf3d07d
SE
28816# Dependencies to place before and after the objects being linked to
28817# create a shared library.
28818predep_objects=$lt_predep_objects
28819postdep_objects=$lt_postdep_objects
28820predeps=$lt_predeps
28821postdeps=$lt_postdeps
28822
28823# The library search path used internally by the compiler when linking
28824# a shared library.
28825compiler_lib_search_path=$lt_compiler_lib_search_path
28826
28827# ### END LIBTOOL CONFIG
28828
28829_LT_EOF
28830
28831 case $host_os in
28832 aix3*)
28833 cat <<\_LT_EOF >> "$cfgfile"
28834# AIX sometimes has problems with the GCC collect2 program. For some
28835# reason, if we set the COLLECT_NAMES environment variable, the problems
28836# vanish in a puff of smoke.
28837if test "X${COLLECT_NAMES+set}" != Xset; then
28838 COLLECT_NAMES=
28839 export COLLECT_NAMES
28840fi
28841_LT_EOF
28842 ;;
28843 esac
28844
28845
28846ltmain="$ac_aux_dir/ltmain.sh"
28847
28848
28849 # We use sed instead of cat because bash on DJGPP gets confused if
28850 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28851 # text mode, it properly converts lines to CR/LF. This bash problem
28852 # is reportedly fixed, but why not run on old versions too?
28853 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28854 || (rm -f "$cfgfile"; exit 1)
28855
28856 case $xsi_shell in
28857 yes)
28858 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28859
1cf3d07d
SE
28860# func_dirname file append nondir_replacement
28861# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28862# otherwise set result to NONDIR_REPLACEMENT.
28863func_dirname ()
28864{
28865 case ${1} in
28866 */*) func_dirname_result="${1%/*}${2}" ;;
28867 * ) func_dirname_result="${3}" ;;
28868 esac
28869}
28870
28871# func_basename file
28872func_basename ()
28873{
28874 func_basename_result="${1##*/}"
28875}
28876
d58dead8
PG
28877# func_dirname_and_basename file append nondir_replacement
28878# perform func_basename and func_dirname in a single function
28879# call:
28880# dirname: Compute the dirname of FILE. If nonempty,
28881# add APPEND to the result, otherwise set result
28882# to NONDIR_REPLACEMENT.
28883# value returned in "$func_dirname_result"
28884# basename: Compute filename of FILE.
28885# value retuned in "$func_basename_result"
28886# Implementation must be kept synchronized with func_dirname
28887# and func_basename. For efficiency, we do not delegate to
28888# those functions but instead duplicate the functionality here.
28889func_dirname_and_basename ()
28890{
28891 case ${1} in
28892 */*) func_dirname_result="${1%/*}${2}" ;;
28893 * ) func_dirname_result="${3}" ;;
28894 esac
28895 func_basename_result="${1##*/}"
28896}
28897
1cf3d07d
SE
28898# func_stripname prefix suffix name
28899# strip PREFIX and SUFFIX off of NAME.
28900# PREFIX and SUFFIX must not contain globbing or regex special
28901# characters, hashes, percent signs, but SUFFIX may contain a leading
28902# dot (in which case that matches only a dot).
28903func_stripname ()
28904{
28905 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28906 # positional parameters, so assign one to ordinary parameter first.
28907 func_stripname_result=${3}
28908 func_stripname_result=${func_stripname_result#"${1}"}
28909 func_stripname_result=${func_stripname_result%"${2}"}
28910}
28911
28912# func_opt_split
28913func_opt_split ()
28914{
28915 func_opt_split_opt=${1%%=*}
28916 func_opt_split_arg=${1#*=}
28917}
28918
28919# func_lo2o object
28920func_lo2o ()
28921{
28922 case ${1} in
28923 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28924 *) func_lo2o_result=${1} ;;
28925 esac
28926}
d58dead8
PG
28927
28928# func_xform libobj-or-source
28929func_xform ()
28930{
28931 func_xform_result=${1%.*}.lo
28932}
28933
28934# func_arith arithmetic-term...
28935func_arith ()
28936{
28937 func_arith_result=$(( $* ))
28938}
28939
28940# func_len string
28941# STRING may not start with a hyphen.
28942func_len ()
28943{
28944 func_len_result=${#1}
28945}
28946
1cf3d07d
SE
28947_LT_EOF
28948 ;;
28949 *) # Bourne compatible functions.
28950 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28951
1cf3d07d
SE
28952# func_dirname file append nondir_replacement
28953# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28954# otherwise set result to NONDIR_REPLACEMENT.
28955func_dirname ()
28956{
28957 # Extract subdirectory from the argument.
43e02a8a 28958 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
28959 if test "X$func_dirname_result" = "X${1}"; then
28960 func_dirname_result="${3}"
28961 else
28962 func_dirname_result="$func_dirname_result${2}"
28963 fi
28964}
28965
28966# func_basename file
28967func_basename ()
28968{
43e02a8a 28969 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
28970}
28971
d58dead8 28972
1cf3d07d
SE
28973# func_stripname prefix suffix name
28974# strip PREFIX and SUFFIX off of NAME.
28975# PREFIX and SUFFIX must not contain globbing or regex special
28976# characters, hashes, percent signs, but SUFFIX may contain a leading
28977# dot (in which case that matches only a dot).
28978# func_strip_suffix prefix name
28979func_stripname ()
28980{
28981 case ${2} in
43e02a8a
RW
28982 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28983 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
28984 esac
28985}
28986
28987# sed scripts:
28988my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28989my_sed_long_arg='1s/^-[^=]*=//'
28990
28991# func_opt_split
28992func_opt_split ()
28993{
43e02a8a
RW
28994 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28995 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
28996}
28997
28998# func_lo2o object
28999func_lo2o ()
29000{
43e02a8a 29001 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 29002}
d58dead8
PG
29003
29004# func_xform libobj-or-source
29005func_xform ()
29006{
43e02a8a 29007 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
29008}
29009
29010# func_arith arithmetic-term...
29011func_arith ()
29012{
29013 func_arith_result=`expr "$@"`
29014}
29015
29016# func_len string
29017# STRING may not start with a hyphen.
29018func_len ()
29019{
29020 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29021}
29022
1cf3d07d
SE
29023_LT_EOF
29024esac
29025
29026case $lt_shell_append in
29027 yes)
29028 cat << \_LT_EOF >> "$cfgfile"
29029
29030# func_append var value
29031# Append VALUE to the end of shell variable VAR.
29032func_append ()
29033{
29034 eval "$1+=\$2"
29035}
29036_LT_EOF
29037 ;;
29038 *)
29039 cat << \_LT_EOF >> "$cfgfile"
29040
29041# func_append var value
29042# Append VALUE to the end of shell variable VAR.
29043func_append ()
29044{
29045 eval "$1=\$$1\$2"
29046}
d58dead8 29047
1cf3d07d
SE
29048_LT_EOF
29049 ;;
29050 esac
29051
29052
29053 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29054 || (rm -f "$cfgfile"; exit 1)
29055
29056 mv -f "$cfgfile" "$ofile" ||
29057 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29058 chmod +x "$ofile"
29059
29060
29061 cat <<_LT_EOF >> "$ofile"
29062
29063# ### BEGIN LIBTOOL TAG CONFIG: FC
29064
29065# The linker used to build libraries.
29066LD=$lt_LD_FC
29067
43e02a8a
RW
29068# How to create reloadable object files.
29069reload_flag=$lt_reload_flag_FC
29070reload_cmds=$lt_reload_cmds_FC
29071
1cf3d07d
SE
29072# Commands used to build an old-style archive.
29073old_archive_cmds=$lt_old_archive_cmds_FC
29074
29075# A language specific compiler.
29076CC=$lt_compiler_FC
29077
29078# Is the compiler the GNU compiler?
29079with_gcc=$GCC_FC
29080
29081# Compiler flag to turn off builtin functions.
29082no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29083
29084# How to pass a linker flag through the compiler.
29085wl=$lt_lt_prog_compiler_wl_FC
29086
29087# Additional compiler flags for building library objects.
29088pic_flag=$lt_lt_prog_compiler_pic_FC
29089
29090# Compiler flag to prevent dynamic linking.
29091link_static_flag=$lt_lt_prog_compiler_static_FC
29092
29093# Does compiler simultaneously support -c and -o options?
29094compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29095
29096# Whether or not to add -lc for building shared libraries.
29097build_libtool_need_lc=$archive_cmds_need_lc_FC
29098
29099# Whether or not to disallow shared libs when runtime libs are static.
29100allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29101
29102# Compiler flag to allow reflexive dlopens.
29103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29104
29105# Compiler flag to generate shared objects directly from archives.
29106whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29107
29108# Whether the compiler copes with passing no objects directly.
29109compiler_needs_object=$lt_compiler_needs_object_FC
29110
29111# Create an old-style archive from a shared archive.
29112old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29113
29114# Create a temporary old-style archive to link instead of a shared archive.
29115old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29116
29117# Commands used to build a shared archive.
29118archive_cmds=$lt_archive_cmds_FC
29119archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29120
29121# Commands used to build a loadable module if different from building
29122# a shared archive.
29123module_cmds=$lt_module_cmds_FC
29124module_expsym_cmds=$lt_module_expsym_cmds_FC
29125
29126# Whether we are building with GNU ld or not.
29127with_gnu_ld=$lt_with_gnu_ld_FC
29128
29129# Flag that allows shared libraries with undefined symbols to be built.
29130allow_undefined_flag=$lt_allow_undefined_flag_FC
29131
29132# Flag that enforces no undefined symbols.
29133no_undefined_flag=$lt_no_undefined_flag_FC
29134
29135# Flag to hardcode \$libdir into a binary during linking.
29136# This must work even if \$libdir does not exist
29137hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29138
29139# If ld is used when linking, flag to hardcode \$libdir into a binary
29140# during linking. This must work even if \$libdir does not exist.
29141hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29142
29143# Whether we need a single "-rpath" flag with a separated argument.
29144hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29145
29146# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29147# DIR into the resulting binary.
29148hardcode_direct=$hardcode_direct_FC
29149
29150# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29151# DIR into the resulting binary and the resulting library dependency is
29152# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29153# library is relocated.
29154hardcode_direct_absolute=$hardcode_direct_absolute_FC
29155
29156# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29157# into the resulting binary.
29158hardcode_minus_L=$hardcode_minus_L_FC
29159
29160# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29161# into the resulting binary.
29162hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29163
29164# Set to "yes" if building a shared library automatically hardcodes DIR
29165# into the library and all subsequent libraries and executables linked
29166# against it.
29167hardcode_automatic=$hardcode_automatic_FC
29168
29169# Set to yes if linker adds runtime paths of dependent libraries
29170# to runtime path list.
29171inherit_rpath=$inherit_rpath_FC
29172
29173# Whether libtool must link a program against all its dependency libraries.
29174link_all_deplibs=$link_all_deplibs_FC
29175
29176# Fix the shell variable \$srcfile for the compiler.
29177fix_srcfile_path=$lt_fix_srcfile_path_FC
29178
29179# Set to "yes" if exported symbols are required.
29180always_export_symbols=$always_export_symbols_FC
29181
29182# The commands to list exported symbols.
29183export_symbols_cmds=$lt_export_symbols_cmds_FC
29184
29185# Symbols that should not be listed in the preloaded symbols.
29186exclude_expsyms=$lt_exclude_expsyms_FC
29187
29188# Symbols that must always be exported.
29189include_expsyms=$lt_include_expsyms_FC
29190
29191# Commands necessary for linking programs (against libraries) with templates.
29192prelink_cmds=$lt_prelink_cmds_FC
29193
29194# Specify filename containing input files.
29195file_list_spec=$lt_file_list_spec_FC
29196
29197# How to hardcode a shared library path into an executable.
29198hardcode_action=$hardcode_action_FC
29199
d58dead8
PG
29200# The directories searched by this compiler when creating a shared library.
29201compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29202
1cf3d07d
SE
29203# Dependencies to place before and after the objects being linked to
29204# create a shared library.
29205predep_objects=$lt_predep_objects_FC
29206postdep_objects=$lt_postdep_objects_FC
29207predeps=$lt_predeps_FC
29208postdeps=$lt_postdeps_FC
29209
29210# The library search path used internally by the compiler when linking
29211# a shared library.
29212compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29213
29214# ### END LIBTOOL TAG CONFIG: FC
29215_LT_EOF
29216
679c0f9a 29217 ;;
5213506e 29218 "gstdint.h":C)
c13e029b
PB
29219if test "$GCC" = yes; then
29220 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29221else
29222 echo "/* generated for $CC */" > tmp-stdint.h
29223fi
4c4b3eb0 29224
c13e029b
PB
29225sed 's/^ *//' >> tmp-stdint.h <<EOF
29226
29227 #ifndef GCC_GENERATED_STDINT_H
29228 #define GCC_GENERATED_STDINT_H 1
29229
29230 #include <sys/types.h>
4c4b3eb0 29231EOF
4c4b3eb0 29232
c13e029b
PB
29233if test "$acx_cv_header_stdint" != stdint.h; then
29234 echo "#include <stddef.h>" >> tmp-stdint.h
29235fi
29236if test "$acx_cv_header_stdint" != stddef.h; then
29237 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29238fi
29239
29240sed 's/^ *//' >> tmp-stdint.h <<EOF
29241 /* glibc uses these symbols as guards to prevent redefinitions. */
29242 #ifdef __int8_t_defined
29243 #define _INT8_T
29244 #define _INT16_T
29245 #define _INT32_T
29246 #endif
29247 #ifdef __uint32_t_defined
29248 #define _UINT32_T
29249 #endif
29250
29251EOF
29252
29253# ----------------- done header, emit basic int types -------------
29254if test "$acx_cv_header_stdint" = stddef.h; then
29255 sed 's/^ *//' >> tmp-stdint.h <<EOF
29256
29257 #ifndef _UINT8_T
29258 #define _UINT8_T
29259 #ifndef __uint8_t_defined
29260 #define __uint8_t_defined
b9497ab5 29261 #ifndef uint8_t
c13e029b
PB
29262 typedef unsigned $acx_cv_type_int8_t uint8_t;
29263 #endif
29264 #endif
b9497ab5 29265 #endif
c13e029b
PB
29266
29267 #ifndef _UINT16_T
29268 #define _UINT16_T
29269 #ifndef __uint16_t_defined
29270 #define __uint16_t_defined
b9497ab5 29271 #ifndef uint16_t
c13e029b
PB
29272 typedef unsigned $acx_cv_type_int16_t uint16_t;
29273 #endif
29274 #endif
b9497ab5 29275 #endif
c13e029b
PB
29276
29277 #ifndef _UINT32_T
29278 #define _UINT32_T
29279 #ifndef __uint32_t_defined
29280 #define __uint32_t_defined
b9497ab5 29281 #ifndef uint32_t
c13e029b
PB
29282 typedef unsigned $acx_cv_type_int32_t uint32_t;
29283 #endif
29284 #endif
b9497ab5 29285 #endif
c13e029b
PB
29286
29287 #ifndef _INT8_T
29288 #define _INT8_T
29289 #ifndef __int8_t_defined
29290 #define __int8_t_defined
b9497ab5 29291 #ifndef int8_t
c13e029b
PB
29292 typedef $acx_cv_type_int8_t int8_t;
29293 #endif
29294 #endif
b9497ab5 29295 #endif
c13e029b
PB
29296
29297 #ifndef _INT16_T
29298 #define _INT16_T
29299 #ifndef __int16_t_defined
29300 #define __int16_t_defined
b9497ab5 29301 #ifndef int16_t
c13e029b
PB
29302 typedef $acx_cv_type_int16_t int16_t;
29303 #endif
29304 #endif
b9497ab5 29305 #endif
c13e029b
PB
29306
29307 #ifndef _INT32_T
29308 #define _INT32_T
29309 #ifndef __int32_t_defined
29310 #define __int32_t_defined
b9497ab5 29311 #ifndef int32_t
c13e029b
PB
29312 typedef $acx_cv_type_int32_t int32_t;
29313 #endif
29314 #endif
b9497ab5 29315 #endif
c13e029b
PB
29316EOF
29317elif test "$ac_cv_type_u_int32_t" = yes; then
29318 sed 's/^ *//' >> tmp-stdint.h <<EOF
29319
29320 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29321 #ifndef _INT8_T
29322 #define _INT8_T
29323 #endif
29324 #ifndef _INT16_T
29325 #define _INT16_T
29326 #endif
29327 #ifndef _INT32_T
29328 #define _INT32_T
29329 #endif
29330
29331 #ifndef _UINT8_T
29332 #define _UINT8_T
29333 #ifndef __uint8_t_defined
29334 #define __uint8_t_defined
b9497ab5 29335 #ifndef uint8_t
c13e029b
PB
29336 typedef u_int8_t uint8_t;
29337 #endif
29338 #endif
b9497ab5 29339 #endif
c13e029b
PB
29340
29341 #ifndef _UINT16_T
29342 #define _UINT16_T
29343 #ifndef __uint16_t_defined
29344 #define __uint16_t_defined
b9497ab5 29345 #ifndef uint16_t
c13e029b
PB
29346 typedef u_int16_t uint16_t;
29347 #endif
29348 #endif
b9497ab5 29349 #endif
c13e029b
PB
29350
29351 #ifndef _UINT32_T
29352 #define _UINT32_T
29353 #ifndef __uint32_t_defined
29354 #define __uint32_t_defined
b9497ab5 29355 #ifndef uint32_t
c13e029b
PB
29356 typedef u_int32_t uint32_t;
29357 #endif
29358 #endif
b9497ab5 29359 #endif
c13e029b
PB
29360EOF
29361else
29362 sed 's/^ *//' >> tmp-stdint.h <<EOF
29363
29364 /* Some systems have guard macros to prevent redefinitions, define them. */
29365 #ifndef _INT8_T
29366 #define _INT8_T
29367 #endif
29368 #ifndef _INT16_T
29369 #define _INT16_T
29370 #endif
29371 #ifndef _INT32_T
29372 #define _INT32_T
29373 #endif
29374 #ifndef _UINT8_T
29375 #define _UINT8_T
29376 #endif
29377 #ifndef _UINT16_T
29378 #define _UINT16_T
29379 #endif
29380 #ifndef _UINT32_T
29381 #define _UINT32_T
29382 #endif
29383EOF
29384fi
29385
29386# ------------- done basic int types, emit int64_t types ------------
29387if test "$ac_cv_type_uint64_t" = yes; then
29388 sed 's/^ *//' >> tmp-stdint.h <<EOF
29389
29390 /* system headers have good uint64_t and int64_t */
29391 #ifndef _INT64_T
29392 #define _INT64_T
29393 #endif
29394 #ifndef _UINT64_T
29395 #define _UINT64_T
29396 #endif
29397EOF
29398elif test "$ac_cv_type_u_int64_t" = yes; then
29399 sed 's/^ *//' >> tmp-stdint.h <<EOF
29400
29401 /* system headers have an u_int64_t (and int64_t) */
29402 #ifndef _INT64_T
29403 #define _INT64_T
29404 #endif
29405 #ifndef _UINT64_T
29406 #define _UINT64_T
29407 #ifndef __uint64_t_defined
29408 #define __uint64_t_defined
b9497ab5 29409 #ifndef uint64_t
c13e029b
PB
29410 typedef u_int64_t uint64_t;
29411 #endif
29412 #endif
b9497ab5 29413 #endif
c13e029b
PB
29414EOF
29415elif test -n "$acx_cv_type_int64_t"; then
29416 sed 's/^ *//' >> tmp-stdint.h <<EOF
29417
29418 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29419 #ifndef _INT64_T
29420 #define _INT64_T
b9497ab5 29421 #ifndef int64_t
c13e029b
PB
29422 typedef $acx_cv_type_int64_t int64_t;
29423 #endif
b9497ab5 29424 #endif
c13e029b
PB
29425 #ifndef _UINT64_T
29426 #define _UINT64_T
29427 #ifndef __uint64_t_defined
29428 #define __uint64_t_defined
b9497ab5 29429 #ifndef uint64_t
c13e029b
PB
29430 typedef unsigned $acx_cv_type_int64_t uint64_t;
29431 #endif
29432 #endif
b9497ab5 29433 #endif
c13e029b
PB
29434EOF
29435else
29436 sed 's/^ *//' >> tmp-stdint.h <<EOF
29437
29438 /* some common heuristics for int64_t, using compiler-specific tests */
29439 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29440 #ifndef _INT64_T
29441 #define _INT64_T
29442 #ifndef __int64_t_defined
b9497ab5 29443 #ifndef int64_t
c13e029b
PB
29444 typedef long long int64_t;
29445 #endif
29446 #endif
b9497ab5 29447 #endif
c13e029b
PB
29448 #ifndef _UINT64_T
29449 #define _UINT64_T
b9497ab5 29450 #ifndef uint64_t
c13e029b
PB
29451 typedef unsigned long long uint64_t;
29452 #endif
b9497ab5 29453 #endif
c13e029b
PB
29454
29455 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29456 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29457 does not implement __extension__. But that compiler doesn't define
29458 __GNUC_MINOR__. */
29459 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29460 # define __extension__
29461 # endif
29462
29463 # ifndef _INT64_T
29464 # define _INT64_T
b9497ab5 29465 # ifndef int64_t
c13e029b
PB
29466 __extension__ typedef long long int64_t;
29467 # endif
b9497ab5 29468 # endif
c13e029b
PB
29469 # ifndef _UINT64_T
29470 # define _UINT64_T
b9497ab5 29471 # ifndef uint64_t
c13e029b
PB
29472 __extension__ typedef unsigned long long uint64_t;
29473 # endif
b9497ab5 29474 # endif
c13e029b
PB
29475
29476 #elif !defined __STRICT_ANSI__
29477 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29478
29479 # ifndef _INT64_T
29480 # define _INT64_T
b9497ab5 29481 # ifndef int64_t
c13e029b
PB
29482 typedef __int64 int64_t;
29483 # endif
b9497ab5 29484 # endif
c13e029b
PB
29485 # ifndef _UINT64_T
29486 # define _UINT64_T
b9497ab5 29487 # ifndef uint64_t
c13e029b
PB
29488 typedef unsigned __int64 uint64_t;
29489 # endif
b9497ab5 29490 # endif
c13e029b
PB
29491 # endif /* compiler */
29492
29493 #endif /* ANSI version */
29494EOF
29495fi
29496
29497# ------------- done int64_t types, emit intptr types ------------
29498if test "$ac_cv_type_uintptr_t" != yes; then
29499 sed 's/^ *//' >> tmp-stdint.h <<EOF
29500
29501 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29502 #ifndef __uintptr_t_defined
b9497ab5 29503 #ifndef uintptr_t
c13e029b
PB
29504 typedef u$acx_cv_type_intptr_t uintptr_t;
29505 #endif
b9497ab5 29506 #endif
c13e029b 29507 #ifndef __intptr_t_defined
b9497ab5 29508 #ifndef intptr_t
c13e029b
PB
29509 typedef $acx_cv_type_intptr_t intptr_t;
29510 #endif
b9497ab5 29511 #endif
c13e029b
PB
29512EOF
29513fi
29514
29515# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 29516if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 29517 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29518
29519 /* Define int_least types */
29520 typedef int8_t int_least8_t;
29521 typedef int16_t int_least16_t;
29522 typedef int32_t int_least32_t;
c13e029b 29523 #ifdef _INT64_T
4c4b3eb0 29524 typedef int64_t int_least64_t;
c13e029b 29525 #endif
4c4b3eb0
PB
29526
29527 typedef uint8_t uint_least8_t;
29528 typedef uint16_t uint_least16_t;
29529 typedef uint32_t uint_least32_t;
c13e029b 29530 #ifdef _UINT64_T
4c4b3eb0 29531 typedef uint64_t uint_least64_t;
c13e029b 29532 #endif
4c4b3eb0
PB
29533EOF
29534fi
29535
c13e029b 29536# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 29537if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 29538 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29539
29540 /* Define int_fast types. short is often slow */
29541 typedef int8_t int_fast8_t;
29542 typedef int int_fast16_t;
29543 typedef int32_t int_fast32_t;
c13e029b 29544 #ifdef _INT64_T
4c4b3eb0 29545 typedef int64_t int_fast64_t;
c13e029b 29546 #endif
4c4b3eb0
PB
29547
29548 typedef uint8_t uint_fast8_t;
29549 typedef unsigned int uint_fast16_t;
29550 typedef uint32_t uint_fast32_t;
c13e029b 29551 #ifdef _UINT64_T
4c4b3eb0 29552 typedef uint64_t uint_fast64_t;
c13e029b
PB
29553 #endif
29554EOF
29555fi
29556
29557if test "$ac_cv_type_uintmax_t" != yes; then
29558 sed 's/^ *//' >> tmp-stdint.h <<EOF
29559
29560 /* Define intmax based on what we found */
b9497ab5 29561 #ifndef intmax_t
c13e029b
PB
29562 #ifdef _INT64_T
29563 typedef int64_t intmax_t;
29564 #else
29565 typedef long intmax_t;
29566 #endif
b9497ab5
RO
29567 #endif
29568 #ifndef uintmax_t
c13e029b
PB
29569 #ifdef _UINT64_T
29570 typedef uint64_t uintmax_t;
29571 #else
29572 typedef unsigned long uintmax_t;
29573 #endif
b9497ab5 29574 #endif
4c4b3eb0
PB
29575EOF
29576fi
29577
c13e029b
PB
29578sed 's/^ *//' >> tmp-stdint.h <<EOF
29579
29580 #endif /* GCC_GENERATED_STDINT_H */
29581EOF
4c4b3eb0 29582
c13e029b
PB
29583if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29584 rm -f tmp-stdint.h
4c4b3eb0 29585else
c13e029b 29586 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
29587fi
29588
29589 ;;
5213506e 29590
6de9cd9a 29591 esac
5213506e 29592done # for ac_tag
6de9cd9a 29593
6de9cd9a 29594
5213506e 29595as_fn_exit 0
6de9cd9a 29596_ACEOF
6de9cd9a
DN
29597ac_clean_files=$ac_clean_files_save
29598
5213506e
RW
29599test $ac_write_fail = 0 ||
29600 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29601
6de9cd9a
DN
29602
29603# configure is writing to config.log, and then calls config.status.
29604# config.status does its own redirection, appending to config.log.
29605# Unfortunately, on DOS this fails, as config.log is still kept open
29606# by configure, so config.status won't be able to write to it; its
29607# output is simply discarded. So we exec the FD to /dev/null,
29608# effectively closing config.log, so it can be properly (re)opened and
29609# appended to by config.status. When coming back to configure, we
29610# need to make the FD available again.
29611if test "$no_create" != yes; then
29612 ac_cs_success=:
29613 ac_config_status_args=
29614 test "$silent" = yes &&
29615 ac_config_status_args="$ac_config_status_args --quiet"
29616 exec 5>/dev/null
29617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29618 exec 5>>config.log
29619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29620 # would make configure fail if this is the last instruction.
5213506e
RW
29621 $ac_cs_success || as_fn_exit $?
29622fi
29623if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29625$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
29626fi
29627